📄 configure
字号:
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 IRIX cpucount""... $ac_c"elseecho $ac_n "checking for IRIX cpucount""... $ac_c" 1>&1fi cpucount=`hinv | grep '[0-9]* [0-9]* MHZ IP[0-9]* Proc' | cut -f 1 -d' '` if test "$cpucount" = "" ; then cpucount=`hinv | grep 'Processor [0-9]*:' | wc -l | sed -e 's/ //g'` fi if test "$cpucount" = "" ; then print_error "Could not determine cpucount." print_error "Please send " hinv print_error "to mpi-bugs@mcs.anl.gov" exit 1 fi if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""$cpucount"elseecho "$ac_t""$cpucount" 1>&1fi if test -z "$PROCESSOR_COUNT" ; then PROCESSOR_COUNT=$cpucount ; fi {test -n "$verbose" && \echo " defining" PROCESSOR_COUNT to be $PROCESSOR_COUNTecho "#define" PROCESSOR_COUNT $PROCESSOR_COUNT >> confdefs.hDEFS="$DEFS -DPROCESSOR_COUNT=$PROCESSOR_COUNT"} if test -d mpid/sgi -a "$osversion" -ge 6 -a "$osvminor" -ge 1 -a \ `uname -s` = "IRIX64" ; then if test -z "$device_sgi" ; then echo "Consider using -device=sgi for SGI arrays" fi elif test -n "$device_sgi" ; then print_error "The sgi device requires IRIX64 and version 6.1 or later" exit 1 fi if test $cpucount -gt 1 ; then if test "$COMM" = "ch_p4" ; then if test "$default_comm" = "1" ; then echo "IRIX multiprocessor & p4, setting -comm=shared" echo " (configure with -comm=ch_p4 to disable shared memory)" COMM="shared" fi fi fi 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 IRIX cpumodel""... $ac_c"elseecho $ac_n "checking for IRIX cpumodel""... $ac_c" 1>&1fi cputype=`hinv -t cpu | tail -1 | cut -f 3 -d' '` if test -z "$cputype" ; then print_error "Could not get cputype from hinv -t cpu command." print_error "Please send " hinv -t cpu 2>&1 hinv -t cpu | cut -f 3 -d' ' 2>&1 print_error "to mpi-bugs@mcs.anl.gov" exit 1 fi if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""$cputype"elseecho "$ac_t""$cputype" 1>&1fi if test -z "$osversion" ; then print_error "Could not determine OS version. Please send" print_error " " uname -a print_error "to mpi-bugs@mcs.anl.gov" exit 1 elif test $osversion = 4 ; then true elif test $osversion = 5 ; then true elif test $osversion = 6 ; then true else print_error "Could not recognize the version of IRIX (got $osversion)" print_error "MPICH knows about versions 4, 5 and 6; the version being" print_error "returned from uname -r is $osversion." print_error "Please send" uname -a 2>&1 hinv 2>&1 print_error "to mpi-bugs@mcs.anl.gov" exit 1 fi 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 cputype""... $ac_c"elseecho $ac_n "checking for cputype""... $ac_c" 1>&1fi OLD_ARCH=IRIX IRIXARCH="$ARCH_$osversion" cputype=`echo $cputype | sed -e 's%.*/%%' -e 's/R//' | tr -d "[A-Z]"` case $cputype in 3000) ;; 4000) ;; 4400) ;; 4600) ;; 5000) ;; 8000) ;; 10000);; *) print_error "Unexpected IRIX/MIPS chipset $cputype. Please send the output" print_error " " uname -a 2>&1 hinv 2>&1 print_error " " print_error "to mpi-bugs@mcs.anl.gov" print_error "MPICH will continue and assume that the cputype is" print_error "compatible with a MIPS 4400 processor." print_error " " cputype=4400 ;; esac if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""$cputype"elseecho "$ac_t""$cputype" 1>&1fi IRIXARCH="$IRIXARCH_$cputype" echo "IRIX-specific architecture is $IRIXARCH"fiif test -n "$arch_IRIX"; then # We now have to look at all sorts of things to determine the # various flags. We need to set both the CFLAGS and various options # for the linkers (by setting CLINKER and FLINKER). # The OS version and chipset were determined above so that they could # be used to set the P4_ARCH if necessary. if test $osversion = 5 ; then # Turn off warnings about long doubles not being supported. CFLAGS="$CFLAGS -woff 728" elif test $osversion = 6 ; then if test $cputype = 8000 ; then CLINKER="$CC -64 -mips4 -non_shared" FLINKER="$F77 -64 -mips4 -non_shared" else CLINKER="$CC -64 -mips3 -non_shared" FLINKER="$F77 -64 -mips3 -non_shared" fi # Warning flags are > 1000 CFLAGS="$CFLAGS -woff 1152,1174,1184" fi fiif test -n "$arch_sun4" ; then if test "$STATIC_LINKING" = 1 ; then CLINKER="$CLINKER -Bstatic" FLINKER="$FLINKER -Bstatic" fifi# if test -n "$arch_rs6000" ; then if test "$STATIC_LINKING" = 1 ; then CLINKER="xlc -bnso" FLINKER="xlf -bnso" fifi# Some autoconf tests check for cross_compiling being empty, rather than# having a value of 0 or 1 (or no or yes).cross_compiling=""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 whether cross-compiling""... $ac_c"elseecho $ac_n "checking whether cross-compiling""... $ac_c" 1>&1fi# If we cannot run a trivial program, we must be cross compiling.cat > conftest.c <<EOF#include "confdefs.h"main(){exit(0);}EOFeval $compileif test -s conftest && (./conftest; exit) 2>/dev/null; then pac_ok=1else pac_ok=0firm -fr conftest*if test $pac_ok = 1 ; then cat > conftest.c <<EOF#include "confdefs.h"main(){exit(1);}EOFeval $compileif test -s conftest && (./conftest; exit) 2>/dev/null; then pac_ok=0 firm -fr conftest* if test $pac_ok = 1 ; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi else cross_compiling=1 if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes"elseecho "$ac_t""yes" 1>&1fi fielse cross_compiling=1 if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes"elseecho "$ac_t""yes" 1>&1fifiif test "$cross_compiling" != 0 ; then echo "Cross-compiling; many tests may not work..."fi# # Check for the functions that may be needed to implement# Processor_name. Save these defines in a special place.echo checking for ANSI C header filescat > conftest.c <<EOF#include "confdefs.h"#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>EOFerr=`eval "($CPP conftest.c >/dev/null) 2>&1"`if test -z "$err"; then rm -rf conftest* # SunOS 4.x string.h does not declare mem*, contrary to ANSI.echo '#include "confdefs.h"#include <string.h>' > conftest.ceval "$CPP conftest.c > conftest.out 2>&1"if egrep "memchr" conftest.out >/dev/null 2>&1; then rm -rf conftest* # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.cat > conftest.c <<EOF#include "confdefs.h"#include <ctype.h>#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))#define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))int main () { int i; for (i = 0; i < 256; i++)if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);exit (0); }EOFeval $compileif test -s conftest && (./conftest; exit) 2>/dev/null; then {test -n "$verbose" && \echo " defining STDC_HEADERS"echo "#define" STDC_HEADERS 1 >> confdefs.hDEFS="$DEFS -DSTDC_HEADERS=1"}firm -fr conftest*firm -f conftest*firm -f conftest*## Set the final choices of flagsif test -n "$DEBUGFLAG" ; then CFLAGS="$CFLAGS $DEBUGFLAG"fiCFLAGS="$CFLAGS $DEFS"#chmod g+w configure > /dev/null 2>&1# Set default prefixes.if test -n "$prefix"; then test -z "$exec_prefix" && exec_prefix='${prefix}' prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"fiif test -n "$exec_prefix"; then prsub="$prsubs%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"fi# Quote sed substitution magic chars in DEFS.cat >conftest.def <<EOF$DEFSEOFescape_ampersand_and_backslash='s%[&\\]%\\&%g'DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`rm -f conftest.def# Substitute for predefined variables.trap 'rm -f config.status; exit 1' 1 3 15echo creating config.statusrm -f config.statuscat > config.status <<EOF#!/bin/sh# Generated automatically by configure.# Run this file to recreate the current configuration.# This directory was configured as follows,# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:## $0 $configure_argsfor argdo case "\$arg" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;; *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;; esacdonetrap 'rm -f Makefile; exit 1' 1 3 15CC='$CC'RANLIB='$RANLIB'CPP='$CPP'ARCH='$ARCH'CFLAGS='$CFLAGS'CLINKER='$CLINKER'MAKE='$MAKE'MPIR_HOME='$MPIR_HOME'OPTFLAGS='$OPTFLAGS'LIBS='$LIBS'srcdir='$srcdir'DEFS='$DEFS'prefix='$prefix'exec_prefix='$exec_prefix'prsub='$prsub'extrasub='$extrasub'EOFcat >> config.status <<\EOFtop_srcdir=$srcdirCONFIG_FILES=${CONFIG_FILES-"Makefile"}for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then srcdir=$top_srcdir # Remove last slash and all that follows it. Not all systems have dirname. dir=`echo $file|sed 's%/[^/][^/]*$%%'` if test "$dir" != "$file"; then test "$top_srcdir" != . && srcdir=$top_srcdir/$dir test ! -d $dir && mkdir $dir fi echo creating $file rm -f $file echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $filecat $top_srcdir/${file}.in | sed -e "$prsub$extrasubs%@CC@%$CC%gs%@RANLIB@%$RANLIB%gs%@CPP@%$CPP%gs%@ARCH@%$ARCH%gs%@CFLAGS@%$CFLAGS%gs%@CLINKER@%$CLINKER%gs%@MAKE@%$MAKE%gs%@MPIR_HOME@%$MPIR_HOME%gs%@OPTFLAGS@%$OPTFLAGS%gs%@LIBS@%$LIBS%gs%@srcdir@%$srcdir%gs%@DEFS@%$DEFS%" >> $filefi; doneexit 0EOFchmod +x config.status${CONFIG_SHELL-/bin/sh} ./config.status
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -