pkg.m4 patch
Erik de Castro Lopo
mle+tools at mega-nerd.com
Fri Jun 27 17:37:12 PDT 2008
Hi all,
Please consider the following patch which improves reporting of
failures when package modversions don't match.
For instance using:
PKG_CHECK_MODULES(VORBIS, vorbis >= 1.2.1,
ac_cv_vorbis=yes, ac_cv_vorbis=no)
a failure due to mismatched versions will simply print:
checking for vorbis ... no
with the patch results in an improved message:
checking for vorbis >= 1.2.1 ... no
which is much easier for the end user to debug and which hence results
in less emails to me.
Patch follows.
Cheers,
Erik
diff -u /usr/share/aclocal/pkg.m4 M4/pkg.m4
--- /usr/share/aclocal/pkg.m4 2007-06-20 20:43:08.000000000 +1000
+++ M4/pkg.m4 2008-06-25 10:49:08.000000000 +1000
@@ -107,7 +107,7 @@
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
pkg_failed=no
-AC_MSG_CHECKING([for $1])
+AC_MSG_CHECKING([for $2 ])
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
A good debugger is no substitute for a good test suite.
More information about the pkg-config
mailing list