automake: Fix Linux build with --disable-apm --disable-acpi

Fixes: accd32a4 (xorg: Remove the XF86PM define.)
Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Adam Jackson 2018-09-13 16:11:23 -04:00 committed by Adam Jackson
parent 89901e14d2
commit 2bd631810d

View File

@ -13,6 +13,12 @@ APM_SRCS = lnx_apm.c
XORG_CFLAGS += -DHAVE_APM
endif
if !LNXAPM
if !LNXACPI
ACPI_SRCS = $(srcdir)/../shared/pm_noop.c
endif
endif
if SYSTEMD_LOGIND
LOGIND_SRCS = systemd-logind.c
XORG_CFLAGS += $(DBUS_CFLAGS)