[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH hurd] configure.ac: Make test for acpica more robust
From: |
Damien Zammit |
Subject: |
[PATCH hurd] configure.ac: Make test for acpica more robust |
Date: |
Thu, 29 Jun 2023 10:56:30 +0000 |
AC_CHECK_LIB does not work when -lpciaccess is also required.
---
configure.ac | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 3ea1bc02..dd2481b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -408,10 +408,11 @@ AC_ARG_WITH([acpica],
[AS_HELP_STRING([--without-acpica], [disable acpica])], , [with_acpica=yes])
AS_IF([test "x$with_acpica" != xno], [
- AC_CHECK_LIB(acpica, acpi_init, [
+ AC_CHECK_HEADER([acpi/acpi_init.h], [
HAVE_LIBACPICA=yes
libacpica_LIBS="-lacpica -lpciaccess"
- libacpica_CFLAGS=""])
+ libacpica_CFLAGS=""],
+ [HAVE_LIBACPICA=no])
])
AC_SUBST([HAVE_LIBACPICA])
AC_SUBST([libacpica_CFLAGS])
--
2.40.1
- [PATCH hurd] configure.ac: Make test for acpica more robust,
Damien Zammit <=