summaryrefslogtreecommitdiffstats
path: root/source/lib/replace/libreplace_macros.m4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-13 22:31:25 +0000
committerAndrew Tridgell <tridge@samba.org>2006-09-13 22:31:25 +0000
commit60d711f0f7190bddc06edd02daf1efa03f3c6da3 (patch)
tree5c4499894163c15343a67b318f9badb6acbc39a8 /source/lib/replace/libreplace_macros.m4
parent90ca6d7b247fc573e562606ed61b32f69303335c (diff)
downloadsamba-60d711f0f7190bddc06edd02daf1efa03f3c6da3.tar.gz
samba-60d711f0f7190bddc06edd02daf1efa03f3c6da3.tar.xz
samba-60d711f0f7190bddc06edd02daf1efa03f3c6da3.zip
r18488: we have to make sure any extensions flags also make it into
confdefs.h, otherwise the real build and the configure tests will not be significant this change fixes the build of libreplace on hpux with gcc
Diffstat (limited to 'source/lib/replace/libreplace_macros.m4')
-rw-r--r--source/lib/replace/libreplace_macros.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/source/lib/replace/libreplace_macros.m4 b/source/lib/replace/libreplace_macros.m4
index 6c1110dc4b0..6c4cfc465d2 100644
--- a/source/lib/replace/libreplace_macros.m4
+++ b/source/lib/replace/libreplace_macros.m4
@@ -87,6 +87,19 @@ fi
rm -f conftest*
])])
+AC_DEFUN([AC_EXTENSION_FLAG],
+[
+ cat >>confdefs.h <<\EOF
+#ifndef $1
+# define $1
+#endif
+EOF
+AH_VERBATIM([$1], [#ifndef $1
+# define $1
+#endif])
+])
+
+
dnl see if a declaration exists for a function or variable
dnl defines HAVE_function_DECL if it exists
dnl AC_HAVE_DECL(var, includes)