aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-02 18:54:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-02 18:54:57 +0200
commitcec345625480482d99e7bc6c275979a336769488 (patch)
treee69e953e581739db4b836c7aa0666301db20d94a /configure
parentce4e57dbb51ac106a61fcd98330af9a619eea857 (diff)
parent06db45523c1068c24f049ef2b20fcdead3bf36d8 (diff)
downloadffmpeg-cec345625480482d99e7bc6c275979a336769488.tar.gz
Merge commit '06db45523c1068c24f049ef2b20fcdead3bf36d8'
* commit '06db45523c1068c24f049ef2b20fcdead3bf36d8': configure: Support the extended pkgconf syntax Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 8 insertions, 8 deletions
diff --git a/configure b/configure
index 885f3d4fc7..76a1d80bea 100755
--- a/configure
+++ b/configure
@@ -1120,8 +1120,8 @@ check_pkg_config(){
pkg_cflags=$($pkg_config --cflags $pkg_config_flags $pkg)
pkg_libs=$($pkg_config --libs $pkg_config_flags $pkg)
check_func_headers "$headers" "$funcs" $pkg_cflags $pkg_libs "$@" &&
- set_safe ${pkg}_cflags $pkg_cflags &&
- set_safe ${pkg}_libs $pkg_libs
+ set_safe "${pkg}_cflags" $pkg_cflags &&
+ set_safe "${pkg}_libs" $pkg_libs
}
check_exec(){
@@ -1225,8 +1225,8 @@ require_cpp(){
use_pkg_config(){
pkg="$1"
check_pkg_config "$@" || return 1
- add_cflags $(get_safe ${pkg}_cflags)
- add_extralibs $(get_safe ${pkg}_libs)
+ add_cflags $(get_safe "${pkg}_cflags")
+ add_extralibs $(get_safe "${pkg}_libs")
}
require_pkg_config(){
@@ -1246,11 +1246,11 @@ require_libfreetype(){
echo "long check_func(void) { return (long) FT_Init_FreeType; }"
echo "int main(void) { return 0; }"
} | check_ld "cc" $pkg_cflags $pkg_libs \
- && set_safe ${pkg}_cflags $pkg_cflags \
- && set_safe ${pkg}_libs $pkg_libs \
+ && set_safe "${pkg}_cflags" $pkg_cflags \
+ && set_safe "${pkg}_libs" $pkg_libs \
|| die "ERROR: $pkg not found"
- add_cflags $(get_safe ${pkg}_cflags)
- add_extralibs $(get_safe ${pkg}_libs)
+ add_cflags $(get_safe "${pkg}_cflags")
+ add_extralibs $(get_safe "${pkg}_libs")
}
hostcc_e(){