⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.svn-base

📁 我们自己开发的一个OSEK操作系统!不知道可不可以?
💻 SVN-BASE
📖 第 1 页 / 共 3 页
字号:
echo "  --enable-adlib           enable Adlib emulation"echo "  --enable-coreaudio       enable Coreaudio audio driver"echo "  --enable-alsa            enable ALSA audio driver"echo "  --enable-fmod            enable FMOD audio driver"echo "  --enable-dsound          enable DirectSound audio driver"echo "  --disable-vnc-tls        disable TLS encryption for VNC server"echo "  --enable-system          enable all system emulation targets"echo "  --disable-system         disable all system emulation targets"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 "  --fmod-lib               path to FMOD library"echo "  --fmod-inc               path to FMOD includes"echo "  --enable-uname-release=R Return R for uname -r in usermode emulation"echo "  --sparc_cpu=V            Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9"echo ""echo "NOTE: The object files are built at the place where configure is launched"exit 1ficc="${cross_prefix}${cc}"ar="${cross_prefix}${ar}"strip="${cross_prefix}${strip}"# check that the C compiler works.cat > $TMPC <<EOFint main(void) {}EOFif $cc -c -o $TMPO $TMPC 2> /dev/null ; then  : C compiler works okelse    echo "ERROR: \"$cc\" either does not exist or does not work"    exit 1fiif test "$mingw32" = "yes" ; then    linux="no"    EXESUF=".exe"    oss="no"fi# Check for gcc4, error if pre-gcc4if test "$check_gcc" = "yes" ; then    cat > $TMPC <<EOF#if __GNUC__ < 4#error gcc3#endifint main(){return 0;}EOF    if "$cc" -o $TMPE $TMPC 2> /dev/null ; then	echo "WARNING: \"$cc\" looks like gcc 4.x"	found_compat_cc="no"	if test "$gcc3_search" = "yes" ; then	    echo "Looking for gcc 3.x"	    for compat_cc in $gcc3_list ; do		if "$cross_prefix$compat_cc" --version 2> /dev/null | fgrep '(GCC) 3.' > /dev/null 2>&1 ; then		    echo "Found \"$compat_cc\""		    cc="$cross_prefix$compat_cc"		    found_compat_cc="yes"		    break		fi	    done	    if test "$found_compat_cc" = "no" ; then		echo "gcc 3.x not found!"	    fi	fi	if test "$found_compat_cc" = "no" ; then	    echo "QEMU is known to have problems when compiled with gcc 4.x"	    echo "It is recommended that you use gcc 3.x to build QEMU"	    echo "To use this compiler anyway, configure with --disable-gcc-check"	    exit 1;	fi    fifi## Solaris specific configure tool chain decisions#if test "$solaris" = "yes" ; then  #  # gcc for solaris 10/fcs in /usr/sfw/bin doesn't compile qemu correctly  # override the check with --disable-gcc-check  #  if test "$solarisrev" -eq 10 -a "$check_gcc" = "yes" ; then    solgcc=`which $cc`    if test "$solgcc" = "/usr/sfw/bin/gcc" ; then      echo "Solaris 10/FCS gcc in /usr/sfw/bin will not compiled qemu correctly."      echo "please get gcc-3.4.3 or later, from www.blastwave.org using pkg-get -i gcc3"      echo "or get the latest patch from SunSolve for gcc"      exit 1    fi  fi  solinst=`which $install 2> /dev/null | /usr/bin/grep -v "no $install in"`  if test -z "$solinst" ; then    echo "Solaris install program not found. Use --install=/usr/ucb/install or"    echo "install fileutils from www.blastwave.org using pkg-get -i fileutils"    echo "to get ginstall which is used by default (which lives in /opt/csw/bin)"    exit 1  fi  if test "$solinst" = "/usr/sbin/install" ; then    echo "Error: Solaris /usr/sbin/install is not an appropriate install program."    echo "try ginstall from the GNU fileutils available from www.blastwave.org"    echo "using pkg-get -i fileutils, or use --install=/usr/ucb/install"    exit 1  fi  sol_ar=`which ar 2> /dev/null | /usr/bin/grep -v "no ar in"`  if test -z "$sol_ar" ; then    echo "Error: No path includes ar"    if test -f /usr/ccs/bin/ar ; then      echo "Add /usr/ccs/bin to your path and rerun configure"    fi    exit 1  fifiif test -z "$target_list" ; then# these targets are portable    if [ "$softmmu" = "yes" ] ; then        target_list="i386-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu arm-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu m68k-softmmu sh4-softmmu sh4eb-softmmu cris-softmmu"    fi# the following are Linux specific    if [ "$linux_user" = "yes" ] ; then        target_list="i386-linux-user arm-linux-user armeb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user mips-linux-user mipsel-linux-user m68k-linux-user alpha-linux-user sh4-linux-user sh4eb-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user x86_64-linux-user cris-linux-user $target_list"    fi# the following are Darwin specific    if [ "$darwin_user" = "yes" ] ; then        target_list="i386-darwin-user ppc-darwin-user $target_list"    fielse    target_list=`echo "$target_list" | sed -e 's/,/ /g'`fiif test -z "$target_list" ; then    echo "No targets enabled"    exit 1fiif test -z "$cross_prefix" ; then# ---# big/little endian testcat > $TMPC << EOF#include <inttypes.h>int main(int argc, char ** argv){        volatile uint32_t i=0x01234567;        return (*((uint8_t*)(&i))) == 0x67;}EOFif $cc -o $TMPE $TMPC 2> /dev/null ; then$TMPE && bigendian="yes"elseecho big/little test failedfielse# if cross compiling, cannot launch a program, so make a static guessif test "$cpu" = "powerpc" -o "$cpu" = "mips" -o "$cpu" = "mips64" -o "$cpu" = "s390" -o "$cpu" = "sparc" -o "$cpu" = "sparc64" -o "$cpu" = "m68k" -o "$cpu" = "armv4b"; then    bigendian="yes"fifi# host long bits testhostlongbits="32"if test "$cpu" = "sparc64" -o "$cpu" = "ia64" -o "$cpu" = "x86_64" -o "$cpu" = "alpha"; then    hostlongbits="64"fi# check gcc options supportcat > $TMPC <<EOFint main(void) {}EOF########################################### SDL probesdl_too_old=noif test -z "$sdl" ; then    sdl_config="sdl-config"    sdl=no    sdl_static=no    if test "$mingw32" = "yes" -a ! -z "$cross_prefix" ; then    # win32 cross compilation case        sdl_config="i386-mingw32msvc-sdl-config"        sdl=yes    else        # 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); }EOF        if $cc -o $TMPE ${OS_CFLAGS} `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> /tmp/qemu-$$-sdl-config.log ; then            _sdlversion=`$sdl_config --version | sed 's/[^0-9]//g'`            if test "$_sdlversion" -lt 121 ; then                sdl_too_old=yes            else                if test "$cocoa" = "no" ; then                    sdl=yes                fi            fi            # static link with sdl ?            if test "$sdl" = "yes" ; then                aa="no"                `$sdl_config --static-libs 2>/dev/null | grep \\\-laa > /dev/null` && aa="yes"                sdl_static_libs=`$sdl_config --static-libs 2>/dev/null`                if [ "$aa" = "yes" ] ; then                    sdl_static_libs="$sdl_static_libs `aalib-config --static-libs`"                fi                if $cc -o $TMPE ${OS_CFLAGS} `$sdl_config --cflags 2> /dev/null` $TMPC $sdl_static_libs 2> /dev/null; then                    sdl_static=yes                fi            fi # static link        fi # sdl compile test    fi # cross compilationelse    # Make sure to disable cocoa if sdl was set    if test "$sdl" = "yes" ; then       cocoa="no"       coreaudio="no"    fifi # -z $sdl########################################### VNC TLS detectionif test "$vnc_tls" = "yes" ; then  `pkg-config gnutls` || vnc_tls="no"fiif test "$vnc_tls" = "yes" ; then  vnc_tls_cflags=`pkg-config --cflags gnutls`  vnc_tls_libs=`pkg-config --libs gnutls`fi########################################### alsa sound support librariesif test "$alsa" = "yes" ; then  cat > $TMPC << EOF#include <alsa/asoundlib.h>int main(void) { snd_pcm_t **handle; return snd_pcm_close(*handle); }EOF  if $cc -o $TMPE $TMPC -lasound 2> /dev/null ; then    :  else    echo    echo "Error: Could not find alsa"    echo "Make sure to have the alsa libs and headers installed."    echo    exit 1  fifi# Check if tools are available to build documentation.if [ -x "`which texi2html 2>/dev/null`" ] && \   [ -x "`which pod2man 2>/dev/null`" ]; then  build_docs="yes"fiif test "$mingw32" = "yes" ; then  if test -z "$prefix" ; then      prefix="/c/Program Files/Qemu"  fi  mansuffix=""  datasuffix=""  docsuffix=""  binsuffix=""else  if test -z "$prefix" ; then      prefix="/usr/local"  fi  mansuffix="/share/man"  datasuffix="/share/qemu"  docsuffix="/share/doc/qemu"  binsuffix="/bin"fiecho "Install prefix    $prefix"echo "BIOS directory    $prefix$datasuffix"echo "binary directory  $prefix$binsuffix"if test "$mingw32" = "no" ; thenecho "Manual directory  $prefix$mansuffix"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"echo "-Werror enabled   $werror"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 "OSS support       $oss"echo "VNC TLS support   $vnc_tls"if test "$vnc_tls" = "yes" ; then    echo "    TLS CFLAGS    $vnc_tls_cflags"    echo "    TLS LIBS      $vnc_tls_libs"fiif test -n "$sparc_cpu"; then    echo "Target Sparc Arch $sparc_cpu"fiecho "kqemu support     $kqemu"echo "Documentation     $build_docs"[ ! -z "$uname_release" ] && \echo "uname -r          $uname_release"if test $sdl_too_old = "yes"; thenecho "-> Your SDL version is too old - please upgrade to have SDL support"fiif [ -s /tmp/qemu-$$-sdl-config.log ]; then  echo "The error log from compiling the libSDL test is: "  cat /tmp/qemu-$$-sdl-config.logfirm -f /tmp/qemu-$$-sdl-config.log#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"test -f $config_h && mv $config_h ${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=\${prefix}$binsuffix" >> $config_makecho "mandir=\${prefix}$mansuffix" >> $config_makecho "datadir=\${prefix}$datasuffix" >> $config_makecho "docdir=\${prefix}$docsuffix" >> $config_makecho "#define CONFIG_QEMU_SHAREDIR \"$prefix$datasuffix\"" >> $config_hecho "MAKE=$make" >> $config_makecho "INSTALL=$install" >> $config_makecho "CC=$cc" >> $config_makecho "HOST_CC=$host_cc" >> $config_makecho "AR=$ar" >> $config_makecho "STRIP=$strip -s -R .comment -R .note" >> $config_makecho "OS_CFLAGS=$OS_CFLAGS" >> $config_makecho "OS_LDFLAGS=$OS_LDFLAGS" >> $config_makecho "VL_OS_LDFLAGS=$VL_OS_LDFLAGS" >> $config_makecho "ARCH_CFLAGS=$ARCH_CFLAGS" >> $config_makecho "ARCH_LDFLAGS=$ARCH_LDFLAGS" >> $config_makecho "CFLAGS=$CFLAGS" >> $config_makecho "LDFLAGS=$LDFLAGS" >> $config_makecho "EXESUF=$EXESUF" >> $config_makecho "AIOLIBS=$AIOLIBS" >> $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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -