examples: don't compile testrtpool example if pthreads are not available like on...
authorTim-Philipp Müller <tim@centricular.net>
Sat, 17 Nov 2012 10:27:11 +0000 (10:27 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 17 Nov 2012 10:28:36 +0000 (10:28 +0000)
Based on patch by: italarab@gmail.com

https://bugzilla.gnome.org/show_bug.cgi?id=688511

tests/examples/manual/Makefile.am

index 30ac1b4..c9d439c 100644 (file)
@@ -40,7 +40,6 @@ EXAMPLES = \
        appsink \
        dynformat \
        effectswitch \
-       testrtpool \
        norebuffer \
        playbin \
        decodebin \
@@ -61,11 +60,15 @@ BUILT_SOURCES = \
        appsink.c \
        dynformat.c \
        effectswitch.c \
-       testrtpool.c \
        norebuffer.c \
        playbin.c decodebin.c \
        playsink.c
 
+if HAVE_PTHREAD
+BUILT_SOURCES += testrtpool.c
+EXAMPLES += testrtpool
+endif
+
 CLEANFILES = core core.* test-registry.* *.gcno *.gcda $(BUILT_SOURCES)
 
 AM_CFLAGS = $(GST_OBJ_CFLAGS)