Commit 03ee6b54 authored by Sandro Santilli's avatar Sandro Santilli

Use PKG_PROG_PKG_CONFIG macro from pkg.m4 to detect pkg-config

Patch by Bas Couwenberg
Closes #3992

git-svn-id: http://svn.osgeo.org/postgis/trunk@16324 b70326c6-7e19-0410-871a-916f4a2858ee
parent b372f9c8
Pipeline #16237916 passed with stage
in 17 minutes and 57 seconds
......@@ -907,13 +907,12 @@ AC_SUBST([HAVE_JSON])
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 @@ if test "$CHECK_PROTOBUF" != "no"; then
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment