From 25f45887abf320401745dd433c4e82bfd6db5d4d Mon Sep 17 00:00:00 2001 From: Jeremy Jackson Date: Mon, 12 Jan 2009 16:06:12 -0500 Subject: [configure] add configure support for PCRE Posix library Debian tried unsuccessfully to build with libpcreposix. This adds proper support to autoconf/configure.ac for it. Based on the patch by C.J. Adams-Collier in bug #483. bgpd/bgp_{regex,routemap}.h: Pull in PCRE POSIX header if available. --- bgpd/bgp_regex.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'bgpd/bgp_regex.h') diff --git a/bgpd/bgp_regex.h b/bgpd/bgp_regex.h index 176b65a1..9fc83222 100644 --- a/bgpd/bgp_regex.h +++ b/bgpd/bgp_regex.h @@ -23,11 +23,15 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #include -#ifdef HAVE_GNU_REGEX -#include +#ifdef HAVE_LIBPCREPOSIX +# include #else -#include "regex-gnu.h" -#endif /* HAVE_GNU_REGEX */ +# ifdef HAVE_GNU_REGEX +# include +# else +# include "regex-gnu.h" +# endif /* HAVE_GNU_REGEX */ +#endif /* HAVE_LIBPCREPOSIX */ extern void bgp_regex_free (regex_t *regex); extern regex_t *bgp_regcomp (const char *str); -- cgit v1.2.1