aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac7
1 files changed, 2 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 66ed2c9..b190f4a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,11 +29,8 @@ case ${host_os} in
;;
esac
-AC_CHECK_TOOL([PKGCONFIG], [${ac_cv_host}-pkg-config], [no])
-AS_IF([test "x${PKGCONFIG}" = xno],
- [ PKGCONFIG=''
- AC_CHECK_TOOL([PKGCONFIG], [pkg-config], [no]) ])
-AS_IF([test "x${PKGCONFIG}" = xno], [ AC_MSG_ERROR([pkg-config not found]) ])
+AC_CHECK_TOOL([PKGCONFIG], [pkg-config], [:])
+AS_IF([test "x${PKGCONFIG}" = x], [ AC_MSG_ERROR([pkg-config not found]) ])
dnl check for -std=gnu99
CFLAGS="-pedantic -Wall -std=gnu99 -D_GNU_SOURCE=1 $CFLAGS"