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
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
#include <X11/Xlib.h>
|
||||||
#include <X11/extensions/Xrandr.h>
|
#include <X11/extensions/Xrandr.h>
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
|
|
|
@ -1076,8 +1076,8 @@ then
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
|
||||||
#include <X11/extensions/Xrandr.h>]], [[static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;]])],
|
#include <X11/extensions/Xrandr.h>]], [[static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;]])],
|
||||||
[WINE_CHECK_SONAME(Xrandr,XRRQueryExtension,
|
[WINE_CHECK_SONAME(Xrandr,XRRQueryExtension,
|
||||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/extensions/Xrandr.h>]],
|
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
|
||||||
[[static typeof(XRRGetScreenResources) *f; if (f) return 0;]])],
|
#include <X11/extensions/Xrandr.h>]], [[static typeof(XRRGetScreenResources) *f; if (f) return 0;]])],
|
||||||
[AC_DEFINE(HAVE_XRRGETSCREENRESOURCES, 1,
|
[AC_DEFINE(HAVE_XRRGETSCREENRESOURCES, 1,
|
||||||
[Define if Xrandr has the XRRGetScreenResources function])])],,
|
[Define if Xrandr has the XRRGetScreenResources function])])],,
|
||||||
[$X_LIBS $XLIB $X_EXTRA_LIBS])])
|
[$X_LIBS $XLIB $X_EXTRA_LIBS])])
|
||||||
|
|
Loading…
Reference in New Issue