diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-12 19:32:15 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-12 19:32:15 +0000 |
commit | 7d3505c55aae54c9610e8be1ff476ec8849c98e6 (patch) | |
tree | 8e8b024b2e8b547dc48d8024fe5b3001a7c46c0d /configure | |
parent | fd872598d8d8cf78c1f12ed9661baf9ac0943c04 (diff) |
bsd port (Markus Niemisto)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@800 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -79,9 +79,23 @@ case $targetos in MINGW32*) mingw32="yes" ;; +FreeBSD) +bsd="yes" +;; +NetBSD) +bsd="yes" +;; +OpenBSD) +bsd="yes" +;; *) ;; esac +if [ "$bsd" = "yes" ] ; then + make="gmake" + target_list="i386-softmmu" +fi + # find source path # XXX: we assume an absolute path is given when launching configure, # except in './configure' case. @@ -373,7 +387,7 @@ fi if test "$mingw32" = "yes" ; then echo "CONFIG_WIN32=yes" >> $config_mak echo "#define CONFIG_WIN32 1" >> $config_h -else +elif test -f "/usr/include/byteswap.h" ; then echo "#define HAVE_BYTESWAP_H 1" >> $config_h fi if test "$gdbstub" = "yes" ; then @@ -402,6 +416,10 @@ echo "\"" >> $config_h echo "SRC_PATH=$source_path" >> $config_mak echo "TARGET_DIRS=$target_list" >> $config_mak +if [ "$bsd" = "yes" ] ; then + echo "#define _BSD 1" >> $config_h +fi + for target in $target_list; do target_dir="$target" |