diff options
author | Gerald Carter <jerry@samba.org> | 2003-10-01 18:54:29 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-10-01 18:54:29 +0000 |
commit | aa7fccf6ad81da8a4a14abd699d1f765e18cd10c (patch) | |
tree | 953fc88010dab786bd85c0baea66c1f568aa39cb | |
parent | ceeb18d171d0e4ffc5c47ac4018909f266fd122c (diff) | |
download | samba-aa7fccf6ad81da8a4a14abd699d1f765e18cd10c.tar.gz |
save and restore CFLAGS before/after AC_PROG_CC; this macro seems to overwrite the CFLAGS variable
-rw-r--r-- | source/configure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/configure.in b/source/configure.in index 8c2e9e7f9bc..987e1ceb6be 100644 --- a/source/configure.in +++ b/source/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) |