bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH hurd] configure.ac: Make test for acpica more robust


From: Samuel Thibault
Subject: Re: [PATCH hurd] configure.ac: Make test for acpica more robust
Date: Thu, 29 Jun 2023 15:30:44 +0200
User-agent: NeoMutt/20170609 (1.8.3)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]