diff options
author | blueswir1 | 2008-10-26 21:33:16 +0100 |
---|---|---|
committer | blueswir1 | 2008-10-26 21:33:16 +0100 |
commit | 84778508d7403cd32fb4527550738f19aa7b1aa5 (patch) | |
tree | 2a24173f54e272d48f844d6caeefa9b3acf76c9b /configure | |
parent | Update from binutils 2.17 (diff) | |
download | qemu-84778508d7403cd32fb4527550738f19aa7b1aa5.tar.gz qemu-84778508d7403cd32fb4527550738f19aa7b1aa5.tar.xz qemu-84778508d7403cd32fb4527550738f19aa7b1aa5.zip |
Preliminary BSD user emulator support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5544 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -106,6 +106,7 @@ check_gcc="yes" softmmu="yes" linux_user="no" darwin_user="no" +bsd_user="no" build_docs="no" uname_release="" curses="yes" @@ -218,6 +219,7 @@ if [ "$bsd" = "yes" ] ; then if [ "$darwin" != "yes" ] ; then make="gmake" fi + bsd_user="yes" fi # find source path @@ -323,6 +325,10 @@ for opt do ;; --enable-darwin-user) darwin_user="yes" ;; + --disable-bsd-user) bsd_user="no" + ;; + --enable-bsd-user) bsd_user="yes" + ;; --enable-uname-release=*) uname_release="$optarg" ;; --sparc_cpu=*) @@ -446,6 +452,8 @@ echo " --enable-linux-user enable all linux usermode emulation targets" echo " --disable-linux-user disable all linux usermode emulation targets" echo " --enable-darwin-user enable all darwin usermode emulation targets" echo " --disable-darwin-user disable all darwin usermode emulation targets" +echo " --enable-bsd-user enable all BSD usermode emulation targets" +echo " --disable-bsd-user disable all BSD usermode emulation targets" echo " --fmod-lib path to FMOD library" echo " --fmod-inc path to FMOD includes" echo " --oss-lib path to OSS library" @@ -492,6 +500,7 @@ if test "$mingw32" = "yes" ; then EXESUF=".exe" oss="no" linux_user="no" + bsd_user="no" fi if [ "$darwin" = "yes" -o "$mingw32" = "yes" ] ; then @@ -629,6 +638,12 @@ sparc32plus-linux-user \ if [ "$darwin_user" = "yes" ] ; then target_list="$target_list i386-darwin-user ppc-darwin-user" fi +# the following are BSD specific + if [ "$bsd_user" = "yes" ] ; then + target_list="${target_list}\ +sparc64-bsd-user \ +" + fi else target_list=`echo "$target_list" | sed -e 's/,/ /g'` fi @@ -1329,6 +1344,7 @@ target_softmmu="no" target_user_only="no" target_linux_user="no" target_darwin_user="no" +target_bsd_user="no" case "$target" in ${target_cpu}-softmmu) target_softmmu="yes" @@ -1341,6 +1357,10 @@ case "$target" in target_user_only="yes" target_darwin_user="yes" ;; + ${target_cpu}-bsd-user) + target_user_only="yes" + target_bsd_user="yes" + ;; *) echo "ERROR: Target '$target' not recognised" exit 1 @@ -1363,7 +1383,7 @@ test -f $config_h && mv $config_h ${config_h}~ mkdir -p $target_dir mkdir -p $target_dir/fpu mkdir -p $target_dir/tcg -if test "$target" = "arm-linux-user" -o "$target" = "armeb-linux-user" ; then +if test "$target" = "arm-linux-user" -o "$target" = "armeb-linux-user" -o "$target" = "arm-bsd-user" -o "$target" = "armeb-bsd-user" ; then mkdir -p $target_dir/nwfpe fi @@ -1584,6 +1604,10 @@ if test "$target_user_only" = "yes" -a "$elfload32" = "yes"; then echo "TARGET_HAS_ELFLOAD32=yes" >> $config_mak echo "#define TARGET_HAS_ELFLOAD32 1" >> $config_h fi +if test "$target_bsd_user" = "yes" ; then + echo "CONFIG_BSD_USER=yes" >> $config_mak + echo "#define CONFIG_BSD_USER 1" >> $config_h +fi test -f ${config_h}~ && cmp -s $config_h ${config_h}~ && mv ${config_h}~ $config_h |