configure (6f15b608f2a1466de0dccc3e6d9cdee354a1e178) configure (e6e5906b6e0a81718066ca43aef57515026c6624)
1#!/bin/sh
2#
3# qemu configure script (c) 2003 Fabrice Bellard
4#
5# set temporary file name
6if test ! -z "$TMPDIR" ; then
7 TMPDIR1="${TMPDIR}"
8elif test ! -z "$TEMPDIR" ; then

--- 348 unchanged lines hidden (view full) ---

357
358if test -z "$target_list" ; then
359# these targets are portable
360 if [ "$softmmu" = "yes" ] ; then
361 target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu arm-softmmu"
362 fi
363# the following are Linux specific
364 if [ "$user" = "yes" ] ; then
1#!/bin/sh
2#
3# qemu configure script (c) 2003 Fabrice Bellard
4#
5# set temporary file name
6if test ! -z "$TMPDIR" ; then
7 TMPDIR1="${TMPDIR}"
8elif test ! -z "$TEMPDIR" ; then

--- 348 unchanged lines hidden (view full) ---

357
358if test -z "$target_list" ; then
359# these targets are portable
360 if [ "$softmmu" = "yes" ] ; then
361 target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu arm-softmmu"
362 fi
363# the following are Linux specific
364 if [ "$user" = "yes" ] ; then
365 target_list="i386-user arm-user armeb-user sparc-user ppc-user mips-user mipsel-user $target_list"
365 target_list="i386-user arm-user armeb-user sparc-user ppc-user mips-user mipsel-user m68k-user $target_list"
366 fi
367else
368 target_list=`echo "$target_list" | sed -e 's/,/ /g'`
369fi
370if test -z "$target_list" ; then
371 echo "No targets enabled"
372 exit 1
373fi

--- 348 unchanged lines hidden (view full) ---

722target_bigendian="no"
723[ "$target_cpu" = "armeb" ] && target_bigendian=yes
724[ "$target_cpu" = "sparc" ] && target_bigendian=yes
725[ "$target_cpu" = "sparc64" ] && target_bigendian=yes
726[ "$target_cpu" = "ppc" ] && target_bigendian=yes
727[ "$target_cpu" = "ppc64" ] && target_bigendian=yes
728[ "$target_cpu" = "mips" ] && target_bigendian=yes
729[ "$target_cpu" = "sh4eb" ] && target_bigendian=yes
366 fi
367else
368 target_list=`echo "$target_list" | sed -e 's/,/ /g'`
369fi
370if test -z "$target_list" ; then
371 echo "No targets enabled"
372 exit 1
373fi

--- 348 unchanged lines hidden (view full) ---

722target_bigendian="no"
723[ "$target_cpu" = "armeb" ] && target_bigendian=yes
724[ "$target_cpu" = "sparc" ] && target_bigendian=yes
725[ "$target_cpu" = "sparc64" ] && target_bigendian=yes
726[ "$target_cpu" = "ppc" ] && target_bigendian=yes
727[ "$target_cpu" = "ppc64" ] && target_bigendian=yes
728[ "$target_cpu" = "mips" ] && target_bigendian=yes
729[ "$target_cpu" = "sh4eb" ] && target_bigendian=yes
730[ "$target_cpu" = "m68k" ] && target_bigendian=yes
730target_softmmu="no"
731if expr $target : '.*-softmmu' > /dev/null ; then
732 target_softmmu="yes"
733fi
734target_user_only="no"
735if expr $target : '.*-user' > /dev/null ; then
736 target_user_only="yes"
737fi

--- 79 unchanged lines hidden (view full) ---

