configure
来自「基于4个mips核的noc设计」· 代码 · 共 1,619 行 · 第 1/4 页
TXT
1,619 行
#!/bin/sh### WARNING: this file contains embedded tabs. Do not run untabify on this file.# Configuration script# Copyright (C) 1988, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999# Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.# # This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.# # You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.# This file was originally written by K. Richard Pixley.## Shell script to create proper links to machine-dependent files in# preparation for compilation.## If configure succeeds, it leaves its status in config.status.# If configure fails after disturbing the status quo, # config.status is removed.#export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0 $argv; kill $$)remove=rmhard_link=lnsymbolic_link='ln -s'#for Test#remove="echo rm"#hard_link="echo ln"#symbolic_link="echo ln -s"# clear some things potentially inherited from environment.Makefile=MakefileMakefile_in=Makefile.inarguments=build_alias=cache_file=config.cachecache_file_option=configdirs=extraconfigdirs=diroptions=exec_prefix=exec_prefixoption=fatal=floating_point=defaultgas=defaultgcc_version=gcc_version_trigger=host_alias=NOHOSThost_makefile_frag=moveifchange=norecursion=other_options=package_makefile_frag=package_makefile_rules_frag=prefix=/usr/localprogname=program_prefix=program_prefixoption=program_suffix=program_suffixoption=program_transform_name=program_transform_nameoption=redirect=removing=site=site_makefile_frag=site_option=srcdir=srctrigger=subdirs=target_alias=NOTARGETtarget_makefile_frag=undefs=NOUNDEFSversion="$Revision: 1.11 $"x11=defaultbindir='${exec_prefix}/bin'sbindir='${exec_prefix}/sbin'libexecdir='${exec_prefix}/libexec'datadir='${prefix}/share'sysconfdir='${prefix}/etc'sharedstatedir='${prefix}/com'localstatedir='${prefix}/var'libdir='${exec_prefix}/lib'includedir='${prefix}/include'oldincludedir='/usr/include'infodir='${prefix}/info'mandir='${prefix}/man'### we might need to use some other shell than /bin/sh for running subshells### If we are on Windows, search for the shell. This will permit people### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure### without also having to set CONFIG_SHELL. This code will work when### using bash, which sets OSTYPE.case "${OSTYPE}" in*win32*) if [ x${CONFIG_SHELL} = x ]; then if [ ! -f /bin/sh ]; then if [ x${SHELL} != x ] && [ -f ${SHELL} ]; then CONFIG_SHELL=${SHELL} export CONFIG_SHELL else for prog in sh sh.exe bash bash.exe; do IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" for dir in $PATH; do test -z "$dir" && dir=. if test -f $dir/$prog; then CONFIG_SHELL=$dir/$prog export CONFIG_SHELL break fi done IFS="$save_ifs" test -n "${CONFIG_SHELL}" && break done fi fi fi ;;esacconfig_shell=${CONFIG_SHELL-/bin/sh}NO_EDIT="This file was generated automatically by configure. Do not edit."## this is a little touchy and won't always work, but...#### if the argv[0] starts with a slash then it is an absolute name that can (and## must) be used as is.#### otherwise, if argv[0] has no slash in it, we can assume that it is on the## path. Since PATH might include "." we also add `pwd` to the end of PATH.##progname=$0# if PWD already has a value, it is probably wrong.if [ -n "$PWD" ]; then PWD=`pwd`; ficase "${progname}" in/*) ;;*/*) ;;*) PATH=$PATH:${PWD=`pwd`} ; export PATH ;;esac# Loop over all argswhile :do# Break out if there are no more args case $# in 0) break ;; esac# Get the first arg, and shuffle option=$1 shift# Make all options have two hyphens orig_option=$option # Save original for error messages case $option in --*) ;; -*) option=-$option ;; esac # Split out the argument for options that take them case $option in --*=*) optarg=`echo $option | sed -e 's/^[^=]*=//'` arguments="$arguments $option" ;;# These options have mandatory values. Since we didn't find an = sign,# the value must be in the next argument --bu* | --cache* | --ex* | --ho* | --pre* | --program-p* | --program-s* | --program-t* | --si* | --sr* | --ta* | --tm* | --x-* | --bi* | --sb* | --li* | --da* | --sy* | --sh* | --lo* | --in* | --ol* | --ma*) optarg=$1 shift arguments="$arguments $option=$optarg" ;; --v) arguments="$arguments -v" ;; --*) arguments="$arguments $option" ;; esac# Now, process the options case $option in --bi*) bindir=$optarg diroptions="$diroptions --bindir=$optarg" ;; --build* | --bu*) case "$build_alias" in "") build_alias=$optarg ;; *) echo '***' Can only configure for one build machine at a time. 1>&2 fatal=yes ;; esac ;; --cache*) cache_file=$optarg ;; --da*) datadir=$optarg diroptions="$diroptions --datadir=$optarg" ;; --disable-*) enableopt=`echo ${option} | sed 's:^--disable-:enable_:;s:-:_:g'` eval $enableopt=no disableoptions="$disableoptions $option" ;; --enable-*) case "$option" in *=*) ;; *) optarg=yes ;; esac enableopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'` eval "$enableopt=\$optarg" enableoptions="$enableoptions '$option'" ;; --exec-prefix* | --ex*) exec_prefix=$optarg exec_prefixoption="--exec-prefix=$optarg" ;; --gas | --g*) gas=yes ;; --help | --he*) fatal=yes ;; --host* | --ho*) case $host_alias in NOHOST) host_alias=$optarg ;; *) echo '***' Can only configure for one host at a time. 1>&2 fatal=yes ;; esac ;; --inc*) includedir=$optarg diroptions="$diroptions --includedir=$optarg" ;; --inf*) infodir=$optarg diroptions="$diroptions --infodir=$optarg" ;; --libd*) libdir=$optarg diroptions="$diroptions --libdir=$optarg" ;; --libe*) libexecdir=$optarg diroptions="$diroptions --libexecdir=$optarg" ;; --lo*) localstatedir=$optarg diroptions="$diroptions --localstatedir=$optarg" ;; --ma*) mandir=$optarg diroptions="$diroptions --mandir=$optarg" ;; --nfp | --nf*) floating_point=no floating_pointoption="--nfp" ;; --norecursion | --no*) norecursion=yes ;; --ol*) oldincludedir=$optarg diroptions="$diroptions --oldincludedir=$optarg" ;; --prefix* | --pre*) prefix=$optarg prefixoption="--prefix=$optarg" ;; --program-prefix* | --program-p*) program_prefix=$optarg program_prefixoption="--program-prefix=$optarg" ;; --program-suffix* | --program-s*) program_suffix=$optarg program_suffixoption="--program-suffix=$optarg" ;; --program-transform-name* | --program-t*) # Double any backslashes or dollar signs in the argument program_transform_name="${program_transform_name} -e `echo ${optarg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`" program_transform_nameoption="${program_transform_nameoption} --program-transform-name='$optarg'" ;; --rm) removing=--rm ;; --sb*) sbindir=$optarg diroptions="$diroptions --sbindir=$optarg" ;; --sh*) sharedstatedir=$optarg diroptions="$diroptions --sharedstatedir=$optarg" ;; --silent | --sil* | --quiet | --q*) redirect=">/dev/null" verbose=--silent ;; --site* | --sit*) site=$optarg site_option="--site=$optarg" ;; --srcdir*/ | --sr*/) # Remove trailing slashes. Otherwise, when the file name gets # bolted into an object file as debug info, it has two slashes # in it. Ordinarily this is ok, but emacs takes double slash # to mean "forget the first part". srcdir=`echo $optarg | sed -e 's:/$::'` ;; --srcdir* | --sr*) srcdir=$optarg ;; --sy*) sysconfdir=$optarg diroptions="$diroptions --sysconfdir=$optarg" ;; --target* | --ta*) case $target_alias in NOTARGET) target_alias=$optarg ;; *) echo '***' Can only configure for one target at a time. 1>&2 fatal=yes ;; esac ;; --tmpdir* | --tm*) TMPDIR=$optarg tmpdiroption="--tmpdir=$optarg" ;; --verbose | --v | --verb*) redirect= verbose=--verbose ;; --version | --V | --vers*) echo "This is Cygnus Configure version" `echo ${version} | sed 's/[ $:]//g'` exit 0 ;; --with-*) case "$option" in *=*) ;; *) optarg=yes ;; esac withopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'` eval $withopt="\$optarg" withoptions="$withoptions $option" ;; --without-*) withopt=`echo ${option} | sed 's:^--::;s:out::;s:-:_:g'` eval $withopt=no withoutoptions="$withoutoptions $option" ;; --x) with_x=yes withoptions="$withoptions --with-x" ;; --x-i* | --x-l*) other_options="$other_options $orig_option" ;; --*) echo "configure: Unrecognized option: \"$orig_option\"; use --help for usage." >&2 exit 1 ;; *) case $undefs in NOUNDEFS) undefs=$option ;; *) echo '***' Can only configure for one host and one target at a time. 1>&2 fatal=yes ;; esac ;; esacdone# process host and target# Do some error checking and defaulting for the host and target type.# The inputs are:# configure --host=HOST --target=TARGET UNDEFS
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?