1*4882a593SmuzhiyunFrom 779438770bedf3d53e6ad8f7cd6889b7f50daf3b Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: Martin Jansa <Martin.Jansa@gmail.com>
3*4882a593SmuzhiyunDate: Wed, 9 Jul 2014 14:23:41 +0200
4*4882a593SmuzhiyunSubject: [PATCH] configure: Allow to disable demos which require GLEW or GLU
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun* in some systems without X11 support we don't have GLEW, but
7*4882a593Smuzhiyun  mesa-demos are still useful
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunThis isn't currently appropriate for upstream submission as glew has
10*4882a593Smuzhiyunbeen replaced with glad there; glu situation would need to be re-assesed
11*4882a593Smuzhiyunwhen upstream makes a new release, requested here:
12*4882a593Smuzhiyunhttps://gitlab.freedesktop.org/mesa/demos/-/issues/22
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunUpstream-Status: Inappropriate [see above]
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunSigned-off-by: Martin Jansa <Martin.Jansa@gmail.com>
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunPort to 8.3.0
19*4882a593SmuzhiyunSigned-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
20*4882a593Smuzhiyun---
21*4882a593Smuzhiyun configure.ac                  | 49 ++++++++++++++++++++---------
22*4882a593Smuzhiyun src/Makefile.am               | 18 ++++++++---
23*4882a593Smuzhiyun src/demos/Makefile.am         | 73 ++++++++++++++++++++++++-------------------
24*4882a593Smuzhiyun src/egl/Makefile.am           |  8 +++--
25*4882a593Smuzhiyun src/egl/opengles1/Makefile.am | 10 ++++--
26*4882a593Smuzhiyun src/egl/opengles2/Makefile.am | 29 ++++++++---------
27*4882a593Smuzhiyun 6 files changed, 117 insertions(+), 70 deletions(-)
28*4882a593Smuzhiyun
29*4882a593Smuzhiyundiff --git a/configure.ac b/configure.ac
30*4882a593Smuzhiyunindex 0525b09..28834cd 100644
31*4882a593Smuzhiyun--- a/configure.ac
32*4882a593Smuzhiyun+++ b/configure.ac
33*4882a593Smuzhiyun@@ -93,25 +93,44 @@ AC_EGREP_HEADER([glutInitContextProfile],
34*4882a593Smuzhiyun 		[AC_DEFINE(HAVE_FREEGLUT)],
35*4882a593Smuzhiyun 		[])
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun-dnl Check for GLEW
38*4882a593Smuzhiyun-PKG_CHECK_MODULES(GLEW, [glew >= 1.5.4])
39*4882a593Smuzhiyun-DEMO_CFLAGS="$DEMO_CFLAGS $GLEW_CFLAGS"
40*4882a593Smuzhiyun-DEMO_LIBS="$DEMO_LIBS $GLEW_LIBS"
41*4882a593Smuzhiyun+AC_ARG_ENABLE([glew],
42*4882a593Smuzhiyun+    [AS_HELP_STRING([--enable-glew],
43*4882a593Smuzhiyun+        [build demos which require glew @<:@default=yes@:>@])],
44*4882a593Smuzhiyun+    [enable_glew="$enableval"],
45*4882a593Smuzhiyun+    [enable_glew=yes]
46*4882a593Smuzhiyun+)
47*4882a593Smuzhiyun+
48*4882a593Smuzhiyun+if test "x$enable_glew" = xyes; then
49*4882a593Smuzhiyun+    dnl Check for GLEW
50*4882a593Smuzhiyun+    PKG_CHECK_MODULES(GLEW, [glew >= 1.5.4], [glew_enabled=yes], [glew_enabled=no])
51*4882a593Smuzhiyun+    DEMO_CFLAGS="$DEMO_CFLAGS $GLEW_CFLAGS"
52*4882a593Smuzhiyun+    DEMO_LIBS="$DEMO_LIBS $GLEW_LIBS"
53*4882a593Smuzhiyun+fi
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun # LIBS was set by AC_CHECK_LIB above
56*4882a593Smuzhiyun LIBS=""
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun-PKG_CHECK_MODULES(GLU, [glu], [],
59*4882a593Smuzhiyun-		  [AC_CHECK_HEADER([GL/glu.h],
60*4882a593Smuzhiyun-				   [],
61*4882a593Smuzhiyun-		  		   AC_MSG_ERROR([GLU not found]))
62*4882a593Smuzhiyun-		   AC_CHECK_LIB([GLU],
63*4882a593Smuzhiyun-				[gluBeginCurve],
64*4882a593Smuzhiyun-				[GLU_LIBS=-lGLU],
65*4882a593Smuzhiyun-				AC_MSG_ERROR([GLU required])) ])
66*4882a593Smuzhiyun+AC_ARG_ENABLE([glu],
67*4882a593Smuzhiyun+    [AS_HELP_STRING([--enable-glu],
68*4882a593Smuzhiyun+        [build demos which require glu @<:@default=yes@:>@])],
69*4882a593Smuzhiyun+    [enable_glu="$enableval"],
70*4882a593Smuzhiyun+    [enable_glu=yes]
71*4882a593Smuzhiyun+)
72*4882a593Smuzhiyun
73*4882a593Smuzhiyun-DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS"
74*4882a593Smuzhiyun-DEMO_LIBS="$DEMO_LIBS $GLU_LIBS"
75*4882a593Smuzhiyun+if test "x$enable_glu" = xyes; then
76*4882a593Smuzhiyun+    PKG_CHECK_MODULES(GLU, [glu], [glu_enabled=yes],
77*4882a593Smuzhiyun+                     [AC_CHECK_HEADER([GL/glu.h],
78*4882a593Smuzhiyun+                                      [],
79*4882a593Smuzhiyun+                                      AC_MSG_ERROR([GLU not found]))
80*4882a593Smuzhiyun+                      AC_CHECK_LIB([GLU],
81*4882a593Smuzhiyun+                                   [gluBeginCurve],
82*4882a593Smuzhiyun+                                   [GLU_LIBS=-lGLU
83*4882a593Smuzhiyun+				    glu_enabled=yes],
84*4882a593Smuzhiyun+                                   AC_MSG_ERROR([GLU required])) ])
85*4882a593Smuzhiyun+
86*4882a593Smuzhiyun+    DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS"
87*4882a593Smuzhiyun+    DEMO_LIBS="$DEMO_LIBS $GLU_LIBS"
88*4882a593Smuzhiyun+fi
89*4882a593Smuzhiyun
90*4882a593Smuzhiyun AC_ARG_ENABLE([egl],
91*4882a593Smuzhiyun     [AS_HELP_STRING([--enable-egl],
92*4882a593Smuzhiyun@@ -304,6 +323,8 @@ AC_SUBST([WAYLAND_CFLAGS])
93*4882a593Smuzhiyun AC_SUBST([WAYLAND_LIBS])
94*4882a593Smuzhiyun
95*4882a593Smuzhiyun
96*4882a593Smuzhiyun+AM_CONDITIONAL(HAVE_GLU, test "x$glu_enabled" = "xyes")
97*4882a593Smuzhiyun+AM_CONDITIONAL(HAVE_GLEW, test "x$glew_enabled" = "xyes")
98*4882a593Smuzhiyun AM_CONDITIONAL(HAVE_EGL, test "x$egl_enabled" = "xyes")
99*4882a593Smuzhiyun AM_CONDITIONAL(HAVE_GLESV1, test "x$glesv1_enabled" = "xyes")
100*4882a593Smuzhiyun AM_CONDITIONAL(HAVE_GLESV2, test "x$glesv2_enabled" = "xyes")
101*4882a593Smuzhiyundiff --git a/src/Makefile.am b/src/Makefile.am
102*4882a593Smuzhiyunindex 1647d64..8b89dee 100644
103*4882a593Smuzhiyun--- a/src/Makefile.am
104*4882a593Smuzhiyun+++ b/src/Makefile.am
105*4882a593Smuzhiyun@@ -22,15 +22,19 @@
106*4882a593Smuzhiyun # Authors:
107*4882a593Smuzhiyun #    Eric Anholt <eric@anholt.net>
108*4882a593Smuzhiyun
109*4882a593Smuzhiyun+if HAVE_GLEW
110*4882a593Smuzhiyun+UTIL = util
111*4882a593Smuzhiyun+endif
112*4882a593Smuzhiyun+
113*4882a593Smuzhiyun SUBDIRS = \
114*4882a593Smuzhiyun-	util \
115*4882a593Smuzhiyun+	$(UTIL) \
116*4882a593Smuzhiyun 	data \
117*4882a593Smuzhiyun 	demos \
118*4882a593Smuzhiyun 	egl \
119*4882a593Smuzhiyun 	fp \
120*4882a593Smuzhiyun 	fpglsl \
121*4882a593Smuzhiyun 	glsl \
122*4882a593Smuzhiyun-        gs \
123*4882a593Smuzhiyun+	gs \
124*4882a593Smuzhiyun 	objviewer \
125*4882a593Smuzhiyun 	osdemos \
126*4882a593Smuzhiyun 	perf \
127*4882a593Smuzhiyun@@ -40,8 +44,12 @@ SUBDIRS = \
128*4882a593Smuzhiyun 	slang \
129*4882a593Smuzhiyun 	tests \
130*4882a593Smuzhiyun 	tools \
131*4882a593Smuzhiyun-	trivial \
132*4882a593Smuzhiyun-	vp \
133*4882a593Smuzhiyun-	vpglsl \
134*4882a593Smuzhiyun 	wgl \
135*4882a593Smuzhiyun 	xdemos
136*4882a593Smuzhiyun+
137*4882a593Smuzhiyun+if HAVE_GLEW
138*4882a593Smuzhiyun+SUBDIRS += \
139*4882a593Smuzhiyun+	vp \
140*4882a593Smuzhiyun+	vpglsl \
141*4882a593Smuzhiyun+	trivial
142*4882a593Smuzhiyun+endif
143*4882a593Smuzhiyundiff --git a/src/demos/Makefile.am b/src/demos/Makefile.am
144*4882a593Smuzhiyunindex 41603fa..ab1e3ab 100644
145*4882a593Smuzhiyun--- a/src/demos/Makefile.am
146*4882a593Smuzhiyun+++ b/src/demos/Makefile.am
147*4882a593Smuzhiyun@@ -30,91 +30,100 @@ AM_LDFLAGS = \
148*4882a593Smuzhiyun 	$(DEMO_LIBS) \
149*4882a593Smuzhiyun 	$(GLUT_LIBS)
150*4882a593Smuzhiyun
151*4882a593Smuzhiyun+bin_PROGRAMS =
152*4882a593Smuzhiyun+
153*4882a593Smuzhiyun if HAVE_GLUT
154*4882a593Smuzhiyun-bin_PROGRAMS = \
155*4882a593Smuzhiyun+if HAVE_GLEW
156*4882a593Smuzhiyun+bin_PROGRAMS += \
157*4882a593Smuzhiyun 	arbfplight \
158*4882a593Smuzhiyun 	arbfslight \
159*4882a593Smuzhiyun 	arbocclude \
160*4882a593Smuzhiyun 	arbocclude2 \
161*4882a593Smuzhiyun-	bounce \
162*4882a593Smuzhiyun-	clearspd \
163*4882a593Smuzhiyun 	copypix \
164*4882a593Smuzhiyun 	cubemap \
165*4882a593Smuzhiyun 	cuberender \
166*4882a593Smuzhiyun 	dinoshade \
167*4882a593Smuzhiyun-	dissolve \
168*4882a593Smuzhiyun-	drawpix \
169*4882a593Smuzhiyun 	engine \
170*4882a593Smuzhiyun 	fbo_firecube \
171*4882a593Smuzhiyun 	fbotexture \
172*4882a593Smuzhiyun-	fire \
173*4882a593Smuzhiyun 	fogcoord \
174*4882a593Smuzhiyun 	fplight \
175*4882a593Smuzhiyun 	fslight \
176*4882a593Smuzhiyun+	gloss \
177*4882a593Smuzhiyun+	isosurf \
178*4882a593Smuzhiyun+	multiarb \
179*4882a593Smuzhiyun+	paltex \
180*4882a593Smuzhiyun+	pointblast \
181*4882a593Smuzhiyun+	projtex \
182*4882a593Smuzhiyun+	shadowtex \
183*4882a593Smuzhiyun+	spriteblast \
184*4882a593Smuzhiyun+	stex3d \
185*4882a593Smuzhiyun+	textures \
186*4882a593Smuzhiyun+	vao_demo \
187*4882a593Smuzhiyun+	winpos
188*4882a593Smuzhiyun+
189*4882a593Smuzhiyun+copypix_LDADD = ../util/libutil.la
190*4882a593Smuzhiyun+cubemap_LDADD = ../util/libutil.la
191*4882a593Smuzhiyun+cuberender_LDADD = ../util/libutil.la
192*4882a593Smuzhiyun+engine_LDADD = ../util/libutil.la
193*4882a593Smuzhiyun+fbo_firecube_LDADD = ../util/libutil.la
194*4882a593Smuzhiyun+gloss_LDADD = ../util/libutil.la
195*4882a593Smuzhiyun+isosurf_LDADD = ../util/libutil.la
196*4882a593Smuzhiyun+multiarb_LDADD = ../util/libutil.la
197*4882a593Smuzhiyun+projtex_LDADD = ../util/libutil.la
198*4882a593Smuzhiyun+textures_LDADD = ../util/libutil.la
199*4882a593Smuzhiyun+winpos_LDADD = ../util/libutil.la
200*4882a593Smuzhiyun+endif
201*4882a593Smuzhiyun+
202*4882a593Smuzhiyun+if HAVE_GLU
203*4882a593Smuzhiyun+bin_PROGRAMS += \
204*4882a593Smuzhiyun+	bounce \
205*4882a593Smuzhiyun+	clearspd \
206*4882a593Smuzhiyun+	dissolve \
207*4882a593Smuzhiyun+	drawpix \
208*4882a593Smuzhiyun+	fire \
209*4882a593Smuzhiyun 	gamma \
210*4882a593Smuzhiyun 	gearbox \
211*4882a593Smuzhiyun 	gears \
212*4882a593Smuzhiyun 	geartrain \
213*4882a593Smuzhiyun 	glinfo \
214*4882a593Smuzhiyun-	gloss \
215*4882a593Smuzhiyun 	gltestperf \
216*4882a593Smuzhiyun 	ipers \
217*4882a593Smuzhiyun-	isosurf \
218*4882a593Smuzhiyun 	lodbias \
219*4882a593Smuzhiyun 	morph3d \
220*4882a593Smuzhiyun-	multiarb \
221*4882a593Smuzhiyun-	paltex \
222*4882a593Smuzhiyun 	pixeltest \
223*4882a593Smuzhiyun-	pointblast \
224*4882a593Smuzhiyun-	projtex \
225*4882a593Smuzhiyun 	ray \
226*4882a593Smuzhiyun 	readpix \
227*4882a593Smuzhiyun 	reflect \
228*4882a593Smuzhiyun 	renormal \
229*4882a593Smuzhiyun-	shadowtex \
230*4882a593Smuzhiyun 	singlebuffer \
231*4882a593Smuzhiyun 	spectex \
232*4882a593Smuzhiyun-	spriteblast \
233*4882a593Smuzhiyun-	stex3d \
234*4882a593Smuzhiyun 	teapot \
235*4882a593Smuzhiyun 	terrain \
236*4882a593Smuzhiyun 	tessdemo \
237*4882a593Smuzhiyun 	texcyl \
238*4882a593Smuzhiyun 	texenv \
239*4882a593Smuzhiyun-	textures \
240*4882a593Smuzhiyun 	trispd \
241*4882a593Smuzhiyun 	tunnel2 \
242*4882a593Smuzhiyun-	tunnel \
243*4882a593Smuzhiyun-	vao_demo \
244*4882a593Smuzhiyun-	winpos
245*4882a593Smuzhiyun-endif
246*4882a593Smuzhiyun+	tunnel
247*4882a593Smuzhiyun
248*4882a593Smuzhiyun tunnel_SOURCES = \
249*4882a593Smuzhiyun 	tunnel.c \
250*4882a593Smuzhiyun 	tunneldat.h
251*4882a593Smuzhiyun
252*4882a593Smuzhiyun-copypix_LDADD = ../util/libutil.la
253*4882a593Smuzhiyun-cubemap_LDADD = ../util/libutil.la
254*4882a593Smuzhiyun-cuberender_LDADD = ../util/libutil.la
255*4882a593Smuzhiyun-drawpix_LDADD = ../util/libutil.la
256*4882a593Smuzhiyun dissolve_LDADD = ../util/libutil.la
257*4882a593Smuzhiyun-engine_LDADD = ../util/libutil.la
258*4882a593Smuzhiyun-fbo_firecube_LDADD = ../util/libutil.la
259*4882a593Smuzhiyun+drawpix_LDADD = ../util/libutil.la
260*4882a593Smuzhiyun fire_LDADD = ../util/libutil.la
261*4882a593Smuzhiyun-gloss_LDADD = ../util/libutil.la
262*4882a593Smuzhiyun ipers_LDADD = ../util/libutil.la
263*4882a593Smuzhiyun-isosurf_LDADD = ../util/libutil.la
264*4882a593Smuzhiyun lodbias_LDADD = ../util/libutil.la
265*4882a593Smuzhiyun-multiarb_LDADD = ../util/libutil.la
266*4882a593Smuzhiyun-projtex_LDADD = ../util/libutil.la
267*4882a593Smuzhiyun readpix_LDADD = ../util/libutil.la
268*4882a593Smuzhiyun reflect_LDADD = ../util/libutil.la
269*4882a593Smuzhiyun teapot_LDADD = ../util/libutil.la
270*4882a593Smuzhiyun texcyl_LDADD = ../util/libutil.la
271*4882a593Smuzhiyun-textures_LDADD = ../util/libutil.la
272*4882a593Smuzhiyun tunnel_LDADD = ../util/libutil.la
273*4882a593Smuzhiyun tunnel2_LDADD = ../util/libutil.la
274*4882a593Smuzhiyun-winpos_LDADD = ../util/libutil.la
275*4882a593Smuzhiyun+endif
276*4882a593Smuzhiyun+endif
277*4882a593Smuzhiyun
278*4882a593Smuzhiyun EXTRA_DIST = \
279*4882a593Smuzhiyun 	README
280*4882a593Smuzhiyundiff --git a/src/egl/Makefile.am b/src/egl/Makefile.am
281*4882a593Smuzhiyunindex d64a49e..4fe1ca8 100644
282*4882a593Smuzhiyun--- a/src/egl/Makefile.am
283*4882a593Smuzhiyun+++ b/src/egl/Makefile.am
284*4882a593Smuzhiyun@@ -24,8 +24,12 @@
285*4882a593Smuzhiyun
286*4882a593Smuzhiyun SUBDIRS = \
287*4882a593Smuzhiyun 	eglut \
288*4882a593Smuzhiyun-	opengl \
289*4882a593Smuzhiyun-	openvg \
290*4882a593Smuzhiyun 	opengles1 \
291*4882a593Smuzhiyun 	opengles2 \
292*4882a593Smuzhiyun 	oes_vg
293*4882a593Smuzhiyun+
294*4882a593Smuzhiyun+if HAVE_GLU
295*4882a593Smuzhiyun+SUBDIRS += \
296*4882a593Smuzhiyun+	opengl \
297*4882a593Smuzhiyun+	openvg
298*4882a593Smuzhiyun+endif
299*4882a593Smuzhiyundiff --git a/src/egl/opengles1/Makefile.am b/src/egl/opengles1/Makefile.am
300*4882a593Smuzhiyunindex fa397c2..21853e8 100644
301*4882a593Smuzhiyun--- a/src/egl/opengles1/Makefile.am
302*4882a593Smuzhiyun+++ b/src/egl/opengles1/Makefile.am
303*4882a593Smuzhiyun@@ -36,9 +36,12 @@ AM_LDFLAGS = \
304*4882a593Smuzhiyun 	$(EGL_LIBS) \
305*4882a593Smuzhiyun 	-lm
306*4882a593Smuzhiyun
307*4882a593Smuzhiyun+noinst_PROGRAMS =
308*4882a593Smuzhiyun+
309*4882a593Smuzhiyun if HAVE_EGL
310*4882a593Smuzhiyun if HAVE_GLESV1
311*4882a593Smuzhiyun-noinst_PROGRAMS = \
312*4882a593Smuzhiyun+if HAVE_X11
313*4882a593Smuzhiyun+bin_PROGRAMS = \
314*4882a593Smuzhiyun 	bindtex \
315*4882a593Smuzhiyun 	clear \
316*4882a593Smuzhiyun 	drawtex_x11 \
317*4882a593Smuzhiyun@@ -52,8 +55,6 @@ noinst_PROGRAMS = \
318*4882a593Smuzhiyun 	torus_x11 \
319*4882a593Smuzhiyun 	tri_x11 \
320*4882a593Smuzhiyun 	two_win
321*4882a593Smuzhiyun-endif
322*4882a593Smuzhiyun-endif
323*4882a593Smuzhiyun
324*4882a593Smuzhiyun bindtex_LDADD = $(X11_LIBS)
325*4882a593Smuzhiyun es1_info_LDADD = $(X11_LIBS)
326*4882a593Smuzhiyun@@ -76,3 +77,6 @@ drawtex_x11_LDADD = ../eglut/libeglut_x11.la
327*4882a593Smuzhiyun gears_x11_LDADD = ../eglut/libeglut_x11.la
328*4882a593Smuzhiyun torus_x11_LDADD = ../eglut/libeglut_x11.la
329*4882a593Smuzhiyun tri_x11_LDADD = ../eglut/libeglut_x11.la
330*4882a593Smuzhiyun+endif
331*4882a593Smuzhiyun+endif
332*4882a593Smuzhiyun+endif
333*4882a593Smuzhiyundiff --git a/src/egl/opengles2/Makefile.am b/src/egl/opengles2/Makefile.am
334*4882a593Smuzhiyunindex b80ba50..17f8d49 100644
335*4882a593Smuzhiyun--- a/src/egl/opengles2/Makefile.am
336*4882a593Smuzhiyun+++ b/src/egl/opengles2/Makefile.am
337*4882a593Smuzhiyun@@ -33,27 +33,28 @@ AM_LDFLAGS = \
338*4882a593Smuzhiyun 	$(EGL_LIBS) \
339*4882a593Smuzhiyun 	-lm
340*4882a593Smuzhiyun
341*4882a593Smuzhiyun+bin_PROGRAMS =
342*4882a593Smuzhiyun+
343*4882a593Smuzhiyun if HAVE_EGL
344*4882a593Smuzhiyun if HAVE_GLESV2
345*4882a593Smuzhiyun-bin_PROGRAMS =
346*4882a593Smuzhiyun-if HAVE_X11
347*4882a593Smuzhiyun-bin_PROGRAMS += \
348*4882a593Smuzhiyun-	es2_info \
349*4882a593Smuzhiyun-	es2gears_x11 \
350*4882a593Smuzhiyun-	es2tri
351*4882a593Smuzhiyun-endif
352*4882a593Smuzhiyun if HAVE_WAYLAND
353*4882a593Smuzhiyun bin_PROGRAMS += es2gears_wayland
354*4882a593Smuzhiyun-endif
355*4882a593Smuzhiyun-endif
356*4882a593Smuzhiyun+
357*4882a593Smuzhiyun+es2gears_wayland_SOURCES = es2gears.c
358*4882a593Smuzhiyun+es2gears_wayland_LDADD = ../eglut/libeglut_wayland.la
359*4882a593Smuzhiyun endif
360*4882a593Smuzhiyun
361*4882a593Smuzhiyun-es2_info_LDADD = $(X11_LIBS)
362*4882a593Smuzhiyun-es2tri_LDADD = $(X11_LIBS)
363*4882a593Smuzhiyun+if HAVE_X11
364*4882a593Smuzhiyun+bin_PROGRAMS += \
365*4882a593Smuzhiyun+	es2tri \
366*4882a593Smuzhiyun+	es2_info \
367*4882a593Smuzhiyun+	es2gears_x11
368*4882a593Smuzhiyun
369*4882a593Smuzhiyun+es2_info_LDADD = $(X11_LIBS)
370*4882a593Smuzhiyun es2gears_x11_SOURCES = es2gears.c
371*4882a593Smuzhiyun-
372*4882a593Smuzhiyun es2gears_x11_LDADD = ../eglut/libeglut_x11.la
373*4882a593Smuzhiyun+es2tri_LDADD = $(X11_LIBS)
374*4882a593Smuzhiyun+endif
375*4882a593Smuzhiyun+endif
376*4882a593Smuzhiyun+endif
377*4882a593Smuzhiyun
378*4882a593Smuzhiyun-es2gears_wayland_SOURCES = es2gears.c
379*4882a593Smuzhiyun-es2gears_wayland_LDADD = ../eglut/libeglut_wayland.la
380*4882a593Smuzhiyun--
381*4882a593Smuzhiyun2.1.4
382*4882a593Smuzhiyun
383