817 echo "#define TARGET_MIPS 1" >> $config_h
818 echo "CONFIG_SOFTFLOAT=yes" >> $config_mak
819 echo "#define CONFIG_SOFTFLOAT 1" >> $config_h
820elif test "$target_cpu" = "sh4" -o "$target_cpu" = "sh4eb" ; then
821 echo "TARGET_ARCH=sh4" >> $config_mak
822 echo "#define TARGET_ARCH \"sh4\"" >> $config_h
823 echo "#define TARGET_SH4 1" >> $config_h
824 bflt="yes"
731target_softmmu="no"
732if expr $target : '.*-softmmu' > /dev/null ; then
733 target_softmmu="yes"
734fi
735target_user_only="no"
736if expr $target : '.*-user' > /dev/null ; then
737 target_user_only="yes"
738fi

--- 79 unchanged lines hidden (view full) ---

818 echo "#define TARGET_MIPS 1" >> $config_h
819 echo "CONFIG_SOFTFLOAT=yes" >> $config_mak
820 echo "#define CONFIG_SOFTFLOAT 1" >> $config_h
821elif test "$target_cpu" = "sh4" -o "$target_cpu" = "sh4eb" ; then
822 echo "TARGET_ARCH=sh4" >> $config_mak
823 echo "#define TARGET_ARCH \"sh4\"" >> $config_h
824 echo "#define TARGET_SH4 1" >> $config_h
825 bflt="yes"
826elif test "$target_cpu" = "m68k" ; then
827 echo "TARGET_ARCH=m68k" >> $config_mak
828 echo "#define TARGET_ARCH \"m68k\"" >> $config_h
829 echo "#define TARGET_M68K 1" >> $config_h
830 bflt="yes"
825else
826 echo "Unsupported target CPU"
827 exit 1
828fi
829if test "$target_bigendian" = "yes" ; then
830 echo "TARGET_WORDS_BIGENDIAN=yes" >> $config_mak
831 echo "#define TARGET_WORDS_BIGENDIAN 1" >> $config_h
832fi
833if test "$target_softmmu" = "yes" ; then
834 echo "CONFIG_SOFTMMU=yes" >> $config_mak
835 echo "#define CONFIG_SOFTMMU 1" >> $config_h
836fi
837if test "$target_user_only" = "yes" ; then
838 echo "CONFIG_USER_ONLY=yes" >> $config_mak
839 echo "#define CONFIG_USER_ONLY 1" >> $config_h
840fi
841
831else
832 echo "Unsupported target CPU"
833 exit 1
834fi
835if test "$target_bigendian" = "yes" ; then
836 echo "TARGET_WORDS_BIGENDIAN=yes" >> $config_mak
837 echo "#define TARGET_WORDS_BIGENDIAN 1" >> $config_h
838fi
839if test "$target_softmmu" = "yes" ; then
840 echo "CONFIG_SOFTMMU=yes" >> $config_mak
841 echo "#define CONFIG_SOFTMMU 1" >> $config_h
842fi
843if test "$target_user_only" = "yes" ; then
844 echo "CONFIG_USER_ONLY=yes" >> $config_mak
845 echo "#define CONFIG_USER_ONLY 1" >> $config_h
846fi
847
842if test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" -o "$target_cpu" = "sparc" -o "$target_cpu" = "sparc64"; then
848if test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" -o "$target_cpu" = "sparc" -o "$target_cpu" = "sparc64" -o "$target_cpu" = "m68k"; then
843 echo "CONFIG_SOFTFLOAT=yes" >> $config_mak
844 echo "#define CONFIG_SOFTFLOAT 1" >> $config_h
845fi
846if test "$target_user_only" = "yes" -a "$bflt" = "yes"; then
847 echo "TARGET_HAS_BFLT=yes" >> $config_mak
848 echo "#define TARGET_HAS_BFLT 1" >> $config_h
849fi
850# sdl defines

--- 45 unchanged lines hidden ---
849 echo "CONFIG_SOFTFLOAT=yes" >> $config_mak
850 echo "#define CONFIG_SOFTFLOAT 1" >> $config_h
851fi
852if test "$target_user_only" = "yes" -a "$bflt" = "yes"; then
853 echo "TARGET_HAS_BFLT=yes" >> $config_mak
854 echo "#define TARGET_HAS_BFLT 1" >> $config_h
855fi
856# sdl defines

--- 45 unchanged lines hidden ---