]> git.draconx.ca Git - liblbx.git/commitdiff
build: Reset pkg_failed before checking pkg-config.
authorNick Bowler <nbowler@draconx.ca>
Thu, 11 Mar 2010 01:04:16 +0000 (20:04 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 11 Mar 2010 01:04:16 +0000 (20:04 -0500)
If this is not done, the first pkg-config check to fail will cause all
subsequent pkg-config checks to "fail".

m4/dxutils.m4

index 4349ca60de1606a92bd7bf9d25449aa57c41c8e9..77cb899cebfb65c9885f705165b5dcfc8c3b2eac 100644 (file)
@@ -17,6 +17,7 @@ ifelse([$2], [], [], [dnl
 AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 if test x"$PKG_CONFIG" != x; then
        AC_MSG_CHECKING([pkg-config database for $2])
+       pkg_failed=no
        _PKG_CONFIG(m4_tolower([$1])[_cflags], [cflags], [$2])
        _PKG_CONFIG(m4_tolower([$1])[_libs],   [libs],   [$2])
        if test x$pkg_failed = xyes; then