diff configure.ac @ 670:9e29bf7ce1ff

* Permit user CFLAGS, if given, to override our CXXFLAGS if no user CXXFLAGS is given
author Chris Cannam
date Tue, 08 Mar 2011 10:21:21 +0000
parents 1bb85de8c5b9
children 97fbb6b3e749
line wrap: on
line diff
--- a/configure.ac	Wed Mar 02 15:39:43 2011 +0000
+++ b/configure.ac	Tue Mar 08 10:21:21 2011 +0000
@@ -11,6 +11,13 @@
 # piddling about.
 USER_CXXFLAGS="$CXXFLAGS"
 
+# If the user supplied CFLAGS but not CXXFLAGS, use CFLAGS instead
+if test x"$USER_CXXFLAGS" = x; then
+   if test x"$CFLAGS" != x; then
+      USER_CXXFLAGS="$CFLAGS"
+   fi
+fi
+
 AC_LANG_CPLUSPLUS
 
 AC_PROG_CC