]> git.puffer.fish Git - mirror/frr.git/commitdiff
build: fix pcreposix check 643/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 31 May 2017 14:24:04 +0000 (16:24 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 31 May 2017 14:24:04 +0000 (16:24 +0200)
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 <equinox@opensourcerouting.org>
configure.ac

index 9b4af1f2bf3cc8d4392d8b6b8d90f1960fef06d8..9b0f627362bf958bc00ff240f2918a41c1d76ebf 100755 (executable)
@@ -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)