Revert "configure.ac: Use PKG_CHECK_VAR for libclc."
authorMatt Turner <mattst88@gmail.com>
Wed, 8 Mar 2017 05:23:57 +0000 (21:23 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 8 Mar 2017 05:24:05 +0000 (21:24 -0800)
This reverts commit 706074cc96cec8bad6c3569fc53b0b3a05ad176f.

configure.ac

index 87cfbaf457ef6ee71dea3e6685d89833ff5fdf71..8fbadc80e646c07d36f1dae8b9825168eedca0cf 100644 (file)
@@ -2018,8 +2018,10 @@ if test "x$enable_opencl" = xyes; then
                     PKG_CONFIG_PATH environment variable.
                     By default libclc.pc is installed to /usr/local/share/pkgconfig/])
     else
-        PKG_CHECK_VAR([LIBCLC_INCLUDEDIR], [libclc], [includedir])
-        PKG_CHECK_VAR([LIBCLC_LIBEXECDIR], [libclc], [libexecdir])
+        LIBCLC_INCLUDEDIR=`$PKG_CONFIG --variable=includedir libclc`
+        LIBCLC_LIBEXECDIR=`$PKG_CONFIG --variable=libexecdir libclc`
+        AC_SUBST([LIBCLC_INCLUDEDIR])
+        AC_SUBST([LIBCLC_LIBEXECDIR])
     fi
 
     gallium_st="$gallium_st clover"