configure: check for pkg-config presence

Change-Id: If21ff26a836fd91021e0457ae0316be6b29b4577
This commit is contained in:
Neels Hofmeyr 2016-10-01 00:48:43 +02:00
parent f5d28602a7
commit 24796f2147
1 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,13 @@ AC_PROG_CC
AC_PROG_INSTALL
LT_INIT([pic-only])
dnl check for pkg-config (explained in detail in libosmocore/configure.ac)
AC_PATH_PROG(PKG_CONFIG_INSTALLED, pkg-config, no)
if test "x$PKG_CONFIG_INSTALLED" = "xno"; then
AC_MSG_WARN([You need to install pkg-config])
fi
PKG_PROG_PKG_CONFIG([0.20])
AC_CONFIG_MACRO_DIR([m4])
# The following test is taken from WebKit's webkit.m4