diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-10-31 11:25:18 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-10-31 11:25:18 +0100 |
commit | c9b816085272dd07ed762c5ae775a994fa77df56 (patch) | |
tree | afbeb0ab55275f5d600dd42cc73c936d2ce76ec4 /configure.ac | |
parent | a2a902d82d88f849d97c53bd73b98111129e2248 (diff) | |
download | hurd-c9b816085272dd07ed762c5ae775a994fa77df56.tar.gz hurd-c9b816085272dd07ed762c5ae775a994fa77df56.tar.bz2 hurd-c9b816085272dd07ed762c5ae775a994fa77df56.zip |
Add --without-acpica configure option
To allow cross-builds which cannot use AC_CHECK_LIB at all.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 11cafa5f..0c1bf9b2 100644 --- a/configure.ac +++ b/configure.ac @@ -394,11 +394,15 @@ AC_SUBST([HAVE_LIBPCIACCESS]) AC_SUBST([libpciaccess_CFLAGS]) AC_SUBST([libpciaccess_LIBS]) -AC_CHECK_LIB(acpica, acpi_init, [ - HAVE_LIBACPICA=yes - libacpica_LIBS="-lacpica" - libacpica_CFLAGS=""], - [HAVE_LIBACPICA=no]) +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, [ + HAVE_LIBACPICA=yes + libacpica_LIBS="-lacpica" + libacpica_CFLAGS=""]) +]) AC_SUBST([HAVE_LIBACPICA]) AC_SUBST([libacpica_CFLAGS]) AC_SUBST([libacpica_LIBS]) |