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

📄 configure

📁 早期freebsd实现
💻
📖 第 1 页 / 共 3 页
字号:
	    exit 1	fi	case "\$1" in	*/*)	    echo \$dir/\`$expr x\$1 : '..[^/]*/\(.*\)'\`	    ;;	*)	    echo \$dir	    ;;	esac    fi    ;;*)    echo \$1    ;;esacEOSSchmod +x filexp$eunicefix filexp: determine where public executables gocase "$bin" in'')    dflt=`loc . /bin /usr/local/bin /usr/lbin /usr/local /usr/bin`    ;;*)  dflt="$bin"    ;;esaccont=truewhile $test "$cont" ; do    echo " "    rp="Where do you want to put the public executables? [$dflt]"    $echo $n "$rp $c"    . myread    bin="$ans"    bin=`filexp $bin`    if test -d $bin; then	cont=''    else	dflt=n	rp="Directory $bin doesn't exist.  Use that name anyway? [$dflt]"	$echo $n "$rp $c"	. myread	dflt=''	case "$ans" in	y*) cont='';;	esac    fidone: determine where manual pages gocase "$mansrc" in'')    dflt=`loc . /usr/man/man1 /usr/local/man/man1 /usr/man/mann /usr/man/local/man1 /usr/man/u_man/man1`    ;;*)  dflt="$mansrc"    ;;esaccont=truewhile $test "$cont" ; do    echo " "    rp="Where do the manual pages (source) go? [$dflt]"    $echo $n "$rp $c"    . myread    mansrc=`filexp "$ans"`    if test -d $mansrc; then	cont=''    else	dflt=n	rp="Directory $mansrc doesn't exist.  Use that name anyway? [$dflt]"	$echo $n "$rp $c"	. myread	dflt=''	case "$ans" in	y*) cont='';;	esac    fidonecase "$mansrc" in*l)    manext=l    ;;*n)    manext=n    ;;*C)    manext=C    ;;*)    manext=1    ;;esac: see what memory models we can supportcase "$models" in'')    if Cppsym pdp11; then	dflt='unsplit split'    else	ans=`loc . X /lib/small /lib/large /usr/lib/small /usr/lib/large /lib/medium /usr/lib/medium /lib/huge`	case "$ans" in	X) dflt='none';;	*)  if $test -d /lib/small || $test -d /usr/lib/small; then		dflt='small'	    else		dflt=''	    fi	    if $test -d /lib/medium || $test -d /usr/lib/medium; then		dflt="$dflt medium"	    fi	    if $test -d /lib/large || $test -d /usr/lib/large; then		dflt="$dflt large"	    fi	    if $test -d /lib/huge || $test -d /usr/lib/huge; then		dflt="$dflt huge"	    fi	esac    fi    ;;*)  dflt="$models" ;;esac$cat <<EOM Some systems have different model sizes.  On most systems they are calledsmall, medium, large, and huge.  On the PDP11 they are called unsplit andsplit.  If your system doesn't support different memory models, say "none".If you wish to force everything to one memory model, say "none" here andput the appropriate flags later when it asks you for other cc and ld flags.Venix systems may wish to put "none" and let the compiler figure things out.(In the following question multiple model names should be space separated.)EOMrp="Which models are supported? [$dflt]"$echo $n "$rp $c". myreadmodels="$ans"case "$models" innone)    small=''    medium=''    large=''    huge=''    unsplit=''    split=''    ;;*split)    case "$split" in    '') 	if $contains '-i' $mansrc/ld.1 >/dev/null 2>&1 || \	   $contains '-i' $mansrc/cc.1 >/dev/null 2>&1; then	    dflt='-i'	else	    dflt='none'	fi	;;    *) dflt="$split";;    esac    rp="What flag indicates separate I and D space? [$dflt]"    $echo $n "$rp $c"    . myread    case "$ans" in    none) ans='';;    esac    split="$ans"    unsplit=''    ;;*large*|*small*|*medium*|*huge*)    case "$model" in    *large*)	case "$large" in	'') dflt='-Ml';;	*) dflt="$large";;	esac	rp="What flag indicates large model? [$dflt]"	$echo $n "$rp $c"	. myread	case "$ans" in	none) ans='';	esac	large="$ans"	;;    *) large='';;    esac    case "$model" in    *huge*)	case "$huge" in	'') dflt='-Mh';;	*) dflt="$huge";;	esac	rp="What flag indicates huge model? [$dflt]"	$echo $n "$rp $c"	. myread	case "$ans" in	none) ans='';	esac	huge="$ans"	;;    *) huge="$large";;    esac    case "$model" in    *medium*)	case "$medium" in	'') dflt='-Mm';;	*) dflt="$medium";;	esac	rp="What flag indicates medium model? [$dflt]"	$echo $n "$rp $c"	. myread	case "$ans" in	none) ans='';	esac	medium="$ans"	;;    *) medium="$large";;    esac    case "$model" in    *small*)	case "$small" in	'') dflt='none';;	*) dflt="$small";;	esac	rp="What flag indicates small model? [$dflt]"	$echo $n "$rp $c"	. myread	case "$ans" in	none) ans='';	esac	small="$ans"	;;    *) small='';;    esac    ;;*)    echo "Unrecognized memory models--you may have to edit Makefile.SH"    ;;esaccase "$ccflags" in'') dflt='none';;*) dflt="$ccflags";;esacecho " "rp="Any additional cc flags? [$dflt]"$echo $n "$rp $c". myreadcase "$ans" innone) ans='';esacccflags="$ans"case "$ldflags" in'') if venix; then	dflt='-i -z'    elif xenix; then	if test -f /usr/include/dirent.h; then	    dflt='-ldir -lx'	else	    dflt='-lx'	fi    else	dflt='none'    fi    ;;*) dflt="$ldflags";;esacecho " "rp="Any additional ld flags? [$dflt]"$echo $n "$rp $c". myreadcase "$ans" innone) ans='';esacldflags="$ans": see if we need a special compilerecho " "if usg; then    case "$cc" in    '')	case "$Mcc" in	/*) dflt='Mcc'	    ;;	*)	    case "$large" in	    -M*)		dflt='cc'		;;	    *)		if $contains '\-M' $mansrc/cc.1 >/dev/null 2>&1 ; then		    dflt='cc -M'		else		    dflt='cc'		fi		;;	    esac	    ;;	esac	;;    *)  dflt="$cc";;    esac    $cat <<'EOM' On some systems the default C compiler will not resolve multiple globalreferences that happen to have the same name.  On some such systems the"Mcc" command may be used to force these to be resolved.  On other systemsa "cc -M" command is required.  (Note that the -M flag on other systemsindicates a memory model to use!)  What command will force resolution onEOM    $echo $n "this system? [$dflt] $c"    rp="Command to resolve multiple refs? [$dflt]"    . myread    cc="$ans"else    echo "Not a USG system--assuming cc can resolve multiple definitions."    cc=ccfiecho " "echo "End of configuration questions."echo " ": create config.sh fileecho " "if test -d ../UU; then    cd ..fiecho "Creating config.sh..."$spitshell <<EOT >config.sh$startsh# config.sh# This file was produced by running the Configure script.d_eunice='$d_eunice'eunicefix='$eunicefix'define='$define'loclist='$loclist'expr='$expr'sed='$sed'echo='$echo'cat='$cat'rm='$rm'mv='$mv'cp='$cp'tail='$tail'tr='$tr'mkdir='$mkdir'sort='$sort'uniq='$uniq'grep='$grep'trylist='$trylist'test='$test'inews='$inews'egrep='$egrep'more='$more'pg='$pg'Mcc='$Mcc'vi='$vi'mailx='$mailx'mail='$mail'cpp='$cpp'Log='$Log'Header='$Header'bin='$bin'cc='$cc'contains='$contains'cppstdin='$cppstdin'cppminus='$cppminus'd_charsprf='$d_charsprf'd_flexfnam='$d_flexfnam'd_index='$d_index'd_voidsig='$d_voidsig'd_dirheader='$d_dirheader'd_unistd='$d_unistd'libc='$libc'mansrc='$mansrc'manext='$manext'models='$models'split='$split'small='$small'medium='$medium'large='$large'huge='$huge'ccflags='$ccflags'ldflags='$ldflags'n='$n'c='$c'package='$package'registers='$registers'reg1='$reg1'reg2='$reg2'reg3='$reg3'reg4='$reg4'reg5='$reg5'reg6='$reg6'reg7='$reg7'reg8='$reg8'reg9='$reg9'reg10='$reg10'reg11='$reg11'reg12='$reg12'reg13='$reg13'reg14='$reg14'reg15='$reg15'reg16='$reg16'spitshell='$spitshell'shsharp='$shsharp'sharpbang='$sharpbang'startsh='$startsh'voidflags='$voidflags'defvoidused='$defvoidused'CONFIG=trueEOTCONFIG=trueecho " "dflt=''fastread=''echo "If you didn't make any mistakes, then just type a carriage return here."rp="If you need to edit config.sh, do it as a shell escape here:"$echo $n "$rp $c". UU/myreadcase "$ans" in'') ;;*) : in case they cannot read    eval $ans;;esac. ./config.shecho " "echo "Doing variable substitutions on .SH files..."set x `awk '{print $1}' <MANIFEST | $grep '\.SH'`shiftcase $# in0) set x *.SH; shift;;esacif test ! -f $1; then    shiftfifor file in $*; do    case "$file" in    */*)	dir=`$expr X$file : 'X\(.*\)/'`	file=`$expr X$file : 'X.*/\(.*\)'`	(cd $dir && . $file)	;;    *)	. $file	;;    esacdoneif test -f config.h.SH; then    if test ! -f config.h; then	: oops, they left it out of MANIFEST, probably, so do it anyway.	. config.h.SH    fifiif $contains '^depend:' Makefile >/dev/null 2>&1; then    dflt=n    $cat <<EOMNow you need to generate make dependencies by running "make depend".You might prefer to run it in background: "make depend > makedepend.out &"It can take a while, so you might not want to run it right now.EOM    rp="Run make depend now? [$dflt]"    $echo $n "$rp $c"    . UU/myread    case "$ans" in    y*) make depend	echo "Now you must run a make."	;;    *)  echo "You must run 'make depend' then 'make'."	;;    esacelif test -f Makefile; then    echo " "    echo "Now you must run a make."else    echo "Done."fi$rm -f kit*isdone: the following is currently uselesscd UU && $rm -f $rmlist: since this removes it all anywaycd .. && $rm -rf UU: end of Configure

⌨️ 快捷键说明

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