aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-09-18 20:34:29 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-06 23:34:50 (GMT)
commit831efc38ba66f587f4c3e38af3bc6584f2ceacb1 (patch)
treece763d24921ae6b98d0a9dfb19147a3d675ca62c
parente3b40e8e5303a68c4546ba6623c7f8ee5ef71743 (diff)
[media] Make it possible to disable xinerama manually, patch from gentoo
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--configure.ac14
1 files changed, 9 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 37c2871..8ce33d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -121,6 +121,8 @@ dnl ---------------------------------------------
dnl check for X11, Xv and XF86VidModeExtension
dnl ---------------------------------------------
AC_PATH_XTRA
+AC_ARG_WITH([xinerama],
+ [AS_HELP_STRING([--without-xinerama], [Disable Xinerama extension support (default: check)])])
if test x"$no_x" != x"yes"; then
dnl check for Xshm
AC_CHECK_LIB([Xext],[XShmCreateImage],
@@ -134,11 +136,13 @@ if test x"$no_x" != x"yes"; then
X11_LIBS="$X11_LIBS -lXv"],,
[$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext])
- dnl check for Xinerama
- AC_CHECK_LIB([Xinerama],[XineramaQueryScreens],
- [AC_DEFINE([HAVE_XINERAMA],,[Xinerama support])
- X11_LIBS="$X11_LIBS -lXinerama"],,
- [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext])
+ if test "x$with_xinerama" != "xno"; then
+ dnl check for Xinerama
+ AC_CHECK_LIB([Xinerama],[XineramaQueryScreens],
+ [AC_DEFINE([HAVE_XINERAMA],,[Xinerama support])
+ X11_LIBS="$X11_LIBS -lXinerama"],,
+ [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext])
+ fi
dnl check for XSs
PKG_CHECK_MODULES(XSS, xscrnsaver >= 1.2.0,

Privacy Policy