r18381: make sure autoconf doesn't add '-O2' to CFLAGS
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Sep 2006 12:47:40 +0000 (12:47 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:18:21 +0000 (14:18 -0500)
metze
(This used to be commit ec6365b5f18eea7035b6963c8005e75b9f4e3437)

source4/lib/replace/libreplace.m4

index b428870a87316cb72004a2e01c73a5ca5826fda7..52e1b5fe1d185d2e697cf12d5df067eff9371990 100644 (file)
@@ -15,11 +15,12 @@ dnl stop the C89 attempt by autoconf - if autoconf detects -Ae it will enable it
 dnl which conflicts with C99 on HPUX
 ac_cv_prog_cc_Ae=no
 
-dnl needed before AC_TRY_COMPILE
+savedCFLAGS=$CFLAGS
+AC_PROG_CC
+CFLAGS=$savedCFLAGS
 AC_ISC_POSIX
 AC_USE_SYSTEM_EXTENSIONS
 AC_PROG_CC_C99
-AC_PROG_CC
 AC_C_INLINE
 AC_PROG_INSTALL