]> err.no Git - pkg-config/commitdiff
Look at XXX_CFLAGS and XXX_LIBS again
authorTollef Fog Heen <tfheen@err.no>
Wed, 21 Sep 2005 13:12:35 +0000 (13:12 +0000)
committerTollef Fog Heen <tfheen@err.no>
Wed, 21 Sep 2005 13:12:35 +0000 (13:12 +0000)
2005-09-21  Tollef Fog Heen  <tfheen@err.no>

* pkg.m4: Apply patch from Roberto Huelga to look at XXX_CFLAGS
and XXX_LIBS which got lost somewhere.

ChangeLog
pkg.m4

index 5a6e4bef87877373666b210ae1c95758e39e0080..4a1f5e87fb945f10770319819d4be3f6e7bf2d87 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-21  Tollef Fog Heen  <tfheen@err.no>
+
+       * pkg.m4: Apply patch from Roberto Huelga to look at XXX_CFLAGS
+       and XXX_LIBS which got lost somewhere.
+
 2005-08-27  Tollef Fog Heen  <tfheen@err.no>
 
        * Makefile.am (AM_CFLAGS): Add default CFLAGS
diff --git a/pkg.m4 b/pkg.m4
index 6c35916f6b46e62686b9ab9dfb2d1e1025d5f707..3c20213900712b0b6b87f5cf3eb1d0db3a1a80ab 100644 (file)
--- a/pkg.m4
+++ b/pkg.m4
@@ -67,9 +67,13 @@ fi])
 # ---------------------------------------------
 m4_define([_PKG_CONFIG],
 [if test -n "$PKG_CONFIG"; then
+    if test -n "$$1"; then
+        pkg_cv_[]$1="$$1"
+    else
         PKG_CHECK_EXISTS([$3],
                          [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
                         [pkg_failed=yes])
+    fi
 else
        pkg_failed=untried
 fi[]dnl