From 0e7c67067b11e2db06bfc6a05798559a7e44a25f Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Sat, 27 Dec 2008 10:07:46 +0100 Subject: Check for pkg-config before using it --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index dc9d60509..b5dfbbd77 100644 --- a/configure.ac +++ b/configure.ac @@ -272,6 +272,9 @@ AC_CHECK_LIB(nsl,gethostbyname,MPD_LIBS="$MPD_LIBS -lnsl",) AC_CHECK_LIB(m,exp,MPD_LIBS="$MPD_LIBS -lm",) AC_CHECK_FUNCS(setenv) +# Check for pkg-config before using it +PKG_PROG_PKG_CONFIG + PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.4 gthread-2.0],, [AC_MSG_ERROR([glib-2.4 is required])]) -- cgit v1.2.3