From fc0b9ac95bcbdfa0f2ef64979fa71a5079bf32c2 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Thu, 26 Dec 2002 17:52:35 +0000 Subject: [PATCH] [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 --- configure.in | 19 +++++++++++++++++++ mk/config.h.in | 6 ++++++ 2 files changed, 25 insertions(+) diff --git a/configure.in b/configure.in index 85d40a0..996be59 100644 --- a/configure.in +++ b/configure.in @@ -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 +#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 +#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 ) diff --git a/mk/config.h.in b/mk/config.h.in index 27faa1b..ae303f9 100644 --- a/mk/config.h.in +++ b/mk/config.h.in @@ -1077,3 +1077,9 @@ /* Define to empty if `const' does not conform to ANSI C. */ #undef const + +/* Define if defines _SC_GETGR_R_SIZE_MAX */ +#undef HAVE_SC_GETGR_R_SIZE_MAX + +/* Define if defines _SC_GETPW_R_SIZE_MAX */ +#undef HAVE_SC_GETPW_R_SIZE_MAX -- 1.7.10.4