summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-01 00:52:37 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-01 01:07:11 +0200
commitff8ca58821276dd1eeaa20f7472e071cb253a3e5 (patch)
tree674cd78c07d426c493b8f6218e058320b6b7bf43 /configure.ac
parentecacdc65c3063be747b96541743b38bb68bdcd29 (diff)
configure: check for pkg-config presence
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 800a46a..1fa6157 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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