Browse Source

build: reorder ADL checks.

If `--disable-adl-checks` is given, enable ADL immediately.
nfactor-troky
Noel Maersk 11 years ago
parent
commit
08abb9e417
  1. 12
      configure.ac

12
configure.ac

@ -197,22 +197,24 @@ AC_ARG_ENABLE([adl_checks],
if test "$found_opencl" = 1; then if test "$found_opencl" = 1; then
if test "x$adl" != xno; then if test "x$adl" != xno; then
dnl Check if include files are in $srcdir/ADL_SDK
ADL_CPPFLAGS=
AC_CHECK_FILE([$srcdir/ADL_SDK/adl_sdk.h], [have_adl=true; ADL_CPPFLAGS=-I$srcdir], have_adl=false,)
dnl FIXME: force ADL usage if disable-checks specified dnl FIXME: force ADL usage if disable-checks specified
if test "x$adl_checks" = xno; then if test "x$adl_checks" = xno; then
have_adl=true have_adl=true
ADL_CPPFLAGS=-I$srcdir ADL_CPPFLAGS=-I$srcdir
fi fi
dnl Check if include files are in $srcdir/ADL_SDK
if test "x$have_adl" != xtrue; then
ADL_CPPFLAGS=
AC_CHECK_FILE([$srcdir/ADL_SDK/adl_sdk.h], [have_adl=true; ADL_CPPFLAGS=-I$srcdir], have_adl=false,)
fi
dnl FIXME: Check if SGMINER_SDK present dnl FIXME: Check if SGMINER_SDK present
if test x$have_adl+$have_sgminer_sdk = xfalse+true; then if test x$have_adl+$have_sgminer_sdk = xfalse+true; then
AC_CHECK_FILE([$SGMINER_SDK/include/ADL_SDK/adl_sdk.h], [have_adl=true; ADL_CPPFLAGS=-I$SGMINER_SDK/include], have_adl=false,) AC_CHECK_FILE([$SGMINER_SDK/include/ADL_SDK/adl_sdk.h], [have_adl=true; ADL_CPPFLAGS=-I$SGMINER_SDK/include], have_adl=false,)
fi fi
if test x$have_adl = xtrue if test "x$have_adl" = xtrue
then then
AC_DEFINE([HAVE_ADL], [1], [Defined if ADL headers were found]) AC_DEFINE([HAVE_ADL], [1], [Defined if ADL headers were found])
else else

Loading…
Cancel
Save