📄 configure
字号:
#! /bin/sh# Guess values for system-dependent variables and create Makefiles.# Generated automatically using autoconf.# Copyright (C) 1991, 1992, 1993 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, 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., 675 Mass Ave, Cambridge, MA 02139, USA.progname="`echo $0 | sed 's:^\./\./:\./:'`"print_error() { echo "*# $*" 2>&1 ; }print_usage () {cat <<.Usage: ${progname} [-arch=ARCH_TYPE] [-prefix=INSTALL_DIR] [-cc=C_COMPILER] [-opt=OPTFLAGS] [-make=MAKEPGM]where ARCH_TYPE = the type of machine that wrappergen is to be configured for INSTALL_DIR = directory where wrappergen will be installed (optional) OPTFLAGS = optimization flags to give the compilers (e.g. -g) MAKEPGM = version of make to use One and only one 'arch', and 'prefix' argument should be provided.The option '-opt' allows you to specify options for the C compilerFor example, '-opt=-O' chooses optimized code generation on manysystems.The option -make may be used to select an alternate make program. Forexample, on FreeBSD systems, -make=gnumake may be required because of bugs inthe system make.Sample Configure Usage:To make for running on sun4's running SunOS and with the installation directory equal to the current directory: ./configure -arch=sun4 make Known architectures include sun4 (SUN OS 4.x) solaris (Solaris; probably 2.x) hpux (HP UX) rs6000 (AIX for IBM RS6000) sgi (Silicon Graphics IRIX 5.x or 6.x) IRIX (synonym for sgi) meiko (Meiko CS2) CRAY (CRAY XMP, YMP, C90) Others may be recognized..}# End of print_usage.ARCH=""LIB_PATH=""OPTFLAGS="-g"CFLAGS=""MAKE=makePREFIX=""DEVCFLAGS=""MYPWD=`pwd`## Specific options#CONFIGURE_ARGS="$*"echo "Configuring with args $CONFIGURE_ARGS"#for argdo # Handle --exec-prefix with a space before the argument. if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix= # Handle --host with a space before the argument. elif test x$next_host = xyes; then next_host= # Handle --prefix with a space before the argument. elif test x$next_prefix = xyes; then prefix=$arg; next_prefix= # Handle --srcdir with a space before the argument. elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir= else case $arg in # For backward compatibility, also recognize exact --exec_prefix. -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/[-a-z_]*=//'` ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e) next_exec_prefix=yes ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) PREFIX=`echo $arg | sed 's/[-a-z_]*=//'` ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) next_prefix=yes ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*) srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s) next_srcdir=yes ;; -arch=* | --arch=*) package=`echo $arg|sed 's/-*arch=//'` # Delete all the valid chars; see if any are left. if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then echo "configure: $package: invalid architecture name" >&2; exit 1 fi ARCH=`echo $package|sed s/-/_/g` eval "arch_`echo $package|sed s/-/_/g`=1" ;; -cc=* | --cc=*) CC=`echo $arg|sed 's/-*cc=//'` USERCC=1 ;; -pwd=* | --pwd=*) MYPWD="`echo $arg|sed 's/-*pwd=//'`" ;; -opt=* | --opt=*) package="`echo $arg|sed 's/-*opt=//'`" # Delete all the valid chars; see if any are left. OPTFLAGS=$package ;; -make=* | --make=*) package=`echo $arg|sed 's/-*make=//'` MAKE="$package" ;; -debug ) DEBUGFLAG="-DDEBUG" ;; -echo ) set -x ;; -u | -usage | --usage | --usag | --usa | --us | --u | -help ) print_usage >&2 exit 1 ;; -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v) verbose=yes ;; *) ;; esac fidonetrap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15trap 'rm -f confdefs*' 0# NLS nuisances.# These must not be set unconditionally because not all systems understand# e.g. LANG=C (notably SCO).if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fiif test "${LANG+set}" = 'set' ; then LANG=C; export LANG; firm -f conftest* confdefs.h# AIX cpp loses on an empty file, so make sure it contains at least a newline.echo > confdefs.hcompile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'# A filename unique to this package, relative to the directory that# configure is in, which we can look for to find out if srcdir is correct.unique_file=# Find the source files, if location was not specified.if test -z "$srcdir"; then srcdirdefaulted=yes # Try the directory containing this script, then `..'. prog=$0 confdir=`echo $prog|sed 's%/[^/][^/]*$%%'` test "X$confdir" = "X$prog" && confdir=. srcdir=$confdir if test ! -r $srcdir/$unique_file; then srcdir=.. fifiif test ! -r $srcdir/$unique_file; then if test x$srcdirdefaulted = xyes; then echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2 else echo "configure: Can not find sources in \`${srcdir}'." 1>&2 fi exit 1fi# Preserve a srcdir of `.' to avoid automounter screwups with pwd.# But we can't avoid them for `..', to make subdirectories work.case $srcdir in .|/*|~*) ;; *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.esac# Save the original args to write them into config.status later.configure_args="$*"## record top-level directory (this one)if test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c='' ac_t=' ' else ac_n=-n ac_c= ac_t= fielse ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then print_error "Your sh shell does not handle the output redirection" print_error "1>&1 correctly. Configure will work around this problem," print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking for current directory name""... $ac_c"elseecho $ac_n "checking for current directory name""... $ac_c" 1>&1fiWG_TRIAL=$PWDif test "${WG_TRIAL}" != "" -a -d "${WG_TRIAL}" ; then if test -r ${WG_TRIAL}/.foo$$ ; then /bin/rm -f ${WG_TRIAL}/.foo$$ /bin/rm -f .foo$$ fi if test -r ${WG_TRIAL}/.foo$$ -o -r .foo$$ ; then WG_TRIAL= else echo "test" > ${WG_TRIAL}/.foo$$ if test ! -r .foo$$ ; then /bin/rm -f ${WG_TRIAL}/.foo$$ WG_TRIAL= else /bin/rm -f ${WG_TRIAL}/.foo$$ fi fifiif test "${WG_TRIAL}" = "" ; then WG_TRIAL=`pwd | sed -e 's%/tmp_mnt/%/%g'`fiif test ! -r ${WG_TRIAL}/readproto.c ; then WG_TRIAL=`pwd` if test ! -r ${WG_TRIAL}/readproto.c ; then print_error "Cannot determine the root directory!" exit 1 fi WG_TRIAL=`pwd | sed -e 's%/tmp_mnt/%/%g'` if test ! -d ${WG_TRIAL} ; then print_error "Warning: your default path uses the automounter; this may" print_error "cause some problems if you use other NFS-connected systems." WG_TRIAL=`pwd` fifiif test -z "${WG_TRIAL}" ; then WG_TRIAL=`pwd | sed -e 's%/tmp_mnt/%/%g'` if test ! -d ${WG_TRIAL} ; then print_error "Warning: your default path uses the automounter; this may" print_error "cause some problems if you use other NFS-connected systems." WG_TRIAL=`pwd` fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""${WG_TRIAL}"elseecho "$ac_t""${WG_TRIAL}" 1>&1fiWG_HOME=$WG_TRIALcd ../..if test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c='' ac_t=' ' else ac_n=-n ac_c= ac_t= fielse ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then print_error "Your sh shell does not handle the output redirection" print_error "1>&1 correctly. Configure will work around this problem," print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking for current directory name""... $ac_c"elseecho $ac_n "checking for current directory name""... $ac_c" 1>&1fiMPIR_HOME=$PWDif test "${MPIR_HOME}" != "" -a -d "${MPIR_HOME}" ; then if test -r ${MPIR_HOME}/.foo$$ ; then /bin/rm -f ${MPIR_HOME}/.foo$$ /bin/rm -f .foo$$ fi if test -r ${MPIR_HOME}/.foo$$ -o -r .foo$$ ; then MPIR_HOME= else echo "test" > ${MPIR_HOME}/.foo$$ if test ! -r .foo$$ ; then /bin/rm -f ${MPIR_HOME}/.foo$$ MPIR_HOME= else /bin/rm -f ${MPIR_HOME}/.foo$$ fi fifiif test "${MPIR_HOME}" = "" ; then MPIR_HOME=`pwd | sed -e 's%/tmp_mnt/%/%g'`fiif test ! -r ${MPIR_HOME}/src/pt2pt/iprobe.c ; then MPIR_HOME=`pwd` if test ! -r ${MPIR_HOME}/src/pt2pt/iprobe.c ; then print_error "Cannot determine the root directory!" exit 1 fi MPIR_HOME=`pwd | sed -e 's%/tmp_mnt/%/%g'` if test ! -d ${MPIR_HOME} ; then print_error "Warning: your default path uses the automounter; this may" print_error "cause some problems if you use other NFS-connected systems." MPIR_HOME=`pwd` fifiif test -z "${MPIR_HOME}" ; then MPIR_HOME=`pwd | sed -e 's%/tmp_mnt/%/%g'` if test ! -d ${MPIR_HOME} ; then print_error "Warning: your default path uses the automounter; this may" print_error "cause some problems if you use other NFS-connected systems." MPIR_HOME=`pwd` fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""${MPIR_HOME}"elseecho "$ac_t""${MPIR_HOME}" 1>&1ficd $WG_HOME### If the "root" directories haven't been set, set them here using WG_HOME.#CC=${CC:-cc}## First, check for the basic CC and Ranlib if test -z "$USERCC" ; then if test -z "$CC"; then # Extract the first word of `gcc', so it can be a program name with args. set dummy gcc; word=$2 echo checking for $word IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:" for dir in $PATH; do test -z "$dir" && dir=. if test -f $dir/$word; then CC="gcc" break fi done IFS="$saveifs"fitest -z "$CC" && CC="cc"test -n "$CC" && test -n "$verbose" && echo " setting CC to $CC"# Find out if we are using GNU C, under whatever name.cat > conftest.c <<EOF#ifdef __GNUC__ yes#endifEOF${CC-cc} -E conftest.c > conftest.out 2>&1if egrep yes conftest.out >/dev/null 2>&1; then GCC=1 # For later tests.firm -f conftest*fiif test -z "$RANLIB"; then # Extract the first word of `ranlib', so it can be a program name with args. set dummy ranlib; word=$2 echo checking for $word IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:" for dir in $PATH; do test -z "$dir" && dir=. if test -f $dir/$word; then RANLIB="ranlib" break fi done IFS="$saveifs"fitest -z "$RANLIB" && RANLIB=":"test -n "$RANLIB" && test -n "$verbose" && echo " setting RANLIB to $RANLIB"CLINKER=$CCAR="ar clr"INCLUDE_PATH=""## Fixup for makeif test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c='' ac_t=' ' else ac_n=-n ac_c= ac_t= fielse ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then print_error "Your sh shell does not handle the output redirection" print_error "1>&1 correctly. Configure will work around this problem," print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking gnumake""... $ac_c"elseecho $ac_n "checking gnumake""... $ac_c" 1>&1fi/bin/rm -f conftestcat > conftest <<.SHELL=/bin/shALL: @(dir=`pwd` ; cd .. ; \$(MAKE) -f \$\$dir/conftest SUB)SUB: @echo "success".str=`$MAKE -f conftest 2>&1`if test "$str" != "success" ; then str=`$MAKE --no-print-directory -f conftest 2>&1` if test "$str" = "success" ; then MAKE="$MAKE --no-print-directory" if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes using --no-print-directory"elseecho "$ac_t""yes using --no-print-directory" 1>&1fi else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -