The --with-libpcre option is a synonym for the --with-libpcre1 flag,
but the configure script allowed for redundantly specifying both.

Nothing broke as a result of this, but it's confusing, so let's
disallow it.

Signed-off-by: Ævar Arnfjörð Bjarmason <>
--- | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ b/
index 41ceb2ac81..d1b3b143c4 100644
--- a/
+++ b/
@@ -280,6 +280,10 @@ AS_HELP_STRING([--with-libpcre],[synonym for 
 AS_HELP_STRING([--with-libpcre1],[support Perl-compatible regexes via libpcre1 
(default is NO)])
 AS_HELP_STRING([],           [ARG can be also prefix for libpcre library and 
+    if test -n "$USE_LIBPCRE1"; then
+        AC_MSG_ERROR([Only supply one of --with-libpcre or its synonym 
+    fi
     if test "$withval" = "no"; then
     elif test "$withval" = "yes"; then

Reply via email to