Commit fc0b9ac9 authored by wolfgang's avatar wolfgang
Browse files

[project @ 2002-12-26 17:52:34 by wolfgang]

Mac OS X doesn't have the sysconfig constants _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX, so add a configure check
parent 0d7bfe8e
......@@ -1245,4 +1245,23 @@ we_have_sigpoll
#endif
], AC_DEFINE(HAVE_SIGPOLL) haveSIGPOLL=yes, haveSIGPOLL=no)
AC_MSG_RESULT([$haveSIGPOLL])
AC_MSG_CHECKING(for _SC_GETGR_R_SIZE_MAX)
AC_EGREP_CPP(we_have_that_sysconf_thing,
[
#include <unistd.h>
#ifdef _SC_GETGR_R_SIZE_MAX
we_have_that_sysconf_thing
#endif
], AC_MSG_RESULT(yes) AC_DEFINE(HAVE_SC_GETGR_R_SIZE_MAX), AC_MSG_RESULT(no))
AC_MSG_CHECKING(for _SC_GETPW_R_SIZE_MAX)
AC_EGREP_CPP(we_have_that_sysconf_thing,
[
#include <unistd.h>
#ifdef _SC_GETPW_R_SIZE_MAX
we_have_that_sysconf_thing
#endif
], AC_MSG_RESULT(yes) AC_DEFINE(HAVE_SC_GETPW_R_SIZE_MAX), AC_MSG_RESULT(no))
AC_OUTPUT(mk/config.mk, echo timestamp > mk/stamp-h )
......@@ -1077,3 +1077,9 @@
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* Define if <unistd.h> defines _SC_GETGR_R_SIZE_MAX */
#undef HAVE_SC_GETGR_R_SIZE_MAX
/* Define if <unistd.h> defines _SC_GETPW_R_SIZE_MAX */
#undef HAVE_SC_GETPW_R_SIZE_MAX
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment