From: Miroslav Lichvar Date: Mon, 3 Dec 2012 20:04:56 +0000 (+0100) Subject: Don't override user-specified CFLAGS. X-Git-Tag: 1.3.0pre1~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18e01547aca17f638917f875a312f027d779dff4;p=platform%2Fupstream%2Fflac.git Don't override user-specified CFLAGS. --- diff --git a/configure.ac b/configure.ac index 2db9035..f4a31e4 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,8 @@ AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([foreign -Wall tar-pax no-dist-gzip dist-xz subdir-objects]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) +user_cflags=$CFLAGS + #Prefer whatever the current ISO standard is. AC_PROG_CC_STDC AC_USE_SYSTEM_EXTENSIONS @@ -346,7 +348,9 @@ if test "x$debug" = xtrue; then else CPPFLAGS="-DNDEBUG $CPPFLAGS" if test "x$GCC" = xyes; then - CFLAGS="-O3 -funroll-loops -Wall -W -Winline $CFLAGS" + if test "x$user_cflags" = x; then + CFLAGS="-O3 -funroll-loops -Wall -W -Winline" + fi fi fi