svn commit: samba r7419 - in branches/SAMBA_4_0/source/build/m4: .

tridge at samba.org tridge at samba.org
Thu Jun 9 04:24:23 GMT 2005


Author: tridge
Date: 2005-06-09 04:24:22 +0000 (Thu, 09 Jun 2005)
New Revision: 7419

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7419

Log:
when we have both --enable-developer and --enable-debug we don't need -g twice in the
CFLAGS

Modified:
   branches/SAMBA_4_0/source/build/m4/check_path.m4


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/check_path.m4
===================================================================
--- branches/SAMBA_4_0/source/build/m4/check_path.m4	2005-06-09 02:47:26 UTC (rev 7418)
+++ branches/SAMBA_4_0/source/build/m4/check_path.m4	2005-06-09 04:24:22 UTC (rev 7419)
@@ -130,23 +130,24 @@
 AC_SUBST(sbindir)
 AC_SUBST(swatdir)
 
-debug=no
-AC_ARG_ENABLE(debug, 
-[  --enable-debug          Turn on compiler debugging information (default=no)],
-    [if eval "test x$enable_debug = xyes"; then
-        debug=yes
-	CFLAGS="${CFLAGS} -g"
-    fi])
-
 developer=no
 AC_ARG_ENABLE(developer, [  --enable-developer      Turn on developer warnings and debugging (default=no)],
-    [if eval "test x$enable_developer = xyes"; then
+    [if test x$enable_developer = xyes; then
 	debug=yes
 	CFLAGS="${CFLAGS} -g -Wall"
         developer=yes
     	DEVELOPER_CFLAGS="-Wshadow -Werror-implicit-function-declaration -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wdeclaration-after-statement -Wmissing-format-attribute -Wformat=2 -Wno-format-y2k -DDEBUG_PASSWORD -DDEVELOPER"
     fi])
 
+debug=no
+AC_ARG_ENABLE(debug, 
+[  --enable-debug          Turn on compiler debugging information (default=no)],
+    [if test x$enable_debug = xyes -a test x$enable_developer != xyes; then
+        debug=yes
+	CFLAGS="${CFLAGS} -g"
+    fi])
+
+
 experimental=no
 AC_ARG_ENABLE(experimental, [  --enable-experimental Turn on experimental features (default=no)],
     [if eval "test x$enable_experimental = xyes"; then



More information about the samba-cvs mailing list