summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2011-03-05 13:31:27 +0000
committerphintuka <phintuka>2011-03-05 13:31:27 +0000
commit25e3cfde3a464a2d6a961e46dc6ef8a7866ab497 (patch)
tree768f7915f1cc6afb151b75c5b444e8b3ab88bf62
parent4d061e08ff03905bf36d4a25d8dc30de365084b8 (diff)
downloadxineliboutput-25e3cfde3a464a2d6a961e46dc6ef8a7866ab497.tar.gz
xineliboutput-25e3cfde3a464a2d6a961e46dc6ef8a7866ab497.tar.bz2
opengl support needs -ldl and -lpthread
vdr plugin needs -ldl (closes bug #3199506) (replaces patch #3197558, Thanks to Ville Skyttä)
-rwxr-xr-xconfigure8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index ea50db1e..a5420f50 100755
--- a/configure
+++ b/configure
@@ -7,7 +7,7 @@
# See the main source file 'xineliboutput.c' for copyright information and
# how to reach the author.
#
-# * $Id: configure,v 1.33 2011-03-05 12:56:00 phintuka Exp $
+# * $Id: configure,v 1.34 2011-03-05 13:31:27 phintuka Exp $
#
PKG_CONFIG="pkg-config"
@@ -353,6 +353,7 @@ test_pkgconfig
test_library VDR libextractor "extractor.h" "-lextractor" "EXTRACTOR_getKeywords(0,0)"
test_library VDR libcap "sys/capability.h" "-lcap" "cap_get_proc()"
test_library XINE libxine "xine.h" "-lxine" "xine_init(0)"
+test_library DLFCN dlfcn "dlfcn.h" "-ldl" "dlopen(0,0)"
if enabled libxine; then
@@ -367,7 +368,6 @@ if enabled libxine; then
test_library AVUTIL libavutil "libavutil/mem.h" "-lavutil" "av_mallocz(1)"
test_library JPEG libjpeg "jpeglib.h" "-ljpeg" "jpeg_create_compress(0)"
test_library X11 x11 "X11/X.h" "-lX11" "XInitThreads()"
- test_library VDR dlfcn "dlfcn.h" "-ldl" "dlopen(0,0)"
test_library PTHREAD pthread "pthread.h" "-lpthread" "pthread_create(0,0,0,0)"
if enabled x11; then
test_library X11 xext "X11/extensions/Xext.h" "-lXext" ""
@@ -391,6 +391,10 @@ check_deps
# need -lm for ceil/floor in HUD OSD
enabled xrender && add_flags "LIBS_X11" "-lm"
+# need -ldl and -lpthread with opengl
+enabled opengl && add_flags "LIBS_X11" $LIBS_DLFCN $LIBS_PTHREAD
+# need -ldl for dlopen() in vdr plugin
+enabled vdr && add_flags "LIBS_VDR" $LIBS_DLFCN
#
# Print results