comparison configure.ac @ 22521:9693a727e7ef

Undo the AC_CHECK_HEADERS_ONCE thing, since it requires a fairly new autoconf
author Mark Doliner <mark@kingant.net>
date Fri, 21 Mar 2008 15:18:55 +0000
parents 4bcd3868a136
children e4b2cbc246da a8a26b4d8458 aceb6c9734a4
comparison
equal deleted inserted replaced
22520:32ff15843259 22521:9693a727e7ef
164 dnl AC_CYGWIN 164 dnl AC_CYGWIN
165 165
166 dnl Checks for header files. 166 dnl Checks for header files.
167 AC_HEADER_STDC 167 AC_HEADER_STDC
168 AC_HEADER_SYS_WAIT 168 AC_HEADER_SYS_WAIT
169 AC_CHECK_HEADERS_ONCE(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h) 169 AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h)
170 170
171 dnl Checks for typedefs, structures, and compiler characteristics. 171 dnl Checks for typedefs, structures, and compiler characteristics.
172 AC_C_CONST 172 AC_C_CONST
173 AC_STRUCT_TM 173 AC_STRUCT_TM
174 AC_CHECK_SIZEOF(time_t, ,[ 174 AC_CHECK_SIZEOF(time_t, ,[
1051 AC_ARG_ENABLE(plugins, [AC_HELP_STRING([--disable-plugins], [compile without plugin support])], , enable_plugins=yes) 1051 AC_ARG_ENABLE(plugins, [AC_HELP_STRING([--disable-plugins], [compile without plugin support])], , enable_plugins=yes)
1052 AC_ARG_WITH(krb4, [AC_HELP_STRING([--with-krb4=PREFIX], [compile Zephyr plugin with Kerberos 4 support])], kerberos="$withval", kerberos="no") 1052 AC_ARG_WITH(krb4, [AC_HELP_STRING([--with-krb4=PREFIX], [compile Zephyr plugin with Kerberos 4 support])], kerberos="$withval", kerberos="no")
1053 AC_ARG_WITH(zephyr, [AC_HELP_STRING([--with-zephyr=PREFIX], [compile Zephyr plugin against external libzephyr])], zephyr="$withval", zephyr="no") 1053 AC_ARG_WITH(zephyr, [AC_HELP_STRING([--with-zephyr=PREFIX], [compile Zephyr plugin against external libzephyr])], zephyr="$withval", zephyr="no")
1054 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") 1054 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno")
1055 1055
1056 AC_CHECK_HEADERS_ONCE(sys/utsname.h) 1056 AC_CHECK_HEADERS(sys/utsname.h)
1057 AC_CHECK_FUNC(uname) 1057 AC_CHECK_FUNC(uname)
1058 1058
1059 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes) 1059 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes)
1060 1060
1061 if test "x$GCC" = "xyes"; then 1061 if test "x$GCC" = "xyes"; then
2101 2101
2102 AC_MSG_CHECKING(for me pot o' gold) 2102 AC_MSG_CHECKING(for me pot o' gold)
2103 AC_MSG_RESULT(no) 2103 AC_MSG_RESULT(no)
2104 AC_CHECK_FUNCS(gethostid lrand48) 2104 AC_CHECK_FUNCS(gethostid lrand48)
2105 AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf) 2105 AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf)
2106 AC_CHECK_HEADERS_ONCE(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h) 2106 AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h)
2107 AC_CHECK_HEADERS_ONCE(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h) 2107 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h)
2108 AC_CHECK_HEADERS_ONCE(sys/select.h sys/uio.h sys/utsname.h sys/wait.h) 2108 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h)
2109 AC_CHECK_HEADERS_ONCE(termios.h) 2109 AC_CHECK_HEADERS(termios.h)
2110 2110
2111 # sys/sysctl.h on OpenBSD 4.2 requires sys/param.h 2111 # sys/sysctl.h on OpenBSD 4.2 requires sys/param.h
2112 AC_CHECK_HEADERS_ONCE(sys/param.h) 2112 AC_CHECK_HEADERS(sys/param.h)
2113 AC_CHECK_HEADERS(sys/sysctl.h, [], [], 2113 AC_CHECK_HEADERS(sys/sysctl.h, [], [],
2114 [[ 2114 [[
2115 #ifdef HAVE_PARAM_H 2115 #ifdef HAVE_PARAM_H
2116 # include <sys/param.h> 2116 # include <sys/param.h>
2117 #endif 2117 #endif
2118 ]]) 2118 ]])
2119 2119
2120 AC_CHECK_HEADERS_ONCE(sys/socket.h) 2120 AC_CHECK_HEADERS(sys/socket.h)
2121 AC_VAR_TIMEZONE_EXTERNALS 2121 AC_VAR_TIMEZONE_EXTERNALS
2122 2122
2123 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff, 2123 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
2124 AC_TRY_COMPILE([ 2124 AC_TRY_COMPILE([
2125 #include <time.h> 2125 #include <time.h>