* pkg.m4: Correct quoting brackets to correctly split t...

Author: keybuk
Date: 2004-07-06 17:31:17 GMT
* pkg.m4: Correct quoting brackets to correctly split the words.
This commit is contained in:
Arch Librarian 2005-07-14 13:06:03 +00:00
parent 92170d7ef4
commit edfd0d3f77
2 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,7 @@
2004-07-06 Scott James Remnant <scott@netsplit.com>
* pkg.m4: Correct quoting brackets to correctly split the words.
2004-06-08 Scott James Remnant <scott@netsplit.com>
* README: Change gnome.org reference to freedesktop.org

12
pkg.m4
View file

@ -64,14 +64,14 @@ fi[]dnl
# --------------------------------------------------------------
AC_DEFUN([PKG_CHECK_MODULES],
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
AC_ARG_VAR([$1[]_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
AC_ARG_VAR([$1[]_LIBS], [linker flags for $1, overriding pkg-config])dnl
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
pkg_failed=no
AC_CACHE_CHECK([for $1[]_CFLAGS], [pkg_cv_[]$1[]_CFLAGS],
[_PKG_CONFIG([$1[]_CFLAGS], [cflags], [[$2]])])
AC_CACHE_CHECK([for $1[]_LIBS], [pkg_cv_[]$1[]_LIBS],
[_PKG_CONFIG([$1[]_LIBS], [libs], [[$2]])])
AC_CACHE_CHECK([for $1][_CFLAGS], [pkg_cv_][$1][_CFLAGS],
[_PKG_CONFIG([$1][_CFLAGS], [cflags], [[$2]])])
AC_CACHE_CHECK([for $1][_LIBS], [pkg_cv_][$1][_LIBS],
[_PKG_CONFIG([$1][_LIBS], [libs], [[$2]])])
if test $pkg_failed = yes; then
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`