]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: use $PKG_CONFIG
authorKarel Zak <kzak@redhat.com>
Tue, 16 Feb 2016 09:27:56 +0000 (10:27 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Feb 2016 09:27:56 +0000 (10:27 +0100)
Reported-by: Helmut Grohne <helmut@subdivi.de>
References: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811546
Signed-off-by: Karel Zak <kzak@redhat.com>
m4/ul.m4

index 959eef51e62a0f8769a120fdf8adfc51a5b56f5a..3157a92bb005f1a2bd50ce923c56b3ef345202a2 100644 (file)
--- a/m4/ul.m4
+++ b/m4/ul.m4
@@ -30,8 +30,8 @@ dnl
 dnl Calls pkg-config --static
 dnl
 AC_DEFUN([UL_PKG_STATIC], [
-  if AC_RUN_LOG([pkg-config --exists --print-errors "$2"]); then
-    $1=`pkg-config --libs --static "$2"`
+  if AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$2"]); then
+    $1=`$PKG_CONFIG --libs --static "$2"`
   else
     AC_MSG_ERROR([pkg-config description of $2, needed for static build, is not available])
   fi