summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2010-02-09 12:21:34 -0800
committerNathan Kinder <nkinder@redhat.com>2010-02-09 12:21:34 -0800
commitf81e7eac08e2af16fa6b8d245525c4a5ac5eb6f7 (patch)
tree27690a5ee242ed4b28e3696b74b916f6d841084b /configure
parent571f580206b38cc92b87c7458a42f2b1a4789830 (diff)
downloadds-f81e7eac08e2af16fa6b8d245525c4a5ac5eb6f7.tar.gz
ds-f81e7eac08e2af16fa6b8d245525c4a5ac5eb6f7.tar.xz
ds-f81e7eac08e2af16fa6b8d245525c4a5ac5eb6f7.zip
Improve search for pcre header file
Some platforms (RHEL4 for instance) put the pcre header file in a pcre subdirectory under /usr/include. This patch makes configure first search in /usr/include/pcre, then falls back to /usr/include.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index e9647c2d..4b6db2d2 100755
--- a/configure
+++ b/configure
@@ -27061,7 +27061,12 @@ if test "${with_pcre+set}" = set; then
if test "$withval" = "yes"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
- if test -f "/usr/include/pcre.h"; then
+ if test -f "/usr/include/pcre/pcre.h"; then
+ pcre_incdir="/usr/include/pcre"
+ pcre_inc="-I/usr/include/pcre"
+ pcre_lib='-L$(libdir)'
+ pcre_libdir='$(libdir)'
+ elif test -f "/usr/include/pcre.h"; then
pcre_incdir="/usr/include"
pcre_inc="-I/usr/include"
pcre_lib='-L$(libdir)'