summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-04-01 12:02:05 +0200
committerraveit65 <[email protected]>2020-04-03 16:27:59 +0200
commitcbbf133bd515bab90a338e235438acd324d6713f (patch)
tree2803644258cf05d5a7aaeb87e70de45fe6bb8449 /configure.ac
parent212df6c3085bf020ec9e4b9c0aee30d35f547ccc (diff)
downloadmate-session-manager-cbbf133bd515bab90a338e235438acd324d6713f.tar.bz2
mate-session-manager-cbbf133bd515bab90a338e235438acd324d6713f.tar.xz
build: make libglesv2 optional
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 55e09cc..bd38f11 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,12 +63,24 @@ PKG_CHECK_MODULES(ICE, ice)
PKG_CHECK_MODULES(XEXT, xext xau)
PKG_CHECK_MODULES(GTK3, gtk+-3.0 >= $GTK_REQUIRED)
PKG_CHECK_MODULES(GL_TEST, xcomposite gl glib-2.0 epoxy)
-PKG_CHECK_MODULES(GLES_TEST, egl glesv2)
PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 >= $DBUS_GLIB_REQUIRED)
PKG_CHECK_MODULES(EGG_SMCLIENT, gtk+-3.0)
+dnl ====================================================================
+dnl GLESV2 (optional)
+dnl ====================================================================
+
+AC_ARG_WITH([libglesv2], AC_HELP_STRING([--without-libglesv2], [disable GLESV2 support]))
+have_glesv2=no
+if test x$with_libglesv2 != xno; then
+ PKG_CHECK_MODULES(GLES_TEST, egl glesv2, have_glesv2=yes, have_glesv2=no)
+fi
+if test "x$have_glesv2" = "xyes"; then
+ AC_DEFINE(HAVE_GLESV2, 1, [GLESV2 Support.])
+fi
+AM_CONDITIONAL([HAVE_GLESV2], [test "x$have_glesv2" = "xyes"])
dnl ====================================================================
dnl Option to set the default window manager
@@ -356,6 +368,7 @@ echo "
Default WM: ${with_default_wm}
Systemd support: ${use_systemd}
Elogind support: ${use_elogind}
+ GLES2 support: ${have_glesv2}
IPv6 support: ${have_full_ipv6}
Backtrace support: ${have_backtrace}
XRender support: ${have_xrender}