@@ -334,30 +334,30 @@ EOF
334
334
}
335
335
336
336
if check_define __linux__ ; then
337
- targetos =linux
337
+ host_os =linux
338
338
elif check_define _WIN32 ; then
339
- targetos =windows
339
+ host_os =windows
340
340
elif check_define __OpenBSD__ ; then
341
- targetos =openbsd
341
+ host_os =openbsd
342
342
elif check_define __sun__ ; then
343
- targetos =sunos
343
+ host_os =sunos
344
344
elif check_define __HAIKU__ ; then
345
- targetos =haiku
345
+ host_os =haiku
346
346
elif check_define __FreeBSD__ ; then
347
- targetos =freebsd
347
+ host_os =freebsd
348
348
elif check_define __FreeBSD_kernel__ && check_define __GLIBC__; then
349
- targetos =gnu/kfreebsd
349
+ host_os =gnu/kfreebsd
350
350
elif check_define __DragonFly__ ; then
351
- targetos =dragonfly
351
+ host_os =dragonfly
352
352
elif check_define __NetBSD__; then
353
- targetos =netbsd
353
+ host_os =netbsd
354
354
elif check_define __APPLE__; then
355
- targetos =darwin
355
+ host_os =darwin
356
356
else
357
357
# This is a fatal error, but don't report it yet, because we
358
358
# might be going to just print the --help text, or it might
359
359
# be the result of a missing compiler.
360
- targetos =bogus
360
+ host_os =bogus
361
361
fi
362
362
363
363
if test ! -z " $cpu " ; then
573
573
fi
574
574
done
575
575
576
- if test " $targetos " = " windows" ; then
576
+ if test " $host_os " = " windows" ; then
577
577
EXESUF=" .exe"
578
578
fi
579
579
580
580
meson_option_build_array () {
581
581
printf ' ['
582
- (if test " $targetos " = windows; then
582
+ (if test " $host_os " = windows; then
583
583
IFS=\;
584
584
else
585
585
IFS=:
@@ -802,7 +802,7 @@ mak_wilds=""
802
802
803
803
if [ -n " $host_arch " ] && [ -d " $source_path /common-user/host/$host_arch " ]; then
804
804
if [ " $linux_user " != no ]; then
805
- if [ " $targetos " = linux ]; then
805
+ if [ " $host_os " = linux ]; then
806
806
linux_user=yes
807
807
elif [ " $linux_user " = yes ]; then
808
808
error_exit " linux-user not supported on this architecture"
@@ -813,9 +813,9 @@ if [ -n "$host_arch" ] && [ -d "$source_path/common-user/host/$host_arch" ]; the
813
813
fi
814
814
if [ " $bsd_user " != no ]; then
815
815
if [ " $bsd_user " = " " ]; then
816
- test $targetos = freebsd && bsd_user=yes
816
+ test $host_os = freebsd && bsd_user=yes
817
817
fi
818
- if [ " $bsd_user " = yes ] && ! [ -d " $source_path /bsd-user/$targetos " ]; then
818
+ if [ " $bsd_user " = yes ] && ! [ -d " $source_path /bsd-user/$host_os " ]; then
819
819
error_exit " bsd-user not supported on this host OS"
820
820
fi
821
821
if [ " $bsd_user " = " yes" ]; then
@@ -998,7 +998,7 @@ if test -z "$ninja"; then
998
998
fi
999
999
fi
1000
1000
1001
- if test " $targetos " = " bogus" ; then
1001
+ if test " $host_os " = " bogus" ; then
1002
1002
# Now that we know that we're not printing the help and that
1003
1003
# the compiler works (so the results of the check_defines we used
1004
1004
# to identify the OS are reliable), if we didn't recognize the
@@ -1007,7 +1007,7 @@ if test "$targetos" = "bogus"; then
1007
1007
fi
1008
1008
1009
1009
# test for any invalid configuration combinations
1010
- if test " $targetos " = " windows" && ! has " $dlltool " ; then
1010
+ if test " $host_os " = " windows" && ! has " $dlltool " ; then
1011
1011
if test " $plugins " = " yes" ; then
1012
1012
error_exit " TCG plugins requires dlltool to build on Windows platforms"
1013
1013
fi
@@ -1041,7 +1041,7 @@ static THREAD int tls_var;
1041
1041
int main(void) { return tls_var; }
1042
1042
EOF
1043
1043
1044
- if test " $targetos " = windows || test " $targetos " = haiku; then
1044
+ if test " $host_os " = windows || test " $host_os " = haiku; then
1045
1045
if test " $pie " = " yes" ; then
1046
1046
error_exit " PIE not available due to missing OS support"
1047
1047
fi
@@ -1541,8 +1541,8 @@ echo "# Automatically generated by configure - do not modify" > Makefile.prereqs
1541
1541
1542
1542
# Mac OS X ships with a broken assembler
1543
1543
if have_target i386-softmmu x86_64-softmmu && \
1544
- test " $targetos " ! = " darwin" && test " $targetos " ! = " sunos" && \
1545
- test " $targetos " ! = " haiku" && \
1544
+ test " $host_os " ! = " darwin" && test " $host_os " ! = " sunos" && \
1545
+ test " $host_os " ! = " haiku" && \
1546
1546
probe_target_compiler i386-softmmu; then
1547
1547
subdirs=" $subdirs pc-bios/optionrom"
1548
1548
config_mak=pc-bios/optionrom/config.mak
@@ -1606,7 +1606,7 @@ echo "NINJA=$ninja" >> $config_host_mak
1606
1606
echo " EXESUF=$EXESUF " >> $config_host_mak
1607
1607
1608
1608
# use included Linux headers for KVM architectures
1609
- if test " $targetos " = " linux" && test -n " $linux_arch " ; then
1609
+ if test " $host_os " = " linux" && test -n " $linux_arch " ; then
1610
1610
symlink " $source_path /linux-headers/asm-$linux_arch " linux-headers/asm
1611
1611
fi
1612
1612
@@ -1629,13 +1629,13 @@ echo "SRC_PATH=$source_path/contrib/plugins" >> contrib/plugins/$config_host_mak
1629
1629
echo " PKG_CONFIG=${pkg_config} " >> contrib/plugins/$config_host_mak
1630
1630
echo " CC=$cc $CPU_CFLAGS " >> contrib/plugins/$config_host_mak
1631
1631
echo " CFLAGS=${CFLAGS-$default_cflags } $EXTRA_CFLAGS " >> contrib/plugins/$config_host_mak
1632
- if test " $targetos " = windows; then
1632
+ if test " $host_os " = windows; then
1633
1633
echo " DLLTOOL=$dlltool " >> contrib/plugins/$config_host_mak
1634
1634
fi
1635
- if test " $targetos " = darwin; then
1635
+ if test " $host_os " = darwin; then
1636
1636
echo " CONFIG_DARWIN=y" >> contrib/plugins/$config_host_mak
1637
1637
fi
1638
- if test " $targetos " = windows; then
1638
+ if test " $host_os " = windows; then
1639
1639
echo " CONFIG_WIN32=y" >> contrib/plugins/$config_host_mak
1640
1640
fi
1641
1641
@@ -1715,7 +1715,7 @@ if test "$skip_meson" = no; then
1715
1715
echo " # environment defaults, can still be overridden on " >> $cross
1716
1716
echo " # the command line" >> $cross
1717
1717
if test -e " $source_path /.git" && \
1718
- { test " $targetos " = linux || test " $targetos " = " windows" ; }; then
1718
+ { test " $host_os " = linux || test " $host_os " = " windows" ; }; then
1719
1719
echo ' werror = true' >> $cross
1720
1720
fi
1721
1721
echo " [project options]" >> $cross
@@ -1752,7 +1752,7 @@ if test "$skip_meson" = no; then
1752
1752
echo " windmc = [$( meson_quote $windmc ) ]" >> $cross
1753
1753
if test " $cross_compile " = " yes" ; then
1754
1754
echo " [host_machine]" >> $cross
1755
- echo " system = '$targetos '" >> $cross
1755
+ echo " system = '$host_os '" >> $cross
1756
1756
case " $cpu " in
1757
1757
i386)
1758
1758
echo " cpu_family = 'x86'" >> $cross
@@ -1778,8 +1778,8 @@ if test "$skip_meson" = no; then
1778
1778
fi
1779
1779
mv $cross config-meson.cross
1780
1780
meson_add_machine_file config-meson.cross
1781
- if test -f " $source_path /configs/meson/$targetos .txt" ; then
1782
- meson_add_machine_file $source_path /configs/meson/$targetos .txt
1781
+ if test -f " $source_path /configs/meson/$host_os .txt" ; then
1782
+ meson_add_machine_file $source_path /configs/meson/$host_os .txt
1783
1783
fi
1784
1784
1785
1785
rm -rf meson-private meson-info meson-logs
0 commit comments