configure: check for pkg-config presence

Change-Id: Iaca22089bcb21b56048fa541f588c4ad4bed8f6d
This commit is contained in:
Neels Hofmeyr 2016-10-01 00:52:37 +02:00
parent ecacdc65c3
commit ff8ca58821
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,13 @@ AC_CONFIG_AUX_DIR([.])
AM_INIT_AUTOMAKE([dist-bzip2])
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])
dnl kernel style compile messages
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PROG_CC