From 5a0038e96f52cbfd285bee6c74b49ac46a965509 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Thu, 6 Oct 2022 10:26:49 +0200 Subject: [PATCH] Trying to fix pkgconfig --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 6463b54..ad7b739 100644 --- a/configure.ac +++ b/configure.ac @@ -192,6 +192,8 @@ AS_CASE([$with_trexio], [yes], [AC_CHECK_LIB([trexio], [trexio_open], [], [PKG_CHECK_MODULES([TREXIO], [trexio]) ]) + CFLAGS="$CFLAGS $TREXIO_CFLAGS" + LIBS="$LIBS $TREXIO_LIBS" AC_CHECK_HEADERS([trexio.h], [], [AC_MSG_ERROR("trexio.h not found")]) AC_DEFINE([HAVE_TREXIO], [1], [Define if TREXIO support is available]) @@ -223,6 +225,8 @@ AS_CASE([$with_qmckldgemm], [yes], [AC_CHECK_LIB([qmckldgemm], [qmckl_packed_matrix_create], [], [PKG_CHECK_MODULES([QMCKLDGEMM], [qmckldgemm]) ]) + CFLAGS="$CFLAGS $QMCKLDGEMM_CFLAGS" + LIBS="$LIBS $QMCKLDGEMM_LIBS" AC_CHECK_HEADERS([qmckl_dgemm.h], [], [AC_MSG_ERROR("qmckl_dgemm.h not found")]) AC_DEFINE([HAVE_QMCKLDGEMM], [1], [Define if QMCKL DGEMM support is available])