configure: Use $(..) instead of deprecated ..

This fixes these warnings from shellcheck:

    ^-- SC2006: Use $(..) instead of deprecated `..`

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Stefan Weil 2016-05-16 15:10:20 +02:00 committed by Michael Tokarev
parent 9640401389
commit 8913885761

174
configure vendored
View file

@ -165,7 +165,7 @@ have_backend () {
} }
# default parameters # default parameters
source_path=`dirname "$0"` source_path=$(dirname "$0")
cpu="" cpu=""
iasl="iasl" iasl="iasl"
interp_prefix="/usr/gnemul/qemu-%M" interp_prefix="/usr/gnemul/qemu-%M"
@ -324,7 +324,7 @@ jemalloc="no"
# parse CC options first # parse CC options first
for opt do for opt do
optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'` optarg=$(expr "x$opt" : 'x[^=]*=\(.*\)')
case "$opt" in case "$opt" in
--cross-prefix=*) cross_prefix="$optarg" --cross-prefix=*) cross_prefix="$optarg"
;; ;;
@ -399,7 +399,7 @@ if test "$debug_info" = "yes"; then
fi fi
# make source path absolute # make source path absolute
source_path=`cd "$source_path"; pwd` source_path=$(cd "$source_path"; pwd)
# running configure in the source tree? # running configure in the source tree?
# we know that's the case if configure is there. # we know that's the case if configure is there.
@ -444,7 +444,7 @@ elif check_define __sun__ ; then
elif check_define __HAIKU__ ; then elif check_define __HAIKU__ ; then
targetos='Haiku' targetos='Haiku'
else else
targetos=`uname -s` targetos=$(uname -s)
fi fi
# Some host OSes need non-standard checks for which CPU to use. # Some host OSes need non-standard checks for which CPU to use.
@ -462,7 +462,7 @@ Darwin)
fi fi
;; ;;
SunOS) SunOS)
# `uname -m` returns i86pc even on an x86_64 box, so default based on isainfo # $(uname -m) returns i86pc even on an x86_64 box, so default based on isainfo
if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then
cpu="x86_64" cpu="x86_64"
fi fi
@ -508,7 +508,7 @@ elif check_define __aarch64__ ; then
elif check_define __hppa__ ; then elif check_define __hppa__ ; then
cpu="hppa" cpu="hppa"
else else
cpu=`uname -m` cpu=$(uname -m)
fi fi
ARCH= ARCH=
@ -628,7 +628,7 @@ SunOS)
ld="gld" ld="gld"
smbd="${SMBD-/usr/sfw/sbin/smbd}" smbd="${SMBD-/usr/sfw/sbin/smbd}"
needs_libsunmath="no" needs_libsunmath="no"
solarisrev=`uname -r | cut -f2 -d.` solarisrev=$(uname -r | cut -f2 -d.)
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
if test "$solarisrev" -le 9 ; then if test "$solarisrev" -le 9 ; then
if test -f /opt/SUNWspro/prod/lib/libsunmath.so.1; then if test -f /opt/SUNWspro/prod/lib/libsunmath.so.1; then
@ -723,7 +723,7 @@ fi
werror="" werror=""
for opt do for opt do
optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'` optarg=$(expr "x$opt" : 'x[^=]*=\(.*\)')
case "$opt" in case "$opt" in
--help|-h) show_help=yes --help|-h) show_help=yes
;; ;;
@ -847,9 +847,9 @@ for opt do
;; ;;
--audio-drv-list=*) audio_drv_list="$optarg" --audio-drv-list=*) audio_drv_list="$optarg"
;; ;;
--block-drv-rw-whitelist=*|--block-drv-whitelist=*) block_drv_rw_whitelist=`echo "$optarg" | sed -e 's/,/ /g'` --block-drv-rw-whitelist=*|--block-drv-whitelist=*) block_drv_rw_whitelist=$(echo "$optarg" | sed -e 's/,/ /g')
;; ;;
--block-drv-ro-whitelist=*) block_drv_ro_whitelist=`echo "$optarg" | sed -e 's/,/ /g'` --block-drv-ro-whitelist=*) block_drv_ro_whitelist=$(echo "$optarg" | sed -e 's/,/ /g')
;; ;;
--enable-debug-tcg) debug_tcg="yes" --enable-debug-tcg) debug_tcg="yes"
;; ;;
@ -944,7 +944,7 @@ for opt do
;; ;;
--enable-cocoa) --enable-cocoa)
cocoa="yes" ; cocoa="yes" ;
audio_drv_list="coreaudio `echo $audio_drv_list | sed s,coreaudio,,g`" audio_drv_list="coreaudio $(echo $audio_drv_list | sed s,coreaudio,,g)"
;; ;;
--disable-system) softmmu="no" --disable-system) softmmu="no"
;; ;;
@ -1389,7 +1389,7 @@ fi
# Consult white-list to determine whether to enable werror # Consult white-list to determine whether to enable werror
# by default. Only enable by default for git builds # by default. Only enable by default for git builds
z_version=`cut -f3 -d. $source_path/VERSION` z_version=$(cut -f3 -d. $source_path/VERSION)
if test -z "$werror" ; then if test -z "$werror" ; then
if test -d "$source_path/.git" -a \ if test -d "$source_path/.git" -a \
@ -1618,7 +1618,7 @@ if test "$solaris" = "yes" ; then
"install fileutils from www.blastwave.org using pkg-get -i fileutils" \ "install fileutils from www.blastwave.org using pkg-get -i fileutils" \
"to get ginstall which is used by default (which lives in /opt/csw/bin)" "to get ginstall which is used by default (which lives in /opt/csw/bin)"
fi fi
if test "`path_of $install`" = "/usr/sbin/install" ; then if test "$(path_of $install)" = "/usr/sbin/install" ; then
error_exit "Solaris /usr/sbin/install is not an appropriate install program." \ error_exit "Solaris /usr/sbin/install is not an appropriate install program." \
"try ginstall from the GNU fileutils available from www.blastwave.org" \ "try ginstall from the GNU fileutils available from www.blastwave.org" \
"using pkg-get -i fileutils, or use --install=/usr/ucb/install" "using pkg-get -i fileutils, or use --install=/usr/ucb/install"
@ -1637,7 +1637,7 @@ fi
if test -z "${target_list+xxx}" ; then if test -z "${target_list+xxx}" ; then
target_list="$default_target_list" target_list="$default_target_list"
else else
target_list=`echo "$target_list" | sed -e 's/,/ /g'` target_list=$(echo "$target_list" | sed -e 's/,/ /g')
fi fi
# Check that we recognised the target name; this allows a more # Check that we recognised the target name; this allows a more
@ -1887,8 +1887,8 @@ if test "$seccomp" != "no" ; then
if test "$libseccomp_minver" != "" && if test "$libseccomp_minver" != "" &&
$pkg_config --atleast-version=$libseccomp_minver libseccomp ; then $pkg_config --atleast-version=$libseccomp_minver libseccomp ; then
libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`" libs_softmmu="$libs_softmmu $($pkg_config --libs libseccomp)"
QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`" QEMU_CFLAGS="$QEMU_CFLAGS $($pkg_config --cflags libseccomp)"
seccomp="yes" seccomp="yes"
else else
if test "$seccomp" = "yes" ; then if test "$seccomp" = "yes" ; then
@ -2128,8 +2128,8 @@ fi
x11_cflags= x11_cflags=
x11_libs=-lX11 x11_libs=-lX11
if $pkg_config --exists "x11"; then if $pkg_config --exists "x11"; then
x11_cflags=`$pkg_config --cflags x11` x11_cflags=$($pkg_config --cflags x11)
x11_libs=`$pkg_config --libs x11` x11_libs=$($pkg_config --libs x11)
fi fi
########################################## ##########################################
@ -2156,9 +2156,9 @@ if test "$gtk" != "no"; then
gtkversion="2.18.0" gtkversion="2.18.0"
fi fi
if $pkg_config --exists "$gtkpackage >= $gtkversion"; then if $pkg_config --exists "$gtkpackage >= $gtkversion"; then
gtk_cflags=`$pkg_config --cflags $gtkpackage` gtk_cflags=$($pkg_config --cflags $gtkpackage)
gtk_libs=`$pkg_config --libs $gtkpackage` gtk_libs=$($pkg_config --libs $gtkpackage)
gtk_version=`$pkg_config --modversion $gtkpackage` gtk_version=$($pkg_config --modversion $gtkpackage)
if $pkg_config --exists "$gtkx11package >= $gtkversion"; then if $pkg_config --exists "$gtkx11package >= $gtkversion"; then
gtk_cflags="$gtk_cflags $x11_cflags" gtk_cflags="$gtk_cflags $x11_cflags"
gtk_libs="$gtk_libs $x11_libs" gtk_libs="$gtk_libs $x11_libs"
@ -2196,8 +2196,8 @@ gnutls_gcrypt=no
gnutls_nettle=no gnutls_nettle=no
if test "$gnutls" != "no"; then if test "$gnutls" != "no"; then
if gnutls_works; then if gnutls_works; then
gnutls_cflags=`$pkg_config --cflags gnutls` gnutls_cflags=$($pkg_config --cflags gnutls)
gnutls_libs=`$pkg_config --libs gnutls` gnutls_libs=$($pkg_config --libs gnutls)
libs_softmmu="$gnutls_libs $libs_softmmu" libs_softmmu="$gnutls_libs $libs_softmmu"
libs_tools="$gnutls_libs $libs_tools" libs_tools="$gnutls_libs $libs_tools"
QEMU_CFLAGS="$QEMU_CFLAGS $gnutls_cflags" QEMU_CFLAGS="$QEMU_CFLAGS $gnutls_cflags"
@ -2221,7 +2221,7 @@ if test "$gnutls" != "no"; then
gnutls_gcrypt=no gnutls_gcrypt=no
gnutls_nettle=yes gnutls_nettle=yes
elif $pkg_config --exists 'gnutls >= 2.12'; then elif $pkg_config --exists 'gnutls >= 2.12'; then
case `$pkg_config --libs --static gnutls` in case $($pkg_config --libs --static gnutls) in
*gcrypt*) *gcrypt*)
gnutls_gcrypt=yes gnutls_gcrypt=yes
gnutls_nettle=no gnutls_nettle=no
@ -2282,7 +2282,7 @@ has_libgcrypt_config() {
if test -n "$cross_prefix" if test -n "$cross_prefix"
then then
host=`libgcrypt-config --host` host=$(libgcrypt-config --host)
if test "$host-" != $cross_prefix if test "$host-" != $cross_prefix
then then
return 1 return 1
@ -2294,8 +2294,8 @@ has_libgcrypt_config() {
if test "$gcrypt" != "no"; then if test "$gcrypt" != "no"; then
if has_libgcrypt_config; then if has_libgcrypt_config; then
gcrypt_cflags=`libgcrypt-config --cflags` gcrypt_cflags=$(libgcrypt-config --cflags)
gcrypt_libs=`libgcrypt-config --libs` gcrypt_libs=$(libgcrypt-config --libs)
# Debian has remove -lgpg-error from libgcrypt-config # Debian has remove -lgpg-error from libgcrypt-config
# as it "spreads unnecessary dependencies" which in # as it "spreads unnecessary dependencies" which in
# turn breaks static builds... # turn breaks static builds...
@ -2335,9 +2335,9 @@ fi
if test "$nettle" != "no"; then if test "$nettle" != "no"; then
if $pkg_config --exists "nettle"; then if $pkg_config --exists "nettle"; then
nettle_cflags=`$pkg_config --cflags nettle` nettle_cflags=$($pkg_config --cflags nettle)
nettle_libs=`$pkg_config --libs nettle` nettle_libs=$($pkg_config --libs nettle)
nettle_version=`$pkg_config --modversion nettle` nettle_version=$($pkg_config --modversion nettle)
libs_softmmu="$nettle_libs $libs_softmmu" libs_softmmu="$nettle_libs $libs_softmmu"
libs_tools="$nettle_libs $libs_tools" libs_tools="$nettle_libs $libs_tools"
QEMU_CFLAGS="$QEMU_CFLAGS $nettle_cflags" QEMU_CFLAGS="$QEMU_CFLAGS $nettle_cflags"
@ -2374,8 +2374,8 @@ tasn1=yes
tasn1_cflags="" tasn1_cflags=""
tasn1_libs="" tasn1_libs=""
if $pkg_config --exists "libtasn1"; then if $pkg_config --exists "libtasn1"; then
tasn1_cflags=`$pkg_config --cflags libtasn1` tasn1_cflags=$($pkg_config --cflags libtasn1)
tasn1_libs=`$pkg_config --libs libtasn1` tasn1_libs=$($pkg_config --libs libtasn1)
else else
tasn1=no tasn1=no
fi fi
@ -2405,9 +2405,9 @@ if test "$vte" != "no"; then
vteminversion="0.24.0" vteminversion="0.24.0"
fi fi
if $pkg_config --exists "$vtepackage >= $vteminversion"; then if $pkg_config --exists "$vtepackage >= $vteminversion"; then
vte_cflags=`$pkg_config --cflags $vtepackage` vte_cflags=$($pkg_config --cflags $vtepackage)
vte_libs=`$pkg_config --libs $vtepackage` vte_libs=$($pkg_config --libs $vtepackage)
vteversion=`$pkg_config --modversion $vtepackage` vteversion=$($pkg_config --modversion $vtepackage)
libs_softmmu="$vte_libs $libs_softmmu" libs_softmmu="$vte_libs $libs_softmmu"
vte="yes" vte="yes"
elif test "$vte" = "yes"; then elif test "$vte" = "yes"; then
@ -2448,16 +2448,16 @@ else
error_exit "Unknown sdlabi $sdlabi, must be 1.2 or 2.0" error_exit "Unknown sdlabi $sdlabi, must be 1.2 or 2.0"
fi fi
if test "`basename $sdl_config`" != $sdlconfigname && ! has ${sdl_config}; then if test "$(basename $sdl_config)" != $sdlconfigname && ! has ${sdl_config}; then
sdl_config=$sdlconfigname sdl_config=$sdlconfigname
fi fi
if $pkg_config $sdlname --exists; then if $pkg_config $sdlname --exists; then
sdlconfig="$pkg_config $sdlname" sdlconfig="$pkg_config $sdlname"
sdlversion=`$sdlconfig --modversion 2>/dev/null` sdlversion=$($sdlconfig --modversion 2>/dev/null)
elif has ${sdl_config}; then elif has ${sdl_config}; then
sdlconfig="$sdl_config" sdlconfig="$sdl_config"
sdlversion=`$sdlconfig --version` sdlversion=$($sdlconfig --version)
else else
if test "$sdl" = "yes" ; then if test "$sdl" = "yes" ; then
feature_not_found "sdl" "Install SDL devel" feature_not_found "sdl" "Install SDL devel"
@ -2475,14 +2475,14 @@ if test "$sdl" != "no" ; then
#undef main /* We don't want SDL to override our main() */ #undef main /* We don't want SDL to override our main() */
int main( void ) { return SDL_Init (SDL_INIT_VIDEO); } int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
EOF EOF
sdl_cflags=`$sdlconfig --cflags 2> /dev/null` sdl_cflags=$($sdlconfig --cflags 2>/dev/null)
if test "$static" = "yes" ; then if test "$static" = "yes" ; then
sdl_libs=`$sdlconfig --static-libs 2>/dev/null` sdl_libs=$($sdlconfig --static-libs 2>/dev/null)
else else
sdl_libs=`$sdlconfig --libs 2> /dev/null` sdl_libs=$($sdlconfig --libs 2>/dev/null)
fi fi
if compile_prog "$sdl_cflags" "$sdl_libs" ; then if compile_prog "$sdl_cflags" "$sdl_libs" ; then
if test `echo $sdlversion | sed 's/[^0-9]//g'` -lt 121 ; then if test $(echo $sdlversion | sed 's/[^0-9]//g') -lt 121 ; then
sdl_too_old=yes sdl_too_old=yes
else else
sdl=yes sdl=yes
@ -2491,8 +2491,8 @@ EOF
# static link with sdl ? (note: sdl.pc's --static --libs is broken) # static link with sdl ? (note: sdl.pc's --static --libs is broken)
if test "$sdl" = "yes" -a "$static" = "yes" ; then if test "$sdl" = "yes" -a "$static" = "yes" ; then
if test $? = 0 && echo $sdl_libs | grep -- -laa > /dev/null; then if test $? = 0 && echo $sdl_libs | grep -- -laa > /dev/null; then
sdl_libs="$sdl_libs `aalib-config --static-libs 2>/dev/null`" sdl_libs="$sdl_libs $(aalib-config --static-libs 2>/dev/null)"
sdl_cflags="$sdl_cflags `aalib-config --cflags 2>/dev/null`" sdl_cflags="$sdl_cflags $(aalib-config --cflags 2>/dev/null)"
fi fi
if compile_prog "$sdl_cflags" "$sdl_libs" ; then if compile_prog "$sdl_cflags" "$sdl_libs" ; then
: :
@ -2609,8 +2609,8 @@ int main(void) {
} }
EOF EOF
if $pkg_config libpng --exists; then if $pkg_config libpng --exists; then
vnc_png_cflags=`$pkg_config libpng --cflags` vnc_png_cflags=$($pkg_config libpng --cflags)
vnc_png_libs=`$pkg_config libpng --libs` vnc_png_libs=$($pkg_config libpng --libs)
else else
vnc_png_cflags="" vnc_png_cflags=""
vnc_png_libs="-lpng" vnc_png_libs="-lpng"
@ -2804,7 +2804,7 @@ EOF
fi fi
} }
audio_drv_list=`echo "$audio_drv_list" | sed -e 's/,/ /g'` audio_drv_list=$(echo "$audio_drv_list" | sed -e 's/,/ /g')
for drv in $audio_drv_list; do for drv in $audio_drv_list; do
case $drv in case $drv in
alsa) alsa)
@ -2916,8 +2916,8 @@ if test "$curl" != "no" ; then
#include <curl/curl.h> #include <curl/curl.h>
int main(void) { curl_easy_init(); curl_multi_setopt(0, 0, 0); return 0; } int main(void) { curl_easy_init(); curl_multi_setopt(0, 0, 0); return 0; }
EOF EOF
curl_cflags=`$curlconfig --cflags 2>/dev/null` curl_cflags=$($curlconfig --cflags 2>/dev/null)
curl_libs=`$curlconfig --libs 2>/dev/null` curl_libs=$($curlconfig --libs 2>/dev/null)
if compile_prog "$curl_cflags" "$curl_libs" ; then if compile_prog "$curl_cflags" "$curl_libs" ; then
curl=yes curl=yes
else else
@ -2935,8 +2935,8 @@ if test "$bluez" != "no" ; then
#include <bluetooth/bluetooth.h> #include <bluetooth/bluetooth.h>
int main(void) { return bt_error(0); } int main(void) { return bt_error(0); }
EOF EOF
bluez_cflags=`$pkg_config --cflags bluez 2> /dev/null` bluez_cflags=$($pkg_config --cflags bluez 2>/dev/null)
bluez_libs=`$pkg_config --libs bluez 2> /dev/null` bluez_libs=$($pkg_config --libs bluez 2>/dev/null)
if compile_prog "$bluez_cflags" "$bluez_libs" ; then if compile_prog "$bluez_cflags" "$bluez_libs" ; then
bluez=yes bluez=yes
libs_softmmu="$bluez_libs $libs_softmmu" libs_softmmu="$bluez_libs $libs_softmmu"
@ -2959,8 +2959,8 @@ fi
for i in $glib_modules; do for i in $glib_modules; do
if $pkg_config --atleast-version=$glib_req_ver $i; then if $pkg_config --atleast-version=$glib_req_ver $i; then
glib_cflags=`$pkg_config --cflags $i` glib_cflags=$($pkg_config --cflags $i)
glib_libs=`$pkg_config --libs $i` glib_libs=$($pkg_config --libs $i)
CFLAGS="$glib_cflags $CFLAGS" CFLAGS="$glib_cflags $CFLAGS"
LIBS="$glib_libs $LIBS" LIBS="$glib_libs $LIBS"
libs_qga="$glib_libs $libs_qga" libs_qga="$glib_libs $libs_qga"
@ -3049,8 +3049,8 @@ if test "$pixman" = "none"; then
pixman_libs= pixman_libs=
elif test "$pixman" = "system"; then elif test "$pixman" = "system"; then
# pixman version has been checked above # pixman version has been checked above
pixman_cflags=`$pkg_config --cflags pixman-1` pixman_cflags=$($pkg_config --cflags pixman-1)
pixman_libs=`$pkg_config --libs pixman-1` pixman_libs=$($pkg_config --libs pixman-1)
else else
if test ! -d ${source_path}/pixman/pixman; then if test ! -d ${source_path}/pixman/pixman; then
error_exit "pixman >= 0.21.8 not present. Your options:" \ error_exit "pixman >= 0.21.8 not present. Your options:" \
@ -3166,8 +3166,8 @@ fi
min_libssh2_version=1.2.8 min_libssh2_version=1.2.8
if test "$libssh2" != "no" ; then if test "$libssh2" != "no" ; then
if $pkg_config --atleast-version=$min_libssh2_version libssh2; then if $pkg_config --atleast-version=$min_libssh2_version libssh2; then
libssh2_cflags=`$pkg_config libssh2 --cflags` libssh2_cflags=$($pkg_config libssh2 --cflags)
libssh2_libs=`$pkg_config libssh2 --libs` libssh2_libs=$($pkg_config libssh2 --libs)
libssh2=yes libssh2=yes
else else
if test "$libssh2" = "yes" ; then if test "$libssh2" = "yes" ; then
@ -3418,8 +3418,8 @@ fi
if test "$glusterfs" != "no" ; then if test "$glusterfs" != "no" ; then
if $pkg_config --atleast-version=3 glusterfs-api; then if $pkg_config --atleast-version=3 glusterfs-api; then
glusterfs="yes" glusterfs="yes"
glusterfs_cflags=`$pkg_config --cflags glusterfs-api` glusterfs_cflags=$($pkg_config --cflags glusterfs-api)
glusterfs_libs=`$pkg_config --libs glusterfs-api` glusterfs_libs=$($pkg_config --libs glusterfs-api)
if $pkg_config --atleast-version=4 glusterfs-api; then if $pkg_config --atleast-version=4 glusterfs-api; then
glusterfs_xlator_opt="yes" glusterfs_xlator_opt="yes"
fi fi
@ -4226,12 +4226,12 @@ int main(void) { return 0; }
EOF EOF
if compile_prog "" "" ; then if compile_prog "" "" ; then
if $pkg_config lttng-ust --exists; then if $pkg_config lttng-ust --exists; then
lttng_ust_libs=`$pkg_config --libs lttng-ust` lttng_ust_libs=$($pkg_config --libs lttng-ust)
else else
lttng_ust_libs="-llttng-ust" lttng_ust_libs="-llttng-ust"
fi fi
if $pkg_config liburcu-bp --exists; then if $pkg_config liburcu-bp --exists; then
urcu_bp_libs=`$pkg_config --libs liburcu-bp` urcu_bp_libs=$($pkg_config --libs liburcu-bp)
else else
urcu_bp_libs="-lurcu-bp" urcu_bp_libs="-lurcu-bp"
fi fi
@ -4690,10 +4690,10 @@ if test "$guest_agent_msi" = "yes"; then
fi fi
if test "$QEMU_GA_VERSION" = ""; then if test "$QEMU_GA_VERSION" = ""; then
QEMU_GA_VERSION=`cat $source_path/VERSION` QEMU_GA_VERSION=$(cat $source_path/VERSION)
fi fi
QEMU_GA_MSI_MINGW_DLL_PATH="-D Mingw_dlls=`$pkg_config --variable=prefix glib-2.0`/bin" QEMU_GA_MSI_MINGW_DLL_PATH="-D Mingw_dlls=$($pkg_config --variable=prefix glib-2.0)/bin"
case "$cpu" in case "$cpu" in
x86_64) x86_64)
@ -4767,16 +4767,16 @@ QEMU_CFLAGS="$pixman_cflags $fdt_cflags $QEMU_CFLAGS"
libs_softmmu="$pixman_libs $libs_softmmu" libs_softmmu="$pixman_libs $libs_softmmu"
echo "Install prefix $prefix" echo "Install prefix $prefix"
echo "BIOS directory `eval echo $qemu_datadir`" echo "BIOS directory $(eval echo $qemu_datadir)"
echo "binary directory `eval echo $bindir`" echo "binary directory $(eval echo $bindir)"
echo "library directory `eval echo $libdir`" echo "library directory $(eval echo $libdir)"
echo "module directory `eval echo $qemu_moddir`" echo "module directory $(eval echo $qemu_moddir)"
echo "libexec directory `eval echo $libexecdir`" echo "libexec directory $(eval echo $libexecdir)"
echo "include directory `eval echo $includedir`" echo "include directory $(eval echo $includedir)"
echo "config directory `eval echo $sysconfdir`" echo "config directory $(eval echo $sysconfdir)"
if test "$mingw32" = "no" ; then if test "$mingw32" = "no" ; then
echo "local state directory `eval echo $local_statedir`" echo "local state directory $(eval echo $local_statedir)"
echo "Manual directory `eval echo $mandir`" echo "Manual directory $(eval echo $mandir)"
echo "ELF interp prefix $interp_prefix" echo "ELF interp prefix $interp_prefix"
else else
echo "local state directory queried at runtime" echo "local state directory queried at runtime"
@ -4811,16 +4811,16 @@ if test "$darwin" = "yes" ; then
echo "Cocoa support $cocoa" echo "Cocoa support $cocoa"
fi fi
echo "pixman $pixman" echo "pixman $pixman"
echo "SDL support $sdl `echo_version $sdl $sdlversion`" echo "SDL support $sdl $(echo_version $sdl $sdlversion)"
echo "GTK support $gtk `echo_version $gtk $gtk_version`" echo "GTK support $gtk $(echo_version $gtk $gtk_version)"
echo "GTK GL support $gtk_gl" echo "GTK GL support $gtk_gl"
echo "VTE support $vte `echo_version $vte $vteversion`" echo "VTE support $vte $(echo_version $vte $vteversion)"
echo "GNUTLS support $gnutls" echo "GNUTLS support $gnutls"
echo "GNUTLS hash $gnutls_hash" echo "GNUTLS hash $gnutls_hash"
echo "GNUTLS rnd $gnutls_rnd" echo "GNUTLS rnd $gnutls_rnd"
echo "libgcrypt $gcrypt" echo "libgcrypt $gcrypt"
echo "libgcrypt kdf $gcrypt_kdf" echo "libgcrypt kdf $gcrypt_kdf"
echo "nettle $nettle `echo_version $nettle $nettle_version`" echo "nettle $nettle $(echo_version $nettle $nettle_version)"
echo "nettle kdf $nettle_kdf" echo "nettle kdf $nettle_kdf"
echo "libtasn1 $tasn1" echo "libtasn1 $tasn1"
echo "curses support $curses" echo "curses support $curses"
@ -4871,7 +4871,7 @@ echo "Trace backends $trace_backends"
if have_backend "simple"; then if have_backend "simple"; then
echo "Trace output file $trace_file-<pid>" echo "Trace output file $trace_file-<pid>"
fi fi
echo "spice support $spice `echo_version $spice $spice_protocol_version/$spice_server_version`" echo "spice support $spice $(echo_version $spice $spice_protocol_version/$spice_server_version)"
echo "rbd support $rbd" echo "rbd support $rbd"
echo "xfsctl support $xfs" echo "xfsctl support $xfs"
echo "smartcard support $smartcard" echo "smartcard support $smartcard"
@ -4950,7 +4950,7 @@ if test "$bigendian" = "yes" ; then
fi fi
if test "$mingw32" = "yes" ; then if test "$mingw32" = "yes" ; then
echo "CONFIG_WIN32=y" >> $config_host_mak echo "CONFIG_WIN32=y" >> $config_host_mak
rc_version=`cat $source_path/VERSION` rc_version=$(cat $source_path/VERSION)
version_major=${rc_version%%.*} version_major=${rc_version%%.*}
rc_version=${rc_version#*.} rc_version=${rc_version#*.}
version_minor=${rc_version%%.*} version_minor=${rc_version%%.*}
@ -5026,7 +5026,7 @@ if test "$cap_ng" = "yes" ; then
fi fi
echo "CONFIG_AUDIO_DRIVERS=$audio_drv_list" >> $config_host_mak echo "CONFIG_AUDIO_DRIVERS=$audio_drv_list" >> $config_host_mak
for drv in $audio_drv_list; do for drv in $audio_drv_list; do
def=CONFIG_`echo $drv | LC_ALL=C tr '[a-z]' '[A-Z]'` def=CONFIG_$(echo $drv | LC_ALL=C tr '[a-z]' '[A-Z]')
echo "$def=y" >> $config_host_mak echo "$def=y" >> $config_host_mak
done done
if test "$audio_pt_int" = "yes" ; then if test "$audio_pt_int" = "yes" ; then
@ -5058,7 +5058,7 @@ fi
if test "$xfs" = "yes" ; then if test "$xfs" = "yes" ; then
echo "CONFIG_XFS=y" >> $config_host_mak echo "CONFIG_XFS=y" >> $config_host_mak
fi fi
qemu_version=`head $source_path/VERSION` qemu_version=$(head $source_path/VERSION)
echo "VERSION=$qemu_version" >>$config_host_mak echo "VERSION=$qemu_version" >>$config_host_mak
echo "PKGVERSION=$pkgversion" >>$config_host_mak echo "PKGVERSION=$pkgversion" >>$config_host_mak
echo "SRC_PATH=$source_path" >> $config_host_mak echo "SRC_PATH=$source_path" >> $config_host_mak
@ -5069,7 +5069,7 @@ fi
if test "$modules" = "yes"; then if test "$modules" = "yes"; then
# $shacmd can generate a hash started with digit, which the compiler doesn't # $shacmd can generate a hash started with digit, which the compiler doesn't
# like as an symbol. So prefix it with an underscore # like as an symbol. So prefix it with an underscore
echo "CONFIG_STAMP=_`(echo $qemu_version; echo $pkgversion; cat $0) | $shacmd - | cut -f1 -d\ `" >> $config_host_mak echo "CONFIG_STAMP=_$( (echo $qemu_version; echo $pkgversion; cat $0) | $shacmd - | cut -f1 -d\ )" >> $config_host_mak
echo "CONFIG_MODULES=y" >> $config_host_mak echo "CONFIG_MODULES=y" >> $config_host_mak
fi fi
if test "$sdl" = "yes" ; then if test "$sdl" = "yes" ; then
@ -5598,7 +5598,7 @@ fi
for target in $target_list; do for target in $target_list; do
target_dir="$target" target_dir="$target"
config_target_mak=$target_dir/config-target.mak config_target_mak=$target_dir/config-target.mak
target_name=`echo $target | cut -d '-' -f 1` target_name=$(echo $target | cut -d '-' -f 1)
target_bigendian="no" target_bigendian="no"
case "$target_name" in case "$target_name" in
@ -5638,7 +5638,7 @@ mkdir -p $target_dir
echo "# Automatically generated by configure - do not modify" > $config_target_mak echo "# Automatically generated by configure - do not modify" > $config_target_mak
bflt="no" bflt="no"
interp_prefix1=`echo "$interp_prefix" | sed "s/%M/$target_name/g"` interp_prefix1=$(echo "$interp_prefix" | sed "s/%M/$target_name/g")
gdb_xml_files="" gdb_xml_files=""
TARGET_ARCH="$target_name" TARGET_ARCH="$target_name"
@ -5764,7 +5764,7 @@ upper() {
echo "$@"| LC_ALL=C tr '[a-z]' '[A-Z]' echo "$@"| LC_ALL=C tr '[a-z]' '[A-Z]'
} }
target_arch_name="`upper $TARGET_ARCH`" target_arch_name="$(upper $TARGET_ARCH)"
echo "TARGET_$target_arch_name=y" >> $config_target_mak echo "TARGET_$target_arch_name=y" >> $config_target_mak
echo "TARGET_NAME=$target_name" >> $config_target_mak echo "TARGET_NAME=$target_name" >> $config_target_mak
echo "TARGET_BASE_ARCH=$TARGET_BASE_ARCH" >> $config_target_mak echo "TARGET_BASE_ARCH=$TARGET_BASE_ARCH" >> $config_target_mak
@ -5980,11 +5980,11 @@ for bios_file in \
$source_path/pc-bios/u-boot.* \ $source_path/pc-bios/u-boot.* \
$source_path/pc-bios/palcode-* $source_path/pc-bios/palcode-*
do do
FILES="$FILES pc-bios/`basename $bios_file`" FILES="$FILES pc-bios/$(basename $bios_file)"
done done
for test_file in `find $source_path/tests/acpi-test-data -type f` for test_file in $(find $source_path/tests/acpi-test-data -type f)
do do
FILES="$FILES tests/acpi-test-data`echo $test_file | sed -e 's/.*acpi-test-data//'`" FILES="$FILES tests/acpi-test-data$(echo $test_file | sed -e 's/.*acpi-test-data//')"
done done
mkdir -p $DIRS mkdir -p $DIRS
for f in $FILES ; do for f in $FILES ; do