Check for pkg-config before we use it and on all platforms

Previously, we would skip that check only on Windows but use the Check
for Packages macros anyway, so we required that also on Windows. Move
to the front, no need to check for its existence *after* we already
used it.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2010-12-10 15:49:18 +01:00
parent fa4add3e07
commit 384bafebf5

View file

@ -1331,6 +1331,9 @@ if test -z "$GNUTAR"; then
fi
AC_SUBST(GNUTAR)
# Do we have pkg-config?
PKG_PROG_PKG_CONFIG
dnl ===================================================================
dnl Checks for --with-local-solenv invocation
dnl TODO: Is this still required?
@ -3917,16 +3920,6 @@ else
AC_MSG_ERROR([too old, you need at least 3.0.0])
fi
dnl ===================================================================
dnl Check for pkg-config
dnl # Note that if there is a possibility the first call to
dnl # PKG_CHECK_MODULES might not happen, you should be sure to include an
dnl # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
dnl ===================================================================
if test "$_os" != "WINNT"; then
PKG_PROG_PKG_CONFIG
fi
dnl ===================================================================
dnl Check for building stax
dnl ===================================================================