Commit 374304c9 authored by diego's avatar diego

Replace all `` by $(), the latter can be nested more easily.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17923 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 56e5e76f
...@@ -440,7 +440,7 @@ print_config(){ ...@@ -440,7 +440,7 @@ print_config(){
makefile=$3 makefile=$3
shift 3 shift 3
for cfg; do for cfg; do
ucname="`toupper $cfg`" ucname="$(toupper $cfg)"
if enabled $cfg; then if enabled $cfg; then
echo "#define ${pfx}${ucname} 1" >> $header echo "#define ${pfx}${ucname} 1" >> $header
echo "${pfx}${ucname}=yes" >> $makefile echo "${pfx}${ucname}=yes" >> $makefile
...@@ -657,7 +657,7 @@ check_exec(){ ...@@ -657,7 +657,7 @@ check_exec(){
} }
check_exec_crash(){ check_exec_crash(){
code=`cat` code=$(cat)
# exit() is not async signal safe. _Exit (C99) and _exit (POSIX) # exit() is not async signal safe. _Exit (C99) and _exit (POSIX)
# are safe but may not be available everywhere. Thus we use # are safe but may not be available everywhere. Thus we use
...@@ -725,8 +725,8 @@ check_foo_config(){ ...@@ -725,8 +725,8 @@ check_foo_config(){
check_cmd ${pkg}-config --version check_cmd ${pkg}-config --version
err=$? err=$?
if test "$err" = 0; then if test "$err" = 0; then
temp_cflags `${pkg}-config --cflags` temp_cflags $(${pkg}-config --cflags)
temp_extralibs `${pkg}-config --libs` temp_extralibs $(${pkg}-config --libs)
check_lib "$@" $header $func && enable $cfg check_lib "$@" $header $func && enable $cfg
fi fi
return $err return $err
...@@ -1157,7 +1157,7 @@ strip="strip" ...@@ -1157,7 +1157,7 @@ strip="strip"
yasmexe="yasm" yasmexe="yasm"
# machine # machine
arch=`uname -m` arch=$(uname -m)
cpu="generic" cpu="generic"
# OS # OS
...@@ -1203,13 +1203,13 @@ target_path='.' ...@@ -1203,13 +1203,13 @@ target_path='.'
DEPEND_CMD='$(CC) $(CFLAGS) -MM $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o,"' DEPEND_CMD='$(CC) $(CFLAGS) -MM $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o,"'
# find source path # find source path
source_path="`dirname \"$0\"`" source_path="$(dirname "$0")"
enable source_path_used enable source_path_used
if test -z "$source_path" -o "$source_path" = "." ; then if test -z "$source_path" -o "$source_path" = "." ; then
source_path="`pwd`" source_path="$(pwd)"
disable source_path_used disable source_path_used
else else
source_path="`cd \"$source_path\"; pwd`" source_path="$(cd "$source_path"; pwd)"
echo "$source_path" | grep -q '[[:blank:]]' && echo "$source_path" | grep -q '[[:blank:]]' &&
die "Out of tree builds are impossible with whitespace in source path." die "Out of tree builds are impossible with whitespace in source path."
fi fi
...@@ -1273,14 +1273,14 @@ for opt do ...@@ -1273,14 +1273,14 @@ for opt do
--enable-debug=*) debuglevel="$optval" --enable-debug=*) debuglevel="$optval"
;; ;;
--enable-*=*|--disable-*=*) --enable-*=*|--disable-*=*)
eval `echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/'` eval $(echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/')
case "$thing" in case "$thing" in
encoder|decoder|muxer|demuxer|parser|bsf|protocol|filter) $action ${optval}_${thing} ;; encoder|decoder|muxer|demuxer|parser|bsf|protocol|filter) $action ${optval}_${thing} ;;
*) die_unknown "$opt" ;; *) die_unknown "$opt" ;;
esac esac
;; ;;
--enable-?*|--disable-?*) --enable-?*|--disable-?*)
eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'` eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g')
if is_in $option $COMPONENT_LIST; then if is_in $option $COMPONENT_LIST; then
eval $action \$$(toupper ${option%s})_LIST eval $action \$$(toupper ${option%s})_LIST
elif is_in $option $CMDLINE_SELECT; then elif is_in $option $CMDLINE_SELECT; then
...@@ -1527,7 +1527,7 @@ case $target_os in ...@@ -1527,7 +1527,7 @@ case $target_os in
# helps building libavcodec # helps building libavcodec
add_cflags -DPIC -fomit-frame-pointer add_cflags -DPIC -fomit-frame-pointer
# 3 gcc releases known for BeOS, each with ugly bugs # 3 gcc releases known for BeOS, each with ugly bugs
gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`" gcc_version="$($cc -v 2>&1 | grep version | cut -d ' ' -f3-)"
case "$gcc_version" in case "$gcc_version" in
2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc" 2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc"
disable mmx disable mmx
...@@ -2046,11 +2046,11 @@ disable sdl_too_old ...@@ -2046,11 +2046,11 @@ disable sdl_too_old
disable sdl disable sdl
SDL_CONFIG="${cross_prefix}sdl-config" SDL_CONFIG="${cross_prefix}sdl-config"
if "${SDL_CONFIG}" --version > /dev/null 2>&1; then if "${SDL_CONFIG}" --version > /dev/null 2>&1; then
sdl_cflags=`"${SDL_CONFIG}" --cflags` sdl_cflags=$("${SDL_CONFIG}" --cflags)
temp_cflags $sdl_cflags temp_cflags $sdl_cflags
temp_extralibs `"${SDL_CONFIG}" --libs` temp_extralibs $("${SDL_CONFIG}" --libs)
if check_lib2 SDL.h SDL_Init; then if check_lib2 SDL.h SDL_Init; then
_sdlversion=`"${SDL_CONFIG}" --version | sed 's/[^0-9]//g'` _sdlversion=$("${SDL_CONFIG}" --version | sed 's/[^0-9]//g')
if test "$_sdlversion" -lt 121 ; then if test "$_sdlversion" -lt 121 ; then
enable sdl_too_old enable sdl_too_old
else else
...@@ -2398,8 +2398,8 @@ if enabled bigendian; then ...@@ -2398,8 +2398,8 @@ if enabled bigendian; then
fi fi
if enabled sdl; then if enabled sdl; then
echo "SDL_LIBS=`"${SDL_CONFIG}" --libs`" >> config.mak echo "SDL_LIBS=$("${SDL_CONFIG}" --libs)" >> config.mak
echo "SDL_CFLAGS=`"${SDL_CONFIG}" --cflags`" >> config.mak echo "SDL_CFLAGS=$("${SDL_CONFIG}" --cflags)" >> config.mak
fi fi
if enabled texi2html; then if enabled texi2html; then
echo "BUILD_DOC=yes" >> config.mak echo "BUILD_DOC=yes" >> config.mak
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment