[project @ 2002-12-26 17:52:34 by wolfgang]
authorwolfgang <unknown>
Thu, 26 Dec 2002 17:52:35 +0000 (17:52 +0000)
committerwolfgang <unknown>
Thu, 26 Dec 2002 17:52:35 +0000 (17:52 +0000)
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
mk/config.h.in

index 85d40a0..996be59 100644 (file)
@@ -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 )
index 27faa1b..ae303f9 100644 (file)
 
 /* 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