Added support for Xi Graphics XME fullscreen extension

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40243
This commit is contained in:
Sam Lantinga 2001-11-22 04:55:38 +00:00
parent c5e643229a
commit ea3595e3fb
5 changed files with 200 additions and 3 deletions

View file

@ -622,6 +622,26 @@ CheckX11()
SYSTEM_LIBS="$SYSTEM_LIBS -lXinerama"
fi
fi
AC_ARG_ENABLE(video-x11-xme,
[ --enable-video-x11-xme enable Xi Graphics XME for fullscreen [default=yes]],
, enable_video_x11_xme=yes)
if test x$enable_video_x11_xme = xyes; then
AC_MSG_CHECKING(for Xi Graphics XiGMiscExtension support)
video_x11_xme=no
AC_TRY_COMPILE([
#include <X11/Xlib.h>
#include <X11/extensions/xme.h>
],[
XiGMiscResolutionInfo *resolutions;
],[
video_x11_xme=yes
])
AC_MSG_RESULT($video_x11_xme)
if test x$video_x11_xme = xyes; then
CFLAGS="$CFLAGS -DHAVE_XIGXME"
SYSTEM_LIBS="$SYSTEM_LIBS -lxme"
fi
fi
fi
fi
}