summaryrefslogtreecommitdiff
path: root/clients/Makefile.am
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-10-29 13:06:02 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-10-29 13:44:33 -0400
commitb98905e8104429857b74948d3cce658edc615f4a (patch)
tree80833509222127d2fe2f83cc8132278a775f5953 /clients/Makefile.am
parent16b41e442ba42824f7b7bca2208efa8e0572492e (diff)
configure.ac: Check for libGLU for screensaver
https://bugs.freedesktop.org/show_bug.cgi?id=56376
Diffstat (limited to 'clients/Makefile.am')
-rw-r--r--clients/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/clients/Makefile.am b/clients/Makefile.am
index 99a5e3f2..7b992423 100644
--- a/clients/Makefile.am
+++ b/clients/Makefile.am
@@ -174,6 +174,7 @@ full_gl_client_programs = gears
gears_SOURCES = gears.c
gears_LDADD = $(toolkit_libs)
+if HAVE_GLU
screensaver = weston-screensaver
weston_screensaver_SOURCES = \
wscreensaver.c \
@@ -184,7 +185,10 @@ weston_screensaver_SOURCES = \
wscreensaver-glue.h \
glmatrix.c \
matrix3.xpm
-weston_screensaver_LDADD = $(toolkit_libs) -lGLU
+weston_screensaver_LDADD = $(toolkit_libs) $(GLU_LIBS)
+weston_screensaver_CFLAGS = $(toolkit_libs) $(GLU_CFLAGS)
+endif
+
endif
@wayland_scanner_rules@