We require pkg-config to check for, for example, GLib.
authorGuy Harris <guy@alum.mit.edu>
Sat, 27 Dec 2014 23:02:56 +0000 (15:02 -0800)
committerGuy Harris <guy@alum.mit.edu>
Sat, 27 Dec 2014 23:03:56 +0000 (23:03 +0000)
If the check for pkg-config fails, quit immediately; don't leave the
failure message for later, as the error message in question might not be
as blunt.

Change-Id: I530e8b62f5adff228ae8ff6f9798ac538c2ad684
Reviewed-on: https://code.wireshark.org/review/6084
Reviewed-by: Guy Harris <guy@alum.mit.edu>
configure.ac

index 4a71282f916d589534af463095b379fda850f29c..89a15d44478e32a1fca70b05762adc53bb9d9155 100644 (file)
@@ -239,6 +239,9 @@ AM_CONDITIONAL(HAVE_DOXYGEN, test x$HAVE_DOXYGEN = xyes)
 # the comments in acolocal.m4
 #
 PKG_PROG_PKG_CONFIG
+if test -z "$PKG_CONFIG"; then
+       AC_MSG_ERROR(I couldn't find pkg-config; make sure it's installed and in your path)
+fi
 
 AC_ARG_ENABLE(osx-deploy-target,
   AC_HELP_STRING( [--enable-osx-deploy-target],