📄 configure
字号:
sdl_static=noif test "$mingw32" = "yes" -a ! -z "$cross_prefix" ; then# win32 cross compilation case sdl_config="i386-mingw32msvc-sdl-config" sdl=yeselse# normal SDL probecat > $TMPC << EOF#include <SDL.h>#undef main /* We don't want SDL to override our main() */int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }EOFif $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> /dev/null ; then_sdlversion=`$sdl_config --version | sed 's/[^0-9]//g'`if test "$_sdlversion" -lt 121 ; thensdl_too_old=yeselsesdl=yesfi# static link with sdl ?if test "$sdl" = "yes" ; thenaa="no"`$sdl_config --static-libs | grep \\\-laa > /dev/null` && aa="yes"sdl_static_libs=`$sdl_config --static-libs`if [ "$aa" = "yes" ] ; then sdl_static_libs="$sdl_static_libs `aalib-config --static-libs`"fiif $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC $sdl_static_libs 2> /dev/null; then sdl_static=yesfifi # static linkfi # sdl compile testfi # cross compilationfi # -z $sdl# Check if tools are available to build documentation.if [ -x "`which texi2html`" ] && [ -x "`which pod2man`" ]; then build_docs="yes"fiif test "$mingw32" = "yes" ; thenif test -z "$prefix" ; then prefix="/c/Program Files/Qemu"fimandir="$prefix"datadir="$prefix"docdir="$prefix"bindir="$prefix"elseif test -z "$prefix" ; then prefix="/usr/local"fimandir="$prefix/share/man"datadir="$prefix/share/qemu"docdir="$prefix/share/doc/qemu"bindir="$prefix/bin"fiecho "Install prefix $prefix"echo "BIOS directory $datadir"echo "binary directory $bindir"if test "$mingw32" = "no" ; thenecho "Manual directory $mandir"echo "ELF interp prefix $interp_prefix"fiecho "Source path $source_path"echo "C compiler $cc"echo "Host C compiler $host_cc"echo "make $make"echo "install $install"echo "host CPU $cpu"echo "host big endian $bigendian"echo "target list $target_list"echo "gprof enabled $gprof"echo "profiler $profiler"echo "static build $static"if test "$darwin" = "yes" ; then echo "Cocoa support $cocoa"fiecho "SDL support $sdl"if test "$sdl" != "no" ; then echo "SDL static link $sdl_static"fiecho "mingw32 support $mingw32"echo "Adlib support $adlib"echo "CoreAudio support $coreaudio"echo "ALSA support $alsa"echo "DSound support $dsound"if test "$fmod" = "yes"; then if test -z $fmod_lib || test -z $fmod_inc; then echo echo "Error: You must specify path to FMOD library and headers" echo "Example: --fmod-inc=/path/include/fmod --fmod-lib=/path/lib/libfmod-3.74.so" echo exit 1 fi fmod_support=" (lib='$fmod_lib' include='$fmod_inc')"else fmod_support=""fiecho "FMOD support $fmod $fmod_support"echo "kqemu support $kqemu"echo "Documentation $build_docs"if test $sdl_too_old = "yes"; thenecho "-> Your SDL version is too old - please upgrade to have SDL support"fi#if test "$sdl_static" = "no"; then# echo "WARNING: cannot compile statically with SDL - qemu-fast won't have a graphical output"#ficonfig_mak="config-host.mak"config_h="config-host.h"#echo "Creating $config_mak and $config_h"echo "# Automatically generated by configure - do not modify" > $config_makecho "# Configured with: $0 $@" >> $config_makecho "/* Automatically generated by configure - do not modify */" > $config_hecho "prefix=$prefix" >> $config_makecho "bindir=$bindir" >> $config_makecho "mandir=$mandir" >> $config_makecho "datadir=$datadir" >> $config_makecho "docdir=$docdir" >> $config_makecho "#define CONFIG_QEMU_SHAREDIR \"$datadir\"" >> $config_hecho "MAKE=$make" >> $config_makecho "INSTALL=$install" >> $config_makecho "CC=$cc" >> $config_makif test "$have_gcc3_options" = "yes" ; then echo "HAVE_GCC3_OPTIONS=yes" >> $config_makfiecho "HOST_CC=$host_cc" >> $config_makecho "AR=$ar" >> $config_makecho "STRIP=$strip -s -R .comment -R .note" >> $config_makecho "CFLAGS=$CFLAGS" >> $config_makecho "LDFLAGS=$LDFLAGS" >> $config_makecho "EXESUF=$EXESUF" >> $config_makif test "$cpu" = "i386" ; then echo "ARCH=i386" >> $config_mak echo "#define HOST_I386 1" >> $config_helif test "$cpu" = "x86_64" ; then echo "ARCH=x86_64" >> $config_mak echo "#define HOST_X86_64 1" >> $config_helif test "$cpu" = "armv4b" ; then echo "ARCH=arm" >> $config_mak echo "#define HOST_ARM 1" >> $config_helif test "$cpu" = "armv4l" ; then echo "ARCH=arm" >> $config_mak echo "#define HOST_ARM 1" >> $config_helif test "$cpu" = "powerpc" ; then echo "ARCH=ppc" >> $config_mak echo "#define HOST_PPC 1" >> $config_helif test "$cpu" = "mips" ; then echo "ARCH=mips" >> $config_mak echo "#define HOST_MIPS 1" >> $config_helif test "$cpu" = "s390" ; then echo "ARCH=s390" >> $config_mak echo "#define HOST_S390 1" >> $config_helif test "$cpu" = "alpha" ; then echo "ARCH=alpha" >> $config_mak echo "#define HOST_ALPHA 1" >> $config_helif test "$cpu" = "sparc" ; then echo "ARCH=sparc" >> $config_mak echo "#define HOST_SPARC 1" >> $config_helif test "$cpu" = "sparc64" ; then echo "ARCH=sparc64" >> $config_mak echo "#define HOST_SPARC64 1" >> $config_helif test "$cpu" = "ia64" ; then echo "ARCH=ia64" >> $config_mak echo "#define HOST_IA64 1" >> $config_helif test "$cpu" = "m68k" ; then echo "ARCH=m68k" >> $config_mak echo "#define HOST_M68K 1" >> $config_helse echo "Unsupported CPU" exit 1fiif test "$bigendian" = "yes" ; then echo "WORDS_BIGENDIAN=yes" >> $config_mak echo "#define WORDS_BIGENDIAN 1" >> $config_hfiecho "#define HOST_LONG_BITS $hostlongbits" >> $config_hif test "$mingw32" = "yes" ; then echo "CONFIG_WIN32=yes" >> $config_mak echo "#define CONFIG_WIN32 1" >> $config_helif test -f "/usr/include/byteswap.h" ; then echo "#define HAVE_BYTESWAP_H 1" >> $config_hfiif test "$darwin" = "yes" ; then echo "CONFIG_DARWIN=yes" >> $config_mak echo "#define CONFIG_DARWIN 1" >> $config_hfiif test "$solaris" = "yes" ; then echo "CONFIG_SOLARIS=yes" >> $config_mak echo "#define HOST_SOLARIS $solarisrev" >> $config_hfiif test "$gdbstub" = "yes" ; then echo "CONFIG_GDBSTUB=yes" >> $config_mak echo "#define CONFIG_GDBSTUB 1" >> $config_hfiif test "$gprof" = "yes" ; then echo "TARGET_GPROF=yes" >> $config_mak echo "#define HAVE_GPROF 1" >> $config_hfiif test "$static" = "yes" ; then echo "CONFIG_STATIC=yes" >> $config_mak echo "#define CONFIG_STATIC 1" >> $config_hfiif test $profiler = "yes" ; then echo "#define CONFIG_PROFILER 1" >> $config_hfiif test "$slirp" = "yes" ; then echo "CONFIG_SLIRP=yes" >> $config_mak echo "#define CONFIG_SLIRP 1" >> $config_hfiif test "$adlib" = "yes" ; then echo "CONFIG_ADLIB=yes" >> $config_mak echo "#define CONFIG_ADLIB 1" >> $config_hfiif test "$oss" = "yes" ; then echo "CONFIG_OSS=yes" >> $config_mak echo "#define CONFIG_OSS 1" >> $config_hfiif test "$coreaudio" = "yes" ; then echo "CONFIG_COREAUDIO=yes" >> $config_mak echo "#define CONFIG_COREAUDIO 1" >> $config_hfiif test "$alsa" = "yes" ; then echo "CONFIG_ALSA=yes" >> $config_mak echo "#define CONFIG_ALSA 1" >> $config_hfiif test "$dsound" = "yes" ; then echo "CONFIG_DSOUND=yes" >> $config_mak echo "#define CONFIG_DSOUND 1" >> $config_hfiif test "$fmod" = "yes" ; then echo "CONFIG_FMOD=yes" >> $config_mak echo "CONFIG_FMOD_LIB=$fmod_lib" >> $config_mak echo "CONFIG_FMOD_INC=$fmod_inc" >> $config_mak echo "#define CONFIG_FMOD 1" >> $config_hfiqemu_version=`head $source_path/VERSION`echo "VERSION=$qemu_version" >>$config_makecho "#define QEMU_VERSION \"$qemu_version\"" >> $config_hecho "SRC_PATH=$source_path" >> $config_makif [ "$source_path_used" = "yes" ]; then echo "VPATH=$source_path" >> $config_makfiecho "TARGET_DIRS=$target_list" >> $config_makif [ "$build_docs" = "yes" ] ; then echo "BUILD_DOCS=yes" >> $config_makfi# XXX: suppress thatif [ "$bsd" = "yes" ] ; then echo "#define O_LARGEFILE 0" >> $config_h echo "#define MAP_ANONYMOUS MAP_ANON" >> $config_h echo "#define _BSD 1" >> $config_hfifor target in $target_list; dotarget_dir="$target"config_mak=$target_dir/config.makconfig_h=$target_dir/config.htarget_cpu=`echo $target | cut -d '-' -f 1`target_bigendian="no"[ "$target_cpu" = "armeb" ] && target_bigendian=yes[ "$target_cpu" = "sparc" ] && target_bigendian=yes[ "$target_cpu" = "sparc64" ] && target_bigendian=yes[ "$target_cpu" = "ppc" ] && target_bigendian=yes[ "$target_cpu" = "ppc64" ] && target_bigendian=yes[ "$target_cpu" = "mips" ] && target_bigendian=yestarget_softmmu="no"if expr $target : '.*-softmmu' > /dev/null ; then target_softmmu="yes"fitarget_user_only="no"if expr $target : '.*-user' > /dev/null ; then target_user_only="yes"fiif test "$target_user_only" = "no" -a "$check_gfx" = "yes" \ -a "$sdl" = "no" -a "$cocoa" = "no" ; then echo "ERROR: QEMU requires SDL or Cocoa for graphical output" echo "To build QEMU without graphical output configure with --disable-gfx-check" echo "Note that this will disable all output from the virtual graphics card." exit 1;fi#echo "Creating $config_mak, $config_h and $target_dir/Makefile"mkdir -p $target_dirmkdir -p $target_dir/fpuif test "$target" = "arm-user" -o "$target" = "armeb-user" ; then mkdir -p $target_dir/nwfpefiif test "$target_user_only" = "no" ; then mkdir -p $target_dir/slirpfi## don't use ln -sf as not all "ln -sf" over write the file/link#rm -f $target_dir/Makefileln -s $source_path/Makefile.target $target_dir/Makefileecho "# Automatically generated by configure - do not modify" > $config_makecho "/* Automatically generated by configure - do not modify */" > $config_hecho "include ../config-host.mak" >> $config_makecho "#include \"../config-host.h\"" >> $config_hinterp_prefix1=`echo "$interp_prefix" | sed "s/%M/$target_cpu/g"`echo "#define CONFIG_QEMU_PREFIX \"$interp_prefix1\"" >> $config_hif test "$target_cpu" = "i386" ; then echo "TARGET_ARCH=i386" >> $config_mak echo "#define TARGET_ARCH \"i386\"" >> $config_h echo "#define TARGET_I386 1" >> $config_h if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "i386" ; then echo "#define USE_KQEMU 1" >> $config_h fielif test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" ; then echo "TARGET_ARCH=arm" >> $config_mak echo "#define TARGET_ARCH \"arm\"" >> $config_h echo "#define TARGET_ARM 1" >> $config_helif test "$target_cpu" = "sparc" ; then echo "TARGET_ARCH=sparc" >> $config_mak echo "#define TARGET_ARCH \"sparc\"" >> $config_h echo "#define TARGET_SPARC 1" >> $config_helif test "$target_cpu" = "sparc64" ; then echo "TARGET_ARCH=sparc64" >> $config_mak echo "#define TARGET_ARCH \"sparc64\"" >> $config_h echo "#define TARGET_SPARC 1" >> $config_h echo "#define TARGET_SPARC64 1" >> $config_helif test "$target_cpu" = "ppc" ; then echo "TARGET_ARCH=ppc" >> $config_mak echo "#define TARGET_ARCH \"ppc\"" >> $config_h echo "#define TARGET_PPC 1" >> $config_helif test "$target_cpu" = "ppc64" ; then echo "TARGET_ARCH=ppc64" >> $config_mak echo "#define TARGET_ARCH \"ppc64\"" >> $config_h echo "#define TARGET_PPC 1" >> $config_h echo "#define TARGET_PPC64 1" >> $config_helif test "$target_cpu" = "x86_64" ; then echo "TARGET_ARCH=x86_64" >> $config_mak echo "#define TARGET_ARCH \"x86_64\"" >> $config_h echo "#define TARGET_I386 1" >> $config_h echo "#define TARGET_X86_64 1" >> $config_h if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64" ; then echo "#define USE_KQEMU 1" >> $config_h fielif test "$target_cpu" = "mips" -o "$target_cpu" = "mipsel" ; then echo "TARGET_ARCH=mips" >> $config_mak echo "#define TARGET_ARCH \"mips\"" >> $config_h echo "#define TARGET_MIPS 1" >> $config_helif test "$target_cpu" = "sh4" ; then echo "TARGET_ARCH=sh4" >> $config_mak echo "#define TARGET_ARCH \"sh4\"" >> $config_h echo "#define TARGET_SH4 1" >> $config_helse echo "Unsupported target CPU" exit 1fiif test "$target_bigendian" = "yes" ; then echo "TARGET_WORDS_BIGENDIAN=yes" >> $config_mak echo "#define TARGET_WORDS_BIGENDIAN 1" >> $config_hfiif test "$target_softmmu" = "yes" ; then echo "CONFIG_SOFTMMU=yes" >> $config_mak echo "#define CONFIG_SOFTMMU 1" >> $config_hfiif test "$target_user_only" = "yes" ; then echo "CONFIG_USER_ONLY=yes" >> $config_mak echo "#define CONFIG_USER_ONLY 1" >> $config_hfiif test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" ; then echo "CONFIG_SOFTFLOAT=yes" >> $config_mak echo "#define CONFIG_SOFTFLOAT 1" >> $config_hfi# sdl definesif test "$target_user_only" = "no"; then if test "$target_softmmu" = "no" -o "$static" = "yes"; then sdl1=$sdl_static else sdl1=$sdl fi if test "$sdl1" = "yes" ; then echo "#define CONFIG_SDL 1" >> $config_h echo "CONFIG_SDL=yes" >> $config_mak if test "$target_softmmu" = "no" -o "$static" = "yes"; then echo "SDL_LIBS=$sdl_static_libs" >> $config_mak else echo "SDL_LIBS=`$sdl_config --libs`" >> $config_mak fi if [ "${aa}" = "yes" ] ; then echo "SDL_CFLAGS=`$sdl_config --cflags` `aalib-config --cflags`" >> $config_mak else echo "SDL_CFLAGS=`$sdl_config --cflags`" >> $config_mak fi fifiif test "$cocoa" = "yes" ; then echo "#define CONFIG_COCOA 1" >> $config_h echo "CONFIG_COCOA=yes" >> $config_makfidone # for target in $targets# build tree in object directory if source path is different from current oneif test "$source_path_used" = "yes" ; then DIRS="tests" FILES="Makefile tests/Makefile" for dir in $DIRS ; do mkdir -p $dir done # remove the link and recreate it, as not all "ln -sf" overwrite the link for f in $FILES ; do rm -f $f ln -s $source_path/$f $f donefirm -f $TMPO $TMPC $TMPE $TMPS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -