better target_list logic
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1210 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e995898b06
commit
5327cf489f
16
configure
vendored
16
configure
vendored
@ -27,7 +27,7 @@ ar="ar"
|
|||||||
make="make"
|
make="make"
|
||||||
strip="strip"
|
strip="strip"
|
||||||
cpu=`uname -m`
|
cpu=`uname -m`
|
||||||
target_list="i386-user i386 i386-softmmu arm-user armeb-user sparc-user ppc-user ppc-softmmu sparc-softmmu x86_64-softmmu"
|
target_list=""
|
||||||
case "$cpu" in
|
case "$cpu" in
|
||||||
i386|i486|i586|i686|i86pc|BePC)
|
i386|i486|i586|i686|i86pc|BePC)
|
||||||
cpu="i386"
|
cpu="i386"
|
||||||
@ -80,6 +80,7 @@ oss="no"
|
|||||||
fmod="no"
|
fmod="no"
|
||||||
fmod_lib=""
|
fmod_lib=""
|
||||||
fmod_inc=""
|
fmod_inc=""
|
||||||
|
linux="no"
|
||||||
|
|
||||||
# OS specific
|
# OS specific
|
||||||
targetos=`uname -s`
|
targetos=`uname -s`
|
||||||
@ -105,6 +106,7 @@ darwin="yes"
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
oss="yes"
|
oss="yes"
|
||||||
|
linux="yes"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -112,7 +114,6 @@ if [ "$bsd" = "yes" ] ; then
|
|||||||
if [ ! "$darwin" = "yes" ] ; then
|
if [ ! "$darwin" = "yes" ] ; then
|
||||||
make="gmake"
|
make="gmake"
|
||||||
fi
|
fi
|
||||||
target_list="i386-softmmu ppc-softmmu sparc-softmmu"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# find source path
|
# find source path
|
||||||
@ -181,12 +182,21 @@ ar="${cross_prefix}${ar}"
|
|||||||
strip="${cross_prefix}${strip}"
|
strip="${cross_prefix}${strip}"
|
||||||
|
|
||||||
if test "$mingw32" = "yes" ; then
|
if test "$mingw32" = "yes" ; then
|
||||||
target_list="i386-softmmu ppc-softmmu sparc-softmmu"
|
linux="no"
|
||||||
EXESUF=".exe"
|
EXESUF=".exe"
|
||||||
gdbstub="no"
|
gdbstub="no"
|
||||||
oss="no"
|
oss="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -z "$target_list" ; then
|
||||||
|
# these targets are portable
|
||||||
|
target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu"
|
||||||
|
# the following are Linux specific
|
||||||
|
if [ "$linux" = "yes" ] ; then
|
||||||
|
target_list="i386-user i386 arm-user armeb-user sparc-user ppc-user $target_list"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if test -z "$cross_prefix" ; then
|
if test -z "$cross_prefix" ; then
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
|
Loading…
Reference in New Issue
Block a user