summaryrefslogtreecommitdiff
path: root/src/pcresearch.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-03-30 07:59:05 +0200
committerJim Meyering <meyering@redhat.com>2010-03-30 08:00:50 +0200
commit4007d6ed26e0dbd22b5b5cd3914292e32ecd2028 (patch)
tree8c2f29c8ea7e1898c1f9483a8468b50318dd503e /src/pcresearch.c
parent2c20c9617a8f85ab58e0795fdf458917573e3935 (diff)
downloadgrep-4007d6ed26e0dbd22b5b5cd3914292e32ecd2028.tar.gz
build: detect PCRE support also when <pcre/pcre.h> is the header
* m4/pcre.m4: Also check for <pcre/pcre.h>. * src/pcresearch.c: Include <pcre/pcre.h>, if needed. Guard inclusions with HAVE_PCRE_H and HAVE_PCRE_PCRE_H, not HAVE_LIBPCRE. * NEWS (Bug fixes): Mention it. Dmitry V. Levin reported that PCRE support was not detected on systems with <pcre.h> not in the default include path.
Diffstat (limited to 'src/pcresearch.c')
-rw-r--r--src/pcresearch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pcresearch.c b/src/pcresearch.c
index 6a82be28..795f4c4c 100644
--- a/src/pcresearch.c
+++ b/src/pcresearch.c
@@ -20,8 +20,10 @@
#include <config.h>
#include "search.h"
-#if HAVE_LIBPCRE
+#if HAVE_PCRE_H
# include <pcre.h>
+#elif HAVE_PCRE_PCRE_H
+# include <pcre/pcre.h>
#endif
#if HAVE_LIBPCRE