changeset 10341:43145faf9af8

Move $(pcre_config --cflags) from CPPFLAGS to XTRA_CXXFLAGS
author Michael Goffioul <michael.goffioul@gmail.com>
date Sun, 21 Feb 2010 17:27:57 +0000
parents 36317747577a
children 7f6b4c6838ea
files ChangeLog configure.ac
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-21  Michael Goffioul  <michael.goffioul@gmail.com>
+
+	* configure.ac: Add pcre_config --cflags to XTRA_CXXFLAGS instead of
+	CPPFLAGS.
+
 2010-02-17  John W. Eaton  <jwe@octave.org>
 
 	* configure.ac: Add $COLAMD_LDFLAGS $COLAMD_LIBS $AMD_LDFLAGS,
--- a/configure.ac
+++ b/configure.ac
@@ -615,10 +615,10 @@
 
 ### Check for pcre/regex library.
 
-## check for pcre-config, and if so, set CPPFLAGS appropriately
+## check for pcre-config, and if so, set XTRA_CXXFLAGS appropriately
 AC_CHECK_PROG(WITH_PCRE_CONFIG, pcre-config, yes, no)
 if test $WITH_PCRE_CONFIG = yes ; then
-  CPPFLAGS="$CPPFLAGS $(pcre-config --cflags)"
+  XTRA_CXXFLAGS="$XTRA_CXXFLAGS $(pcre-config --cflags)"
 fi
 
 ## NB: no need to do separate check for pcre.h header -- checking macros is good enough