[Mesa-dev] [PATCH 6/7] configure: use PKG_CONFIG variable over hardcoded pkg-config

Emil Velikov emil.l.velikov at gmail.com
Sat Sep 28 07:46:20 PDT 2013


Already available and used in other places of configure.ac.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1f0a646..1dd0087 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1361,8 +1361,8 @@ if test "x$enable_opencl" = xyes; then
                     PKG_CONFIG_PATH environment variable.
                     By default libclc.pc is installed to /usr/local/share/pkgconfig/])
     else
-        LIBCLC_INCLUDEDIR=`pkg-config --variable=includedir libclc`
-        LIBCLC_LIBEXECDIR=`pkg-config --variable=libexecdir libclc`
+        LIBCLC_INCLUDEDIR=`$PKG_CONFIG --variable=includedir libclc`
+        LIBCLC_LIBEXECDIR=`$PKG_CONFIG --variable=libexecdir libclc`
         AC_SUBST([LIBCLC_INCLUDEDIR])
         AC_SUBST([LIBCLC_LIBEXECDIR])
     fi
-- 
1.8.4



More information about the mesa-dev mailing list