configure.ac: Use PKG_CHECK_VAR for libclc.
authorMatt Turner <mattst88@gmail.com>
Mon, 6 Mar 2017 18:42:10 +0000 (10:42 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 7 Mar 2017 15:27:45 +0000 (07:27 -0800)
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
configure.ac

index 7a89344bed79c298a861ebdca36eb4aaba7ad615..e4901956a91b7449186e3c64ca533499ecbe100b 100644 (file)
@@ -2018,10 +2018,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`
-        AC_SUBST([LIBCLC_INCLUDEDIR])
-        AC_SUBST([LIBCLC_LIBEXECDIR])
+        PKG_CHECK_VAR([LIBCLC_INCLUDEDIR], [libclc], [includedir])
+        PKG_CHECK_VAR([LIBCLC_LIBEXECDIR], [libclc], [libexecdir])
     fi
 
     gallium_st="$gallium_st clover"