dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS(poll.h sys/devpoll.h sys/epoll.h sys/event.h)
+AC_CHECK_HEADERS(crypt.h inttypes.h poll.h sys/devpoll.h sys/epoll.h sys/event.h)
dnl Checks for typedefs, structures, and compiler characteristics
dnl AC_C_CONST
ENGINE_C="engine_epoll.c $ENGINE_C"
fi
+dnl How to copy one va_list to another?
+AC_CACHE_CHECK([for va_copy], unet_cv_c_va_copy, [AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM([#include <stdarg.h>], [va_list ap1, ap2; va_copy(ap1, ap2);])],
+ [unet_cv_c_va_copy="yes"],
+ [unet_cv_c_va_copy="no"]
+)])
+if test "$unet_cv_c_va_copy" = "yes" ; then
+ AC_DEFINE(HAVE_VA_COPY, 1, [Define if we have va_copy])
+fi
+
+AC_CACHE_CHECK([for __va_copy], unet_cv_c___va_copy, [AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM([#include <stdarg.h>], [va_list ap1, ap2; __va_copy(ap1, ap2);])],
+ [unet_cv_c___va_copy="yes"],
+ [unet_cv_c___va_copy="no"]
+)])
+if test "$unet_cv_c___va_copy" = "yes" ; then
+ AC_DEFINE(HAVE___VA_COPY, 1, [Define if we have __va_copy])
+fi
+
dnl --disable-adns check...
AC_MSG_CHECKING([whether to enable the adns resolver engine])
AC_ARG_ENABLE([adns],
Warnings: $unet_cv_enable_warnings
Debug: $unet_cv_enable_debug
Profile: $unet_cv_enable_profile
- Head-in-sand: $unet_cv_enable_headinsand
ADNS: $unet_cv_enable_adns
Owner/mode: $unet_cv_with_owner.$unet_cv_with_group ($unet_cv_with_mode)
Chroot: $unet_cv_with_chroot
poll() engine: $unet_cv_enable_poll
kqueue() engine: $unet_cv_enable_kqueue
/dev/poll engine: $unet_cv_enable_devpoll
+ epoll() engine: $unet_cv_enable_epoll
"])