From 2b9dac397bd97909876bbda8532e2cbce9d8a77f Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Wed, 21 Apr 2010 12:58:54 +0100 Subject: Make XF86VIDMODE extension optional Code in glx/glxcmds.c which uses the XF86VIDMODE extension is already guarded. Also use that guard to control inclusion of the xf86vmode.h header, and only enable that guard if the XF86VIDMODE extension is found by pkgconfig. This changes the behaviour on platforms which XF86VIDMODE exists, in that XF86VIDMODE used to be mandatory, but is now optional. Presumably other build systems are already arranging for -DXF86VIDMODE to be supplied to the complier when glxcmds.c is compiled, so are not affected by this change Signed-off-by: Jon TURNEY --- configs/autoconf.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configs') diff --git a/configs/autoconf.in b/configs/autoconf.in index 10d311fa4d3..9bdbefebddd 100644 --- a/configs/autoconf.in +++ b/configs/autoconf.in @@ -195,3 +195,5 @@ ifneq ($(LLVM_VERSION),) HAVE_LLVM := 0x0$(subst .,0,$(LLVM_VERSION:svn=)) DEFINES += -DHAVE_LLVM=$(HAVE_LLVM) endif + +HAVE_XF86VIDMODE = @HAVE_XF86VIDMODE@ -- cgit v1.2.3