1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-11-03 20:54:09 +01:00

Trying to fix pkgconfig

This commit is contained in:
Anthony Scemama 2022-10-06 10:26:49 +02:00
parent c66be3602a
commit 5a0038e96f

View File

@ -192,6 +192,8 @@ AS_CASE([$with_trexio],
[yes], [yes],
[AC_CHECK_LIB([trexio], [trexio_open], [], [AC_CHECK_LIB([trexio], [trexio_open], [],
[PKG_CHECK_MODULES([TREXIO], [trexio]) ]) [PKG_CHECK_MODULES([TREXIO], [trexio]) ])
CFLAGS="$CFLAGS $TREXIO_CFLAGS"
LIBS="$LIBS $TREXIO_LIBS"
AC_CHECK_HEADERS([trexio.h], [], AC_CHECK_HEADERS([trexio.h], [],
[AC_MSG_ERROR("trexio.h not found")]) [AC_MSG_ERROR("trexio.h not found")])
AC_DEFINE([HAVE_TREXIO], [1], [Define if TREXIO support is available]) AC_DEFINE([HAVE_TREXIO], [1], [Define if TREXIO support is available])
@ -223,6 +225,8 @@ AS_CASE([$with_qmckldgemm],
[yes], [yes],
[AC_CHECK_LIB([qmckldgemm], [qmckl_packed_matrix_create], [], [AC_CHECK_LIB([qmckldgemm], [qmckl_packed_matrix_create], [],
[PKG_CHECK_MODULES([QMCKLDGEMM], [qmckldgemm]) ]) [PKG_CHECK_MODULES([QMCKLDGEMM], [qmckldgemm]) ])
CFLAGS="$CFLAGS $QMCKLDGEMM_CFLAGS"
LIBS="$LIBS $QMCKLDGEMM_LIBS"
AC_CHECK_HEADERS([qmckl_dgemm.h], [], AC_CHECK_HEADERS([qmckl_dgemm.h], [],
[AC_MSG_ERROR("qmckl_dgemm.h not found")]) [AC_MSG_ERROR("qmckl_dgemm.h not found")])
AC_DEFINE([HAVE_QMCKLDGEMM], [1], [Define if QMCKL DGEMM support is available]) AC_DEFINE([HAVE_QMCKLDGEMM], [1], [Define if QMCKL DGEMM support is available])