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

📄 configure

📁 早期freebsd实现
💻
📖 第 1 页 / 共 2 页
字号:
#!/bin/sh# Configuration script for GNU CC#   Copyright (C) 1988, 1990, 1991, 1992 Free Software Foundation, Inc.#This file is part of GNU CC.#GNU CC 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, or (at your option)#any later version.#GNU CC 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 GNU CC; see the file COPYING.  If not, write to#the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.## Shell script to create proper links to machine-dependent files in# preparation for compiling gcc.## Options: --srcdir=DIR		specifies directory where sources are.# 	   --host=HOST		specifies host configuration.#	   --target=TARGET	specifies target configuration.#	   --build=TARGET	specifies configuration of machine you are#				using to compile GCC.#	   --prefix=DIR		specifies directory to install in.#	   --exec-prefix=DIR	specifies directory to install executables in.#	   --with-gnu-ld	arrange to work with GNU ld.#	   --with-gnu-as	arrange to work with GAS.#	   --with-stabs		arrange to use stabs instead of host debug format.#	   --nfp		assume system has no FPU.## If configure succeeds, it leaves its status in config.status.# If configure fails after disturbing the status quo, # 	config.status is removed.#progname=$0# Default --srcdir to the directory where the script is found, # if a directory was specified.# The second sed call is to convert `.//configure' to `./configure'.srcdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`if [ x$srcdir = x$0 ]thensrcdir=fihost=# Default prefix to /usr/local.#prefix=/usr/localprefix=/usr/libexec# Default is to let the Makefile set exec_prefix from $(prefix)#exec_prefix='$(prefix)'exec_prefix='$(prefix)/gcc2'remove=rmhard_link=lnsymbolic_link='ln -s'copy=cp# Record all the arguments, to write them in config.status.arguments=$*#for Test#remove="echo rm"#hard_link="echo ln"#symbolic_link="echo ln -s"target=host=build=for arg in $*;do  case $next_arg in  --srcdir)    srcdir=$arg    next_arg=    ;;  --host)    host=$arg    next_arg=    ;;  --target)    target=$arg    next_arg=    ;;  --build)    build=$arg    next_arg=    ;;  --prefix)    prefix=$arg    next_arg=    ;;  --exec-prefix)    exec_prefix=$arg    next_arg=    ;;  *)    case $arg in     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)	next_arg=--srcdir	;;     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)	srcdir=`echo $arg | sed 's/-*s[a-z]*=//'`	;;     -host | --host | --hos | --ho | --h)	next_arg=--host	;;     -host=* | --host=* | --hos=* | --ho=* | --h=*)	host=`echo $arg | sed 's/-*h[a-z]*=//'`	;;      -target | --target | --targe | --targ | --tar | --ta | --t)	next_arg=--target	;;     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)	target=`echo $arg | sed 's/-*t[a-z]*=//'`	;;      -build | --build | --buil | --bui | --bu | --b)	next_arg=--build	;;     -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)	build=`echo $arg | sed 's/-*b[a-z]*=//'`	;;      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)	next_arg=--prefix	;;     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)	prefix=`echo $arg | sed 's/-*p[a-z]*=//'`	;;     -exec-prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre \	| --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)	next_arg=--exec-prefix	;;     -exec-prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* \	| --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* \	| --exe=* | --ex=* | --e=*)	exec_prefix=`echo $arg | sed 's/-*e[-a-z]*=//'`	;;     -with-gnu-ld | --with-gnu-ld | --with-gnu-l)	gnu_ld=yes	;;     -gas | --gas | --ga | --g | -with-gnu-as | --with-gnu-as | -with-gnu-a)        gas=yes	;;     -nfp | --nfp | --nf | --n)	nfp=yes	;;     -with-stabs | -with-stab | -with-sta | -with-st | -with-s \	| --with-stabs | --with-stab | --with-sta | --with-st | --with-s \	| -stabs | -stab | -sta | -st  \	| --stabs | --stab | --sta | --st)	stabs=yes	;;     -with-* | --with-*) ;; #ignored     -x | --x) ;; # ignored     -*)	echo "Invalid option \`$arg'" 1>&2	exit 1	;;     *)# Allow configure HOST TARGET	if [ x$host = x ]	then		host=$target	fi	target=$arg	;;    esac  esacdone# Find the source files, if location was not specified.if [ x$srcdir = x ]then	srcdirdefaulted=1	srcdir=.	if [ ! -r tree.c ]	then		srcdir=..	fifiif [ ! -r ${srcdir}/tree.c ]then	if [ x$srcdirdefaulted = x ]	then	  echo "$progname: Can't find compiler sources in \`${srcdir}'" 1>&2	else	  echo "$progname: Can't find compiler sources in \`.' or \`..'" 1>&2	fi	exit 1fiif [ -r ${srcdir}/config.status ] && [ x$srcdir != x. ]then	echo "$progname: \`configure' has been run in \`${srcdir}'" 1>&2	exit 1fi# Complain if an arg is missingif [ x$target = x ]then	echo "No target specified." 1>&2	echo "\Usage: `basename $progname` [--host=HOST] [--build=BUILD]       [--prefix=DIR] [--exec-pref=DIR]       [--with-gnu-as] [--with-gnu-ld] [--with-stabs] [--nfp] TARGET" 1>&2	echo "Where HOST, TARGET and BUILD are three-part configuration names " 1>&2	if [ -r config.status ]	then		tail +2 config.status 1>&2	fi	exit 1fi# Default other argif [ x$host = x ]then	host=$targetfi# If $build was not specified, use $host.if [ x$build = x ]then	build=$hostfibuild_xm_file=host_xm_file=host_xmake_file=host_broken_install=# Validate the specs, and canonicalize them.canon_build=`$srcdir/config.sub $build` || exit 1canon_host=`$srcdir/config.sub $host` || exit 1canon_target=`$srcdir/config.sub $target` || exit 1# Decode the host machine, then the target machine.# For the host machine, we save the xm_file variable as host_xm_file;# then we decode the target machine and forget everything else# that came from the host machine.for machine in $canon_build $canon_host $canon_target; do	cpu_type=	xm_file=	tm_file=	out_file=	xmake_file=	tmake_file=	header_files=	# Set this to force installation and use of collect2.	use_collect2=	# Set this to override the default target model.	target_cpu_default=	# Set this to force use of install.sh.	broken_install=	# Set this to control which fixincludes program to use.	fixincludes=fixincludes	case $machine in	# Support site-specific machine types.	*local*)		cpu_type=$machine		xm_file=xm-$machine.h		tm_file=$machine.h		if [ -f $srcdir/config/x-$machine ] ; \		then xmake_file=x-$machine; \		else true; \		fi		if [ -f $srcdir/config/t-$machine ] ; \		then tmake_file=t-$machine; \		else true; \		fi		;;	vax-*-bsd*)			# vaxen running BSD		tm_file=vax.h		use_collect2=yes		;;	vax-*-ultrix*)			# vaxen running ultrix		tm_file=ultrix.h		use_collect2=yes		;;	vax-*-vms*)			# vaxen running VMS		xm_file=xm-vax-vms.h		tm_file=vax-vms.h		;;	vax-*-sysv*)			# vaxen running system V		xm_file=xm-vaxv.h		tm_file=vaxv.h		;;# This hasn't been upgraded to GCC 2.#	tahoe-harris-*)			# Harris tahoe, using COFF.#		tm_file=harris.h#		;;#	tahoe-*-bsd*)			# tahoe running BSD#		xm_file=xm-tahoe.h#		tm_file=tahoe.h#		;;	i[34]86-*-osfrose*)		# 386 using OSF/rose		tm_file=i386rose.h		xmake_file=x-i386rose		tmake_file=t-i386rose		use_collect2=yes		;;	i[34]86-sequent-bsd*) 		# 80386 from Sequent		xm_file=xm-i386.h		use_collect2=yes		if [ x$gas = xyes ]		then			tm_file=seq386gas.h		else			tm_file=seq386.h		fi		;;	i[34]86-*-bsd*)		xm_file=xm-i386.h		tm_file=i386bsd.h#		tmake_file=t-libc-ok		use_collect2=yes		;;	i[34]86-*-mach*)		xm_file=xm-i386.h		tm_file=i386mach.h#		tmake_file=t-libc-ok		use_collect2=yes		;;	i[34]86-*-sco3.2v4*)	 	# 80386 running SCO 3.2v4 system		xm_file=xm-i386sco.h		tm_file=i386sco4.h		xmake_file=x-i386s4		tmake_file=t-i386sco		fixincludes=fixinc.sco		broken_install=yes		;;	i[34]86-*-sco*)		 	# 80386 running SCO system		xm_file=xm-i386sco.h		tm_file=i386sco.h		xmake_file=x-i386sco		tmake_file=t-i386sco		broken_install=yes		;;	i[34]86-*-isc*)			# 80386 running ISC system		xm_file=xm-i386isc.h		xmake_file=x-i386isc                if [ x$gas = xyes ]		then			tm_file=i386iscgas.h			tmake_file=t-i386iscgas		else			tm_file=i386isc.h			tmake_file=t-i386isc		fi		broken_install=yes		;;	i[34]86-ibm-aix*)		# IBM PS/2 running AIX                if [ x$gas = xyes ]		then			tm_file=aix386.h		else			tm_file=aix386ng.h			use_collect2=yes		fi		xm_file=xm-aix386.h		xmake_file=x-aix386		broken_install=yes		;;	i386-sun-sunos*)		# Sun i386 roadrunner		xm_file=xm-sun386.h		tm_file=i386sun.h		use_collect2=yes		;;	i[34]86-*-linux*)               # Intel 80386's running Linux		cpu_type=i386		xm_file=xm-linux.h		xmake_file=x-linux		tm_file=i386linux.h		broken_install=yes		;;	i486-ncr-sysv4*)		# NCR 3000 - i486 running system V.4		cpu_type=i386		xm_file=xm-i38v4.h		xmake_file=x-ncr3000		tm_file=i386v4.h		tmake_file=t-svr4		;;	i[34]86-*-sysv4*)		# Intel 80386's running system V.4		cpu_type=i386		xm_file=xm-i38v4.h		tm_file=i386v4.h		tmake_file=t-svr4		xmake_file=x-svr4		;;	i[34]86-*-sysv*)		# Intel 80386's running system V		xm_file=xm-i386v.h		xmake_file=x-i386v		tmake_file=t-svr3		if [ x$gas = xyes ]		then			if [ x$stabs = xyes ]			then				tm_file=i386gstabs.h			else				tm_file=i386gas.h			fi		else			tm_file=i386v.h		fi		;;	i860-*-mach*)		xm_file=xm-i860.h		tm_file=i860mach.h		tmake_file=t-libc-ok		;;	i860-*-sysv3*)		xm_file=xm-i86v3.h		xmake_file=x-i860v3		tm_file=i860v3.h		tmake_file=t-svr3		;;	i860-*-sysv4*)		xm_file=xm-i86v4.h		xmake_file=x-i860v4		tm_file=i860v4.h		tmake_file=t-svr4		;;	i860-alliant-*)		# Alliant FX/2800		xm_file=xm-fx2800.h		xmake_file=x-fx2800		tm_file=fx2800.h		tmake_file=t-fx2800		;;	i860-*-bsd*)		if [ x$gas = xyes ]		then			tm_file=i860bg.h		else			tm_file=i860b.h		fi		use_collect2=yes		;;	sparc-tti-*)		tm_file=pbd.h		xm_file=xm-pbd.h		use_collect2=yes		;;	elxsi-elxsi-*)		tm_file=elxsi.h		xm_file=xm-elxsi.h		use_collect2=yes		;;	sparc-*-sunos4*)		tm_file=sparc.h		use_collect2=yes		;;	sparc-*-sunos3*)		tm_file=sun4o3.h		use_collect2=yes		;;	sparc-*-sysv4*)		xm_file=xm-spcv4.h		tm_file=sparcv4.h		tmake_file=t-svr4		xmake_file=x-sparcv4		;;	sparc-*-solaris2* | sparc-*-sunos5*)		xm_file=xm-spc-sol2.h		tm_file=spc-sol2.h		tmake_file=t-sol2		xmake_file=x-sparcv4		fixincludes=fixinc.svr4		broken_install=yes		;;	m68k-cbm-sysv4*)		# Commodore variant of V.4.		tm_file=amix.h		xm_file=xm-amix.h		xmake_file=x-amix		tmake_file=t-svr4		header_files=math-68881.h		;;	m68k-*-sysv4*)			# Motorola m68k's running system V.4		tm_file=m68kv4.h		xm_file=xm-m68kv.h		tmake_file=t-svr4		header_files=math-68881.h		;;	m68k-bull-sysv*)		# Bull DPX/2		if [ x$gas = xyes ]		then			tm_file=dpx2g.h		else			echo dpx2 supported only with GAS 1>&2			exit 1			tm_file=dpx2.h		fi		xm_file=xm-m68kv.h		xmake_file=x-dpx2		use_collect2=yes		header_files=math-68881.h		;;	m68k-next-*)		tm_file=next.h		out_file=next.c		xm_file=xm-next.h		tmake_file=t-next		xmake_file=x-next		use_collect2=yes		header_files=math-68881.h		;;	m68k-sun-sunos3*)		if [ x$nfp = xyes ]		then			tm_file=sun3n3.h		else			tm_file=sun3o3.h		fi		use_collect2=yes		header_files=math-68881.h		;;	m68k-sun-sunos*)		# For SunOS 4 (the default).		if [ x$nfp = xyes ]		then			tm_file=sun3n.h		else			tm_file=sun3.h		fi		use_collect2=yes		header_files=math-68881.h		;;	m68k-sun-mach*)		tm_file=sun3mach.h		use_collect2=yes		header_files=math-68881.h		;;	m68k-tti-*)		tm_file=pbb.h		xm_file=xm-m68kv.h		use_collect2=yes		header_files=math-68881.h		;;	m68k-hp-hpux*)	# HP 9000 series 300		xm_file=xm-hp320.h		if [ x$gas = xyes ]		then			xmake_file=x-hp320g			tmake_file=t-hp320g			tm_file=hp320g.h		else			xmake_file=x-hp320			tm_file=hp320.h		fi		broken_install=yes		use_collect2=yes		header_files=math-68881.h		;;	m68k-hp-bsd*)			# HP 9000/3xx running Berkeley Unix		tm_file=hp3bsd.h		use_collect2=yes		header_files=math-68881.h		;;	m68k-omron-bsd*)		# OMRON LUNA-I/LUNA-II running Berkeley Unix		tm_file=luna68k.h		use_collect2=yes#		header_files=math-68881.h		;;	m68k-isi-bsd*)		if [ x$nfp = xyes ]		then			tm_file=isi-nfp.h		else			tm_file=isi.h		fi		use_collect2=yes		header_files=math-68881.h		;;	m68k-sony-newsos3*)	        xm_file=xm-m68k.h		if [ x$gas = xyes ]		then			tm_file=news3gas.h		else			tm_file=news3.h		fi		use_collect2=yes		header_files=math-68881.h		;;	m68k-sony-bsd* | m68k-sony-newsos*)	        xm_file=xm-m68k.h		if [ x$gas = xyes ]		then			tm_file=newsgas.h		else			tm_file=news.h		fi		use_collect2=yes		header_files=math-68881.h		;;	m68k-altos-sysv*)		   # Altos 3068		if [ x$gas = xyes ]		then		        xm_file=xm-altos3068.h		        tm_file=altos3068.h		else			echo "The Altos is supported only with the GNU assembler" 1>&2			exit 1		fi		header_files=math-68881.h	        ;;	m68k-motorola-sysv*)		tm_file=mot3300.h		xm_file=xm-mot3300.h		use_collect2=yes		header_files=math-68881.h		;;	m68k-crds-unos*)		xm_file=xm-crds.h		xmake_file=x-crds		tm_file=crds.h		broken_install=yes		use_collect2=yes		header_files=math-68881.h		;;	m68k-apollo-*)		xmake_file=x-apollo68		tm_file=apollo68.h		use_collect2=yes		header_files=math-68881.h		;;        m68k-plexus-sysv*)	        cpu_type=m68k		tm_file=plexus.h		use_collect2=yes		xm_file=xm-plexus.h		header_files=math-68881.h		;;	m68k-ncr-sysv*)			# NCR Tower 32 SVR3		tm_file=tower-as.h		xm_file=xm-tower.h		xmake_file=x-tower		tmake_file=t-svr3		header_files=math-68881.h		;;	m68k-*-sysv3*)			# Motorola m68k's running system V.3		tm_file=m68k.h		xm_file=xm-m68kv.h		xmake_file=x-m68kv		tmake_file=t-svr3		header_files=math-68881.h		;;	m68000-sun-sunos3*)		cpu_type=m68k		tm_file=sun2.h		use_collect2=yes		header_files=math-68881.h		;;	m68000-sun-sunos4*)		cpu_type=m68k		tm_file=sun2o4.h		use_collect2=yes		header_files=math-68881.h		;;	m68000-hp-hpux*)		# HP 9000 series 300		cpu_type=m68k		xm_file=xm-hp320.h		if [ x$gas = xyes ]		then			xmake_file=x-hp320g

⌨️ 快捷键说明

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