[postgis-tickets] r16324 - Use PKG_PROG_PKG_CONFIG macro from pkg.m4 to detect pkg-config
Sandro Santilli
strk at kbt.io
Tue Jan 16 12:47:02 PST 2018
Author: strk
Date: 2018-01-16 12:47:02 -0800 (Tue, 16 Jan 2018)
New Revision: 16324
Modified:
trunk/configure.ac
Log:
Use PKG_PROG_PKG_CONFIG macro from pkg.m4 to detect pkg-config
Patch by Bas Couwenberg
Closes #3992
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2018-01-16 17:24:00 UTC (rev 16323)
+++ trunk/configure.ac 2018-01-16 20:47:02 UTC (rev 16324)
@@ -907,13 +907,12 @@
fi
-
dnl ===========================================================================
dnl Detect if pkg-config installed
dnl ===========================================================================
# check for pkg-config
-AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-if test "$PKG_CONFIG" = "no"; then
+PKG_PROG_PKG_CONFIG
+if test -z "$PKG_CONFIG"; then
AC_MSG_WARN([Cannot find pkg-config, make sure it is installed in your PATH])
fi
@@ -970,7 +969,7 @@
dnl No user-specified protobuf dir, try to find one using pkg-config
else
- if test "$PKG_CONFIG" = "no"; then
+ if test -z "$PKG_CONFIG"; then
AC_MSG_WARN([Cannot find pkg-config, disabling protobuf support.])
HAVE_PROTOBUF=no
else
More information about the postgis-tickets
mailing list