about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-02-27 10:17:38 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-02-27 10:17:38 +0000
commit03fa6dd95054344de34a2dc81323e6d54e2bc5ae (patch)
tree45a8a454419db6b95f74accb2447091f65a8d09c
parent0af7a9f7ffd70d766d56a2853454257892214afd (diff)
downloadzsh-03fa6dd95054344de34a2dc81323e6d54e2bc5ae.tar.gz
zsh-03fa6dd95054344de34a2dc81323e6d54e2bc5ae.tar.xz
zsh-03fa6dd95054344de34a2dc81323e6d54e2bc5ae.zip
19478: pcre configuration problem
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d0217022c..a785b4260 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-27  Peter Stephenson  <pws@csr.com>
+
+	* 19478: configure.ac: make pcre put its flag into
+	CPPFLAGS so preprocessor can find them.
+
 2004-02-26  Wayne Davison  <wayned@users.sourceforge.net>
 
 	* unposted: Src/Modules/zpty.c: silenced a compiler warning
diff --git a/configure.ac b/configure.ac
index 740e98067..b80ff0c87 100644
--- a/configure.ac
+++ b/configure.ac
@@ -496,8 +496,12 @@ AC_HEADER_SYS_WAIT
 
 oldcflags="$CFLAGS"
 AC_CHECK_PROG([PCRECONF], pcre-config, pcre-config)
+dnl Typically (meaning on this single RedHat 9 box in front of me)
+dnl pcre-config --cflags produces a -I output which needs to go into
+dnl CPPFLAGS else configure's preprocessor tests don't pick it up,
+dnl producing a warning.
 if test "x$ac_cv_prog_PCRECONF" = xpcre-config; then
-  CFLAGS="$CFLAGS `pcre-config --cflags`"
+  CPPFLAGS="$CPPFLAGS `pcre-config --cflags`"
 fi
 
 AC_CHECK_HEADERS(sys/time.h sys/times.h sys/select.h termcap.h termio.h \