autoconf: check for struct itimerval

The Makefile has provisions for this case, so let's detect it in the configure script as well. Signed-off-by: Jonas 'Sortie' Termansen <sortie@maxsi.org> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonas 'Sortie' Termansen committed Aug 29, 2014 at 09:42 UTC 6441090cf234b88c2fdbb9cd754714108fd57755
1 file changed +8
configure.ac
+8
@@ -746,6 +746,14 @@ case $ac_cv_type_socklen_t in
746 esac
747 GIT_CONF_SUBST([SOCKLEN_T])
748
749 +#
750 +# Define NO_STRUCT_ITIMERVAL if you don't have struct itimerval.
751 +AC_CHECK_TYPES([struct itimerval],
752 +[NO_STRUCT_ITIMERVAL=],
753 +[NO_STRUCT_ITIMERVAL=UnfortunatelyYes],
754 +[#include <sys/time.h>])
755 +GIT_CONF_SUBST([NO_STRUCT_ITIMERVAL])
756 +#
757 # Define NO_D_INO_IN_DIRENT if you don't have d_ino in your struct dirent.
758 AC_CHECK_MEMBER(struct dirent.d_ino,
759 [NO_D_INO_IN_DIRENT=],