summaryrefslogtreecommitdiff
path: root/dev-python/gdk-pixbuf/files/gdk-pixbuf-2.21.4-fix-automagic-x11.patch
blob: ae7ec2c905a61594b43134b155300f9e752c715d (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
Adds a new configure option to remove the automagic dependency on libX11.

--- configure.ac
+++ configure.ac
@@ -929,7 +929,18 @@ GDK_PIXBUF_XLIB_PACKAGES=
 GDK_PIXBUF_XLIB_EXTRA_CFLAGS=
 GDK_PIXBUF_XLIB_EXTRA_LIBS=
 
-if $PKG_CONFIG --exists x11; then
+AC_ARG_WITH(x11,
+            AC_HELP_STRING([--with-x11=@<:@no/auto/yes@:>@],
+                           [build X11 support @<:@default=auto@:>@]),,
+            [
+              if $PKG_CONFIG --exists x11; then
+                with_x11=yes
+              else
+                with_x11=no
+              fi
+            ])
+
+if test x$with_x11 = xyes; then
   AM_CONDITIONAL(USE_X11, true)
   PKG_CHECK_MODULES(GDK_PIXBUF_XLIB_DEP, x11 gobject-2.0)
 else