diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/configure.in | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/configure.in b/source3/configure.in index fa8e99c3a4..e6189aa06f 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -159,9 +159,6 @@ AC_SUBST(EXTRA_BIN_PROGS) AC_SUBST(EXTRA_SBIN_PROGS) AC_SUBST(EXTRA_ALL_TARGETS) -# compile with optimization and without debugging by default -CFLAGS="-O ${CFLAGS}" - AC_ARG_ENABLE(debug, [ --enable-debug Turn on compiler debugging information (default=no)], [if eval "test x$enable_debug = xyes"; then @@ -194,6 +191,13 @@ AC_PROG_INSTALL AC_PROG_AWK AC_PATH_PROG(PERL, perl) +# compile with optimization and without debugging by default, but +# allow people to set their own preference. +if test "x$CFLAGS" = x +then + CFLAGS="-O ${CFLAGS}" +fi + dnl Check if we use GNU ld LD=ld AC_PROG_LD_GNU |