From ad5959e86066512dcade49b28bff6ac3efedccb6 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Fri, 5 Nov 2010 11:36:20 +0000 Subject: [PATCH] Really fail if pkg-config is not present. Submitted by: Amnesia, bigjay via IRC. --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d0818a4..458fdb0 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,10 @@ case "$host" in ;; esac -AC_PATH_PROG(PKG_CONFIG, pkg-config, [AC_MSG_ERROR([pkg-config not found.])]) +AC_PATH_PROG(PKG_CONFIG, pkg-config) +if test x"$PKG_CONFIG" = x""; then + AC_MSG_ERROR([pkg-config not found.]) +fi # Checks for header files. AC_HEADER_STDC