📄 configure
字号:
UXPM (UXP/M. Untested.) uxpv (uxp/v. Untested.) Others may be recognized.Special notes:For SGI (--with-arch=IRIX) multiprocessors running the ch_p4 device, use-comm=ch_p4 to disable the use of the shared-memory p4 communicationdevice, and -comm=shared to enable the shared-memory p4 communicationdevice. The default is to enable the shared-memory communication device.EOF}## Special environment variables# MPICH_WARNING_SEP - if set, is echoed around warning messages. This is# used to simplify automated testing where we want to ignore warning messages# Specifically, echo '>'$MPICH_WARNING_SEP preceeds the warning and# echo '<'$MPICH_WARNING_SEP follows it# finderrors and findnosuccess use the same environment variable to # skip output#UseSharedLibs=0NEEDS_CC_SHARED_OPT=1ARCH=""CPP_DIR=""MPE_DIR=""LIB_PATH=""FLIB_PATH=""OPTFLAGS=""OPTFLAGSF=""F90=${F90:-""}f90nag=0f95nag=0NOF77=0NO_F90=0NOMPE=0ENABLE_MPEDBG=""NOCXX=""AR_LOCAL=${AR_LOCAL:-"l"}NO_LONG_DOUBLE="no"NO_LONG_LONG="no"HAS_FORTRAN=1MPILIBNAME=${MPILIBNAME:-"mpich"}do_f90modules="yes"HAVE_MPID_DEFS_H=0#MPI_AINT=longCFLAGS=${CFLAGS:-""}# Set this if we pick features that require gccneeds_gcc=no#Use_Intercomm_coll="no"# Attempt to use weak symbol supportTRY_WEAK_SYMBOLS=1# We use @ because configure uses %AUTOMOUNTFIX=${AUTOMOUNTFIX:-'sed -e s@/tmp_mnt/@/@g'}## By not setting FFLAGS, we get the values from the environment# Most of these should come from the environment if setMAKE=${MAKE:-"make"}P4_MDEPCFLAGS=""ASMFILES_O=""PREFIX=""MPE_OPTS=""P4_OPTS=""DEVCFLAGS=""CONFIGURE_ARGS="$*"DEFAULT_MACHINE=''DEVICE_KIND=MPPrshcommand=${RSHCOMMAND}## Some autoconf tests check for cross_compiling being empty, rather than# having a value of 0 or 1 (or no or yes).cross_compiling=""cross_file=""debug_version=0#FILE_SYSTEM=""ROMIO=1ROMIO_CFLAGS=""ROMIO_FFLAGS=""ROMIO_LFLAGS=""ROMIO_TCFLAGS=""ROMIO_TCPPFLAGS=""ROMIO_TFFLAGS=""usesysv=0## -mpedbg#MPE_MPI_EXT_C="$MPE_MPI_EXT_C dbxerr.c mpehname.c"#MPE_MPI_EXT_O="$MPE_MPI_EXT_O dbxerr.o mpehname.o"# dbxerr.c support has become too difficult to make part of the basic# system (both because it is in MPE, which is now separately built and # configured after MPICH, and because of diverging (even for a single vendor)# command syntax for the debuggers. Add dbxdee.c/.o when we have a better# solution.MPE_MPI_EXT_C="$MPE_MPI_EXT_C mpehname.c"MPE_MPI_EXT_O="$MPE_MPI_EXT_O mpehname.o"## --with-collMPI_INTRA=intra_fns_new# -devdebugDEVDEBUGCFLAGS="-DMPID_DEBUG_NONE -DMPID_STAT_NONE"# -dlastDLAST=""# Tracebacktry_traceback=no## This next variable is a version without quotes.# We could also consider `echo $a | sed -e 's/"/\\"/g'`CONFIGURE_ARGS_CLEAN=`echo $* | tr '"' ' '`if test -n "$CONFIGURE_ARGS" ; then echo "Configuring with args $CONFIGURE_ARGS"fi## Test for C++ support# We can only set this if there is a C++ compiler....buildcpp=0# if test -s include/patchlevel.h ; then tmpsrcdir=.else # try to determine the source dir tmpsrcdir=`echo $0 | sed -e 's%/configure%%' -e "s%^~/%$HOME/%"` if test ! -s "$tmpsrcdir/include/patchlevel.h" ; then tmpsrcdir="" fifiif test -n "$tmpsrcdir" ; then MPIVERSION=`grep 'PATCHLEVEL ' $tmpsrcdir/include/patchlevel.h | awk '{print $3}'` # Make sure to remove quotes... mvk=`grep 'PATCHLEVEL_RELEASE_KIND' $tmpsrcdir/include/patchlevel.h | awk '{print $3}' | \ sed -e 's/"//g'` mv1=`grep 'PATCHLEVEL_SUBMINOR' $tmpsrcdir/include/patchlevel.h | awk '{print $3}'` mvtime=`grep 'Date:' $tmpsrcdir/include/patchlevel.h | sed -e 's/^.*$Date\(.*\)\$".*$/\1/g'` if test -n "$mvk" ; then MPIVERSION="$MPIVERSION.$mv1 ($mvk) of $mvtime" else MPIVERSION="$MPIVERSION.$mv1 of $mvtime" fi echo "Configuring MPICH Version $MPIVERSION"fi## IS_HETERO is set if the device supports heterogeneous machines.# This requires additional coding, including checking for XDRIS_HETERO=0for 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 # Code from autoconf 2 to get any option after an = case "$arg" in -*=*) ac_optarg=`echo "$arg" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) ac_optarg= ;; esac 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 ;; -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 ;; -datadir=* | --datadir=* ) datadir=`echo $arg | sed 's/[-a-z_]*=//'` ;; -libdir=* | --libdir=* ) libdir=`echo $arg | sed 's/[-a-z_]*=//'` ;; -bindir=* | --bindir=* ) bindir=`echo $arg | sed 's/[-a-z_]*=//'` ;; -sbindir=* | --sbindir=* ) sbindir=`echo $arg | sed 's/[-a-z_]*=//'` ;; -mandir=* | --mandir=* ) mandir=`echo A$arg | sed 's/A[-a-z_]*=//'` ;; -docdir=* | --docdir=* ) docdir=`echo A$arg | sed 's/A[-a-z_]*=//'` ;; -wwwdir=* | --wwwdir=* ) htmldir=`echo A$arg | sed 's/A[-a-z_]*=//'` ;; -htmldir=* | --htmldir=* ) htmldir=`echo A$arg | sed 's/A[-a-z_]*=//'` ;; -includedir=* | --includedir=* ) includedir=`echo $arg | sed 's/[-a-z_]*=//'` ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir="$ac_optarg" ;;## Here begin the MPICH options -arch=* | --arch=* | -with-arch=* | --with-arch=*) check_dep $arg "--with-arch=name" 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 print_error "configure: $package: invalid architecture name"; exit 1 fi # Extract arch-specific args ARCH=`echo $package | sed 's/:.*//g'` arch_args=`echo $package | sed 's/[^:]*://g'` if test "$arch_args" = "$package" ; then arch_args='' ; fi eval "arch_`echo $ARCH|sed s/-/_/g`=1" ;; -comm=* | --comm=* | --with-comm=* | -with-comm=*) check_dep $arg "--with-comm=type" package=`echo $arg|sed 's/-*[^=]*comm=//'` # Delete all the valid chars; see if any are left. if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then print_error "configure: $package: invalid communications layer name"; exit 1 fi COMM=`echo $package|sed s/-/_/g` eval "comm_`echo $package|sed s/-/_/g`=1" ;; -device=* | --device=* | --with-device=* | -with-device=*) check_dep $arg "--with-device=name" package=`echo $arg|sed 's/^-*[^=]*device[=]*//'` # Delete all the valid chars; see if any are left. # Extract device-specific args DEVICE=`echo $package | sed 's/:.*//g'` device_args=`echo $package | sed 's/[^:]*://'` if test "$device_args" = "$package" ; then device_args='' else # replace : with space device_args="`echo A$device_args | sed -e 's/^A//g' -e 's/:/ /g'`" fi #DEVICE=$package #|sed s/-/_/g` # Can't have - in variable names package=`echo $DEVICE | sed s/-/_/g` if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then print_error "configure: $package: invalid device name" ; exit 1 fi eval "device_$package=1" # Handle possible synonyms if test -n "$device_ch_eui"; then device_ch_mpl=1 DEVICE=ch_mpl fi ;; -mpedbg | --mpedbg | --enable-mpedbg | -enable-mpedbg) check_dep $arg "--enable-mpedbg" # Definitions of DEFS must follow the PREPARE MPE_MPI_EXT_C="$MPE_MPI_EXT_C dbxerr.c mpehname.c" MPE_MPI_EXT_O="$MPE_MPI_EXT_O dbxerr.o mpehname.o" ENABLE_MPEDBG="--enable-mpedbg" ;; -nompedbg | --nompedbg | --disable-mpedbg | -disable-mpedbg) check_dep $arg "--disable-mpedbg" # Definitions of DEFS must follow the PREPARE MPE_MPI_EXT_C="" MPE_MPI_EXT_O="" ;; -sharedlib* | --sharedlib* | --enable-sharedlib* | -enable-sharedlib*) check_dep $arg "--enable-sharedlib" # Try to build shared libraries sharedlib_dir=`echo A$arg|sed -e 's/A-.*sharedlib=//g'` if test "$sharedlib_dir" = "A$arg" ; then sharedlib_dir="" ; fi if test -z "$sharedlib_dir" ; then enable_args="$enable_args --enable-sharedlib --enable-shared" fi UseSharedLibs=1 ;; -nosharedlib | --nosharedlib | --disable-sharedlib | -disable-sharedlib) check_dep $arg "--disable-sharedlib" # Done't use shared libraries UseSharedLibs=0 enable_args="$enable_args --disable-shared --disable-sharedlib" ;; --enable-strict|-enable-strict|-strict) check_dep $arg "--enable-strict" # Setup for gcc strict checking # To get -Wuninitialized, we need -O # The definition of GCC_WALL allows us to conditionally change the # code when gcc generates a spurious error message, particularly # for uninitialized data. # -wshadow? CFLAGS="$CFLAGS -O -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wundef -Wpointer-arith -Wbad-function-cast -DGCC_WALL" USER_CFLAGS="$USER_CFLAGS -O -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wundef -Wpointer-arith -Wbad-function-casti -DGCC_WALL" ROMIO_CFLAGS="$ROMIO_CFLAGS -O -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wundef -Wpointer-arith -Wbad-function-cast -DGCC_WALL" needs_gcc=yes if test -z "$CC" ; then CC=gcc USERCC=1 fi COPTIONS="$COPTIONS -O -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -DGCC_WALL" export COPTIONS enable_args="$enable_args $arg" enable_strict="yes" ;; --enable-coverage|-enable-coverage) CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" ;; --enable-weak-symbols|-enable-weak-symbols) check_dep $arg "--enable-weak-symbols" TRY_WEAK_SYMBOLS=1 enable_args="$enable_args $arg" ;; --disable-weak-symbols|-disable-weak-symbols) check_dep $arg "--disable-weak-symbols" TRY_WEAK_SYMBOLS=0 ROMIO_ARGS="$ROMIO_ARGS --disable-weak-symbols" enable_args="$enable_args $arg" ;; -disable-gencat | --disable-gencat) ignore_gencat="yes" ;; -ar_nolocal | --ar_nolocal) print_useenv $arg "AR_LOCAL=''" AR_LOCAL='' ;; -noranlib | -no_ranlib) print_useenv $arg "RANLIB=':'" RANLIB=':' ;;# which device(s) - ch_shmem etc (device_args)#dnl -usesysv)#dnl usesysv=1#dnl ;;# end of ch_shmem /ch_lfshmem device# This is a p4 option. It should be an env variable or a #--with-device=ch_p4:-listenersig=SIGUSR2 -listenersig=*) check_dep $arg "--with-device=ch_p4:-listenersig=name" listener_sig=`echo A$arg|sed -e 's/A-listenersig=//g'` ;; -listener_sig=*) check_dep $arg "--with-device=ch_p4:-listenersig=name" listener_sig=`echo A$arg|sed -e 's/A-listener_sig=//g'` ;; -dlast | --dlast | --enable-dlast | -enable-dlast ) check_dep $arg "--enable-dlast" DLAST="-dlast" ;; -p4_opts=* | --p4_opts=*)# Not yet - we don't have a good way to pass args to the p4 configure# echo "This option is deprecated. Please use"# echo "--with-device=ch_p4:<options to pass p4 configure>"# echo "instead." package="`echo $arg | sed 's/-*p4_opts=//'`" if test -z "$P4_OPTS" ; then P4_OPTS="$package" else P4_OPTS="$P4_OPTS $package" fi ;; ## end of ch_p4 device -nodevdebug | --nodevdebug | -disable-devdebug | --disable-devdebug) check_dep $arg "--disable-devdebug" NODEVDEBUG=1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -