diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index a294b00f..b5374b23 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -621,7 +621,6 @@ AC_C_CONST | |||
621 | AC_STRUCT_TM | 621 | AC_STRUCT_TM |
622 | AC_TYPE_PID_T | 622 | AC_TYPE_PID_T |
623 | AC_TYPE_SIZE_T | 623 | AC_TYPE_SIZE_T |
624 | AC_TYPE_SIGNAL | ||
625 | 624 | ||
626 | AC_CACHE_CHECK([for va_copy],ac_cv_HAVE_VA_COPY,[ | 625 | AC_CACHE_CHECK([for va_copy],ac_cv_HAVE_VA_COPY,[ |
627 | AC_TRY_LINK([#include <stdarg.h> | 626 | AC_TRY_LINK([#include <stdarg.h> |
@@ -645,12 +644,16 @@ AC_TRY_COMPILE([#include <sys/time.h>], | |||
645 | [struct timeval *tv; | 644 | [struct timeval *tv; |
646 | struct timezone *tz;], | 645 | struct timezone *tz;], |
647 | AC_DEFINE(HAVE_STRUCT_TIMEVAL,1,[Define if we have a timeval structure]) | 646 | AC_DEFINE(HAVE_STRUCT_TIMEVAL,1,[Define if we have a timeval structure]) |
648 | AC_TRY_COMPILE([#include <sys/time.h>], | 647 | FOUND_STRUCT_TIMEVAL="yes") |
649 | [struct timeval *tv; | 648 | |
650 | struct timezone *tz; | 649 | if test x"$FOUND_STRUCT_TIMEVAL" = x"yes"; then |
651 | gettimeofday(tv, tz);], | 650 | AC_TRY_COMPILE([#include <sys/time.h>], |
652 | AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define if gettimeofday is found]), | 651 | [struct timeval *tv; |
653 | AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed]))) | 652 | struct timezone *tz; |
653 | gettimeofday(tv, tz);], | ||
654 | AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define if gettimeofday is found]), | ||
655 | AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed])) | ||
656 | fi | ||
654 | 657 | ||
655 | dnl Checks for library functions. | 658 | dnl Checks for library functions. |
656 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtol strtoul floor) | 659 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtol strtoul floor) |