aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2014-02-13 00:44:08 +0100
committerJanne Grunau <janne-libav@jannau.net>2014-02-13 13:01:49 +0100
commitd261719319a505e1716e8b52fc955bef0503ff96 (patch)
tree9b9cecdd352b294e621e3c58172e299fc3c8b80b /configure
parent60e6cecf9bc7d6a238e6b316da52edcc6d1ef7f8 (diff)
downloadffmpeg-d261719319a505e1716e8b52fc955bef0503ff96.tar.gz
configure: do not link libraries against program-specific dependencies
Bug-Id: 635
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index afb768025a..a5407c7c5b 100755
--- a/configure
+++ b/configure
@@ -2037,6 +2037,7 @@ avconv_select="aformat_filter anull_filter asyncts_filter atrim_filter format_fi
fps_filter null_filter resample_filter scale_filter
setpts_filter trim_filter"
avplay_deps="avcodec avformat avresample swscale sdl"
+avplay_libs='$sdl_libs'
avplay_select="rdft"
avprobe_deps="avcodec avformat"
avserver_deps="avformat fork !shared"
@@ -4039,7 +4040,8 @@ enabled vdpau &&
disable vdpau
enabled vdpau && enabled xlib &&
- check_lib2 "vdpau/vdpau.h vdpau/vdpau_x11.h" vdp_device_create_x11 -lvdpau &&
+ check_func_headers "vdpau/vdpau.h vdpau/vdpau_x11.h" vdp_device_create_x11 -lvdpau &&
+ prepend avconv_libs $($ldflags_filter "-lvdpau") &&
enable vdpau_x11
enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"
@@ -4419,7 +4421,6 @@ HOSTLD_O=$HOSTLD_O
TARGET_EXEC=$target_exec $target_exec_args
TARGET_PATH=$target_path
TARGET_SAMPLES=${target_samples:-\$(SAMPLES)}
-LIBS-avplay=$sdl_libs
CFLAGS-avplay=$sdl_cflags
ZLIB=$($ldflags_filter -lz)
LIB_INSTALL_EXTRA_CMD=$LIB_INSTALL_EXTRA_CMD
@@ -4453,6 +4454,13 @@ get_version(){
map 'get_version $v' $LIBRARY_LIST
+print_program_libs(){
+ eval "program_libs=\$${1}_libs"
+ eval echo "LIBS-${1}=${program_libs}" >> config.mak
+}
+
+map 'print_program_libs $v' $PROGRAM_LIST
+
cat > $TMPH <<EOF
/* Automatically generated by configure - do not modify! */
#ifndef LIBAV_CONFIG_H