[glib] Modernize pkg-config check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Modernize pkg-config check
- Date: Thu, 5 Aug 2010 05:47:32 +0000 (UTC)
commit 530f67384ea656ef9a5d8c05df5c35a9bf2a5ec0
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 5 01:45:26 2010 -0400
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.
configure.ac | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4974a40..8d7c725 100644
--- a/configure.ac
+++ b/configure.ac
@@ -277,19 +277,7 @@ AC_PROG_INSTALL
AC_SYS_LARGEFILE
-#
-# 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
+PKG_PROG_PKG_CONFIG(0.16)
if test "x$enable_debug" = "xyes"; then
if test x$cflags_set != xset ; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]