1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

* configure.ac (HAVE_XRANDR): Check availability of XRRGetScreenResources rather than that of XRRQueryExtension.

This commit is contained in:
YAMAMOTO Mitsuharu 2013-05-27 11:03:18 +09:00
parent 416f18027e
commit 2d8ac645c2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* configure.ac (HAVE_XRANDR): Check availability of
XRRGetScreenResources rather than that of XRRQueryExtension.
2013-05-18 Eli Zaretskii <eliz@gnu.org>
* make-dist (files): Add nt/msysconfig.sh, nt/mingw-cfg.site,

View File

@ -2999,7 +2999,7 @@ if test "${HAVE_X11}" = "yes"; then
if test $HAVE_XRANDR = no; then
# Test old way in case pkg-config doesn't have it (older machines).
AC_CHECK_HEADER(X11/extensions/Xrandr.h,
[AC_CHECK_LIB(Xrandr, XRRQueryExtension, HAVE_XRANDR=yes)])
[AC_CHECK_LIB(Xrandr, XRRGetScreenResources, HAVE_XRANDR=yes)])
if test $HAVE_XRANDR = yes; then
XRANDR_LIBS=-lXrandr
AC_SUBST(XRANDR_LIBS)