From e2e56f4e616b111f263627abdc6293b598b31037 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Sat, 6 Apr 2019 19:01:11 +0900 Subject: Fix NetBSD APM support NetBSD APM is supported other than i386 too, emulate API, so change to detect with MI support header. Additionally, catch up support codes to others. Signed-off-by: OBATA Akio (cherry picked from commit f8424834b6a36b4d3e43e3af199e55c18fb913b8) --- ConfigureChecks.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 44ca497..1b48407 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -80,6 +80,10 @@ if( BUILD_KLAPTOPDAEMON ) tde_message_fatal( "stdint.h header is required, but was not found on your system" ) endif( NOT HAVE_STDINT_H ) +# NetBSD apm support + check_include_files( "unistd.h;machine/apm_bios.h" HAVE_MACHINE_APM_BIOS_H ) + check_include_files( "unistd.h;dev/apm/apmio.h" HAVE_DEV_APM_APMIO_H ) + # xtest pkg_search_module( XTEST xtst ) if( XTEST_FOUND ) -- cgit v1.2.1