examples: Link rtpool-test to libpthread for using the POSIX threads

Also the other streams example can run without pthreads therefore
enable it even if pthreads are not available.

Fixes bug #592314.
This commit is contained in:
Sebastian Dröge 2009-08-19 15:25:41 +02:00
parent 1e39f6ea0e
commit b0b971ff32
2 changed files with 9 additions and 11 deletions

View file

@ -17,20 +17,14 @@ else
ADAPTER_TEST_DIR =
endif
# streams test needs pthreads
if HAVE_PTHREAD_H
STREAMS_TEST_DIR = streams
else
STREAMS_TEST_DIR =
endif
always_dirs = \
controller \
helloworld \
manual \
metadata \
queue \
stepping
stepping \
streams
#appreader
#cutter
@ -51,7 +45,6 @@ always_dirs = \
SUBDIRS = \
$(always_dirs) \
$(ADAPTER_TEST_DIR) \
$(STREAMS_TEST_DIR) \
$(GST_PARSE_DIRS) \
$(GST_LOADSAVE_DIRS)

View file

@ -1,9 +1,14 @@
noinst_PROGRAMS = stream-status rtpool-test
noinst_PROGRAMS = stream-status
if HAVE_PTHREAD_H
noinst_PROGRAMS += rtpool-test
endif
stream_status_SOURCES = stream-status.c
stream_status_LDADD = $(GST_OBJ_LIBS)
stream_status_CFLAGS = $(GST_OBJ_CFLAGS)
rtpool_test_SOURCES = rtpool-test.c testrtpool.h testrtpool.c
rtpool_test_LDADD = $(GST_OBJ_LIBS)
rtpool_test_LDADD = $(GST_OBJ_LIBS) -lpthread
rtpool_test_CFLAGS = $(GST_OBJ_CFLAGS)
EXTRA_DIST = rtpool-test.c testrtpool.h testrtpool.c