summaryrefslogtreecommitdiff
path: root/source3/configure.in
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-10-01 18:54:29 +0000
committerGerald Carter <jerry@samba.org>2003-10-01 18:54:29 +0000
commit4d0f0c0594c5a81e22686ff006ff689a2ca1fe47 (patch)
tree8ec5b4bfa3dd7892fef182d2933a1dd2b798c7ff /source3/configure.in
parent411c7463fbbf36462c34c9cbf90405472f12c2db (diff)
downloadsamba-4d0f0c0594c5a81e22686ff006ff689a2ca1fe47.tar.gz
samba-4d0f0c0594c5a81e22686ff006ff689a2ca1fe47.tar.bz2
samba-4d0f0c0594c5a81e22686ff006ff689a2ca1fe47.zip
save and restore CFLAGS before/after AC_PROG_CC; this macro seems to overwrite the CFLAGS variable
(This used to be commit aa7fccf6ad81da8a4a14abd699d1f765e18cd10c)
Diffstat (limited to 'source3/configure.in')
-rw-r--r--source3/configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 8c2e9e7f9b..987e1ceb6b 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)