From ad9a08250169daeb163a951c491cdc740afda34c Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 31 May 2017 16:24:04 +0200 Subject: [PATCH] build: fix pcreposix check pcreposix_regexec doesn't exist (anymore?), it's just regexec. Also, if the user specifies --enable-pcreposix, not finding it is a fatal error. Signed-off-by: David Lamparter --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 9b4af1f2bf..9b0f627362 100755 --- a/configure.ac +++ b/configure.ac @@ -1271,8 +1271,9 @@ dnl --------------------------- dnl check system has PCRE regexp dnl --------------------------- if test "x$enable_pcreposix" = "xyes"; then - AC_CHECK_LIB(pcreposix, pcreposix_regexec, ,[enable_pcreposix=no - AC_MSG_WARN([*** falling back to other regex library ***]) ]) + AC_CHECK_LIB(pcreposix, regexec, [], [ + AC_MSG_ERROR([--enable-pcreposix given but unable to find libpcreposix]) + ]) fi AC_SUBST(HAVE_LIBPCREPOSIX) -- 2.39.5