summaryrefslogtreecommitdiff
path: root/source3/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source3/aclocal.m4')
-rw-r--r--source3/aclocal.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/aclocal.m4 b/source3/aclocal.m4
index b3e92f4495..39ba426e1a 100644
--- a/source3/aclocal.m4
+++ b/source3/aclocal.m4
@@ -74,6 +74,15 @@ AC_DEFUN(AC_LIBTESTFUNC,
esac
])
+dnl Define an AC_DEFINE with ifndef guard.
+dnl AC_N_DEFINE(VARIABLE [, VALUE])
+define(AC_N_DEFINE,
+[cat >> confdefs.h <<\EOF
+[#ifndef] $1
+[#define] $1 ifelse($#, 2, [$2], $#, 3, [$2], 1)
+[#endif]
+EOF
+])
## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
## Copyright (C) 1996-1999 Free Software Foundation, Inc.