changeset 375:cff0f07178d6

Add CFLAGS (like CXXFLAGS) to configure
author Chris Cannam
date Thu, 07 Aug 2014 19:34:35 +0100
parents 7284eef3c4ef
children 5ad35dc275c2
files configure configure.ac
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Aug 06 16:31:46 2014 +0100
+++ b/configure	Thu Aug 07 19:34:35 2014 +0100
@@ -3952,9 +3952,14 @@
     *[\ \	]-fPIC\ -Wall[\ \	]*) ;;
     *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;;
   esac
+  case " $CFLAGS " in
+    *[\ \	]-fPIC\ -Wall[\ \	]*) ;;
+    *) CFLAGS="$CFLAGS -fPIC -Wall" ;;
+  esac
 fi
 
 
+
 ac_config_files="$ac_config_files Makefile"
 
 cat >confcache <<\_ACEOF
--- a/configure.ac	Wed Aug 06 16:31:46 2014 +0100
+++ b/configure.ac	Thu Aug 07 19:34:35 2014 +0100
@@ -46,9 +46,14 @@
     *[\ \	]-fPIC\ -Wall[\ \	]*) ;;
     *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;;
   esac
+  case " $CFLAGS " in
+    *[\ \	]-fPIC\ -Wall[\ \	]*) ;;
+    *) CFLAGS="$CFLAGS -fPIC -Wall" ;;
+  esac
 fi
 changequote([,])dnl
 
 AC_SUBST(CXXFLAGS)
+AC_SUBST(CFLAGS)
 AC_OUTPUT([Makefile])