summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-04-26 11:47:00 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-04-26 11:47:00 -0400
commit60c15080ab24ae2f4347fb04e39f147c51656688 (patch)
tree59f846c6d92bc5ae3ea749f0c7c72bab2edd1a30 /configure.ac
parent0b5116f74607dd0159d4cb701988172b0cb9a90a (diff)
Add --disable-clients configure option
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac27
1 files changed, 18 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index ed9f4a7..e5dd0d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,11 +36,6 @@ AC_SUBST(DLOPEN_LIBS)
PKG_CHECK_MODULES(COMPOSITOR,
[wayland-server egl >= 7.10 glesv2 gdk-pixbuf-2.0 pixman-1])
-PKG_CHECK_MODULES(SIMPLE_CLIENT, [egl >= 7.10 glesv2 wayland-client wayland-egl])
-PKG_CHECK_MODULES(CLIENT, [wayland-client wayland-egl egl >= 7.10 gl cairo >= 1.10.0 gdk-pixbuf-2.0 glib-2.0 gobject-2.0 xkbcommon])
-PKG_CHECK_MODULES(POPPLER, [poppler-glib gdk-2.0 gio-2.0],
- [have_poppler=yes], [have_poppler=no])
-AM_CONDITIONAL(HAVE_POPPLER, test "x$have_poppler" = "xyes")
AC_CHECK_PROG(RSVG_CONVERT, rsvg-convert, rsvg-convert)
AM_CONDITIONAL(HAVE_RSVG_CONVERT, test -n "$RSVG_CONVERT")
@@ -83,10 +78,24 @@ if test x$enable_wayland_compositor == xyes; then
fi
-PKG_CHECK_MODULES(CAIRO_EGL, [cairo-egl >= 1.11.3],
- [have_cairo_egl=yes], [have_cairo_egl=no])
-AS_IF([test "x$have_cairo_egl" = "xyes"],
- [AC_DEFINE([HAVE_CAIRO_EGL], [1], [Have cairo-egl])])
+AC_ARG_ENABLE(clients, [ --enable-clients],, enable_clients=yes)
+AM_CONDITIONAL(BUILD_CLIENTS, test x$enable_clients == xyes)
+if test x$enable_clients == xyes; then
+ AC_DEFINE([BUILD_CLIENTS], [1], [Build the Wayland clients])
+
+ PKG_CHECK_MODULES(SIMPLE_CLIENT,
+ [egl >= 7.10 glesv2 wayland-client wayland-egl])
+ PKG_CHECK_MODULES(CLIENT, [wayland-client wayland-egl egl >= 7.10 gl cairo >= 1.10.0 gdk-pixbuf-2.0 glib-2.0 gobject-2.0 xkbcommon])
+
+ PKG_CHECK_MODULES(POPPLER, [poppler-glib gdk-2.0 gio-2.0],
+ [have_poppler=yes], [have_poppler=no])
+ PKG_CHECK_MODULES(CAIRO_EGL, [cairo-egl >= 1.11.3],
+ [have_cairo_egl=yes], [have_cairo_egl=no])
+ AS_IF([test "x$have_cairo_egl" = "xyes"],
+ [AC_DEFINE([HAVE_CAIRO_EGL], [1], [Have cairo-egl])])
+fi
+
+AM_CONDITIONAL(HAVE_POPPLER, test "x$have_poppler" = "xyes")
if test "x$GCC" = "xyes"; then
GCC_CFLAGS="-Wall -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden"