pseudoramiX: Only compile on XQUARTZ and XWIN

PseudoramiXExtensionInit() is not defined in extinit.h if it won't be
used and we get a compiler warning when compiling the pseudoramiX code.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Keith Packard 2014-01-22 19:17:24 -08:00
parent 61cb6c9aa9
commit 0b5a87f37d
2 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,10 @@ if PRESENT
PRESENT_DIR=present PRESENT_DIR=present
endif endif
if PSEUDORAMIX
PSEUDORAMIX_DIR=pseudoramiX
endif
SUBDIRS = \ SUBDIRS = \
doc \ doc \
man \ man \
@ -37,11 +41,11 @@ SUBDIRS = \
Xext \ Xext \
miext \ miext \
os \ os \
pseudoramiX \
randr \ randr \
render \ render \
Xi \ Xi \
xkb \ xkb \
$(PSEUDORAMIX_DIR) \
$(DBE_DIR) \ $(DBE_DIR) \
$(RECORD_DIR) \ $(RECORD_DIR) \
xfixes \ xfixes \

View File

@ -2174,6 +2174,8 @@ if test "x$XQUARTZ" = xyes; then
fi fi
fi fi
AM_CONDITIONAL(PSEUDORAMIX, [test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ])
# Support for objc in autotools is minimal and not documented. # Support for objc in autotools is minimal and not documented.
OBJC='$(CC)' OBJC='$(CC)'
OBJCLD='$(CCLD)' OBJCLD='$(CCLD)'