svn commit: samba r25970 - in
branches/SAMBA_4_0/source/lib/replace: .
metze at samba.org
metze at samba.org
Thu Nov 15 14:46:48 GMT 2007
Author: metze
Date: 2007-11-15 14:46:47 +0000 (Thu, 15 Nov 2007)
New Revision: 25970
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25970
Log:
libreplace: fix AC_N_DEFINE() so that some appears in config.h
metze
Modified:
branches/SAMBA_4_0/source/lib/replace/libreplace_macros.m4
Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/libreplace_macros.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/libreplace_macros.m4 2007-11-15 13:16:31 UTC (rev 25969)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace_macros.m4 2007-11-15 14:46:47 UTC (rev 25970)
@@ -248,11 +248,18 @@
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]
+AC_DEFUN([AC_N_DEFINE],
+[
+AH_VERBATIM([$1], [
+#ifndef $1
+# undef $1
+#endif
+])
+
+ cat >>confdefs.h <<\EOF
+#ifndef $1
+[#define] $1 m4_if($#, 1, 1, [$2])
+#endif
EOF
])
More information about the samba-cvs
mailing list