Add support of configure --enable-wayland --disable-gl

This commit is contained in:
ManoloFLTK 2022-03-22 21:28:29 +01:00
parent 61d72c76d2
commit 7432079632
2 changed files with 15 additions and 5 deletions

View File

@ -1021,10 +1021,20 @@ AS_CASE([$host_os_gui], [cygwin* | mingw*], [
LDFLAGS="$LDFLAGS -rdynamic -no-pie"
AC_SEARCH_LIBS([dlopen], [dl])
AC_CHECK_HEADER([GL/gl.h], [AC_DEFINE([HAVE_GL])])
AC_CHECK_HEADER([GL/glu.h], [
AC_DEFINE([HAVE_GL_GLU_H])
GLLIBS="$($PKGCONFIG --libs wayland-egl) $($PKGCONFIG --libs egl) $($PKGCONFIG --libs glu) $($PKGCONFIG --libs gl) $GLLIBS"
AS_IF([test x$enable_gl != xno], [
AC_CHECK_HEADER([GL/gl.h], [AC_DEFINE([HAVE_GL])])
AC_CHECK_HEADER([GL/glu.h], [
AC_DEFINE([HAVE_GL_GLU_H])
GLLIBS="$($PKGCONFIG --libs wayland-egl) $($PKGCONFIG --libs egl) $($PKGCONFIG --libs glu) $($PKGCONFIG --libs gl) $GLLIBS"
])
GLWLDEMO="egl"
], [
LINKFLTKGL=""
GLLIBNAME=""
GLDSONAME=""
GLDEMOS=""
GLWLDEMO=""
])
dnl Check for GTK-3 ...

View File

@ -22,7 +22,7 @@ OBJECTS = fl_libdecor.o libdecor-cairo-blur.o fl_libdecor-plugins.o \
../../src/text-input-protocol.o cursor-settings.o os-compatibility.o
PROTOCOLS = /usr/share/wayland-protocols
all : demo egl
all : demo $(GLWLDEMO)
depend:
: echo "libdecor/build: make depend..."