configure: fix --enable-static

Hack around shell programming breakage that made Libav check fail with
--enable-static.
This commit is contained in:
Uoti Urpala 2012-03-04 21:53:42 +02:00
parent 3f659fd176
commit 2a2f867218
1 changed files with 2 additions and 3 deletions

5
configure vendored
View File

@ -166,6 +166,7 @@ yasm_check() {
} }
pkg_config_add() { pkg_config_add() {
unset IFS # shell should not be used for programming
echo >> "$TMPLOG" echo >> "$TMPLOG"
echo "$_pkg_config --cflags $@" >> "$TMPLOG" echo "$_pkg_config --cflags $@" >> "$TMPLOG"
ctmp=$($_pkg_config --cflags "$@" 2>> "$TMPLOG") || return $? ctmp=$($_pkg_config --cflags "$@" 2>> "$TMPLOG") || return $?
@ -5802,9 +5803,7 @@ all_libav_libs="libavutil > 51.21.0:libavcodec > 53.34.0:libavformat > 53.20.0:l
echocheck "Libav ($all_libav_libs)" echocheck "Libav ($all_libav_libs)"
if test "$ffmpeg" = auto ; then if test "$ffmpeg" = auto ; then
IFS=":" # shell should not be used for programming IFS=":" # shell should not be used for programming
if pkg_config_add $all_libav_libs ; then if ! pkg_config_add $all_libav_libs ; then
unset IFS
else
die "Unable to find development files for some of the required Libav libraries above. Aborting." die "Unable to find development files for some of the required Libav libraries above. Aborting."
fi fi
fi fi