[experimental-ims] 8e5b998 Use a better way of checking we have pkg-config

Geoff Simmons geoff at varnish-cache.org
Mon Jan 9 21:52:26 CET 2012


commit 8e5b998b249c830a14bf76e05d506bd128de3ea9
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Tue Oct 18 20:29:53 2011 +0200

    Use a better way of checking we have pkg-config

diff --git a/configure.ac b/configure.ac
index 8295fbb..e0119f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -108,7 +108,7 @@ AC_SUBST(NET_LIBS)
 AC_CHECK_LIBM
 AC_SUBST(LIBM)
 
-m4_pattern_forbid([^_?PKG_[A-Z_]+$],[pkg.m4 missing, please install pkg-config])
+m4_ifndef([PKG_PROG_PKG_CONFIG], [m4_fatal([pkg.m4 missing, please install pkg-config])])
 PKG_PROG_PKG_CONFIG
 if test -n $PKG_CONFIG; then
    PKG_CHECK_MODULES([PCRE], [libpcre])



More information about the varnish-commit mailing list