Fix build of composite, dix, and randr when Xinerama is disabled.

This commit is contained in:
Luo Jie 2007-05-24 11:01:15 -07:00 committed by Eric Anholt
commit 1f48995d66
4 changed files with 19 additions and 3 deletions

View file

@ -2,6 +2,8 @@ noinst_LTLIBRARIES = librandr.la
AM_CFLAGS = $(DIX_CFLAGS)
XINERAMA_SRCS = rrxinerama.c
if XORG
sdk_HEADERS = randrstr.h
endif
@ -18,5 +20,9 @@ librandr_la_SOURCES = \
rrpointer.c \
rrproperty.c \
rrscreen.c \
rrsdispatch.c \
rrxinerama.c
rrsdispatch.c
if XINERAMA
librandr_la_SOURCES += ${XINERAMA_SRCS}
endif

View file

@ -358,8 +358,9 @@ RRExtensionInit (void)
SRRScreenChangeNotifyEvent;
EventSwapVector[RREventBase + RRNotify] = (EventSwapPtr)
SRRNotifyEvent;
#ifdef PANORAMIX
RRXineramaExtensionInit();
#endif
}
static int