applied, thanks! Damien Zammit, le jeu. 29 juin 2023 10:56:30 +0000, a ecrit: > 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 > > >
-- Samuel --- Pour une évaluation indépendante, transparente et rigoureuse ! Je soutiens la Commission d'Évaluation de l'Inria.