configure: Include Xlib.h before Xrandr.h.
This commit is contained in:
parent
102f5085ef
commit
e89edd60fe
|
@ -8824,6 +8824,7 @@ _ACEOF
|
|||
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/extensions/Xrandr.h>
|
||||
int
|
||||
main ()
|
||||
|
|
|
@ -1076,8 +1076,8 @@ then
|
|||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
|
||||
#include <X11/extensions/Xrandr.h>]], [[static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;]])],
|
||||
[WINE_CHECK_SONAME(Xrandr,XRRQueryExtension,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/extensions/Xrandr.h>]],
|
||||
[[static typeof(XRRGetScreenResources) *f; if (f) return 0;]])],
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
|
||||
#include <X11/extensions/Xrandr.h>]], [[static typeof(XRRGetScreenResources) *f; if (f) return 0;]])],
|
||||
[AC_DEFINE(HAVE_XRRGETSCREENRESOURCES, 1,
|
||||
[Define if Xrandr has the XRRGetScreenResources function])])],,
|
||||
[$X_LIBS $XLIB $X_EXTRA_LIBS])])
|
||||
|
|
Loading…
Reference in New Issue