summaryrefslogtreecommitdiff
blob: 4b824247e89b72a509408df1bc8bffc87679feb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Index: kdebase-3.5.0/ksplashml/themeengine/simple/configure.in.in
===================================================================
--- kdebase-3.5.0/ksplashml/themeengine/simple/configure.in.in	(revision 497108)
+++ kdebase-3.5.0/ksplashml/themeengine/simple/configure.in.in	(working copy)
@@ -1,9 +1,13 @@
-xinerama_save_ldflags="$LDFLAGS"
-LDFLAGS="$X_LDFLAGS"
-
 LIB_XINERAMA=
 
-KDE_CHECK_HEADER(X11/extensions/Xinerama.h,
+AC_ARG_WITH([xinerama],
+  AS_HELP_STRING([--without-xinerama], [Disable xinerama extension support (default: check)]) )
+
+if test "x$with_xinerama" != "xno"; then
+  xinerama_save_ldflags="$LDFLAGS"
+  LDFLAGS="$X_LDFLAGS"
+
+  KDE_CHECK_HEADER(X11/extensions/Xinerama.h,
     [
     AC_CHECK_LIB(Xinerama,XineramaQueryExtension,
 	[
@@ -17,5 +21,7 @@
      #include <X11/Xlib.h>
      ] )
 
-AC_SUBST(LIB_XINERAMA)
-LDFLAGS="$xinerama_save_ldflags"
+  AC_SUBST(LIB_XINERAMA)
+  LDFLAGS="$xinerama_save_ldflags"
+fi
+