mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-23 12:57:20 +01:00
Begin inclusion of chameleon in qmckl. #20
This commit is contained in:
parent
1bbded3153
commit
4430414dc9
51
configure.ac
51
configure.ac
@ -99,6 +99,57 @@ AC_CHECK_LIB([pthread], [pthread_create])
|
|||||||
#fi
|
#fi
|
||||||
|
|
||||||
|
|
||||||
|
# CHAMELEON
|
||||||
|
AC_ARG_WITH(chameleon,
|
||||||
|
AS_HELP_STRING([--without-chameleon],
|
||||||
|
[Do not use Chameleon. Default: auto-detect]), [
|
||||||
|
case "$with_chameleon" in
|
||||||
|
yes|no)
|
||||||
|
: # Nothing special to do here
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if test ! -d "$withval" ; then
|
||||||
|
AC_MSG_ERROR([--with-chameleon path does not point to a directory])
|
||||||
|
fi
|
||||||
|
LIBCHAMELEON_PATH="-L$with_chameleon/lib"
|
||||||
|
CXXFLAGS="-I$with_chameleon/include $CXXFLAGS"
|
||||||
|
esac
|
||||||
|
])
|
||||||
|
AH_TEMPLATE(USE_CHAMELEON,[Chameleon support is available])
|
||||||
|
|
||||||
|
if test "x$with_chameleon" != "xno"; then
|
||||||
|
LIBS="$LIBS $LIBCHAMELEON_PATH"
|
||||||
|
|
||||||
|
if test "x$with_chameleon" = "xyes" -a "x$LIBCHAMELEON_LIBS" = "x"; then
|
||||||
|
AC_MSG_ERROR([Required Chameleon library not found])
|
||||||
|
fi
|
||||||
|
if test "x$LIBCHAMELEON_LIBS" != "x" ; then
|
||||||
|
CXXFLAGS="$LIBCHAMELEON_CFLAGS $CXXFLAGS"
|
||||||
|
CFLAGS="$LIBCHAMELEON_CFLAGS $CFLAGS"
|
||||||
|
CPPFLAGS="$LIBCHAMELEON_CFLAGS $CPPFLAGS"
|
||||||
|
CHAMELEONLIB="$LIBCHAMELEON_PATH $LIBCHAMELEON_LIBS"
|
||||||
|
AC_DEFINE(USE_CHAMELEON,1,[CHAMELEON support is available])
|
||||||
|
with_CHAMELEON=yes
|
||||||
|
else
|
||||||
|
with_CHAMELEON=no
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AC_MSG_NOTICE([CHAMELEON library support: ${with_CHAMELEON:=auto} ${LIBCHAMELEON_PATH} ${LIBCHAMELEON_LIBS}])
|
||||||
|
AC_SUBST(CHAMELEONLIB)
|
||||||
|
# auto-detect using pkg-config
|
||||||
|
PKG_CHECK_MODULES([LIBCHAMELEON],[chameleon >= 1.0.0],,[
|
||||||
|
|
||||||
|
## something went wrong.
|
||||||
|
## try to find the package without pkg-config
|
||||||
|
|
||||||
|
## check that the library is actually new enough.
|
||||||
|
## by testing for a 1.0.0+ function which we use
|
||||||
|
AC_CHECK_LIB(chameleon,CHAMELEON_finalize,[LIBCHAMELEON_LIBS="-lchameleon"])
|
||||||
|
])
|
||||||
|
if test "x$LIBCHAMELEON_LIBS" != "x" ; then
|
||||||
|
AC_CHECK_HEADERS(chameleon.h)
|
||||||
|
fi
|
||||||
|
|
||||||
## BLAS
|
## BLAS
|
||||||
#AX_BLAS([], [AC_MSG_ERROR([BLAS was not found.])])
|
#AX_BLAS([], [AC_MSG_ERROR([BLAS was not found.])])
|
||||||
|
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
/* Define to 1 if you have the <assert.h> header file. */
|
/* Define to 1 if you have the <assert.h> header file. */
|
||||||
#undef HAVE_ASSERT_H
|
#undef HAVE_ASSERT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <chameleon.h> header file. */
|
||||||
|
#undef HAVE_CHAMELEON_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||||
#undef HAVE_DLFCN_H
|
#undef HAVE_DLFCN_H
|
||||||
|
|
||||||
@ -124,6 +127,9 @@
|
|||||||
/* Define to 1 if you have the ANSI C header files. */
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
#undef STDC_HEADERS
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
|
/* CHAMELEON support is available */
|
||||||
|
#undef USE_CHAMELEON
|
||||||
|
|
||||||
/* Version number of package */
|
/* Version number of package */
|
||||||
#undef VERSION
|
#undef VERSION
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user