OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/configure.ac versions 1.31 and 1.32
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/configure.ac 1.31 -> 1.32

--- configure.ac 2005/10/03 08:08:11     1.31
+++ configure.ac 2007/03/02 15:13:28     1.32
@@ -57,6 +57,25 @@
 
 AC_CHECK_HEADERS(sys/time.h)
 
+AC_HAVE_HEADERS(features.h)
+AC_MSG_CHECKING(whether _GNU_SOURCE is required under GNU glibc)
+AC_TRY_RUN(
+#define RETURN 1
+#ifdef HAVE_FEATURES_H
+#include <features.h>
+#if (__GLIBC__+0) > 0
+#undef  RETURN
+#define RETURN 0
+#endif
+#endif
+int main(int argc, char *argv[]) { return RETURN; }
+,dnl
+AC_MSG_RESULT(yes)
+CFLAGS="$CFLAGS -D_GNU_SOURCE"
+,dnl
+AC_MSG_RESULT(no)
+)
+
 AC_CHECK_FUNCS(inet_aton inet_pton inet_ntoa inet_ntop snprintf vsnprintf setitimer isnan isinf)
 
 CHECK_VA_COPY

CVSTrac 2.0.1