From: Michael Adam Date: Tue, 19 Feb 2008 15:35:55 +0000 (+0100) Subject: Move the --enable-debug check up above all compiler checks. X-Git-Tag: samba-3.2.0pre2~37^2~160^2~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb74f8dd6a612db0d79b091dd9972bb3204818fb;p=thirdparty%2Fsamba.git Move the --enable-debug check up above all compiler checks. Michael --- diff --git a/source/configure.in b/source/configure.in index e9b93eeb4ba..4a9dc0c1392 100644 --- a/source/configure.in +++ b/source/configure.in @@ -267,6 +267,15 @@ AC_SUBST(cachedir) AC_SUBST(rootsbindir) AC_SUBST(pammodulesdir) +## check for --enable-debug first before checking CFLAGS before +## so that we don't mix -O and -g +debug=no +AC_ARG_ENABLE(debug, +[AS_HELP_STRING([--enable-debug], [Turn on compiler debugging information (default=no)])], + [if eval "test x$enable_debug = xyes"; then + debug=yes + fi]) + AC_ARG_WITH(cfenc, [AS_HELP_STRING([--with-cfenc=HEADERDIR], [Use internal CoreFoundation encoding API for optimization (Mac OS X/Darwin only)])], [ @@ -408,15 +417,6 @@ AC_SUBST(EXTRA_ALL_TARGETS) AC_SUBST(CONFIG_LIBS) AC_SUBST(NSCD_LIBS) -## check for --enable-debug first before checking CFLAGS before -## so that we don't mix -O and -g -debug=no -AC_ARG_ENABLE(debug, -[AS_HELP_STRING([--enable-debug], [Turn on compiler debugging information (default=no)])], - [if eval "test x$enable_debug = xyes"; then - debug=yes - fi]) - # compile with optimization and without debugging by default, but # allow people to set their own preference. # do this here since AC_CACHE_CHECK apparently sets the CFLAGS to "-g -O2"