From b641864b0250923e279dadd1866c7b8cea6c1372 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 31 Aug 2009 20:30:46 +0200 Subject: check if libpcre version is above or below 7 PCRE_DUPNAMES is a new feature of libpcre 7. It is used in sssd to make the splitting of fully qualified user names more flexible. --- server/external/libpcre.m4 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'server/external/libpcre.m4') diff --git a/server/external/libpcre.m4 b/server/external/libpcre.m4 index bda7a6b6e..5917c8cfd 100644 --- a/server/external/libpcre.m4 +++ b/server/external/libpcre.m4 @@ -3,7 +3,13 @@ AC_SUBST(PCRE_OBJ) AC_SUBST(PCRE_LIBS) AC_SUBST(PCRE_CFLAGS) -PKG_CHECK_MODULES(PCRE, libpcre >= 7) +PKG_CHECK_MODULES(PCRE, libpcre) +PKG_CHECK_EXISTS(libpcre >= 7, + [AC_MSG_NOTICE([PCRE version is 7 or higher])], + [AC_MSG_NOTICE([PCRE version is below 7]) + AC_DEFINE([HAVE_LIBPCRE_LESSER_THAN_7], + 1, + [Define if libpcre version is less than 7])]) AC_CHECK_HEADERS(pcre.h) AC_CHECK_LIB(pcre, pcre_compile, [ PCRE_LIBS="-lpcre" ], [AC_MSG_ERROR([PCRE is required])]) -- cgit