From d0b6eb477712b707313dfb731e188ae5439b4cd0 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 1 Oct 2016 00:49:41 +0200 Subject: configure: check for pkg-config presence Change-Id: Ifaea95befa3d1d8f6f047e22efcd62cb0bd8b287 --- configure.ac | 7 +++++++ tests/osmo-pcap-test/configure.ac | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/configure.ac b/configure.ac index 135eb57..3994aff 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,13 @@ AC_PROG_INSTALL LT_INIT AC_PROG_LIBTOOL +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]) dnl checks for header files diff --git a/tests/osmo-pcap-test/configure.ac b/tests/osmo-pcap-test/configure.ac index 0d496db..47fbfe2 100644 --- a/tests/osmo-pcap-test/configure.ac +++ b/tests/osmo-pcap-test/configure.ac @@ -6,6 +6,13 @@ AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax no-dist-gzip dist-bzip2 1.6]) +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])]) -- cgit v1.2.3