summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-03-12 13:53:20 -0400
committerTom Stellard <thomas.stellard@amd.com>2012-05-11 12:16:59 -0400
commit931b518ed018ee3913a704f6dd1c3d6d4943cbbf (patch)
treee29d7205fef2e8297dc98e6746196c5a7e47ab28
parent3260a0b9b13e35a5ebe159faea1e1c2c21c50ddd (diff)
configure.ac: Add option for libclc path
-rw-r--r--configs/autoconf.in3
-rw-r--r--configure.ac8
2 files changed, 11 insertions, 0 deletions
diff --git a/configs/autoconf.in b/configs/autoconf.in
index 28f3cb422da..bb7718737ab 100644
--- a/configs/autoconf.in
+++ b/configs/autoconf.in
@@ -187,6 +187,9 @@ VA_LIB_INSTALL_DIR=@VA_LIB_INSTALL_DIR@
# Xorg driver install directory (for xorg state-tracker)
XORG_DRIVER_INSTALL_DIR = @XORG_DRIVER_INSTALL_DIR@
+# Path to OpenCL C library libclc
+LIBCLC_PATH = @LIBCLC_PATH@
+
# pkg-config substitutions
GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
diff --git a/configure.ac b/configure.ac
index 793585c0a4d..b853762a23d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1613,6 +1613,14 @@ dnl
dnl OpenCL configuration
dnl
+AC_ARG_WITH([libclc-path],
+ [AS_HELP_STRING([--with-libclc-path],
+ [Path to libclc builtins library. Example: --with-libclc-path=\$HOME/libclc/])],
+ [LIBCLC_PATH="$withval"],
+ [LIBCLC_PATH=""])
+
+AC_SUBST([LIBCLC_PATH])
+
if test "x$enable_opencl" = xyes; then
HAVE_OPENCL=1
if test "x$with_gallium_drivers" = x; then