#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # Defaults: ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help --enable-millennium use known directories for Berkeley Millennium cluster" ac_help="$ac_help --enable-now use known directories for Berkeley NOW cluster" ac_help="$ac_help --with-cxx= value for CXX" ac_help="$ac_help --with-cxxcpp= value for CXXCPP" ac_help="$ac_help --with-yacc= value for YACC" ac_help="$ac_help --enable-debug Force (low-performance) debugging mode for the entire Titanium system" ac_help="$ac_help --with-cxxflags= value for CXXFLAGS" ac_help="$ac_help --with-cflags= value for CFLAGS" ac_help="$ac_help --disable-full-path-expansion Disable expansion of program names to full pathnames" ac_help="$ac_help --enable-cross-compile Enable cross-compilation (experimental) " ac_help="$ac_help --enable-cross-compile Enable cross-compilation (experimental) " ac_help="$ac_help --with-cxxlibs= value for cxxLIBS" ac_help="$ac_help --enable-allow-gcc296 Allow the use of the broken gcc/g++ 2.96 compiler" ac_help="$ac_help --enable-allow-gcc32 Allow the use of the known broken gcc/g++ 3.2.0-2 compiler" ac_help="$ac_help --enable-mips64 Use MIPS-64 ABI" ac_help="$ac_help --with-tcbuild-cflags-debug=FLAGS C debug flags used by tcbuild" ac_help="$ac_help --with-tcbuild-cflags-common=FLAGS common C flags used by tcbuild" ac_help="$ac_help --with-tcbuild-cflags-optimize=FLAGS C optimization flags used by tcbuild" ac_help="$ac_help --with-tcbuild-cpus= value for TCBUILD_CPUS" ac_help="$ac_help --enable-allow-gcc296 Allow the use of the broken gcc/g++ 2.96 compiler" ac_help="$ac_help --enable-allow-gcc32 Allow the use of the known broken gcc/g++ 3.2.0-2 compiler" ac_help="$ac_help --with-ti-cspawn-cmd= value for TI_CSPAWN_CMD" ac_help="$ac_help --enable-pthreads support pthreaded backends (smp and *-smp) - probe for support by default" ac_help="$ac_help --disable-pthreads support pthreaded backends (smp and *-smp) - probe for support by default" ac_help="$ac_help --with-pthreads-include= value for PTHREADS_INCLUDE" ac_help="$ac_help --with-pthreads-lib= value for PTHREADS_LIB" ac_help="$ac_help --disable-amudp disable AMUDP support (also disables udp-* backends)" ac_help="$ac_help --disable-ammpi disable AMMPI support (also disabled mpi-* backends)" ac_help="$ac_help --with-mpi-cc= value for MPI_CC" ac_help="$ac_help --with-mpi-cflags= value for MPI_CFLAGS" ac_help="$ac_help --with-mpi-libs= value for MPI_LIBS" ac_help="$ac_help --with-mpirun-cmd= value for MPIRUN_CMD" ac_help="$ac_help --with-ti-mpirun-cmd= value for TI_MPIRUN_CMD" ac_help="$ac_help --enable-elan enable gasnet-elan-* backends" ac_help="$ac_help --enable-lapi enable gasnet-lapi-* backends" ac_help="$ac_help --enable-shmem enable gasnet-shmem-* backends" ac_help="$ac_help --enable-vapi enable gasnet-vapi-* backends" ac_help="$ac_help --with-vapirun-cmd= value for VAPIRUN_CMD" ac_help="$ac_help --enable-gm enable gasnet-gm-* backends" ac_help="$ac_help --with-gmrun-cmd= value for GMRUN_CMD" ac_help="$ac_help --enable-mpi enable gasnet-mpi-* backends" ac_help="$ac_help --enable-srs use known directories for Berkeley SRS install" ac_help="$ac_help --enable-debug-memory-usage Track compiler's use (and misuse) of memory" ac_help="$ac_help --enable-split-treenodes-hack Workaround for buggy C++ compilers that choke on the long tree-nodes.cc source file" ac_help="$ac_help --disable-papi Force disable of PAPI support" ac_help="$ac_help --with-papi=PATH path to PAPI" ac_help="$ac_help --with-pmapi=PATH path to pmapi library" ac_help="$ac_help --with-libpapi-extra= value for LIBPAPI_EXTRA" ac_help="$ac_help --with-omega=PATH path to Omega libraries" ac_help="$ac_help --with-omega-headers=PATH path to Omega headers" ac_help="$ac_help --enable-sglobal-inference Enable/disable sglobal inference" ac_help="$ac_help --disable-sglobal-inference Enable/disable sglobal inference" ac_help="$ac_help --with-max-tiarity=value Max arity to support for Titanium built-in types (defaults to 3)" ac_help="$ac_help --enable-runtime-gc Enable/disable runtime garbage collection" ac_help="$ac_help --disable-runtime-gc Enable/disable runtime garbage collection" ac_help="$ac_help --enable-tc-gc Use conservative garbage collector in compiler" ac_help="$ac_help --disable-runtime-autobuild No automatic building of runtime from top directory" ac_help="$ac_help --disable-tlibg Don't build tlib-g debug libraries" ac_help="$ac_help --with-cross-sighup= value for CROSS_SIGHUP" ac_help="$ac_help --with-cross-sigint= value for CROSS_SIGINT" ac_help="$ac_help --with-cross-sigquit= value for CROSS_SIGQUIT" ac_help="$ac_help --with-cross-sigterm= value for CROSS_SIGTERM" ac_help="$ac_help --with-cross-sigusr1= value for CROSS_SIGUSR1" ac_help="$ac_help --enable-runtime-vararray Use stack arrays of variable size in runtime code" ac_help="$ac_help --disable-runtime-vararray Use stack arrays of variable size in runtime code" ac_help="$ac_help --with-cross-sizeof-char= value for CROSS_SIZEOF_CHAR" ac_help="$ac_help --with-cross-sizeof-short= value for CROSS_SIZEOF_SHORT" ac_help="$ac_help --with-cross-sizeof-int= value for CROSS_SIZEOF_INT" ac_help="$ac_help --with-cross-sizeof-long= value for CROSS_SIZEOF_LONG" ac_help="$ac_help --with-cross-sizeof-long-long= value for CROSS_SIZEOF_LONG_LONG" ac_help="$ac_help --with-cross-sizeof-void-p= value for CROSS_SIZEOF_VOID_P" ac_help="$ac_help --with-tcldflags= value for tcLDFLAGS" ac_help="$ac_help --with-tclibs= value for tcLIBS" ac_help="$ac_help --disable-sequential Disable use of the sequential backend (if available)" ac_help="$ac_help --disable-smp Disable use of the smp backend (if available)" ac_help="$ac_help --disable-udp-cluster-uniprocess Disable use of the udp-cluster-uniprocess backend (if available)" ac_help="$ac_help --disable-udp-cluster-smp Disable use of the udp-cluster-smp backend (if available)" ac_help="$ac_help --disable-mpi-cluster-uniprocess Disable use of the mpi-cluster-uniprocess backend (if available)" ac_help="$ac_help --disable-mpi-cluster-smp Disable use of the mpi-cluster-smp backend (if available)" ac_help="$ac_help --disable-now-uniprocess Disable use of the now-uniprocess backend (if available)" ac_help="$ac_help --disable-now-cluster-uniprocess Disable use of the now-cluster-uniprocess backend (if available)" ac_help="$ac_help --disable-tera-thread Disable use of the tera-thread backend (if available)" ac_help="$ac_help --disable-sp2 Disable use of the sp2 backend (if available)" ac_help="$ac_help --disable-sp2clump Disable use of the sp2clump backend (if available)" ac_help="$ac_help --disable-sp3 Disable use of the sp3 backend (if available)" ac_help="$ac_help --disable-cray-t3e Disable use of the cray-t3e backend (if available)" ac_help="$ac_help --disable-gasnet-elan-uni Disable use of the gasnet-elan-uni backend (if available)" ac_help="$ac_help --disable-gasnet-elan-smp Disable use of the gasnet-elan-smp backend (if available)" ac_help="$ac_help --disable-gasnet-lapi-uni Disable use of the gasnet-lapi-uni backend (if available)" ac_help="$ac_help --disable-gasnet-lapi-smp Disable use of the gasnet-lapi-smp backend (if available)" ac_help="$ac_help --disable-gasnet-shmem-uni Disable use of the gasnet-shmem-uni backend (if available)" ac_help="$ac_help --disable-gasnet-vapi-uni Disable use of the gasnet-vapi-uni backend (if available)" ac_help="$ac_help --disable-gasnet-vapi-smp Disable use of the gasnet-vapi-smp backend (if available)" ac_help="$ac_help --disable-gasnet-gm-uni Disable use of the gasnet-gm-uni backend (if available)" ac_help="$ac_help --disable-gasnet-gm-smp Disable use of the gasnet-gm-smp backend (if available)" ac_help="$ac_help --disable-gasnet-mpi-uni Disable use of the gasnet-mpi-uni backend (if available)" ac_help="$ac_help --disable-gasnet-mpi-smp Disable use of the gasnet-mpi-smp backend (if available)" # Initialize some variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. build=NONE cache_file=./config.cache exec_prefix=NONE host=NONE no_create= nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= target=NONE verbose= x_includes=NONE x_libraries=NONE bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi case "$ac_option" in -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) ac_optarg= ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case "$ac_option" in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir="$ac_optarg" ;; -build | --build | --buil | --bui | --bu) ac_prev=build ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build="$ac_optarg" ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file="$ac_optarg" ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir="$ac_optarg" ;; -disable-* | --disable-*) ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` eval "enable_${ac_feature}=no" ;; -enable-* | --enable-*) ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "enable_${ac_feature}='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix="$ac_optarg" ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he) # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat << EOF Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] --mandir=DIR man documentation in DIR [PREFIX/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names EOF cat << EOF Host type: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR EOF if test -n "$ac_help"; then echo "--enable and --with options recognized:$ac_help" fi exit 0 ;; -host | --host | --hos | --ho) ac_prev=host ;; -host=* | --host=* | --hos=* | --ho=*) host="$ac_optarg" ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir="$ac_optarg" ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir="$ac_optarg" ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir="$ac_optarg" ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir="$ac_optarg" ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir="$ac_optarg" ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir="$ac_optarg" ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir="$ac_optarg" ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix="$ac_optarg" ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix="$ac_optarg" ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix="$ac_optarg" ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name="$ac_optarg" ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir="$ac_optarg" ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir="$ac_optarg" ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site="$ac_optarg" ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir="$ac_optarg" ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir="$ac_optarg" ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target="$ac_optarg" ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers) echo "configure generated by autoconf version 2.13" exit 0 ;; -with-* | --with-*) ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "with_${ac_package}='$ac_optarg'" ;; -without-* | --without-*) ac_package=`echo $ac_option|sed -e 's/-*without-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` eval "with_${ac_package}=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes="$ac_optarg" ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries="$ac_optarg" ;; -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ;; *) if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then echo "configure: warning: $ac_option: invalid host type" 1>&2 fi if test "x$nonopt" != xNONE; then { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } fi nonopt="$ac_option" ;; esac done if test -n "$ac_prev"; then { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } fi trap '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.log if test "$silent" = yes; then exec 6>/dev/null else exec 6>&1 fi exec 5>./config.log echo "\ This file contains any messages produced by compilers while running 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_arg do 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" ;; esac done # 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; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi if 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=AST.h # 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=.. fi else ac_srcdir_defaulted=no fi if 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; } fi fi srcdir=`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" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fi done if test -r "$cache_file"; then echo "loading cache $cache_file" . $cache_file else echo "creating cache $cache_file" > $cache_file fi 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_cross ac_exeext= ac_objext=o if (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= fi else ac_n= ac_c='\c' ac_t= fi echo $ac_n "checking for good shell""... $ac_c" 1>&6 echo "configure:722: checking for good shell" >&5 if test "$BASH" = '' && test `uname` = HP-UX; then echo "$ac_t""no, switching to bash" 1>&6 case $# in 0) exec bash - "$0" ;; *) exec bash - "$0" "$@" ;; esac else echo "$ac_t""yes" 1>&6 fi ac_aux_dir= for ac_dir in config-aux $srcdir/config-aux; 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 fi done if test -z "$ac_aux_dir"; then { echo "configure: error: can not find install-sh or install.sh in config-aux $srcdir/config-aux" 1>&2; exit 1; } fi ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. # Do some error checking and defaulting for the host and target type. # The inputs are: # configure --host=HOST --target=TARGET --build=BUILD NONOPT # # The rules are: # 1. You are not allowed to specify --host, --target, and nonopt at the # same time. # 2. Host defaults to nonopt. # 3. If nonopt is not specified, then host defaults to the current host, # as determined by config.guess. # 4. Target and build default to nonopt. # 5. If nonopt is not specified, then target and build default to host. # The aliases save the names the user supplied, while $host etc. # will get canonicalized. case $host---$target---$nonopt in NONE---*---* | *---NONE---* | *---*---NONE) ;; *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; esac # Make sure we can run config.sub. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 echo "configure:779: checking host system type" >&5 host_alias=$host case "$host_alias" in NONE) case $nonopt in NONE) if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } fi ;; *) host_alias=$nonopt ;; esac ;; esac host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 echo "configure:800: checking target system type" >&5 target_alias=$target case "$target_alias" in NONE) case $nonopt in NONE) target_alias=$host_alias ;; *) target_alias=$nonopt ;; esac ;; esac target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 echo "configure:818: checking build system type" >&5 build_alias=$build case "$build_alias" in NONE) case $nonopt in NONE) build_alias=$host_alias ;; *) build_alias=$nonopt ;; esac ;; esac build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$build" 1>&6 test "$host_alias" != "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- echo $ac_n "checking cached system tuple""... $ac_c" 1>&6 echo "configure:843: checking cached system tuple" >&5 if { test x"${ac_cv_host_system_type+set}" = x"set" && test x"$ac_cv_host_system_type" != x"$host"; } || { test x"${ac_cv_build_system_type+set}" = x"set" && test x"$ac_cv_build_system_type" != x"$build"; } || { test x"${ac_cv_target_system_type+set}" = x"set" && test x"$ac_cv_target_system_type" != x"$target"; }; then echo "$ac_t""different" 1>&6 { echo "configure: error: remove config.cache and re-run configure" 1>&2; exit 1; } else echo "$ac_t""ok" 1>&6 fi ac_cv_host_system_type="$host" ac_cv_build_system_type="$build" ac_cv_target_system_type="$target" # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 echo "configure:872: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done IFS="$ac_save_IFS" fi if test "${ac_cv_path_install+set}" = set; then INSTALL="$ac_cv_path_install" else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL="$ac_install_sh" fi fi echo "$ac_t""$INSTALL" 1>&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 echo "configure:925: checking whether build environment is sane" >&5 # Just in case sleep 1 echo timestamp > conftestfile # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftestfile` fi if test "$*" != "X $srcdir/configure conftestfile" \ && test "$*" != "X conftestfile $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { echo "configure: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" 1>&2; exit 1; } fi test "$2" = conftestfile ) then # Ok. : else { echo "configure: error: newly created file is older than distributed files! Check your system clock" 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes" 1>&6 if test "$program_transform_name" = s,x,x,; then program_transform_name= else # Double any \ or $. echo might interpret backslashes. cat <<\EOF_SED > conftestsed s,\\,\\\\,g; s,\$,$$,g EOF_SED program_transform_name="`echo $program_transform_name|sed -f conftestsed`" rm -f conftestsed fi test "$program_prefix" != NONE && program_transform_name="s,^,${program_prefix},; $program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" # sed with no file args requires a program. test "$program_transform_name" = "" && program_transform_name="s,x,x," echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 echo "configure:982: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftestmake <<\EOF all: @echo 'ac_maketemp="${MAKE}"' EOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftestmake fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$ac_t""yes" 1>&6 SET_MAKE= else echo "$ac_t""no" 1>&6 SET_MAKE="MAKE=${MAKE-make}" fi PACKAGE=titaniumc VERSION=3.86 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } fi cat >> confdefs.h <> confdefs.h <&6 echo "configure:1028: checking for working aclocal" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (aclocal --version) < /dev/null > /dev/null 2>&1; then ACLOCAL=aclocal echo "$ac_t""found" 1>&6 else ACLOCAL="$missing_dir/missing aclocal" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 echo "configure:1041: checking for working autoconf" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (autoconf --version) < /dev/null > /dev/null 2>&1; then AUTOCONF=autoconf echo "$ac_t""found" 1>&6 else AUTOCONF="$missing_dir/missing autoconf" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working automake""... $ac_c" 1>&6 echo "configure:1054: checking for working automake" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (automake --version) < /dev/null > /dev/null 2>&1; then AUTOMAKE=automake echo "$ac_t""found" 1>&6 else AUTOMAKE="$missing_dir/missing automake" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 echo "configure:1067: checking for working autoheader" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (autoheader --version) < /dev/null > /dev/null 2>&1; then AUTOHEADER=autoheader echo "$ac_t""found" 1>&6 else AUTOHEADER="$missing_dir/missing autoheader" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 echo "configure:1080: checking for working makeinfo" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then MAKEINFO=makeinfo echo "$ac_t""found" 1>&6 else MAKEINFO="$missing_dir/missing makeinfo" echo "$ac_t""missing" 1>&6 fi for ac_prog in mawk gawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1103: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi AWK="$ac_cv_prog_AWK" if test -n "$AWK"; then echo "$ac_t""$AWK" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$AWK" && break done case "$PWD_PROG" in '') for ac_prog in pwd do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1140: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PWD_PROG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$PWD_PROG" in /*) ac_cv_path_PWD_PROG="$PWD_PROG" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_PWD_PROG="$PWD_PROG" # 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_PWD_PROG="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi PWD_PROG="$ac_cv_path_PWD_PROG" if test -n "$PWD_PROG"; then echo "$ac_t""$PWD_PROG" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$PWD_PROG" && break done ;; *) echo $ac_n "checking for pwd""... $ac_c" 1>&6 echo "configure:1177: checking for pwd" >&5 echo "$ac_t""$PWD_PROG" 1>&6 ;; esac case "$PWD_PROG" in '') { echo "configure: error: cannot find pwd" 1>&2; exit 1; } ;; esac echo $ac_n "checking autoconf version""... $ac_c" 1>&6 echo "configure:1189: checking autoconf version" >&5 AUTOCONF_VERSION_STR=`cat ${srcdir}/configure | $AWK '/.*enerated.*utoconf.*([0-9]+).([0-9]+).*/ { match($0,"[0-9]+.[0-9]+"); print substr($0,RSTART,RLENGTH); exit 0 } '` AUTOCONF_VERSION=`echo $AUTOCONF_VERSION_STR | $AWK -F. '{ printf("%i%i",$1,$2); }'` echo "$ac_t""$AUTOCONF_VERSION_STR" 1>&6 echo $ac_n "checking for configure settings""... $ac_c" 1>&6 echo "configure:1195: checking for configure settings" >&5 echo "$ac_t""" 1>&6 CONFIGURE_ARGS="$ac_configure_args" echo "$ac_t""configure args: $CONFIGURE_ARGS" 1>&6 ac_configure_args="$ac_configure_args --cache-file=$cache_file" TOP_SRCDIR=`cd ${srcdir} && ${PWD_PROG}` echo "$ac_t""TOP_SRCDIR: $TOP_SRCDIR" 1>&6 TOP_BUILDDIR=`${PWD_PROG}` echo "$ac_t""TOP_BUILDDIR: $TOP_BUILDDIR" 1>&6 if `echo $TOP_SRCDIR | grep ' ' >/dev/null 2>/dev/null`; then { echo "configure: error: TOP_SRCDIR contains space characters - please unpack the source in a different directory." 1>&2; exit 1; } fi if `echo $TOP_BUILDDIR | grep ' ' >/dev/null 2>/dev/null`; then { echo "configure: error: TOP_BUILDDIR contains space characters - please build in a different directory." 1>&2; exit 1; } fi if test "$TOP_BUILDDIR" = "$TOP_SRCDIR"; then BUILD_IS_SRC_TRUE= BUILD_IS_SRC_FALSE='#' else BUILD_IS_SRC_TRUE='#' BUILD_IS_SRC_FALSE= fi if test "$TOP_BUILDDIR" = "$TOP_SRCDIR"; then BUILD_IS_SRC=yes else BUILD_IS_SRC=no fi SYSTEM_NAME="`hostname`" SYSTEM_TUPLE="$target" echo "$ac_t""system info: $SYSTEM_NAME $SYSTEM_TUPLE" 1>&6 BUILD_USER=`whoami 2> /dev/null || id -un 2> /dev/null || echo $USER` BUILD_ID="`date` $BUILD_USER" echo "$ac_t""build id: $BUILD_ID" 1>&6 if test "$tc_acenv_list" != ""; then { echo "configure: error: _GASNET_RESTORE_AUTOCONF_ENV called more than once with prefix = "tc_cv_"" 1>&2; exit 1; } fi tc_acenv_list="CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC REXEC KSH" echo $ac_n "checking for cached autoconf environment settings""... $ac_c" 1>&6 echo "configure:1245: checking for cached autoconf environment settings" >&5 echo "$ac_t""""" 1>&6 for varname in CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC REXEC KSH; do val=`eval echo '$'"tc_cv_acenv_$varname"` if test "$val" != ""; then eval $varname=\"$val\" echo "$ac_t""$varname=\"$val\"" 1>&6 fi done cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <&6 echo "configure:1285: checking for Berkeley Millennium cluster" >&5 # Check whether --enable-millennium or --disable-millennium was given. if test "${enable_millennium+set}" = set; then enableval="$enable_millennium" : else case "`hostname`" in *.Millennium.Berkeley.EDU) enable_millennium=yes ;; *) enable_millennium=no ;; esac fi if test "$enable_millennium" = yes; then #with_ens=/usr/mill/lib # don't use ens on Millennium - AMVIA is broken anyhow with_includes=/usr/mill/include with_amvia=/home/cs/philipb/amvia_3/lib/Linux-i686 with_via=/home/cs/philipb/via/lib/Linux-i686-myrinet with_rexec=/usr/mill/bin fi echo "$ac_t""$enable_millennium" 1>&6 ## Berkeley NOW cluster echo $ac_n "checking for Berkeley NOW cluster""... $ac_c" 1>&6 echo "configure:1312: checking for Berkeley NOW cluster" >&5 # Check whether --enable-now or --disable-now was given. if test "${enable_now+set}" = set; then enableval="$enable_now" : else if test `hostname` = "now.CS.Berkeley.EDU" -o \( -d /usr/now/lib -a -d /usr/now/include \) ; then enable_now=yes else enable_now=no fi fi if test "$enable_now" = yes; then with_ens=/usr/now/lib with_includes=/usr/now/include fi echo "$ac_t""$enable_now" 1>&6 ######################################################################## ## ## Supporting Command-Line Tools ## ## perl for ac_prog in perl5 perl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1347: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$PERL" in /*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_PERL="$PERL" # 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_PERL="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi PERL="$ac_cv_path_PERL" if test -n "$PERL"; then echo "$ac_t""$PERL" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$PERL" && break done echo $ac_n "checking for perl version 5.004 or later""... $ac_c" 1>&6 echo "configure:1383: checking for perl version 5.004 or later" >&5 if $PERL -e 'require 5.004;' 2>&5; then echo "$ac_t""yes" 1>&6 else { echo "configure: error: cannot find perl 5.004 or later" 1>&2; exit 1; } fi ## other stuff # Extract the first word of "ksh", so it can be a program name with args. set dummy ksh; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1395: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$KSH" in /*) ac_cv_path_KSH="$KSH" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_KSH="$KSH" # 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_KSH="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi KSH="$ac_cv_path_KSH" if test -n "$KSH"; then echo "$ac_t""$KSH" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "$KSH" = "" ; then echo "configure: warning: Failed to find ksh - test suite disabled" 1>&2 KSH='/usr/bin/env ksh' fi case "$SUM" in '') for ac_prog in md5 cksum sum do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1438: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_SUM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$SUM"; then ac_cv_prog_SUM="$SUM" # 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_SUM="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi SUM="$ac_cv_prog_SUM" if test -n "$SUM"; then echo "$ac_t""$SUM" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$SUM" && break done ;; *) echo $ac_n "checking for checksum engine""... $ac_c" 1>&6 echo "configure:1469: checking for checksum engine" >&5 echo "$ac_t""$SUM" 1>&6 ;; esac case "$SUM" in '') { echo "configure: error: cannot find checksum engine" 1>&2; exit 1; } ;; esac case "$NM" in '') for ac_prog in $NM nm do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1484: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in /*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_NM="$NM" # 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_NM="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi NM="$ac_cv_path_NM" if test -n "$NM"; then echo "$ac_t""$NM" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$NM" && break done ;; *) echo $ac_n "checking for nm utility""... $ac_c" 1>&6 echo "configure:1521: checking for nm utility" >&5 echo "$ac_t""$NM" 1>&6 ;; esac case "$NM" in '') { echo "configure: error: cannot find nm utility" 1>&2; exit 1; } ;; esac case "$AR" in '') for ac_prog in ar gar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1536: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # 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_AR="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi AR="$ac_cv_prog_AR" if test -n "$AR"; then echo "$ac_t""$AR" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$AR" && break done ;; *) echo $ac_n "checking for archiver""... $ac_c" 1>&6 echo "configure:1567: checking for archiver" >&5 echo "$ac_t""$AR" 1>&6 ;; esac case "$AR" in '') { echo "configure: error: cannot find archiver" 1>&2; exit 1; } ;; esac case "$AS" in '') for ac_prog in as $CC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1582: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$AS"; then ac_cv_prog_AS="$AS" # 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_AS="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi AS="$ac_cv_prog_AS" if test -n "$AS"; then echo "$ac_t""$AS" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$AS" && break done ;; *) echo $ac_n "checking for assembler""... $ac_c" 1>&6 echo "configure:1613: checking for assembler" >&5 echo "$ac_t""$AS" 1>&6 ;; esac case "$AS" in '') { echo "configure: error: cannot find assembler" 1>&2; exit 1; } ;; esac # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1624: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="ranlib" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" fi fi RANLIB="$ac_cv_prog_RANLIB" if test -n "$RANLIB"; then echo "$ac_t""$RANLIB" 1>&6 else echo "$ac_t""no" 1>&6 fi case "$RANLIB" in '') for ac_prog in $RANLIB ranlib touch do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1658: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$RANLIB" in /*) ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_RANLIB="$RANLIB" # 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_RANLIB="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi RANLIB="$ac_cv_path_RANLIB" if test -n "$RANLIB"; then echo "$ac_t""$RANLIB" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$RANLIB" && break done ;; *) echo $ac_n "checking for ranlib""... $ac_c" 1>&6 echo "configure:1695: checking for ranlib" >&5 echo "$ac_t""$RANLIB" 1>&6 ;; esac case "$RANLIB" in '') { echo "configure: error: cannot find ranlib" 1>&2; exit 1; } ;; esac case "$target_os" in darwin*) RANLIB="$RANLIB -s -c" ;; # ensure correct common block behavior on darwin esac # subst must be explicit to work properlyin Makefiles case "$MAKE" in '') for ac_prog in $GMAKE gmake make $MAKE do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1717: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$MAKE"; then ac_cv_prog_MAKE="$MAKE" # 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_MAKE="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi MAKE="$ac_cv_prog_MAKE" if test -n "$MAKE"; then echo "$ac_t""$MAKE" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$MAKE" && break done ;; *) echo $ac_n "checking for GNU make""... $ac_c" 1>&6 echo "configure:1748: checking for GNU make" >&5 echo "$ac_t""$MAKE" 1>&6 ;; esac case "$MAKE" in '') { echo "configure: error: cannot find GNU make" 1>&2; exit 1; } ;; esac case "$GMAKE" in '') for ac_prog in $GMAKE gmake make $MAKE do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1763: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$GMAKE" in /*) ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_GMAKE="$GMAKE" # 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_GMAKE="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi GMAKE="$ac_cv_path_GMAKE" if test -n "$GMAKE"; then echo "$ac_t""$GMAKE" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$GMAKE" && break done ;; *) echo $ac_n "checking for GNU make""... $ac_c" 1>&6 echo "configure:1800: checking for GNU make" >&5 echo "$ac_t""$GMAKE" 1>&6 ;; esac case "$GMAKE" in '') { echo "configure: error: cannot find GNU make" 1>&2; exit 1; } ;; esac echo $ac_n "checking for GNU make""... $ac_c" 1>&6 echo "configure:1809: checking for GNU make" >&5 if $GMAKE --version | grep GNU ; then echo "$ac_t""yes" 1>&6 else { echo "configure: error: cannot find a version of GNU make - please install GNU make and/or set \$GMAKE to indicate where it's located" 1>&2; exit 1; } fi ######################################################################## ## ## C/C++ Compilers ## case "$build_os" in unicos*) # --------------------------------------- # [GASNET_ENV_DEFAULT](CXX, KCC) echo $ac_n "checking for CXX in environment""... $ac_c" 1>&6 echo "configure:1832: checking for CXX in environment" >&5 # Check whether --with-cxx or --without-cxx was given. if test "${with_cxx+set}" = set; then withval="$with_cxx" : fi envval_src_CXX="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CXX-__NOT_SET__}" in __NOT_SET__) if test "$with_cxx" != ""; then tc_cv_envvar_CXX="$with_cxx" envval_src_CXX=given else tc_cv_envvar_CXX="KCC" envval_src_CXX=default fi ;; *) tc_cv_envvar_CXX="$CXX" envval_src_CXX=given esac fi CXX="$tc_cv_envvar_CXX" case "$envval_src_CXX" in 'cached') echo "$ac_t""using cached value \"$CXX\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CXX\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CXX\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](CXXCPP, $CXX -E) echo $ac_n "checking for CXXCPP in environment""... $ac_c" 1>&6 echo "configure:1888: checking for CXXCPP in environment" >&5 # Check whether --with-cxxcpp or --without-cxxcpp was given. if test "${with_cxxcpp+set}" = set; then withval="$with_cxxcpp" : fi envval_src_CXXCPP="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CXXCPP-__NOT_SET__}" in __NOT_SET__) if test "$with_cxxcpp" != ""; then tc_cv_envvar_CXXCPP="$with_cxxcpp" envval_src_CXXCPP=given else tc_cv_envvar_CXXCPP="$CXX -E" envval_src_CXXCPP=default fi ;; *) tc_cv_envvar_CXXCPP="$CXXCPP" envval_src_CXXCPP=given esac fi CXXCPP="$tc_cv_envvar_CXXCPP" case "$envval_src_CXXCPP" in 'cached') echo "$ac_t""using cached value \"$CXXCPP\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CXXCPP\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CXXCPP\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ac_cv_prog_CXXCPP="$CXXCPP" # DOB: work-around for a gnarly Cray configure bug # --------------------------------------- # [GASNET_ENV_DEFAULT](YACC, yacc) echo $ac_n "checking for YACC in environment""... $ac_c" 1>&6 echo "configure:1945: checking for YACC in environment" >&5 # Check whether --with-yacc or --without-yacc was given. if test "${with_yacc+set}" = set; then withval="$with_yacc" : fi envval_src_YACC="cached" if eval "test \"`echo '$''{'tc_cv_envvar_YACC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${YACC-__NOT_SET__}" in __NOT_SET__) if test "$with_yacc" != ""; then tc_cv_envvar_YACC="$with_yacc" envval_src_YACC=given else tc_cv_envvar_YACC="yacc" envval_src_YACC=default fi ;; *) tc_cv_envvar_YACC="$YACC" envval_src_YACC=given esac fi YACC="$tc_cv_envvar_YACC" case "$envval_src_YACC" in 'cached') echo "$ac_t""using cached value \"$YACC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$YACC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$YACC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; esac # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" : fi case "$enable_debug" in '' | no) : NDEBUG_DEFINES="-DNDEBUG" GLOBAL_DEBUG_MODE=0 enabled_debug=no ;; *) echo "-----------------------------------------------------------------------" echo " WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING" echo "" echo " Configuring the system for global, forced debugging mode." echo " This usually has a SERIOUS impact on performance, so you should NOT" echo " trust any performance numbers obtained from programs compiled" echo " using this Titanium installation!!!" echo "" echo " WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING" echo "-----------------------------------------------------------------------" NDEBUG_DEFINES="" GLOBAL_DEBUG_MODE=1 enabled_debug=yes ;; esac if test "$enabled_debug" = yes; then ENABLED_DEBUG_TRUE= ENABLED_DEBUG_FALSE='#' else ENABLED_DEBUG_TRUE='#' ENABLED_DEBUG_FALSE= fi if test "$enabled_debug" = "yes" ; then # must precede AC_PROG_CC/CXX # --------------------------------------- # [GASNET_ENV_DEFAULT](CXXFLAGS, "-g") echo $ac_n "checking for CXXFLAGS in environment""... $ac_c" 1>&6 echo "configure:2046: checking for CXXFLAGS in environment" >&5 # Check whether --with-cxxflags or --without-cxxflags was given. if test "${with_cxxflags+set}" = set; then withval="$with_cxxflags" : fi envval_src_CXXFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CXXFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CXXFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_cxxflags" != ""; then tc_cv_envvar_CXXFLAGS="$with_cxxflags" envval_src_CXXFLAGS=given else tc_cv_envvar_CXXFLAGS=""-g"" envval_src_CXXFLAGS=default fi ;; *) tc_cv_envvar_CXXFLAGS="$CXXFLAGS" envval_src_CXXFLAGS=given esac fi CXXFLAGS="$tc_cv_envvar_CXXFLAGS" case "$envval_src_CXXFLAGS" in 'cached') echo "$ac_t""using cached value \"$CXXFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CXXFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CXXFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](CFLAGS, "-g") echo $ac_n "checking for CFLAGS in environment""... $ac_c" 1>&6 echo "configure:2102: checking for CFLAGS in environment" >&5 # Check whether --with-cflags or --without-cflags was given. if test "${with_cflags+set}" = set; then withval="$with_cflags" : fi envval_src_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_cflags" != ""; then tc_cv_envvar_CFLAGS="$with_cflags" envval_src_CFLAGS=given else tc_cv_envvar_CFLAGS=""-g"" envval_src_CFLAGS=default fi ;; *) tc_cv_envvar_CFLAGS="$CFLAGS" envval_src_CFLAGS=given esac fi CFLAGS="$tc_cv_envvar_CFLAGS" case "$envval_src_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- fi # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2156: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else 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="gcc" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2186: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else 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_prog_rejected=no ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" break fi done IFS="$ac_save_ifs" if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# -gt 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift set dummy "$ac_dir/$ac_word" "$@" shift ac_cv_prog_CC="$@" fi fi fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then case "`uname -s`" in *win32* | *WIN32*) # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2237: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else 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="cl" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi ;; esac fi test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:2269: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 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_cross cat > conftest.$ac_ext << EOF #line 2280 "configure" #include "confdefs.h" main(){return(0);} EOF if { (eval echo configure:2285: \"$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 fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cc_works=no fi rm -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_cross echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:2311: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 echo "configure:2316: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no fi fi echo "$ac_t""$ac_cv_prog_gcc" 1>&6 if test $ac_cv_prog_gcc = yes; then GCC=yes else GCC= fi ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 echo "configure:2344: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yes else ac_cv_prog_cc_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 if test "$ac_test_CFLAGS" = set; then CFLAGS="$ac_save_CFLAGS" elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 echo "configure:2376: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi echo "$ac_t""$CPP" 1>&6 # Check whether --enable-full-path-expansion or --disable-full-path-expansion was given. if test "${enable_full_path_expansion+set}" = set; then enableval="$enable_full_path_expansion" : fi case "$enable_full_path_expansion" in '' | yes) : ;; *) tc_cv__gfp_disable=1 ;; esac # ---------------------------------------------- # [GASNET_GETFULLPATH](CPP) if test "$tc_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$CPP" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$CPP" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then # clear cached values, in case this is a pushed var unset tc_cv__gfp_fullprogname_CPP unset ac_cv_path_tc_cv__gfp_fullprogname_CPP # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_CPP, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2491: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_tc_cv__gfp_fullprogname_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$tc_cv__gfp_fullprogname_CPP" in /*) ac_cv_path_tc_cv__gfp_fullprogname_CPP="$tc_cv__gfp_fullprogname_CPP" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_tc_cv__gfp_fullprogname_CPP="$tc_cv__gfp_fullprogname_CPP" # 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_tc_cv__gfp_fullprogname_CPP="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi tc_cv__gfp_fullprogname_CPP="$ac_cv_path_tc_cv__gfp_fullprogname_CPP" if test -n "$tc_cv__gfp_fullprogname_CPP"; then echo "$ac_t""$tc_cv__gfp_fullprogname_CPP" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for full path expansion of CPP""... $ac_c" 1>&6 echo "configure:2524: checking for full path expansion of CPP" >&5 if test "$tc_cv__gfp_fullprogname_CPP" != "" ; then CPP="$tc_cv__gfp_fullprogname_CPP $gasnet_gfp_progargs" fi echo "$ac_t""$CPP" 1>&6 fi fi # ---------------------------------------------- echo $ac_n "checking for working C preprocessor""... $ac_c" 1>&6 echo "configure:2536: checking for working C preprocessor" >&5 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_cross gasnet_progcpp_extrainfo= if test -n "`$CPP -version 2>&1 < /dev/null | grep MIPSpro`" ; then gasnet_progcpp_extrainfo=" (added -diag_error 1035 to deal with broken MIPSPro preprocessor)" CFLAGS="$CFLAGS -diag_error 1035" CPPFLAGS="$CPPFLAGS -diag_error 1035" fi cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* { echo "configure: error: Your C preprocessor is broken - reported success when it should have failed" 1>&2; exit 1; } else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo echo "configure error: Your C preprocessor is broken - reported failure when it should have succeeded" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes$gasnet_progcpp_extrainfo" 1>&6 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_cross # ---------------------------------------------- # [GASNET_GETFULLPATH](CC) if test "$tc_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$CC" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$CC" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then # clear cached values, in case this is a pushed var unset tc_cv__gfp_fullprogname_CC unset ac_cv_path_tc_cv__gfp_fullprogname_CC # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_CC, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2646: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_tc_cv__gfp_fullprogname_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$tc_cv__gfp_fullprogname_CC" in /*) ac_cv_path_tc_cv__gfp_fullprogname_CC="$tc_cv__gfp_fullprogname_CC" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_tc_cv__gfp_fullprogname_CC="$tc_cv__gfp_fullprogname_CC" # 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_tc_cv__gfp_fullprogname_CC="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi tc_cv__gfp_fullprogname_CC="$ac_cv_path_tc_cv__gfp_fullprogname_CC" if test -n "$tc_cv__gfp_fullprogname_CC"; then echo "$ac_t""$tc_cv__gfp_fullprogname_CC" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for full path expansion of CC""... $ac_c" 1>&6 echo "configure:2679: checking for full path expansion of CC" >&5 if test "$tc_cv__gfp_fullprogname_CC" != "" ; then CC="$tc_cv__gfp_fullprogname_CC $gasnet_gfp_progargs" fi echo "$ac_t""$CC" 1>&6 fi fi # ---------------------------------------------- echo $ac_n "checking for working C compiler""... $ac_c" 1>&6 echo "configure:2691: checking for working C compiler" >&5 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_cross cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* { echo "configure: error: Your C compiler is broken - reported success when it should have failed" 1>&2; exit 1; } else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo echo "configure error: Your C compiler is broken - reported failure when it should have succeeded" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* { echo "configure: error: Your C linker is broken - reported success when it should have failed" 1>&2; exit 1; } else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo echo "configure error: Your C link is broken - reported failure when it should have succeeded" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes" 1>&6 echo $ac_n "checking if user enabled cross-compile""... $ac_c" 1>&6 echo "configure:2830: checking if user enabled cross-compile" >&5 # Check whether --enable-cross-compile or --disable-cross-compile was given. if test "${enable_cross_compile+set}" = set; then enableval="$enable_cross_compile" : fi case "$enable_cross_compile" in '' | no) : echo "$ac_t""no" 1>&6 cross_compiling=no CROSS_COMPILING=0 ac_cv_prog_cc_cross=no echo $ac_n "checking working C compiler executables""... $ac_c" 1>&6 echo "configure:2847: checking working C compiler executables" >&5 if test "$cross_compiling" = yes; then { echo "configure: error: Internal configure error - please report" 1>&2; exit 1; } else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* echo "$ac_t""no" 1>&6 echo echo "configure error: Cannot run executables created with C compiler. If you're attempting to cross-compile" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -fr conftest* fi ;; *) echo "$ac_t""yes" 1>&6 cross_compiling=yes CROSS_COMPILING=1 ac_cv_prog_cc_cross=yes ;; esac if test "$cross_compiling" = "yes"; then CROSS_COMPILING_TRUE= CROSS_COMPILING_FALSE='#' else CROSS_COMPILING_TRUE='#' CROSS_COMPILING_FALSE= fi 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_cross for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2931: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else 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 fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done test -n "$CXX" || CXX="gcc" echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:2963: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext << EOF #line 2974 "configure" #include "confdefs.h" int main(){return(0);} EOF if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cxx_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_cxx_cross=no else ac_cv_prog_cxx_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cxx_works=no fi rm -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_cross echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 if test $ac_cv_prog_cxx_works = no; then { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:3005: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 echo "configure:3010: checking whether we are using GNU C++" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.C <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yes else ac_cv_prog_gxx=no fi fi echo "$ac_t""$ac_cv_prog_gxx" 1>&6 if test $ac_cv_prog_gxx = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS= echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 echo "configure:3038: checking whether ${CXX-g++} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.cc if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then ac_cv_prog_cxx_g=yes else ac_cv_prog_cxx_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS="$ac_save_CXXFLAGS" elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 echo "configure:3070: checking how to run the C++ preprocessor" >&5 if test -z "$CXXCPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CXXCPP=/lib/cpp fi rm -f conftest* ac_cv_prog_CXXCPP="$CXXCPP" 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_cross fi fi CXXCPP="$ac_cv_prog_CXXCPP" echo "$ac_t""$CXXCPP" 1>&6 # ---------------------------------------------- # [GASNET_GETFULLPATH](CXXCPP) if test "$tc_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$CXXCPP" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$CXXCPP" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then # clear cached values, in case this is a pushed var unset tc_cv__gfp_fullprogname_CXXCPP unset ac_cv_path_tc_cv__gfp_fullprogname_CXXCPP # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_CXXCPP, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3133: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_tc_cv__gfp_fullprogname_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$tc_cv__gfp_fullprogname_CXXCPP" in /*) ac_cv_path_tc_cv__gfp_fullprogname_CXXCPP="$tc_cv__gfp_fullprogname_CXXCPP" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_tc_cv__gfp_fullprogname_CXXCPP="$tc_cv__gfp_fullprogname_CXXCPP" # 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_tc_cv__gfp_fullprogname_CXXCPP="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi tc_cv__gfp_fullprogname_CXXCPP="$ac_cv_path_tc_cv__gfp_fullprogname_CXXCPP" if test -n "$tc_cv__gfp_fullprogname_CXXCPP"; then echo "$ac_t""$tc_cv__gfp_fullprogname_CXXCPP" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for full path expansion of CXXCPP""... $ac_c" 1>&6 echo "configure:3166: checking for full path expansion of CXXCPP" >&5 if test "$tc_cv__gfp_fullprogname_CXXCPP" != "" ; then CXXCPP="$tc_cv__gfp_fullprogname_CXXCPP $gasnet_gfp_progargs" fi echo "$ac_t""$CXXCPP" 1>&6 fi fi # ---------------------------------------------- echo $ac_n "checking for working C++ preprocessor""... $ac_c" 1>&6 echo "configure:3178: checking for working C++ preprocessor" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross gasnet_progcxxcpp_extrainfo= if test -n "`$CXXCPP -version 2>&1 < /dev/null | grep MIPSpro`" ; then gasnet_progcxxcpp_extrainfo=" (added -diag_error 1035 to deal with broken MIPSPro preprocessor)" CXXFLAGS="$CXXFLAGS -diag_error 1035" CXXCPPFLAGS="$CXXCPPFLAGS -diag_error 1035" fi cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* { echo "configure: error: Your C++ preprocessor is broken - reported success when it should have failed" 1>&2; exit 1; } else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo echo "configure error: Your C++ preprocessor is broken - reported failure when it should have succeeded" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes$gasnet_progcxxcpp_extrainfo" 1>&6 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_cross # ---------------------------------------------- # [GASNET_GETFULLPATH](CXX) if test "$tc_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$CXX" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$CXX" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then # clear cached values, in case this is a pushed var unset tc_cv__gfp_fullprogname_CXX unset ac_cv_path_tc_cv__gfp_fullprogname_CXX # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_CXX, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3288: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_tc_cv__gfp_fullprogname_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$tc_cv__gfp_fullprogname_CXX" in /*) ac_cv_path_tc_cv__gfp_fullprogname_CXX="$tc_cv__gfp_fullprogname_CXX" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_tc_cv__gfp_fullprogname_CXX="$tc_cv__gfp_fullprogname_CXX" # 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_tc_cv__gfp_fullprogname_CXX="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi tc_cv__gfp_fullprogname_CXX="$ac_cv_path_tc_cv__gfp_fullprogname_CXX" if test -n "$tc_cv__gfp_fullprogname_CXX"; then echo "$ac_t""$tc_cv__gfp_fullprogname_CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for full path expansion of CXX""... $ac_c" 1>&6 echo "configure:3321: checking for full path expansion of CXX" >&5 if test "$tc_cv__gfp_fullprogname_CXX" != "" ; then CXX="$tc_cv__gfp_fullprogname_CXX $gasnet_gfp_progargs" fi echo "$ac_t""$CXX" 1>&6 fi fi # ---------------------------------------------- echo $ac_n "checking for working C++ compiler""... $ac_c" 1>&6 echo "configure:3333: checking for working C++ compiler" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* { echo "configure: error: Your C++ compiler is broken - reported success when it should have failed" 1>&2; exit 1; } else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo echo "configure error: Your C++ compiler is broken - reported failure when it should have succeeded" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* { echo "configure: error: Your C++ linker is broken - reported success when it should have failed" 1>&2; exit 1; } else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo echo "configure error: Your C++ link is broken - reported failure when it should have succeeded" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes" 1>&6 echo $ac_n "checking if user enabled cross-compile""... $ac_c" 1>&6 echo "configure:3472: checking if user enabled cross-compile" >&5 # Check whether --enable-cross-compile or --disable-cross-compile was given. if test "${enable_cross_compile+set}" = set; then enableval="$enable_cross_compile" : fi case "$enable_cross_compile" in '' | no) : echo "$ac_t""no" 1>&6 cross_compiling=no ac_cv_prog_cxx_cross=no echo $ac_n "checking working C++ compiler executables""... $ac_c" 1>&6 echo "configure:3488: checking working C++ compiler executables" >&5 if test "$cross_compiling" = yes; then { echo "configure: error: Internal configure error - please report" 1>&2; exit 1; } else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* echo "$ac_t""no" 1>&6 echo echo "configure error: Cannot run executables created with C++ compiler. If you're attempting to cross-compile" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -fr conftest* fi ;; *) echo "$ac_t""yes" 1>&6 cross_compiling=yes ac_cv_prog_cxx_cross=yes ;; esac 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_cross # --------------------------------------- # [GASNET_ENV_DEFAULT](cxxLIBS, ) echo $ac_n "checking for cxxLIBS in environment""... $ac_c" 1>&6 echo "configure:3566: checking for cxxLIBS in environment" >&5 # Check whether --with-cxxlibs or --without-cxxlibs was given. if test "${with_cxxlibs+set}" = set; then withval="$with_cxxlibs" : fi envval_src_cxxLIBS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_cxxLIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${cxxLIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_cxxlibs" != ""; then tc_cv_envvar_cxxLIBS="$with_cxxlibs" envval_src_cxxLIBS=given else tc_cv_envvar_cxxLIBS="" envval_src_cxxLIBS=default fi ;; *) tc_cv_envvar_cxxLIBS="$cxxLIBS" envval_src_cxxLIBS=given esac fi cxxLIBS="$tc_cv_envvar_cxxLIBS" case "$envval_src_cxxLIBS" in 'cached') echo "$ac_t""using cached value \"$cxxLIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$cxxLIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$cxxLIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- missing_dir=`cd $ac_aux_dir && pwd` for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3621: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # 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_LEX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi LEX="$ac_cv_prog_LEX" if test -n "$LEX"; then echo "$ac_t""$LEX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$LEX" && break done test -n "$LEX" || LEX=""$missing_dir/missing flex"" # Extract the first word of "flex", so it can be a program name with args. set dummy flex; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3654: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # 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_LEX="flex" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" fi fi LEX="$ac_cv_prog_LEX" if test -n "$LEX"; then echo "$ac_t""$LEX" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$LEXLIB" then case "$LEX" in flex*) ac_lib=fl ;; *) ac_lib=l ;; esac echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 echo "configure:3688: checking for yywrap in -l$ac_lib" >&5 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-l$ac_lib $LIBS" cat > conftest.$ac_ext <&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" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LEXLIB="-l$ac_lib" else echo "$ac_t""no" 1>&6 fi fi echo $ac_n "checking lex output file root""... $ac_c" 1>&6 echo "configure:3730: checking lex output file root" >&5 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # The minimal lex program is just a single line: %%. But some broken lexes # (Solaris, I think it was) want two %% lines, so accommodate them. echo '%% %%' | $LEX if test -f lex.yy.c; then ac_cv_prog_lex_root=lex.yy elif test -f lexyy.c; then ac_cv_prog_lex_root=lexyy else { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } fi fi echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 echo "configure:3751: checking whether yytext is a pointer" >&5 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # POSIX says lex can declare yytext either as a pointer or an array; the # default is implementation-dependent. Figure out which it is, since # not all implementations provide the %pointer and %array declarations. ac_cv_prog_lex_yytext_pointer=no echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c ac_save_LIBS="$LIBS" LIBS="$LIBS $LEXLIB" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_prog_lex_yytext_pointer=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* LIBS="$ac_save_LIBS" rm -f "${LEX_OUTPUT_ROOT}.c" fi echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 if test $ac_cv_prog_lex_yytext_pointer = yes; then cat >> confdefs.h <<\EOF #define YYTEXT_POINTER 1 EOF fi echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 echo "configure:3792: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else rm -f conftestdata if ln -s X conftestdata 2>/dev/null then rm -f conftestdata ac_cv_prog_LN_S="ln -s" else ac_cv_prog_LN_S=ln fi fi LN_S="$ac_cv_prog_LN_S" if test "$ac_cv_prog_LN_S" = "ln -s"; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no" 1>&6 fi for ac_prog in 'bison -y' byacc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3817: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi YACC="$ac_cv_prog_YACC" if test -n "$YACC"; then echo "$ac_t""$YACC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" case "$PERL" in '') for ac_prog in perl5 perl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:3855: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$PERL" in /*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_PERL="$PERL" # 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_PERL="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi PERL="$ac_cv_path_PERL" if test -n "$PERL"; then echo "$ac_t""$PERL" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$PERL" && break done ;; *) echo $ac_n "checking for perl""... $ac_c" 1>&6 echo "configure:3892: checking for perl" >&5 echo "$ac_t""$PERL" 1>&6 ;; esac case "$PERL" in '') { echo "configure: error: cannot find perl" 1>&2; exit 1; } ;; esac MIN_PERL_VERSION="5.005" echo $ac_n "checking for perl version $MIN_PERL_VERSION or later""... $ac_c" 1>&6 echo "configure:3902: checking for perl version $MIN_PERL_VERSION or later" >&5 if $PERL -e "require $MIN_PERL_VERSION;" 2>/dev/null; then echo "$ac_t""yes" 1>&6 else { echo "configure: error: cannot find perl $MIN_PERL_VERSION or later" 1>&2; exit 1; } fi if $PERL -Mbytes -e "exit 0" 2>/dev/null; then GASNET_PERL_BYTESFLAG="-Mbytes" else GASNET_PERL_BYTESFLAG= fi if test "$cross_compiling" = "no" ; then echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 echo "configure:3920: checking whether byte ordering is bigendian" >&5 if eval "test \"`echo '$''{'tc_cv_c_bigendian'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { { /* Are we little or big endian? From Harbison&Steele. */ union { long l; char c[sizeof (long)]; } u; u.l = 1; val = (u.c[sizeof (long) - 1] == 1); }; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:3951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then tc_cv_c_bigendian=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* tc_cv_c_bigendian=no fi rm -fr conftest* fi fi echo "$ac_t""$tc_cv_c_bigendian" 1>&6 if test "$tc_cv_c_bigendian" != no; then : WORDS_BIGENDIAN=$tc_cv_c_bigendian fi else echo $ac_n "checking whether byte ordering is bigendian (binary probe)""... $ac_c" 1>&6 echo "configure:3972: checking whether byte ordering is bigendian (binary probe)" >&5 cat >conftest.c <&6 fi if test "$WORDS_BIGENDIAN" = "1"; then cat >> confdefs.h <<\EOF #define WORDS_BIGENDIAN 1 EOF elif test "$WORDS_BIGENDIAN" = ""; then { echo "configure: error: Inconsistent results from endian probe" 1>&2; exit 1; } fi # Extract the first word of "mpcc_r", so it can be a program name with args. set dummy mpcc_r; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:4017: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_have_mpcc_r'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$have_mpcc_r"; then ac_cv_prog_have_mpcc_r="$have_mpcc_r" # 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_have_mpcc_r="yes" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_have_mpcc_r" && ac_cv_prog_have_mpcc_r="no" fi fi have_mpcc_r="$ac_cv_prog_have_mpcc_r" if test -n "$have_mpcc_r"; then echo "$ac_t""$have_mpcc_r" 1>&6 else echo "$ac_t""no" 1>&6 fi ## DOB: this is more trouble than it's worth because so many OS's define ## LITTLE_ENDIAN or BIG_ENDIAN in random and sultry header files ## Code with access to ti_config.h should use #if defined(WORDS_BIGENDIAN) ## If we ever decide we need this (to support other code) then we ## can reintroduce this define with a fresh prefix cat >> confdefs.h <&6 echo "configure:4061: checking for C compiler family" >&5 if eval "test \"`echo '$''{'tc_cv_cc_family'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else tc_cv_cc_family=unknown if test "$tc_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=XLC else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$tc_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=Cray else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$tc_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=GNU else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=Pathscale else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=PGI else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=Intel else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$tc_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=Compaq else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Compaq C cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=Compaq else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Compaq C++ fi if test "$tc_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=Sun else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Sun C cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=Sun else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Sun C++ fi if test "$tc_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=HP else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # HP C cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=HP else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # HP aCC (C++) fi if test "$tc_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=MTA else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$tc_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=KAI else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$tc_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=MIPS else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cc_family=NEC else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi fi echo "$ac_t""$tc_cv_cc_family" 1>&6 if test "$tc_cv_cc_family" != "GNU" ; then case CC in CC) ac_cv_c_compiler_gnu=no GCC="" ;; CXX) ac_cv_cxx_compiler_gnu=no GXX="" ;; esac fi CC_FAMILY=$tc_cv_cc_family CC_UNWRAPPED=$CC case $tc_cv_cc_family in GNU) CC_WRAPPED=$CC ;; *) CC_WRAPPED="\$(top_builddir)/cc-wrapper \$(CC_FAMILY) \$(CC_UNWRAPPED)" ;; esac cc_wrapper_mk="cc-wrapper.mk" echo $ac_n "checking for known buggy compilers""... $ac_c" 1>&6 echo "configure:4451: checking for known buggy compilers" >&5 badgccmsg="" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""CC is gcc 2.96" 1>&6 badgccmsg="Use of gcc/g++ 2.96 for compiling this software is strongly discouraged. \ It is not an official GNU release and has many serious known bugs, especially \ in the optimizer, which may lead to bad code and incorrect runtime behavior. \ Consider using \$CC to select a different compiler." # Check whether --enable-allow-gcc296 or --disable-allow-gcc296 was given. if test "${enable_allow_gcc296+set}" = set; then enableval="$enable_allow_gcc296" : fi case "$enable_allow_gcc296" in '' | no) : { echo "configure: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc296 flag." 1>&2; exit 1; } ;; *) echo "configure: warning: $badgccmsg" 1>&2 ;; esac fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""CC is gcc 3.2.0-2" 1>&6 badgccmsg="Use of gcc/g++ 3.2.0-2 for compiling this software is strongly discouraged. \ This version has a serious known bug in the optimizer regarding structure copying, \ which may lead to bad code and incorrect runtime behavior when optimization is enabled. \ Consider using \$CC to select a different compiler." # Check whether --enable-allow-gcc32 or --disable-allow-gcc32 was given. if test "${enable_allow_gcc32+set}" = set; then enableval="$enable_allow_gcc32" : fi case "$enable_allow_gcc32" in '' | no) : { echo "configure: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc32 flag." 1>&2; exit 1; } ;; *) echo "configure: warning: $badgccmsg" 1>&2 ;; esac fi rm -f conftest* if test -z "$badgccmsg"; then echo "$ac_t""ok" 1>&6 fi if test "$tc_cv_cc_family" = MIPS; then # The MIPSPro C compiler apparently has no identifying markings cat >> confdefs.h <<\EOF #define MIPSPRO_COMPILER 1 EOF # Check whether --enable-mips64 or --disable-mips64 was given. if test "${enable_mips64+set}" = set; then enableval="$enable_mips64" : fi case "$enable_mips64" in '' | no) : mipsabi="-n32" ;; *) mipsabi="-64" ;; esac fi MIPS_ABI_FLAG=$mipsabi if test "$tc_cv_cc_family" = MTA ; then # override target_os for MTA, which may be wrong if cross-compiling target_os="mtx" fi ### # # choose the default optimization flags that tcbuild uses on generated C code # echo $ac_n "checking tcbuild C debug flags""... $ac_c" 1>&6 echo "configure:4591: checking tcbuild C debug flags" >&5 # Check whether --with-tcbuild-cflags-debug or --without-tcbuild-cflags-debug was given. if test "${with_tcbuild_cflags_debug+set}" = set; then withval="$with_tcbuild_cflags_debug" : else case "$tc_cv_cc_family" in GNU) withval="-g3 -O0 -fno-inline" ;; Compaq) withval="-ieee -g" ;; MTA) withval="-g2" ;; HP) withval="-g +ESdbgasm" ;; # need +ESdbgasm to use -g with _asm() *) withval=-g ;; esac fi TCBUILD_CFLAGS_DEBUG="$withval" echo "$ac_t""$withval" 1>&6 echo $ac_n "checking tcbuild common C flags""... $ac_c" 1>&6 echo "configure:4613: checking tcbuild common C flags" >&5 # Check whether --with-tcbuild-cflags-common or --without-tcbuild-cflags-common was given. if test "${with_tcbuild_cflags_common+set}" = set; then withval="$with_tcbuild_cflags_common" : else case "$tc_cv_cc_family" in GNU) withval=-fno-strict-aliasing case "$target_os" in darwin*) withval="$withval -no-cpp-precomp" ;; *) ;; esac ;; Pathscale) withval=-fno-strict-aliasing ;; MIPS) withval="$mipsabi -common -OPT:alias=ANY -diag_error1035 -diag_suppress1116,1171,1174,1209,1552,1681,3604" ;; # no space to keep from confusing makedepend XLC) withval="-qnoansialias" ;; HP) withval="+W612 +W2111 +W2174 +W2177 +W2236 +W2550" ;; Compaq) withval="-noansi_alias" ;; Intel) withval="-wd177 -wd279" # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -wd1011") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -wd1011" # --------------------------------------- echo $ac_n "checking for C compiler flag -wd1011""... $ac_c" 1>&6 echo "configure:4650: checking for C compiler flag -wd1011" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- withval="$withval -wd1011" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -wd1572") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -wd1572" # --------------------------------------- echo $ac_n "checking for C compiler flag -wd1572""... $ac_c" 1>&6 echo "configure:4757: checking for C compiler flag -wd1572" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- withval="$withval -wd1572" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* ;; MTA) withval="-display_error_number -WS 111,174,238,1034" ;; PGI) withval="-Masmkeyword" ;; *) withval= ;; esac if test "$enabled_debug" = "yes" ; then withval="$withval $TCBUILD_CFLAGS_DEBUG" fi withval="$withval $NDEBUG_DEFINES" fi TCBUILD_CFLAGS_COMMON="$withval" echo "$ac_t""$withval" 1>&6 echo $ac_n "checking tcbuild C optimization flags""... $ac_c" 1>&6 echo "configure:4866: checking tcbuild C optimization flags" >&5 # Check whether --with-tcbuild-cflags-optimize or --without-tcbuild-cflags-optimize was given. if test "${with_tcbuild_cflags_optimize+set}" = set; then withval="$with_tcbuild_cflags_optimize" : else if test "$enabled_debug" = "yes" ; then withval="$TCBUILD_CFLAGS_DEBUG" else case "$tc_cv_cc_family" in GNU) withval="-O3" # -finline-limit not available on gcc 2.95 # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -finline-limit=10000") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -finline-limit=10000" # --------------------------------------- echo $ac_n "checking for C compiler flag -finline-limit=10000""... $ac_c" 1>&6 echo "configure:4896: checking for C compiler flag -finline-limit=10000" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- withval="$withval -finline-limit=10000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* ;; Pathscale) withval="-O3 -fno-math-errno -OPT:Olimit=0" ;; Sun) withval=-xO5 ;; Cray) withval=-O2 ;; # DOB: -O3 is unstable on Cray cc MIPS) withval=-O3 ;; Intel) withval=-O3 ;; HP) withval=-O3 ;; MTA) withval=-O3 ;; # MTA C actually ignores -O, optimization controlled by presence/absence of -g PGI) withval=-O2 ;; XLC) # -O5 == -O3 w/ intra-procedural analysis, maxmem=-1 is default for -O3 or higher # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -O5") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -O5" # --------------------------------------- echo $ac_n "checking for C compiler flag -O5""... $ac_c" 1>&6 echo "configure:5014: checking for C compiler flag -O5" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- withval="-O5" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- withval="-O4" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- withval="-O4" fi rm -f ${gasnet_testname}.* # some old xlc's lack -O5 withval="$withval -qarch=auto -qtune=auto -qsmp=noauto -qmaxmem=-1" #GC_CFLAGS_EXTRA="-qipa=level=0" # AIX GC misbehaves if compiled with xlc's full ipa GC_CFLAGS_EXTRA="-qnoipa" # old xlc's lack -qipa=level=0, so use -qnoipa instead ;; Compaq) withval="-fast -O4 -msg_disable extrasemi -tune host -inline speed" # TODO: Compaq inliner sucks - even with -inline speed it ignores some explicit inline directives # -inline all works, but is way overkill (inlines everything in the program) ;; *) withval=-O ;; esac fi fi TCBUILD_CFLAGS_OPTIMIZE="$withval" echo "$ac_t""$withval" 1>&6 # special options to use when preprocessing Titanium code case "$tc_cv_cc_family" in GNU) TI_CPP_OPTS="-Wp,-ftabstop=1" ;; # ensure tab->space conversion doesn't break column numbering HP) TI_CPP_OPTS="+W67" ;; # unrecognized #pragma XLC) TI_CPP_OPTS="-qsuppress=1506-224:1506-229" ;; # suppress messages about unknown pragmas # 1506-229 = empty source file (some linux headers) PGI) TI_CPP_OPTS="-B" ;; # enable C++ comments (otherwise it garbles them) *) TI_CPP_OPTS="" ;; esac cat >> confdefs.h <&6 echo "configure:5142: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:5152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done # detect how many CPUs to use by default for C compilation in tcbuild # --------------------------------------- # [GASNET_ENV_DEFAULT](TCBUILD_CPUS, ) echo $ac_n "checking for TCBUILD_CPUS in environment""... $ac_c" 1>&6 echo "configure:5187: checking for TCBUILD_CPUS in environment" >&5 # Check whether --with-tcbuild-cpus or --without-tcbuild-cpus was given. if test "${with_tcbuild_cpus+set}" = set; then withval="$with_tcbuild_cpus" : fi envval_src_TCBUILD_CPUS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_TCBUILD_CPUS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${TCBUILD_CPUS-__NOT_SET__}" in __NOT_SET__) if test "$with_tcbuild_cpus" != ""; then tc_cv_envvar_TCBUILD_CPUS="$with_tcbuild_cpus" envval_src_TCBUILD_CPUS=given else tc_cv_envvar_TCBUILD_CPUS="" envval_src_TCBUILD_CPUS=default fi ;; *) tc_cv_envvar_TCBUILD_CPUS="$TCBUILD_CPUS" envval_src_TCBUILD_CPUS=given esac fi TCBUILD_CPUS="$tc_cv_envvar_TCBUILD_CPUS" case "$envval_src_TCBUILD_CPUS" in 'cached') echo "$ac_t""using cached value \"$TCBUILD_CPUS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$TCBUILD_CPUS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$TCBUILD_CPUS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$TCBUILD_CPUS" = "" -a "$cross_compiling" != "yes"; then echo $ac_n "checking for frontend CPU count (TCBUILD_CPUS)""... $ac_c" 1>&6 echo "configure:5239: checking for frontend CPU count (TCBUILD_CPUS)" >&5 if eval "test \"`echo '$''{'tc_cv_TCBUILD_CPUS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #include #include #include #ifdef __APPLE__ #include #include #endif int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { #if defined(__APPLE__) int mib[2] = { CTL_HW, HW_NCPU }; size_t len = sizeof(val); if (sysctl(mib, 2, &val, &len, NULL, 0)) exit(1); #elif defined(__sgi) val = sysconf(_SC_NPROC_ONLN); #elif defined(_CRAY) val = sysconf(_SC_CRAY_MAXPES); #else val = sysconf(_SC_NPROCESSORS_ONLN); #endif if (val < 1) exit(1); /* unable to determine */ ; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:5283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then tc_cv_TCBUILD_CPUS=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* tc_cv_TCBUILD_CPUS=no fi rm -fr conftest* fi fi echo "$ac_t""$tc_cv_TCBUILD_CPUS" 1>&6 if test "$tc_cv_TCBUILD_CPUS" != no; then : TCBUILD_CPUS=$tc_cv_TCBUILD_CPUS fi fi if test "$TCBUILD_CPUS" = "" ; then TCBUILD_CPUS=1 # default to 1 fi ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking for C++ compiler family""... $ac_c" 1>&6 echo "configure:5319: checking for C++ compiler family" >&5 if eval "test \"`echo '$''{'tc_cv_cxx_family'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else tc_cv_cxx_family=unknown if test "$tc_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=XLC else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$tc_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=Cray else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$tc_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=GNU else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=Pathscale else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=PGI else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=Intel else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$tc_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=Compaq else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Compaq C cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=Compaq else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Compaq C++ fi if test "$tc_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=Sun else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Sun C cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=Sun else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Sun C++ fi if test "$tc_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=HP else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # HP C cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=HP else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # HP aCC (C++) fi if test "$tc_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=MTA else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$tc_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=KAI else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$tc_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=MIPS else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* tc_cv_cxx_family=NEC else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi fi echo "$ac_t""$tc_cv_cxx_family" 1>&6 if test "$tc_cv_cxx_family" != "GNU" ; then case CXX in CC) ac_cv_c_compiler_gnu=no GCC="" ;; CXX) ac_cv_cxx_compiler_gnu=no GXX="" ;; esac fi CXX_FAMILY=$tc_cv_cxx_family CXX_UNWRAPPED=$CXX case $tc_cv_cxx_family in GNU) CXX_WRAPPED=$CXX ;; *) CXX_WRAPPED="\$(top_builddir)/cc-wrapper \$(CXX_FAMILY) \$(CXX_UNWRAPPED)" ;; esac cc_wrapper_mk="cc-wrapper.mk" echo $ac_n "checking for known buggy compilers""... $ac_c" 1>&6 echo "configure:5709: checking for known buggy compilers" >&5 badgccmsg="" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""CXX is gcc 2.96" 1>&6 badgccmsg="Use of gcc/g++ 2.96 for compiling this software is strongly discouraged. \ It is not an official GNU release and has many serious known bugs, especially \ in the optimizer, which may lead to bad code and incorrect runtime behavior. \ Consider using \$CXX to select a different compiler." # Check whether --enable-allow-gcc296 or --disable-allow-gcc296 was given. if test "${enable_allow_gcc296+set}" = set; then enableval="$enable_allow_gcc296" : fi case "$enable_allow_gcc296" in '' | no) : { echo "configure: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc296 flag." 1>&2; exit 1; } ;; *) echo "configure: warning: $badgccmsg" 1>&2 ;; esac fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""CXX is gcc 3.2.0-2" 1>&6 badgccmsg="Use of gcc/g++ 3.2.0-2 for compiling this software is strongly discouraged. \ This version has a serious known bug in the optimizer regarding structure copying, \ which may lead to bad code and incorrect runtime behavior when optimization is enabled. \ Consider using \$CXX to select a different compiler." # Check whether --enable-allow-gcc32 or --disable-allow-gcc32 was given. if test "${enable_allow_gcc32+set}" = set; then enableval="$enable_allow_gcc32" : fi case "$enable_allow_gcc32" in '' | no) : { echo "configure: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc32 flag." 1>&2; exit 1; } ;; *) echo "configure: warning: $badgccmsg" 1>&2 ;; esac fi rm -f conftest* if test -z "$badgccmsg"; then echo "$ac_t""ok" 1>&6 fi 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_cross if test "$tc_cv_cxx_family" = KAI; then CXX_FAMILY_KAI_TRUE= CXX_FAMILY_KAI_FALSE='#' else CXX_FAMILY_KAI_TRUE='#' CXX_FAMILY_KAI_FALSE= fi if test "$tc_cv_cxx_family" = MIPS; then CXX_FAMILY_MIPS_TRUE= CXX_FAMILY_MIPS_FALSE='#' else CXX_FAMILY_MIPS_TRUE='#' CXX_FAMILY_MIPS_FALSE= fi if test "$tc_cv_cxx_family" = MIPS; then AR="$TOP_SRCDIR/ar-wrapper" # use a special ar for MIPSPro C++ fi # grab safe C++ flags that don't include tc-specific stuff GENERIC_CXXFLAGS="$CXXFLAGS" # CXXFLAGSE is how we tell the C++ compiler that we may use exceptions CXXFLAGSE="" case "$tc_cv_cxx_family" in GNU) CXXFLAGSE="-fexceptions" CXXFLAGSDIAG="-Wall" CXXFLAGS="$CXXFLAGS $CXXFLAGSDIAG -fno-exceptions" ;; PGI) CXXFLAGSE="--exceptions" CXXFLAGSDIAG="-w" # apparently has no way to indep control warnings CXXFLAGS="$CXXFLAGS $CXXFLAGSDIAG --no_exceptions" ;; KAI) CXXFLAGSE="--exceptions" #CXXFLAGS="$CXXFLAGS --no_exceptions --display_error_number --diag_suppress 611 --diag_suppress 610" ;; # Kai C++ requires all files to have the same exceptions setting # also need the -tlocal template instantiation mechanism to ensure # that the sublibraries which comprise tc (e.g. libomega) all instatiate # their required templates correctly CXXFLAGSDIAG="--diag_suppress 611 --diag_suppress 610" CXXFLAGS="$CXXFLAGS $CXXFLAGSE --display_error_number $CXXFLAGSDIAG -tlocal" ;; MIPS) CXXFLAGSE="-LANG:exceptions=ON" CXXFLAGSDIAG="-diag_error 1035 -diag_suppress 1171,1174,1209,1552,1681,1682,3624" CXXFLAGS="$CXXFLAGS $mipsabi -LANG:exceptions=OFF -LANG:std -common $CXXFLAGSDIAG -I$TOP_SRCDIR/c-headers" ;; XLC) CXXFLAGSE="-qeh" CXXFLAGSDIAG="-qsuppress=1540-1090:1540-1087:1540-1088:1540-0809" # 1540-1088 = exception specification being ignored warnings with -qnoeh # 1540-0809 = empty source file (some linux headers) # -qrtti required for dynamic_cast<>, which we use extensively CXXFLAGS="$CXXFLAGS $CXXFLAGSDIAG -qrtti -qnoeh" case "$target_os" in # -qweaksymbol added in AIX5.1/APAR-IY31207 or AIX5.2, fixes link-time warnings on STL aix*) CXXFLAGS="$CXXFLAGS -qweaksymbol" ;; esac ;; MTA) CXXFLAGSDIAG="-display_error_number -WS 111,174,238,616,1091,1092" CXXFLAGSE="-exceptions" CXXFLAGS="$CXXFLAGS $CXXFLAGSDIAG" ;; HP) CXXFLAGSDIAG="+W229 +W612 +W749 +W829 +W921 +W2111 +W2174 +W2177 +W2236 +W2550" CXXFLAGSE="" # exceptions on by default unless +noeh is passed CXXFLAGS="-AA $CXXFLAGS $CXXFLAGSDIAG" ;; Intel) CXXFLAGSE="" CXXFLAGSDIAG="-wd279 -wd654 -wd1125" # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS -wd1572") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS -wd1572" # --------------------------------------- echo $ac_n "checking for C++ compiler flag -wd1572""... $ac_c" 1>&6 echo "configure:5903: checking for C++ compiler flag -wd1572" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CXXFLAGSDIAG="$CXXFLAGSDIAG -wd1572" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* CXXFLAGS="$CXXFLAGS $CXXFLAGSDIAG" ;; Cray) CXXFLAGSE="-hexceptions" CXXFLAGSDIAG="-hnomessage=236:611:997" # -hnew_for_init enforces the ANSI C++ spec regarding declarations in for loop headers # -hinstantiate=local ensures templates are properly instantiated in the sub-libraries linked into tc # other potentially useful options: -hnoimplicitinclude # -hnoexceptions breaks iostream header, so don't use it CXXFLAGS="$CXXFLAGS $CXXFLAGSDIAG -hnew_for_init -hinstantiate=local" ;; esac echo $ac_n "checking for libgcc link flags""... $ac_c" 1>&6 echo "configure:6008: checking for libgcc link flags" >&5 if eval "test \"`echo '$''{'tc_cv_lib_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$GCC" = yes; then #LIBGCC="`$CC -v 2>&1 | sed -n 's:^Reading specs from \(.*\)/specs$:-L\1 -lgcc:p'`" LIBGCC="-L`$CC -print-libgcc-file-name | xargs dirname` -lgcc" if test -z "$LIBGCC"; then { echo "configure: error: cannot find libgcc" 1>&2; exit 1; } fi fi tc_cv_lib_gcc="$LIBGCC" fi echo "$ac_t""$tc_cv_lib_gcc" 1>&6 LIBGCC="$tc_cv_lib_gcc" ######################################################################## ## ## Cluster computing libraries ## # -lm should only live in LIBM, and only if we have it (not in LIBS) # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS" # --------------------------------------- case "$target_os" in darwin*) # libm is just an alias for the system default lib # Naming it explicitly causes linker failures when linking w/ mpich ;; *) # sin should be in everyone's libm if they've got one. echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 echo "configure:6059: checking for sin in -lm" >&5 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&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" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBM="-lm" else echo "$ac_t""no" 1>&6 LIBM="" fi ;; esac # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LDFLAGS, "$LDFLAGS -L/usr/lib ${with_ens:+-L$with_ens}") if test "$_pushcnt_LDFLAGS" = "" ; then _pushcnt_LDFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LDFLAGS_$_pushcnt_LDFLAGS=\$LDFLAGS _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LDFLAGS="$LDFLAGS -L/usr/lib ${with_ens:+-L$with_ens}" # --------------------------------------- echo $ac_n "checking for NameServer_Init in -lens""... $ac_c" 1>&6 echo "configure:6133: checking for NameServer_Init in -lens" >&5 ac_lib_var=`echo ens'_'NameServer_Init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lens $LIBS" cat > conftest.$ac_ext <&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" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 have_libens=yes else echo "$ac_t""no" 1>&6 fi # --------------------------------------- # [GASNET_POPVAR](LDFLAGS) if test "$_pushcnt_LDFLAGS" -ge "1"; then _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LDFLAGS=\$_pushedvar_LDFLAGS_$_pushcnt_LDFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo $ac_n "checking for Glib_Initialize in -lglunix""... $ac_c" 1>&6 echo "configure:6186: checking for Glib_Initialize in -lglunix" >&5 ac_lib_var=`echo glunix'_'Glib_Initialize | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lglunix -lsocket $LIBS" cat > conftest.$ac_ext <&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" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 have_libglunix=yes else echo "$ac_t""no" 1>&6 fi fnname="A""M_Init" # work around an annoying autoconf BUG echo $ac_n "checking for $fnname in -lam2""... $ac_c" 1>&6 echo "configure:6227: checking for $fnname in -lam2" >&5 ac_lib_var=`echo am2'_'$fnname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lam2 $LIBS" cat > conftest.$ac_ext <&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" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 have_libam2=yes else echo "$ac_t""no" 1>&6 fi # --------------------------------------- # [GASNET_PUSHVAR](LDFLAGS, "$LDFLAGS ${with_amvia:+-L$with_amvia} ${with_via:+-L$with_via}") if test "$_pushcnt_LDFLAGS" = "" ; then _pushcnt_LDFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LDFLAGS_$_pushcnt_LDFLAGS=\$LDFLAGS _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LDFLAGS="$LDFLAGS ${with_amvia:+-L$with_amvia} ${with_via:+-L$with_via}" # --------------------------------------- echo $ac_n "checking for $fnname in -lamvia""... $ac_c" 1>&6 echo "configure:6284: checking for $fnname in -lamvia" >&5 ac_lib_var=`echo amvia'_'$fnname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lamvia -lvia $LIBS" cat > conftest.$ac_ext <&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" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 have_libamvia=yes else echo "$ac_t""no" 1>&6 fi # --------------------------------------- # [GASNET_POPVAR](LDFLAGS) if test "$_pushcnt_LDFLAGS" -ge "1"; then _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LDFLAGS=\$_pushedvar_LDFLAGS_$_pushcnt_LDFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # Extract the first word of "$REXEC rexec", so it can be a program name with args. set dummy $REXEC rexec; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:6340: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_REXEC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$REXEC" in /*) ac_cv_path_REXEC="$REXEC" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_REXEC="$REXEC" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$with_rexec:$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_REXEC="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi REXEC="$ac_cv_path_REXEC" if test -n "$REXEC"; then echo "$ac_t""$REXEC" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for Millennium rexec""... $ac_c" 1>&6 echo "configure:6374: checking for Millennium rexec" >&5 # We're only interested in the Millennium version of rexec # the standard UNIX command 'rexec' has completely different behavior and is currently of no use to us if test -n "$REXEC" -a -n "`$REXEC 2> /dev/null | grep -- '-n #nodes'`"; then have_rexec=yes TIC_REXEC_DEFINES="-DREXEC" echo "$ac_t""yes" 1>&6 else have_rexec=no TIC_REXEC_DEFINES="" echo "$ac_t""no" 1>&6 fi if test "$have_libens" = yes ; then # need -L/usr/lib here or we'll get the wrong pthread lib on millennium TIC_ENS_LD_FLAGS="-L/usr/lib ${with_ens:+-L$with_ens -Wl,-R$with_ens}" TIC_ENS_INCLUDES="${with_ens:+-I$with_includes}" TIC_ENS_LIBS="-lens" cat >> confdefs.h <<\EOF #define HAVE_ENAMESERVER_H 1 EOF else TIC_ENS_LD_FLAGS="" TIC_ENS_INCLUDES="" TIC_ENS_LIBS="" fi if test "$have_libglunix" = yes ; then TIC_GLUNIX_DEFINES="-DGLUNIX" TIC_GLUNIX_INCLUDES="-I/usr/now/include" TIC_GLUNIX_LIBS="-lglunix -lsocket" else TIC_GLUNIX_DEFINES="" TIC_GLUNIX_INCLUDES="" TIC_GLUNIX_LIBS="" fi # --------------------------------------- # [GASNET_ENV_DEFAULT](TI_CSPAWN_CMD, ) echo $ac_n "checking for TI_CSPAWN_CMD in environment""... $ac_c" 1>&6 echo "configure:6419: checking for TI_CSPAWN_CMD in environment" >&5 # Check whether --with-ti-cspawn-cmd or --without-ti-cspawn-cmd was given. if test "${with_ti_cspawn_cmd+set}" = set; then withval="$with_ti_cspawn_cmd" : fi envval_src_TI_CSPAWN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_TI_CSPAWN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${TI_CSPAWN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_ti_cspawn_cmd" != ""; then tc_cv_envvar_TI_CSPAWN_CMD="$with_ti_cspawn_cmd" envval_src_TI_CSPAWN_CMD=given else tc_cv_envvar_TI_CSPAWN_CMD="" envval_src_TI_CSPAWN_CMD=default fi ;; *) tc_cv_envvar_TI_CSPAWN_CMD="$TI_CSPAWN_CMD" envval_src_TI_CSPAWN_CMD=given esac fi TI_CSPAWN_CMD="$tc_cv_envvar_TI_CSPAWN_CMD" case "$envval_src_TI_CSPAWN_CMD" in 'cached') echo "$ac_t""using cached value \"$TI_CSPAWN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$TI_CSPAWN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$TI_CSPAWN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$TI_CSPAWN_CMD" != "" ; then cat >> confdefs.h <&6 echo "configure:6530: checking for thr_create in -lthread" >&5 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lthread $LIBS" cat > conftest.$ac_ext <&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" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 have_solthread=yes else echo "$ac_t""no" 1>&6 have_solthread=no fi TIC_THREAD_DEFINES="-D_REENTRANT" TIC_THREAD_LIBS="-lthread" fi TIC_DL_LIBS="-ldl" ;; linux*) TIC_MACHINE_DEFINES="-DLINUX" TIC_THREAD_DEFINES="-D_REENTRANT" TIC_THREAD_LIBS="-lpthread" TIC_DL_LIBS="-ldl" ;; freebsd*) TIC_MACHINE_DEFINES="-DFREEBSD" TIC_THREAD_DEFINES="-D_REENTRANT" TIC_THREAD_LIBS="-pthread" TIC_DL_LIBS="" ;; cygwin*) TIC_MACHINE_DEFINES="-DCYGWIN" TIC_THREAD_DEFINES="-D_REENTRANT" TIC_THREAD_LIBS="-lpthread" TIC_DL_LIBS="" ;; osf*) TIC_MACHINE_DEFINES="-DOSF" TIC_THREAD_DEFINES="-D_REENTRANT -D_THREAD_SAFE" TIC_THREAD_LIBS="-pthread -lpthreads -lrt" # need -lrt for sem_init TIC_DL_LIBS="" ;; irix*) TIC_MACHINE_DEFINES="-DIRIX" TIC_THREAD_DEFINES="-D_REENTRANT" TIC_THREAD_LIBS="-lpthread" TIC_DL_LIBS="" ;; hpux*) TIC_MACHINE_DEFINES="-DHPUX" TIC_THREAD_DEFINES="-D_REENTRANT" TIC_THREAD_LIBS="-lpthread -lrt" TIC_DL_LIBS="" ;; darwin*) TIC_MACHINE_DEFINES="-DMACOSX" TIC_THREAD_DEFINES="-D_REENTRANT" TIC_THREAD_LIBS="" TIC_DL_LIBS="" ;; aix*) TIC_MACHINE_DEFINES="-DAIX" TIC_THREAD_DEFINES="-D_REENTRANT -D_THREAD_SAFE" TIC_THREAD_LIBS="-lpthread" TIC_DL_LIBS="" ;; mtx*) TIC_MACHINE_DEFINES="-DMTA" TIC_THREAD_DEFINES="" TIC_THREAD_LIBS="-lpthread" ;; superux*) TIC_MACHINE_DEFINES="-DSUPERUX" TIC_THREAD_DEFINES="-D_REENTRANT" TIC_THREAD_LIBS="-lpthread" ;; unicos*) case "$target_cpu" in x1*) TIC_MACHINE_DEFINES="-DUNICOS -DCRAY -DCRAYX1" ;; alphaev5*) TIC_MACHINE_DEFINES="-DUNICOS -DCRAY -DCRAYT3E" use_pthreads=no # pthreads are horribly broken on the T3E ;; *) TIC_MACHINE_DEFINES="-DUNICOS -DCRAY" ;; esac TIC_THREAD_DEFINES="-D_REENTRANT" TIC_THREAD_LIBS="-lpthread" TIC_DL_LIBS="" ;; *) echo "configure: warning: unknown OS - you may need to update the configure script" 1>&2 TIC_THREAD_DEFINES="-D_REENTRANT -D_THREAD_SAFE" # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="" # --------------------------------------- echo $ac_n "checking for library containing pthread_create""... $ac_c" 1>&6 echo "configure:6665: checking for library containing pthread_create" >&5 if eval "test \"`echo '$''{'ac_cv_search_pthread_create'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_pthread_create="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_create="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_pthread_create" = "no" && for i in pthread pthreads; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_create="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_pthread_create" 1>&6 if test "$ac_cv_search_pthread_create" != "no"; then test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS" else : fi TIC_THREAD_LIBS="$LIBS" # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- ;; esac have_pthread=no if test "$use_pthreads" != "no"; then # --------------------------------------- # [GASNET_ENV_DEFAULT](PTHREADS_INCLUDE, ) echo $ac_n "checking for PTHREADS_INCLUDE in environment""... $ac_c" 1>&6 echo "configure:6751: checking for PTHREADS_INCLUDE in environment" >&5 # Check whether --with-pthreads-include or --without-pthreads-include was given. if test "${with_pthreads_include+set}" = set; then withval="$with_pthreads_include" : fi envval_src_PTHREADS_INCLUDE="cached" if eval "test \"`echo '$''{'tc_cv_envvar_PTHREADS_INCLUDE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${PTHREADS_INCLUDE-__NOT_SET__}" in __NOT_SET__) if test "$with_pthreads_include" != ""; then tc_cv_envvar_PTHREADS_INCLUDE="$with_pthreads_include" envval_src_PTHREADS_INCLUDE=given else tc_cv_envvar_PTHREADS_INCLUDE="" envval_src_PTHREADS_INCLUDE=default fi ;; *) tc_cv_envvar_PTHREADS_INCLUDE="$PTHREADS_INCLUDE" envval_src_PTHREADS_INCLUDE=given esac fi PTHREADS_INCLUDE="$tc_cv_envvar_PTHREADS_INCLUDE" case "$envval_src_PTHREADS_INCLUDE" in 'cached') echo "$ac_t""using cached value \"$PTHREADS_INCLUDE\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$PTHREADS_INCLUDE\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$PTHREADS_INCLUDE\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](PTHREADS_LIB, ) echo $ac_n "checking for PTHREADS_LIB in environment""... $ac_c" 1>&6 echo "configure:6807: checking for PTHREADS_LIB in environment" >&5 # Check whether --with-pthreads-lib or --without-pthreads-lib was given. if test "${with_pthreads_lib+set}" = set; then withval="$with_pthreads_lib" : fi envval_src_PTHREADS_LIB="cached" if eval "test \"`echo '$''{'tc_cv_envvar_PTHREADS_LIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${PTHREADS_LIB-__NOT_SET__}" in __NOT_SET__) if test "$with_pthreads_lib" != ""; then tc_cv_envvar_PTHREADS_LIB="$with_pthreads_lib" envval_src_PTHREADS_LIB=given else tc_cv_envvar_PTHREADS_LIB="" envval_src_PTHREADS_LIB=default fi ;; *) tc_cv_envvar_PTHREADS_LIB="$PTHREADS_LIB" envval_src_PTHREADS_LIB=given esac fi PTHREADS_LIB="$tc_cv_envvar_PTHREADS_LIB" case "$envval_src_PTHREADS_LIB" in 'cached') echo "$ac_t""using cached value \"$PTHREADS_LIB\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$PTHREADS_LIB\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$PTHREADS_LIB\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test -n "$PTHREADS_INCLUDE" || test -n "$PTHREADS_LIB"; then if test -z "$PTHREADS_INCLUDE" || test -z "$PTHREADS_LIB"; then { echo "configure: error: 'Both \$PTHREADS_INCLUDE and \$PTHREADS_LIB must be set, or neither'" 1>&2; exit 1; } fi # test to see if files exist if test ! -f "$PTHREADS_INCLUDE/pthread.h"; then { echo "configure: error: "Could not find $PTHREADS_INCLUDE/pthread.h: bad \$PTHREADS_INCLUDE"" 1>&2; exit 1; } fi if test ! -f "$PTHREADS_LIB/libpthread.a" || test ! -f "$PTHREADS_LIB/libpthread.so" ; then { echo "configure: error: "Could not find $PTHREADS_LIB/libpthread.{a,so}: bad \$PTHREADS_LIB"" 1>&2; exit 1; } fi CFLAGS="-I$PTHREADS_INCLUDE -L$PTHREADS_LIB $CFLAGS" fi echo $ac_n "checking for working pthreads support""... $ac_c" 1>&6 echo "configure:6871: checking for working pthreads support" >&5 # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $TIC_THREAD_DEFINES") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $TIC_THREAD_DEFINES" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS $TIC_THREAD_LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS $TIC_THREAD_LIBS" # --------------------------------------- cat > conftest.$ac_ext < int main() { pthread_create(NULL,NULL,NULL,NULL); ; return 0; } EOF if { (eval echo configure:6910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* have_pthread=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- echo "$ac_t""$have_pthread" 1>&6 else pthread_reason="was disabled" fi if test "$use_pthreads$have_pthread" = "yesno" ; then { echo "configure: error: --enable-pthreads passed but no working pthreads support found" 1>&2; exit 1; } fi if test "$use_pthreads$have_pthread" = "tryno" ; then echo "configure: warning: No working pthreads support found - disabling pthreads support" 1>&2 pthread_reason="appear to be missing or broken" fi if test "$have_pthread" = no ; then TIC_THREAD_DEFINES="" TIC_THREAD_LIBS="" else # --------------------------------------- # [GASNET_PUSHVAR](CPPFLAGS, "$CPPFLAGS $TIC_THREAD_DEFINES") if test "$_pushcnt_CPPFLAGS" = "" ; then _pushcnt_CPPFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS=\$CPPFLAGS _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CPPFLAGS="$CPPFLAGS $TIC_THREAD_DEFINES" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS $TIC_THREAD_LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS $TIC_THREAD_LIBS" # --------------------------------------- # define HAVE_PTHREAD_H for ac_hdr in pthread.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:6994: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:7004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done echo $ac_n "checking for library containing pthread_setconcurrency""... $ac_c" 1>&6 echo "configure:7033: checking for library containing pthread_setconcurrency" >&5 if eval "test \"`echo '$''{'ac_cv_search_pthread_setconcurrency'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_pthread_setconcurrency="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_setconcurrency="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_pthread_setconcurrency" = "no" && for i in pthread pthreads; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_setconcurrency="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_pthread_setconcurrency" 1>&6 if test "$ac_cv_search_pthread_setconcurrency" != "no"; then test "$ac_cv_search_pthread_setconcurrency" = "none required" || LIBS="$ac_cv_search_pthread_setconcurrency $LIBS" cat >> confdefs.h <<\EOF #define HAVE_PTHREAD_SETCONCURRENCY 1 EOF else : fi echo $ac_n "checking for library containing pthread_kill_other_threads_np""... $ac_c" 1>&6 echo "configure:7098: checking for library containing pthread_kill_other_threads_np" >&5 if eval "test \"`echo '$''{'ac_cv_search_pthread_kill_other_threads_np'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_pthread_kill_other_threads_np="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_kill_other_threads_np="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_pthread_kill_other_threads_np" = "no" && for i in pthread pthreads; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_kill_other_threads_np="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_pthread_kill_other_threads_np" 1>&6 if test "$ac_cv_search_pthread_kill_other_threads_np" != "no"; then test "$ac_cv_search_pthread_kill_other_threads_np" = "none required" || LIBS="$ac_cv_search_pthread_kill_other_threads_np $LIBS" cat >> confdefs.h <<\EOF #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1 EOF else : fi echo $ac_n "checking for library containing pthread_attr_setguardsize""... $ac_c" 1>&6 echo "configure:7163: checking for library containing pthread_attr_setguardsize" >&5 if eval "test \"`echo '$''{'ac_cv_search_pthread_attr_setguardsize'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_pthread_attr_setguardsize="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_attr_setguardsize="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_pthread_attr_setguardsize" = "no" && for i in pthread pthreads c_r; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_attr_setguardsize="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_pthread_attr_setguardsize" 1>&6 if test "$ac_cv_search_pthread_attr_setguardsize" != "no"; then test "$ac_cv_search_pthread_attr_setguardsize" = "none required" || LIBS="$ac_cv_search_pthread_attr_setguardsize $LIBS" cat >> confdefs.h <<\EOF #define HAVE_PTHREAD_ATTR_SETGUARDSIZE 1 EOF else : fi GASNET_THREAD_LIBS="$LIBS" # --------------------------------------- # [GASNET_POPVAR](CPPFLAGS) if test "$_pushcnt_CPPFLAGS" -ge "1"; then _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CPPFLAGS=\$_pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CPPFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- fi if test "$have_pthread" = yes; then HAVE_PTHREAD_TRUE= HAVE_PTHREAD_FALSE='#' else HAVE_PTHREAD_TRUE='#' HAVE_PTHREAD_FALSE= fi # AMUDP and AMMPI currently supported on all systems supported_amudp=yes supported_ammpi=yes # but allow it to be disabled # Check whether --enable-amudp or --disable-amudp was given. if test "${enable_amudp+set}" = set; then enableval="$enable_amudp" : fi case "$enable_amudp" in '' | yes) : ;; *) supported_amudp=no ;; esac # Check whether --enable-ammpi or --disable-ammpi was given. if test "${enable_ammpi+set}" = set; then enableval="$enable_ammpi" : fi case "$enable_ammpi" in '' | yes) : ;; *) supported_ammpi=no ;; esac if test "$enabled_debug" = "yes" ; then TIC_AMX_DEFINES="-DAMX_DEBUG" else TIC_AMX_DEFINES="-DAMX_NDEBUG" fi if test $supported_amudp = yes; then # detect libraries necessary for udp-* backends # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="" # --------------------------------------- echo $ac_n "checking for library containing ueth_init""... $ac_c" 1>&6 echo "configure:7320: checking for library containing ueth_init" >&5 if eval "test \"`echo '$''{'ac_cv_search_ueth_init'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_ueth_init="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_ueth_init="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_ueth_init" = "no" && for i in ueth; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_ueth_init="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_ueth_init" 1>&6 if test "$ac_cv_search_ueth_init" != "no"; then test "$ac_cv_search_ueth_init" = "none required" || LIBS="$ac_cv_search_ueth_init $LIBS" have_ueth=yes else : have_ueth=no fi if test "$have_ueth" = "yes" ; then TIC_UETH_DEFINES="-DUETH" TIC_UDP_LIBS="$LIBS" have_amudp=yes else LIBS="" echo $ac_n "checking for library containing socket""... $ac_c" 1>&6 echo "configure:7388: checking for library containing socket" >&5 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_socket="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_socket="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_socket" = "no" && for i in socket; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_socket="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_socket" 1>&6 if test "$ac_cv_search_socket" != "no"; then test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" have_udp=yes else : have_udp=no fi echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6 echo "configure:7450: checking for library containing gethostbyname" >&5 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_gethostbyname="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_gethostbyname="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_gethostbyname="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6 if test "$ac_cv_search_gethostbyname" != "no"; then test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" else : have_udp=no fi if test "$have_udp" = "yes" ; then TIC_UDP_LIBS="$LIBS" have_amudp=yes fi fi # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- TIC_UDP_LIBS="$TIC_UDP_LIBS $cxxLIBS" fi if test "$supported_amudp$have_amudp" = yesyes; then USE_AMUDP_TRUE= USE_AMUDP_FALSE='#' else USE_AMUDP_TRUE='#' USE_AMUDP_FALSE= fi #--------------------------------------------------------------------------------------------------------------- # Configure MPI, if the AMMPI backends are supported # (In the future it would be nice to try and discover MPI setup automatically) if test $supported_ammpi = yes; then # user can explicitly configure MPI by setting MPI_CC, MPI_CFLAGS and MPI_LIBS have_mpi=yes # start by assuming they have it if test "$enabled_debug" = "yes" ; then SAFE_MPI_CFLAGS="-g" else SAFE_MPI_CFLAGS="-O" fi case "$target_os" in solaris*) # I don't have access to a Solaris cluster with MPI (other than NOW) # but these seem like sane defaults # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, mpicc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:7563: checking for MPI_CC in environment" >&5 # Check whether --with-mpi-cc or --without-mpi-cc was given. if test "${with_mpi_cc+set}" = set; then withval="$with_mpi_cc" : fi envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then tc_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else tc_cv_envvar_MPI_CC="mpicc" envval_src_MPI_CC=default fi ;; *) tc_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$tc_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:7621: checking for MPI_CFLAGS in environment" >&5 # Check whether --with-mpi-cflags or --without-mpi-cflags was given. if test "${with_mpi_cflags+set}" = set; then withval="$with_mpi_cflags" : fi envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $TCBUILD_CFLAGS_COMMON $TCBUILD_CFLAGS_OPTIMIZE) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:7678: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="$TCBUILD_CFLAGS_COMMON $TCBUILD_CFLAGS_OPTIMIZE" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:7767: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, ) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:7896: checking for MPI_LIBS in environment" >&5 # Check whether --with-mpi-libs or --without-mpi-libs was given. if test "${with_mpi_libs+set}" = set; then withval="$with_mpi_libs" : fi envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then tc_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else tc_cv_envvar_MPI_LIBS="" envval_src_MPI_LIBS=default fi ;; *) tc_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$tc_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpirun -np %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:7952: checking for MPIRUN_CMD in environment" >&5 # Check whether --with-mpirun-cmd or --without-mpirun-cmd was given. if test "${with_mpirun_cmd+set}" = set; then withval="$with_mpirun_cmd" : fi envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then tc_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else tc_cv_envvar_MPIRUN_CMD="mpirun -np %N %C" envval_src_MPIRUN_CMD=default fi ;; *) tc_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$tc_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; linux*) # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, mpicc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:8010: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then tc_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else tc_cv_envvar_MPI_CC="mpicc" envval_src_MPI_CC=default fi ;; *) tc_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$tc_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:8061: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $TCBUILD_CFLAGS_COMMON $TCBUILD_CFLAGS_OPTIMIZE) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:8111: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="$TCBUILD_CFLAGS_COMMON $TCBUILD_CFLAGS_OPTIMIZE" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:8200: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, ) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:8329: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then tc_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else tc_cv_envvar_MPI_LIBS="" envval_src_MPI_LIBS=default fi ;; *) tc_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$tc_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpirun -np %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:8378: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then tc_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else tc_cv_envvar_MPIRUN_CMD="mpirun -np %N %C" envval_src_MPIRUN_CMD=default fi ;; *) tc_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$tc_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; irix*) # use SGI native MPI library # user may need to do a "module load mpt" to make this work # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, cc $mipsabi) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:8431: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then tc_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else tc_cv_envvar_MPI_CC="cc $mipsabi" envval_src_MPI_CC=default fi ;; *) tc_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$tc_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # -common gets us correct linking behavior for tentative definitions BASIC_MPI_CFLAGS="-diag_error 1035 -diag_suppress1171,1174,1209,1552 -common" if test "$enabled_debug" = "no" ; then BASIC_MPI_CFLAGS="-O2 $BASIC_MPI_CFLAGS" else BASIC_MPI_CFLAGS="-g $BASIC_MPI_CFLAGS" fi if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:8489: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $BASIC_MPI_CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:8539: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="$BASIC_MPI_CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:8628: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, -lmpi) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:8757: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then tc_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else tc_cv_envvar_MPI_LIBS="-lmpi" envval_src_MPI_LIBS=default fi ;; *) tc_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$tc_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpirun -np %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:8806: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then tc_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else tc_cv_envvar_MPIRUN_CMD="mpirun -np %N %C" envval_src_MPIRUN_CMD=default fi ;; *) tc_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$tc_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; aix*) # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, mpcc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:8857: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then tc_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else tc_cv_envvar_MPI_CC="mpcc" envval_src_MPI_CC=default fi ;; *) tc_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$tc_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- BASIC_MPI_CFLAGS="" if test "$enabled_debug" = "no" ; then BASIC_MPI_CFLAGS="-O3 -qstrict -qarch=auto -qtune=auto -qsmp=noauto -qmaxmem=-1 $BASIC_MPI_CFLAGS" else BASIC_MPI_CFLAGS="-g $BASIC_MPI_CFLAGS" fi if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:8914: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $BASIC_MPI_CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:8964: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="$BASIC_MPI_CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:9053: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, -Wl,-bbigtoc) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:9182: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then tc_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else tc_cv_envvar_MPI_LIBS="-Wl,-bbigtoc" envval_src_MPI_LIBS=default fi ;; *) tc_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$tc_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, poe %C -nodes %N -tasks_per_node 1 -rmpool 1 -euilib us -retry 1 -retrycount 10000 -msg_api mpi) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:9231: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then tc_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else tc_cv_envvar_MPIRUN_CMD="poe %C -nodes %N -tasks_per_node 1 -rmpool 1 -euilib us -retry 1 -retrycount 10000 -msg_api mpi" envval_src_MPIRUN_CMD=default fi ;; *) tc_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$tc_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; osf*) # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, cc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:9282: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then tc_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else tc_cv_envvar_MPI_CC="cc" envval_src_MPI_CC=default fi ;; *) tc_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$tc_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- BASIC_MPI_CFLAGS="-msg_disable extrasemi" if test "$enabled_debug" = "no" ; then BASIC_MPI_CFLAGS="-fast -noifo -O4 -tune host -inline speed $BASIC_MPI_CFLAGS" else BASIC_MPI_CFLAGS="-g $BASIC_MPI_CFLAGS" fi if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:9339: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $BASIC_MPI_CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:9389: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="$BASIC_MPI_CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:9478: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, -lmpi -lelan -lrt) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:9607: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then tc_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else tc_cv_envvar_MPI_LIBS="-lmpi -lelan -lrt" envval_src_MPI_LIBS=default fi ;; *) tc_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$tc_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, prun -N %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:9656: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then tc_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else tc_cv_envvar_MPIRUN_CMD="prun -N %N %C" envval_src_MPIRUN_CMD=default fi ;; *) tc_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$tc_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; unicos*) # Cray cc - need to enable private global vars and disable a silly warning # user may need to do a "module load mpt" to make this work # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, cc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:9709: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then tc_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else tc_cv_envvar_MPI_CC="cc" envval_src_MPI_CC=default fi ;; *) tc_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$tc_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- case "$target_cpu" in alphaev5) # T3E BASIC_MPI_CFLAGS="-hnomessage=236 -htaskprivate $LIBCM" # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpprun -n %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:9761: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then tc_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else tc_cv_envvar_MPIRUN_CMD="mpprun -n %N %C" envval_src_MPIRUN_CMD=default fi ;; *) tc_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$tc_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; *) # X1 BASIC_MPI_CFLAGS="-hnomessage=236 $LIBCM" # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, aprun -n %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:9813: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then tc_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else tc_cv_envvar_MPIRUN_CMD="aprun -n %N %C" envval_src_MPIRUN_CMD=default fi ;; *) tc_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$tc_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; esac if test "$enabled_debug" = "no" ; then BASIC_MPI_CFLAGS="-O2 $BASIC_MPI_CFLAGS" else BASIC_MPI_CFLAGS="-g $BASIC_MPI_CFLAGS" fi if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:9871: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $BASIC_MPI_CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:9921: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="$BASIC_MPI_CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:10010: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, -lpthread) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:10139: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then tc_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else tc_cv_envvar_MPI_LIBS="-lpthread" envval_src_MPI_LIBS=default fi ;; *) tc_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$tc_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; mtx*) # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, cc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:10190: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then tc_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else tc_cv_envvar_MPI_CC="cc" envval_src_MPI_CC=default fi ;; *) tc_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$tc_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:10241: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $TCBUILD_CFLAGS_COMMON $TCBUILD_CFLAGS_OPTIMIZE) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:10291: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="$TCBUILD_CFLAGS_COMMON $TCBUILD_CFLAGS_OPTIMIZE" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:10380: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, -lmpi) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:10509: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then tc_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else tc_cv_envvar_MPI_LIBS="-lmpi" envval_src_MPI_LIBS=default fi ;; *) tc_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$tc_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mtarun -t %N -m %N /usr/bin/env _MPI_MT=%N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:10558: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then tc_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else tc_cv_envvar_MPIRUN_CMD="mtarun -t %N -m %N /usr/bin/env _MPI_MT=%N %C" envval_src_MPIRUN_CMD=default fi ;; *) tc_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$tc_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; superux*) # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, mpic++ -Xa) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:10609: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then tc_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else tc_cv_envvar_MPI_CC="mpic++ -Xa" envval_src_MPI_CC=default fi ;; *) tc_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$tc_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:10660: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $TCBUILD_CFLAGS_COMMON $TCBUILD_CFLAGS_OPTIMIZE) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:10710: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="$TCBUILD_CFLAGS_COMMON $TCBUILD_CFLAGS_OPTIMIZE" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:10799: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, ) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:10928: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then tc_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else tc_cv_envvar_MPI_LIBS="" envval_src_MPI_LIBS=default fi ;; *) tc_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$tc_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpirun -np %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:10977: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then tc_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else tc_cv_envvar_MPIRUN_CMD="mpirun -np %N %C" envval_src_MPIRUN_CMD=default fi ;; *) tc_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$tc_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; *) # unknown OS - if user doesn't provide info, nothing we can do # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, mpicc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:11029: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then tc_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else tc_cv_envvar_MPI_CC="mpicc" envval_src_MPI_CC=default fi ;; *) tc_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$tc_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:11080: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $TCBUILD_CFLAGS_COMMON $TCBUILD_CFLAGS_OPTIMIZE) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:11130: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then tc_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else tc_cv_envvar_MPI_CFLAGS="$TCBUILD_CFLAGS_COMMON $TCBUILD_CFLAGS_OPTIMIZE" envval_src_MPI_CFLAGS=default fi ;; *) tc_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$tc_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:11219: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, ) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:11348: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then tc_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else tc_cv_envvar_MPI_LIBS="" envval_src_MPI_LIBS=default fi ;; *) tc_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$tc_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpirun -np %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:11397: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then tc_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else tc_cv_envvar_MPIRUN_CMD="mpirun -np %N %C" envval_src_MPIRUN_CMD=default fi ;; *) tc_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$tc_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$MPI_CC" = ""; then echo "configure: warning: I don't know how to build MPI programs on your system" 1>&2 echo "configure: warning: consider using \$MPI_CC \$MPI_CFLAGS and \$MPI_LIBS to configure MPI support for your site if you want the mpi-* backends" 1>&2 have_mpi=no fi ;; esac # ---------------------------------------------- # [GASNET_GETFULLPATH](MPI_CC) if test "$tc_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$MPI_CC" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$MPI_CC" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then # clear cached values, in case this is a pushed var unset tc_cv__gfp_fullprogname_MPI_CC unset ac_cv_path_tc_cv__gfp_fullprogname_MPI_CC # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_MPI_CC, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:11463: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_tc_cv__gfp_fullprogname_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$tc_cv__gfp_fullprogname_MPI_CC" in /*) ac_cv_path_tc_cv__gfp_fullprogname_MPI_CC="$tc_cv__gfp_fullprogname_MPI_CC" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_tc_cv__gfp_fullprogname_MPI_CC="$tc_cv__gfp_fullprogname_MPI_CC" # 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_tc_cv__gfp_fullprogname_MPI_CC="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi tc_cv__gfp_fullprogname_MPI_CC="$ac_cv_path_tc_cv__gfp_fullprogname_MPI_CC" if test -n "$tc_cv__gfp_fullprogname_MPI_CC"; then echo "$ac_t""$tc_cv__gfp_fullprogname_MPI_CC" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for full path expansion of MPI_CC""... $ac_c" 1>&6 echo "configure:11496: checking for full path expansion of MPI_CC" >&5 if test "$tc_cv__gfp_fullprogname_MPI_CC" != "" ; then MPI_CC="$tc_cv__gfp_fullprogname_MPI_CC $gasnet_gfp_progargs" fi echo "$ac_t""$MPI_CC" 1>&6 fi fi # ---------------------------------------------- # now run a basic test of the MPI configuration to make sure it works if test $have_mpi = yes; then echo $ac_n "checking building MPI helper object""... $ac_c" 1>&6 echo "configure:11510: checking building MPI helper object" >&5 # we link in an object compiled with CC that uses libc, to ensure that's working MPIHELPER_BASE=conftest_cfunc MPIHELPER_SRC=$MPIHELPER_BASE.c MPIHELPER_OBJ=$MPIHELPER_BASE.o MPIHELPER_LIBS="$MPIHELPER_OBJ $LIBM" MPIHELPER_CODE="extern int mpihelper_cint; extern void mpihelper_cfunc(int val); mpihelper_cfunc(mpihelper_cint);" cat >$MPIHELPER_BASE.c <<_GASNET_EOF #include #include #include #include int mpihelper_cint = 0xFFFF; extern void mpihelper_cfunc(int val) { char s[255], s2[255]; int a[40] = {1}; /* trigger Intel C issue */ assert(val == mpihelper_cint); s[4] = '\0'; s[5] = (char)(sin((double)val)+cos((double)val))+sqrt((double)val)+log((double)val); strcpy(s2, s); memcpy(s2, s, strlen(s)); memmove(s2, s, strlen(s)); memcpy(s2, s, 4); memmove(s2, s, 4); fprintf(stdout,"hi\n"); } _GASNET_EOF compile="$CC $CFLAGS $CPPFLAGS -c $MPIHELPER_SRC" eval echo "$compile" >&5 if eval $compile 2>&5 && test -s $MPIHELPER_OBJ ; then echo "$ac_t""ok" 1>&6 else { echo "configure: error: failed while building MPI helper object" 1>&2; exit 1; } fi echo $ac_n "checking for working MPI configuration""... $ac_c" 1>&6 echo "configure:11544: checking for working MPI configuration" >&5 # we need a clean slate here because MPI config may be totally different # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$MPI_CFLAGS" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CPPFLAGS, "") if test "$_pushcnt_CPPFLAGS" = "" ; then _pushcnt_CPPFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS=\$CPPFLAGS _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CPPFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LDFLAGS, "") if test "$_pushcnt_LDFLAGS" = "" ; then _pushcnt_LDFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LDFLAGS_$_pushcnt_LDFLAGS=\$LDFLAGS _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LDFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$MPIHELPER_LIBS $MPI_LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$MPIHELPER_LIBS $MPI_LIBS" # --------------------------------------- # we just try to link an MPI app - running MPI apps is a whole new can of worms cat > conftest.$ac_ext < int main() { $MPIHELPER_CODE MPI_Init((void*)0,(void*)0); MPI_Finalize(); ; return 0; } EOF if { (eval echo configure:11636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* mpi_test_worked=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* mpi_test_worked=no fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CPPFLAGS) if test "$_pushcnt_CPPFLAGS" -ge "1"; then _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CPPFLAGS=\$_pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CPPFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LDFLAGS) if test "$_pushcnt_LDFLAGS" -ge "1"; then _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LDFLAGS=\$_pushedvar_LDFLAGS_$_pushcnt_LDFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- rm -f $MPIHELPER_OBJ if test "$mpi_test_worked" = yes ; then echo "$ac_t""yes" 1>&6 if echo "$MPI_CFLAGS" | grep -- "-DAMMPI_COEXIST_WITH_AM" > /dev/null ; then # -DAMMPI_COEXIST_WITH_AM must be included whenever ammpi.h is compiled, or not at all MPI_DEFINES="$MPI_DEFINES -DAMMPI_COEXIST_WITH_AM" fi else echo "$ac_t""no" 1>&6 echo "configure: warning: build test failed: I don't know how to build MPI programs on your system -- see $TOP_BUILDDIR/config.log for details" 1>&2 echo "configure: warning: consider using \$MPI_CC \$MPI_CFLAGS and \$MPI_LIBS to configure MPI support for your site if you want the mpi-* backends" 1>&2 have_mpi=no fi fi fi # compiler to be used to build AMMPI, and linker for AMMPI-based backends # compiler flags (optimization, includes, etc) to be used with above compiler when building AMMPI # libs and ldflags that must be used when linking AMMPI-based backend # preprocessor defs to be used for all client code that includes ammpi.h (not including AMMPI library itself) # prototype command used to run mpi programs # --------------------------------------- # [GASNET_ENV_DEFAULT](TI_MPIRUN_CMD, "$MPIRUN_CMD") echo $ac_n "checking for TI_MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:11734: checking for TI_MPIRUN_CMD in environment" >&5 # Check whether --with-ti-mpirun-cmd or --without-ti-mpirun-cmd was given. if test "${with_ti_mpirun_cmd+set}" = set; then withval="$with_ti_mpirun_cmd" : fi envval_src_TI_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_TI_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${TI_MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_ti_mpirun_cmd" != ""; then tc_cv_envvar_TI_MPIRUN_CMD="$with_ti_mpirun_cmd" envval_src_TI_MPIRUN_CMD=given else tc_cv_envvar_TI_MPIRUN_CMD=""$MPIRUN_CMD"" envval_src_TI_MPIRUN_CMD=default fi ;; *) tc_cv_envvar_TI_MPIRUN_CMD="$TI_MPIRUN_CMD" envval_src_TI_MPIRUN_CMD=given esac fi TI_MPIRUN_CMD="$tc_cv_envvar_TI_MPIRUN_CMD" case "$envval_src_TI_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$TI_MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$TI_MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$TI_MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # prototype command used by tcrun to run MPI programs if test "$have_mpi$supported_ammpi" = yesyes; then USE_AMMPI_TRUE= USE_AMMPI_FALSE='#' else USE_AMMPI_TRUE='#' USE_AMMPI_FALSE= fi #-------------------------------------------------------------------------------------------------------- splitc=yes if test "$splitc" = yes; then BACKEND_TIC_TRUE= BACKEND_TIC_FALSE='#' else BACKEND_TIC_TRUE='#' BACKEND_TIC_FALSE= fi #--------------------------------------------------------------------------------- # Configure GASNet subdirs="runtime/gasnet" # Enable GASNET_SEGMENT_EVERYTHING configuration we require ac_configure_args="$ac_configure_args --enable-segment-everything" ac_configure_args="$ac_configure_args --with-tool-prefix=ti" GASNET_TOOLS_INCLUDES="-I\$(top_srcdir)/runtime/gasnet -I\$(top_srcdir)/runtime/gasnet/other -I\$(top_builddir)/runtime/gasnet" # TODO: Here we just take the user's word for it that these backends are available. # GASNet's configure script may actually reject some of these... # Check whether --enable-elan or --disable-elan was given. if test "${enable_elan+set}" = set; then enableval="$enable_elan" : fi case "$enable_elan" in '' | no) : ;; *) enable_gasnet_elan=yes ;; esac # Check whether --enable-lapi or --disable-lapi was given. if test "${enable_lapi+set}" = set; then enableval="$enable_lapi" : fi case "$enable_lapi" in '' | no) : ;; *) enable_gasnet_lapi=yes ;; esac # Check whether --enable-shmem or --disable-shmem was given. if test "${enable_shmem+set}" = set; then enableval="$enable_shmem" : fi case "$enable_shmem" in '' | no) : ;; *) enable_gasnet_shmem=yes ;; esac # Check whether --enable-vapi or --disable-vapi was given. if test "${enable_vapi+set}" = set; then enableval="$enable_vapi" : fi case "$enable_vapi" in '' | no) : ;; *) enable_gasnet_vapi=yes ;; esac if test "$enable_gasnet_vapi" = yes; then # --------------------------------------- # [GASNET_ENV_DEFAULT](VAPIRUN_CMD, %E/gasnetrun_vapi %V -E %L -np %N %C) echo $ac_n "checking for VAPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:11910: checking for VAPIRUN_CMD in environment" >&5 # Check whether --with-vapirun-cmd or --without-vapirun-cmd was given. if test "${with_vapirun_cmd+set}" = set; then withval="$with_vapirun_cmd" : fi envval_src_VAPIRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_VAPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${VAPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_vapirun_cmd" != ""; then tc_cv_envvar_VAPIRUN_CMD="$with_vapirun_cmd" envval_src_VAPIRUN_CMD=given else tc_cv_envvar_VAPIRUN_CMD="%E/gasnetrun_vapi %V -E %L -np %N %C" envval_src_VAPIRUN_CMD=default fi ;; *) tc_cv_envvar_VAPIRUN_CMD="$VAPIRUN_CMD" envval_src_VAPIRUN_CMD=given esac fi VAPIRUN_CMD="$tc_cv_envvar_VAPIRUN_CMD" case "$envval_src_VAPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$VAPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$VAPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$VAPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- fi # Check whether --enable-gm or --disable-gm was given. if test "${enable_gm+set}" = set; then enableval="$enable_gm" : fi case "$enable_gm" in '' | no) : ;; *) enable_gasnet_gm=yes ;; esac if test "$enable_gasnet_gm" = yes; then # --------------------------------------- # [GASNET_ENV_DEFAULT](GMRUN_CMD, %E/gasnetrun_gm %V -E %L -np %N %C) echo $ac_n "checking for GMRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:11984: checking for GMRUN_CMD in environment" >&5 # Check whether --with-gmrun-cmd or --without-gmrun-cmd was given. if test "${with_gmrun_cmd+set}" = set; then withval="$with_gmrun_cmd" : fi envval_src_GMRUN_CMD="cached" if eval "test \"`echo '$''{'tc_cv_envvar_GMRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${GMRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_gmrun_cmd" != ""; then tc_cv_envvar_GMRUN_CMD="$with_gmrun_cmd" envval_src_GMRUN_CMD=given else tc_cv_envvar_GMRUN_CMD="%E/gasnetrun_gm %V -E %L -np %N %C" envval_src_GMRUN_CMD=default fi ;; *) tc_cv_envvar_GMRUN_CMD="$GMRUN_CMD" envval_src_GMRUN_CMD=given esac fi GMRUN_CMD="$tc_cv_envvar_GMRUN_CMD" case "$envval_src_GMRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$GMRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$GMRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$GMRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- fi # Check whether --enable-mpi or --disable-mpi was given. if test "${enable_mpi+set}" = set; then enableval="$enable_mpi" : fi case "$enable_mpi" in '' | no) : ;; *) echo "configure: warning: The gasnet-mpi-* backends are for debugging purposes only." 1>&2 echo "configure: warning: They are expected to perform no better or worse than the mpi-cluster-* backends." 1>&2 enable_gasnet_mpi=yes ;; esac ######################################################################## # Check whether --enable-srs or --disable-srs was given. if test "${enable_srs+set}" = set; then enableval="$enable_srs" : fi case "$enable_srs" in '' | no) : ;; *) prefix="/project/cs/titanium/srs/${target}/${PACKAGE}/${VERSION}" datadir="/project/cs/titanium/srs/share/${PACKAGE}/${VERSION}" ac_configure_args="$ac_configure_args --prefix=$prefix --datadir=$datadir" enable_sglobal_inference=yes ;; esac if test "$enable_srs" = yes; then SRS_TRUE= SRS_FALSE='#' else SRS_TRUE='#' SRS_FALSE= fi # Check whether --enable-debug-memory-usage or --disable-debug-memory-usage was given. if test "${enable_debug_memory_usage+set}" = set; then enableval="$enable_debug_memory_usage" : fi case "$enable_debug_memory_usage" in '' | no) : ;; *) cat >> confdefs.h <<\EOF #define DEBUG_MEMORY_USAGE 1 EOF ;; esac if test "$enable_debug_memory_usage" = yes; then DEBUG_MEMORY_USAGE_TRUE= DEBUG_MEMORY_USAGE_FALSE='#' else DEBUG_MEMORY_USAGE_TRUE='#' DEBUG_MEMORY_USAGE_FALSE= fi # Check whether --enable-split-treenodes-hack or --disable-split-treenodes-hack was given. if test "${enable_split_treenodes_hack+set}" = set; then enableval="$enable_split_treenodes_hack" : fi if test "$enable_split_treenodes_hack" = yes; then SPLIT_TREENODES_CC_TRUE= SPLIT_TREENODES_CC_FALSE='#' else SPLIT_TREENODES_CC_TRUE='#' SPLIT_TREENODES_CC_FALSE= fi ######################################################################## # The PAPI library # Check whether --enable-papi or --disable-papi was given. if test "${enable_papi+set}" = set; then enableval="$enable_papi" : fi case "$enable_papi" in '' | yes) : ;; *) disable_papi=yes ;; esac if test "$disable_papi" != "yes" ; then # Check whether --with-papi or --without-papi was given. if test "${with_papi+set}" = set; then withval="$with_papi" papi="$withval" fi if test "$papi" = ""; then PAPI_INCLUDES="" LIBPAPI="-lpapi" else PAPI_INCLUDES="-I$papi/include" LIBPAPI="-L$papi/lib -lpapi" fi # Check whether --with-pmapi or --without-pmapi was given. if test "${with_pmapi+set}" = set; then withval="$with_pmapi" pmapi="$withval" fi 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_cross # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS" # --------------------------------------- case "$target_os" in aix*) LIBPAPI="$LIBPAPI -L$pmapi -lpmapi" ;; solaris*) LIBPAPI="$LIBPAPI -lcpc" ;; *) ;; esac # --------------------------------------- # [GASNET_ENV_DEFAULT](LIBPAPI_EXTRA, "") echo $ac_n "checking for LIBPAPI_EXTRA in environment""... $ac_c" 1>&6 echo "configure:12213: checking for LIBPAPI_EXTRA in environment" >&5 # Check whether --with-libpapi-extra or --without-libpapi-extra was given. if test "${with_libpapi_extra+set}" = set; then withval="$with_libpapi_extra" : fi envval_src_LIBPAPI_EXTRA="cached" if eval "test \"`echo '$''{'tc_cv_envvar_LIBPAPI_EXTRA'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${LIBPAPI_EXTRA-__NOT_SET__}" in __NOT_SET__) if test "$with_libpapi_extra" != ""; then tc_cv_envvar_LIBPAPI_EXTRA="$with_libpapi_extra" envval_src_LIBPAPI_EXTRA=given else tc_cv_envvar_LIBPAPI_EXTRA="""" envval_src_LIBPAPI_EXTRA=default fi ;; *) tc_cv_envvar_LIBPAPI_EXTRA="$LIBPAPI_EXTRA" envval_src_LIBPAPI_EXTRA=given esac fi LIBPAPI_EXTRA="$tc_cv_envvar_LIBPAPI_EXTRA" case "$envval_src_LIBPAPI_EXTRA" in 'cached') echo "$ac_t""using cached value \"$LIBPAPI_EXTRA\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$LIBPAPI_EXTRA\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$LIBPAPI_EXTRA\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- LIBPAPI="$LIBPAPI $LIBPAPI_EXTRA" # --------------------------------------- # [GASNET_PUSHVAR](LDFLAGS, "$LDFLAGS $PAPI_INCLUDES $LIBPAPI") if test "$_pushcnt_LDFLAGS" = "" ; then _pushcnt_LDFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LDFLAGS_$_pushcnt_LDFLAGS=\$LDFLAGS _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LDFLAGS="$LDFLAGS $PAPI_INCLUDES $LIBPAPI" # --------------------------------------- echo $ac_n "checking for PAPI_lock in -lpapi""... $ac_c" 1>&6 echo "configure:12281: checking for PAPI_lock in -lpapi" >&5 ac_lib_var=`echo papi'_'PAPI_lock | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lpapi $LIBS" cat > conftest.$ac_ext <&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" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 have_papi=yes else echo "$ac_t""no" 1>&6 have_papi=no fi # --------------------------------------- # [GASNET_POPVAR](LDFLAGS) if test "$_pushcnt_LDFLAGS" -ge "1"; then _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LDFLAGS=\$_pushedvar_LDFLAGS_$_pushcnt_LDFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" 1>&2; exit 1; } fi # --------------------------------------- if test "$have_papi" = "yes"; then cat >> confdefs.h <<\EOF #define USE_PAPI 1 EOF # --------------------------------------- # [GASNET_PUSHVAR](LDFLAGS, "$LDFLAGS $PAPI_INCLUDES $LIBPAPI") if test "$_pushcnt_LDFLAGS" = "" ; then _pushcnt_LDFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LDFLAGS_$_pushcnt_LDFLAGS=\$LDFLAGS _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LDFLAGS="$LDFLAGS $PAPI_INCLUDES $LIBPAPI" # --------------------------------------- echo $ac_n "checking for PAPI_multiplex_init in -lpapi""... $ac_c" 1>&6 echo "configure:12357: checking for PAPI_multiplex_init in -lpapi" >&5 ac_lib_var=`echo papi'_'PAPI_multiplex_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lpapi $LIBS" cat > conftest.$ac_ext <&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" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_PAPI_MULTIPLEX_INIT 1 EOF else echo "$ac_t""no" 1>&6 fi # --------------------------------------- # [GASNET_POPVAR](LDFLAGS) if test "$_pushcnt_LDFLAGS" -ge "1"; then _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LDFLAGS=\$_pushedvar_LDFLAGS_$_pushcnt_LDFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else LIBPAPI="" PAPI_INCLUDES="" fi # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- 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_cross fi ######################################################################## # The Stoptifu library cat >> confdefs.h <<\EOF #define BUILD_OMEGA 1 EOF # Check whether --with-omega or --without-omega was given. if test "${with_omega+set}" = set; then withval="$with_omega" omega="$withval" fi if test -z "$omega"; then omega="\$(srcdir)/runtime/omega/omega_lib/obj" fi # Check whether --with-OMEGA_INCLUDES or --without-OMEGA_INCLUDES was given. if test "${with_OMEGA_INCLUDES+set}" = set; then withval="$with_OMEGA_INCLUDES" OMEGA_INCLUDES="$withval" fi if test -z "$OMEGA_INCLUDES"; then OMEGA_INCLUDES="-Iomega-include -I../omega-include" else OMEGA_INCLUDES="-I$OMEGA_INCLUDES" fi ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LDFLAGS, "$LDFLAGS -L$omega") if test "$_pushcnt_LDFLAGS" = "" ; then _pushcnt_LDFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LDFLAGS_$_pushcnt_LDFLAGS=\$LDFLAGS _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LDFLAGS="$LDFLAGS -L$omega" # --------------------------------------- echo $ac_n "checking for Must_Be_Subset__FRC14Omega_RelationT0 in -lomega""... $ac_c" 1>&6 echo "configure:12514: checking for Must_Be_Subset__FRC14Omega_RelationT0 in -lomega" >&5 ac_lib_var=`echo omega'_'Must_Be_Subset__FRC14Omega_RelationT0 | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lomega $LIBS" cat > conftest.$ac_ext <&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" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBOMEGA="-L$omega -lomega" else echo "$ac_t""no" 1>&6 LIBOMEGA="" fi # --------------------------------------- # [GASNET_POPVAR](LDFLAGS) if test "$_pushcnt_LDFLAGS" -ge "1"; then _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LDFLAGS=\$_pushedvar_LDFLAGS_$_pushcnt_LDFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" 1>&2; exit 1; } fi # --------------------------------------- if test "x$LIBOMEGA" = "x"; then # --------------------------------------- # [GASNET_PUSHVAR](LDFLAGS, "$LDFLAGS -L$omega") if test "$_pushcnt_LDFLAGS" = "" ; then _pushcnt_LDFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LDFLAGS_$_pushcnt_LDFLAGS=\$LDFLAGS _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LDFLAGS="$LDFLAGS -L$omega" # --------------------------------------- echo $ac_n "checking for _Z14Must_Be_SubsetRK14Omega_RelationS1_ in -lomega""... $ac_c" 1>&6 echo "configure:12588: checking for _Z14Must_Be_SubsetRK14Omega_RelationS1_ in -lomega" >&5 ac_lib_var=`echo omega'_'_Z14Must_Be_SubsetRK14Omega_RelationS1_ | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lomega $LIBS" cat > conftest.$ac_ext <&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" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBOMEGA="-L$omega -lomega" else echo "$ac_t""no" 1>&6 LIBOMEGA="" fi # --------------------------------------- # [GASNET_POPVAR](LDFLAGS) if test "$_pushcnt_LDFLAGS" -ge "1"; then _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LDFLAGS=\$_pushedvar_LDFLAGS_$_pushcnt_LDFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi if test "x$LIBOMEGA" = "x"; then BUILD_OMEGA_TRUE= BUILD_OMEGA_FALSE='#' else BUILD_OMEGA_TRUE='#' BUILD_OMEGA_FALSE= fi if test "x$LIBOMEGA" = "x"; then LIBOMEGA=runtime/omega-runtime/omega_lib/obj/libomega.a fi # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- 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_cross ######################################################################## # Sglobal inference # Check whether --enable-sglobal-inference or --disable-sglobal-inference was given. if test "${enable_sglobal_inference+set}" = set; then enableval="$enable_sglobal_inference" : fi # Check whether --enable-sglobal-inference or --disable-sglobal-inference was given. if test "${enable_sglobal_inference+set}" = set; then enableval="$enable_sglobal_inference" : fi case "$enable_sglobal_inference" in no) enable_sglobal_inference=no ;; yes) enable_sglobal_inference=yes ;; *) enable_sglobal_inference=yes ;; esac if test "$enable_sglobal_inference" = yes ; then cat >> confdefs.h <<\EOF #define USE_SGLOBAL_INFERENCE 1 EOF fi if test "$enable_sglobal_inference" = yes; then USE_SGLOBAL_INFERENCE_TRUE= USE_SGLOBAL_INFERENCE_FALSE='#' else USE_SGLOBAL_INFERENCE_TRUE='#' USE_SGLOBAL_INFERENCE_FALSE= fi MIN_TIARITY=3 # min allowable is 3-d MAX_TIARITY=3 # default is 3-d echo $ac_n "checking for MAX_TIARITY""... $ac_c" 1>&6 echo "configure:12721: checking for MAX_TIARITY" >&5 TIARITY_MSG="Must provide a --with-max-tiarity >= $MIN_TIARITY" # Check whether --with-max-tiarity or --without-max-tiarity was given. if test "${with_max_tiarity+set}" = set; then withval="$with_max_tiarity" case "$withval" in no) : { echo "configure: error: $TIARITY_MSG" 1>&2; exit 1; } ;; *) case "$withval" in [1-9]*) if test "$withval" -ge "$MIN_TIARITY" ; then : # ok (test this way so non-numeric fails) else { echo "configure: error: $TIARITY_MSG" 1>&2; exit 1; } fi MAX_TIARITY="$withval" ;; *) { echo "configure: error: $TIARITY_MSG" 1>&2; exit 1; } ;; esac ;; esac else : fi echo "$ac_t""$MAX_TIARITY" 1>&6 cat >> confdefs.h <&6 echo "configure:12788: checking for garbage collector support" >&5 case "$target" in *-blrts-* | *-catamount-*) setGcSupport=no ;; esac if test "$setGcSupport" = auto ; then case "$target_os" in solaris* | linux-gnu* | cygwin* | irix* | hpux* | aix* | osf* | darwin* | freebsd*) setGcSupport=yes ;; *) setGcSupport=no ;; esac fi echo "$ac_t""$setGcSupport" 1>&6 fi # Set the proper values if test "$setGcSupport" = no ; then cat >> confdefs.h <<\EOF #define USE_GC_NONE 1 EOF TIC_MACHINE_DEFINES="$TIC_MACHINE_DEFINES -DUSE_GC_NONE" setGcPthreadSupport=no else echo $ac_n "checking for pthreaded garbage collector support""... $ac_c" 1>&6 echo "configure:12812: checking for pthreaded garbage collector support" >&5 setGcPthreadSupport=yes # Set other GC flags case "$target_os" in solaris*) GC_PTHREAD_CFLAGS='-DGC_SOLARIS_PTHREADS' ;; linux-gnu*) GC_PTHREAD_CFLAGS='-DGC_LINUX_THREADS' ;; cygwin*) GC_PTHREAD_CFLAGS='-DGC_WIN32_THREADS' ;; osf*) GC_PTHREAD_CFLAGS='-DGC_OSF1_THREADS' ;; irix*) GC_PTHREAD_CFLAGS='-DGC_IRIX_THREADS' ;; hpux*) GC_PTHREAD_CFLAGS='-DGC_HPUX_THREADS' ;; freebsd*) GC_PTHREAD_CFLAGS='-DGC_FREEBSD_THREADS' ;; aix*) GC_PTHREAD_CFLAGS='-DGC_AIX_THREADS' ;; darwin*) GC_PTHREAD_CFLAGS='-DGC_DARWIN_THREADS' ;; *) # threaded GC disabled by default on untested systems GC_PTHREAD_CFLAGS='-DUSE_GC_NONE' setGcPthreadSupport=no ;; esac echo "$ac_t""$setGcPthreadSupport" 1>&6 # GC requires these to be included in all files that make pthread calls TIC_THREAD_DEFINES="$TIC_THREAD_DEFINES $GC_PTHREAD_CFLAGS" fi if test "$setGcSupport" = no; then USE_GC_NONE_TRUE= USE_GC_NONE_FALSE='#' else USE_GC_NONE_TRUE='#' USE_GC_NONE_FALSE= fi if test "$setGcPthreadSupport" = yes; then USE_GC_PTHREADS_TRUE= USE_GC_PTHREADS_FALSE='#' else USE_GC_PTHREADS_TRUE='#' USE_GC_PTHREADS_FALSE= fi if test "$setGcSupport" = "yes" ; then GC_UNIPROC=runtime/gc-build/uniproc subdirs="runtime/gasnet $GC_UNIPROC" fi if test "$setGcPthreadSupport" = "yes" ; then GC_PTHREAD=runtime/gc-build/pthread subdirs="runtime/gasnet $GC_UNIPROC $GC_PTHREAD" fi # Check whether --enable-tc-gc or --disable-tc-gc was given. if test "${enable_tc_gc+set}" = set; then enableval="$enable_tc_gc" : fi case "$enable_tc_gc" in '' | no) : ;; *) ;; esac if test "$setGcSupport$enable_tc_gc" = "yesyes" ; then cat >> confdefs.h <<\EOF #define USE_TC_GC 1 EOF fi if test "$setGcSupport$enable_tc_gc" = "yesyes"; then USE_TC_GC_TRUE= USE_TC_GC_FALSE='#' else USE_TC_GC_TRUE='#' USE_TC_GC_FALSE= fi ######################################################################## # No Runtime Autobuild # Check whether --enable-runtime-autobuild or --disable-runtime-autobuild was given. if test "${enable_runtime_autobuild+set}" = set; then enableval="$enable_runtime_autobuild" : fi case "$enable_runtime_autobuild" in '' | yes) : ;; *) setNoRuntimeAutobuild=yes ;; esac if test "$setNoRuntimeAutobuild" = yes; then USE_NO_RUNTIME_AUTOBUILD_TRUE= USE_NO_RUNTIME_AUTOBUILD_FALSE='#' else USE_NO_RUNTIME_AUTOBUILD_TRUE='#' USE_NO_RUNTIME_AUTOBUILD_FALSE= fi case "$target_os" in cygwin*) EXESUFFIX='.exe' ;; *) EXESUFFIX='' ;; esac cat >> confdefs.h <&6 echo "configure:12965: checking for alloca in C code" >&5 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 echo "configure:12972: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *p = (char *)alloca(2 * sizeof(int)); ; return 0; } EOF if { (eval echo configure:12984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_alloca_h=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_alloca_h=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 if test $ac_cv_header_alloca_h = yes; then cat >> confdefs.h <<\EOF #define HAVE_ALLOCA_H 1 EOF fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 echo "configure:13005: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < # define alloca _alloca # else # if HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif # endif #endif int main() { char *p = (char *) alloca(1); ; return 0; } EOF if { (eval echo configure:13038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_func_alloca_works=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 if test $ac_cv_func_alloca_works = yes; then cat >> confdefs.h <<\EOF #define HAVE_ALLOCA 1 EOF fi if test $ac_cv_func_alloca_works = no; then # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=alloca.${ac_objext} cat >> confdefs.h <<\EOF #define C_ALLOCA 1 EOF echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 echo "configure:13070: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5 | egrep "webecray" >/dev/null 2>&1; then rm -rf conftest* ac_cv_os_cray=yes else rm -rf conftest* ac_cv_os_cray=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_os_cray" 1>&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:13100: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* 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 $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif ; return 0; } EOF if { (eval echo configure:13128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <&6 fi done fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 echo "configure:13155: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext < addr) ? 1 : -1; } main () { exit (find_stack_direction() < 0); } EOF if { (eval echo configure:13182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_c_stack_direction=-1 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 cat >> confdefs.h <&6 echo "configure:13221: checking for CROSS_SIGHUP in environment" >&5 # Check whether --with-cross-sighup or --without-cross-sighup was given. if test "${with_cross_sighup+set}" = set; then withval="$with_cross_sighup" : fi envval_src_CROSS_SIGHUP="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CROSS_SIGHUP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIGHUP-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sighup" != ""; then tc_cv_envvar_CROSS_SIGHUP="$with_cross_sighup" envval_src_CROSS_SIGHUP=given else tc_cv_envvar_CROSS_SIGHUP="" envval_src_CROSS_SIGHUP=default fi ;; *) tc_cv_envvar_CROSS_SIGHUP="$CROSS_SIGHUP" envval_src_CROSS_SIGHUP=given esac fi CROSS_SIGHUP="$tc_cv_envvar_CROSS_SIGHUP" case "$envval_src_CROSS_SIGHUP" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIGHUP\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIGHUP\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIGHUP\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIGHUP" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIGHUP be set for cross-compilation" 1>&2; exit 1; } else SIGHUP="$CROSS_SIGHUP" fi fi else echo $ac_n "checking value of SIGHUP""... $ac_c" 1>&6 echo "configure:13281: checking value of SIGHUP" >&5 if eval "test \"`echo '$''{'tc_cv_SIGHUP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #include int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { val = (int)SIGHUP;; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:13304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then tc_cv_SIGHUP=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* tc_cv_SIGHUP=no fi rm -fr conftest* fi fi echo "$ac_t""$tc_cv_SIGHUP" 1>&6 if test "$tc_cv_SIGHUP" != no; then : SIGHUP=$tc_cv_SIGHUP fi fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIGINT, ) echo $ac_n "checking for CROSS_SIGINT in environment""... $ac_c" 1>&6 echo "configure:13338: checking for CROSS_SIGINT in environment" >&5 # Check whether --with-cross-sigint or --without-cross-sigint was given. if test "${with_cross_sigint+set}" = set; then withval="$with_cross_sigint" : fi envval_src_CROSS_SIGINT="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CROSS_SIGINT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIGINT-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sigint" != ""; then tc_cv_envvar_CROSS_SIGINT="$with_cross_sigint" envval_src_CROSS_SIGINT=given else tc_cv_envvar_CROSS_SIGINT="" envval_src_CROSS_SIGINT=default fi ;; *) tc_cv_envvar_CROSS_SIGINT="$CROSS_SIGINT" envval_src_CROSS_SIGINT=given esac fi CROSS_SIGINT="$tc_cv_envvar_CROSS_SIGINT" case "$envval_src_CROSS_SIGINT" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIGINT\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIGINT\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIGINT\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIGINT" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIGINT be set for cross-compilation" 1>&2; exit 1; } else SIGINT="$CROSS_SIGINT" fi fi else echo $ac_n "checking value of SIGINT""... $ac_c" 1>&6 echo "configure:13398: checking value of SIGINT" >&5 if eval "test \"`echo '$''{'tc_cv_SIGINT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #include int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { val = (int)SIGINT;; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:13421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then tc_cv_SIGINT=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* tc_cv_SIGINT=no fi rm -fr conftest* fi fi echo "$ac_t""$tc_cv_SIGINT" 1>&6 if test "$tc_cv_SIGINT" != no; then : SIGINT=$tc_cv_SIGINT fi fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIGQUIT, ) echo $ac_n "checking for CROSS_SIGQUIT in environment""... $ac_c" 1>&6 echo "configure:13455: checking for CROSS_SIGQUIT in environment" >&5 # Check whether --with-cross-sigquit or --without-cross-sigquit was given. if test "${with_cross_sigquit+set}" = set; then withval="$with_cross_sigquit" : fi envval_src_CROSS_SIGQUIT="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CROSS_SIGQUIT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIGQUIT-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sigquit" != ""; then tc_cv_envvar_CROSS_SIGQUIT="$with_cross_sigquit" envval_src_CROSS_SIGQUIT=given else tc_cv_envvar_CROSS_SIGQUIT="" envval_src_CROSS_SIGQUIT=default fi ;; *) tc_cv_envvar_CROSS_SIGQUIT="$CROSS_SIGQUIT" envval_src_CROSS_SIGQUIT=given esac fi CROSS_SIGQUIT="$tc_cv_envvar_CROSS_SIGQUIT" case "$envval_src_CROSS_SIGQUIT" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIGQUIT\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIGQUIT\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIGQUIT\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIGQUIT" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIGQUIT be set for cross-compilation" 1>&2; exit 1; } else SIGQUIT="$CROSS_SIGQUIT" fi fi else echo $ac_n "checking value of SIGQUIT""... $ac_c" 1>&6 echo "configure:13515: checking value of SIGQUIT" >&5 if eval "test \"`echo '$''{'tc_cv_SIGQUIT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #include int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { val = (int)SIGQUIT;; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:13538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then tc_cv_SIGQUIT=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* tc_cv_SIGQUIT=no fi rm -fr conftest* fi fi echo "$ac_t""$tc_cv_SIGQUIT" 1>&6 if test "$tc_cv_SIGQUIT" != no; then : SIGQUIT=$tc_cv_SIGQUIT fi fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIGTERM, ) echo $ac_n "checking for CROSS_SIGTERM in environment""... $ac_c" 1>&6 echo "configure:13572: checking for CROSS_SIGTERM in environment" >&5 # Check whether --with-cross-sigterm or --without-cross-sigterm was given. if test "${with_cross_sigterm+set}" = set; then withval="$with_cross_sigterm" : fi envval_src_CROSS_SIGTERM="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CROSS_SIGTERM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIGTERM-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sigterm" != ""; then tc_cv_envvar_CROSS_SIGTERM="$with_cross_sigterm" envval_src_CROSS_SIGTERM=given else tc_cv_envvar_CROSS_SIGTERM="" envval_src_CROSS_SIGTERM=default fi ;; *) tc_cv_envvar_CROSS_SIGTERM="$CROSS_SIGTERM" envval_src_CROSS_SIGTERM=given esac fi CROSS_SIGTERM="$tc_cv_envvar_CROSS_SIGTERM" case "$envval_src_CROSS_SIGTERM" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIGTERM\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIGTERM\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIGTERM\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIGTERM" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIGTERM be set for cross-compilation" 1>&2; exit 1; } else SIGTERM="$CROSS_SIGTERM" fi fi else echo $ac_n "checking value of SIGTERM""... $ac_c" 1>&6 echo "configure:13632: checking value of SIGTERM" >&5 if eval "test \"`echo '$''{'tc_cv_SIGTERM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #include int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { val = (int)SIGTERM;; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:13655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then tc_cv_SIGTERM=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* tc_cv_SIGTERM=no fi rm -fr conftest* fi fi echo "$ac_t""$tc_cv_SIGTERM" 1>&6 if test "$tc_cv_SIGTERM" != no; then : SIGTERM=$tc_cv_SIGTERM fi fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIGUSR1, ) echo $ac_n "checking for CROSS_SIGUSR1 in environment""... $ac_c" 1>&6 echo "configure:13689: checking for CROSS_SIGUSR1 in environment" >&5 # Check whether --with-cross-sigusr1 or --without-cross-sigusr1 was given. if test "${with_cross_sigusr1+set}" = set; then withval="$with_cross_sigusr1" : fi envval_src_CROSS_SIGUSR1="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CROSS_SIGUSR1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIGUSR1-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sigusr1" != ""; then tc_cv_envvar_CROSS_SIGUSR1="$with_cross_sigusr1" envval_src_CROSS_SIGUSR1=given else tc_cv_envvar_CROSS_SIGUSR1="" envval_src_CROSS_SIGUSR1=default fi ;; *) tc_cv_envvar_CROSS_SIGUSR1="$CROSS_SIGUSR1" envval_src_CROSS_SIGUSR1=given esac fi CROSS_SIGUSR1="$tc_cv_envvar_CROSS_SIGUSR1" case "$envval_src_CROSS_SIGUSR1" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIGUSR1\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIGUSR1\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIGUSR1\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIGUSR1" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIGUSR1 be set for cross-compilation" 1>&2; exit 1; } else SIGUSR1="$CROSS_SIGUSR1" fi fi else echo $ac_n "checking value of SIGUSR1""... $ac_c" 1>&6 echo "configure:13749: checking value of SIGUSR1" >&5 if eval "test \"`echo '$''{'tc_cv_SIGUSR1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #include int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { val = (int)SIGUSR1;; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:13772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then tc_cv_SIGUSR1=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* tc_cv_SIGUSR1=no fi rm -fr conftest* fi fi echo "$ac_t""$tc_cv_SIGUSR1" 1>&6 if test "$tc_cv_SIGUSR1" != no; then : SIGUSR1=$tc_cv_SIGUSR1 fi fi ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking for working iostreams""... $ac_c" 1>&6 echo "configure:13805: checking for working iostreams" >&5 STDCXXLIB="" cat > conftest.$ac_ext < int main() { std::cout << "hi" << std::endl; ; return 0; } EOF if { (eval echo configure:13819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* iostream_test_worked=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* iostream_test_worked=no fi rm -f conftest* if test "$iostream_test_worked" = yes ; then echo "$ac_t""yes" 1>&6 else # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS -lstdc++") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS -lstdc++" # --------------------------------------- cat > conftest.$ac_ext < int main() { std::cout << "hi" << std::endl; ; return 0; } EOF if { (eval echo configure:13860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* { echo "configure: error: "I can\'t figure out how to build a program that uses C++ iostreams"" 1>&2; exit 1; } fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- STDCXXLIB="$STDCXXLIB -lstdc++" echo "$ac_t""yes: with -lstdc++" 1>&6 fi echo $ac_n "checking for long long output to ostreams""... $ac_c" 1>&6 echo "configure:13888: checking for long long output to ostreams" >&5 STDCXXLIB="" cat > conftest.$ac_ext < int main() { std::cout << (long long) 9 << std::endl; ; return 0; } EOF if { (eval echo configure:13902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ostream_long_long_test_worked=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ostream_long_long_test_worked=no fi rm -f conftest* if test "$ostream_long_long_test_worked" = yes ; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no: use long-long-support.h" 1>&6 cat >> confdefs.h <<\EOF #define USE_LONG_LONG_SUPPORT_H 1 EOF fi echo $ac_n "checking for string::erase()""... $ac_c" 1>&6 echo "configure:13927: checking for string::erase()" >&5 if eval "test \"`echo '$''{'tc_cv_cxx_string_erase'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { std::string str; str.erase( 0, 1 ); ; return 0; } EOF if { (eval echo configure:13944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cxx_string_erase=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cxx_string_erase=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cxx_string_erase" 1>&6 if test "$tc_cv_cxx_string_erase" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_STRING_ERASE 1 EOF else : fi echo $ac_n "checking for binary adaptor templates""... $ac_c" 1>&6 echo "configure:13970: checking for binary adaptor templates" >&5 if eval "test \"`echo '$''{'tc_cv_cxx_binary_adaptors'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include int main() { typedef std::queue< int, std::deque< int > > IntQueue; ; return 0; } EOF if { (eval echo configure:13987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cxx_binary_adaptors=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cxx_binary_adaptors=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cxx_binary_adaptors" 1>&6 if test "$tc_cv_cxx_binary_adaptors" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_BINARY_ADAPTORS 1 EOF else : fi echo $ac_n "checking for template specialization""... $ac_c" 1>&6 echo "configure:14013: checking for template specialization" >&5 if eval "test \"`echo '$''{'tc_cv_cxx_template_specialization'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < void foo(T); template <> void foo(int); int main() { ; return 0; } EOF if { (eval echo configure:14028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cxx_template_specialization=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cxx_template_specialization=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cxx_template_specialization" 1>&6 if test "$tc_cv_cxx_template_specialization" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_TEMPLATE_SPECIALIZATION 1 EOF else : fi echo $ac_n "checking for std/bastring.cc""... $ac_c" 1>&6 echo "configure:14054: checking for std/bastring.cc" >&5 if eval "test \"`echo '$''{'tc_cv_cxx_std_bastring_cc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include int main() { ; return 0; } EOF if { (eval echo configure:14069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cxx_std_bastring_cc=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cxx_std_bastring_cc=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cxx_std_bastring_cc" 1>&6 if test "$tc_cv_cxx_std_bastring_cc" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_STD_BASTRING_CC 1 EOF else : fi echo $ac_n "checking for implicit char_traits specialization""... $ac_c" 1>&6 echo "configure:14095: checking for implicit char_traits specialization" >&5 if eval "test \"`echo '$''{'tc_cv_cxx_implicit_char_traits'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { typedef std::basic_string< unsigned short > ShortString; ShortString s; ; return 0; } EOF if { (eval echo configure:14112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cxx_implicit_char_traits=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cxx_implicit_char_traits=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cxx_implicit_char_traits" 1>&6 if test "$tc_cv_cxx_implicit_char_traits" = yes; then : cat >> confdefs.h <<\EOF #define IMPLICIT_CHAR_TRAITS 1 EOF else : fi echo $ac_n "checking for ios::setstate()""... $ac_c" 1>&6 echo "configure:14138: checking for ios::setstate()" >&5 if eval "test \"`echo '$''{'tc_cv_cxx_ios_setstate'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { std::cin.setstate(std::ios::goodbit); ; return 0; } EOF if { (eval echo configure:14154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cxx_ios_setstate=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cxx_ios_setstate=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cxx_ios_setstate" 1>&6 if test "$tc_cv_cxx_ios_setstate" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_IOS_SETSTATE 1 EOF else : fi if test "$tc_cv_cxx_family" != "XLC" ; then # ext/hash_map exists on some xlc installs (darwin), but appears to be broken for ac_hdr in hash_map ext/hash_map do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:14184: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:14194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done fi for ac_hdr in sstream do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:14226: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:14236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done # check for a certain broken sstream implementation (early GNU g++ release) cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "stream_len \+= 1;" >/dev/null 2>&1; then rm -rf conftest* cat >> confdefs.h <<\EOF #define SSTREAM_BROKEN 1 EOF fi rm -f conftest* # Check for alloca in C++ code # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 echo "configure:14286: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *p = (char *)alloca(2 * sizeof(int)); ; return 0; } EOF if { (eval echo configure:14298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_alloca_h=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_alloca_h=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 if test $ac_cv_header_alloca_h = yes; then cat >> confdefs.h <<\EOF #define HAVE_ALLOCA_H 1 EOF fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 echo "configure:14319: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < # define alloca _alloca # else # if HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif # endif #endif int main() { char *p = (char *) alloca(1); ; return 0; } EOF if { (eval echo configure:14352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_func_alloca_works=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 if test $ac_cv_func_alloca_works = yes; then cat >> confdefs.h <<\EOF #define HAVE_ALLOCA 1 EOF fi if test $ac_cv_func_alloca_works = no; then # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=alloca.${ac_objext} cat >> confdefs.h <<\EOF #define C_ALLOCA 1 EOF echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 echo "configure:14384: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5 | egrep "webecray" >/dev/null 2>&1; then rm -rf conftest* ac_cv_os_cray=yes else rm -rf conftest* ac_cv_os_cray=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_os_cray" 1>&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:14414: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif ; return 0; } EOF if { (eval echo configure:14445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <&6 fi done fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 echo "configure:14472: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext < addr) ? 1 : -1; } main () { exit (find_stack_direction() < 0); } EOF if { (eval echo configure:14502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_c_stack_direction=-1 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 cat >> confdefs.h <&6 echo "configure:14538: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:14548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done for ac_func in stat64 fstat64 open64 lseek64 do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:14578: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* 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 $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif ; return 0; } EOF if { (eval echo configure:14606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done case "$target" in *-catamount-*) ;; # catamount has a broken llseek implementation *) for ac_func in llseek do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:14635: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* 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 $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif ; return 0; } EOF if { (eval echo configure:14663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done ;; esac for ac_func in getrlimit setrlimit getrlimit64 setrlimit64 do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:14691: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* 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 $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif ; return 0; } EOF if { (eval echo configure:14719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done echo $ac_n "checking getrusage page stats""... $ac_c" 1>&6 echo "configure:14746: checking getrusage page stats" >&5 if eval "test \"`echo '$''{'tc_cv_c_rusage_page'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { long val; struct rusage ru; getrusage(RUSAGE_SELF, &ru); val = ru.ru_minflt; val = ru.ru_majflt; val = ru.ru_nswap; ; return 0; } EOF if { (eval echo configure:14759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_c_rusage_page=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_c_rusage_page=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_c_rusage_page" 1>&6 if test "$tc_cv_c_rusage_page" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_GETRUSAGE_PAGE 1 EOF else : fi echo $ac_n "checking getrusage max rss""... $ac_c" 1>&6 echo "configure:14784: checking getrusage max rss" >&5 if eval "test \"`echo '$''{'tc_cv_c_rusage_maxrss'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { long val; struct rusage ru; getrusage(RUSAGE_SELF, &ru); val = ru.ru_maxrss; ; return 0; } EOF if { (eval echo configure:14797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_c_rusage_maxrss=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_c_rusage_maxrss=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_c_rusage_maxrss" 1>&6 if test "$tc_cv_c_rusage_maxrss" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_GETRUSAGE_MAXRSS 1 EOF else : fi echo $ac_n "checking getrusage mem""... $ac_c" 1>&6 echo "configure:14822: checking getrusage mem" >&5 if eval "test \"`echo '$''{'tc_cv_c_rusage_mem'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { long val; struct rusage ru; getrusage(RUSAGE_SELF, &ru); val = ru.ru_ixrss; val = ru.ru_idrss; val = ru.ru_isrss; ; return 0; } EOF if { (eval echo configure:14835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_c_rusage_mem=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_c_rusage_mem=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_c_rusage_mem" 1>&6 if test "$tc_cv_c_rusage_mem" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_GETRUSAGE_MEM 1 EOF else : fi echo $ac_n "checking getrusage context""... $ac_c" 1>&6 echo "configure:14860: checking getrusage context" >&5 if eval "test \"`echo '$''{'tc_cv_c_rusage_context'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { long val; struct rusage ru; getrusage(RUSAGE_SELF, &ru); val = ru.ru_nvcsw; val = ru.ru_nivcsw; ; return 0; } EOF if { (eval echo configure:14873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_c_rusage_context=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_c_rusage_context=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_c_rusage_context" 1>&6 if test "$tc_cv_c_rusage_context" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_GETRUSAGE_CONTEXT 1 EOF else : fi echo $ac_n "checking whether stat64 contains long longs""... $ac_c" 1>&6 echo "configure:14899: checking whether stat64 contains long longs" >&5 if eval "test \"`echo '$''{'tc_cv_c_stat64_contains_long_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #endif #include #include #include long long foo() { struct stat64 stats; return stats.st_size; } int main() { ; return 0; } EOF if { (eval echo configure:14929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_c_stat64_contains_long_long=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_c_stat64_contains_long_long=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_c_stat64_contains_long_long" 1>&6 if test "$tc_cv_c_stat64_contains_long_long" = yes; then : cat >> confdefs.h <<\EOF #define STAT64_CONTAINS_LONG_LONGS 1 EOF else : fi # -lm should only live in LIBM, and only if we have it (not in LIBS) # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS" # --------------------------------------- # sin should be in everyone's libm if they've got one. echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 echo "configure:14971: checking for sin in -lm" >&5 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&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" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBM="-lm" else echo "$ac_t""no" 1>&6 LIBM="" fi echo $ac_n "checking for library containing drem""... $ac_c" 1>&6 echo "configure:15015: checking for library containing drem" >&5 if eval "test \"`echo '$''{'ac_cv_search_drem'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_drem="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_drem="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_drem" = "no" && for i in m; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_drem="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_drem" 1>&6 if test "$ac_cv_search_drem" != "no"; then test "$ac_cv_search_drem" = "none required" || LIBS="$ac_cv_search_drem $LIBS" cat >> confdefs.h <<\EOF #define HAVE_DREM 1 EOF else : fi echo $ac_n "checking for library containing remainder""... $ac_c" 1>&6 echo "configure:15080: checking for library containing remainder" >&5 if eval "test \"`echo '$''{'ac_cv_search_remainder'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_remainder="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_remainder="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_remainder" = "no" && for i in m; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_remainder="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_remainder" 1>&6 if test "$ac_cv_search_remainder" != "no"; then test "$ac_cv_search_remainder" = "none required" || LIBS="$ac_cv_search_remainder $LIBS" cat >> confdefs.h <<\EOF #define HAVE_REMAINDER 1 EOF else : fi echo $ac_n "checking for library containing fmod""... $ac_c" 1>&6 echo "configure:15145: checking for library containing fmod" >&5 if eval "test \"`echo '$''{'ac_cv_search_fmod'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_fmod="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_fmod="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_fmod" = "no" && for i in m; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_fmod="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_fmod" 1>&6 if test "$ac_cv_search_fmod" != "no"; then test "$ac_cv_search_fmod" = "none required" || LIBS="$ac_cv_search_fmod $LIBS" cat >> confdefs.h <<\EOF #define HAVE_FMOD 1 EOF else : fi # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- for ac_func in setenv putenv do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:15224: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* 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 $ac_func(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif ; return 0; } EOF if { (eval echo configure:15252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done ######################################################################## # hardware support for byte-swapping echo $ac_n "checking for byte-swapping macros""... $ac_c" 1>&6 echo "configure:15282: checking for byte-swapping macros" >&5 if eval "test \"`echo '$''{'tc_cv_cc_has_swabn'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { __swab16(0); __swab32(0); __swab64(0); ; return 0; } EOF if { (eval echo configure:15294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* tc_cv_cc_has_swabn=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_has_swabn=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_has_swabn" 1>&6 if test "$tc_cv_cc_has_swabn" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_SWABN_MACROS 1 EOF else : fi ######################################################################## case "$target_cpu" in sparc) ARCH_CFLAGS="-Wa,-xarch=v8plus" ;; esac ######################################################################## # Runtime Var Arrays # Check whether --enable-runtime-vararray or --disable-runtime-vararray was given. if test "${enable_runtime_vararray+set}" = set; then enableval="$enable_runtime_vararray" : fi # Check whether --enable-runtime-vararray or --disable-runtime-vararray was given. if test "${enable_runtime_vararray+set}" = set; then enableval="$enable_runtime_vararray" : fi case "$enable_runtime_vararray" in no) ;; yes) cat >> confdefs.h <<\EOF #define USE_RUNTIME_VARARRAY 1 EOF ;; *) echo $ac_n "checking for variable stack arrays""... $ac_c" 1>&6 echo "configure:15350: checking for variable stack arrays" >&5 if eval "test \"`echo '$''{'tc_cv_cc_vararray_mod'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cc_vararray_mod=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_vararray_mod=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_vararray_mod" 1>&6 if test "$tc_cv_cc_vararray_mod" = yes; then : cat >> confdefs.h <<\EOF #define USE_RUNTIME_VARARRAY 1 EOF else : fi ;; esac # Check if using the Tera C compiler echo $ac_n "checking for Tera C compiler""... $ac_c" 1>&6 echo "configure:15391: checking for Tera C compiler" >&5 if eval "test \"`echo '$''{'tc_cv_cc_is_tera_cc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cc_is_tera_cc=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_is_tera_cc=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_is_tera_cc" 1>&6 if test "$tc_cv_cc_is_tera_cc" = yes; then : else : fi # Check if using the GNU C for Cray compiler echo $ac_n "checking for GNU C compiler for the Cray""... $ac_c" 1>&6 echo "configure:15431: checking for GNU C compiler for the Cray" >&5 if eval "test \"`echo '$''{'tc_cv_cc_is_cray_gnu_cc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cc_is_cray_gnu_cc=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_is_cray_gnu_cc=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_is_cray_gnu_cc" 1>&6 if test "$tc_cv_cc_is_cray_gnu_cc" = yes; then : cat >> confdefs.h <<\EOF #define USE_RUNTIME_CRAY_GNU_C 1 EOF else : fi if test $tc_cv_cc_is_cray_gnu_cc = yes; then RUNTIME_CC_IS_CRAY_GNU_CC_TRUE= RUNTIME_CC_IS_CRAY_GNU_CC_FALSE='#' else RUNTIME_CC_IS_CRAY_GNU_CC_TRUE='#' RUNTIME_CC_IS_CRAY_GNU_CC_FALSE= fi # Check if using the Cray C compiler echo $ac_n "checking for Cray T3E C compiler""... $ac_c" 1>&6 echo "configure:15483: checking for Cray T3E C compiler" >&5 if eval "test \"`echo '$''{'tc_cv_cc_is_cray_t3e_cc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cc_is_cray_t3e_cc=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_is_cray_t3e_cc=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_is_cray_t3e_cc" 1>&6 if test "$tc_cv_cc_is_cray_t3e_cc" = yes; then : cat >> confdefs.h <<\EOF #define USE_RUNTIME_CRAY_T3E_C 1 EOF else : fi if test $tc_cv_cc_is_cray_t3e_cc = yes; then RUNTIME_CC_IS_CRAY_T3E_CC_TRUE= RUNTIME_CC_IS_CRAY_T3E_CC_FALSE='#' else RUNTIME_CC_IS_CRAY_T3E_CC_TRUE='#' RUNTIME_CC_IS_CRAY_T3E_CC_FALSE= fi # Use 64-bit point coord on Cray CC (workaround for PR291, see c-types/CtPointInstance.cc) if test $tc_cv_cc_is_cray_t3e_cc = yes ; then cat >> confdefs.h <<\EOF #define USE_64BIT_POINTS 1 EOF fi # Check if MAXPATHLEN is defined in sys/param.h echo $ac_n "checking for MAXPATHLEN in sys/param.h""... $ac_c" 1>&6 echo "configure:15545: checking for MAXPATHLEN in sys/param.h" >&5 if eval "test \"`echo '$''{'tc_cv_cc_sys_param_has_mpl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int dummy = MAXPATHLEN; int main() { ; return 0; } EOF if { (eval echo configure:15560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cc_sys_param_has_mpl=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_sys_param_has_mpl=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_sys_param_has_mpl" 1>&6 if test "$tc_cv_cc_sys_param_has_mpl" = yes; then : cat >> confdefs.h <<\EOF #define USE_RUNTIME_SYS_PARAM_H_MAXPATHLEN 1 EOF else : fi # Check for usleep echo $ac_n "checking for usleep()""... $ac_c" 1>&6 echo "configure:15587: checking for usleep()" >&5 if eval "test \"`echo '$''{'tc_cv_cc_has_usleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { usleep(500); ; return 0; } EOF if { (eval echo configure:15603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cc_has_usleep=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_has_usleep=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_has_usleep" 1>&6 if test "$tc_cv_cc_has_usleep" = yes; then : echo $ac_n "checking for library containing usleep""... $ac_c" 1>&6 echo "configure:15620: checking for library containing usleep" >&5 if eval "test \"`echo '$''{'ac_cv_search_usleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_usleep="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_usleep="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_usleep" = "no" && for i in posix4; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_usleep="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_usleep" 1>&6 if test "$ac_cv_search_usleep" != "no"; then test "$ac_cv_search_usleep" = "none required" || LIBS="$ac_cv_search_usleep $LIBS" cat >> confdefs.h <<\EOF #define HAVE_USLEEP 1 EOF else : echo "$ac_t""entry point not found - disabled" 1>&6 fi else : fi # Check for nanosleep echo $ac_n "checking for nanosleep()""... $ac_c" 1>&6 echo "configure:15691: checking for nanosleep()" >&5 if eval "test \"`echo '$''{'tc_cv_cc_has_nanosleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include int main() { struct timespec tm, tmremaining; tm.tv_sec =1; tm.tv_nsec = 1000000; nanosleep(&tm, &tmremaining); ; return 0; } EOF if { (eval echo configure:15711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cc_has_nanosleep=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_has_nanosleep=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_has_nanosleep" 1>&6 if test "$tc_cv_cc_has_nanosleep" = yes; then : echo $ac_n "checking for library containing nanosleep""... $ac_c" 1>&6 echo "configure:15728: checking for library containing nanosleep" >&5 if eval "test \"`echo '$''{'ac_cv_search_nanosleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_nanosleep="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_nanosleep="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_nanosleep" = "no" && for i in posix4; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_nanosleep="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_nanosleep" 1>&6 if test "$ac_cv_search_nanosleep" != "no"; then test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" cat >> confdefs.h <<\EOF #define HAVE_NANOSLEEP 1 EOF else : echo "$ac_t""entry point not found - disabled" 1>&6 fi else : fi # Check for nsleep echo $ac_n "checking for nsleep()""... $ac_c" 1>&6 echo "configure:15799: checking for nsleep()" >&5 if eval "test \"`echo '$''{'tc_cv_cc_has_nsleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include int main() { struct timespec tm, tmremaining; tm.tv_sec =1; tm.tv_nsec = 1000000; nsleep(&tm, &tmremaining); ; return 0; } EOF if { (eval echo configure:15819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cc_has_nsleep=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_has_nsleep=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_has_nsleep" 1>&6 if test "$tc_cv_cc_has_nsleep" = yes; then : echo $ac_n "checking for library containing nsleep""... $ac_c" 1>&6 echo "configure:15836: checking for library containing nsleep" >&5 if eval "test \"`echo '$''{'ac_cv_search_nsleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_nsleep="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_nsleep="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_nsleep" = "no" && for i in posix4; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_nsleep="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_nsleep" 1>&6 if test "$ac_cv_search_nsleep" != "no"; then test "$ac_cv_search_nsleep" = "none required" || LIBS="$ac_cv_search_nsleep $LIBS" cat >> confdefs.h <<\EOF #define HAVE_NSLEEP 1 EOF else : echo "$ac_t""entry point not found - disabled" 1>&6 fi else : fi # Check for sched_yield echo $ac_n "checking for sched_yield()""... $ac_c" 1>&6 echo "configure:15907: checking for sched_yield()" >&5 if eval "test \"`echo '$''{'tc_cv_cc_has_sched_yield'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { sched_yield(); ; return 0; } EOF if { (eval echo configure:15923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cc_has_sched_yield=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_has_sched_yield=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_has_sched_yield" 1>&6 if test "$tc_cv_cc_has_sched_yield" = yes; then : echo $ac_n "checking for library containing sched_yield""... $ac_c" 1>&6 echo "configure:15940: checking for library containing sched_yield" >&5 if eval "test \"`echo '$''{'ac_cv_search_sched_yield'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_sched_yield="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_sched_yield="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_sched_yield" = "no" && for i in posix4; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_sched_yield="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_sched_yield" 1>&6 if test "$ac_cv_search_sched_yield" != "no"; then test "$ac_cv_search_sched_yield" = "none required" || LIBS="$ac_cv_search_sched_yield $LIBS" cat >> confdefs.h <<\EOF #define HAVE_SCHED_YIELD 1 EOF else : echo "$ac_t""entry point not found - disabled" 1>&6 fi else : fi if test $tc_cv_cc_sys_param_has_mpl = no ; then # Check if PATHSIZE is defined in sys/param.h echo $ac_n "checking for PATHSIZE in sys/param.h""... $ac_c" 1>&6 echo "configure:16012: checking for PATHSIZE in sys/param.h" >&5 if eval "test \"`echo '$''{'tc_cv_cc_sys_param_has_ps'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int dummy = PATHSIZE; int main() { ; return 0; } EOF if { (eval echo configure:16027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_cc_sys_param_has_ps=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_sys_param_has_ps=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_sys_param_has_ps" 1>&6 if test "$tc_cv_cc_sys_param_has_ps" = yes; then : cat >> confdefs.h <<\EOF #define USE_RUNTIME_SYS_PARAM_H_PATHSIZE 1 EOF else : fi fi # Check for __builtin_expect (GCC 3.0) echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6 echo "configure:16055: checking for __builtin_expect" >&5 if eval "test \"`echo '$''{'tc_cv_cc_has_builtin_expect'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* tc_cv_cc_has_builtin_expect=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_has_builtin_expect=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_has_builtin_expect" 1>&6 if test "$tc_cv_cc_has_builtin_expect" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_BUILTIN_EXPECT 1 EOF else : fi echo $ac_n "checking for __func__""... $ac_c" 1>&6 echo "configure:16093: checking for __func__" >&5 if eval "test \"`echo '$''{'tc_cv_cc_has_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* tc_cv_cc_has_func=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_cc_has_func=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_cc_has_func" 1>&6 if test "$tc_cv_cc_has_func" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_FUNC 1 EOF else : fi ######################################################################## # hunt for 16-, 32-, and 64-bit integer types # Some known sizes if test $tc_cv_cc_is_tera_cc = yes ; then # The Tera cross_char=1 cross_short=2 cross_int=8 cross_long=8 cross_long_long=8 cross_void_P=8 else # Unknown cross_char=0 cross_short=0 cross_int=0 cross_long=0 cross_long_long=0 cross_void_P=0 fi # Check sizes if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIZEOF_CHAR, ) echo $ac_n "checking for CROSS_SIZEOF_CHAR in environment""... $ac_c" 1>&6 echo "configure:16170: checking for CROSS_SIZEOF_CHAR in environment" >&5 # Check whether --with-cross-sizeof-char or --without-cross-sizeof-char was given. if test "${with_cross_sizeof_char+set}" = set; then withval="$with_cross_sizeof_char" : fi envval_src_CROSS_SIZEOF_CHAR="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CROSS_SIZEOF_CHAR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIZEOF_CHAR-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_char" != ""; then tc_cv_envvar_CROSS_SIZEOF_CHAR="$with_cross_sizeof_char" envval_src_CROSS_SIZEOF_CHAR=given else tc_cv_envvar_CROSS_SIZEOF_CHAR="" envval_src_CROSS_SIZEOF_CHAR=default fi ;; *) tc_cv_envvar_CROSS_SIZEOF_CHAR="$CROSS_SIZEOF_CHAR" envval_src_CROSS_SIZEOF_CHAR=given esac fi CROSS_SIZEOF_CHAR="$tc_cv_envvar_CROSS_SIZEOF_CHAR" case "$envval_src_CROSS_SIZEOF_CHAR" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIZEOF_CHAR\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIZEOF_CHAR\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIZEOF_CHAR\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIZEOF_CHAR" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIZEOF_CHAR be set for cross-compilation" 1>&2; exit 1; } else SIZEOF_CHAR="$CROSS_SIZEOF_CHAR" fi fi ac_cv_sizeof_char=$SIZEOF_CHAR fi echo $ac_n "checking size of char""... $ac_c" 1>&6 echo "configure:16230: checking size of char" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_char=$SIZEOF_CHAR else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(char)); exit(0); } EOF if { (eval echo configure:16249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_char=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_char=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_char" 1>&6 cat >> confdefs.h <&2; exit 1; } fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIZEOF_SHORT, ) echo $ac_n "checking for CROSS_SIZEOF_SHORT in environment""... $ac_c" 1>&6 echo "configure:16292: checking for CROSS_SIZEOF_SHORT in environment" >&5 # Check whether --with-cross-sizeof-short or --without-cross-sizeof-short was given. if test "${with_cross_sizeof_short+set}" = set; then withval="$with_cross_sizeof_short" : fi envval_src_CROSS_SIZEOF_SHORT="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CROSS_SIZEOF_SHORT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIZEOF_SHORT-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_short" != ""; then tc_cv_envvar_CROSS_SIZEOF_SHORT="$with_cross_sizeof_short" envval_src_CROSS_SIZEOF_SHORT=given else tc_cv_envvar_CROSS_SIZEOF_SHORT="" envval_src_CROSS_SIZEOF_SHORT=default fi ;; *) tc_cv_envvar_CROSS_SIZEOF_SHORT="$CROSS_SIZEOF_SHORT" envval_src_CROSS_SIZEOF_SHORT=given esac fi CROSS_SIZEOF_SHORT="$tc_cv_envvar_CROSS_SIZEOF_SHORT" case "$envval_src_CROSS_SIZEOF_SHORT" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIZEOF_SHORT\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIZEOF_SHORT\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIZEOF_SHORT\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIZEOF_SHORT" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIZEOF_SHORT be set for cross-compilation" 1>&2; exit 1; } else SIZEOF_SHORT="$CROSS_SIZEOF_SHORT" fi fi ac_cv_sizeof_short=$SIZEOF_SHORT fi echo $ac_n "checking size of short""... $ac_c" 1>&6 echo "configure:16352: checking size of short" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_short=$SIZEOF_SHORT else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(short)); exit(0); } EOF if { (eval echo configure:16371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_short=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_short=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_short" 1>&6 cat >> confdefs.h <&2; exit 1; } fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIZEOF_INT, ) echo $ac_n "checking for CROSS_SIZEOF_INT in environment""... $ac_c" 1>&6 echo "configure:16414: checking for CROSS_SIZEOF_INT in environment" >&5 # Check whether --with-cross-sizeof-int or --without-cross-sizeof-int was given. if test "${with_cross_sizeof_int+set}" = set; then withval="$with_cross_sizeof_int" : fi envval_src_CROSS_SIZEOF_INT="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CROSS_SIZEOF_INT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIZEOF_INT-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_int" != ""; then tc_cv_envvar_CROSS_SIZEOF_INT="$with_cross_sizeof_int" envval_src_CROSS_SIZEOF_INT=given else tc_cv_envvar_CROSS_SIZEOF_INT="" envval_src_CROSS_SIZEOF_INT=default fi ;; *) tc_cv_envvar_CROSS_SIZEOF_INT="$CROSS_SIZEOF_INT" envval_src_CROSS_SIZEOF_INT=given esac fi CROSS_SIZEOF_INT="$tc_cv_envvar_CROSS_SIZEOF_INT" case "$envval_src_CROSS_SIZEOF_INT" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIZEOF_INT\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIZEOF_INT\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIZEOF_INT\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIZEOF_INT" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIZEOF_INT be set for cross-compilation" 1>&2; exit 1; } else SIZEOF_INT="$CROSS_SIZEOF_INT" fi fi ac_cv_sizeof_int=$SIZEOF_INT fi echo $ac_n "checking size of int""... $ac_c" 1>&6 echo "configure:16474: checking size of int" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_int=$SIZEOF_INT else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(int)); exit(0); } EOF if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_int=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_int" 1>&6 cat >> confdefs.h <&2; exit 1; } fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIZEOF_LONG, ) echo $ac_n "checking for CROSS_SIZEOF_LONG in environment""... $ac_c" 1>&6 echo "configure:16536: checking for CROSS_SIZEOF_LONG in environment" >&5 # Check whether --with-cross-sizeof-long or --without-cross-sizeof-long was given. if test "${with_cross_sizeof_long+set}" = set; then withval="$with_cross_sizeof_long" : fi envval_src_CROSS_SIZEOF_LONG="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CROSS_SIZEOF_LONG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIZEOF_LONG-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_long" != ""; then tc_cv_envvar_CROSS_SIZEOF_LONG="$with_cross_sizeof_long" envval_src_CROSS_SIZEOF_LONG=given else tc_cv_envvar_CROSS_SIZEOF_LONG="" envval_src_CROSS_SIZEOF_LONG=default fi ;; *) tc_cv_envvar_CROSS_SIZEOF_LONG="$CROSS_SIZEOF_LONG" envval_src_CROSS_SIZEOF_LONG=given esac fi CROSS_SIZEOF_LONG="$tc_cv_envvar_CROSS_SIZEOF_LONG" case "$envval_src_CROSS_SIZEOF_LONG" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIZEOF_LONG\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIZEOF_LONG\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIZEOF_LONG\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIZEOF_LONG" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIZEOF_LONG be set for cross-compilation" 1>&2; exit 1; } else SIZEOF_LONG="$CROSS_SIZEOF_LONG" fi fi ac_cv_sizeof_long=$SIZEOF_LONG fi echo $ac_n "checking size of long""... $ac_c" 1>&6 echo "configure:16596: checking size of long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_long=$SIZEOF_LONG else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(long)); exit(0); } EOF if { (eval echo configure:16615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_long=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_long" 1>&6 cat >> confdefs.h <&2; exit 1; } fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIZEOF_LONG_LONG, ) echo $ac_n "checking for CROSS_SIZEOF_LONG_LONG in environment""... $ac_c" 1>&6 echo "configure:16658: checking for CROSS_SIZEOF_LONG_LONG in environment" >&5 # Check whether --with-cross-sizeof-long-long or --without-cross-sizeof-long-long was given. if test "${with_cross_sizeof_long_long+set}" = set; then withval="$with_cross_sizeof_long_long" : fi envval_src_CROSS_SIZEOF_LONG_LONG="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CROSS_SIZEOF_LONG_LONG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIZEOF_LONG_LONG-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_long_long" != ""; then tc_cv_envvar_CROSS_SIZEOF_LONG_LONG="$with_cross_sizeof_long_long" envval_src_CROSS_SIZEOF_LONG_LONG=given else tc_cv_envvar_CROSS_SIZEOF_LONG_LONG="" envval_src_CROSS_SIZEOF_LONG_LONG=default fi ;; *) tc_cv_envvar_CROSS_SIZEOF_LONG_LONG="$CROSS_SIZEOF_LONG_LONG" envval_src_CROSS_SIZEOF_LONG_LONG=given esac fi CROSS_SIZEOF_LONG_LONG="$tc_cv_envvar_CROSS_SIZEOF_LONG_LONG" case "$envval_src_CROSS_SIZEOF_LONG_LONG" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIZEOF_LONG_LONG\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIZEOF_LONG_LONG\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIZEOF_LONG_LONG\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIZEOF_LONG_LONG" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIZEOF_LONG_LONG be set for cross-compilation" 1>&2; exit 1; } else SIZEOF_LONG_LONG="$CROSS_SIZEOF_LONG_LONG" fi fi ac_cv_sizeof_long_long=$SIZEOF_LONG_LONG fi echo $ac_n "checking size of long long""... $ac_c" 1>&6 echo "configure:16718: checking size of long long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_long_long=$SIZEOF_LONG_LONG else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(long long)); exit(0); } EOF if { (eval echo configure:16737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long_long=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_long_long=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 cat >> confdefs.h <&2; exit 1; } fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIZEOF_VOID_P, ) echo $ac_n "checking for CROSS_SIZEOF_VOID_P in environment""... $ac_c" 1>&6 echo "configure:16780: checking for CROSS_SIZEOF_VOID_P in environment" >&5 # Check whether --with-cross-sizeof-void-p or --without-cross-sizeof-void-p was given. if test "${with_cross_sizeof_void_p+set}" = set; then withval="$with_cross_sizeof_void_p" : fi envval_src_CROSS_SIZEOF_VOID_P="cached" if eval "test \"`echo '$''{'tc_cv_envvar_CROSS_SIZEOF_VOID_P'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIZEOF_VOID_P-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_void_p" != ""; then tc_cv_envvar_CROSS_SIZEOF_VOID_P="$with_cross_sizeof_void_p" envval_src_CROSS_SIZEOF_VOID_P=given else tc_cv_envvar_CROSS_SIZEOF_VOID_P="" envval_src_CROSS_SIZEOF_VOID_P=default fi ;; *) tc_cv_envvar_CROSS_SIZEOF_VOID_P="$CROSS_SIZEOF_VOID_P" envval_src_CROSS_SIZEOF_VOID_P=given esac fi CROSS_SIZEOF_VOID_P="$tc_cv_envvar_CROSS_SIZEOF_VOID_P" case "$envval_src_CROSS_SIZEOF_VOID_P" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIZEOF_VOID_P\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIZEOF_VOID_P\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIZEOF_VOID_P\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIZEOF_VOID_P" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIZEOF_VOID_P be set for cross-compilation" 1>&2; exit 1; } else SIZEOF_VOID_P="$CROSS_SIZEOF_VOID_P" fi fi ac_cv_sizeof_void_p=$SIZEOF_VOID_P fi echo $ac_n "checking size of void *""... $ac_c" 1>&6 echo "configure:16840: checking size of void *" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_void_p=$SIZEOF_VOID_P else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(void *)); exit(0); } EOF if { (eval echo configure:16859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_void_p=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_void_p=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 cat >> confdefs.h <&2; exit 1; } fi if test x"$ac_cv_sizeof_int$ac_cv_sizeof_long$ac_cv_sizeof_void_p" = x444; then PLATFORM_ILP32_TRUE= PLATFORM_ILP32_FALSE='#' else PLATFORM_ILP32_TRUE='#' PLATFORM_ILP32_FALSE= fi if test x"$ac_cv_sizeof_int$ac_cv_sizeof_long$ac_cv_sizeof_void_p" = x488; then PLATFORM_LP64_TRUE= PLATFORM_LP64_FALSE='#' else PLATFORM_LP64_TRUE='#' PLATFORM_LP64_FALSE= fi if test x"$ac_cv_sizeof_int$ac_cv_sizeof_long$ac_cv_sizeof_void_p" = x888; then PLATFORM_ILP64_TRUE= PLATFORM_ILP64_FALSE='#' else PLATFORM_ILP64_TRUE='#' PLATFORM_ILP64_FALSE= fi for ac_hdr in stdint.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:16921: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:16931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done if test "$ac_cv_header_stdint_h" = "yes"; then HAVE_STDINT_H=1 if test "$cross_compiling" = "yes" ; then echo $ac_n "checking for a complete stdint.h""... $ac_c" 1>&6 echo "configure:16964: checking for a complete stdint.h" >&5 if eval "test \"`echo '$''{'tc_cv_COMPLETE_STDINT_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int check() { int8_t i8; uint8_t u8; int16_t i16; uint16_t u16; int32_t i32; uint32_t u32; int64_t i64; uint64_t u64; intptr_t ip; uintptr_t up; if (sizeof(i8) != 1) return 1; if (sizeof(u8) != 1) return 1; if (sizeof(i16) != 2) return 1; if (sizeof(u16) != 2) return 1; if (sizeof(i32) != 4) return 1; if (sizeof(u32) != 4) return 1; if (sizeof(i64) != 8) return 1; if (sizeof(u64) != 8) return 1; if (sizeof(ip) != sizeof(void*)) return 1; if (sizeof(up) != sizeof(void*)) return 1; return 0; } int main() { return check(); ; return 0; } EOF if { (eval echo configure:17003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_COMPLETE_STDINT_H=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_COMPLETE_STDINT_H=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_COMPLETE_STDINT_H" 1>&6 if test "$tc_cv_COMPLETE_STDINT_H" = yes; then : COMPLETE_STDINT_H=1 cat >> confdefs.h <<\EOF #define COMPLETE_STDINT_H 1 EOF else : fi else echo $ac_n "checking for a complete stdint.h""... $ac_c" 1>&6 echo "configure:17033: checking for a complete stdint.h" >&5 if eval "test \"`echo '$''{'tc_cv_COMPLETE_STDINT_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int check() { int8_t i8; uint8_t u8; int16_t i16; uint16_t u16; int32_t i32; uint32_t u32; int64_t i64; uint64_t u64; intptr_t ip; uintptr_t up; if (sizeof(i8) != 1) return 1; if (sizeof(u8) != 1) return 1; if (sizeof(i16) != 2) return 1; if (sizeof(u16) != 2) return 1; if (sizeof(i32) != 4) return 1; if (sizeof(u32) != 4) return 1; if (sizeof(i64) != 8) return 1; if (sizeof(u64) != 8) return 1; if (sizeof(ip) != sizeof(void*)) return 1; if (sizeof(up) != sizeof(void*)) return 1; return 0; } int main() { return check(); } EOF if { (eval echo configure:17073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then tc_cv_COMPLETE_STDINT_H=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* tc_cv_COMPLETE_STDINT_H=no fi rm -fr conftest* fi fi echo "$ac_t""$tc_cv_COMPLETE_STDINT_H" 1>&6 if test "$tc_cv_COMPLETE_STDINT_H" = yes; then : COMPLETE_STDINT_H=1 cat >> confdefs.h <<\EOF #define COMPLETE_STDINT_H 1 EOF else : fi fi fi for ac_hdr in inttypes.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:17112: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:17122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done if test "$ac_cv_header_inttypes_h" = "yes"; then HAVE_INTTYPES_H=1 if test "$cross_compiling" = "yes" ; then echo $ac_n "checking for a complete inttypes.h""... $ac_c" 1>&6 echo "configure:17155: checking for a complete inttypes.h" >&5 if eval "test \"`echo '$''{'tc_cv_COMPLETE_INTTYPES_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int check() { int8_t i8; uint8_t u8; int16_t i16; uint16_t u16; int32_t i32; uint32_t u32; int64_t i64; uint64_t u64; intptr_t ip; uintptr_t up; if (sizeof(i8) != 1) return 1; if (sizeof(u8) != 1) return 1; if (sizeof(i16) != 2) return 1; if (sizeof(u16) != 2) return 1; if (sizeof(i32) != 4) return 1; if (sizeof(u32) != 4) return 1; if (sizeof(i64) != 8) return 1; if (sizeof(u64) != 8) return 1; if (sizeof(ip) != sizeof(void*)) return 1; if (sizeof(up) != sizeof(void*)) return 1; return 0; } int main() { return check(); ; return 0; } EOF if { (eval echo configure:17194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_COMPLETE_INTTYPES_H=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_COMPLETE_INTTYPES_H=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_COMPLETE_INTTYPES_H" 1>&6 if test "$tc_cv_COMPLETE_INTTYPES_H" = yes; then : COMPLETE_INTTYPES_H=1 cat >> confdefs.h <<\EOF #define COMPLETE_INTTYPES_H 1 EOF else : fi else echo $ac_n "checking for a complete inttypes.h""... $ac_c" 1>&6 echo "configure:17224: checking for a complete inttypes.h" >&5 if eval "test \"`echo '$''{'tc_cv_COMPLETE_INTTYPES_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int check() { int8_t i8; uint8_t u8; int16_t i16; uint16_t u16; int32_t i32; uint32_t u32; int64_t i64; uint64_t u64; intptr_t ip; uintptr_t up; if (sizeof(i8) != 1) return 1; if (sizeof(u8) != 1) return 1; if (sizeof(i16) != 2) return 1; if (sizeof(u16) != 2) return 1; if (sizeof(i32) != 4) return 1; if (sizeof(u32) != 4) return 1; if (sizeof(i64) != 8) return 1; if (sizeof(u64) != 8) return 1; if (sizeof(ip) != sizeof(void*)) return 1; if (sizeof(up) != sizeof(void*)) return 1; return 0; } int main() { return check(); } EOF if { (eval echo configure:17264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then tc_cv_COMPLETE_INTTYPES_H=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* tc_cv_COMPLETE_INTTYPES_H=no fi rm -fr conftest* fi fi echo "$ac_t""$tc_cv_COMPLETE_INTTYPES_H" 1>&6 if test "$tc_cv_COMPLETE_INTTYPES_H" = yes; then : COMPLETE_INTTYPES_H=1 cat >> confdefs.h <<\EOF #define COMPLETE_INTTYPES_H 1 EOF else : fi fi fi for ac_hdr in sys/types.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:17303: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:17313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done if test "$ac_cv_header_sys_types_h" = "yes"; then HAVE_SYS_TYPES_H=1 if test "$cross_compiling" = "yes" ; then echo $ac_n "checking for a complete sys/types.h""... $ac_c" 1>&6 echo "configure:17346: checking for a complete sys/types.h" >&5 if eval "test \"`echo '$''{'tc_cv_COMPLETE_SYS_TYPES_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int check() { int8_t i8; uint8_t u8; int16_t i16; uint16_t u16; int32_t i32; uint32_t u32; int64_t i64; uint64_t u64; intptr_t ip; uintptr_t up; if (sizeof(i8) != 1) return 1; if (sizeof(u8) != 1) return 1; if (sizeof(i16) != 2) return 1; if (sizeof(u16) != 2) return 1; if (sizeof(i32) != 4) return 1; if (sizeof(u32) != 4) return 1; if (sizeof(i64) != 8) return 1; if (sizeof(u64) != 8) return 1; if (sizeof(ip) != sizeof(void*)) return 1; if (sizeof(up) != sizeof(void*)) return 1; return 0; } int main() { return check(); ; return 0; } EOF if { (eval echo configure:17385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tc_cv_COMPLETE_SYS_TYPES_H=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* tc_cv_COMPLETE_SYS_TYPES_H=no fi rm -f conftest* fi echo "$ac_t""$tc_cv_COMPLETE_SYS_TYPES_H" 1>&6 if test "$tc_cv_COMPLETE_SYS_TYPES_H" = yes; then : COMPLETE_SYS_TYPES_H=1 cat >> confdefs.h <<\EOF #define COMPLETE_SYS_TYPES_H 1 EOF else : fi else echo $ac_n "checking for a complete sys/types.h""... $ac_c" 1>&6 echo "configure:17415: checking for a complete sys/types.h" >&5 if eval "test \"`echo '$''{'tc_cv_COMPLETE_SYS_TYPES_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int check() { int8_t i8; uint8_t u8; int16_t i16; uint16_t u16; int32_t i32; uint32_t u32; int64_t i64; uint64_t u64; intptr_t ip; uintptr_t up; if (sizeof(i8) != 1) return 1; if (sizeof(u8) != 1) return 1; if (sizeof(i16) != 2) return 1; if (sizeof(u16) != 2) return 1; if (sizeof(i32) != 4) return 1; if (sizeof(u32) != 4) return 1; if (sizeof(i64) != 8) return 1; if (sizeof(u64) != 8) return 1; if (sizeof(ip) != sizeof(void*)) return 1; if (sizeof(up) != sizeof(void*)) return 1; return 0; } int main() { return check(); } EOF if { (eval echo configure:17455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then tc_cv_COMPLETE_SYS_TYPES_H=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* tc_cv_COMPLETE_SYS_TYPES_H=no fi rm -fr conftest* fi fi echo "$ac_t""$tc_cv_COMPLETE_SYS_TYPES_H" 1>&6 if test "$tc_cv_COMPLETE_SYS_TYPES_H" = yes; then : COMPLETE_SYS_TYPES_H=1 cat >> confdefs.h <<\EOF #define COMPLETE_SYS_TYPES_H 1 EOF else : fi fi fi INTTYPES_DEFINES="-DSIZEOF_CHAR=$SIZEOF_CHAR -DSIZEOF_SHORT=$SIZEOF_SHORT -DSIZEOF_INT=$SIZEOF_INT -DSIZEOF_LONG=$SIZEOF_LONG -DSIZEOF_LONG_LONG=$SIZEOF_LONG_LONG -DSIZEOF_VOID_P=$SIZEOF_VOID_P" if test "$HAVE_STDINT_H" != ""; then INTTYPES_DEFINES="$INTTYPES_DEFINES -DHAVE_STDINT_H" fi if test "$COMPLETE_STDINT_H" != ""; then INTTYPES_DEFINES="$INTTYPES_DEFINES -DCOMPLETE_STDINT_H" fi if test "$HAVE_INTTYPES_H" != ""; then INTTYPES_DEFINES="$INTTYPES_DEFINES -DHAVE_INTTYPES_H" fi if test "$COMPLETE_INTTYPES_H" != ""; then INTTYPES_DEFINES="$INTTYPES_DEFINES -DCOMPLETE_INTTYPES_H" fi if test "$HAVE_SYS_TYPES_H" != ""; then INTTYPES_DEFINES="$INTTYPES_DEFINES -DHAVE_SYS_TYPES_H" fi if test "$COMPLETE_SYS_TYPES_H" != ""; then INTTYPES_DEFINES="$INTTYPES_DEFINES -DCOMPLETE_SYS_TYPES_H" fi ######################################################################## ## tcbuild's cleanup script will use termcap if perl supports it echo $ac_n "checking for perl termcap support""... $ac_c" 1>&6 echo "configure:17530: checking for perl termcap support" >&5 if $PERL -MTerm::Cap -e 'Tgetent Term::Cap { TERM => xterm, OSPEED => 9600 };'; then perl_termcap=yes else perl_termcap=no fi if test "$perl_termcap" = yes; then HAVE_PERL_TERMCAP_TRUE= HAVE_PERL_TERMCAP_FALSE='#' else HAVE_PERL_TERMCAP_TRUE='#' HAVE_PERL_TERMCAP_FALSE= fi echo "$ac_t""$perl_termcap" 1>&6 # complete sp2 setup # --------------------------------------- # [GASNET_ENV_DEFAULT](tcLDFLAGS, $tc_LDFLAGS) echo $ac_n "checking for tcLDFLAGS in environment""... $ac_c" 1>&6 echo "configure:17558: checking for tcLDFLAGS in environment" >&5 # Check whether --with-tcldflags or --without-tcldflags was given. if test "${with_tcldflags+set}" = set; then withval="$with_tcldflags" : fi envval_src_tcLDFLAGS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_tcLDFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${tcLDFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_tcldflags" != ""; then tc_cv_envvar_tcLDFLAGS="$with_tcldflags" envval_src_tcLDFLAGS=given else tc_cv_envvar_tcLDFLAGS="$tc_LDFLAGS" envval_src_tcLDFLAGS=default fi ;; *) tc_cv_envvar_tcLDFLAGS="$tcLDFLAGS" envval_src_tcLDFLAGS=given esac fi tcLDFLAGS="$tc_cv_envvar_tcLDFLAGS" case "$envval_src_tcLDFLAGS" in 'cached') echo "$ac_t""using cached value \"$tcLDFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$tcLDFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$tcLDFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](tcLIBS, $tc_LIBS) echo $ac_n "checking for tcLIBS in environment""... $ac_c" 1>&6 echo "configure:17614: checking for tcLIBS in environment" >&5 # Check whether --with-tclibs or --without-tclibs was given. if test "${with_tclibs+set}" = set; then withval="$with_tclibs" : fi envval_src_tcLIBS="cached" if eval "test \"`echo '$''{'tc_cv_envvar_tcLIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${tcLIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_tclibs" != ""; then tc_cv_envvar_tcLIBS="$with_tclibs" envval_src_tcLIBS=given else tc_cv_envvar_tcLIBS="$tc_LIBS" envval_src_tcLIBS=default fi ;; *) tc_cv_envvar_tcLIBS="$tcLIBS" envval_src_tcLIBS=given esac fi tcLIBS="$tc_cv_envvar_tcLIBS" case "$envval_src_tcLIBS" in 'cached') echo "$ac_t""using cached value \"$tcLIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$tcLIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$tcLIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- case "$target_os" in aix*) aix=yes SP2_LD_LIBS="-ltitanium-sp2 -lswclock" # AIX linker doesn't allow large enough TOC by default to accomodate # tc and most applications tcLDFLAGS="$tcLDFLAGS -Wl,-bbigtoc" LDFLAGS="$LDFLAGS -Wl,-bbigtoc" if test x"$ac_cv_sizeof_void_p" = x4; then # set the data segment size to the largest permitted size for 32-bit apps (2GB) # (don't set it for 64-bit apps because it would truncate addressable space) if test "$setGcSupport" = yes ; then # as of 2.752, GC uses mmap for allocation - minimize sbrk heap to maximize mmap space LDFLAGS="$LDFLAGS -Wl,-bmaxdata:0x10000000" else # no GC, maximize malloc mem LDFLAGS="$LDFLAGS -Wl,-bmaxdata:0x80000000" fi SP3_CC="mpcc_r -qstrict" else SP3_CC="mpcc_r -q64 -qstrict" NM="/usr/bin/nm -X64" AR="/usr/bin/ar -X64" AS="/usr/bin/as -a64" RANLIB="/usr/bin/ranlib -X64" fi # not sure that the TI_FAMILY_CACHE_CHECK thing works....autoconf gives it # /lib/cpp, not $(CC), and /lib/cpp usually doesn't carry machine-specific # macros if test "$tc_cv_cc_family" = "unknown"; then tc_cv_cc_family=sp2 fi if test "$tc_cv_cxx_family" = "unknown"; then tc_cv_cxx_family=sp2 fi ;; irix*) tcLDFLAGS="$tcLDFLAGS -Wl,-LD_LAYOUT:lgot_buffer=20" LDFLAGS="$LDFLAGS -Wl,-LD_LAYOUT:lgot_buffer=20" ;; darwin*) tcLDFLAGS="$tcLDFLAGS -Wl,-multiply_defined,suppress,-m" LIBM="" # never pass -lm explicitly on darwin ;; esac tcLIBS="$cxxLIBS $tcLIBS" ######### handle --with-gas switch if test "$with_gas" = yes; then echo $ac_n "checking for GNU assembler""... $ac_c" 1>&6 echo "configure:17724: checking for GNU assembler" >&5 if test "$tc_cv_cxx_family" = "GNU"; then GASPATH=`which gas` if test -x $GASPATH; then echo "$ac_t""$GASPATH" 1>&6 GASDIR=`dirname $GASPATH` CXXFLAGS="$CXXFLAGS -B$GASDIR/g" else echo "$ac_t""not found" 1>&6 fi else echo "$ac_t""don't know how to get $tc_cv_cxx_family to use gas" 1>&6 fi fi ######################################################################## ## ## Backends ## ## I would love to tweak TI_CHECK_BACKEND so that it ## automatically takes care of the AM_CONDITIONAL for you. ## Unfortunately, that does not actually work due to limitations of ## automake-1.4, which requires all AM_CONDITIONAL declarations ## to be directly visible in the configure.in script. Phooey. ## ## workstations and workstation clusters echo $ac_n "checking for sequential backend""... $ac_c" 1>&6 echo "configure:17759: checking for sequential backend" >&5 override="" if true; then # Check whether --enable-sequential or --disable-sequential was given. if test "${enable_sequential+set}" = set; then enableval="$enable_sequential" : fi case "$enable_sequential" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_sequential=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS sequential" enable_sequential=yes fi else enable_sequential=no fi echo "$ac_t""$enable_sequential$override" 1>&6 if test "$enable_sequential" = yes; then BACKEND_SEQUENTIAL_TRUE= BACKEND_SEQUENTIAL_FALSE='#' else BACKEND_SEQUENTIAL_TRUE='#' BACKEND_SEQUENTIAL_FALSE= fi echo $ac_n "checking for smp backend""... $ac_c" 1>&6 echo "configure:17799: checking for smp backend" >&5 override="" if test "$have_pthread" = yes; then # Check whether --enable-smp or --disable-smp was given. if test "${enable_smp+set}" = set; then enableval="$enable_smp" : fi case "$enable_smp" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_smp=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS smp" enable_smp=yes fi else enable_smp=no fi echo "$ac_t""$enable_smp$override" 1>&6 if test "$enable_smp" = yes; then BACKEND_SMP_TRUE= BACKEND_SMP_FALSE='#' else BACKEND_SMP_TRUE='#' BACKEND_SMP_FALSE= fi echo $ac_n "checking for udp-cluster-uniprocess backend""... $ac_c" 1>&6 echo "configure:17839: checking for udp-cluster-uniprocess backend" >&5 override="" if test "$supported_amudp$have_amudp" = yesyes; then # Check whether --enable-udp-cluster-uniprocess or --disable-udp-cluster-uniprocess was given. if test "${enable_udp_cluster_uniprocess+set}" = set; then enableval="$enable_udp_cluster_uniprocess" : fi case "$enable_udp_cluster_uniprocess" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_udp_cluster_uniprocess=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS udp-cluster-uniprocess" enable_udp_cluster_uniprocess=yes fi else enable_udp_cluster_uniprocess=no fi echo "$ac_t""$enable_udp_cluster_uniprocess$override" 1>&6 if test "$enable_udp_cluster_uniprocess" = yes; then BACKEND_UDP_CLUSTER_UNIPROCESS_TRUE= BACKEND_UDP_CLUSTER_UNIPROCESS_FALSE='#' else BACKEND_UDP_CLUSTER_UNIPROCESS_TRUE='#' BACKEND_UDP_CLUSTER_UNIPROCESS_FALSE= fi echo $ac_n "checking for udp-cluster-smp backend""... $ac_c" 1>&6 echo "configure:17879: checking for udp-cluster-smp backend" >&5 override="" if test "$supported_amudp$have_amudp$have_pthread" = yesyesyes; then # Check whether --enable-udp-cluster-smp or --disable-udp-cluster-smp was given. if test "${enable_udp_cluster_smp+set}" = set; then enableval="$enable_udp_cluster_smp" : fi case "$enable_udp_cluster_smp" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_udp_cluster_smp=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS udp-cluster-smp" enable_udp_cluster_smp=yes fi else enable_udp_cluster_smp=no fi echo "$ac_t""$enable_udp_cluster_smp$override" 1>&6 if test "$enable_udp_cluster_smp" = yes; then BACKEND_UDP_CLUSTER_SMP_TRUE= BACKEND_UDP_CLUSTER_SMP_FALSE='#' else BACKEND_UDP_CLUSTER_SMP_TRUE='#' BACKEND_UDP_CLUSTER_SMP_FALSE= fi echo $ac_n "checking for mpi-cluster-uniprocess backend""... $ac_c" 1>&6 echo "configure:17919: checking for mpi-cluster-uniprocess backend" >&5 override="" if test "$have_mpi$supported_ammpi" = yesyes; then # Check whether --enable-mpi-cluster-uniprocess or --disable-mpi-cluster-uniprocess was given. if test "${enable_mpi_cluster_uniprocess+set}" = set; then enableval="$enable_mpi_cluster_uniprocess" : fi case "$enable_mpi_cluster_uniprocess" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_mpi_cluster_uniprocess=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS mpi-cluster-uniprocess" enable_mpi_cluster_uniprocess=yes fi else enable_mpi_cluster_uniprocess=no fi echo "$ac_t""$enable_mpi_cluster_uniprocess$override" 1>&6 if test "$enable_mpi_cluster_uniprocess" = yes; then BACKEND_MPI_CLUSTER_UNIPROCESS_TRUE= BACKEND_MPI_CLUSTER_UNIPROCESS_FALSE='#' else BACKEND_MPI_CLUSTER_UNIPROCESS_TRUE='#' BACKEND_MPI_CLUSTER_UNIPROCESS_FALSE= fi echo $ac_n "checking for mpi-cluster-smp backend""... $ac_c" 1>&6 echo "configure:17959: checking for mpi-cluster-smp backend" >&5 override="" if test "$have_mpi$supported_ammpi$have_pthread" = yesyesyes; then # Check whether --enable-mpi-cluster-smp or --disable-mpi-cluster-smp was given. if test "${enable_mpi_cluster_smp+set}" = set; then enableval="$enable_mpi_cluster_smp" : fi case "$enable_mpi_cluster_smp" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_mpi_cluster_smp=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS mpi-cluster-smp" enable_mpi_cluster_smp=yes fi else enable_mpi_cluster_smp=no fi echo "$ac_t""$enable_mpi_cluster_smp$override" 1>&6 if test "$enable_mpi_cluster_smp" = yes; then BACKEND_MPI_CLUSTER_SMP_TRUE= BACKEND_MPI_CLUSTER_SMP_FALSE='#' else BACKEND_MPI_CLUSTER_SMP_TRUE='#' BACKEND_MPI_CLUSTER_SMP_FALSE= fi # the mill-* backends are broken #TI_CHECK_BACKEND(mill-uniprocess, #test "$have_libens$have_pthread$have_rexec" = yesyesyes) #AM_CONDITIONAL(BACKEND_MILL_UNIPROCESS, test "$enable_mill_uniprocess" = yes) # #TI_CHECK_BACKEND(mill-smp, #test "$have_libens$have_pthread$have_rexec" = yesyesyes) #AM_CONDITIONAL(BACKEND_MILL_SMP, test "$enable_mill_smp" = yes) # #TI_CHECK_BACKEND(mill-cluster-uniprocess, #test "$have_libamvia$enable_mill_uniprocess" = yesyes) #AM_CONDITIONAL(BACKEND_MILL_CLUSTER_UNIPROCESS, test "$enable_mill_cluster_uniprocess" = yes) # #TI_CHECK_BACKEND(mill-cluster-smp, #test "$have_libamvia$enable_mill_smp" = yesyes) #AM_CONDITIONAL(BACKEND_MILL_CLUSTER_SMP, test "$enable_mill_cluster_smp" = yes) echo $ac_n "checking for now-uniprocess backend""... $ac_c" 1>&6 echo "configure:18016: checking for now-uniprocess backend" >&5 override="" if test "$have_libens$have_libglunix" = yesyes; then # Check whether --enable-now-uniprocess or --disable-now-uniprocess was given. if test "${enable_now_uniprocess+set}" = set; then enableval="$enable_now_uniprocess" : fi case "$enable_now_uniprocess" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_now_uniprocess=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS now-uniprocess" enable_now_uniprocess=yes fi else enable_now_uniprocess=no fi echo "$ac_t""$enable_now_uniprocess$override" 1>&6 if test "$enable_now_uniprocess" = yes; then BACKEND_NOW_UNIPROCESS_TRUE= BACKEND_NOW_UNIPROCESS_FALSE='#' else BACKEND_NOW_UNIPROCESS_TRUE='#' BACKEND_NOW_UNIPROCESS_FALSE= fi echo $ac_n "checking for now-cluster-uniprocess backend""... $ac_c" 1>&6 echo "configure:18056: checking for now-cluster-uniprocess backend" >&5 override="" if test "$have_libam2$enable_now_uniprocess" = yesyes; then # Check whether --enable-now-cluster-uniprocess or --disable-now-cluster-uniprocess was given. if test "${enable_now_cluster_uniprocess+set}" = set; then enableval="$enable_now_cluster_uniprocess" : fi case "$enable_now_cluster_uniprocess" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_now_cluster_uniprocess=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS now-cluster-uniprocess" enable_now_cluster_uniprocess=yes fi else enable_now_cluster_uniprocess=no fi echo "$ac_t""$enable_now_cluster_uniprocess$override" 1>&6 if test "$enable_now_cluster_uniprocess" = yes; then BACKEND_NOW_CLUSTER_UNIPROCESS_TRUE= BACKEND_NOW_CLUSTER_UNIPROCESS_FALSE='#' else BACKEND_NOW_CLUSTER_UNIPROCESS_TRUE='#' BACKEND_NOW_CLUSTER_UNIPROCESS_FALSE= fi ## supercomputers echo $ac_n "checking for tera-thread backend""... $ac_c" 1>&6 echo "configure:18099: checking for tera-thread backend" >&5 override="" if test yes = "$tc_cv_cc_is_tera_cc"; then # Check whether --enable-tera-thread or --disable-tera-thread was given. if test "${enable_tera_thread+set}" = set; then enableval="$enable_tera_thread" : fi case "$enable_tera_thread" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_tera_thread=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS tera-thread" enable_tera_thread=yes fi else enable_tera_thread=no fi echo "$ac_t""$enable_tera_thread$override" 1>&6 if test "$enable_tera_thread" = yes; then BACKEND_TERA_THREAD_TRUE= BACKEND_TERA_THREAD_FALSE='#' else BACKEND_TERA_THREAD_TRUE='#' BACKEND_TERA_THREAD_FALSE= fi echo $ac_n "checking for sp2 backend""... $ac_c" 1>&6 echo "configure:18139: checking for sp2 backend" >&5 override="" if false; then # Check whether --enable-sp2 or --disable-sp2 was given. if test "${enable_sp2+set}" = set; then enableval="$enable_sp2" : fi case "$enable_sp2" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_sp2=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS sp2" enable_sp2=yes fi else enable_sp2=no fi echo "$ac_t""$enable_sp2$override" 1>&6 if test "$enable_sp2" = yes; then BACKEND_SP2_TRUE= BACKEND_SP2_FALSE='#' else BACKEND_SP2_TRUE='#' BACKEND_SP2_FALSE= fi echo $ac_n "checking for sp2clump backend""... $ac_c" 1>&6 echo "configure:18179: checking for sp2clump backend" >&5 override="" if false; then # Check whether --enable-sp2clump or --disable-sp2clump was given. if test "${enable_sp2clump+set}" = set; then enableval="$enable_sp2clump" : fi case "$enable_sp2clump" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_sp2clump=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS sp2clump" enable_sp2clump=yes fi else enable_sp2clump=no fi echo "$ac_t""$enable_sp2clump$override" 1>&6 if test "$enable_sp2clump" = yes; then BACKEND_SP2CLUMP_TRUE= BACKEND_SP2CLUMP_FALSE='#' else BACKEND_SP2CLUMP_TRUE='#' BACKEND_SP2CLUMP_FALSE= fi echo $ac_n "checking for sp3 backend""... $ac_c" 1>&6 echo "configure:18219: checking for sp3 backend" >&5 override="" if test "$aix$have_pthread$have_mpcc_r" = yesyesyes; then # Check whether --enable-sp3 or --disable-sp3 was given. if test "${enable_sp3+set}" = set; then enableval="$enable_sp3" : fi case "$enable_sp3" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_sp3=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS sp3" enable_sp3=yes fi else enable_sp3=no fi echo "$ac_t""$enable_sp3$override" 1>&6 if test "$enable_sp3" = yes; then BACKEND_SP3_TRUE= BACKEND_SP3_FALSE='#' else BACKEND_SP3_TRUE='#' BACKEND_SP3_FALSE= fi echo $ac_n "checking for cray-t3e backend""... $ac_c" 1>&6 echo "configure:18259: checking for cray-t3e backend" >&5 override="" if test yes = "$tc_cv_cc_is_cray_gnu_cc" -o yes = "$tc_cv_cc_is_cray_t3e_cc"; then # Check whether --enable-cray-t3e or --disable-cray-t3e was given. if test "${enable_cray_t3e+set}" = set; then enableval="$enable_cray_t3e" : fi case "$enable_cray_t3e" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_cray_t3e=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS cray-t3e" enable_cray_t3e=yes fi else enable_cray_t3e=no fi echo "$ac_t""$enable_cray_t3e$override" 1>&6 if test "$enable_cray_t3e" = yes; then BACKEND_CRAY_T3E_TRUE= BACKEND_CRAY_T3E_FALSE='#' else BACKEND_CRAY_T3E_TRUE='#' BACKEND_CRAY_T3E_FALSE= fi # GASNet backends echo $ac_n "checking for gasnet-elan-uni backend""... $ac_c" 1>&6 echo "configure:18300: checking for gasnet-elan-uni backend" >&5 override="" if test "$enable_gasnet_elan" = yes; then # Check whether --enable-gasnet-elan-uni or --disable-gasnet-elan-uni was given. if test "${enable_gasnet_elan_uni+set}" = set; then enableval="$enable_gasnet_elan_uni" : fi case "$enable_gasnet_elan_uni" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_gasnet_elan_uni=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS gasnet-elan-uni" enable_gasnet_elan_uni=yes fi else enable_gasnet_elan_uni=no fi echo "$ac_t""$enable_gasnet_elan_uni$override" 1>&6 if test "$enable_gasnet_elan" = yes; then BACKEND_GASNET_ELAN_UNI_TRUE= BACKEND_GASNET_ELAN_UNI_FALSE='#' else BACKEND_GASNET_ELAN_UNI_TRUE='#' BACKEND_GASNET_ELAN_UNI_FALSE= fi echo $ac_n "checking for gasnet-elan-smp backend""... $ac_c" 1>&6 echo "configure:18340: checking for gasnet-elan-smp backend" >&5 override="" if test "$enable_gasnet_elan$have_pthread" = yesyes; then # Check whether --enable-gasnet-elan-smp or --disable-gasnet-elan-smp was given. if test "${enable_gasnet_elan_smp+set}" = set; then enableval="$enable_gasnet_elan_smp" : fi case "$enable_gasnet_elan_smp" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_gasnet_elan_smp=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS gasnet-elan-smp" enable_gasnet_elan_smp=yes fi else enable_gasnet_elan_smp=no fi echo "$ac_t""$enable_gasnet_elan_smp$override" 1>&6 if test "$enable_gasnet_elan$have_pthread" = yesyes; then BACKEND_GASNET_ELAN_SMP_TRUE= BACKEND_GASNET_ELAN_SMP_FALSE='#' else BACKEND_GASNET_ELAN_SMP_TRUE='#' BACKEND_GASNET_ELAN_SMP_FALSE= fi echo $ac_n "checking for gasnet-lapi-uni backend""... $ac_c" 1>&6 echo "configure:18380: checking for gasnet-lapi-uni backend" >&5 override="" if test "$enable_gasnet_lapi" = yes; then # Check whether --enable-gasnet-lapi-uni or --disable-gasnet-lapi-uni was given. if test "${enable_gasnet_lapi_uni+set}" = set; then enableval="$enable_gasnet_lapi_uni" : fi case "$enable_gasnet_lapi_uni" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_gasnet_lapi_uni=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS gasnet-lapi-uni" enable_gasnet_lapi_uni=yes fi else enable_gasnet_lapi_uni=no fi echo "$ac_t""$enable_gasnet_lapi_uni$override" 1>&6 if test "$enable_gasnet_lapi" = yes; then BACKEND_GASNET_LAPI_UNI_TRUE= BACKEND_GASNET_LAPI_UNI_FALSE='#' else BACKEND_GASNET_LAPI_UNI_TRUE='#' BACKEND_GASNET_LAPI_UNI_FALSE= fi echo $ac_n "checking for gasnet-lapi-smp backend""... $ac_c" 1>&6 echo "configure:18420: checking for gasnet-lapi-smp backend" >&5 override="" if test "$enable_gasnet_lapi$have_pthread" = yesyes; then # Check whether --enable-gasnet-lapi-smp or --disable-gasnet-lapi-smp was given. if test "${enable_gasnet_lapi_smp+set}" = set; then enableval="$enable_gasnet_lapi_smp" : fi case "$enable_gasnet_lapi_smp" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_gasnet_lapi_smp=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS gasnet-lapi-smp" enable_gasnet_lapi_smp=yes fi else enable_gasnet_lapi_smp=no fi echo "$ac_t""$enable_gasnet_lapi_smp$override" 1>&6 if test "$enable_gasnet_lapi$have_pthread" = yesyes; then BACKEND_GASNET_LAPI_SMP_TRUE= BACKEND_GASNET_LAPI_SMP_FALSE='#' else BACKEND_GASNET_LAPI_SMP_TRUE='#' BACKEND_GASNET_LAPI_SMP_FALSE= fi echo $ac_n "checking for gasnet-shmem-uni backend""... $ac_c" 1>&6 echo "configure:18460: checking for gasnet-shmem-uni backend" >&5 override="" if test "$enable_gasnet_shmem" = yes; then # Check whether --enable-gasnet-shmem-uni or --disable-gasnet-shmem-uni was given. if test "${enable_gasnet_shmem_uni+set}" = set; then enableval="$enable_gasnet_shmem_uni" : fi case "$enable_gasnet_shmem_uni" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_gasnet_shmem_uni=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS gasnet-shmem-uni" enable_gasnet_shmem_uni=yes fi else enable_gasnet_shmem_uni=no fi echo "$ac_t""$enable_gasnet_shmem_uni$override" 1>&6 if test "$enable_gasnet_shmem" = yes; then BACKEND_GASNET_SHMEM_UNI_TRUE= BACKEND_GASNET_SHMEM_UNI_FALSE='#' else BACKEND_GASNET_SHMEM_UNI_TRUE='#' BACKEND_GASNET_SHMEM_UNI_FALSE= fi echo $ac_n "checking for gasnet-vapi-uni backend""... $ac_c" 1>&6 echo "configure:18500: checking for gasnet-vapi-uni backend" >&5 override="" if test "$enable_gasnet_vapi" = yes; then # Check whether --enable-gasnet-vapi-uni or --disable-gasnet-vapi-uni was given. if test "${enable_gasnet_vapi_uni+set}" = set; then enableval="$enable_gasnet_vapi_uni" : fi case "$enable_gasnet_vapi_uni" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_gasnet_vapi_uni=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS gasnet-vapi-uni" enable_gasnet_vapi_uni=yes fi else enable_gasnet_vapi_uni=no fi echo "$ac_t""$enable_gasnet_vapi_uni$override" 1>&6 if test "$enable_gasnet_vapi" = yes; then BACKEND_GASNET_LAPI_UNI_TRUE= BACKEND_GASNET_LAPI_UNI_FALSE='#' else BACKEND_GASNET_LAPI_UNI_TRUE='#' BACKEND_GASNET_LAPI_UNI_FALSE= fi echo $ac_n "checking for gasnet-vapi-smp backend""... $ac_c" 1>&6 echo "configure:18540: checking for gasnet-vapi-smp backend" >&5 override="" if test "$enable_gasnet_vapi$have_pthread" = yesyes; then # Check whether --enable-gasnet-vapi-smp or --disable-gasnet-vapi-smp was given. if test "${enable_gasnet_vapi_smp+set}" = set; then enableval="$enable_gasnet_vapi_smp" : fi case "$enable_gasnet_vapi_smp" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_gasnet_vapi_smp=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS gasnet-vapi-smp" enable_gasnet_vapi_smp=yes fi else enable_gasnet_vapi_smp=no fi echo "$ac_t""$enable_gasnet_vapi_smp$override" 1>&6 if test "$enable_gasnet_vapi$have_pthread" = yesyes; then BACKEND_GASNET_LAPI_SMP_TRUE= BACKEND_GASNET_LAPI_SMP_FALSE='#' else BACKEND_GASNET_LAPI_SMP_TRUE='#' BACKEND_GASNET_LAPI_SMP_FALSE= fi echo $ac_n "checking for gasnet-gm-uni backend""... $ac_c" 1>&6 echo "configure:18580: checking for gasnet-gm-uni backend" >&5 override="" if test "$enable_gasnet_gm" = yes; then # Check whether --enable-gasnet-gm-uni or --disable-gasnet-gm-uni was given. if test "${enable_gasnet_gm_uni+set}" = set; then enableval="$enable_gasnet_gm_uni" : fi case "$enable_gasnet_gm_uni" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_gasnet_gm_uni=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS gasnet-gm-uni" enable_gasnet_gm_uni=yes fi else enable_gasnet_gm_uni=no fi echo "$ac_t""$enable_gasnet_gm_uni$override" 1>&6 if test "$enable_gasnet_gm" = yes; then BACKEND_GASNET_GM_UNI_TRUE= BACKEND_GASNET_GM_UNI_FALSE='#' else BACKEND_GASNET_GM_UNI_TRUE='#' BACKEND_GASNET_GM_UNI_FALSE= fi echo $ac_n "checking for gasnet-gm-smp backend""... $ac_c" 1>&6 echo "configure:18620: checking for gasnet-gm-smp backend" >&5 override="" if test "$enable_gasnet_gm$have_pthread" = yesyes; then # Check whether --enable-gasnet-gm-smp or --disable-gasnet-gm-smp was given. if test "${enable_gasnet_gm_smp+set}" = set; then enableval="$enable_gasnet_gm_smp" : fi case "$enable_gasnet_gm_smp" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_gasnet_gm_smp=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS gasnet-gm-smp" enable_gasnet_gm_smp=yes fi else enable_gasnet_gm_smp=no fi echo "$ac_t""$enable_gasnet_gm_smp$override" 1>&6 if test "$enable_gasnet_gm$have_pthread" = yesyes; then BACKEND_GASNET_GM_SMP_TRUE= BACKEND_GASNET_GM_SMP_FALSE='#' else BACKEND_GASNET_GM_SMP_TRUE='#' BACKEND_GASNET_GM_SMP_FALSE= fi echo $ac_n "checking for gasnet-mpi-uni backend""... $ac_c" 1>&6 echo "configure:18660: checking for gasnet-mpi-uni backend" >&5 override="" if test "$enable_gasnet_mpi" = yes; then # Check whether --enable-gasnet-mpi-uni or --disable-gasnet-mpi-uni was given. if test "${enable_gasnet_mpi_uni+set}" = set; then enableval="$enable_gasnet_mpi_uni" : fi case "$enable_gasnet_mpi_uni" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_gasnet_mpi_uni=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS gasnet-mpi-uni" enable_gasnet_mpi_uni=yes fi else enable_gasnet_mpi_uni=no fi echo "$ac_t""$enable_gasnet_mpi_uni$override" 1>&6 if test "$enable_gasnet_mpi" = yes; then BACKEND_GASNET_MPI_UNI_TRUE= BACKEND_GASNET_MPI_UNI_FALSE='#' else BACKEND_GASNET_MPI_UNI_TRUE='#' BACKEND_GASNET_MPI_UNI_FALSE= fi echo $ac_n "checking for gasnet-mpi-smp backend""... $ac_c" 1>&6 echo "configure:18700: checking for gasnet-mpi-smp backend" >&5 override="" if test "$enable_gasnet_mpi$have_pthread" = yesyes; then # Check whether --enable-gasnet-mpi-smp or --disable-gasnet-mpi-smp was given. if test "${enable_gasnet_mpi_smp+set}" = set; then enableval="$enable_gasnet_mpi_smp" : fi case "$enable_gasnet_mpi_smp" in '' | yes) : ;; *) override=yes ;; esac if test "$override" = "yes" ; then enable_gasnet_mpi_smp=no override=" (disabled from configure command-line)" else BACKENDS="$BACKENDS gasnet-mpi-smp" enable_gasnet_mpi_smp=yes fi else enable_gasnet_mpi_smp=no fi echo "$ac_t""$enable_gasnet_mpi_smp$override" 1>&6 if test "$enable_gasnet_mpi$have_pthread" = yesyes; then BACKEND_GASNET_MPI_SMP_TRUE= BACKEND_GASNET_MPI_SMP_FALSE='#' else BACKEND_GASNET_MPI_SMP_TRUE='#' BACKEND_GASNET_MPI_SMP_FALSE= fi ######################################################################## ## ## Final Output ## tc_cv_exec_list="$tc_cv_exec_list cc-wrapper" tc_cv_exec_list="$tc_cv_exec_list runtime/gp-trace/gp-tracer" tc_cv_exec_list="$tc_cv_exec_list tcbuild/cleanup" tc_cv_exec_list="$tc_cv_exec_list tcbuild/makedepend" tc_cv_exec_list="$tc_cv_exec_list tcbuild/refresh-cache" tc_cv_exec_list="$tc_cv_exec_list tcbuild/tcbuild" tc_cv_exec_list="$tc_cv_exec_list tcbuild/tcbuild-demangler" tc_cv_exec_list="$tc_cv_exec_list tcbuild/tcrun" tc_cv_exec_list="$tc_cv_exec_list tlib/ti/domains/setup-debug" tc_cv_exec_list="$tc_cv_exec_list tlib/ti/domains/setup-optimize" tc_cv_exec_list="$tc_cv_exec_list version" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/abort_norm" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/domain1_tester" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/error_tester" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/execute_tester" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/ignore_exitval" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/run_n_times" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/sort_stdout_err_norm" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/stats_norm" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/stoptifu_norm" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/stdout_err_norm" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/stdout_err_tester" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/stdout_err_test_exe" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/stdout_err_vnn_norm" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/tc_nocrash_norm" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/tc_stats_tester" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/tc_tester" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/testDriver" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/ti_err_exe_tester" tc_cv_exec_list="$tc_cv_exec_list ex/TestSuite/bin/watchdog" rm -f gasnet_errsave_file gasnet_errsave_err for varname in $tc_cv_acenv_list; do val=`eval echo '$'"$varname"` if test "$val" != ""; then cachevarname=tc_cv_acenv_$varname eval $cachevarname=\"$val\" fi done if test "$_total_pushcnt" -ge "1" ; then { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR mismatch: $_total_pushcnt more pushes than pops" 1>&2; exit 1; } fi trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs. It is not useful on other systems. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcache if cmp -s $cache_file confcache; then : else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Any assignment to VPATH causes Sun make to only execute # the first set of double-colon rules, so remove it if not needed. # If there is a colon in the path, we need to keep it. if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' fi trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 DEFS=-DHAVE_CONFIG_H # Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} echo creating $CONFIG_STATUS rm -f $CONFIG_STATUS cat > $CONFIG_STATUS </dev/null | sed 1q`: # # $0 $ac_configure_args # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" for ac_option do case "\$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "$CONFIG_STATUS generated by autoconf version 2.13" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; *) echo "\$ac_cs_usage"; exit 1 ;; esac done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" trap 'rm -fr `echo "cc-wrapper cc-wrapper.mk Makefile c-types/Makefile code-files/Makefile config-aux/Makefile ex/Makefile ex/TestSuite/Makefile ex/comparable/Makefile stoptifu/Makefile ex/TestSuite/bin/Makefile ex/TestSuite/bin/abort_norm ex/TestSuite/bin/domain1_tester ex/TestSuite/bin/error_tester ex/TestSuite/bin/execute_tester ex/TestSuite/bin/ignore_exitval ex/TestSuite/bin/run_n_times ex/TestSuite/bin/sort_stdout_err_norm ex/TestSuite/bin/stats_norm ex/TestSuite/bin/stoptifu_norm ex/TestSuite/bin/stdout_err_norm ex/TestSuite/bin/stdout_err_tester ex/TestSuite/bin/stdout_err_test_exe ex/TestSuite/bin/stdout_err_vnn_norm ex/TestSuite/bin/tc_nocrash_norm ex/TestSuite/bin/tc_stats_tester ex/TestSuite/bin/tc_tester ex/TestSuite/bin/testDriver ex/TestSuite/bin/ti_err_exe_tester ex/TestSuite/bin/watchdog runtime/Makefile runtime/amlapi/Makefile runtime/amudp/Makefile runtime/ammpi/Makefile runtime/amudp/Makefile.titanium runtime/ammpi/Makefile.titanium runtime/backend/Makefile runtime/backend/common/Makefile runtime/backend/cray-t3e/Makefile runtime/backend/cray-t3e/cray-t3e.mk runtime/backend/gasnet-elan-smp/Makefile runtime/backend/gasnet-elan-smp/gasnet-elan-smp.mk runtime/backend/gasnet-elan-uni/Makefile runtime/backend/gasnet-elan-uni/gasnet-elan-uni.mk runtime/backend/gasnet-lapi-smp/Makefile runtime/backend/gasnet-lapi-smp/gasnet-lapi-smp.mk runtime/backend/gasnet-lapi-uni/Makefile runtime/backend/gasnet-lapi-uni/gasnet-lapi-uni.mk runtime/backend/gasnet-shmem-uni/Makefile runtime/backend/gasnet-shmem-uni/gasnet-shmem-uni.mk runtime/backend/gasnet-vapi-smp/Makefile runtime/backend/gasnet-vapi-smp/gasnet-vapi-smp.mk runtime/backend/gasnet-vapi-uni/Makefile runtime/backend/gasnet-vapi-uni/gasnet-vapi-uni.mk runtime/backend/gasnet-gm-smp/Makefile runtime/backend/gasnet-gm-smp/gasnet-gm-smp.mk runtime/backend/gasnet-gm-uni/Makefile runtime/backend/gasnet-gm-uni/gasnet-gm-uni.mk runtime/backend/gasnet-mpi-smp/Makefile runtime/backend/gasnet-mpi-smp/gasnet-mpi-smp.mk runtime/backend/gasnet-mpi-uni/Makefile runtime/backend/gasnet-mpi-uni/gasnet-mpi-uni.mk runtime/backend/mill-cluster-smp/Makefile runtime/backend/mill-cluster-smp/mill-cluster-smp.mk runtime/backend/mill-cluster-uniprocess/Makefile runtime/backend/mill-cluster-uniprocess/mill-cluster-uniprocess.mk runtime/backend/mill-smp/Makefile runtime/backend/mill-smp/mill-smp.mk runtime/backend/mill-uniprocess/Makefile runtime/backend/mill-uniprocess/mill-uniprocess.mk runtime/backend/mpi-cluster-smp/Makefile runtime/backend/mpi-cluster-smp/mpi-cluster-smp.mk runtime/backend/mpi-cluster-uniprocess/Makefile runtime/backend/mpi-cluster-uniprocess/mpi-cluster-uniprocess.mk runtime/backend/now-cluster-uniprocess/Makefile runtime/backend/now-cluster-uniprocess/now-cluster-uniprocess.mk runtime/backend/now-uniprocess/Makefile runtime/backend/now-uniprocess/now-uniprocess.mk runtime/backend/sequential/Makefile runtime/backend/sequential/sequential.mk runtime/backend/smp/Makefile runtime/backend/smp/smp.mk runtime/backend/sp2/Makefile runtime/backend/sp2/sp2.mk runtime/backend/sp2clump/Makefile runtime/backend/sp2clump/sp2clump.mk runtime/backend/sp3/Makefile runtime/backend/sp3/sp3.mk runtime/backend/tera-thread/Makefile runtime/backend/tera-thread/tera-thread.mk runtime/backend/udp-cluster-smp/Makefile runtime/backend/udp-cluster-smp/udp-cluster-smp.mk runtime/backend/udp-cluster-uniprocess/Makefile runtime/backend/udp-cluster-uniprocess/udp-cluster-uniprocess.mk runtime/fp-utils/Makefile runtime/gc-build/Makefile runtime/gc-build/common.conf runtime/gp-trace/Makefile runtime/gp-trace/gp-tracer runtime/native/Makefile qual-infer/Makefile qual-infer/cqual/Makefile qual-infer/cqual/libcompat/Makefile qual-infer/local/Makefile qual-infer/sharing/Makefile qual-infer/sharing/early/Makefile qual-infer/sharing/late/Makefile tcbuild/Makefile tcbuild/cleanup tcbuild/config.mk tcbuild/makedepend tcbuild/refresh-cache tcbuild/tcbuild tcbuild/tcbuild-demangler tcbuild/tcbuild.mk tcbuild/tcrun templates/Makefile tlib/Makefile tlib/tlib.mk tlib/java/Makefile tlib/ti/Makefile tlib/ti/domains/Makefile tlib/ti/domains/setup-optimize tlib/ti/domains/setup-debug version ti_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF $ac_vpsub $extrasub s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g s%@LIBS@%$LIBS%g s%@exec_prefix@%$exec_prefix%g s%@prefix@%$prefix%g s%@program_transform_name@%$program_transform_name%g s%@bindir@%$bindir%g s%@sbindir@%$sbindir%g s%@libexecdir@%$libexecdir%g s%@datadir@%$datadir%g s%@sysconfdir@%$sysconfdir%g s%@sharedstatedir@%$sharedstatedir%g s%@localstatedir@%$localstatedir%g s%@libdir@%$libdir%g s%@includedir@%$includedir%g s%@oldincludedir@%$oldincludedir%g s%@infodir@%$infodir%g s%@mandir@%$mandir%g s%@host@%$host%g s%@host_alias@%$host_alias%g s%@host_cpu@%$host_cpu%g s%@host_vendor@%$host_vendor%g s%@host_os@%$host_os%g s%@target@%$target%g s%@target_alias@%$target_alias%g s%@target_cpu@%$target_cpu%g s%@target_vendor@%$target_vendor%g s%@target_os@%$target_os%g s%@build@%$build%g s%@build_alias@%$build_alias%g s%@build_cpu@%$build_cpu%g s%@build_vendor@%$build_vendor%g s%@build_os@%$build_os%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_DATA@%$INSTALL_DATA%g s%@PACKAGE@%$PACKAGE%g s%@VERSION@%$VERSION%g s%@ACLOCAL@%$ACLOCAL%g s%@AUTOCONF@%$AUTOCONF%g s%@AUTOMAKE@%$AUTOMAKE%g s%@AUTOHEADER@%$AUTOHEADER%g s%@MAKEINFO@%$MAKEINFO%g s%@SET_MAKE@%$SET_MAKE%g s%@PWD_PROG@%$PWD_PROG%g s%@AWK@%$AWK%g s%@CONFIGURE_ARGS@%$CONFIGURE_ARGS%g s%@TOP_SRCDIR@%$TOP_SRCDIR%g s%@TOP_BUILDDIR@%$TOP_BUILDDIR%g s%@BUILD_IS_SRC_TRUE@%$BUILD_IS_SRC_TRUE%g s%@BUILD_IS_SRC_FALSE@%$BUILD_IS_SRC_FALSE%g s%@BUILD_IS_SRC@%$BUILD_IS_SRC%g s%@SYSTEM_NAME@%$SYSTEM_NAME%g s%@SYSTEM_TUPLE@%$SYSTEM_TUPLE%g s%@BUILD_ID@%$BUILD_ID%g s%@PERL@%$PERL%g s%@KSH@%$KSH%g s%@SUM@%$SUM%g s%@NM@%$NM%g s%@AR@%$AR%g s%@AS@%$AS%g s%@RANLIB@%$RANLIB%g s%@MAKE@%$MAKE%g s%@GMAKE@%$GMAKE%g s%@ENABLED_DEBUG_TRUE@%$ENABLED_DEBUG_TRUE%g s%@ENABLED_DEBUG_FALSE@%$ENABLED_DEBUG_FALSE%g s%@GLOBAL_DEBUG_MODE@%$GLOBAL_DEBUG_MODE%g s%@CC@%$CC%g s%@CPP@%$CPP%g s%@tc_cv__gfp_fullprogname_CPP@%$tc_cv__gfp_fullprogname_CPP%g s%@tc_cv__gfp_fullprogname_CC@%$tc_cv__gfp_fullprogname_CC%g s%@CROSS_COMPILING_TRUE@%$CROSS_COMPILING_TRUE%g s%@CROSS_COMPILING_FALSE@%$CROSS_COMPILING_FALSE%g s%@CROSS_COMPILING@%$CROSS_COMPILING%g s%@CXX@%$CXX%g s%@CXXCPP@%$CXXCPP%g s%@tc_cv__gfp_fullprogname_CXXCPP@%$tc_cv__gfp_fullprogname_CXXCPP%g s%@CXXCPPFLAGS@%$CXXCPPFLAGS%g s%@tc_cv__gfp_fullprogname_CXX@%$tc_cv__gfp_fullprogname_CXX%g s%@LEX@%$LEX%g s%@LEXLIB@%$LEXLIB%g s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g s%@LN_S@%$LN_S%g s%@YACC@%$YACC%g s%@GASNET_PERL_BYTESFLAG@%$GASNET_PERL_BYTESFLAG%g s%@have_mpcc_r@%$have_mpcc_r%g s%@CC_FAMILY@%$CC_FAMILY%g s%@CC_UNWRAPPED@%$CC_UNWRAPPED%g s%@CC_WRAPPED@%$CC_WRAPPED%g /@cc_wrapper_mk@/r $cc_wrapper_mk s%@cc_wrapper_mk@%%g s%@MIPS_ABI_FLAG@%$MIPS_ABI_FLAG%g s%@TCBUILD_CFLAGS_DEBUG@%$TCBUILD_CFLAGS_DEBUG%g s%@TCBUILD_CFLAGS_COMMON@%$TCBUILD_CFLAGS_COMMON%g s%@TCBUILD_CFLAGS_OPTIMIZE@%$TCBUILD_CFLAGS_OPTIMIZE%g s%@TCBUILD_CPUS@%$TCBUILD_CPUS%g s%@CXX_FAMILY@%$CXX_FAMILY%g s%@CXX_UNWRAPPED@%$CXX_UNWRAPPED%g s%@CXX_WRAPPED@%$CXX_WRAPPED%g s%@CXX_FAMILY_KAI_TRUE@%$CXX_FAMILY_KAI_TRUE%g s%@CXX_FAMILY_KAI_FALSE@%$CXX_FAMILY_KAI_FALSE%g s%@CXX_FAMILY_MIPS_TRUE@%$CXX_FAMILY_MIPS_TRUE%g s%@CXX_FAMILY_MIPS_FALSE@%$CXX_FAMILY_MIPS_FALSE%g s%@GENERIC_CXXFLAGS@%$GENERIC_CXXFLAGS%g s%@CXXFLAGSE@%$CXXFLAGSE%g s%@CXXFLAGSDIAG@%$CXXFLAGSDIAG%g s%@LIBGCC@%$LIBGCC%g s%@LIBM@%$LIBM%g s%@REXEC@%$REXEC%g s%@HAVE_PTHREAD_TRUE@%$HAVE_PTHREAD_TRUE%g s%@HAVE_PTHREAD_FALSE@%$HAVE_PTHREAD_FALSE%g s%@TIC_AMX_DEFINES@%$TIC_AMX_DEFINES%g s%@TIC_UDP_LIBS@%$TIC_UDP_LIBS%g s%@TIC_UETH_DEFINES@%$TIC_UETH_DEFINES%g s%@USE_AMUDP_TRUE@%$USE_AMUDP_TRUE%g s%@USE_AMUDP_FALSE@%$USE_AMUDP_FALSE%g s%@tc_cv__gfp_fullprogname_MPI_CC@%$tc_cv__gfp_fullprogname_MPI_CC%g s%@MPI_CC@%$MPI_CC%g s%@MPI_CFLAGS@%$MPI_CFLAGS%g s%@MPI_LIBS@%$MPI_LIBS%g s%@MPI_DEFINES@%$MPI_DEFINES%g s%@MPIRUN_CMD@%$MPIRUN_CMD%g s%@TI_MPIRUN_CMD@%$TI_MPIRUN_CMD%g s%@USE_AMMPI_TRUE@%$USE_AMMPI_TRUE%g s%@USE_AMMPI_FALSE@%$USE_AMMPI_FALSE%g s%@TIC_MACHINE_DEFINES@%$TIC_MACHINE_DEFINES%g s%@TIC_THREAD_DEFINES@%$TIC_THREAD_DEFINES%g s%@TIC_THREAD_LIBS@%$TIC_THREAD_LIBS%g s%@TIC_DL_LIBS@%$TIC_DL_LIBS%g s%@TIC_ENS_INCLUDES@%$TIC_ENS_INCLUDES%g s%@TIC_ENS_LD_FLAGS@%$TIC_ENS_LD_FLAGS%g s%@TIC_ENS_LIBS@%$TIC_ENS_LIBS%g s%@TIC_GLUNIX_DEFINES@%$TIC_GLUNIX_DEFINES%g s%@TIC_GLUNIX_INCLUDES@%$TIC_GLUNIX_INCLUDES%g s%@TIC_GLUNIX_LIBS@%$TIC_GLUNIX_LIBS%g s%@TIC_REXEC_DEFINES@%$TIC_REXEC_DEFINES%g s%@TIC_AM_DEFINES@%$TIC_AM_DEFINES%g s%@TIC_AM_LD_FLAGS@%$TIC_AM_LD_FLAGS%g s%@TIC_AM_LIBS@%$TIC_AM_LIBS%g s%@TIC_AM_INCLUDES@%$TIC_AM_INCLUDES%g s%@BACKEND_TIC_TRUE@%$BACKEND_TIC_TRUE%g s%@BACKEND_TIC_FALSE@%$BACKEND_TIC_FALSE%g s%@subdirs@%$subdirs%g s%@GASNET_TOOLS_INCLUDES@%$GASNET_TOOLS_INCLUDES%g s%@VAPIRUN_CMD@%$VAPIRUN_CMD%g s%@GMRUN_CMD@%$GMRUN_CMD%g s%@SRS_TRUE@%$SRS_TRUE%g s%@SRS_FALSE@%$SRS_FALSE%g s%@DEBUG_MEMORY_USAGE_TRUE@%$DEBUG_MEMORY_USAGE_TRUE%g s%@DEBUG_MEMORY_USAGE_FALSE@%$DEBUG_MEMORY_USAGE_FALSE%g s%@SPLIT_TREENODES_CC_TRUE@%$SPLIT_TREENODES_CC_TRUE%g s%@SPLIT_TREENODES_CC_FALSE@%$SPLIT_TREENODES_CC_FALSE%g s%@LIBPAPI@%$LIBPAPI%g s%@PAPI_INCLUDES@%$PAPI_INCLUDES%g s%@omega@%$omega%g s%@OMEGA_INCLUDES@%$OMEGA_INCLUDES%g s%@BUILD_OMEGA_TRUE@%$BUILD_OMEGA_TRUE%g s%@BUILD_OMEGA_FALSE@%$BUILD_OMEGA_FALSE%g s%@LIBOMEGA@%$LIBOMEGA%g s%@USE_SGLOBAL_INFERENCE_TRUE@%$USE_SGLOBAL_INFERENCE_TRUE%g s%@USE_SGLOBAL_INFERENCE_FALSE@%$USE_SGLOBAL_INFERENCE_FALSE%g s%@MAX_TIARITY@%$MAX_TIARITY%g s%@USE_GC_NONE_TRUE@%$USE_GC_NONE_TRUE%g s%@USE_GC_NONE_FALSE@%$USE_GC_NONE_FALSE%g s%@USE_GC_PTHREADS_TRUE@%$USE_GC_PTHREADS_TRUE%g s%@USE_GC_PTHREADS_FALSE@%$USE_GC_PTHREADS_FALSE%g s%@GC_CFLAGS_EXTRA@%$GC_CFLAGS_EXTRA%g s%@USE_TC_GC_TRUE@%$USE_TC_GC_TRUE%g s%@USE_TC_GC_FALSE@%$USE_TC_GC_FALSE%g s%@USE_NO_RUNTIME_AUTOBUILD_TRUE@%$USE_NO_RUNTIME_AUTOBUILD_TRUE%g s%@USE_NO_RUNTIME_AUTOBUILD_FALSE@%$USE_NO_RUNTIME_AUTOBUILD_FALSE%g s%@EXESUFFIX@%$EXESUFFIX%g s%@USE_TLIBG_TRUE@%$USE_TLIBG_TRUE%g s%@USE_TLIBG_FALSE@%$USE_TLIBG_FALSE%g s%@ALLOCA@%$ALLOCA%g s%@ALLOCA_IN_C@%$ALLOCA_IN_C%g s%@SIGHUP@%$SIGHUP%g s%@SIGINT@%$SIGINT%g s%@SIGQUIT@%$SIGQUIT%g s%@SIGTERM@%$SIGTERM%g s%@SIGUSR1@%$SIGUSR1%g s%@STDCXXLIB@%$STDCXXLIB%g s%@ARCH_CFLAGS@%$ARCH_CFLAGS%g s%@RUNTIME_CC_IS_CRAY_GNU_CC_TRUE@%$RUNTIME_CC_IS_CRAY_GNU_CC_TRUE%g s%@RUNTIME_CC_IS_CRAY_GNU_CC_FALSE@%$RUNTIME_CC_IS_CRAY_GNU_CC_FALSE%g s%@RUNTIME_CC_IS_CRAY_T3E_CC_TRUE@%$RUNTIME_CC_IS_CRAY_T3E_CC_TRUE%g s%@RUNTIME_CC_IS_CRAY_T3E_CC_FALSE@%$RUNTIME_CC_IS_CRAY_T3E_CC_FALSE%g s%@SIZEOF_CHAR@%$SIZEOF_CHAR%g s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g s%@SIZEOF_INT@%$SIZEOF_INT%g s%@SIZEOF_LONG@%$SIZEOF_LONG%g s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g s%@SIZEOF_VOID_P@%$SIZEOF_VOID_P%g s%@PLATFORM_ILP32_TRUE@%$PLATFORM_ILP32_TRUE%g s%@PLATFORM_ILP32_FALSE@%$PLATFORM_ILP32_FALSE%g s%@PLATFORM_LP64_TRUE@%$PLATFORM_LP64_TRUE%g s%@PLATFORM_LP64_FALSE@%$PLATFORM_LP64_FALSE%g s%@PLATFORM_ILP64_TRUE@%$PLATFORM_ILP64_TRUE%g s%@PLATFORM_ILP64_FALSE@%$PLATFORM_ILP64_FALSE%g s%@COMPLETE_STDINT_H@%$COMPLETE_STDINT_H%g s%@COMPLETE_INTTYPES_H@%$COMPLETE_INTTYPES_H%g s%@COMPLETE_SYS_TYPES_H@%$COMPLETE_SYS_TYPES_H%g s%@INTTYPES_DEFINES@%$INTTYPES_DEFINES%g s%@HAVE_PERL_TERMCAP_TRUE@%$HAVE_PERL_TERMCAP_TRUE%g s%@HAVE_PERL_TERMCAP_FALSE@%$HAVE_PERL_TERMCAP_FALSE%g s%@SP2_LD_LIBS@%$SP2_LD_LIBS%g s%@SP2_DEFINES@%$SP2_DEFINES%g s%@SP2_INCLUDES@%$SP2_INCLUDES%g s%@SP2_LD_FLAGS@%$SP2_LD_FLAGS%g s%@SP3_CC@%$SP3_CC%g s%@cxxLIBS@%$cxxLIBS%g s%@tcLDFLAGS@%$tcLDFLAGS%g s%@tcLIBS@%$tcLIBS%g s%@BACKENDS@%$BACKENDS%g s%@BACKEND_SEQUENTIAL_TRUE@%$BACKEND_SEQUENTIAL_TRUE%g s%@BACKEND_SEQUENTIAL_FALSE@%$BACKEND_SEQUENTIAL_FALSE%g s%@BACKEND_SMP_TRUE@%$BACKEND_SMP_TRUE%g s%@BACKEND_SMP_FALSE@%$BACKEND_SMP_FALSE%g s%@BACKEND_UDP_CLUSTER_UNIPROCESS_TRUE@%$BACKEND_UDP_CLUSTER_UNIPROCESS_TRUE%g s%@BACKEND_UDP_CLUSTER_UNIPROCESS_FALSE@%$BACKEND_UDP_CLUSTER_UNIPROCESS_FALSE%g s%@BACKEND_UDP_CLUSTER_SMP_TRUE@%$BACKEND_UDP_CLUSTER_SMP_TRUE%g s%@BACKEND_UDP_CLUSTER_SMP_FALSE@%$BACKEND_UDP_CLUSTER_SMP_FALSE%g s%@BACKEND_MPI_CLUSTER_UNIPROCESS_TRUE@%$BACKEND_MPI_CLUSTER_UNIPROCESS_TRUE%g s%@BACKEND_MPI_CLUSTER_UNIPROCESS_FALSE@%$BACKEND_MPI_CLUSTER_UNIPROCESS_FALSE%g s%@BACKEND_MPI_CLUSTER_SMP_TRUE@%$BACKEND_MPI_CLUSTER_SMP_TRUE%g s%@BACKEND_MPI_CLUSTER_SMP_FALSE@%$BACKEND_MPI_CLUSTER_SMP_FALSE%g s%@BACKEND_NOW_UNIPROCESS_TRUE@%$BACKEND_NOW_UNIPROCESS_TRUE%g s%@BACKEND_NOW_UNIPROCESS_FALSE@%$BACKEND_NOW_UNIPROCESS_FALSE%g s%@BACKEND_NOW_CLUSTER_UNIPROCESS_TRUE@%$BACKEND_NOW_CLUSTER_UNIPROCESS_TRUE%g s%@BACKEND_NOW_CLUSTER_UNIPROCESS_FALSE@%$BACKEND_NOW_CLUSTER_UNIPROCESS_FALSE%g s%@BACKEND_TERA_THREAD_TRUE@%$BACKEND_TERA_THREAD_TRUE%g s%@BACKEND_TERA_THREAD_FALSE@%$BACKEND_TERA_THREAD_FALSE%g s%@BACKEND_SP2_TRUE@%$BACKEND_SP2_TRUE%g s%@BACKEND_SP2_FALSE@%$BACKEND_SP2_FALSE%g s%@BACKEND_SP2CLUMP_TRUE@%$BACKEND_SP2CLUMP_TRUE%g s%@BACKEND_SP2CLUMP_FALSE@%$BACKEND_SP2CLUMP_FALSE%g s%@BACKEND_SP3_TRUE@%$BACKEND_SP3_TRUE%g s%@BACKEND_SP3_FALSE@%$BACKEND_SP3_FALSE%g s%@BACKEND_CRAY_T3E_TRUE@%$BACKEND_CRAY_T3E_TRUE%g s%@BACKEND_CRAY_T3E_FALSE@%$BACKEND_CRAY_T3E_FALSE%g s%@BACKEND_GASNET_ELAN_UNI_TRUE@%$BACKEND_GASNET_ELAN_UNI_TRUE%g s%@BACKEND_GASNET_ELAN_UNI_FALSE@%$BACKEND_GASNET_ELAN_UNI_FALSE%g s%@BACKEND_GASNET_ELAN_SMP_TRUE@%$BACKEND_GASNET_ELAN_SMP_TRUE%g s%@BACKEND_GASNET_ELAN_SMP_FALSE@%$BACKEND_GASNET_ELAN_SMP_FALSE%g s%@BACKEND_GASNET_LAPI_UNI_TRUE@%$BACKEND_GASNET_LAPI_UNI_TRUE%g s%@BACKEND_GASNET_LAPI_UNI_FALSE@%$BACKEND_GASNET_LAPI_UNI_FALSE%g s%@BACKEND_GASNET_LAPI_SMP_TRUE@%$BACKEND_GASNET_LAPI_SMP_TRUE%g s%@BACKEND_GASNET_LAPI_SMP_FALSE@%$BACKEND_GASNET_LAPI_SMP_FALSE%g s%@BACKEND_GASNET_SHMEM_UNI_TRUE@%$BACKEND_GASNET_SHMEM_UNI_TRUE%g s%@BACKEND_GASNET_SHMEM_UNI_FALSE@%$BACKEND_GASNET_SHMEM_UNI_FALSE%g s%@BACKEND_GASNET_GM_UNI_TRUE@%$BACKEND_GASNET_GM_UNI_TRUE%g s%@BACKEND_GASNET_GM_UNI_FALSE@%$BACKEND_GASNET_GM_UNI_FALSE%g s%@BACKEND_GASNET_GM_SMP_TRUE@%$BACKEND_GASNET_GM_SMP_TRUE%g s%@BACKEND_GASNET_GM_SMP_FALSE@%$BACKEND_GASNET_GM_SMP_FALSE%g s%@BACKEND_GASNET_MPI_UNI_TRUE@%$BACKEND_GASNET_MPI_UNI_TRUE%g s%@BACKEND_GASNET_MPI_UNI_FALSE@%$BACKEND_GASNET_MPI_UNI_FALSE%g s%@BACKEND_GASNET_MPI_SMP_TRUE@%$BACKEND_GASNET_MPI_SMP_TRUE%g s%@BACKEND_GASNET_MPI_SMP_FALSE@%$BACKEND_GASNET_MPI_SMP_FALSE%g CEOF EOF cat >> $CONFIG_STATUS <<\EOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. ac_file=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_cmds # Line after last line for current file. ac_more_lines=: ac_sed_cmds="" while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file else sed "${ac_end}q" conftest.subs > conftest.s$ac_file fi if test ! -s conftest.s$ac_file; then ac_more_lines=false rm -f conftest.s$ac_file else if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f conftest.s$ac_file" else ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" fi ac_file=`expr $ac_file + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_cmds` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` else ac_dir_suffix= ac_dots= fi case "$ac_given_srcdir" in .) srcdir=. if test -z "$ac_dots"; then top_srcdir=. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" top_srcdir="$ac_dots$ac_given_srcdir" ;; esac case "$ac_given_INSTALL" in [/$]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac echo creating "$ac_file" rm -f "$ac_file" configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." case "$ac_file" in *Makefile*) ac_comsub="1i\\ # $configure_input" ;; *) ac_comsub= ;; esac ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` sed -e "$ac_comsub s%@configure_input@%$configure_input%g s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g s%@INSTALL@%$INSTALL%g " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file fi; done rm -f conftest.s* # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' ac_dC='\3' ac_dD='%g' # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='\([ ]\)%\1#\2define\3' ac_uC=' ' ac_uD='\4%g' # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_eB='$%\1#\2define\3' ac_eC=' ' ac_eD='%g' if test "${CONFIG_HEADERS+set}" != set; then EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF fi for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac echo creating $ac_file rm -f conftest.frag conftest.in conftest.out ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` cat $ac_file_inputs > conftest.in EOF # Transform confdefs.h into a sed script conftest.vals that substitutes # the proper values into config.h.in to produce config.h. And first: # Protect against being on the right side of a sed subst in config.status. # Protect against being in an unquoted here document in config.status. rm -f conftest.vals cat > conftest.hdr <<\EOF s/[\\&%]/\\&/g s%[\\$`]%\\&%g s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp s%ac_d%ac_u%gp s%ac_u%ac_e%gp EOF sed -n -f conftest.hdr confdefs.h > conftest.vals rm -f conftest.hdr # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >> conftest.vals <<\EOF s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% EOF # Break up conftest.vals because some shells have a limit on # the size of here documents, and old seds have small limits too. rm -f conftest.tail while : do ac_lines=`grep -c . conftest.vals` # grep -c gives empty output for an empty file on some AIX systems. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi # Write a limited-size here document to conftest.frag. echo ' cat > conftest.frag <> $CONFIG_STATUS sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS echo 'CEOF sed -f conftest.frag conftest.in > conftest.out rm -f conftest.in mv conftest.out conftest.in ' >> $CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail rm -f conftest.vals mv conftest.tail conftest.vals done rm -f conftest.vals cat >> $CONFIG_STATUS <<\EOF rm -f conftest.frag conftest.h echo "/* $ac_file. Generated automatically by configure. */" > conftest.h cat conftest.in >> conftest.h rm -f conftest.in if cmp -s $ac_file conftest.h 2>/dev/null; then echo "$ac_file is unchanged" rm -f conftest.h else # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" fi rm -f $ac_file mv conftest.h $ac_file fi fi; done EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h for file in $tc_cv_exec_list; do case "$CONFIG_FILES" in *${file}*) chmod +x ${file} ;; esac done for file in tcbuild/tcbuild tcbuild/tcrun; do case "$CONFIG_FILES" in *${file}*) ./version -p ${TOP_SRCDIR}/titaniumc.prj >> ${file} ;; esac done exit 0 EOF chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 if test "$no_recursion" != yes; then # Remove --cache-file and --srcdir arguments so they do not pile up. ac_sub_configure_args= ac_prev= for ac_arg in $ac_configure_args; do if test -n "$ac_prev"; then ac_prev= continue fi case "$ac_arg" in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; esac done for ac_config_dir in runtime/gasnet $GC_UNIPROC $GC_PTHREAD; do # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. if test ! -d $srcdir/$ac_config_dir; then continue fi echo configuring in $ac_config_dir case "$srcdir" in .) ;; *) if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; else { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } fi ;; esac ac_popdir=`pwd` cd $ac_config_dir # A "../" for each directory in /$ac_config_dir. ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` case "$srcdir" in .) # No --srcdir option. We are building in place. ac_sub_srcdir=$srcdir ;; /*) # Absolute path. ac_sub_srcdir=$srcdir/$ac_config_dir ;; *) # Relative path. ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; esac # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_sub_srcdir/configure; then ac_sub_configure=$ac_sub_srcdir/configure elif test -f $ac_sub_srcdir/configure.in; then ac_sub_configure=$ac_configure else echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 ac_sub_configure= fi # The recursion is here. if test -n "$ac_sub_configure"; then # Make the cache file name correct relative to the subdirectory. case "$cache_file" in /*) ac_sub_cache_file=$cache_file ;; *) # Relative path. ac_sub_cache_file="$ac_dots$cache_file" ;; esac case "$ac_given_INSTALL" in [/$]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" # The eval makes quoting arguments work. if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir then : else { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } fi fi cd "$ac_popdir" done fi