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

📄 configure.svn-base

📁 我们自己开发的一个OSEK操作系统!不知道可不可以?
💻 SVN-BASE
📖 第 1 页 / 共 3 页
字号:
#!/bin/sh## qemu configure script (c) 2003 Fabrice Bellard## set temporary file nameif test ! -z "$TMPDIR" ; then    TMPDIR1="${TMPDIR}"elif test ! -z "$TEMPDIR" ; then    TMPDIR1="${TEMPDIR}"else    TMPDIR1="/tmp"fiTMPC="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.c"TMPO="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.o"TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}"TMPS="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.S"# default parametersprefix=""interp_prefix="/usr/gnemul/qemu-%M"static="no"cross_prefix=""cc="gcc"gcc3_search="yes"gcc3_list="gcc-3.4.6 gcc-3.4 gcc34 gcc-3.3.6 gcc-3.3 gcc33 gcc-3.2 gcc32"host_cc="gcc"ar="ar"make="make"install="install"strip="strip"cpu=`uname -m`target_list=""case "$cpu" in  i386|i486|i586|i686|i86pc|BePC)    cpu="i386"  ;;  armv*b)    cpu="armv4b"  ;;  armv*l)    cpu="armv4l"  ;;  alpha)    cpu="alpha"  ;;  "Power Macintosh"|ppc|ppc64)    cpu="powerpc"  ;;  mips)    cpu="mips"  ;;  mips64)    cpu="mips64"  ;;  cris)    cpu="cris"  ;;  s390*)    cpu="s390"  ;;  sparc|sun4[cdmuv])    cpu="sparc"  ;;  sparc64)    cpu="sparc64"  ;;  ia64)    cpu="ia64"  ;;  m68k)    cpu="m68k"  ;;  x86_64|amd64)    cpu="x86_64"  ;;  *)    cpu="unknown"  ;;esacgprof="no"bigendian="no"mingw32="no"EXESUF=""gdbstub="yes"slirp="yes"adlib="no"oss="no"dsound="no"coreaudio="no"alsa="no"fmod="no"fmod_lib=""fmod_inc=""vnc_tls="yes"bsd="no"linux="no"kqemu="no"profiler="no"cocoa="no"check_gfx="yes"check_gcc="yes"softmmu="yes"linux_user="no"darwin_user="no"build_docs="no"uname_release=""# OS specifictargetos=`uname -s`case $targetos inCYGWIN*)mingw32="yes"OS_CFLAGS="-mno-cygwin"VL_OS_LDFLAGS="-mno-cygwin"if [ "$cpu" = "i386" ] ; then    kqemu="yes"fi;;MINGW32*)mingw32="yes"if [ "$cpu" = "i386" ] ; then    kqemu="yes"fi;;GNU/kFreeBSD)oss="yes"if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then    kqemu="yes"fi;;FreeBSD)bsd="yes"oss="yes"if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then    kqemu="yes"fi;;NetBSD)bsd="yes"oss="yes";;OpenBSD)bsd="yes"oss="yes";;Darwin)bsd="yes"darwin="yes"darwin_user="yes"cocoa="yes"coreaudio="yes"OS_CFLAGS="-mdynamic-no-pic";;SunOS)    solaris="yes"    make="gmake"    install="ginstall"    needs_libsunmath="no"    solarisrev=`uname -r | cut -f2 -d.`    # have to select again, because `uname -m` returns i86pc    # even on an x86_64 box.    solariscpu=`isainfo -k`    if test "${solariscpu}" = "amd64" ; then        cpu="x86_64"    fi    if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then        if test "$solarisrev" -le 9 ; then            if test -f /opt/SUNWspro/prod/lib/libsunmath.so.1; then                needs_libsunmath="yes"            else                echo "QEMU will not link correctly on Solaris 8/X86 or 9/x86 without"                echo "libsunmath from the Sun Studio compilers tools, due to a lack of"                echo "C99 math features in libm.so in Solaris 8/x86 and Solaris 9/x86"                echo "Studio 11 can be downloaded from www.sun.com."                exit 1            fi        fi        if test "$solarisrev" -ge 9 ; then            kqemu="yes"        fi    fi    if test -f /usr/include/sys/soundcard.h ; then        oss=yes    fi;;*)oss="yes"linux="yes"linux_user="yes"if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then    kqemu="yes"fi;;esacif [ "$bsd" = "yes" ] ; then  if [ "$darwin" != "yes" ] ; then    make="gmake"  fifi# find source pathsource_path=`dirname "$0"`if [ -z "$source_path" ]; then    source_path=`pwd`else    source_path=`cd "$source_path"; pwd`fiif test "$source_path" = `pwd` ; then    source_path_used="no"else    source_path_used="yes"fiwerror="no"# generate compile errors on warnings for development builds#if grep cvs $source_path/VERSION > /dev/null 2>&1 ; then#werror="yes";#fifor opt do  optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`  case "$opt" in  --help|-h) show_help=yes  ;;  --prefix=*) prefix="$optarg"  ;;  --interp-prefix=*) interp_prefix="$optarg"  ;;  --source-path=*) source_path="$optarg"  source_path_used="yes"  ;;  --cross-prefix=*) cross_prefix="$optarg"  ;;  --cc=*) cc="$optarg"  gcc3_search="no"  ;;  --host-cc=*) host_cc="$optarg"  ;;  --make=*) make="$optarg"  ;;  --install=*) install="$optarg"  ;;  --extra-cflags=*) CFLAGS="$optarg"  ;;  --extra-ldflags=*) LDFLAGS="$optarg"  ;;  --cpu=*) cpu="$optarg"  ;;  --target-list=*) target_list="$optarg"  ;;  --enable-gprof) gprof="yes"  ;;  --static) static="yes"  ;;  --disable-sdl) sdl="no"  ;;  --enable-coreaudio) coreaudio="yes"  ;;  --enable-alsa) alsa="yes"  ;;  --enable-dsound) dsound="yes"  ;;  --enable-fmod) fmod="yes"  ;;  --fmod-lib=*) fmod_lib="$optarg"  ;;  --fmod-inc=*) fmod_inc="$optarg"  ;;  --disable-vnc-tls) vnc_tls="no"  ;;  --enable-mingw32) mingw32="yes" ; cross_prefix="i386-mingw32-" ; linux_user="no"  ;;  --disable-slirp) slirp="no"  ;;  --enable-adlib) adlib="yes"  ;;  --disable-kqemu) kqemu="no"  ;;  --enable-profiler) profiler="yes"  ;;  --enable-cocoa) cocoa="yes" ; coreaudio="yes" ; sdl="no"  ;;  --disable-gfx-check) check_gfx="no"  ;;  --disable-gcc-check) check_gcc="no"  ;;  --disable-system) softmmu="no"  ;;  --enable-system) softmmu="yes"  ;;  --disable-linux-user) linux_user="no"  ;;  --enable-linux-user) linux_user="yes"  ;;  --disable-darwin-user) darwin_user="no"  ;;  --enable-darwin-user) darwin_user="yes"  ;;  --enable-uname-release=*) uname_release="$optarg"  ;;  --sparc_cpu=*)      sparc_cpu="$optarg"      case $sparc_cpu in        v7|v8) SP_CFLAGS="-m32 -mcpu=${sparc_cpu} -D__sparc_${sparc_cpu}__"; SP_LDFLAGS="-m32"                 target_cpu="sparc"; cpu="sparc" ;;        v8plus|v8plusa) SP_CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__"; SP_LDFLAGS="-m32"                 target_cpu="sparc"; cpu="sparc" ;;        v9)    SP_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__"; SP_LDFLAGS="-m64"                 target_cpu="sparc64"; cpu="sparc64" ;;        *)     echo "undefined SPARC architecture. Exiting";exit 1;;      esac  ;;  --enable-werror) werror="yes"  ;;  --disable-werror) werror="no"  ;;  *) echo "ERROR: unknown option $opt"; show_help="yes"  ;;  esacdoneif [ "$bsd" = "yes" -o "$darwin" = "yes" -o "$mingw32" = "yes" ] ; then    AIOLIBS=else    # Some Linux architectures (e.g. s390) don't imply -lpthread automatically.    AIOLIBS="-lrt -lpthread"fi# default flags for all hostsCFLAGS="$CFLAGS -Wall -O2 -g -fno-strict-aliasing"LDFLAGS="$LDFLAGS -g"if test "$werror" = "yes" ; thenCFLAGS="$CFLAGS -Werror"fi## If cpu ~= sparc and  sparc_cpu hasn't been defined, plug in the right# ARCH_CFLAGS/ARCH_LDFLAGS (assume sparc_v8plus for 32-bit and sparc_v9 for 64-bit)#case $cpu in    sparc) if test -z "$sparc_cpu" ; then               ARCH_CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_v8plus__"               ARCH_LDFLAGS="-m32"           else               ARCH_CFLAGS="${SP_CFLAGS}"               ARCH_LDFLAGS="${SP_LDFLAGS}"           fi           ;;    sparc64) if test -z "$sparc_cpu" ; then               ARCH_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_v9__"               ARCH_LDFLAGS="-m64"           else               ARCH_CFLAGS="${SP_CFLAGS}"               ARCH_LDFLAGS="${SP_LDFLAGS}"           fi           ;;    s390)           ARCH_CFLAGS="-march=z900"           ;;esacif [ "$solaris" = "yes" -a  "$cpu" = "x86_64" ] ; then    CFLAGS="${CFLAGS} -m64"    OS_CFLAGS="${OS_CFLAGS} -m64"    OS_LDFLAGS="${OS_LDFLAGS} -m64"fiif [ "$solaris" = "yes" -a  "$cpu" = "i386" ] ; then    CFLAGS="${CFLAGS} -m32"    OS_CFLAGS="${OS_CFLAGS} -m32"fiif test x"$show_help" = x"yes" ; thencat << EOFUsage: configure [options]Options: [defaults in brackets after descriptions]EOFecho "Standard options:"echo "  --help                   print this message"echo "  --prefix=PREFIX          install in PREFIX [$prefix]"echo "  --interp-prefix=PREFIX   where to find shared libraries, etc."echo "                           use %M for cpu name [$interp_prefix]"echo "  --target-list=LIST       set target list [$target_list]"echo ""echo "kqemu kernel acceleration support:"echo "  --disable-kqemu          disable kqemu support"echo ""echo "Advanced options (experts only):"echo "  --source-path=PATH       path of source code [$source_path]"echo "  --cross-prefix=PREFIX    use PREFIX for compile tools [$cross_prefix]"echo "  --cc=CC                  use C compiler CC [$cc]"echo "  --host-cc=CC             use C compiler CC [$host_cc] for dyngen etc."echo "  --make=MAKE              use specified make [$make]"echo "  --install=INSTALL        use specified install [$install]"echo "  --static                 enable static build [$static]"echo "  --disable-werror         disable compilation abort on warning"echo "  --disable-sdl            disable SDL"echo "  --enable-cocoa           enable COCOA (Mac OS X only)"echo "  --enable-mingw32         enable Win32 cross compilation with mingw32"

⌨️ 快捷键说明

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