summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFilippo Argiolas <filippo.argiolas@gmail.com>2009-12-23 09:55:17 +0100
committerFilippo Argiolas <filippo.argiolas@gmail.com>2009-12-23 09:55:17 +0100
commite555fac961e7cad22c9caae3f9bb6eda7118bba1 (patch)
treefa512819e1d80addd171b1c08166f16b6edc1a6e /tests
parent01ee3e62a617bf20bb89f99128607ccb89425e9c (diff)
downloadcheese-e555fac961e7cad22c9caae3f9bb6eda7118bba1.tar.gz
Conditionally enable Xtst based examples
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index a7915613..f503fe9d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -12,7 +12,13 @@ INCLUDES = \
-I@top_srcdir@/libcheese \
$(NULL)
-noinst_PROGRAMS = cheese-test-widget cheese-test-monitor test-webcam-button cheese-test-chooser
+EXAMPLES = cheese-test-widget cheese-test-monitor cheese-test-chooser
+
+if HAVE_XTEST
+noinst_PROGRAMS = $(EXAMPLES) test-webcam-button
+else
+noinst_PROGRAMS = $(EXAMPLES)
+endif
cheese_test_widget_SOURCES = cheese-test-widget.c
cheese_test_monitor_SOURCES = cheese-test-monitor.c
@@ -26,7 +32,7 @@ cheese_test_monitor_LDADD = $(CHEESE_LIBS) \
$(top_builddir)/libcheese/libcheesecommon.la \
$(top_builddir)/libcheese/libcheese-gtk.la \
$(NULL)
-test_webcam_button_LDADD = -lX11 -lXtst
+test_webcam_button_LDADD = $(XTEST_LIBS)
cheese_test_chooser_SOURCES = cheese-test-chooser.c
cheese_test_chooser_LDADD = $(CHEESE_LIBS) \
$(top_builddir)/libcheese/libcheesecommon.la \