svn commit: samba r19245 - in
branches/SAMBA_4_0/source/lib/replace: .
metze at samba.org
metze at samba.org
Wed Oct 11 13:36:37 GMT 2006
Author: metze
Date: 2006-10-11 13:36:37 +0000 (Wed, 11 Oct 2006)
New Revision: 19245
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19245
Log:
mrege from samba3:
add AC_REMOVE_INCLUDE(), AC_REMOVE_DEFINE() macros
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 2006-10-11 13:31:00 UTC (rev 19244)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace_macros.m4 2006-10-11 13:36:37 UTC (rev 19245)
@@ -264,6 +264,24 @@
EOF
])
+dnl remove an #include
+dnl AC_REMOVE_INCLUDE(VARIABLE)
+define(AC_REMOVE_INCLUDE,
+[
+grep -v '[#include] $1' confdefs.h >confdefs.h.tmp
+cat confdefs.h.tmp > confdefs.h
+rm confdefs.h.tmp
+])
+
+dnl remove an #define
+dnl AC_REMOVE_DEFINE(VARIABLE)
+define(AC_REMOVE_DEFINE,
+[
+grep -v '[#define] $1 ' confdefs.h |grep -v '[#define] $1[$]'>confdefs.h.tmp
+cat confdefs.h.tmp > confdefs.h
+rm confdefs.h.tmp
+])
+
dnl AS_HELP_STRING is not available in autoconf 2.57, and AC_HELP_STRING is deprecated
dnl in autoconf 2.59, so define AS_HELP_STRING to be AC_HELP_STRING unless it is already
dnl defined.
More information about the samba-cvs
mailing list