]> granicus.if.org Git - apache/blob - server/config.m4
Completely revamp configure so that it preserves the standard make
[apache] / server / config.m4
1 dnl ## Check for libraries
2
3 AC_CHECK_LIB(nsl, gethostname, APR_ADDTO(LIBS,-lnsl))
4 AC_CHECK_LIB(socket, socket, APR_ADDTO(LIBS,-lsocket))
5 AC_CHECK_LIB(nsl, gethostbyaddr, APR_ADDTO(LIBS,-lnsl))
6
7 dnl ## Check for header files
8
9 AC_CHECK_HEADERS(bstring.h unistd.h)
10
11 dnl ## Check for typedefs, structures, and compiler characteristics.
12
13 AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
14 [AC_TRY_COMPILE([#include <sys/types.h>
15 #include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_gmtoff;],
16   ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)])
17
18 if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
19     AC_DEFINE(HAVE_GMTOFF,,
20         [Define if struct tm has a tm_gmtoff member])
21 fi
22
23 dnl ## Check for library functions
24
25 AC_CHECK_FUNCS(syslog)
26
27 dnl Obsolete scoreboard code uses this.
28     AC_CHECK_HEADERS(sys/times.h)
29     AC_CHECK_FUNCS(times)