From e5fdbfe19de286f70dd8729e63caa07356e6add4 Mon Sep 17 00:00:00 2001 From: zimmerma Date: Mon, 14 May 2012 15:56:24 +0000 Subject: [configure.ac] only add warning flags to CFLAGS when the user did not define it (see http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-May/001115.html) git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1157 211d60ee-9f03-0410-a15a-8952a2c7a4e4 --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 6e5d127..4e2b35b 100644 --- a/configure.ac +++ b/configure.ac @@ -119,7 +119,12 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ ]) # Check if compiler accepts warning flags and add them to CFLAGS -MPC_C_CHECK_WARNINGCFLAGS +# Note: don't do this if the user defined CFLAGS, since adding new flags +# might override the user's settings, see +# http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-May/001115.html +if test -z "$CFLAGS"; then + MPC_C_CHECK_WARNINGCFLAGS +fi # Checks for header files. -- cgit v1.2.1