📄 configure
字号:
esacdoneif test -n "$ac_prev"; then { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }fitrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15# File descriptor usage:# 0 standard input# 1 file creation# 2 errors and warnings# 3 some systems may open it to /dev/tty# 4 used on the Kubota Titan# 6 checking for... messages and results# 5 compiler messages saved in config.logif test "$silent" = yes; then exec 6>/dev/nullelse exec 6>&1fiexec 5>./config.logecho "\This file contains any messages produced by compilers whilerunning configure, to aid debugging if configure makes a mistake." 1>&5# Strip out --no-create and --no-recursion so they do not pile up.# Also quote any args containing shell metacharacters.ac_configure_args=for ac_argdo case "$ac_arg" in -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_arg" ;; esacdone# NLS nuisances.# Only set these to C if already set. These must not be set unconditionally# because not all systems understand e.g. LANG=C (notably SCO).# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!# Non-C LC_CTYPE values break the ctype check.if test "${LANG+set}" = set; then LANG=C; export LANG; fiif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fiif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fiif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi# confdefs.h avoids OS command line length limits that DEFS can exceed.rm -rf conftest* confdefs.h# AIX cpp loses on an empty file, so make sure it contains at least a newline.echo > confdefs.h# 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.ac_unique_file=Makefile.in# Find the source files, if location was not specified.if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fielse ac_srcdir_defaulted=nofiif test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } else { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } fifisrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`# Prefer explicitly selected file to automatically selected ones.if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fififor ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fidoneif test "X$cache_system" = "X" ; then # A default file name, just in case cache_system="config.system" if test "$cache_file" != "/dev/null" ; then # Get the directory for the cache file, if any cache_system=`echo $cache_file | sed -e 's%^\(.*/\)[^/]*%\1/config.system%'` test "x$cache_system" = "x$cache_file" && cache_system="config.system"# else# We must *not* set enable_cache to no because we need to know if# enable_cache was not set. # enable_cache=no fifiif test -z "$real_enable_cache" ; then real_enable_cache=$enable_cache if test -z "$real_enable_cache" ; then real_enable_cache="notgiven" ; fifiif test "X$real_enable_cache" = "Xnotgiven" ; then # check for valid cache file if test -z "$cache_system" ; then cache_system="config.system" ; fi if uname -srm >/dev/null 2>&1 ; then cleanargs=`echo "$CC $F77 $CXX $F90" | tr '"' ' '` testval="`uname -srm` $cleanargs" if test -f "$cache_system" -a -n "$testval" ; then if test "$testval" = "`cat $cache_system`" ; then real_enable_cache="yes" fi elif test ! -f "$cache_system" -a -n "$testval" ; then echo "$testval" > $cache_system # remove the cache file because it may not correspond to our # system rm -f $cache_file real_enable_cache="yes" fi fifiif test "X$real_enable_cache" = "Xyes" -a "$cache_file" = "/dev/null" ; then real_enable_cache=nofiif test "X$real_enable_cache" = "Xyes" ; then if test -r "$cache_file" ; then echo "loading cache $cache_file" . $cache_file else echo "creating cache $cache_file" > $cache_file rm -f $cache_system cleanargs=`echo "$CC $F77 $CXX" | tr '"' ' '` testval="`uname -srm` $cleanargs" echo "$testval" > $cache_system fielse cache_file="/dev/null"fiac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossac_exeext=ac_objext=oif (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=fi rm -f ${srcdir}/mpi_fortconf.h mpi_fortconf.hif test -f $CONFIG_AUX_DIR/install-sh ; then ac_aux_dir=$CONFIG_AUX_DIR elseac_aux_dir=for ac_dir in ../../../confdb $srcdir/../../../confdb; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break fidonefiif test -z "$ac_aux_dir"; then { echo "configure: error: can not find install-sh or install.sh in ../../../confdb $srcdir/../../../confdb" 1>&2; exit 1; }fiac_config_guess=$ac_aux_dir/config.guessac_config_sub=$ac_aux_dir/config.subac_configure=$ac_aux_dir/configure # This should be Cygnus configure.if test -z "$HAVE_MPID_FORTDEFS_H" ; then HAVE_MPID_FORTDEFS_H=0fi# Check whether --enable-cache or --disable-cache was given.if test "${enable_cache+set}" = set; then enableval="$enable_cache" enable_cache="$enableval"else enable_cache="notgiven"fi# Check whether --enable-strict or --disable-strict was given.if test "${enable_strict+set}" = set; then enableval="$enable_strict" COPTIONS="${COPTIONS} -Wall -O -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL"fi# Check whether --enable-echo or --disable-echo was given.if test "${enable_echo+set}" = set; then enableval="$enable_echo" set -xfi# Check whether --enable-weak-symbols or --disable-weak-symbols was given.if test "${enable_weak_symbols+set}" = set; then enableval="$enable_weak_symbols" enable_weak=$enablevalelse enable_weak="yes"fi# Check whether --enable-f90 or --disable-f90 was given.if test "${enable_f90+set}" = set; then enableval="$enable_f90" enable_f90=$enablevalelse enable_f90="yes"fi# Check whether --enable-f90modules or --disable-f90modules was given.if test "${enable_f90modules+set}" = set; then enableval="$enable_f90modules" do_f90_modules=$enablevalelse do_f90_modules="yes"fi# Check whether --enable-use-pointer or --disable-use-pointer was given.if test "${enable_use_pointer+set}" = set; then enableval="$enable_use_pointer" use_pointer_in_f77=$enablevalelse use_pointer_in_f77="no"fi# Check whether --enable-runtimevalues or --disable-runtimevalues was given.if test "${enable_runtimevalues+set}" = set; then enableval="$enable_runtimevalues" use_runtimevalues=$enablevalelse use_rutimevalues=falsefi# Check whether --with-flibname or --without-flibname was given.if test "${with_flibname+set}" = set; then withval="$with_flibname" FLIBNAME=$withval;set_FLIBNAME="yes"else FLIBNAME=mpichfi# Check whether --with-fwrapname or --without-fwrapname was given.if test "${with_fwrapname+set}" = set; then withval="$with_fwrapname" FWRAPNAME=$withval;set_FWRAPNAME="yes"else FWRAPNAME=fmpichfi# Check whether --with-cross or --without-cross was given.if test "${with_cross+set}" = set; then withval="$with_cross" :else with_cross=nofi# Check whether --with-mpichconfig or --without-mpichconfig was given.if test "${with_mpichconfig+set}" = set; then withval="$with_mpichconfig" if test -z "$withval" -o "X$withval" = "Xyes" ; then mpichconfig_file=../../util/mpichlib.confelse mpichconfig_file=$withvalfielse mpichconfig_file=""fi# Check whether --with-subname or --without-subname was given.if test "${with_subname+set}" = set; then withval="$with_subname" subname=$withvalelse subname=""fiif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status ; then { echo "configure: error: You cannot do a VPATH build if the source directory has been configured. Run "make distclean" in $srcdir first." 1>&2; exit 1; }fiif test -z "$top_srcdir" ; then use_top_srcdir=$srcdir else use_top_srcdir=$top_srcdirfiif test -z "$master_top_srcdir" ; then master_top_srcdir=$use_top_srcdirfiexport master_top_srcdirif test "$with_cross" != "no" ; then if test -s "$with_cross" ; then echo "$ac_t""Reading values from cross-compilation file $with_cross" 1>&6 . $with_cross fi # with_cross may have been passed down from above (in a calling configure) # so set the cross-compilation options independent of whether the # file exists. # Autoconf 2.52 no longer sets cross_compiling except with the # awkward "targethost" options. pac_cross_compiling=yes cross_compiling=yes ac_cv_prog_cc_cross=yes ac_cv_prog_f77_cross=yes ac_cv_prog_cxx_cross=yes export cross_compilingfiif test "$use_runtimevalues" = "yes" ; then cat >> confdefs.h <<\EOF#define F77_RUNTIME_VALUES EOFfiif test -n "$subname" -a -z "$mpichconfig_file" ; then { echo "configure: error: Must specify --with-mpichconfig with --with-subname" 1>&2; exit 1; }fi# Read any cross-compilation variable valuesif test "$cross_file" != "/dev/null" -a -s "$cross_file" ; then . $cross_filefiif test -n "$mpichconfig_file" -a -s "$mpichconfig_file" ; then . $mpichconfig_file pac_lib_mpi_is_building="yes"fi## Define the installation directory names (defaults)if test -n "$subname" ; then # add the leading hyphen subname="-$subname" f77includedir='${includedir}'"/${subname}" f77libdir='${libdir}' f77bindir='${bindir}' if test "$set_FLIBNAME" != "yes" ; then FLIBNAME="mpich$subname" fi if test "$set_FWRAPNAME" != "yes" ; then FWRAPNAME="fmpich$subname" fielse subname="-`echo $F77 | sed 's/ /-/g'`" # Don't include the (sub)name in the defaults f77includedir='${includedir}' f77libdir='${libdir}' f77bindir='${bindir}'fi# To make this compatible with the MPICH configure, the library# directory can be set with libbuild_dir; if not set, it is built in the# src directoryif test -z "$libbuild_dir" ; then libbuild_dir=`pwd`/srcfi FORTRAN_INITOBJ="initfutil.o" # We should replace mpicc with the values used in the MPICH build. # This is best done with an environment variable (? what about # config.status re-execution?) INCLUDES="$mpich_includes" if test "$hasMPE" = "unknown" ; then hasMPE="yes" fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -