From d89449b6eacd919005fdad3b378e64fe46591728 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 8 Jul 2005 04:54:09 +0000 Subject: Add support for modular extension autodetection (ignored in monolithic build) --- xdpyinfo.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'xdpyinfo.c') diff --git a/xdpyinfo.c b/xdpyinfo.c index b470449..5bc348a 100644 --- a/xdpyinfo.c +++ b/xdpyinfo.c @@ -32,6 +32,54 @@ in this Software without prior written authorization from The Open Group. /* $XFree86: xc/programs/xdpyinfo/xdpyinfo.c,v 3.29 2003/04/14 20:38:10 herrb Exp $ */ +#ifdef HAVE_CONFIG_H +# include "config.h" +# if HAVE_X11_EXTENSIONS_MULTIBUF_H +# define MULTIBUFFER +# endif + +# if HAVE_X11_EXTENSIONS_XSHM_H +# define MITSHM +# endif + +# if HAVE_X11_EXTENSIONS_XKB_H && HAVE_X11_XKBLIB_H +# define XKB +# endif + +# if HAVE_X11_EXTENSIONS_XF86VMODE_H && HAVE_X11_EXTENSIONS_XF86VMSTR_H +# define XF86VIDMODE +# endif + +# if HAVE_X11_EXTENSIONS_XF86DGA_H && HAVE_X11_EXTENSIONS_XF86DGASTR_H +# define XFreeXDGA +# endif + +# if HAVE_X11_EXTENSIONS_XF86MISC_H && HAVE_X11_EXTENSIONS_XF86MSCSTR_H +# define XF86MISC +# endif + +# if HAVE_X11_EXTENSIONS_XINPUT_H +# define XINPUT +# endif + +# if HAVE_X11_EXTENSIONS_XRENDER_H +# define XRENDER +# endif + +# if HAVE_X11_EXTENSIONS_XINERAMA_H +# define PANORAMIX +# endif + +# if HAVE_X11_EXTENSIONS_DMXEXT_H +# define DMX +# endif + +# if HAVE_X11_EXTENSIONS_PRINT_H +# define INCLUDE_XPRINT_SUPPORT +# endif + +#endif + #include #include #ifdef MULTIBUFFER -- cgit v1.2.3