X-Git-Url: https://git.draconx.ca/gitweb/aspectbin.git/blobdiff_plain/e69d0468cbf98b0b9567881156a5be79fd728d3d..44752d300771809abd96f65a88fd7885ac2b2123:/m4/pkgvar.m4 diff --git a/m4/pkgvar.m4 b/m4/pkgvar.m4 index 4b7fa9b..b4e09ee 100644 --- a/m4/pkgvar.m4 +++ b/m4/pkgvar.m4 @@ -10,8 +10,13 @@ See the pkg-config man page for more details.]) pkg_fail=no AC_MSG_CHECKING([for $3]) -_PKG_CONFIG([$1][_$2], [variable=$2], [$4]) -if test -z "[$pkg_cv_$1][_$2]"; then +if test x"$[]m4_toupper([$1][_$2])" = x; then + _PKG_CONFIG([$1][_$2], [variable=$2], [$4]) +else + pkg_cv_$1[]_$2="$[]m4_toupper([$1][_$2])" +fi + +if test x"[$pkg_cv_$1][_$2]" = x; then if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then