summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-10-01 18:54:06 +0000
committerGerald Carter <jerry@samba.org>2003-10-01 18:54:06 +0000
commit96128e1ea7b10f0ac437b078994acec28ef415e5 (patch)
treea454cb0c94d48715f5f8eedf8ac5e0c56005904d /source3
parentcd66557d20ccde4393a11b35c12758387da6ba2c (diff)
downloadsamba-96128e1ea7b10f0ac437b078994acec28ef415e5.tar.gz
samba-96128e1ea7b10f0ac437b078994acec28ef415e5.tar.bz2
samba-96128e1ea7b10f0ac437b078994acec28ef415e5.zip
save and restore CFLAGS before/after AC_PROG_CC; this macro seems to overwrite the CFLAGS variable
(This used to be commit dbf7fc4feb7f9c7cb720ce2dcbc8bb16badfe1f2)
Diffstat (limited to 'source3')
-rw-r--r--source3/configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 8f6c8452e3..7bbbb2ab31 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -166,6 +166,7 @@ AC_SUBST(EXTRA_ALL_TARGETS)
AC_ARG_ENABLE(debug,
[ --enable-debug Turn on compiler debugging information (default=no)],
[if eval "test x$enable_debug = xyes"; then
+ echo "DEBUGGING TURNED ON!!!!"
CFLAGS="${CFLAGS} -g"
fi])
@@ -192,7 +193,15 @@ then
fi
dnl Checks for programs.
+
+##
+## for some reason this macro resets the CFLAGS
+## so save and restore
+##
+OLD_CFLAGS=${CFLAGS}
AC_PROG_CC
+CFLAGS=${OLD_CFLAGS}
+
AC_PROG_INSTALL
AC_PROG_AWK
AC_PATH_PROG(PERL, perl)