configure: use PKG_CONFIG variable over hardcoded pkg-config
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 28 Sep 2013 02:20:14 +0000 (03:20 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 29 Oct 2013 21:04:38 +0000 (21:04 +0000)
Already available and used in other places of configure.ac.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
configure.ac

index 91b9871d7ede1fed6425488fcee6b6ed876a7ac1..54ace41bad7c45b7f2f07d55926a28d47c3750b8 100644 (file)
@@ -1358,8 +1358,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