Modernize pkg-config check

As pointed out in bug 599590, our hand-rolled check fails to find
cross-complication variants of pkg-config like i686-pc-mingw32-pkg-config.
This commit is contained in:
Matthias Clasen 2010-08-05 01:45:26 -04:00
parent 3e8a9c7b52
commit 530f67384e

View File

@ -277,19 +277,7 @@ AC_PROG_INSTALL
AC_SYS_LARGEFILE AC_SYS_LARGEFILE
# PKG_PROG_PKG_CONFIG(0.16)
# Find pkg-config
#
AC_PATH_PROG(PKG_CONFIG, [pkg-config], [no])
if test x$PKG_CONFIG = xno ; then
AC_MSG_ERROR([*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/])
fi
if $PKG_CONFIG --atleast-pkgconfig-version 0.16 ; then
:
else
AC_MSG_ERROR([*** pkg-config too old; version 0.16 or better required.])
fi
if test "x$enable_debug" = "xyes"; then if test "x$enable_debug" = "xyes"; then
if test x$cflags_set != xset ; then if test x$cflags_set != xset ; then