From: Michael Poole Date: Fri, 6 Oct 2006 23:12:20 +0000 (+0000) Subject: Fix detection of gettimeofday(). X-Git-Tag: v1.4.0-rc1~101 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=cdaadec133bda7a90a264870f9602ad269cbf88e Fix detection of gettimeofday(). configure.in: Since we have a fallback for gettimeofday, move it in with the functions for which we do. git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-55 --- diff --git a/ChangeLog b/ChangeLog index 3697b8c..c271b7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,20 @@ # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3 # +2006-10-06 23:12:20 GMT Michael Poole patch-55 + + Summary: + Fix detection of gettimeofday(). + Revision: + srvx--devo--1.3--patch-55 + + configure.in: Since we have a fallback for gettimeofday, move it in with + the functions for which we do. + + modified files: + ChangeLog configure.in + + 2006-10-04 01:41:05 GMT Michael Poole patch-54 Summary: diff --git a/configure.in b/configure.in index 01a9e3f..588be8a 100644 --- a/configure.in +++ b/configure.in @@ -81,14 +81,15 @@ AC_CHECK_MEMBER([struct addrinfo.ai_flags], [],[#include #include #include ]) -AC_CHECK_FUNCS(gettimeofday) + +dnl We have fallbacks in case these are missing, so just check for them. +AC_CHECK_FUNCS(freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long regcomp regexec regfree sysconf inet_aton epoll_create select gettimeofday,,) + +dnl Check for the fallbacks for functions missing above. if test $ac_cv_func_gettimeofday = no; then AC_CHECK_FUNCS(ftime,,AC_MSG_ERROR([ftime or gettimeofday required. srvx build will fail.])) fi -dnl We have fallbacks in case these are missing, so just check for them. -AC_CHECK_FUNCS(freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long regcomp regexec regfree sysconf inet_aton epoll_create select,,) - dnl Check for absolutely required library functions. AC_CHECK_FUNCS(socket strcspn strspn strtod strtoul,,AC_MSG_ERROR([a required function was not found. srvx build will fail.]))