#endif
], ac_cv_define_$1=yes, ac_cv_define_$1=no))
if test "$ac_cv_define_$1" = "yes" ; then
- AC_DEFINE(HAVE_$1)
+ AC_DEFINE(HAVE_$1,,
+ [Define if the macro "$1" is defined on this system])
fi
])
])
])
if test "$ac_ac_type_rlim_t" = "no" ; then
- AC_DEFINE(rlim_t, int)
+ AC_DEFINE(rlim_t, int,
+ [Define to 'int' if <sys/resource.h> doesn't define it for us])
fi
])
-o "$ac_cv_func_select_arg234" != "fd_set *" \
-o "$ac_cv_func_select_arg5" != "struct timeval *" ; then
- AC_DEFINE(SELECT_NEEDS_CAST)
+ AC_DEFINE(SELECT_NEEDS_CAST,,
+ [Define if arguments to select() aren't what we expect])
fi
AM_PROG_LIBTOOL
dnl ## Check for libraries
+AC_DEFUN(APACHE_DEFINE_HAVE_CRYPT, [
+])
AC_CHECK_LIB(nsl, gethostname, [
AC_ADD_LIBRARY(nsl) ], [])
AC_CHECK_LIB(crypt, crypt, [
AC_ADD_LIBRARY(crypt)
- AC_DEFINE(HAVE_CRYPT)], [])
-
-AC_CHECK_LIB(c, crypt, [
- AC_DEFINE(HAVE_CRYPT)], [])
+ apache_have_crypt=1
+], [
+ AC_CHECK_LIB(c, crypt, [
+ apache_have_crypt=1], [])
+])
+if test "$apache_have_crypt" = "1" ; then
+ AC_DEFINE(HAVE_CRYPT,,[Define if this platform has crypt()])
+fi
dnl ## Check for header files
ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)])
if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
- AC_DEFINE(HAVE_GMTOFF)
+ AC_DEFINE(HAVE_GMTOFF,,
+ [Define if struct tm has a tm_gmtoff member])
fi
dnl ## Check for library functions
AC_MSG_CHECKING(which shared memory mechanism to use)
if test "$ac_cv_func_shmget" = "yes" ; then
- AC_DEFINE(USE_SHMGET_SCOREBOARD)
+ AC_DEFINE(USE_SHMGET_SCOREBOARD,,
+ [Define if MPMs should use shmget to implement their shared memory])
AC_MSG_RESULT(shmget)
elif test "$ac_cv_func_mmap" = "yes" ; then
- AC_DEFINE(USE_MMAP_SCOREBOARD)
+ AC_DEFINE(USE_MMAP_SCOREBOARD,,
+ [Define if MPMs should use mmap to implement their shared memory])
AC_MSG_RESULT(mmap)
else
AC_MSG_ERROR(No known shared memory system)
])
dnl User threads libraries need pthread.h included everywhere
- AC_DEFINE(PTHREAD_EVERYWHERE)
+ AC_DEFINE(PTHREAD_EVERYWHERE,,
+ [Define if all code should have #include <pthread.h>])
])