From d094fca4601193083ba9d79133259557c4cee8f0 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 27 Dec 2014 15:17:07 -0800 Subject: Check for pkg-config. The configure script uses pkg-config unconditionally, so you need it if you're going to build Wireshark with the autotools. Change-Id: Ibb0e5e37651256c7134303c8176f30a9150af699 Reviewed-on: https://code.wireshark.org/review/6085 Reviewed-by: Guy Harris --- autogen.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 4850c94f3f..cbe7e51b7a 100755 --- a/autogen.sh +++ b/autogen.sh @@ -34,6 +34,7 @@ ACLOCAL=aclocal$AM_VERSION AUTOHEADER=autoheader AUTOMAKE=automake$AM_VERSION AUTOCONF=autoconf +PKG_CONFIG=pkg-config # Check for python. Python did not support --version before version 2.5. # Until we require a version > 2.5, we should use -V. @@ -118,6 +119,20 @@ _EOF_ ;; esac +# +# XXX - is there some minimum version for which we should be checking? +# +PCVER=`pkg-config --version` +if test -z "$PCVER"; then + cat >&2 <<_EOF_ + + You must have pkg-config installed to compile $PROJECT. + Download the appropriate package for your distribution/OS, + or get the source tarball at http://pkgconfig.freedesktop.org/releases/ +_EOF_ + DIE="exit 1" +fi + $DIE aclocal_flags=`./aclocal-flags` -- cgit v1.2.3