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

📄 configure

📁 The example for Boor USING MPI2
💻
📖 第 1 页 / 共 5 页
字号:
        # Extract the first word of "mpif90", so it can be a program name with args.set dummy mpif90; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:881: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_MPIF90'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  case "$MPIF90" in  /*)  ac_cv_path_MPIF90="$MPIF90" # Let the user override the test with a path.  ;;  ?:/*)			   ac_cv_path_MPIF90="$MPIF90" # Let the user override the test with a dos path.  ;;  *)  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do     test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_path_MPIF90="$ac_dir/$ac_word"      break    fi  done  IFS="$ac_save_ifs"  ;;esacfiMPIF90="$ac_cv_path_MPIF90"if test -n "$MPIF90"; then  echo "$ac_t""$MPIF90" 1>&6else  echo "$ac_t""no" 1>&6fi        TESTF90=${F90-f90}        F90="$MPIF90"        # Extract the first word of "mpiCC", so it can be a program name with args.set dummy mpiCC; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:918: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_MPICXX'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  case "$MPICXX" in  /*)  ac_cv_path_MPICXX="$MPICXX" # Let the user override the test with a path.  ;;  ?:/*)			   ac_cv_path_MPICXX="$MPICXX" # Let the user override the test with a dos path.  ;;  *)  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do     test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_path_MPICXX="$ac_dir/$ac_word"      break    fi  done  IFS="$ac_save_ifs"  ;;esacfiMPICXX="$ac_cv_path_MPICXX"if test -n "$MPICXX"; then  echo "$ac_t""$MPICXX" 1>&6else  echo "$ac_t""no" 1>&6fi        TESTCXX=${CXX-CC}        CXX="$MPICXX"	PATH="$save_PATH"  	MPILIBNAME="lammpi"	;;	ibmmpi)	TESTCC=${CC-xlC}; TESTF77=${F77-xlf}; CC=mpcc; F77=mpxlf	# There is no mpxlf90, but the options langlvl and free can	# select the F90 version of xlf	TESTF90=${F90-xlf90}; F90="mpxlf -qlanglvl=90ext -qfree=f90"	MPILIBNAME=""	;;	sgimpi)	TESTCC=${CC:=cc}; TESTF77=${F77:=f77}; 	TESTCXX=${CXX:=CC}; TESTF90=${F90:=f90}	echo $ac_n "checking for MPI_Init in -lmpi""... $ac_c" 1>&6echo "configure:966: checking for MPI_Init in -lmpi" >&5ac_lib_var=`echo mpi'_'MPI_Init | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-lmpi  $LIBS"cat > conftest.$ac_ext <<EOF#line 974 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error.  *//* We use char because int might match the return type of a gcc2    builtin and then its argument prototype would still apply.  */char MPI_Init();int main() {MPI_Init(); return 0; }EOFif { (eval echo configure:985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_lib=HAVE_LIB`echo mpi | sed -e 's/[^a-zA-Z0-9_]/_/g' \    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="-lmpi $LIBS"else  echo "$ac_t""no" 1>&6fi	if test "$ac_cv_lib_mpi_MPI_Init" = "yes" ; then	    MPILIBNAME="mpi"	fi		;;	*)	# Find the compilers	for ac_prog in cc xlC xlc pgcc gcc do# Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1025: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$CC"; then  ac_cv_prog_CC="$CC" # Let the user override the test.else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_prog_CC="$ac_prog"      break    fi  done  IFS="$ac_save_ifs"fifiCC="$ac_cv_prog_CC"if test -n "$CC"; then  echo "$ac_t""$CC" 1>&6else  echo "$ac_t""no" 1>&6fitest -n "$CC" && breakdonetest -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:1056: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5ac_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_crosscat > conftest.$ac_ext << EOF#line 1067 "configure"#include "confdefs.h"main(){return(0);}EOFif { (eval echo configure:1072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  ac_cv_prog_cc_works=yes  # If we can't run a trivial program, we are probably using a cross compiler.  if (./conftest; exit) 2>/dev/null; then    ac_cv_prog_cc_cross=no  else    ac_cv_prog_cc_cross=yes  fielse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  ac_cv_prog_cc_works=nofirm -fr conftest*ac_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_crossecho "$ac_t""$ac_cv_prog_cc_works" 1>&6if test $ac_cv_prog_cc_works = no; then  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }fiecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6echo "configure:1098: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6cross_compiling=$ac_cv_prog_cc_crossecho $ac_n "checking whether the C compiler sets its return status correctly""... $ac_c" 1>&6echo "configure:1103: checking whether the C compiler sets its return status correctly" >&5ac_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_crosscat > conftest.$ac_ext <<EOF#line 1113 "configure"#include "confdefs.h"int main() {int a = bzzzt;; return 0; }EOFif { (eval echo configure:1120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  notbroken=noelse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  notbroken=yesfirm -f conftest*echo "$ac_t""$notbroken" 1>&6if test "$notbroken" = "no" ; then    { echo "configure: error: installation or configuration problem: C compiler does notcorrectly set error code when a fatal error occurs" 1>&2; exit 1; }fiecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6echo "configure:1137: checking whether we are using GNU C" >&5if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.c <<EOF#ifdef __GNUC__  yes;#endifEOFif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  ac_cv_prog_gcc=yeselse  ac_cv_prog_gcc=nofifiecho "$ac_t""$ac_cv_prog_gcc" 1>&6if test $ac_cv_prog_gcc = yes; then  GCC=yeselse  GCC=fi	if test -z "$F77"; then  for ac_prog in g77 f77 f2cdo# Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1166: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_F77'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$F77"; then  ac_cv_prog_F77="$F77" # Let the user override the test.else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_prog_F77="$ac_prog"      break    fi  done  IFS="$ac_save_ifs"fifiF77="$ac_cv_prog_F77"if test -n "$F77"; then  echo "$ac_t""$F77" 1>&6else  echo "$ac_t""no" 1>&6fitest -n "$F77" && breakdone    test -z "$F77" && { echo "configure: error: no acceptable Fortran 77 compiler found in \$PATH" 1>&2; exit 1; }fiecho $ac_n "checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:1199: checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works" >&5ac_ext=fac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&5'ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_f77_crosscat > conftest.$ac_ext << EOF      program conftest      endEOFif { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  ac_cv_prog_f77_works=yes  # If we can't run a trivial program, we are probably using a cross compiler.  if (./conftest; exit) 2>/dev/null; then    ac_cv_prog_f77_cross=no  else    ac_cv_prog_f77_cross=yes  fielse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  ac_cv_prog_f77_works=nofirm -fr conftest*ac_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_crossecho "$ac_t""$ac_cv_prog_f77_works" 1>&6if test $ac_cv_prog_f77_works = no; then  { echo "configure: error: installation or configuration problem: Fortran 77 compiler cannot create executables." 1>&2; exit 1; }fiecho $ac_n "checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6echo "configure:1238: checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler" >&5echo "$ac_t""$ac_cv_prog_f77_cross" 1>&6cross_compiling=$ac_cv_prog_f77_crossecho $ac_n "checking whether we are using GNU Fortran 77""... $ac_c" 1>&6echo "configure:1243: checking whether we are using GNU Fortran 77" >&5if eval "test \"`echo '$''{'ac_cv_prog_g77'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.fpp <<EOF#ifdef __GNUC__  yes#endifEOFif { ac_try='$F77 -E conftest.fpp'; { (eval echo configure:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  ac_cv_prog_g77=yeselse  ac_cv_prog_g77=nofifiecho "$ac_t""$ac_cv_prog_g77" 1>&6if test $ac_cv_prog_g77 = yes; then  G77=yes  ac_test_FFLAGS="${FFLAGS+set}"  ac_save_FFLAGS="$FFLAGS"  FFLAGS=  echo $ac_n "checking whether $F77 accepts -g""... $ac_c" 1>&6echo "configure:1267: checking whether $F77 accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_f77_g'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.f << EOF       program conftest       endEOFif test -z "`$F77 -g -c conftest.f 2>&1`"; then  ac_cv_prog_f77_g=yeselse  ac_cv_prog_f77_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_f77_g" 1>&6  if test "$ac_test_FFLAGS" = set; then    FFLAGS="$ac_save_FFLAGS"  elif test $ac_cv_prog_f77_g = yes; then    FFLAGS="-g -O2"  else    FFLAGS="-O2"  fielse  G77=  test "${FFLAGS+set}" = set || FFLAGS="-g"fi	for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cldo# Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1302: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test -n "$CXX"; then  ac_cv_prog_CXX="$CXX" # Let the user override the test.else  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"  ac_dummy="$PATH"  for ac_dir in $ac_dummy; do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      ac_cv_prog_CXX="$ac_prog"      break

⌨️ 快捷键说明

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