]> granicus.if.org Git - apache/commitdiff
Need to preserve --with-pcre value if not a path ref
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 12 Dec 2016 20:51:17 +0000 (20:51 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 12 Dec 2016 20:51:17 +0000 (20:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1773870 13f79535-47bb-0310-9956-ffa450edef68

configure.in

index 659f6e61dc29fa69749a996e1beb29cc1d62c92e..19ce9e73741c8ca0caba3e3fe4fe0bdabbeed9b7 100644 (file)
@@ -224,9 +224,10 @@ AC_ARG_WITH(pcre,
 APACHE_HELP_STRING(--with-pcre=PATH,Use external PCRE library))
 if test "x$with_pcre" = "x" || test "$with_pcre" = "yes"; then
   with_pcre="$PATH"
-else
+else if which $with_pcre 2>/dev/null; then :; else
   with_pcre="$with_pcre/bin:$with_pcre"
 fi
+fi
 
 AC_CHECK_TARGET_TOOLS(PCRE_CONFIG, [pcre2-config pcre-config],
                       [`which $with_pcre 2>/dev/null`], $with_pcre)