about summary refs log tree commit diff
path: root/zshconfig.ac
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2003-01-30 15:30:45 +0000
committerClint Adams <clint@users.sourceforge.net>2003-01-30 15:30:45 +0000
commitdae757646ada3aae9b2f12a7a1d81e3744196fb8 (patch)
treebd587d28599c43a2e6d70b72aebd9fda10833659 /zshconfig.ac
parent1c9fc3f3be22a8d6f96d766efbfe691d1394f2c0 (diff)
downloadzsh-dae757646ada3aae9b2f12a7a1d81e3744196fb8.tar.gz
zsh-dae757646ada3aae9b2f12a7a1d81e3744196fb8.tar.xz
zsh-dae757646ada3aae9b2f12a7a1d81e3744196fb8.zip
18131: find pcre on RedHat.
Diffstat (limited to 'zshconfig.ac')
-rw-r--r--zshconfig.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/zshconfig.ac b/zshconfig.ac
index b3ab7dca8..266630af2 100644
--- a/zshconfig.ac
+++ b/zshconfig.ac
@@ -482,6 +482,13 @@ AC_HEADER_STDC
 AC_HEADER_TIME
 AC_HEADER_STAT
 AC_HEADER_SYS_WAIT
+
+oldcflags="$CFLAGS"
+AC_CHECK_PROG([PCRECONF], pcre-config, pcre-config)
+if test "x$ac_cv_prog_PCRECONF" = xpcre-config; then
+  CFLAGS="$CFLAGS `pcre-config --cflags`"
+fi
+
 AC_CHECK_HEADERS(sys/time.h sys/times.h sys/select.h termcap.h termio.h \
 		 termios.h sys/param.h sys/filio.h string.h memory.h \
 		 limits.h fcntl.h libc.h sys/utsname.h sys/resource.h \