mirror of https://gitlab.freedesktop.org/mesa/mesa
configure.ac: Add option for libclc path
This commit is contained in:
parent
613323b256
commit
c79e7668b2
|
@ -191,6 +191,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@
|
||||
|
|
|
@ -1620,6 +1620,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
|
||||
if test "x$with_gallium_drivers" = x; then
|
||||
AC_MSG_ERROR([cannot enable OpenCL without Gallium])
|
||||
|
|
Loading…
Reference in New Issue