From: Jonas 'Sortie' Termansen Date: Thu, 28 Aug 2014 01:04:18 GMT Subject: [PATCH 5/9] autoconf: Check for struct itimerval Message-ID: <1409187862-21257-6-git-send-email-sortie@maxsi.org> In-Reply-To: <1409187862-21257-1-git-send-email-sortie@maxsi.org> The makefile has provisions for this case, so let's detect it in the configure script as well. Signed-off-by: Jonas 'Sortie' Termansen --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 31b3218..00842ae 100644 --- a/configure.ac +++ b/configure.ac @@ -761,6 +761,13 @@ AC_CHECK_TYPES([struct timespec], [#include ]) GIT_CONF_SUBST([NO_STRUCT_TIMESPEC]) # +# Define NO_STRUCT_ITIMERVAL if you don't have struct itimerval. +AC_CHECK_TYPES([struct itimerval], +[NO_STRUCT_ITIMERVAL=], +[NO_STRUCT_ITIMERVAL=UnfortunatelyYes], +[#include ]) +GIT_CONF_SUBST([NO_STRUCT_ITIMERVAL]) +# # Define NO_D_INO_IN_DIRENT if you don't have d_ino in your struct dirent. AC_CHECK_MEMBER(struct dirent.d_ino, [NO_D_INO_IN_DIRENT=], -- 2.1.0