summaryrefslogtreecommitdiff
path: root/source4/lib/replace/autoconf-2.60.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-04 06:59:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:58 -0500
commite4161f9deee8198e9128e88458e3c5603e86cd3e (patch)
tree1f528b90c371e8f004e636d663a9d30c1dabde7c /source4/lib/replace/autoconf-2.60.m4
parentf239b809b44fb776cb55ae470cdff2521b485489 (diff)
downloadsamba-e4161f9deee8198e9128e88458e3c5603e86cd3e.tar.gz
samba-e4161f9deee8198e9128e88458e3c5603e86cd3e.tar.bz2
samba-e4161f9deee8198e9128e88458e3c5603e86cd3e.zip
r22658: - add AC_GNU_SOURCE macro for systems which don't have it
(sles8) - fix compiler warning on some systems metze (This used to be commit 2097ac64fc5b2b7e9a8221861a788c4a5f44948a)
Diffstat (limited to 'source4/lib/replace/autoconf-2.60.m4')
-rw-r--r--source4/lib/replace/autoconf-2.60.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/lib/replace/autoconf-2.60.m4 b/source4/lib/replace/autoconf-2.60.m4
index 5360fff5d2..acdcd38efe 100644
--- a/source4/lib/replace/autoconf-2.60.m4
+++ b/source4/lib/replace/autoconf-2.60.m4
@@ -1,3 +1,16 @@
+# AC_GNU_SOURCE
+# --------------
+AC_DEFUN([AC_GNU_SOURCE],
+[AH_VERBATIM([_GNU_SOURCE],
+[/* Enable GNU extensions on systems that have them. */
+#ifndef _GNU_SOURCE
+# undef _GNU_SOURCE
+#endif])dnl
+AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
+AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
+AC_DEFINE([_GNU_SOURCE])
+])
+
# _AC_C_STD_TRY(STANDARD, TEST-PROLOGUE, TEST-BODY, OPTION-LIST,
# ACTION-IF-AVAILABLE, ACTION-IF-UNAVAILABLE)
# --------------------------------------------------------------