summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-04-05 01:21:14 +0200
committerBenBE <BenBE@geshi.org>2023-04-05 08:46:53 +0200
commitc8a61850dd31ab64eb8ad83929ce86d2adbeb96c (patch)
treeec7633e2a6cc5f92aba23b4536224aa664f9511e /configure.ac
parent79364ac20cd8fc5889f3dfe08b961249d99facaa (diff)
configure: restore hwloc support
If the pkg-config check for hwloc succeeds, actually define HAVE_LIBHWLOC to enable the conditional code. Fixes: 4ccad460 ("configure.ac: fix static build with hwloc")
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 015f9046..a8b75dcd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -479,7 +479,9 @@ case "$enable_hwloc" in
m4_ifdef([PKG_PROG_PKG_CONFIG], [
PKG_PROG_PKG_CONFIG()
PKG_CHECK_MODULES(HWLOC, hwloc, [
- CFLAGS="$CFLAGS $HWLOC_CFLAGS" LIBS="$LIBS $HWLOC_LIBS"
+ CFLAGS="$CFLAGS $HWLOC_CFLAGS"
+ LIBS="$LIBS $HWLOC_LIBS"
+ AC_DEFINE([HAVE_LIBHWLOC], [1], [Define to 1 if you have the `hwloc' library (-lhwloc).])
], [
AC_CHECK_LIB([hwloc], [hwloc_get_proc_cpubind], [], [AC_MSG_ERROR([can not find required library libhwloc])])
AC_CHECK_HEADERS([hwloc.h], [], [AC_MSG_ERROR([can not find require header file hwloc.h])])

© 2014-2024 Faster IT GmbH | imprint | privacy policy