#! /bin/sh
# From configure.in Revision: 1.403 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.57.
#
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`


# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done

       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
	   fi;;
	 esac
       done
done
;;
  esac

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*\n,,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit
}


case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  as_mkdir_p=false
fi

as_executable_p="test -f"

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"


# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH


# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

exec 6>&1

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_config_libobj_dir=.
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}

# Maximum number of lines to put in a shell here document.
# This variable seems obsolete.  It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}

# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=

ac_unique_file="gasnet.h"
ac_default_prefix=/usr/local
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot PWD_PROG CONFIGURE_ARGS TOP_SRCDIR TOP_BUILDDIR BUILD_IS_SRC_TRUE BUILD_IS_SRC_FALSE BUILD_IS_SRC SYSTEM_NAME SYSTEM_TUPLE BUILD_ID GMAKE NM GNU_NM_TRUE GNU_NM_FALSE PERL GASNET_PERL_BYTESFLAG CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP gasnet_cv__gfp_fullprogname_CPP gasnet_cv__gfp_fullprogname_CC CROSS_COMPILING_TRUE CROSS_COMPILING_FALSE CROSS_COMPILING LN_S have_mpcc_r CC_FAMILY CC_UNWRAPPED CC_WRAPPED EGREP SIZEOF_VOID_P GASNETI_PTR_BITS SEPARATE_CC BUILDCONFIG_DEBUG_TRUE BUILDCONFIG_DEBUG_FALSE BUILDCONFIG_DEBUG_VERBOSE_TRUE BUILDCONFIG_DEBUG_VERBOSE_FALSE BUILDCONFIG_TRACE_TRUE BUILDCONFIG_TRACE_FALSE BUILDCONFIG_STATS_TRUE BUILDCONFIG_STATS_FALSE BUILDCONFIG_SRCLINES_TRUE BUILDCONFIG_SRCLINES_FALSE MISC_CFLAGS MISC_CPPFLAGS KEEPTMP_CFLAGS GASNET_SEGMENT_FAST_TRUE GASNET_SEGMENT_FAST_FALSE GASNET_SEGMENT_LARGE_TRUE GASNET_SEGMENT_LARGE_FALSE GASNET_SEGMENT_EVERYTHING_TRUE GASNET_SEGMENT_EVERYTHING_FALSE LIBGCC SIZEOF_CHAR SIZEOF_SHORT SIZEOF_INT SIZEOF_LONG SIZEOF_LONG_LONG PLATFORM_ILP32_TRUE PLATFORM_ILP32_FALSE PLATFORM_LP64_TRUE PLATFORM_LP64_FALSE PLATFORM_ILP64_TRUE PLATFORM_ILP64_FALSE HAVE_STDINT_H COMPLETE_STDINT_H HAVE_INTTYPES_H COMPLETE_INTTYPES_H HAVE_SYS_TYPES_H COMPLETE_SYS_TYPES_H INTTYPES_DEFINES LIBM REXEC GASNET_MACHINE_DEFINES GASNET_THREAD_DEFINES GASNET_THREAD_LIBS GASNET_REXEC_DEFINES EXESUFFIX HAVE_PTHREAD_TRUE HAVE_PTHREAD_FALSE PTHREADS CONDUITS CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP gasnet_cv__gfp_fullprogname_CXXCPP CXXCPPFLAGS gasnet_cv__gfp_fullprogname_CXX CXX_FAMILY CXX_UNWRAPPED CXX_WRAPPED cxxLIBS cxxLDFLAGS MISC_CXXFLAGS HAVE_CXX_TRUE HAVE_CXX_FALSE GASNET_UDP_LIBS USE_UDP_CONDUIT_TRUE USE_UDP_CONDUIT_FALSE gasnet_cv__gfp_fullprogname_MPI_CC gasnet_cv__gfp_fullprogname_MPIRUN_CMD MPI_CC MPI_CFLAGS MPI_LIBS MPI_DEFINES MPIRUN_CMD USE_MPI_CONDUIT_TRUE USE_MPI_CONDUIT_FALSE USE_MPI_COMPAT_TRUE USE_MPI_COMPAT_FALSE USE_MPI_TRUE USE_MPI_FALSE USE_SMP_CONDUIT_TRUE USE_SMP_CONDUIT_FALSE gm_board_info GM_INCLUDE GM_LIB GM_NO_ALIAS GM_MPI_COMPAT USE_GM_CONDUIT_TRUE USE_GM_CONDUIT_FALSE GM_MPI_COMPAT_TRUE GM_MPI_COMPAT_FALSE GM_RODATA_WORKAROUND_TRUE GM_RODATA_WORKAROUND_FALSE LAPI_LD USE_LAPI_CONDUIT_TRUE USE_LAPI_CONDUIT_FALSE ELAN_INCLUDE ELAN_LIBS USE_ELAN_CONDUIT_TRUE USE_ELAN_CONDUIT_FALSE vstat GASNET_VAPI_SPAWNER_CONF VAPI_INCLUDE VAPI_LIBDIR VAPI_LIBS VAPI_LIBCFLAGS VAPI_NO_ALIAS USE_VAPI_CONDUIT_TRUE USE_VAPI_CONDUIT_FALSE VAPI_BOOTSTRAP_MPI_TRUE VAPI_BOOTSTRAP_MPI_FALSE VAPI_RCV_THREAD_TRUE VAPI_RCV_THREAD_FALSE PORTALS_INCLUDE CATAMOUNT_INCLUDE USE_PORTALS_CONDUIT_TRUE USE_PORTALS_CONDUIT_FALSE SHMEM_INCLUDE SHMEM_LIBDIR SHMEM_LIBS SHMEM_FLAGS USE_SHMEM_CONDUIT_TRUE USE_SHMEM_CONDUIT_FALSE scibench2 SCI_INCLUDES SCI_LIBS USE_SCI_CONDUIT_TRUE USE_SCI_CONDUIT_FALSE ALLOCA ADDR2LINE_PATH GDB_PATH PGDBG_PATH IDB_PATH LADEBUG_PATH DBX_PATH USE_PLPA_TRUE USE_PLPA_FALSE DEBUGMALLOC_TRUE DEBUGMALLOC_FALSE AR RANLIB BASENAME DIRNAME READLINK TIMECMD ENVCMD BOURNE_SHELL GASNET_INSTALL_CMD TOOL_PREFIX LIBOBJS LTLIBOBJS'
ac_subst_files='PERLSTART cc_wrapper_mk'

# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=./config.cache
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
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'

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

  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`

  # 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_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$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 ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    eval "enable_$ac_feature=no" ;;

  -enable-* | --enable-*)
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   { (exit 1); exit 1; }; }
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) 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 | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$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 | -n)
    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_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case $ac_option in
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
      *) ac_optarg=yes ;;
    esac
    eval "with_$ac_package='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid package name: $ac_package" >&2
   { (exit 1); exit 1; }; }
    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 "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; }
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    eval "$ac_envvar='$ac_optarg'"
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  { echo "$as_me: error: missing argument to $ac_option" >&2
   { (exit 1); exit 1; }; }
fi

# Be sure to have absolute paths.
for ac_var in exec_prefix prefix
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
              localstatedir libdir includedir oldincludedir infodir mandir
do
  eval ac_val=$`echo $ac_var`
  case $ac_val in
    [\\/$]* | ?:[\\/]* ) ;;
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   { (exit 1); exit 1; }; };;
  esac
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used." >&2
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


# 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_confdir=`(dirname "$0") 2>/dev/null ||
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$0" : 'X\(//\)[^/]' \| \
         X"$0" : 'X\(//\)$' \| \
         X"$0" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$0" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  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 "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
   { (exit 1); exit 1; }; }
  else
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   { (exit 1); exit 1; }; }
  fi
fi
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
   { (exit 1); exit 1; }; }
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
ac_env_CXX_set=${CXX+set}
ac_env_CXX_value=$CXX
ac_cv_env_CXX_set=${CXX+set}
ac_cv_env_CXX_value=$CXX
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_env_CXXFLAGS_value=$CXXFLAGS
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
ac_env_CXXCPP_set=${CXXCPP+set}
ac_env_CXXCPP_value=$CXXCPP
ac_cv_env_CXXCPP_set=${CXXCPP+set}
ac_cv_env_CXXCPP_value=$CXXCPP

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # 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 <<_ACEOF
\`configure' configures this package to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

_ACEOF

  cat <<_ACEOF
Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR           object code libraries [EPREFIX/lib]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]
_ACEOF

  cat <<\_ACEOF

Program names:
  --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

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]
_ACEOF
fi

if test -n "$ac_init_help"; then

  cat <<\_ACEOF

Optional Features:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-pthreads           support pthreaded GASNet clients
  --disable-pthreads          support pthreaded GASNet clients
  --disable-dependency-tracking Speeds up one-time builds
  --enable-dependency-tracking  Do not reject slow dependency extractors
  --disable-full-path-expansion Disable expansion of program names to full pathnames
  --enable-allow-libcpp       Allow the use of /lib/cpp for preprocessing
  --enable-cross-compile       Enable cross-compilation (experimental)
  --enable-allow-gcc296       Allow the use of the broken gcc/g++ 2.96 compiler
  --enable-allow-gcc32        Allow the use of the known broken gcc/g++ 3.2.0-2 compiler
  --disable-ultrasparc-probe  Disable probe for UltraSPARC compiler options
  --disable-ppc64-probe       Disable probe for PPC64 compiler options
  --enable-debug              Build GASNet in a debugging mode
  --enable-gasnet-verbose     Build GASNet lib with debugging status messages
  --enable-trace              Build GASNet with tracing enabled (enabled by default with --enable-debug)
  --disable-trace             Build GASNet with tracing enabled (enabled by default with --enable-debug)
  --enable-stats              Build GASNet with statistical collection enabled (enabled by default with --enable-debug)
  --disable-stats             Build GASNet with statistical collection enabled (enabled by default with --enable-debug)
  --enable-srclines           Build GASNet with srclines support (enabled by default with --enable-trace)
  --enable-segment-fast       Build GASNet in the FAST shared segment configuration
  --enable-segment-large      Build GASNet in the LARGE shared segment configuration
  --enable-segment-everything Build GASNet in the EVERYTHING shared segment configuration
  --disable-aligned-segments  Disable requirement to achieve aligned VM segments, for heterogeneous clusters
  --enable-tls                Enable/disable use of thread-local storage extensions (ie __thread) (auto-detected)
  --disable-tls               Enable/disable use of thread-local storage extensions (ie __thread) (auto-detected)
  --enable-tune-ppc970        Enable/disable tuning for PPC970 (aka G5) (auto-detected)
  --disable-tune-ppc970       Enable/disable tuning for PPC970 (aka G5) (auto-detected)
  --enable-arch-sgi-ip27      Enable/disable work-around for buggy SGI IP27 platforms (Onyx2, Origin200 and Origin2000) (auto-detected)
  --disable-arch-sgi-ip27     Enable/disable work-around for buggy SGI IP27 platforms (Onyx2, Origin200 and Origin2000) (auto-detected)
  --enable-fork               Allow internal use of fork() and related calls (default is to probe at configure time)
  --disable-fork              Allow internal use of fork() and related calls (default is to probe at configure time)
  --enable-smp-safe           Enable build of SMP-safe libraries (default is to probe at configure time)
  --disable-smp-safe          Enable build of SMP-safe libraries (default is to probe at configure time)
  --enable-loopback-memsync   Force memory barriers for GASNet local (loopback) puts and gets
  --enable-throttle-poll      throttle polling threads in multi-threaded configurations to reduce contention
  --enable-force-generic-atomicops Force mutex-based atomic ops (default is platform specific)
  --enable-force-os-atomicops Force os-provided atomic ops (default is platform specific)
  --enable-force-gettimeofday Force use of gettimeofday() for timers (default is platform-specific)
  --enable-force-posix-realtime Force use of clock_gettime() for timers (default is platform-specific)
  --enable-force-yield-membars Force a sched_yield() call in memory barriers (disabled by default)
  --enable-force-slow-membars Force function call based (non-inline) memory barriers (disabled by default)
  --enable-force-true-weakatomics Force use of real atomic operations in sequential code (disabled by default)
  --enable-force-generic-semaphores Force mutex-based semaphores (default is platform specific)
  --enable-udp                Enable/disable the portable UDP network conduit (udp) (auto-detected)
  --disable-udp               Enable/disable the portable UDP network conduit (udp) (auto-detected)
  --enable-mpi-compat         Enable/disable MPI compatibility (auto-detected)
  --disable-mpi-compat        Enable/disable MPI compatibility (auto-detected)
  --enable-mpi                Enable/disable the portable MPI-1.1/2.x network conduit (mpi) (auto-detected)
  --disable-mpi               Enable/disable the portable MPI-1.1/2.x network conduit (mpi) (auto-detected)
  --enable-smp                Enable/disable the portable SMP-loopback network conduit (smp) (auto-detected)
  --disable-smp               Enable/disable the portable SMP-loopback network conduit (smp) (auto-detected)
  --enable-gm                 Enable/disable the Myricom/GM network conduit (gm) (auto-detected)
  --disable-gm                Enable/disable the Myricom/GM network conduit (gm) (auto-detected)
  --enable-broken-gm          Allow 2.x GM versions with broken RDMA gets
  --enable-gm-rodata-workaround Enable rodata permissions hack to work-around GM's inability to register read-only program data segments
  --enable-lapi               Enable the LAPI (IBM SP) network conduit (lapi) (auto-detected)
  --disable-lapi              Enable the LAPI (IBM SP) network conduit (lapi) (auto-detected)
  --enable-lapi-rdma          use LAPI RDMA
  --disable-lapi-rdma         use LAPI RDMA
  --enable-elan               Enable/disable the Quadrics Elan3/Elan4 network conduit (elan) (auto-detected)
  --disable-elan              Enable/disable the Quadrics Elan3/Elan4 network conduit (elan) (auto-detected)
  --enable-allow-elan4-patchfree Allow the use of the problematic elan4 patch-free drivers
  --enable-vapi               Enable/disable the Mellanox InfiniBand/VAPI network conduit (vapi) (auto-detected)
  --disable-vapi              Enable/disable the Mellanox InfiniBand/VAPI network conduit (vapi) (auto-detected)
  --enable-vapi-poll-lock     See vapi-conduit/README (disabled by default)
  --disable-vapi-poll-lock    See vapi-conduit/README (disabled by default)
  --enable-vapi-rcv-thread    See vapi-conduit/README (enabled by default)
  --disable-vapi-rcv-thread   See vapi-conduit/README (enabled by default)
  --enable-vapi-multirail     Enable/disable vapi over multiple HCAs, see vapi-conduit/README (enabled by default)
  --disable-vapi-multirail    Enable/disable vapi over multiple HCAs, see vapi-conduit/README (enabled by default)
  --enable-portals            Enable/disable the Portals network conduit (portals) (auto-detected)
  --disable-portals           Enable/disable the Portals network conduit (portals) (auto-detected)
  --enable-shmem              Enable the Shmem network conduit (shmem) (auto-detected)
  --disable-shmem             Enable the Shmem network conduit (shmem) (auto-detected)
  --enable-sci                Enable the Dolphin SISCI network conduit (sci) (auto-detected)
  --disable-sci               Enable the Dolphin SISCI network conduit (sci) (auto-detected)
  --enable-ssh-prctl          Enable use of prctl() in the ssh-based spawner (see other/ssh-spawner/README) (disabled by default)
  --enable-backtrace-execinfo support backtrace via execinfo.h (auto-detected)
  --disable-backtrace-execinfo support backtrace via execinfo.h (auto-detected)
  --enable-backtrace-gdb      support backtrace via gdb (auto-detected)
  --disable-backtrace-gdb     support backtrace via gdb (auto-detected)
  --enable-backtrace-pgdbg    support backtrace via pgdbg (auto-detected)
  --disable-backtrace-pgdbg   support backtrace via pgdbg (auto-detected)
  --enable-backtrace-idb      support backtrace via idb (auto-detected)
  --disable-backtrace-idb     support backtrace via idb (auto-detected)
  --enable-backtrace-ladebug  support backtrace via ladebug (auto-detected)
  --disable-backtrace-ladebug support backtrace via ladebug (auto-detected)
  --enable-backtrace-dbx      support backtrace via dbx (auto-detected)
  --disable-backtrace-dbx     support backtrace via dbx (auto-detected)
  --enable-backtrace-printstack support backtrace via printstack (auto-detected)
  --disable-backtrace-printstack support backtrace via printstack (auto-detected)
  --enable-plpa               use PLPA for CPU binding (default is to probe)
  --disable-plpa              use PLPA for CPU binding (default is to probe)

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-cc=                  value for CC
  --with-cross-sizeof-void-p= value for CROSS_SIZEOF_VOID_P
  --with-segment-mmap-max=value Upper bound for mmap-based GASNet segments (ex: "2GB", "1045MB")
  --with-cross-sizeof-char=   value for CROSS_SIZEOF_CHAR
  --with-cross-sizeof-short=  value for CROSS_SIZEOF_SHORT
  --with-cross-sizeof-int=    value for CROSS_SIZEOF_INT
  --with-cross-sizeof-long=   value for CROSS_SIZEOF_LONG
  --with-cross-sizeof-long-long= value for CROSS_SIZEOF_LONG_LONG
  --with-cross-pagesize=      value for CROSS_PAGESIZE
  --with-pthreads-include=    value for PTHREADS_INCLUDE
  --with-pthreads-lib=        value for PTHREADS_LIB
  --with-target-cxx=          value for TARGET_CXX
  --with-target-cxxflags=     value for TARGET_CXXFLAGS
  --with-cxxlibs=             value for cxxLIBS
  --with-cxxldflags=          value for cxxLDFLAGS
  --with-gasnet-cspawn-cmd=   value for GASNET_CSPAWN_CMD
  --with-mpi-cc=              value for MPI_CC
  --with-mpi-cflags=          value for MPI_CFLAGS
  --with-mpi-libs=            value for MPI_LIBS
  --with-mpirun-cmd=          value for MPIRUN_CMD
  --with-gmhome=              value for GMHOME
  --with-gm-include=          value for GM_INCLUDE
  --with-gm-lib=              value for GM_LIB
  --with-lapi-type=value      IBM Switch hardware type ("colony" or "federation", default is to probe)
  --with-elan-include=        value for ELAN_INCLUDE
  --with-elan-libs=           value for ELAN_LIBS
  --with-mthome=              value for MTHOME
  --with-vapi-include=        value for VAPI_INCLUDE
  --with-vapi-libs=           value for VAPI_LIBS
  --with-vapi-libdir=         value for VAPI_LIBDIR
  --with-vapi-spawner=value   VAPI job spawner ("ssh" or "mpi", default is mpi when available)
  --with-vapi-max-hcas=value  maximum number of VAPI HCAs to open for multi-rail support (default is 2)
  --with-pe-dir=              value for PE_DIR
  --with-portals-include=     value for PORTALS_INCLUDE
  --with-catamount-dir=       value for CATAMOUNT_DIR
  --with-catamount-include=   value for CATAMOUNT_INCLUDE
  --with-shmem-include=       value for SHMEM_INCLUDE
  --with-shmem-libdir=        value for SHMEM_LIBDIR
  --with-shmem-libs=          value for SHMEM_LIBS
  --with-scihome=             value for SCIHOME
  --with-sci-includes=        value for SCI_INCLUDES
  --with-sci-libs=            value for SCI_LIBS
  --with-cross-have-mmap=     value for CROSS_HAVE_MMAP
  --with-tool-prefix=value    Naming prefix to use for contributed tools

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
              headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

_ACEOF
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  ac_popdir=`pwd`
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d $ac_dir || continue
    ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`

    cd $ac_dir
    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_srcdir/configure.gnu; then
      echo
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
    elif test -f $ac_srcdir/configure; then
      echo
      $SHELL $ac_srcdir/configure  --help=recursive
    elif test -f $ac_srcdir/configure.ac ||
           test -f $ac_srcdir/configure.in; then
      echo
      $ac_configure --help
    else
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi
    cd "$ac_popdir"
  done
fi

test -n "$ac_init_help" && exit 0
if $ac_init_version; then
  cat <<\_ACEOF

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit 0
fi
exec 5>config.log
cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by $as_me, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  $ $0 $@

_ACEOF
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  echo "PATH: $as_dir"
done

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_sep=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
    2)
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
      if test $ac_must_keep_next = true; then
        ac_must_keep_next=false # Got value, back to normal.
      else
        case $ac_arg in
          *=* | --config-cache | -C | -disable-* | --disable-* \
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
          | -with-* | --with-* | -without-* | --without-* | --x)
            case "$ac_configure_args0 " in
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
            esac
            ;;
          -* ) ac_must_keep_next=true ;;
        esac
      fi
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
      # Get rid of the leading space.
      ac_sep=" "
      ;;
    esac
  done
done
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
    echo
    # The following way of writing the cache mishandles newlines in values,
{
  (set) 2>&1 |
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    *ac_space=\ *)
      sed -n \
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
      ;;
    *)
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
}
    echo

    cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=$`echo $ac_var`
      echo "$ac_var='"'"'$ac_val'"'"'"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      cat <<\_ASBOX
## ------------- ##
## Output files. ##
## ------------- ##
_ASBOX
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=$`echo $ac_var`
        echo "$ac_var='"'"'$ac_val'"'"'"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
      echo
      sed "/^$/d" confdefs.h | sort
      echo
    fi
    test "$ac_signal" != 0 &&
      echo "$as_me: caught signal $ac_signal"
    echo "$as_me: exit $exit_status"
  } >&5
  rm -f core core.* *.core &&
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
     ' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0

# 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

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# 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 "$as_me:$LINENO: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special
  # files actually), so we avoid doing that.
  if test -f "$cache_file"; then
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac
  fi
else
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in `(set) 2>&1 |
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  eval ac_new_val="\$ac_env_${ac_var}_value"
  case $ac_old_set,$ac_new_set in
    set,)
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
echo "$as_me:   former value:  $ac_old_val" >&2;}
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
echo "$as_me:   current value: $ac_new_val" >&2;}
        ac_cache_corrupted=:
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu























# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_SHELL vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for good shell" >&5
echo $ECHO_N "checking for good shell... $ECHO_C" >&6
if test "$BASH" = '' && test `uname` = HP-UX; then
  echo "$as_me:$LINENO: result: no, switching to bash" >&5
echo "${ECHO_T}no, switching to bash" >&6
  case $# in
    0) exec bash - "$0"        ;;
    *) exec bash - "$0" "$@" ;;
  esac
else
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_SHELL ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



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
  elif test -f $ac_dir/shtool; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config-aux $srcdir/config-aux" >&5
echo "$as_me: error: cannot find install-sh or install.sh in config-aux $srcdir/config-aux" >&2;}
   { (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.


# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   { (exit 1); exit 1; }; }

echo "$as_me:$LINENO: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
  ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   { (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`


echo "$as_me:$LINENO: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
  ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`


echo "$as_me:$LINENO: checking target system type" >&5
echo $ECHO_N "checking target system type... $ECHO_C" >&6
if test "${ac_cv_target+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_target_alias=$target_alias
test "x$ac_cv_target_alias" = "x" &&
  ac_cv_target_alias=$ac_cv_host_alias
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
   { (exit 1); exit 1; }; }

fi
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
echo "${ECHO_T}$ac_cv_target" >&6
target=$ac_cv_target
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`


# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
  test "$program_prefix$program_suffix$program_transform_name" = \
    NONENONEs,x,x, &&
  program_prefix=${target_alias}-

am__api_version="1.7"
# 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
# AmigaOS /C/install, which installs bootblocks on floppy discs
# 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 "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
  ./ | .// | /cC/* | \
  /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
      for ac_exec_ext in '' $ac_executable_extensions; do
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
          if test $ac_prog = install &&
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
            # AIX install.  It has an incompatible calling convention.
            :
          elif test $ac_prog = install &&
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
            # program-specific install script used by HP pwplus--don't use.
            :
          else
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
            break 3
          fi
        fi
      done
    done
    ;;
esac
done


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 "$as_me:$LINENO: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&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}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

echo "$as_me:$LINENO: checking whether build environment is sane" >&5
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
# Just in case
sleep 1
echo timestamp > conftest.file
# 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 conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t $srcdir/configure conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $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 "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&5
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&2;}
   { (exit 1); exit 1; }; }
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Check your system clock" >&5
echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2;}
   { (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
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"
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed


# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

for ac_prog in gawk mawk 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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AWK="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  echo "$as_me:$LINENO: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$AWK" && break
done

echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\_ACEOF
all:
	@echo 'ac_maketemp="$(MAKE)"'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 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 conftest.make
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  SET_MAKE=
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

 # test to see if srcdir already configured
if test "`cd $srcdir && pwd`" != "`pwd`" &&
   test -f $srcdir/config.status; then
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
   { (exit 1); exit 1; }; }
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE=GASNet
 VERSION=1.7


# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}


AMTAR=${AMTAR-"${am_missing_run}tar"}

install_sh=${install_sh-"$am_aux_dir/install-sh"}

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  STRIP=$ac_ct_STRIP
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.





          ac_config_headers="$ac_config_headers gasnet_config.h"





# vvvvvvvvvvvvvvvvvvvvvv GASNET_START_CONFIGURE(AWK) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  rm -f .gasnet_cv_configure_warnings.tmp



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PATH_PROGS(PWD_PROG,pwd,pwd) vvvvvvvvvvvvvvvvvvvvvv (L:2)

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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PWD_PROG+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PWD_PROG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PWD_PROG="$PWD_PROG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PWD_PROG="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PWD_PROG=$ac_cv_path_PWD_PROG

if test -n "$PWD_PROG"; then
  echo "$as_me:$LINENO: result: $PWD_PROG" >&5
echo "${ECHO_T}$PWD_PROG" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$PWD_PROG" && break
done

      ;;
  *) echo "$as_me:$LINENO: checking for pwd" >&5
echo $ECHO_N "checking for pwd... $ECHO_C" >&6
     echo "$as_me:$LINENO: result: $PWD_PROG" >&5
echo "${ECHO_T}$PWD_PROG" >&6
      ;;
esac
case "$PWD_PROG" in
  '') { { echo "$as_me:$LINENO: error: cannot find pwd" >&5
echo "$as_me: error: cannot find pwd" >&2;}
   { (exit 1); exit 1; }; }
      ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PATH_PROGS(PWD_PROG,pwd,pwd) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_GET_AUTOCONF_VERSION vvvvvvvvvvvvvvvvvvvvvv (L:2)


echo "$as_me:$LINENO: checking autoconf version" >&5
echo $ECHO_N "checking autoconf version... $ECHO_C" >&6
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 "$as_me:$LINENO: result: $AUTOCONF_VERSION_STR" >&5
echo "${ECHO_T}$AUTOCONF_VERSION_STR" >&6

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GET_AUTOCONF_VERSION ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  echo "$as_me:$LINENO: checking for configure settings" >&5
echo $ECHO_N "checking for configure settings... $ECHO_C" >&6
  echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
  CONFIGURE_ARGS="$ac_configure_args"

  echo "$as_me:$LINENO: result: configure args: $CONFIGURE_ARGS" >&5
echo "${ECHO_T}configure args: $CONFIGURE_ARGS" >&6
    if test "$cache_file" = "/dev/null" ; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: configure cache_file setting got lost - you may need to run a fresh ./Bootstrap" >&5
echo "$as_me: WARNING: configure cache_file setting got lost - you may need to run a fresh ./Bootstrap" >&2;}
  echo "configure cache_file setting got lost - you may need to run a fresh ./Bootstrap" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




    cache_file=config.cache
  fi
  ac_configure_args="$ac_configure_args --cache-file=$cache_file"
    TOP_SRCDIR=`cd ${srcdir} && ${PWD_PROG}`
  echo "$as_me:$LINENO: result: TOP_SRCDIR:     $TOP_SRCDIR" >&5
echo "${ECHO_T}TOP_SRCDIR:     $TOP_SRCDIR" >&6

  TOP_BUILDDIR=`${PWD_PROG}`
  echo "$as_me:$LINENO: result: TOP_BUILDDIR:   $TOP_BUILDDIR" >&5
echo "${ECHO_T}TOP_BUILDDIR:   $TOP_BUILDDIR" >&6

    if `echo $TOP_SRCDIR | grep ' ' >/dev/null 2>/dev/null`; then
    { { echo "$as_me:$LINENO: error: TOP_SRCDIR contains space characters - please unpack the source in a different directory." >&5
echo "$as_me: error: TOP_SRCDIR contains space characters - please unpack the source in a different directory." >&2;}
   { (exit 1); exit 1; }; }
  fi
  if `echo $TOP_BUILDDIR | grep ' ' >/dev/null 2>/dev/null`; then
    { { echo "$as_me:$LINENO: error: TOP_BUILDDIR contains space characters - please build in a different directory." >&5
echo "$as_me: error: TOP_BUILDDIR contains space characters - please build in a different directory." >&2;}
   { (exit 1); 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`"

  case "$target" in
   # Apple gcc has -arch options for cross-compilation, but target binaries may still work due to Rosetta (making our cross-compilation support unnecessary)
   # ensure we report the correct target tuple
   *-apple-darwin*)
     _GASNET_GCCVER=`${CC:-gcc} -v 2>&1`
     _GASNET_GCCISAPPLE=`echo "$_GASNET_GCCVER" | grep 'gcc version' | grep 'Apple Computer'`
     _GASNET_GCCTARGET=`echo "$_GASNET_GCCVER" | /usr/bin/perl -ne 'print \$1 if (m/--target=(\S+)/);'`
     _GASNET_GCCCPU=`echo "$_GASNET_GCCVER" | /usr/bin/perl -ne 'print \$1 if (m/--target=([^-]+)/);'`
     if test "$_GASNET_GCCISAPPLE" -a "$_GASNET_GCCTARGET" -a "$_GASNET_GCCCPU" ; then
        case "$target" in
         $_GASNET_GCCCPU-*) ;;
         *)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Apple gcc is cross-compiling for $_GASNET_GCCTARGET, readjusting configure target" >&5
echo "$as_me: WARNING: Apple gcc is cross-compiling for $_GASNET_GCCTARGET, readjusting configure target" >&2;}
  echo "Apple gcc is cross-compiling for $_GASNET_GCCTARGET, readjusting configure target" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




         target="$_GASNET_GCCTARGET"
         target_alias="$target"
         ac_cv_target="$target"
         ac_cv_target_alias="$target"
         target_cpu="$_GASNET_GCCCPU"
        esac
     fi
     ;;
  esac
  SYSTEM_TUPLE="$target"

  echo "$as_me:$LINENO: result: system info:      $SYSTEM_NAME $SYSTEM_TUPLE" >&5
echo "${ECHO_T}system info:      $SYSTEM_NAME $SYSTEM_TUPLE" >&6
  BUILD_USER=`whoami 2> /dev/null || id -un 2> /dev/null || echo $USER`
  BUILD_ID="`date` $BUILD_USER"
  echo "$as_me:$LINENO: result: build id:       $BUILD_ID" >&5
echo "${ECHO_T}build id:       $BUILD_ID" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_RESTORE_AUTOCONF_ENV(CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC AWK) vvvvvvvvvvvvvvvvvvvvvv (L:2)


  if test "$gasnet_acenv_list" != ""; then
    { { echo "$as_me:$LINENO: error: _GASNET_RESTORE_AUTOCONF_ENV called more than once with prefix = \"gasnet_cv_\"" >&5
echo "$as_me: error: _GASNET_RESTORE_AUTOCONF_ENV called more than once with prefix = \"gasnet_cv_\"" >&2;}
   { (exit 1); exit 1; }; }
  fi
  gasnet_acenv_list="CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC AWK"
  echo "$as_me:$LINENO: checking for cached autoconf environment settings" >&5
echo $ECHO_N "checking for cached autoconf environment settings... $ECHO_C" >&6
  echo "$as_me:$LINENO: result: \"\"" >&5
echo "${ECHO_T}\"\"" >&6
  for varname in CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC AWK; do
    val=`eval echo '$'"gasnet_cv_acenv_$varname"`
    if test "$val" != ""; then
      eval $varname=\"$val\"
      echo "$as_me:$LINENO: result: $varname=\"$val\"" >&5
echo "${ECHO_T}$varname=\"$val\"" >&6
    fi
  done


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_RESTORE_AUTOCONF_ENV(CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC AWK) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_START_CONFIGURE(AWK) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_DEFINE_CONFIGURE_VARS vvvvvvvvvvvvvvvvvvvvvv (L:1)


  cat >>confdefs.h <<_ACEOF
#define GASNETI_CONFIGURE_ARGS "$CONFIGURE_ARGS"
_ACEOF

  cat >>confdefs.h <<_ACEOF
#define GASNETI_SYSTEM_NAME "$SYSTEM_NAME"
_ACEOF

  cat >>confdefs.h <<_ACEOF
#define GASNETI_SYSTEM_TUPLE "$SYSTEM_TUPLE"
_ACEOF

  cat >>confdefs.h <<_ACEOF
#define GASNETI_BUILD_ID "$BUILD_ID"
_ACEOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_DEFINE_CONFIGURE_VARS ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




for ac_prog in gawk mawk 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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AWK="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  echo "$as_me:$LINENO: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$AWK" && break
done


########################################################################
##
##  Misc configure option processing
##

#     default: support pthreads if library found
#     --enable-pthreads: fail if pthreads lib not found
#     --disable-pthreads: don't even look for pthreads library



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(pthreads,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-pthreads or --disable-pthreads was given.
if test "${enable_pthreads+set}" = set; then
  enableval="$enable_pthreads"

fi;
# Check whether --enable-pthreads or --disable-pthreads was given.
if test "${enable_pthreads+set}" = set; then
  enableval="$enable_pthreads"

fi;
case "$enable_pthreads" in
  no)  use_pthreads="no" ;;
  yes) use_pthreads="yes" ;;
  *)   use_pthreads="try" ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(pthreads,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




########################################################################
##
##  Supporting Command-Line Tools
##




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PATH_PROGS(GMAKE,$GMAKE gmake make $MAKE,GNU make) vvvvvvvvvvvvvvvvvvvvvv (L:1)

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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_GMAKE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $GMAKE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
GMAKE=$ac_cv_path_GMAKE

if test -n "$GMAKE"; then
  echo "$as_me:$LINENO: result: $GMAKE" >&5
echo "${ECHO_T}$GMAKE" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$GMAKE" && break
done

      ;;
  *) echo "$as_me:$LINENO: checking for GNU make" >&5
echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
     echo "$as_me:$LINENO: result: $GMAKE" >&5
echo "${ECHO_T}$GMAKE" >&6
      ;;
esac
case "$GMAKE" in
  '') { { echo "$as_me:$LINENO: error: cannot find GNU make" >&5
echo "$as_me: error: cannot find GNU make" >&2;}
   { (exit 1); exit 1; }; }
      ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PATH_PROGS(GMAKE,$GMAKE gmake make $MAKE,GNU make) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



echo "$as_me:$LINENO: checking for GNU make" >&5
echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
if $GMAKE --version | grep GNU ; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# We don't actually require GNU Make at the moment
#  AC_MSG_ERROR(cannot find a version of GNU make - please install GNU make and/or set \$GMAKE to indicate where it's located)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: cannot find a version of GNU make - if you encounter make problems, install GNU make and/or set \$GMAKE to indicate where it's located" >&5
echo "$as_me: WARNING: cannot find a version of GNU make - if you encounter make problems, install GNU make and/or set \$GMAKE to indicate where it's located" >&2;}
  echo "cannot find a version of GNU make - if you encounter make problems, install GNU make and/or set \$GMAKE to indicate where it's located" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




fi


# we do not require nm
# Extract the first word of "$NM nm", so it can be a program name with args.
set dummy $NM nm; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_NM+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $NM in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_NM="$NM" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm utility"
  ;;
esac
fi
NM=$ac_cv_path_NM

if test -n "$NM"; then
  echo "$as_me:$LINENO: result: $NM" >&5
echo "${ECHO_T}$NM" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

echo "$as_me:$LINENO: checking for GNU nm" >&5
echo $ECHO_N "checking for GNU nm... $ECHO_C" >&6
if test "`${NM:-nm} --version 2>&1 | grep GNU`" = "" ; then
  gnu_nm=no
else
  gnu_nm=yes
fi
echo "$as_me:$LINENO: result: $gnu_nm" >&5
echo "${ECHO_T}$gnu_nm" >&6


if test "$gnu_nm" = "yes"; then
  GNU_NM_TRUE=
  GNU_NM_FALSE='#'
else
  GNU_NM_TRUE='#'
  GNU_NM_FALSE=
fi


########################################################################
##
##  Perl
##
## We do this early so we can use "$PERL -e" for complex configure tests.



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PROG_PERL vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PATH_PROGS(PERL,perl5 perl,perl) vvvvvvvvvvvvvvvvvvvvvv (L:2)

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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PERL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PERL=$ac_cv_path_PERL

if test -n "$PERL"; then
  echo "$as_me:$LINENO: result: $PERL" >&5
echo "${ECHO_T}$PERL" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$PERL" && break
done

      ;;
  *) echo "$as_me:$LINENO: checking for perl" >&5
echo $ECHO_N "checking for perl... $ECHO_C" >&6
     echo "$as_me:$LINENO: result: $PERL" >&5
echo "${ECHO_T}$PERL" >&6
      ;;
esac
case "$PERL" in
  '') { { echo "$as_me:$LINENO: error: cannot find perl" >&5
echo "$as_me: error: cannot find perl" >&2;}
   { (exit 1); exit 1; }; }
      ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PATH_PROGS(PERL,perl5 perl,perl) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  MIN_PERL_VERSION="5.005"
  echo "$as_me:$LINENO: checking for perl version $MIN_PERL_VERSION or later" >&5
echo $ECHO_N "checking for perl version $MIN_PERL_VERSION or later... $ECHO_C" >&6
  if $PERL -e "require $MIN_PERL_VERSION;" 2>/dev/null; then
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  else
    { { echo "$as_me:$LINENO: error: cannot find perl $MIN_PERL_VERSION or later" >&5
echo "$as_me: error: cannot find perl $MIN_PERL_VERSION or later" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if $PERL -Mbytes -e "exit 0" 2>/dev/null; then
    GASNET_PERL_BYTESFLAG="-Mbytes"
  else
    GASNET_PERL_BYTESFLAG=
  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PROG_PERL ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




PERLSTART=$TOP_BUILDDIR/other/perlstart



########################################################################
##
##  C/C++ Compilers
##

# Some OS's need help to find the right C compiler
case "$target_os" in
  superux*) # "cc" is completely broken on SuperUX, never use it



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CC,c++ -Xa) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for CC in environment" >&5
echo $ECHO_N "checking for CC in environment... $ECHO_C" >&6



# Check whether --with-cc or --without-cc was given.
if test "${with_cc+set}" = set; then
  withval="$with_cc"

fi;



  envval_src_CC="cached"
  if test "${gasnet_cv_envvar_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${CC-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cc" != ""; then
	      gasnet_cv_envvar_CC="$with_cc"
	      envval_src_CC=given
	    else
	      gasnet_cv_envvar_CC="c++ -Xa"
	      envval_src_CC=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_CC="$CC"
	    envval_src_CC=given
      esac

fi


  CC="$gasnet_cv_envvar_CC"
  case "$envval_src_CC" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CC\"" >&5
echo "${ECHO_T}using cached value \"$CC\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CC\"" >&5
echo "${ECHO_T}no, defaulting to \"$CC\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CC\"" >&5
echo "${ECHO_T}yes, using \"$CC\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CC,c++ -Xa) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)


 ;; # may also/alternately want -Kc99
esac

DEPDIR="${am__leading_dot}deps"

          ac_config_commands="$ac_config_commands depfiles"


am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
	@echo done
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# We grep out `Entering directory' and `Leaving directory'
# messages which can occur if `w' ends up in MAKEFLAGS.
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
   am__include=include
   am__quote=
   _am_result=GNU
fi
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
      am__include=.include
      am__quote="\""
      _am_result=BSD
   fi
fi


echo "$as_me:$LINENO: result: $_am_result" >&5
echo "${ECHO_T}$_am_result" >&6
rm -f confinc confmf

# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then
  enableval="$enable_dependency_tracking"

fi;
if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi


if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi







# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_DISABLED(full-path-expansion,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

# 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) :
        ;;
  *)   gasnet_cv__gfp_disable=1 ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_DISABLED(full-path-expansion,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)









# vvvvvvvvvvvvvvvvvvvvvv GASNET_PROG_CC vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PROG_CPP vvvvvvvvvvvvvvvvvvvvvv (L:2)


  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  CC=$ac_ct_CC
else
  CC="$ac_cv_prog_CC"
fi

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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

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 $# != 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
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in 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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_CC" && break
done

  CC=$ac_ct_CC
fi

fi


test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }

# Provide some information about the compiler.
echo "$as_me:$LINENO:" \
     "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
echo "$as_me:$LINENO: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  (eval $ac_link_default) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # Find the output, starting from the most likely.  This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.

# Be careful to initialize this variable, since it used to be cached.
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
ac_cv_exeext=
# b.out is created by i960 compilers.
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
        ;;
    conftest.$ac_ext )
        # This is the source file.
        ;;
    [ab].out )
        # We found the default executable, but exeext='' is most
        # certainly right.
        break;;
    *.* )
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
        # FIXME: I believe we export ac_cv_exeext for Libtool,
        # but it would be cool to find out if it's true.  Does anybody
        # maintain Libtool? --akim.
        export ac_cv_exeext
        break;;
    * )
        break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
See \`config.log' for more details." >&5
echo "$as_me: error: C compiler cannot create executables
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext
echo "$as_me:$LINENO: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6

# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
fi
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

rm -f a.out a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6

echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
          export ac_cv_exeext
          break;;
    * ) break;;
  esac
done
else
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest$ac_cv_exeext
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_prog_cc_g=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&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 "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX			-qlanglvl=ansi
# Ultrix and OSF/1	-std1
# HP-UX 10.20 and later	-Ae
# HP-UX older versions	-Aa -D_HPUX_SOURCE
# SVR4			-Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cc_stdc=$ac_arg
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC

fi

case "x$ac_cv_prog_cc_stdc" in
  x|xno)
    echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
  *)
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    CC="$CC $ac_cv_prog_cc_stdc" ;;
esac

# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CC"   am_compiler_list=

echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      : > sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    case $depmode in
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    none) break ;;
    esac
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.
    if depmode=$depmode \
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored.
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type



if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi


  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if test "${ac_cv_prog_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
                     Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
echo "$as_me:$LINENO: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
                     Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




# vvvvvvvvvvvvvvvvvvvvvv GASNET_GETFULLPATH(CPP) vvvvvvvvvvvvvvvvvvvvvv (L:3)



if test "$gasnet_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 gasnet_cv__gfp_fullprogname_CPP
    unset ac_cv_path_gasnet_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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_gasnet_cv__gfp_fullprogname_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $gasnet_cv__gfp_fullprogname_CPP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_gasnet_cv__gfp_fullprogname_CPP="$gasnet_cv__gfp_fullprogname_CPP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_gasnet_cv__gfp_fullprogname_CPP="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
gasnet_cv__gfp_fullprogname_CPP=$ac_cv_path_gasnet_cv__gfp_fullprogname_CPP

if test -n "$gasnet_cv__gfp_fullprogname_CPP"; then
  echo "$as_me:$LINENO: result: $gasnet_cv__gfp_fullprogname_CPP" >&5
echo "${ECHO_T}$gasnet_cv__gfp_fullprogname_CPP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    echo "$as_me:$LINENO: checking for full path expansion of CPP" >&5
echo $ECHO_N "checking for full path expansion of CPP... $ECHO_C" >&6
    if test "$gasnet_cv__gfp_fullprogname_CPP" != "" ; then
      CPP="$gasnet_cv__gfp_fullprogname_CPP $gasnet_gfp_progargs"
    fi
    echo "$as_me:$LINENO: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
  fi
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GETFULLPATH(CPP) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)





  echo "$as_me:$LINENO: checking for working C preprocessor" >&5
echo $ECHO_N "checking for working C preprocessor... $ECHO_C" >&6


  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

  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 <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

    # error

_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  { { echo "$as_me:$LINENO: error: Your C preprocessor is broken - reported success when it should have failed" >&5
echo "$as_me: error: Your C preprocessor is broken - reported success when it should have failed" >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5



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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi
rm -f conftest.err conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

    #ifdef __cplusplus
      #error __cplusplus should not be defined in a C preprocessor!
    #endif

_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5



echo
echo "configure error: Your C preprocessor is broken, it erroneously defines __cplusplus. This software requires a true, working ANSI C compiler - a C++ compiler is not an acceptable replacement."
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi
rm -f conftest.err conftest.$ac_ext
  echo "$as_me:$LINENO: result: yes$gasnet_progcpp_extrainfo" >&5
echo "${ECHO_T}yes$gasnet_progcpp_extrainfo" >&6
  if test "$CPP" = "/lib/cpp" ; then
    badlibcppmsg="Autoconf detected your preprocessor to be '/lib/cpp' instead of '$CC -E'. This is almost always a mistake, resulting from either a broken C compiler or an outdated version of autoconf. Proceeding is very likely to result in incorrect configure decisions."



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(allow-libcpp,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

# Check whether --enable-allow-libcpp or --disable-allow-libcpp was given.
if test "${enable_allow_libcpp+set}" = set; then
  enableval="$enable_allow_libcpp"

fi;

case "$enable_allow_libcpp" in
  '' | no) :

      { { echo "$as_me:$LINENO: error: $badlibcppmsg \
        You may enable use of this preprocessor at your own risk by passing the --enable-allow-libcpp flag." >&5
echo "$as_me: error: $badlibcppmsg \
        You may enable use of this preprocessor at your own risk by passing the --enable-allow-libcpp flag." >&2;}
   { (exit 1); exit 1; }; }
     ;;
  *)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:4)

  { echo "$as_me:$LINENO: WARNING: $badlibcppmsg" >&5
echo "$as_me: WARNING: $badlibcppmsg" >&2;}
  echo "$badlibcppmsg" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:4)




     ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(allow-libcpp,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  fi
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PROG_CPP ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_GETFULLPATH(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)



if test "$gasnet_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 gasnet_cv__gfp_fullprogname_CC
    unset ac_cv_path_gasnet_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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_gasnet_cv__gfp_fullprogname_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $gasnet_cv__gfp_fullprogname_CC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_gasnet_cv__gfp_fullprogname_CC="$gasnet_cv__gfp_fullprogname_CC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_gasnet_cv__gfp_fullprogname_CC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
gasnet_cv__gfp_fullprogname_CC=$ac_cv_path_gasnet_cv__gfp_fullprogname_CC

if test -n "$gasnet_cv__gfp_fullprogname_CC"; then
  echo "$as_me:$LINENO: result: $gasnet_cv__gfp_fullprogname_CC" >&5
echo "${ECHO_T}$gasnet_cv__gfp_fullprogname_CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    echo "$as_me:$LINENO: checking for full path expansion of CC" >&5
echo $ECHO_N "checking for full path expansion of CC... $ECHO_C" >&6
    if test "$gasnet_cv__gfp_fullprogname_CC" != "" ; then
      CC="$gasnet_cv__gfp_fullprogname_CC $gasnet_gfp_progargs"
    fi
    echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
  fi
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GETFULLPATH(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)





  echo "$as_me:$LINENO: checking for working C compiler" >&5
echo $ECHO_N "checking for working C compiler... $ECHO_C" >&6


  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

    fail for me

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  { { echo "$as_me:$LINENO: error: Your C compiler is broken - reported success when it should have failed" >&5
echo "$as_me: error: Your C compiler is broken - reported success when it should have failed" >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
 #include <stdio.h>
                   #include <stdlib.h>

int
main ()
{
 printf("hi\n"); exit(0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5



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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

    double *p;
    void *foo(double *d) {
      return d;
    }

int
main ()
{

    double d;
    /* (void *) is compatible with any pointer type in a C program */
    p = foo((void *)&d);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5



echo
echo "configure error: Your C compiler is broken, it fails to compile a simple C program using implicit void* conversion. This software requires a true, working ANSI C compiler - note that a C++ compiler is not an acceptable replacement."
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
 extern int some_bogus_nonexistent_symbol();
int
main ()
{
 int x = some_bogus_nonexistent_symbol();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  { { echo "$as_me:$LINENO: error: Your C linker is broken - reported success when it should have failed" >&5
echo "$as_me: error: Your C linker is broken - reported success when it should have failed" >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
 #include <stdio.h>
                #include <stdlib.h>

int
main ()
{
 printf("hi\n"); exit(0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5



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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  echo "$as_me:$LINENO: checking if user enabled cross-compile" >&5
echo $ECHO_N "checking if user enabled cross-compile... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(cross-compile,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

# 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 "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    cross_compiling=no
    CROSS_COMPILING=0
    ac_cv_prog_cc_cross=no
    echo "$as_me:$LINENO: checking working C compiler executables" >&5
echo $ECHO_N "checking working C compiler executables... $ECHO_C" >&6
    if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: Internal configure error - please report" >&5
echo "$as_me: error: Internal configure error - please report" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
int main() { return 0; }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

echo
echo "configure error: Cannot run executables created with C compiler. If you're attempting to cross-compile, use --enable-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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
   ;;
  *)
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cross_compiling=yes
    CROSS_COMPILING=1
    ac_cv_prog_cc_cross=yes
   ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(cross-compile,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)





if test "$cross_compiling" = "yes"; then
  CROSS_COMPILING_TRUE=
  CROSS_COMPILING_FALSE='#'
else
  CROSS_COMPILING_TRUE='#'
  CROSS_COMPILING_FALSE=
fi


  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PROG_CC ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



echo "$as_me:$LINENO: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6
fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_BIGENDIAN() vvvvvvvvvvvvvvvvvvvvvv (L:1)


if test "$cross_compiling" = "no" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_EXPR(whether byte ordering is bigendian ,c_bigendian,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking whether byte ordering is bigendian " >&5
echo $ECHO_N "checking whether byte ordering is bigendian ... $ECHO_C" >&6
if test "${gasnet_cv_c_bigendian+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

  #include "confdefs.h"
  #include <stdio.h>
  #include <stdlib.h>

  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;
  }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_c_bigendian=`cat conftestval`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv_c_bigendian=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv_c_bigendian" >&5
echo "${ECHO_T}$gasnet_cv_c_bigendian" >&6
if test "$gasnet_cv_c_bigendian" != no; then
  :
  WORDS_BIGENDIAN=$gasnet_cv_c_bigendian
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_EXPR(whether byte ordering is bigendian ,c_bigendian,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



else
  echo "$as_me:$LINENO: checking whether byte ordering is bigendian (binary probe) " >&5
echo $ECHO_N "checking whether byte ordering is bigendian (binary probe) ... $ECHO_C" >&6

  WORDS_BIGENDIAN=""




# vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"

	short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
	short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
	void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
	short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
	short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
	void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
	int foo() { _ascii (); _ebcdic (); return 0; }

  int main() {
foo();
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
       (eval $ac_compile) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest.o ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO.o"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    mv conftest.o $GASNET_EXAMINE_BIN

      # use perl here, because some greps barf on binary files (eg Solaris)
      if test `$PERL -ne 'if (m/BIGenDianSyS/) { print "yes\n"; }' $GASNET_EXAMINE_BIN` ; then
         WORDS_BIGENDIAN=1
      fi
      if test `$PERL -ne 'if (m/LiTTleEnDian/) { print "yes\n"; }' $GASNET_EXAMINE_BIN` ; then
        if test -z "$WORDS_BIGENDIAN" ; then
          WORDS_BIGENDIAN=0
        else
          WORDS_BIGENDIAN=""
        fi
      fi

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: error building endian probe" >&5
echo "$as_me: error: error building endian probe" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  if test -z "$WORDS_BIGENDIAN" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"

	short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
	short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
	void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
	short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
	short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
	void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
	int foo() { _ascii (); _ebcdic (); return 0; }

  int main() {
foo();
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
       (eval $ac_link) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest$ac_exeext ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    mv conftest$ac_exeext $GASNET_EXAMINE_BIN

      # use perl here, because some greps barf on binary files (eg Solaris)
      if test `$PERL -ne 'if (m/BIGenDianSyS/) { print "yes\n"; }' $GASNET_EXAMINE_BIN` ; then
         WORDS_BIGENDIAN=1
      fi
      if test `$PERL -ne 'if (m/LiTTleEnDian/) { print "yes\n"; }' $GASNET_EXAMINE_BIN` ; then
        if test -z "$WORDS_BIGENDIAN" ; then
          WORDS_BIGENDIAN=0
        else
          WORDS_BIGENDIAN=""
        fi
      fi

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: error building endian probe" >&5
echo "$as_me: error: error building endian probe" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi


  echo "$as_me:$LINENO: result: $WORDS_BIGENDIAN" >&5
echo "${ECHO_T}$WORDS_BIGENDIAN" >&6
fi
if test "$WORDS_BIGENDIAN" = "1"; then

cat >>confdefs.h <<\_ACEOF
#define WORDS_BIGENDIAN 1
_ACEOF

elif test "$WORDS_BIGENDIAN" = ""; then
  { { echo "$as_me:$LINENO: error: Inconsistent results from endian probe" >&5
echo "$as_me: error: Inconsistent results from endian probe" >&2;}
   { (exit 1); exit 1; }; }
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_BIGENDIAN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



# Extract the first word of "mpcc_r", so it can be a program name with args.
set dummy mpcc_r; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_have_mpcc_r+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&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
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_have_mpcc_r="yes"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  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 "$as_me:$LINENO: result: $have_mpcc_r" >&5
echo "${ECHO_T}$have_mpcc_r" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi


## specific compiler families




# vvvvvvvvvvvvvvvvvvvvvv GASNET_FAMILY_CACHE_CHECK(C,CC,gasnet_cv_cc_family) vvvvvvvvvvvvvvvvvvvvvv (L:1)


echo "$as_me:$LINENO: checking for C compiler family" >&5
echo $ECHO_N "checking for C compiler family... $ECHO_C" >&6
if test "${gasnet_cv_cc_family+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  if test "CC" = "CC" ; then
    _GASNET_FAMILY_CACHE_CHECK_PREPROC="$CPP"
  else
    _GASNET_FAMILY_CACHE_CHECK_PREPROC="$CXXCPP"
  fi
  if test "`echo '$_GASNET_FAMILY_CACHE_CHECK_PREPROC' | grep '$C'`" = "" ; then
    # preprocessor may differ from true compiler, so force full compilation testing
    _force_compile=1
  else
    _force_compile=
  fi
  gasnet_cv_cc_family=unknown

    if test "$gasnet_cv_cc_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__xlC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __xlC__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=XLC
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __xlC__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=XLC
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__xlC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  if test "$gasnet_cv_cc_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(_CRAYC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef _CRAYC
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=Cray
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef _CRAYC
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=Cray
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(_CRAYC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
    if test "$gasnet_cv_cc_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__GNUC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __GNUC__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=GNU
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __GNUC__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=GNU
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__GNUC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__PATHCC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __PATHCC__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=Pathscale
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __PATHCC__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=Pathscale
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__PATHCC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__PGI,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __PGI
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=PGI
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __PGI
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=PGI
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__PGI,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__INTEL_COMPILER,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __INTEL_COMPILER
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=Intel
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __INTEL_COMPILER
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=Intel
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__INTEL_COMPILER,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
    if test "$gasnet_cv_cc_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__DECC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __DECC
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=Compaq
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __DECC
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=Compaq
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__DECC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # Compaq C



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__DECCXX,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __DECCXX
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=Compaq
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __DECCXX
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=Compaq
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__DECCXX,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # Compaq C++
  fi
  if test "$gasnet_cv_cc_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__SUNPRO_C,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __SUNPRO_C
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=Sun
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __SUNPRO_C
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=Sun
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__SUNPRO_C,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


  # Sun C



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__SUNPRO_CC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __SUNPRO_CC
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=Sun
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __SUNPRO_CC
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=Sun
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__SUNPRO_CC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # Sun C++
  fi
  if test "$gasnet_cv_cc_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__HP_cc,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __HP_cc
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=HP
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __HP_cc
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=HP
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__HP_cc,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


  # HP C



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__HP_aCC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __HP_aCC
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=HP
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __HP_aCC
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=HP
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__HP_aCC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # HP aCC (C++)
  fi
  if test "$gasnet_cv_cc_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(_SGI_COMPILER_VERSION,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef _SGI_COMPILER_VERSION
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=MIPS
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef _SGI_COMPILER_VERSION
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=MIPS
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(_SGI_COMPILER_VERSION,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  if test "$gasnet_cv_cc_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__MTA__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __MTA__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=MTA
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __MTA__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=MTA
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__MTA__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  if test "$gasnet_cv_cc_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__KCC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __KCC
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=KAI
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __KCC
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=KAI
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__KCC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  if test "$gasnet_cv_cc_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__TINYC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __TINYC__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=TINY
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __TINYC__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=TINY
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__TINYC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  if test "$gasnet_cv_cc_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__LCC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __LCC__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=LCC
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __LCC__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=LCC
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__LCC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi

    if test "$gasnet_cv_cc_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(_SX,...,) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef _SX
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=NEC
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef _SX
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=NEC
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(_SX,...,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__sgi,...,) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __sgi
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cc_family=MIPS
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __sgi
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_family=MIPS
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__sgi,...,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # MIPSPro 7.3.0 and earlier
  fi

fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_family" >&5
echo "${ECHO_T}$gasnet_cv_cc_family" >&6
if test "$gasnet_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=$gasnet_cv_cc_family
CC_UNWRAPPED=$CC
case $gasnet_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"


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FAMILY_CACHE_CHECK(C,CC,gasnet_cv_cc_family) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




## compiler family early initialization

case "$gasnet_cv_cc_family" in
  GNU)


# vvvvvvvvvvvvvvvvvvvvvv GASNET_GCC_VERSION_CHECK(CC) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for known buggy compilers" >&5
echo $ECHO_N "checking for known buggy compilers... $ECHO_C" >&6
badgccmsg=""
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#if __GNUC__ == 2 && __GNUC_MINOR__ == 96 && __GNUC_PATCHLEVEL__ == 0
# error
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


echo "$as_me:$LINENO: result: CC is gcc 2.96" >&5
echo "${ECHO_T}CC is gcc 2.96" >&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."



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(allow-gcc296,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

# 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 "$as_me:$LINENO: error: $badgccmsg \
  You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc296 flag." >&5
echo "$as_me: error: $badgccmsg \
  You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc296 flag." >&2;}
   { (exit 1); exit 1; }; }
 ;;
  *)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:3)

  { echo "$as_me:$LINENO: WARNING: $badgccmsg" >&5
echo "$as_me: WARNING: $badgccmsg" >&2;}
  echo "$badgccmsg" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




   ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(allow-gcc296,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




fi
rm -f conftest.$ac_objext conftest.$ac_ext
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#if __GNUC__ == 3 && __GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ <= 2
# error
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


echo "$as_me:$LINENO: result: CC is gcc 3.2.0-2" >&5
echo "${ECHO_T}CC is gcc 3.2.0-2" >&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."



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(allow-gcc32,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

# 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 "$as_me:$LINENO: error: $badgccmsg \
  You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc32 flag." >&5
echo "$as_me: error: $badgccmsg \
  You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc32 flag." >&2;}
   { (exit 1); exit 1; }; }
 ;;
  *)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:3)

  { echo "$as_me:$LINENO: WARNING: $badgccmsg" >&5
echo "$as_me: WARNING: $badgccmsg" >&2;}
  echo "$badgccmsg" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




   ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(allow-gcc32,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




fi
rm -f conftest.$ac_objext conftest.$ac_ext
if test -z "$badgccmsg"; then
  echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GCC_VERSION_CHECK(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)


 ;;
  MTA)  # override target_os for MTA, which may be wrong if cross-compiling
        target_os="mtx"   ;;
esac

if test "$cross_compiling" = "yes" ; then
  cat >>confdefs.h <<\_ACEOF
#define GASNETI_CROSS_COMPILING 1
_ACEOF

fi

## discover bit width

echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    then ac_cv_prog_egrep='grep -E'
    else ac_cv_prog_egrep='egrep'
    fi
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 EGREP=$ac_cv_prog_egrep


echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_header_stdc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_header_stdc=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then
  :
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
  :
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
                   (('a' <= (c) && (c) <= 'i') \
                     || ('j' <= (c) && (c) <= 'r') \
                     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
      exit(2);
  exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then

cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.









for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                  inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default

#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_Header=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_Header=no"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done





# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_SIZEOF(void *,) vvvvvvvvvvvvvvvvvvvvvv (L:1)






  if test "$cross_compiling" = "yes" ; then
    SIZEOF_VOID_P=




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(void *) (binary probe),SIZEOF_VOID_P,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking sizeof(void *) (binary probe)" >&5
echo $ECHO_N "checking sizeof(void *) (binary probe)... $ECHO_C" >&6
if test "${gasnet_cv_SIZEOF_VOID_P+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

gasnet_cv_SIZEOF_VOID_P=""





# vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(void *))>0?(sizeof(void *)):-(sizeof(void *))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(void *))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
       (eval $ac_compile) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest.o ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") vvvvvvvvvvvvvvvvvvvvvv (L:4)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO.o"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



    mv conftest.o $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_VOID_P=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while compile extracting sizeof(void *)" >&5
echo "$as_me: error: Failed while compile extracting sizeof(void *)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



if test -z "$gasnet_cv_SIZEOF_VOID_P" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(void *))>0?(sizeof(void *)):-(sizeof(void *))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(void *))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
       (eval $ac_link) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest$ac_exeext ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:4)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



    mv conftest$ac_exeext $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_VOID_P=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while link extracting sizeof(void *)" >&5
echo "$as_me: error: Failed while link extracting sizeof(void *)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



fi



fi
echo "$as_me:$LINENO: result: $gasnet_cv_SIZEOF_VOID_P" >&5
echo "${ECHO_T}$gasnet_cv_SIZEOF_VOID_P" >&6
if test -n "$gasnet_cv_SIZEOF_VOID_P" ; then
  SIZEOF_VOID_P=$gasnet_cv_SIZEOF_VOID_P
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(void *) (binary probe),SIZEOF_VOID_P,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



    if test -z "$SIZEOF_VOID_P" ; then # last resort is to use CROSS var



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(SIZEOF_VOID_P,SIZEOF_VOID_P) vvvvvvvvvvvvvvvvvvvvvv (L:2)


  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_SIZEOF_VOID_P,) vvvvvvvvvvvvvvvvvvvvvv (L:3)




  echo "$as_me:$LINENO: checking for CROSS_SIZEOF_VOID_P in environment" >&5
echo $ECHO_N "checking for CROSS_SIZEOF_VOID_P in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_CROSS_SIZEOF_VOID_P+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${CROSS_SIZEOF_VOID_P-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_sizeof_void_p" != ""; then
	      gasnet_cv_envvar_CROSS_SIZEOF_VOID_P="$with_cross_sizeof_void_p"
	      envval_src_CROSS_SIZEOF_VOID_P=given
	    else
	      gasnet_cv_envvar_CROSS_SIZEOF_VOID_P=""
	      envval_src_CROSS_SIZEOF_VOID_P=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_CROSS_SIZEOF_VOID_P="$CROSS_SIZEOF_VOID_P"
	    envval_src_CROSS_SIZEOF_VOID_P=given
      esac

fi


  CROSS_SIZEOF_VOID_P="$gasnet_cv_envvar_CROSS_SIZEOF_VOID_P"
  case "$envval_src_CROSS_SIZEOF_VOID_P" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_VOID_P\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_SIZEOF_VOID_P\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_VOID_P\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_SIZEOF_VOID_P\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_VOID_P\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_SIZEOF_VOID_P\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_SIZEOF_VOID_P,) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    if test "$CROSS_SIZEOF_VOID_P" = "" ; then
      { { echo "$as_me:$LINENO: error: This configure script requires \$CROSS_SIZEOF_VOID_P be set for cross-compilation" >&5
echo "$as_me: error: This configure script requires \$CROSS_SIZEOF_VOID_P be set for cross-compilation" >&2;}
   { (exit 1); exit 1; }; }
    else
      SIZEOF_VOID_P="$CROSS_SIZEOF_VOID_P"
    fi
  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CROSS_VAR(SIZEOF_VOID_P,SIZEOF_VOID_P) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



    fi
    ac_cv_sizeof_void_p=$SIZEOF_VOID_P
  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(ac_cv_sizeof_void_p,"$ac_cv_sizeof_void_p") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_ac_cv_sizeof_void_p" = "" ; then
    _pushcnt_ac_cv_sizeof_void_p=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_sizeof_void_p+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_sizeof_void_p_$_pushcnt_ac_cv_sizeof_void_p=\$ac_cv_sizeof_void_p
  eval _pushedvarset_ac_cv_sizeof_void_p_$_pushcnt_ac_cv_sizeof_void_p=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_sizeof_void_p=`expr $_pushcnt_ac_cv_sizeof_void_p + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  echo "pushed new ac_cv_sizeof_void_p value: $ac_cv_sizeof_void_p" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(ac_cv_sizeof_void_p,"$ac_cv_sizeof_void_p") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  if test "$ac_cv_sizeof_void_p" = "" ; then
    unset ac_cv_sizeof_void_p
    unset ac_cv_type_void_p
  fi
  if test "" != "" ; then
    echo "$as_me:$LINENO: checking  size:" >&5
echo $ECHO_N "checking  size:... $ECHO_C" >&6
  fi
  echo "$as_me:$LINENO: checking for void *" >&5
echo $ECHO_N "checking for void *... $ECHO_C" >&6
if test "${ac_cv_type_void_p+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((void * *) 0)
  return 0;
if (sizeof (void *))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_void_p=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_void_p=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
echo "${ECHO_T}$ac_cv_type_void_p" >&6

echo "$as_me:$LINENO: checking size of void *" >&5
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
if test "${ac_cv_sizeof_void_p+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_void_p" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_void_p=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (void *)); }
unsigned long ulongval () { return (long) (sizeof (void *)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (void *))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (void *))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (void *))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_void_p=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_void_p=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
_ACEOF


  gasnet_checksizeoftmp_sizeof_void_p="$ac_cv_sizeof_void_p"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(ac_cv_sizeof_void_p) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_ac_cv_sizeof_void_p" -ge "1"; then
    _pushcnt_ac_cv_sizeof_void_p=`expr $_pushcnt_ac_cv_sizeof_void_p - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_ac_cv_sizeof_void_p_$_pushcnt_ac_cv_sizeof_void_p
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval ac_cv_sizeof_void_p=\$_pushedvar_ac_cv_sizeof_void_p_$_pushcnt_ac_cv_sizeof_void_p
      echo "popping ac_cv_sizeof_void_p back to: $ac_cv_sizeof_void_p" >&5
    else
      unset ac_cv_sizeof_void_p
      echo "popping ac_cv_sizeof_void_p back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_void_p" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_void_p" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(ac_cv_sizeof_void_p) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  ac_cv_sizeof_void_p=$gasnet_checksizeoftmp_sizeof_void_p
  SIZEOF_VOID_P=$gasnet_checksizeoftmp_sizeof_void_p
  if test "$SIZEOF_VOID_P" = "0" -o "$SIZEOF_VOID_P" = "" -o "$ac_cv_sizeof_void_p" != "$SIZEOF_VOID_P"; then
    { { echo "$as_me:$LINENO: error: failed to find sizeof(void *)" >&5
echo "$as_me: error: failed to find sizeof(void *)" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if test "" != ""; then
                    ac_cv_SIZEOF_VOID_P_indirect=SIZEOF_VOID_P
        cat >>confdefs.h <<_ACEOF
#define $ac_cv_SIZEOF_VOID_P_indirect $SIZEOF_VOID_P
_ACEOF

  fi







# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_SIZEOF(void *,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



GASNETI_PTR_BITS=`expr $SIZEOF_VOID_P \* 8`


###
#
# choose the default CC flags
#

case "$gasnet_cv_cc_family" in
  GNU)


# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"-O3") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="-O3"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"-O3") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	# prefer the --param inliner option(s), which give us finer control



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(--param max-inline-insns-single=35000) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param max-inline-insns-single=35000") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS --param max-inline-insns-single=35000"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param max-inline-insns-single=35000") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag --param max-inline-insns-single=35000" >&5
echo $ECHO_N "checking for C compiler flag --param max-inline-insns-single=35000... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS --param max-inline-insns-single=35000"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(--param max-inline-insns=100000) vvvvvvvvvvvvvvvvvvvvvv (L:4)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param max-inline-insns=100000") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS --param max-inline-insns=100000"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param max-inline-insns=100000") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



echo "$as_me:$LINENO: checking for C compiler flag --param max-inline-insns=100000" >&5
echo $ECHO_N "checking for C compiler flag --param max-inline-insns=100000... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:7)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:7)



 CFLAGS="$CFLAGS --param max-inline-insns=100000"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:7)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:7)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:8)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS --param max-inline-insns=100000"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:7)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:7)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(--param max-inline-insns=100000) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)




    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-finline-limit=10000) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -finline-limit=10000") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -finline-limit=10000"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -finline-limit=10000") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -finline-limit=10000" >&5
echo $ECHO_N "checking for C compiler flag -finline-limit=10000... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS -finline-limit=10000"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS -finline-limit=10000"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-finline-limit=10000) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS --param max-inline-insns-single=35000"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(--param max-inline-insns=100000) vvvvvvvvvvvvvvvvvvvvvv (L:6)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param max-inline-insns=100000") vvvvvvvvvvvvvvvvvvvvvv (L:7)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS --param max-inline-insns=100000"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param max-inline-insns=100000") ^^^^^^^^^^^^^^^^^^^^^^ (L:7)



echo "$as_me:$LINENO: checking for C compiler flag --param max-inline-insns=100000" >&5
echo $ECHO_N "checking for C compiler flag --param max-inline-insns=100000... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:8)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)



 CFLAGS="$CFLAGS --param max-inline-insns=100000"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:10)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS --param max-inline-insns=100000"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(--param max-inline-insns=100000) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-finline-limit=10000) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -finline-limit=10000") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -finline-limit=10000"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -finline-limit=10000") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -finline-limit=10000" >&5
echo $ECHO_N "checking for C compiler flag -finline-limit=10000... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS -finline-limit=10000"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS -finline-limit=10000"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-finline-limit=10000) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-finline-limit=10000) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -finline-limit=10000") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -finline-limit=10000"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -finline-limit=10000") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -finline-limit=10000" >&5
echo $ECHO_N "checking for C compiler flag -finline-limit=10000... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS -finline-limit=10000"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS -finline-limit=10000"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-finline-limit=10000) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(--param max-inline-insns-single=35000) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	# gcc 3.4+ require new flags to enable full inlining



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(--param inline-unit-growth=10000) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param inline-unit-growth=10000") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS --param inline-unit-growth=10000"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param inline-unit-growth=10000") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag --param inline-unit-growth=10000" >&5
echo $ECHO_N "checking for C compiler flag --param inline-unit-growth=10000... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS --param inline-unit-growth=10000"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS --param inline-unit-growth=10000"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(--param inline-unit-growth=10000) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(--param large-function-growth=200000) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param large-function-growth=200000") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS --param large-function-growth=200000"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param large-function-growth=200000") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag --param large-function-growth=200000" >&5
echo $ECHO_N "checking for C compiler flag --param large-function-growth=200000... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS --param large-function-growth=200000"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS --param large-function-growth=200000"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(--param large-function-growth=200000) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        # We'd like to use -Winline to detect call sites where the optimizer
        # ignores our inline function modifier (usually due to technical limitations)
  	# However, some versions of gcc issue spurious warnings with -Winline
        # for inlining operations which the user did not request.
        # Detect that gcc bug and avoid -Winline for those versions



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Winline) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Winline") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -Winline"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Winline") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -Winline" >&5
echo $ECHO_N "checking for C compiler flag -Winline... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)




          noninlineCFLAGS="$CFLAGS"
          CFLAGS="$CFLAGS -Winline"
          echo "$as_me:$LINENO: checking for buggy -Winline" >&5
echo $ECHO_N "checking for buggy -Winline... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

           int foo() { return 0; }
           int bar() { return foo() + bar(); }

int main() {

           int x = bar();

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6 # keep -Winline

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:8)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	 echo "$as_me:$LINENO: result: buggy" >&5
echo "${ECHO_T}buggy" >&6
               CFLAGS="$noninlineCFLAGS" # remove -Winline


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	 echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6 # keep -Winline

      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	 echo "$as_me:$LINENO: result: buggy" >&5
echo "${ECHO_T}buggy" >&6
               CFLAGS="$noninlineCFLAGS" # remove -Winline

      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
     { { echo "$as_me:$LINENO: error: failure when detecting buggy -Winline" >&5
echo "$as_me: error: failure when detecting buggy -Winline" >&2;}
   { (exit 1); exit 1; }; }

  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6

          noninlineCFLAGS="$CFLAGS"
          CFLAGS="$CFLAGS -Winline"
          echo "$as_me:$LINENO: checking for buggy -Winline" >&5
echo $ECHO_N "checking for buggy -Winline... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:6)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

           int foo() { return 0; }
           int bar() { return foo() + bar(); }

int main() {

           int x = bar();

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:8)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6 # keep -Winline

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:10)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	 echo "$as_me:$LINENO: result: buggy" >&5
echo "${ECHO_T}buggy" >&6
               CFLAGS="$noninlineCFLAGS" # remove -Winline


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	 echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6 # keep -Winline

      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	 echo "$as_me:$LINENO: result: buggy" >&5
echo "${ECHO_T}buggy" >&6
               CFLAGS="$noninlineCFLAGS" # remove -Winline

      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
     { { echo "$as_me:$LINENO: error: failure when detecting buggy -Winline" >&5
echo "$as_me: error: failure when detecting buggy -Winline" >&2;}
   { (exit 1); exit 1; }; }

  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)




   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Winline) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




        CCOPTFLAGS="$CFLAGS"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  ;;
  Pathscale)  CCOPTFLAGS="-O3 -Winline" ;;
  Sun) if test "$GASNETI_PTR_BITS" = 64; then # -fast => -xarch=v8 which clobbers user's 64-bit choice
         SUN_ARCH_FLAG=`echo "$CC $CFLAGS" | $PERL -ne 'foreach(split(/ /,$_)) { print "$_" if (m/^-xarch/);}'`
       else
         SUN_ARCH_FLAG=
       fi
       CCOPTFLAGS="-fast $SUN_ARCH_FLAG -xO5"
       ;;
  Cray) CCOPTFLAGS="-O2" ;; # DOB: -O3 is unstable on Cray cc
  HP) CCOPTFLAGS="-O3" ;;
  MIPS) CCOPTFLAGS="-O3" ;;
  XLC)
    case "$target_os" in
	darwin*)
	    # enabling ipa (-O4 or higher) breaks linking to MPI (and thus vapi).
	    case `/usr/sbin/sysctl hw.cpusubtype | cut '-d ' -f2` in
		# bug926: on G5 (cpusubtype 100) -qarch={ppc970,auto} causes corruption of 64-bit integer arithmetic
		100)	CCOPTFLAGS="-O3 -qhot -qarch=g5 -qtune=auto -qsmp=noauto -qmaxmem=-1" ;;
		*)	CCOPTFLAGS="-O3 -qhot -qarch=auto -qtune=auto -qsmp=noauto -qmaxmem=-1" ;;
	    esac
	    ;;
	linux*) CCOPTFLAGS="-O3 -qhot -qarch=auto -qtune=auto -qsmp=noauto -qmaxmem=-1" ;;
	*)  #CCOPTFLAGS="-O5 -qsmp=noauto -qmaxmem=-1" ;; # -O5 == -O3 w/ intra-procedural analysis, maxmem=-1 is default for -O3 or higher
	    CCOPTFLAGS="-O3 -qarch=auto -qtune=auto -qsmp=noauto -qmaxmem=-1" ;; # -O5 causes linker to hang on Titanium
    esac
  ;;
  Compaq) CCOPTFLAGS="-fast -noifo -O4 -tune host -inline all" ;;
  Intel) CCOPTFLAGS="-O3" ;;
  MTA) CCOPTFLAGS="-O3" ;; # MTA C actually ignores -O, optimization controlled by presence/absence of -g
  PGI) CCOPTFLAGS="-O2" ;;
  TINY) CCOPTFLAGS="" # optimization not supported
        SEPARATE_CC=1 # force separate compilation - multiple -c compilation not supported
  ;;
  *)    CCOPTFLAGS="-O" ;;
esac




case "$gasnet_cv_cc_family" in
  GNU)


# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




        CFLAGS="-g3"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wall) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wall") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -Wall"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wall") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -Wall" >&5
echo $ECHO_N "checking for C compiler flag -Wall... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS -Wall"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS -Wall"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wall) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-unused) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-unused") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -Wno-unused"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-unused") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -Wno-unused" >&5
echo $ECHO_N "checking for C compiler flag -Wno-unused... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS -Wno-unused"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS -Wno-unused"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-unused) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wpointer-arith) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wpointer-arith") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -Wpointer-arith"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wpointer-arith") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -Wpointer-arith" >&5
echo $ECHO_N "checking for C compiler flag -Wpointer-arith... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS -Wpointer-arith"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS -Wpointer-arith"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wpointer-arith) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wnested-externs) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wnested-externs") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -Wnested-externs"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wnested-externs") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -Wnested-externs" >&5
echo $ECHO_N "checking for C compiler flag -Wnested-externs... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS -Wnested-externs"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS -Wnested-externs"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wnested-externs) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wwrite-strings) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wwrite-strings") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -Wwrite-strings"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wwrite-strings") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -Wwrite-strings" >&5
echo $ECHO_N "checking for C compiler flag -Wwrite-strings... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS -Wwrite-strings"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS -Wwrite-strings"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wwrite-strings) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wdeclaration-after-statement) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wdeclaration-after-statement") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wdeclaration-after-statement") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -Wdeclaration-after-statement" >&5
echo $ECHO_N "checking for C compiler flag -Wdeclaration-after-statement... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS -Wdeclaration-after-statement"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS -Wdeclaration-after-statement"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wdeclaration-after-statement) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wmissing-format-attribute) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wmissing-format-attribute") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -Wmissing-format-attribute"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wmissing-format-attribute") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -Wmissing-format-attribute" >&5
echo $ECHO_N "checking for C compiler flag -Wmissing-format-attribute... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS -Wmissing-format-attribute"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS -Wmissing-format-attribute"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wmissing-format-attribute) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	if test "$use_pthreads" != "no" ; then
        # some crappy pthread mutex implementations generate warnings without -Wno-missing-braces
	echo "$as_me:$LINENO: checking for buggy pthread.h mutex initializers" >&5
echo $ECHO_N "checking for buggy pthread.h mutex initializers... $ECHO_C" >&6
        oldCFLAGS="$CFLAGS"
        # OSF and FREEBSD require the -pthread compiler flag when including pthread.h
        case "$target_os" in
          osf*)     CFLAGS="-pthread $CFLAGS" ;;
          freebsd*) CFLAGS="-pthread $CFLAGS" ;;
        esac



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"
#include <pthread.h>
int main() {
pthread_mutex_t fastmutex = PTHREAD_MUTEX_INITIALIZER;
; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	echo "$as_me:$LINENO: result: buggy" >&5
echo "${ECHO_T}buggy" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-missing-braces) vvvvvvvvvvvvvvvvvvvvvv (L:6)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-missing-braces") vvvvvvvvvvvvvvvvvvvvvv (L:7)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -Wno-missing-braces"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-missing-braces") ^^^^^^^^^^^^^^^^^^^^^^ (L:7)



echo "$as_me:$LINENO: checking for C compiler flag -Wno-missing-braces" >&5
echo $ECHO_N "checking for C compiler flag -Wno-missing-braces... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:8)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)



 oldCFLAGS="$oldCFLAGS -Wno-missing-braces"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:10)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     oldCFLAGS="$oldCFLAGS -Wno-missing-braces"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-missing-braces) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)




    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	echo "$as_me:$LINENO: result: buggy" >&5
echo "${ECHO_T}buggy" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-missing-braces) vvvvvvvvvvvvvvvvvvvvvv (L:6)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-missing-braces") vvvvvvvvvvvvvvvvvvvvvv (L:7)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -Wno-missing-braces"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-missing-braces") ^^^^^^^^^^^^^^^^^^^^^^ (L:7)



echo "$as_me:$LINENO: checking for C compiler flag -Wno-missing-braces" >&5
echo $ECHO_N "checking for C compiler flag -Wno-missing-braces... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:8)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)



 oldCFLAGS="$oldCFLAGS -Wno-missing-braces"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:10)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     oldCFLAGS="$oldCFLAGS -Wno-missing-braces"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-missing-braces) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
    #bug611: ignore failures here, which may be due to broken/missing pthreads support
           #AC_MSG_ERROR(failure while checking for buggy pthread.h mutexes)
	   echo "$as_me:$LINENO: result: failure - ignored" >&5
echo "${ECHO_T}failure - ignored" >&6



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        CFLAGS="$oldCFLAGS"
	fi
        case "$target_os" in
          solaris*) # hide pragma warnings in system header files included by absolute path



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-unknown-pragmas) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-unknown-pragmas") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -Wno-unknown-pragmas"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-unknown-pragmas") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -Wno-unknown-pragmas" >&5
echo $ECHO_N "checking for C compiler flag -Wno-unknown-pragmas... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CFLAGS="$CFLAGS -Wno-unknown-pragmas"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     CFLAGS="$CFLAGS -Wno-unknown-pragmas"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-unknown-pragmas) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        esac
        #GASNET_TRY_CFLAG([-ansi -U__STRICT_ANSI__],[[C]FLAGS="$[C]FLAGS -ansi -U__STRICT_ANSI__"])

        CCDEBUGFLAGS="$CFLAGS"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  ;;
  NEC)   CCDEBUGFLAGS="-g -Cnoopt -Cdebug" ;;
  HP)   CCDEBUGFLAGS="-g +ESdbgasm" ;; # need +ESdbgasm to use -g with _asm()
  MTA)  CCDEBUGFLAGS="-g2" ;; # need +ESdbgasm to use -g with _asm()
  Compaq) CCDEBUGFLAGS="-trapuv -g2" ;;
  *)    CCDEBUGFLAGS="-g" ;;
esac

# attempt to enable the ultrasparc ISA in MISC_C(XX)FLAGS, and test for related capabilities
# flags is compiler options which enable ultrasparc instructions for 32-bit ABI



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_DISABLED(ultrasparc-probe,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-ultrasparc-probe or --disable-ultrasparc-probe was given.
if test "${enable_ultrasparc_probe+set}" = set; then
  enableval="$enable_ultrasparc_probe"

fi;
case "$enable_ultrasparc_probe" in
  '' | yes) :
        ;;
  *)   DISABLE_ULTRASPARC=1 ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_DISABLED(ultrasparc-probe,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





# attempt to enable 64-bit inline asm in MISC_C(XX)FLAGS, and test for related capabilities
# flags is compiler options which enable ppc64 instructions for 32-bit ABI



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_DISABLED(ppc64-probe,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-ppc64-probe or --disable-ppc64-probe was given.
if test "${enable_ppc64_probe+set}" = set; then
  enableval="$enable_ppc64_probe"

fi;
case "$enable_ppc64_probe" in
  '' | yes) :
        ;;
  *)   DISABLE_PPC64=1 ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_DISABLED(ppc64-probe,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





case "$gasnet_cv_cc_family" in
  GNU)
    case "$target_cpu" in
      sparc)

  if test "$GASNETI_PTR_BITS" = 32 -a "$DISABLE_ULTRASPARC" != 1; then
    for flag in "-mcpu=ultrasparc3 -mtune=ultrasparc3" "-mcpu=ultrasparc -mtune=ultrasparc" ; do



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $flag"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag $flag" >&5
echo $ECHO_N "checking for C compiler flag $flag... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ultrasparc_flag_worked=1

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6
   ultrasparc_flag_worked=0

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     ultrasparc_flag_worked=1
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     ultrasparc_flag_worked=0
   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ultrasparc_flag_worked=0


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      if test "$ultrasparc_flag_worked" = 1; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MISC_CFLAGS $flag"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	echo "$as_me:$LINENO: checking for working flag $flag" >&5
echo $ECHO_N "checking for working flag $flag... $ECHO_C" >&6
	if test "$cross_compiling" = yes; then
  ultrasparc_flag_worked=1
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

          void foo(void) {
            #ifdef __GNUC__
              register void * addr = 0;
              register int oldval = 0;
              register int newval = 1;
              __asm__ __volatile__ ("cas	[%2], %0, %1"
                                    : "=&r"(oldval), "=&r"(newval) : "r" (addr) : "memory");
            #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
              __asm("cas	[%i0], %i1, %i2");
            #else
              #error unknown sparc compiler
            #endif
          }
           int main() { return 0; }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ultrasparc_flag_worked=1
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ultrasparc_flag_worked=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	if test "$ultrasparc_flag_worked" = 1; then
	  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      	  MISC_CFLAGS="$flag"
	  break
	else
	  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	fi
      fi
    done
  fi
  echo "$as_me:$LINENO: checking for UltraSPARC instruction support" >&5
echo $ECHO_N "checking for UltraSPARC instruction support... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MISC_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

          void foo(void) {
            #ifdef __GNUC__
              register void * addr = 0;
              register int oldval = 0;
              register int newval = 1;
              __asm__ __volatile__ ("cas	[%2], %0, %1"
                                    : "=&r"(oldval), "=&r"(newval) : "r" (addr) : "memory");
            #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
              __asm("cas	[%i0], %i1, %i2");
            #else
              #error unknown sparc compiler
            #endif
          }

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                 cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_ULTRASPARC 1
_ACEOF


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	 echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                 cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_ULTRASPARC 1
_ACEOF


      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6
      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
     echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6

  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




;;
      powerpc*)

  if test "$GASNETI_PTR_BITS" = 32 -a "$DISABLE_PPC64" != 1 -a "$cross_compiling" != "yes"; then
    # Bug 1587: "for flag in ; do" chokes the shell on Solaris
    # Bug 1589: Use of m4_ifval(["-force_cpusubtype_ALL" "-Wa,-mppc64"]) to avoid bug 1587 chokes autoconf 2.13
    # So, we add a dummy element to keep the for-loop list non-empty, and then skip it.
    for flag in "-force_cpusubtype_ALL" "-Wa,-mppc64" DUMMY ; do
      if test "$flag" != DUMMY ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $flag"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag $flag" >&5
echo $ECHO_N "checking for C compiler flag $flag... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ppc64_flag_worked=1

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6
   ppc64_flag_worked=0

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     ppc64_flag_worked=1
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     ppc64_flag_worked=0
   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ppc64_flag_worked=0


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        if test "$ppc64_flag_worked" = 1; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MISC_CFLAGS $flag"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	  echo "$as_me:$LINENO: checking for working flag $flag" >&5
echo $ECHO_N "checking for working flag $flag... $ECHO_C" >&6
	  if test "$cross_compiling" = yes; then
  ppc64_flag_worked=1
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif
        int main() { double x; return testme(&x); }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ppc64_flag_worked=1
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ppc64_flag_worked=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	  if test "$ppc64_flag_worked" = 1; then
	    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      	    MISC_CFLAGS="$flag"
	    break
	  else
	    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	  fi
        fi
      fi
    done
  fi
  echo "$as_me:$LINENO: checking for PPC64 instruction support" >&5
echo $ECHO_N "checking for PPC64 instruction support... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MISC_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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
      :
      if test "$cross_compiling" = yes; then
   # Cross compiling.  For now just trust PTR_BITS.
		       if test "$GASNETI_PTR_BITS" = 64; then
                         echo "$as_me:$LINENO: result: yes (cross-compiling w/ 64-bit pointers)" >&5
echo "${ECHO_T}yes (cross-compiling w/ 64-bit pointers)" >&6
                         cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

		       else
                         echo "$as_me:$LINENO: result: no (cross-compiling w/ 32-bit pointers)" >&5
echo "${ECHO_T}no (cross-compiling w/ 32-bit pointers)" >&6
		       fi

else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif
        int main() { double x; return testme(&x); }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                      cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
echo "$as_me:$LINENO: result: no/failure" >&5
echo "${ECHO_T}no/failure" >&6
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	if test "$cross_compiling" = yes; then
   # Cross compiling.  For now just trust PTR_BITS.
		       if test "$GASNETI_PTR_BITS" = 64; then
                         echo "$as_me:$LINENO: result: yes (cross-compiling w/ 64-bit pointers)" >&5
echo "${ECHO_T}yes (cross-compiling w/ 64-bit pointers)" >&6
                         cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

		       else
                         echo "$as_me:$LINENO: result: no (cross-compiling w/ 32-bit pointers)" >&5
echo "${ECHO_T}no (cross-compiling w/ 32-bit pointers)" >&6
		       fi

else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif
        int main() { double x; return testme(&x); }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                      cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
echo "$as_me:$LINENO: result: no/failure" >&5
echo "${ECHO_T}no/failure" >&6
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6
      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
     echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6

  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




;;
    esac ;;
  Cray)
    case "$target_cpu" in
      alphaev5) MISC_CFLAGS="-hnomessage=236 -htaskprivate $LIBCM" ;; # T3E
      *)        MISC_CFLAGS="-hnomessage=236 $LIBCM" ;; # X1
    esac ;;
  MIPS) MISC_CFLAGS="-common -diag_error 1035 -diag_suppress1171,1174,1209,1552" # 1035 ensures "#error" is fatal
        # bug1555: older versions (7.4.0) don't have _Pragma without -c99, but that flag causes incorrect optimizer behavior
	;;
  Compaq) MISC_CFLAGS="-msg_disable extrasemi" ;;
  HP)     MISC_CFLAGS="+W612 +W2111 +W2174 +W2177 +W2236 +W2550 -Wp,-H100000" ;; # -H increases internal preprocessor table size
  Intel) MISC_CFLAGS="-wd177 -wd279"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-wd1572) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -wd1572") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -wd1572"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -wd1572") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag -wd1572" >&5
echo $ECHO_N "checking for C compiler flag -wd1572... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 MISC_CFLAGS="$MISC_CFLAGS -wd1572"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     MISC_CFLAGS="$MISC_CFLAGS -wd1572"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-wd1572) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



         ;;
  NEC) MISC_CFLAGS="-woff=68:111:174:177:236:301:550:940" ;;
  PGI) MISC_CFLAGS="-Masmkeyword -c9x";; # get inline assembly and restrict
  MTA) MISC_CFLAGS="-display_error_number -WS 111,174,238" ;;
  Sun) if test "$target_cpu" = "sparc"; then


  if test "$GASNETI_PTR_BITS" = 32 -a "$DISABLE_ULTRASPARC" != 1; then
    for flag in "-xarch=v8plusb" "-xarch=v8plusa" "-xarch=v8plus" ; do



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $flag"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag $flag" >&5
echo $ECHO_N "checking for C compiler flag $flag... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ultrasparc_flag_worked=1

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6
   ultrasparc_flag_worked=0

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     ultrasparc_flag_worked=1
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     ultrasparc_flag_worked=0
   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ultrasparc_flag_worked=0


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      if test "$ultrasparc_flag_worked" = 1; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MISC_CFLAGS $flag"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	echo "$as_me:$LINENO: checking for working flag $flag" >&5
echo $ECHO_N "checking for working flag $flag... $ECHO_C" >&6
	if test "$cross_compiling" = yes; then
  ultrasparc_flag_worked=1
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

          void foo(void) {
            #ifdef __GNUC__
              register void * addr = 0;
              register int oldval = 0;
              register int newval = 1;
              __asm__ __volatile__ ("cas	[%2], %0, %1"
                                    : "=&r"(oldval), "=&r"(newval) : "r" (addr) : "memory");
            #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
              __asm("cas	[%i0], %i1, %i2");
            #else
              #error unknown sparc compiler
            #endif
          }
           int main() { return 0; }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ultrasparc_flag_worked=1
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ultrasparc_flag_worked=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	if test "$ultrasparc_flag_worked" = 1; then
	  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      	  MISC_CFLAGS="$flag"
	  break
	else
	  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	fi
      fi
    done
  fi
  echo "$as_me:$LINENO: checking for UltraSPARC instruction support" >&5
echo $ECHO_N "checking for UltraSPARC instruction support... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MISC_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

          void foo(void) {
            #ifdef __GNUC__
              register void * addr = 0;
              register int oldval = 0;
              register int newval = 1;
              __asm__ __volatile__ ("cas	[%2], %0, %1"
                                    : "=&r"(oldval), "=&r"(newval) : "r" (addr) : "memory");
            #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
              __asm("cas	[%i0], %i1, %i2");
            #else
              #error unknown sparc compiler
            #endif
          }

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                 cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_ULTRASPARC 1
_ACEOF


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	 echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                 cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_ULTRASPARC 1
_ACEOF


      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6
      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
     echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6

  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





       fi
       MISC_CFLAGS="$MISC_CFLAGS -errtags" ;; # show warning tag ids in warnings
  XLC)

  if test "$GASNETI_PTR_BITS" = 32 -a "$DISABLE_PPC64" != 1 -a "$cross_compiling" != "yes"; then
    # Bug 1587: "for flag in ; do" chokes the shell on Solaris
    # Bug 1589: Use of m4_ifval([]) to avoid bug 1587 chokes autoconf 2.13
    # So, we add a dummy element to keep the for-loop list non-empty, and then skip it.
    for flag in  DUMMY ; do
      if test "$flag" != DUMMY ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $flag"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag $flag" >&5
echo $ECHO_N "checking for C compiler flag $flag... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ppc64_flag_worked=1

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6
   ppc64_flag_worked=0

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     ppc64_flag_worked=1
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6
     ppc64_flag_worked=0
   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ppc64_flag_worked=0


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        if test "$ppc64_flag_worked" = 1; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MISC_CFLAGS $flag"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	  echo "$as_me:$LINENO: checking for working flag $flag" >&5
echo $ECHO_N "checking for working flag $flag... $ECHO_C" >&6
	  if test "$cross_compiling" = yes; then
  ppc64_flag_worked=1
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif
        int main() { double x; return testme(&x); }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ppc64_flag_worked=1
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ppc64_flag_worked=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	  if test "$ppc64_flag_worked" = 1; then
	    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      	    MISC_CFLAGS="$flag"
	    break
	  else
	    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	  fi
        fi
      fi
    done
  fi
  echo "$as_me:$LINENO: checking for PPC64 instruction support" >&5
echo $ECHO_N "checking for PPC64 instruction support... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MISC_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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
      :
      if test "$cross_compiling" = yes; then
   # Cross compiling.  For now just trust PTR_BITS.
		       if test "$GASNETI_PTR_BITS" = 64; then
                         echo "$as_me:$LINENO: result: yes (cross-compiling w/ 64-bit pointers)" >&5
echo "${ECHO_T}yes (cross-compiling w/ 64-bit pointers)" >&6
                         cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

		       else
                         echo "$as_me:$LINENO: result: no (cross-compiling w/ 32-bit pointers)" >&5
echo "${ECHO_T}no (cross-compiling w/ 32-bit pointers)" >&6
		       fi

else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif
        int main() { double x; return testme(&x); }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                      cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
echo "$as_me:$LINENO: result: no/failure" >&5
echo "${ECHO_T}no/failure" >&6
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	if test "$cross_compiling" = yes; then
   # Cross compiling.  For now just trust PTR_BITS.
		       if test "$GASNETI_PTR_BITS" = 64; then
                         echo "$as_me:$LINENO: result: yes (cross-compiling w/ 64-bit pointers)" >&5
echo "${ECHO_T}yes (cross-compiling w/ 64-bit pointers)" >&6
                         cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

		       else
                         echo "$as_me:$LINENO: result: no (cross-compiling w/ 32-bit pointers)" >&5
echo "${ECHO_T}no (cross-compiling w/ 32-bit pointers)" >&6
		       fi

else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif
        int main() { double x; return testme(&x); }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                      cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
echo "$as_me:$LINENO: result: no/failure" >&5
echo "${ECHO_T}no/failure" >&6
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6
      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
     echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6

  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





       MISC_CFLAGS="$MISC_CFLAGS -qsuppress=1500-010:1506-229"
        # 1500-010 = infinite loop (such as in our tests)
	# 1506-229 = empty source file (some linux headers)
       ;;
  *)   MISC_CFLAGS="" ;;
esac

case "$gasnet_cv_cc_family" in
  XLC) MISC_CPPFLAGS="-qcpluscmt" ;; # tell preprocessor to allow C++-style comments
  PGI) MISC_CPPFLAGS="-B" ;; # C++ comments
  Sun) MISC_CPPFLAGS="-xCC" ;; # C++ comments
  HP)  MISC_CPPFLAGS="+W67" ;; # unrecognized #pragma upc
  GNU)
    case "$target_os" in
      darwin*) MISC_CPPFLAGS="-no-cpp-precomp -Wno-long-double" ;;
    esac ;;
  *)  MISC_CPPFLAGS="" ;;
esac




# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(debug,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# 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) :
       CFLAGS="$CCOPTFLAGS"
    cat >>confdefs.h <<\_ACEOF
#define GASNET_NDEBUG 1
_ACEOF

    BUILDCONFIG="optimize"
    enabled_debug=no ;;
  *)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING:
-----------------------------------------------------------------------
 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

 Configuring the system for global, forced debugging mode.
 This usually has a SERIOUS impact on performance, so you should NOT
 trust any performance numbers obtained from programs built
 using this GASNet installation!!!

 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
-----------------------------------------------------------------------" >&5
echo "$as_me: WARNING:
-----------------------------------------------------------------------
 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

 Configuring the system for global, forced debugging mode.
 This usually has a SERIOUS impact on performance, so you should NOT
 trust any performance numbers obtained from programs built
 using this GASNet installation!!!

 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
-----------------------------------------------------------------------" >&2;}
  echo "
-----------------------------------------------------------------------
 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

 Configuring the system for global, forced debugging mode.
 This usually has a SERIOUS impact on performance, so you should NOT
 trust any performance numbers obtained from programs built
 using this GASNet installation!!!

 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
-----------------------------------------------------------------------" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




    CFLAGS="$CCDEBUGFLAGS"
    cat >>confdefs.h <<\_ACEOF
#define GASNET_DEBUG 1
_ACEOF

    BUILDCONFIG="debug"
    enabled_debug=yes ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(debug,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





if test "$enabled_debug" = yes; then
  BUILDCONFIG_DEBUG_TRUE=
  BUILDCONFIG_DEBUG_FALSE='#'
else
  BUILDCONFIG_DEBUG_TRUE='#'
  BUILDCONFIG_DEBUG_FALSE=
fi





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(gasnet-verbose,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-gasnet-verbose or --disable-gasnet-verbose was given.
if test "${enable_gasnet_verbose+set}" = set; then
  enableval="$enable_gasnet_verbose"

fi;

case "$enable_gasnet_verbose" in
  '' | no) :
       enabled_debug_verbose=no  ;;
  *)   enabled_debug_verbose=yes  ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(gasnet-verbose,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  if test "$enabled_debug_verbose" = yes; then
    cat >>confdefs.h <<\_ACEOF
#define GASNET_DEBUG_VERBOSE 1
_ACEOF

  fi


if test "$enabled_debug_verbose" = yes; then
  BUILDCONFIG_DEBUG_VERBOSE_TRUE=
  BUILDCONFIG_DEBUG_VERBOSE_FALSE='#'
else
  BUILDCONFIG_DEBUG_VERBOSE_TRUE='#'
  BUILDCONFIG_DEBUG_VERBOSE_FALSE=
fi





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(trace,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-trace or --disable-trace was given.
if test "${enable_trace+set}" = set; then
  enableval="$enable_trace"

fi;
# Check whether --enable-trace or --disable-trace was given.
if test "${enable_trace+set}" = set; then
  enableval="$enable_trace"

fi;
case "$enable_trace" in
  no)  enabled_trace=no ;;
  yes) enabled_trace=yes ;;
  *)   enabled_trace=$enabled_debug ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(trace,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  if test "$enabled_trace" = yes; then
    cat >>confdefs.h <<\_ACEOF
#define GASNET_TRACE 1
_ACEOF

  fi


if test "$enabled_trace" = yes; then
  BUILDCONFIG_TRACE_TRUE=
  BUILDCONFIG_TRACE_FALSE='#'
else
  BUILDCONFIG_TRACE_TRUE='#'
  BUILDCONFIG_TRACE_FALSE=
fi





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(stats,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-stats or --disable-stats was given.
if test "${enable_stats+set}" = set; then
  enableval="$enable_stats"

fi;
# Check whether --enable-stats or --disable-stats was given.
if test "${enable_stats+set}" = set; then
  enableval="$enable_stats"

fi;
case "$enable_stats" in
  no)  enabled_stats=no ;;
  yes) enabled_stats=yes ;;
  *)   enabled_stats=$enabled_debug ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(stats,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  if test "$enabled_stats" = yes; then
    cat >>confdefs.h <<\_ACEOF
#define GASNET_STATS 1
_ACEOF

  fi


if test "$enabled_stats" = yes; then
  BUILDCONFIG_STATS_TRUE=
  BUILDCONFIG_STATS_FALSE='#'
else
  BUILDCONFIG_STATS_TRUE='#'
  BUILDCONFIG_STATS_FALSE=
fi





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(srclines,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-srclines or --disable-srclines was given.
if test "${enable_srclines+set}" = set; then
  enableval="$enable_srclines"

fi;

case "$enable_srclines" in
  '' | no) :
       ;;
  *)   enabled_srclines=yes  ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(srclines,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  if test "$enabled_srclines" = yes; then
    cat >>confdefs.h <<\_ACEOF
#define GASNET_SRCLINES 1
_ACEOF

  fi


if test "$enabled_srclines" = yes; then
  BUILDCONFIG_SRCLINES_TRUE=
  BUILDCONFIG_SRCLINES_FALSE='#'
else
  BUILDCONFIG_SRCLINES_TRUE='#'
  BUILDCONFIG_SRCLINES_FALSE=
fi


case "$target" in
  *-uclinux-*) # uclinux requires -Os
    MISC_CFLAGS="$MISC_CFLAGS -DGASNET_ALLOW_OPTIMIZED_DEBUG=1" ;;
  *)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_OPTIMIZEDDEBUG(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

 if test "$enable_debug" = "yes" ; then
  echo "$as_me:$LINENO: checking CC for debug vs. optimize compilation conflict" >&5
echo $ECHO_N "checking CC for debug vs. optimize compilation conflict... $ECHO_C" >&6


  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$CC") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $CPPFLAGS $MISC_CFLAGS $MISC_CPPFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $CPPFLAGS $MISC_CFLAGS $MISC_CPPFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $CPPFLAGS $MISC_CFLAGS $MISC_CPPFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


    #if defined(__OPTIMIZE__) || defined(NDEBUG)
	choke me
    #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6


echo
echo "configure error: User requested --enable-debug but CC or CFLAGS has enabled optimization (-O) or disabled assertions (-DNDEBUG). Try setting CC='$CC -O0 -UNDEBUG' or changing CFLAGS"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }



fi
rm -f conftest.$ac_objext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

 fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_OPTIMIZEDDEBUG(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  ;;
esac

#AC_SUBST(CFLAGS)	      # opt/debug flags
	      # warning suppression and other misc C flags
	      # misc preprocessor flags

case "$gasnet_cv_cc_family" in
  GNU) KEEPTMP_CFLAGS="-save-temps" ;;
  Pathscale) KEEPTMP_CFLAGS="-keep" ;;
  XLC) KEEPTMP_CFLAGS="-qlist" ;; # XXX: generates .lst w/ asm.  Can't find a way to preserve .i
  PGI) KEEPTMP_CFLAGS="-Mkeepasm" ;; # XXX: only keeps .s.  Can't find a way to preserve .i
  Sun) KEEPTMP_CFLAGS="-keeptmp" ;;
  *) KEEPTMP_CFLAGS="" ;;
esac
      # flags to preserve intermediate file (,i, .s, etc.)

segconfig=""



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(segment-fast,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-segment-fast or --disable-segment-fast was given.
if test "${enable_segment_fast+set}" = set; then
  enableval="$enable_segment_fast"

fi;

case "$enable_segment_fast" in
  '' | no) :
       ;;
  *)  segconfig="fast$segconfig" ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(segment-fast,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(segment-large,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-segment-large or --disable-segment-large was given.
if test "${enable_segment_large+set}" = set; then
  enableval="$enable_segment_large"

fi;

case "$enable_segment_large" in
  '' | no) :
       ;;
  *)  segconfig="large$segconfig" ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(segment-large,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(segment-everything,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-segment-everything or --disable-segment-everything was given.
if test "${enable_segment_everything+set}" = set; then
  enableval="$enable_segment_everything"

fi;

case "$enable_segment_everything" in
  '' | no) :
       ;;
  *)  segconfig="everything$segconfig" ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(segment-everything,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




case "$segconfig" in
  "") segconfig=fast; #for AM_CONDITIONAL, below
      cat >>confdefs.h <<\_ACEOF
#define GASNET_SEGMENT_FAST 1
_ACEOF
 ;;  # default is fast
  fast) cat >>confdefs.h <<\_ACEOF
#define GASNET_SEGMENT_FAST 1
_ACEOF
 ;;
  large) cat >>confdefs.h <<\_ACEOF
#define GASNET_SEGMENT_LARGE 1
_ACEOF
 ;;
  everything) cat >>confdefs.h <<\_ACEOF
#define GASNET_SEGMENT_EVERYTHING 1
_ACEOF
 ;;
  *) { { echo "$as_me:$LINENO: error: Conflicting shared segment configurations specified" >&5
echo "$as_me: error: Conflicting shared segment configurations specified" >&2;}
   { (exit 1); exit 1; }; } ;;
esac

# Do it all again because AM_CONDITIONAL()s can't go inside if or case.
# Groan.


if test "$segconfig" = fast; then
  GASNET_SEGMENT_FAST_TRUE=
  GASNET_SEGMENT_FAST_FALSE='#'
else
  GASNET_SEGMENT_FAST_TRUE='#'
  GASNET_SEGMENT_FAST_FALSE=
fi



if test "$segconfig" = large; then
  GASNET_SEGMENT_LARGE_TRUE=
  GASNET_SEGMENT_LARGE_FALSE='#'
else
  GASNET_SEGMENT_LARGE_TRUE='#'
  GASNET_SEGMENT_LARGE_FALSE=
fi



if test "$segconfig" = everything; then
  GASNET_SEGMENT_EVERYTHING_TRUE=
  GASNET_SEGMENT_EVERYTHING_FALSE='#'
else
  GASNET_SEGMENT_EVERYTHING_TRUE='#'
  GASNET_SEGMENT_EVERYTHING_FALSE=
fi





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_DISABLED(aligned-segments,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-aligned-segments or --disable-aligned-segments was given.
if test "${enable_aligned_segments+set}" = set; then
  enableval="$enable_aligned_segments"

fi;
case "$enable_aligned_segments" in
  '' | yes) :
        ;;
  *)   GASNETI_DISABLE_ALIGNED_SEGMENTS=1
		    cat >>confdefs.h <<\_ACEOF
#define GASNETI_DISABLE_ALIGNED_SEGMENTS 1
_ACEOF
 ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_DISABLED(aligned-segments,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_WITH(segment-mmap-max,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)


# Check whether --with-segment-mmap-max or --without-segment-mmap-max was given.
if test "${with_segment_mmap_max+set}" = set; then
  withval="$with_segment_mmap_max"

  case "$withval" in
    no) :
         ;;
    *)  case "$withval" in
      [1-9]*G*)
        cat >>confdefs.h <<_ACEOF
#define GASNETI_MMAP_MAX_SIZE ((uint64_t)(`expr "${withval}" : "\([1-9][0-9]*\)"`ull << 30))
_ACEOF

        ;;
      [1-9]*M*)
        cat >>confdefs.h <<_ACEOF
#define GASNETI_MMAP_MAX_SIZE ((uint64_t)(`expr "${withval}" : "\([1-9][0-9]*\)"`ull << 20))
_ACEOF

        ;;
      [1-9][0-9]*)
        cat >>confdefs.h <<_ACEOF
#define GASNETI_MMAP_MAX_SIZE ((uint64_t)${withval}ull)
_ACEOF

        ;;
      *) { { echo "$as_me:$LINENO: error: Illegal value for --with-segment-mmap-max=$withval" >&5
echo "$as_me: error: Illegal value for --with-segment-mmap-max=$withval" >&2;}
   { (exit 1); exit 1; }; } ;;
    esac ;;
  esac

else

   :


fi;

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_WITH(segment-mmap-max,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_LIBGCC vvvvvvvvvvvvvvvvvvvvvv (L:1)


echo "$as_me:$LINENO: checking for libgcc link flags" >&5
echo $ECHO_N "checking for libgcc link flags... $ECHO_C" >&6
if test "${gasnet_cv_lib_gcc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&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 "$as_me:$LINENO: error: cannot find libgcc" >&5
echo "$as_me: error: cannot find libgcc" >&2;}
   { (exit 1); exit 1; }; }
  fi
fi
gasnet_cv_lib_gcc="$LIBGCC"
fi
echo "$as_me:$LINENO: result: $gasnet_cv_lib_gcc" >&5
echo "${ECHO_T}$gasnet_cv_lib_gcc" >&6
LIBGCC="$gasnet_cv_lib_gcc"


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LIBGCC ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_RESTRICT vvvvvvvvvvvvvvvvvvvvvv (L:1)

    restrict_keyword=""
  if test "$restrict_keyword" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for restrict keyword,cc_keyrestrict,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking for restrict keyword" >&5
echo $ECHO_N "checking for restrict keyword... $ECHO_C" >&6
if test "${gasnet_cv_cc_keyrestrict+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
int dummy(void * restrict p) { return 1; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_keyrestrict=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_keyrestrict=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_keyrestrict" >&5
echo "${ECHO_T}$gasnet_cv_cc_keyrestrict" >&6
if test "$gasnet_cv_cc_keyrestrict" = yes; then
  :
  restrict_keyword="restrict"
else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for restrict keyword,cc_keyrestrict,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  if test "$restrict_keyword" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for __restrict__ keyword,cc_key__restrict__,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking for __restrict__ keyword" >&5
echo $ECHO_N "checking for __restrict__ keyword... $ECHO_C" >&6
if test "${gasnet_cv_cc_key__restrict__+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
int dummy(void * __restrict__ p) { return 1; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_key__restrict__=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_key__restrict__=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_key__restrict__" >&5
echo "${ECHO_T}$gasnet_cv_cc_key__restrict__" >&6
if test "$gasnet_cv_cc_key__restrict__" = yes; then
  :
  restrict_keyword="__restrict__"
else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for __restrict__ keyword,cc_key__restrict__,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  if test "$restrict_keyword" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for __restrict keyword,cc_key__restrict,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking for __restrict keyword" >&5
echo $ECHO_N "checking for __restrict keyword... $ECHO_C" >&6
if test "${gasnet_cv_cc_key__restrict+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
int dummy(void * __restrict p) { return 1; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_key__restrict=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_key__restrict=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_key__restrict" >&5
echo "${ECHO_T}$gasnet_cv_cc_key__restrict" >&6
if test "$gasnet_cv_cc_key__restrict" = yes; then
  :
  restrict_keyword="__restrict"
else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for __restrict keyword,cc_key__restrict,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  cat >>confdefs.h <<_ACEOF
#define GASNETI_RESTRICT $restrict_keyword
_ACEOF




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(whether restrict may qualify typedefs,cc_restrict_typedefs,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking whether restrict may qualify typedefs" >&5
echo $ECHO_N "checking whether restrict may qualify typedefs... $ECHO_C" >&6
if test "${gasnet_cv_cc_restrict_typedefs+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
typedef void *foo_t;
     int dummy(foo_t GASNETI_RESTRICT p) { return 1; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_restrict_typedefs=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_restrict_typedefs=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_restrict_typedefs" >&5
echo "${ECHO_T}$gasnet_cv_cc_restrict_typedefs" >&6
if test "$gasnet_cv_cc_restrict_typedefs" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define GASNETI_RESTRICT_MAY_QUALIFY_TYPEDEFS 1
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(whether restrict may qualify typedefs,cc_restrict_typedefs,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_RESTRICT ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__always_inline__) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  echo "$as_me:$LINENO: checking for __attribute__((__always_inline__))" >&5
echo $ECHO_N "checking for __attribute__((__always_inline__))... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"
__attribute__((__always_inline__)) int dummy() { return 1; }
int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_ALWAYSINLINE 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then

      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_ALWAYSINLINE 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
             echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__always_inline__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__noinline__) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  echo "$as_me:$LINENO: checking for __attribute__((__noinline__))" >&5
echo $ECHO_N "checking for __attribute__((__noinline__))... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"
__attribute__((__noinline__)) int dummy() { return 1; }
int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_NOINLINE 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then

      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_NOINLINE 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
             echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__noinline__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__malloc__) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  echo "$as_me:$LINENO: checking for __attribute__((__malloc__))" >&5
echo $ECHO_N "checking for __attribute__((__malloc__))... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"
#include <stdlib.h>
	     __attribute__((__malloc__)) void * dummy() { return malloc(14); }
int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_MALLOC 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then

      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_MALLOC 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
             echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__malloc__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__warn_unused_result__) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  echo "$as_me:$LINENO: checking for __attribute__((__warn_unused_result__))" >&5
echo $ECHO_N "checking for __attribute__((__warn_unused_result__))... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"
__attribute__((__warn_unused_result__)) void * dummy() { return 0; }
int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_WARNUNUSEDRESULT 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then

      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_WARNUNUSEDRESULT 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
             echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__warn_unused_result__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__noreturn__) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  echo "$as_me:$LINENO: checking for __attribute__((__noreturn__))" >&5
echo $ECHO_N "checking for __attribute__((__noreturn__))... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"
#include <stdlib.h>
	     __attribute__((__noreturn__)) void dummy() { abort(); }
int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_NORETURN 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then

      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_NORETURN 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
             echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__noreturn__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__const__) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  echo "$as_me:$LINENO: checking for __attribute__((__const__))" >&5
echo $ECHO_N "checking for __attribute__((__const__))... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"
__attribute__((__const__)) int dummy(int x) { return x+1; }
int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_CONST 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then

      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_CONST 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
             echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__const__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__pure__) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  echo "$as_me:$LINENO: checking for __attribute__((__pure__))" >&5
echo $ECHO_N "checking for __attribute__((__pure__))... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"
__attribute__((__pure__)) int dummy(int x) { return x+1; }
int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_PURE 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then

      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_PURE 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
             echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__pure__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__format__) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  echo "$as_me:$LINENO: checking for __attribute__((__format__))" >&5
echo $ECHO_N "checking for __attribute__((__format__))... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"
__attribute__((__format__ (__printf__, 1, 2))) void dummy(const char *fmt,...) { }
int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_FORMAT 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then

      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE_FORMAT 1
_ACEOF

      cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_GCC_ATTRIBUTE 1
_ACEOF


      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	         echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
             echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__format__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)








# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CPPFLAGS,"$CPPFLAGS -I$TOP_SRCDIR/other") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CPPFLAGS" = "" ; then
    _pushcnt_CPPFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CPPFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS=\$CPPFLAGS
  eval _pushedvarset_CPPFLAGS_$_pushcnt_CPPFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CPPFLAGS="$CPPFLAGS -I$TOP_SRCDIR/other"
  echo "pushed new CPPFLAGS value: $CPPFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CPPFLAGS,"$CPPFLAGS -I$TOP_SRCDIR/other") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_STR(PLATFORM_COMPILER_IDSTR,PLATFORM_COMPILER_IDSTR,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking PLATFORM_COMPILER_IDSTR" >&5
echo $ECHO_N "checking PLATFORM_COMPILER_IDSTR... $ECHO_C" >&6
if test "${gasnet_cv_PLATFORM_COMPILER_IDSTR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

gasnet_cv_PLATFORM_COMPILER_IDSTR=""





# vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"
 #include "portable_platform.h"

 #include <stdio.h>
 extern const char *s;
 const char *s = "$gasnetextractstr: (-(|"  PLATFORM_COMPILER_IDSTR  "|)-) $";

  int main() {
 printf("%s",s);
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
       (eval $ac_compile) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest.o ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO.o"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    mv conftest.o $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\0";} if (m/\$gasnetextractstr: \(-\(\|(.+?)\|\)-\) \$/) { print "$1";}'
   gasnet_cv_PLATFORM_COMPILER_IDSTR=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while compile extracting  PLATFORM_COMPILER_IDSTR " >&5
echo "$as_me: error: Failed while compile extracting  PLATFORM_COMPILER_IDSTR " >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



if test -z "$gasnet_cv_PLATFORM_COMPILER_IDSTR" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"
 #include "portable_platform.h"

 #include <stdio.h>
 extern const char *s;
 const char *s = "$gasnetextractstr: (-(|"  PLATFORM_COMPILER_IDSTR  "|)-) $";

  int main() {
 printf("%s",s);
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
       (eval $ac_link) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest$ac_exeext ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    mv conftest$ac_exeext $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\0";} if (m/\$gasnetextractstr: \(-\(\|(.+?)\|\)-\) \$/) { print "$1";}'
   gasnet_cv_PLATFORM_COMPILER_IDSTR=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while link extracting  PLATFORM_COMPILER_IDSTR " >&5
echo "$as_me: error: Failed while link extracting  PLATFORM_COMPILER_IDSTR " >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



fi



fi
echo "$as_me:$LINENO: result: $gasnet_cv_PLATFORM_COMPILER_IDSTR" >&5
echo "${ECHO_T}$gasnet_cv_PLATFORM_COMPILER_IDSTR" >&6
if test -n "$gasnet_cv_PLATFORM_COMPILER_IDSTR" ; then
  GASNETI_PLATFORM_COMPILER_IDSTR=$gasnet_cv_PLATFORM_COMPILER_IDSTR
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_STR(PLATFORM_COMPILER_IDSTR,PLATFORM_COMPILER_IDSTR,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



cat >>confdefs.h <<_ACEOF
#define GASNETI_PLATFORM_COMPILER_IDSTR $GASNETI_PLATFORM_COMPILER_IDSTR
_ACEOF





# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(PLATFORM_COMPILER_ID,PLATFORM_COMPILER_ID,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking PLATFORM_COMPILER_ID" >&5
echo $ECHO_N "checking PLATFORM_COMPILER_ID... $ECHO_C" >&6
if test "${gasnet_cv_PLATFORM_COMPILER_ID+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

gasnet_cv_PLATFORM_COMPILER_ID=""





# vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"
 #include "portable_platform.h"

 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( (( PLATFORM_COMPILER_ID )>0?( PLATFORM_COMPILER_ID ):-( PLATFORM_COMPILER_ID )) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             (( PLATFORM_COMPILER_ID )>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
       (eval $ac_compile) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest.o ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO.o"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    mv conftest.o $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_PLATFORM_COMPILER_ID=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while compile extracting  PLATFORM_COMPILER_ID " >&5
echo "$as_me: error: Failed while compile extracting  PLATFORM_COMPILER_ID " >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



if test -z "$gasnet_cv_PLATFORM_COMPILER_ID" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"
 #include "portable_platform.h"

 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( (( PLATFORM_COMPILER_ID )>0?( PLATFORM_COMPILER_ID ):-( PLATFORM_COMPILER_ID )) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             (( PLATFORM_COMPILER_ID )>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
       (eval $ac_link) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest$ac_exeext ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    mv conftest$ac_exeext $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_PLATFORM_COMPILER_ID=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while link extracting  PLATFORM_COMPILER_ID " >&5
echo "$as_me: error: Failed while link extracting  PLATFORM_COMPILER_ID " >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



fi



fi
echo "$as_me:$LINENO: result: $gasnet_cv_PLATFORM_COMPILER_ID" >&5
echo "${ECHO_T}$gasnet_cv_PLATFORM_COMPILER_ID" >&6
if test -n "$gasnet_cv_PLATFORM_COMPILER_ID" ; then
  GASNETI_PLATFORM_COMPILER_ID=$gasnet_cv_PLATFORM_COMPILER_ID
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(PLATFORM_COMPILER_ID,PLATFORM_COMPILER_ID,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



cat >>confdefs.h <<_ACEOF
#define GASNETI_PLATFORM_COMPILER_ID $GASNETI_PLATFORM_COMPILER_ID
_ACEOF





# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(PLATFORM_COMPILER_VERSION,PLATFORM_COMPILER_VERSION,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking PLATFORM_COMPILER_VERSION" >&5
echo $ECHO_N "checking PLATFORM_COMPILER_VERSION... $ECHO_C" >&6
if test "${gasnet_cv_PLATFORM_COMPILER_VERSION+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

gasnet_cv_PLATFORM_COMPILER_VERSION=""





# vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"
 #include "portable_platform.h"

 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( (( PLATFORM_COMPILER_VERSION )>0?( PLATFORM_COMPILER_VERSION ):-( PLATFORM_COMPILER_VERSION )) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             (( PLATFORM_COMPILER_VERSION )>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
       (eval $ac_compile) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest.o ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO.o"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    mv conftest.o $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_PLATFORM_COMPILER_VERSION=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while compile extracting  PLATFORM_COMPILER_VERSION " >&5
echo "$as_me: error: Failed while compile extracting  PLATFORM_COMPILER_VERSION " >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



if test -z "$gasnet_cv_PLATFORM_COMPILER_VERSION" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"
 #include "portable_platform.h"

 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( (( PLATFORM_COMPILER_VERSION )>0?( PLATFORM_COMPILER_VERSION ):-( PLATFORM_COMPILER_VERSION )) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             (( PLATFORM_COMPILER_VERSION )>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
       (eval $ac_link) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest$ac_exeext ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    mv conftest$ac_exeext $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_PLATFORM_COMPILER_VERSION=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while link extracting  PLATFORM_COMPILER_VERSION " >&5
echo "$as_me: error: Failed while link extracting  PLATFORM_COMPILER_VERSION " >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



fi



fi
echo "$as_me:$LINENO: result: $gasnet_cv_PLATFORM_COMPILER_VERSION" >&5
echo "${ECHO_T}$gasnet_cv_PLATFORM_COMPILER_VERSION" >&6
if test -n "$gasnet_cv_PLATFORM_COMPILER_VERSION" ; then
  GASNETI_PLATFORM_COMPILER_VERSION=$gasnet_cv_PLATFORM_COMPILER_VERSION
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(PLATFORM_COMPILER_VERSION,PLATFORM_COMPILER_VERSION,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



cat >>confdefs.h <<_ACEOF
#define GASNETI_PLATFORM_COMPILER_VERSION $GASNETI_PLATFORM_COMPILER_VERSION
_ACEOF




# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CPPFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CPPFLAGS" -ge "1"; then
    _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CPPFLAGS_$_pushcnt_CPPFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CPPFLAGS=\$_pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS
      echo "popping CPPFLAGS back to: $CPPFLAGS" >&5
    else
      unset CPPFLAGS
      echo "popping CPPFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CPPFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CPPFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CPPFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




########################################################################
# hunt for 16-, 32-, and 64-bit integer types




# vvvvvvvvvvvvvvvvvvvvvv GASNET_SETUP_INTTYPES(,) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_SIZEOF(char,) vvvvvvvvvvvvvvvvvvvvvv (L:2)






  if test "$cross_compiling" = "yes" ; then
    SIZEOF_CHAR=




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(char) (binary probe),SIZEOF_CHAR,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking sizeof(char) (binary probe)" >&5
echo $ECHO_N "checking sizeof(char) (binary probe)... $ECHO_C" >&6
if test "${gasnet_cv_SIZEOF_CHAR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

gasnet_cv_SIZEOF_CHAR=""





# vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(char))>0?(sizeof(char)):-(sizeof(char))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(char))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
       (eval $ac_compile) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest.o ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO.o"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



    mv conftest.o $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_CHAR=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while compile extracting sizeof(char)" >&5
echo "$as_me: error: Failed while compile extracting sizeof(char)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



if test -z "$gasnet_cv_SIZEOF_CHAR" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(char))>0?(sizeof(char)):-(sizeof(char))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(char))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
       (eval $ac_link) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest$ac_exeext ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



    mv conftest$ac_exeext $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_CHAR=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while link extracting sizeof(char)" >&5
echo "$as_me: error: Failed while link extracting sizeof(char)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



fi



fi
echo "$as_me:$LINENO: result: $gasnet_cv_SIZEOF_CHAR" >&5
echo "${ECHO_T}$gasnet_cv_SIZEOF_CHAR" >&6
if test -n "$gasnet_cv_SIZEOF_CHAR" ; then
  SIZEOF_CHAR=$gasnet_cv_SIZEOF_CHAR
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(char) (binary probe),SIZEOF_CHAR,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    if test -z "$SIZEOF_CHAR" ; then # last resort is to use CROSS var



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(SIZEOF_CHAR,SIZEOF_CHAR) vvvvvvvvvvvvvvvvvvvvvv (L:3)


  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_SIZEOF_CHAR,) vvvvvvvvvvvvvvvvvvvvvv (L:4)




  echo "$as_me:$LINENO: checking for CROSS_SIZEOF_CHAR in environment" >&5
echo $ECHO_N "checking for CROSS_SIZEOF_CHAR in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_CROSS_SIZEOF_CHAR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${CROSS_SIZEOF_CHAR-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_sizeof_char" != ""; then
	      gasnet_cv_envvar_CROSS_SIZEOF_CHAR="$with_cross_sizeof_char"
	      envval_src_CROSS_SIZEOF_CHAR=given
	    else
	      gasnet_cv_envvar_CROSS_SIZEOF_CHAR=""
	      envval_src_CROSS_SIZEOF_CHAR=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_CROSS_SIZEOF_CHAR="$CROSS_SIZEOF_CHAR"
	    envval_src_CROSS_SIZEOF_CHAR=given
      esac

fi


  CROSS_SIZEOF_CHAR="$gasnet_cv_envvar_CROSS_SIZEOF_CHAR"
  case "$envval_src_CROSS_SIZEOF_CHAR" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_CHAR\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_SIZEOF_CHAR\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_CHAR\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_SIZEOF_CHAR\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_CHAR\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_SIZEOF_CHAR\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_SIZEOF_CHAR,) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



    if test "$CROSS_SIZEOF_CHAR" = "" ; then
      { { echo "$as_me:$LINENO: error: This configure script requires \$CROSS_SIZEOF_CHAR be set for cross-compilation" >&5
echo "$as_me: error: This configure script requires \$CROSS_SIZEOF_CHAR be set for cross-compilation" >&2;}
   { (exit 1); exit 1; }; }
    else
      SIZEOF_CHAR="$CROSS_SIZEOF_CHAR"
    fi
  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CROSS_VAR(SIZEOF_CHAR,SIZEOF_CHAR) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    fi
    ac_cv_sizeof_char=$SIZEOF_CHAR
  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(ac_cv_sizeof_char,"$ac_cv_sizeof_char") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_ac_cv_sizeof_char" = "" ; then
    _pushcnt_ac_cv_sizeof_char=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_sizeof_char+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_sizeof_char_$_pushcnt_ac_cv_sizeof_char=\$ac_cv_sizeof_char
  eval _pushedvarset_ac_cv_sizeof_char_$_pushcnt_ac_cv_sizeof_char=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_sizeof_char=`expr $_pushcnt_ac_cv_sizeof_char + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_sizeof_char="$ac_cv_sizeof_char"
  echo "pushed new ac_cv_sizeof_char value: $ac_cv_sizeof_char" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(ac_cv_sizeof_char,"$ac_cv_sizeof_char") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  if test "$ac_cv_sizeof_char" = "" ; then
    unset ac_cv_sizeof_char
    unset ac_cv_type_char
  fi
  if test "" != "" ; then
    echo "$as_me:$LINENO: checking  size:" >&5
echo $ECHO_N "checking  size:... $ECHO_C" >&6
  fi
  echo "$as_me:$LINENO: checking for char" >&5
echo $ECHO_N "checking for char... $ECHO_C" >&6
if test "${ac_cv_type_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((char *) 0)
  return 0;
if (sizeof (char))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_char=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_char=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
echo "${ECHO_T}$ac_cv_type_char" >&6

echo "$as_me:$LINENO: checking size of char" >&5
echo $ECHO_N "checking size of char... $ECHO_C" >&6
if test "${ac_cv_sizeof_char+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_char" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_char=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (char)); }
unsigned long ulongval () { return (long) (sizeof (char)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (char))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (char))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (char))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_char=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_char=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR $ac_cv_sizeof_char
_ACEOF


  gasnet_checksizeoftmp_sizeof_char="$ac_cv_sizeof_char"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(ac_cv_sizeof_char) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_ac_cv_sizeof_char" -ge "1"; then
    _pushcnt_ac_cv_sizeof_char=`expr $_pushcnt_ac_cv_sizeof_char - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_ac_cv_sizeof_char_$_pushcnt_ac_cv_sizeof_char
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval ac_cv_sizeof_char=\$_pushedvar_ac_cv_sizeof_char_$_pushcnt_ac_cv_sizeof_char
      echo "popping ac_cv_sizeof_char back to: $ac_cv_sizeof_char" >&5
    else
      unset ac_cv_sizeof_char
      echo "popping ac_cv_sizeof_char back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_char" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_char" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(ac_cv_sizeof_char) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  ac_cv_sizeof_char=$gasnet_checksizeoftmp_sizeof_char
  SIZEOF_CHAR=$gasnet_checksizeoftmp_sizeof_char
  if test "$SIZEOF_CHAR" = "0" -o "$SIZEOF_CHAR" = "" -o "$ac_cv_sizeof_char" != "$SIZEOF_CHAR"; then
    { { echo "$as_me:$LINENO: error: failed to find sizeof(char)" >&5
echo "$as_me: error: failed to find sizeof(char)" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if test "" != ""; then
                    ac_cv_SIZEOF_CHAR_indirect=SIZEOF_CHAR
        cat >>confdefs.h <<_ACEOF
#define $ac_cv_SIZEOF_CHAR_indirect $SIZEOF_CHAR
_ACEOF

  fi







# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_SIZEOF(char,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_SIZEOF(short,) vvvvvvvvvvvvvvvvvvvvvv (L:2)






  if test "$cross_compiling" = "yes" ; then
    SIZEOF_SHORT=




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(short) (binary probe),SIZEOF_SHORT,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking sizeof(short) (binary probe)" >&5
echo $ECHO_N "checking sizeof(short) (binary probe)... $ECHO_C" >&6
if test "${gasnet_cv_SIZEOF_SHORT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

gasnet_cv_SIZEOF_SHORT=""





# vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(short))>0?(sizeof(short)):-(sizeof(short))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(short))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
       (eval $ac_compile) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest.o ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO.o"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



    mv conftest.o $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_SHORT=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while compile extracting sizeof(short)" >&5
echo "$as_me: error: Failed while compile extracting sizeof(short)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



if test -z "$gasnet_cv_SIZEOF_SHORT" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(short))>0?(sizeof(short)):-(sizeof(short))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(short))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
       (eval $ac_link) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest$ac_exeext ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



    mv conftest$ac_exeext $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_SHORT=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while link extracting sizeof(short)" >&5
echo "$as_me: error: Failed while link extracting sizeof(short)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



fi



fi
echo "$as_me:$LINENO: result: $gasnet_cv_SIZEOF_SHORT" >&5
echo "${ECHO_T}$gasnet_cv_SIZEOF_SHORT" >&6
if test -n "$gasnet_cv_SIZEOF_SHORT" ; then
  SIZEOF_SHORT=$gasnet_cv_SIZEOF_SHORT
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(short) (binary probe),SIZEOF_SHORT,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    if test -z "$SIZEOF_SHORT" ; then # last resort is to use CROSS var



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(SIZEOF_SHORT,SIZEOF_SHORT) vvvvvvvvvvvvvvvvvvvvvv (L:3)


  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_SIZEOF_SHORT,) vvvvvvvvvvvvvvvvvvvvvv (L:4)




  echo "$as_me:$LINENO: checking for CROSS_SIZEOF_SHORT in environment" >&5
echo $ECHO_N "checking for CROSS_SIZEOF_SHORT in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_CROSS_SIZEOF_SHORT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${CROSS_SIZEOF_SHORT-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_sizeof_short" != ""; then
	      gasnet_cv_envvar_CROSS_SIZEOF_SHORT="$with_cross_sizeof_short"
	      envval_src_CROSS_SIZEOF_SHORT=given
	    else
	      gasnet_cv_envvar_CROSS_SIZEOF_SHORT=""
	      envval_src_CROSS_SIZEOF_SHORT=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_CROSS_SIZEOF_SHORT="$CROSS_SIZEOF_SHORT"
	    envval_src_CROSS_SIZEOF_SHORT=given
      esac

fi


  CROSS_SIZEOF_SHORT="$gasnet_cv_envvar_CROSS_SIZEOF_SHORT"
  case "$envval_src_CROSS_SIZEOF_SHORT" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_SHORT\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_SIZEOF_SHORT\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_SHORT\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_SIZEOF_SHORT\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_SHORT\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_SIZEOF_SHORT\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_SIZEOF_SHORT,) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



    if test "$CROSS_SIZEOF_SHORT" = "" ; then
      { { echo "$as_me:$LINENO: error: This configure script requires \$CROSS_SIZEOF_SHORT be set for cross-compilation" >&5
echo "$as_me: error: This configure script requires \$CROSS_SIZEOF_SHORT be set for cross-compilation" >&2;}
   { (exit 1); exit 1; }; }
    else
      SIZEOF_SHORT="$CROSS_SIZEOF_SHORT"
    fi
  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CROSS_VAR(SIZEOF_SHORT,SIZEOF_SHORT) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    fi
    ac_cv_sizeof_short=$SIZEOF_SHORT
  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(ac_cv_sizeof_short,"$ac_cv_sizeof_short") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_ac_cv_sizeof_short" = "" ; then
    _pushcnt_ac_cv_sizeof_short=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_sizeof_short+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_sizeof_short_$_pushcnt_ac_cv_sizeof_short=\$ac_cv_sizeof_short
  eval _pushedvarset_ac_cv_sizeof_short_$_pushcnt_ac_cv_sizeof_short=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_sizeof_short=`expr $_pushcnt_ac_cv_sizeof_short + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_sizeof_short="$ac_cv_sizeof_short"
  echo "pushed new ac_cv_sizeof_short value: $ac_cv_sizeof_short" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(ac_cv_sizeof_short,"$ac_cv_sizeof_short") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  if test "$ac_cv_sizeof_short" = "" ; then
    unset ac_cv_sizeof_short
    unset ac_cv_type_short
  fi
  if test "" != "" ; then
    echo "$as_me:$LINENO: checking  size:" >&5
echo $ECHO_N "checking  size:... $ECHO_C" >&6
  fi
  echo "$as_me:$LINENO: checking for short" >&5
echo $ECHO_N "checking for short... $ECHO_C" >&6
if test "${ac_cv_type_short+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((short *) 0)
  return 0;
if (sizeof (short))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_short=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_short=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
echo "${ECHO_T}$ac_cv_type_short" >&6

echo "$as_me:$LINENO: checking size of short" >&5
echo $ECHO_N "checking size of short... $ECHO_C" >&6
if test "${ac_cv_sizeof_short+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_short" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_short=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (short)); }
unsigned long ulongval () { return (long) (sizeof (short)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (short))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (short))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (short))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_short=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_short=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


  gasnet_checksizeoftmp_sizeof_short="$ac_cv_sizeof_short"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(ac_cv_sizeof_short) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_ac_cv_sizeof_short" -ge "1"; then
    _pushcnt_ac_cv_sizeof_short=`expr $_pushcnt_ac_cv_sizeof_short - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_ac_cv_sizeof_short_$_pushcnt_ac_cv_sizeof_short
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval ac_cv_sizeof_short=\$_pushedvar_ac_cv_sizeof_short_$_pushcnt_ac_cv_sizeof_short
      echo "popping ac_cv_sizeof_short back to: $ac_cv_sizeof_short" >&5
    else
      unset ac_cv_sizeof_short
      echo "popping ac_cv_sizeof_short back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_short" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_short" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(ac_cv_sizeof_short) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  ac_cv_sizeof_short=$gasnet_checksizeoftmp_sizeof_short
  SIZEOF_SHORT=$gasnet_checksizeoftmp_sizeof_short
  if test "$SIZEOF_SHORT" = "0" -o "$SIZEOF_SHORT" = "" -o "$ac_cv_sizeof_short" != "$SIZEOF_SHORT"; then
    { { echo "$as_me:$LINENO: error: failed to find sizeof(short)" >&5
echo "$as_me: error: failed to find sizeof(short)" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if test "" != ""; then
                    ac_cv_SIZEOF_SHORT_indirect=SIZEOF_SHORT
        cat >>confdefs.h <<_ACEOF
#define $ac_cv_SIZEOF_SHORT_indirect $SIZEOF_SHORT
_ACEOF

  fi







# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_SIZEOF(short,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_SIZEOF(int,) vvvvvvvvvvvvvvvvvvvvvv (L:2)






  if test "$cross_compiling" = "yes" ; then
    SIZEOF_INT=




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(int) (binary probe),SIZEOF_INT,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking sizeof(int) (binary probe)" >&5
echo $ECHO_N "checking sizeof(int) (binary probe)... $ECHO_C" >&6
if test "${gasnet_cv_SIZEOF_INT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

gasnet_cv_SIZEOF_INT=""





# vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(int))>0?(sizeof(int)):-(sizeof(int))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(int))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
       (eval $ac_compile) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest.o ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO.o"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



    mv conftest.o $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_INT=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while compile extracting sizeof(int)" >&5
echo "$as_me: error: Failed while compile extracting sizeof(int)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



if test -z "$gasnet_cv_SIZEOF_INT" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(int))>0?(sizeof(int)):-(sizeof(int))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(int))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
       (eval $ac_link) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest$ac_exeext ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



    mv conftest$ac_exeext $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_INT=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while link extracting sizeof(int)" >&5
echo "$as_me: error: Failed while link extracting sizeof(int)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



fi



fi
echo "$as_me:$LINENO: result: $gasnet_cv_SIZEOF_INT" >&5
echo "${ECHO_T}$gasnet_cv_SIZEOF_INT" >&6
if test -n "$gasnet_cv_SIZEOF_INT" ; then
  SIZEOF_INT=$gasnet_cv_SIZEOF_INT
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(int) (binary probe),SIZEOF_INT,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    if test -z "$SIZEOF_INT" ; then # last resort is to use CROSS var



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(SIZEOF_INT,SIZEOF_INT) vvvvvvvvvvvvvvvvvvvvvv (L:3)


  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_SIZEOF_INT,) vvvvvvvvvvvvvvvvvvvvvv (L:4)




  echo "$as_me:$LINENO: checking for CROSS_SIZEOF_INT in environment" >&5
echo $ECHO_N "checking for CROSS_SIZEOF_INT in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_CROSS_SIZEOF_INT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${CROSS_SIZEOF_INT-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_sizeof_int" != ""; then
	      gasnet_cv_envvar_CROSS_SIZEOF_INT="$with_cross_sizeof_int"
	      envval_src_CROSS_SIZEOF_INT=given
	    else
	      gasnet_cv_envvar_CROSS_SIZEOF_INT=""
	      envval_src_CROSS_SIZEOF_INT=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_CROSS_SIZEOF_INT="$CROSS_SIZEOF_INT"
	    envval_src_CROSS_SIZEOF_INT=given
      esac

fi


  CROSS_SIZEOF_INT="$gasnet_cv_envvar_CROSS_SIZEOF_INT"
  case "$envval_src_CROSS_SIZEOF_INT" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_INT\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_SIZEOF_INT\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_INT\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_SIZEOF_INT\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_INT\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_SIZEOF_INT\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_SIZEOF_INT,) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



    if test "$CROSS_SIZEOF_INT" = "" ; then
      { { echo "$as_me:$LINENO: error: This configure script requires \$CROSS_SIZEOF_INT be set for cross-compilation" >&5
echo "$as_me: error: This configure script requires \$CROSS_SIZEOF_INT be set for cross-compilation" >&2;}
   { (exit 1); exit 1; }; }
    else
      SIZEOF_INT="$CROSS_SIZEOF_INT"
    fi
  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CROSS_VAR(SIZEOF_INT,SIZEOF_INT) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    fi
    ac_cv_sizeof_int=$SIZEOF_INT
  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(ac_cv_sizeof_int,"$ac_cv_sizeof_int") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_ac_cv_sizeof_int" = "" ; then
    _pushcnt_ac_cv_sizeof_int=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_sizeof_int+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_sizeof_int_$_pushcnt_ac_cv_sizeof_int=\$ac_cv_sizeof_int
  eval _pushedvarset_ac_cv_sizeof_int_$_pushcnt_ac_cv_sizeof_int=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_sizeof_int=`expr $_pushcnt_ac_cv_sizeof_int + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_sizeof_int="$ac_cv_sizeof_int"
  echo "pushed new ac_cv_sizeof_int value: $ac_cv_sizeof_int" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(ac_cv_sizeof_int,"$ac_cv_sizeof_int") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  if test "$ac_cv_sizeof_int" = "" ; then
    unset ac_cv_sizeof_int
    unset ac_cv_type_int
  fi
  if test "" != "" ; then
    echo "$as_me:$LINENO: checking  size:" >&5
echo $ECHO_N "checking  size:... $ECHO_C" >&6
  fi
  echo "$as_me:$LINENO: checking for int" >&5
echo $ECHO_N "checking for int... $ECHO_C" >&6
if test "${ac_cv_type_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((int *) 0)
  return 0;
if (sizeof (int))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_int=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_int=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
echo "${ECHO_T}$ac_cv_type_int" >&6

echo "$as_me:$LINENO: checking size of int" >&5
echo $ECHO_N "checking size of int... $ECHO_C" >&6
if test "${ac_cv_sizeof_int+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_int" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_int=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (int)); }
unsigned long ulongval () { return (long) (sizeof (int)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (int))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (int))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (int))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_int=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_int=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


  gasnet_checksizeoftmp_sizeof_int="$ac_cv_sizeof_int"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(ac_cv_sizeof_int) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_ac_cv_sizeof_int" -ge "1"; then
    _pushcnt_ac_cv_sizeof_int=`expr $_pushcnt_ac_cv_sizeof_int - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_ac_cv_sizeof_int_$_pushcnt_ac_cv_sizeof_int
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval ac_cv_sizeof_int=\$_pushedvar_ac_cv_sizeof_int_$_pushcnt_ac_cv_sizeof_int
      echo "popping ac_cv_sizeof_int back to: $ac_cv_sizeof_int" >&5
    else
      unset ac_cv_sizeof_int
      echo "popping ac_cv_sizeof_int back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_int" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_int" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(ac_cv_sizeof_int) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  ac_cv_sizeof_int=$gasnet_checksizeoftmp_sizeof_int
  SIZEOF_INT=$gasnet_checksizeoftmp_sizeof_int
  if test "$SIZEOF_INT" = "0" -o "$SIZEOF_INT" = "" -o "$ac_cv_sizeof_int" != "$SIZEOF_INT"; then
    { { echo "$as_me:$LINENO: error: failed to find sizeof(int)" >&5
echo "$as_me: error: failed to find sizeof(int)" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if test "" != ""; then
                    ac_cv_SIZEOF_INT_indirect=SIZEOF_INT
        cat >>confdefs.h <<_ACEOF
#define $ac_cv_SIZEOF_INT_indirect $SIZEOF_INT
_ACEOF

  fi







# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_SIZEOF(int,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_SIZEOF(long,) vvvvvvvvvvvvvvvvvvvvvv (L:2)






  if test "$cross_compiling" = "yes" ; then
    SIZEOF_LONG=




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(long) (binary probe),SIZEOF_LONG,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking sizeof(long) (binary probe)" >&5
echo $ECHO_N "checking sizeof(long) (binary probe)... $ECHO_C" >&6
if test "${gasnet_cv_SIZEOF_LONG+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

gasnet_cv_SIZEOF_LONG=""





# vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(long))>0?(sizeof(long)):-(sizeof(long))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(long))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
       (eval $ac_compile) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest.o ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO.o"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



    mv conftest.o $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_LONG=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while compile extracting sizeof(long)" >&5
echo "$as_me: error: Failed while compile extracting sizeof(long)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



if test -z "$gasnet_cv_SIZEOF_LONG" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(long))>0?(sizeof(long)):-(sizeof(long))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(long))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
       (eval $ac_link) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest$ac_exeext ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



    mv conftest$ac_exeext $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_LONG=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while link extracting sizeof(long)" >&5
echo "$as_me: error: Failed while link extracting sizeof(long)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



fi



fi
echo "$as_me:$LINENO: result: $gasnet_cv_SIZEOF_LONG" >&5
echo "${ECHO_T}$gasnet_cv_SIZEOF_LONG" >&6
if test -n "$gasnet_cv_SIZEOF_LONG" ; then
  SIZEOF_LONG=$gasnet_cv_SIZEOF_LONG
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(long) (binary probe),SIZEOF_LONG,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    if test -z "$SIZEOF_LONG" ; then # last resort is to use CROSS var



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(SIZEOF_LONG,SIZEOF_LONG) vvvvvvvvvvvvvvvvvvvvvv (L:3)


  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_SIZEOF_LONG,) vvvvvvvvvvvvvvvvvvvvvv (L:4)




  echo "$as_me:$LINENO: checking for CROSS_SIZEOF_LONG in environment" >&5
echo $ECHO_N "checking for CROSS_SIZEOF_LONG in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_CROSS_SIZEOF_LONG+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${CROSS_SIZEOF_LONG-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_sizeof_long" != ""; then
	      gasnet_cv_envvar_CROSS_SIZEOF_LONG="$with_cross_sizeof_long"
	      envval_src_CROSS_SIZEOF_LONG=given
	    else
	      gasnet_cv_envvar_CROSS_SIZEOF_LONG=""
	      envval_src_CROSS_SIZEOF_LONG=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_CROSS_SIZEOF_LONG="$CROSS_SIZEOF_LONG"
	    envval_src_CROSS_SIZEOF_LONG=given
      esac

fi


  CROSS_SIZEOF_LONG="$gasnet_cv_envvar_CROSS_SIZEOF_LONG"
  case "$envval_src_CROSS_SIZEOF_LONG" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_LONG\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_SIZEOF_LONG\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_LONG\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_SIZEOF_LONG\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_LONG\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_SIZEOF_LONG\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_SIZEOF_LONG,) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



    if test "$CROSS_SIZEOF_LONG" = "" ; then
      { { echo "$as_me:$LINENO: error: This configure script requires \$CROSS_SIZEOF_LONG be set for cross-compilation" >&5
echo "$as_me: error: This configure script requires \$CROSS_SIZEOF_LONG be set for cross-compilation" >&2;}
   { (exit 1); exit 1; }; }
    else
      SIZEOF_LONG="$CROSS_SIZEOF_LONG"
    fi
  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CROSS_VAR(SIZEOF_LONG,SIZEOF_LONG) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    fi
    ac_cv_sizeof_long=$SIZEOF_LONG
  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(ac_cv_sizeof_long,"$ac_cv_sizeof_long") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_ac_cv_sizeof_long" = "" ; then
    _pushcnt_ac_cv_sizeof_long=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_sizeof_long+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_sizeof_long_$_pushcnt_ac_cv_sizeof_long=\$ac_cv_sizeof_long
  eval _pushedvarset_ac_cv_sizeof_long_$_pushcnt_ac_cv_sizeof_long=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_sizeof_long=`expr $_pushcnt_ac_cv_sizeof_long + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_sizeof_long="$ac_cv_sizeof_long"
  echo "pushed new ac_cv_sizeof_long value: $ac_cv_sizeof_long" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(ac_cv_sizeof_long,"$ac_cv_sizeof_long") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  if test "$ac_cv_sizeof_long" = "" ; then
    unset ac_cv_sizeof_long
    unset ac_cv_type_long
  fi
  if test "" != "" ; then
    echo "$as_me:$LINENO: checking  size:" >&5
echo $ECHO_N "checking  size:... $ECHO_C" >&6
  fi
  echo "$as_me:$LINENO: checking for long" >&5
echo $ECHO_N "checking for long... $ECHO_C" >&6
if test "${ac_cv_type_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((long *) 0)
  return 0;
if (sizeof (long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_long=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
echo "${ECHO_T}$ac_cv_type_long" >&6

echo "$as_me:$LINENO: checking size of long" >&5
echo $ECHO_N "checking size of long... $ECHO_C" >&6
if test "${ac_cv_sizeof_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_long" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (long)); }
unsigned long ulongval () { return (long) (sizeof (long)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (long))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (long))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (long))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_long=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_long=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


  gasnet_checksizeoftmp_sizeof_long="$ac_cv_sizeof_long"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(ac_cv_sizeof_long) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_ac_cv_sizeof_long" -ge "1"; then
    _pushcnt_ac_cv_sizeof_long=`expr $_pushcnt_ac_cv_sizeof_long - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_ac_cv_sizeof_long_$_pushcnt_ac_cv_sizeof_long
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval ac_cv_sizeof_long=\$_pushedvar_ac_cv_sizeof_long_$_pushcnt_ac_cv_sizeof_long
      echo "popping ac_cv_sizeof_long back to: $ac_cv_sizeof_long" >&5
    else
      unset ac_cv_sizeof_long
      echo "popping ac_cv_sizeof_long back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_long" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_long" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(ac_cv_sizeof_long) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  ac_cv_sizeof_long=$gasnet_checksizeoftmp_sizeof_long
  SIZEOF_LONG=$gasnet_checksizeoftmp_sizeof_long
  if test "$SIZEOF_LONG" = "0" -o "$SIZEOF_LONG" = "" -o "$ac_cv_sizeof_long" != "$SIZEOF_LONG"; then
    { { echo "$as_me:$LINENO: error: failed to find sizeof(long)" >&5
echo "$as_me: error: failed to find sizeof(long)" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if test "" != ""; then
                    ac_cv_SIZEOF_LONG_indirect=SIZEOF_LONG
        cat >>confdefs.h <<_ACEOF
#define $ac_cv_SIZEOF_LONG_indirect $SIZEOF_LONG
_ACEOF

  fi







# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_SIZEOF(long,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_SIZEOF(long long,) vvvvvvvvvvvvvvvvvvvvvv (L:2)






  if test "$cross_compiling" = "yes" ; then
    SIZEOF_LONG_LONG=




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(long long) (binary probe),SIZEOF_LONG_LONG,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking sizeof(long long) (binary probe)" >&5
echo $ECHO_N "checking sizeof(long long) (binary probe)... $ECHO_C" >&6
if test "${gasnet_cv_SIZEOF_LONG_LONG+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

gasnet_cv_SIZEOF_LONG_LONG=""





# vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(long long))>0?(sizeof(long long)):-(sizeof(long long))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(long long))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
       (eval $ac_compile) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest.o ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO.o"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



    mv conftest.o $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_LONG_LONG=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while compile extracting sizeof(long long)" >&5
echo "$as_me: error: Failed while compile extracting sizeof(long long)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



if test -z "$gasnet_cv_SIZEOF_LONG_LONG" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(long long))>0?(sizeof(long long)):-(sizeof(long long))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(long long))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
       (eval $ac_link) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest$ac_exeext ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



    mv conftest$ac_exeext $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_LONG_LONG=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while link extracting sizeof(long long)" >&5
echo "$as_me: error: Failed while link extracting sizeof(long long)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



fi



fi
echo "$as_me:$LINENO: result: $gasnet_cv_SIZEOF_LONG_LONG" >&5
echo "${ECHO_T}$gasnet_cv_SIZEOF_LONG_LONG" >&6
if test -n "$gasnet_cv_SIZEOF_LONG_LONG" ; then
  SIZEOF_LONG_LONG=$gasnet_cv_SIZEOF_LONG_LONG
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(long long) (binary probe),SIZEOF_LONG_LONG,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    if test -z "$SIZEOF_LONG_LONG" ; then # last resort is to use CROSS var



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(SIZEOF_LONG_LONG,SIZEOF_LONG_LONG) vvvvvvvvvvvvvvvvvvvvvv (L:3)


  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_SIZEOF_LONG_LONG,) vvvvvvvvvvvvvvvvvvvvvv (L:4)




  echo "$as_me:$LINENO: checking for CROSS_SIZEOF_LONG_LONG in environment" >&5
echo $ECHO_N "checking for CROSS_SIZEOF_LONG_LONG in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_CROSS_SIZEOF_LONG_LONG+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${CROSS_SIZEOF_LONG_LONG-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_sizeof_long_long" != ""; then
	      gasnet_cv_envvar_CROSS_SIZEOF_LONG_LONG="$with_cross_sizeof_long_long"
	      envval_src_CROSS_SIZEOF_LONG_LONG=given
	    else
	      gasnet_cv_envvar_CROSS_SIZEOF_LONG_LONG=""
	      envval_src_CROSS_SIZEOF_LONG_LONG=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_CROSS_SIZEOF_LONG_LONG="$CROSS_SIZEOF_LONG_LONG"
	    envval_src_CROSS_SIZEOF_LONG_LONG=given
      esac

fi


  CROSS_SIZEOF_LONG_LONG="$gasnet_cv_envvar_CROSS_SIZEOF_LONG_LONG"
  case "$envval_src_CROSS_SIZEOF_LONG_LONG" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_LONG_LONG\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_SIZEOF_LONG_LONG\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_LONG_LONG\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_SIZEOF_LONG_LONG\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_LONG_LONG\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_SIZEOF_LONG_LONG\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_SIZEOF_LONG_LONG,) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



    if test "$CROSS_SIZEOF_LONG_LONG" = "" ; then
      { { echo "$as_me:$LINENO: error: This configure script requires \$CROSS_SIZEOF_LONG_LONG be set for cross-compilation" >&5
echo "$as_me: error: This configure script requires \$CROSS_SIZEOF_LONG_LONG be set for cross-compilation" >&2;}
   { (exit 1); exit 1; }; }
    else
      SIZEOF_LONG_LONG="$CROSS_SIZEOF_LONG_LONG"
    fi
  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CROSS_VAR(SIZEOF_LONG_LONG,SIZEOF_LONG_LONG) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    fi
    ac_cv_sizeof_long_long=$SIZEOF_LONG_LONG
  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(ac_cv_sizeof_long_long,"$ac_cv_sizeof_long_long") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_ac_cv_sizeof_long_long" = "" ; then
    _pushcnt_ac_cv_sizeof_long_long=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_sizeof_long_long+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_sizeof_long_long_$_pushcnt_ac_cv_sizeof_long_long=\$ac_cv_sizeof_long_long
  eval _pushedvarset_ac_cv_sizeof_long_long_$_pushcnt_ac_cv_sizeof_long_long=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_sizeof_long_long=`expr $_pushcnt_ac_cv_sizeof_long_long + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_sizeof_long_long="$ac_cv_sizeof_long_long"
  echo "pushed new ac_cv_sizeof_long_long value: $ac_cv_sizeof_long_long" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(ac_cv_sizeof_long_long,"$ac_cv_sizeof_long_long") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  if test "$ac_cv_sizeof_long_long" = "" ; then
    unset ac_cv_sizeof_long_long
    unset ac_cv_type_long_long
  fi
  if test "" != "" ; then
    echo "$as_me:$LINENO: checking  size:" >&5
echo $ECHO_N "checking  size:... $ECHO_C" >&6
  fi
  echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((long long *) 0)
  return 0;
if (sizeof (long long))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_long_long=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_long_long=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6

echo "$as_me:$LINENO: checking size of long long" >&5
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
if test "${ac_cv_sizeof_long_long+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_long_long" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (long long)); }
unsigned long ulongval () { return (long) (sizeof (long long)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (long long))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (long long))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (long long))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_long_long=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_long_long=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


  gasnet_checksizeoftmp_sizeof_long_long="$ac_cv_sizeof_long_long"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(ac_cv_sizeof_long_long) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_ac_cv_sizeof_long_long" -ge "1"; then
    _pushcnt_ac_cv_sizeof_long_long=`expr $_pushcnt_ac_cv_sizeof_long_long - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_ac_cv_sizeof_long_long_$_pushcnt_ac_cv_sizeof_long_long
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval ac_cv_sizeof_long_long=\$_pushedvar_ac_cv_sizeof_long_long_$_pushcnt_ac_cv_sizeof_long_long
      echo "popping ac_cv_sizeof_long_long back to: $ac_cv_sizeof_long_long" >&5
    else
      unset ac_cv_sizeof_long_long
      echo "popping ac_cv_sizeof_long_long back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_long_long" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_long_long" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(ac_cv_sizeof_long_long) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  ac_cv_sizeof_long_long=$gasnet_checksizeoftmp_sizeof_long_long
  SIZEOF_LONG_LONG=$gasnet_checksizeoftmp_sizeof_long_long
  if test "$SIZEOF_LONG_LONG" = "0" -o "$SIZEOF_LONG_LONG" = "" -o "$ac_cv_sizeof_long_long" != "$SIZEOF_LONG_LONG"; then
    { { echo "$as_me:$LINENO: error: failed to find sizeof(long long)" >&5
echo "$as_me: error: failed to find sizeof(long long)" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if test "" != ""; then
                    ac_cv_SIZEOF_LONG_LONG_indirect=SIZEOF_LONG_LONG
        cat >>confdefs.h <<_ACEOF
#define $ac_cv_SIZEOF_LONG_LONG_indirect $SIZEOF_LONG_LONG
_ACEOF

  fi







# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_SIZEOF(long long,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_SIZEOF(void *,) vvvvvvvvvvvvvvvvvvvvvv (L:2)






  if test "$cross_compiling" = "yes" ; then
    SIZEOF_VOID_P=




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(void *) (binary probe),SIZEOF_VOID_P,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking sizeof(void *) (binary probe)" >&5
echo $ECHO_N "checking sizeof(void *) (binary probe)... $ECHO_C" >&6
if test "${gasnet_cv_SIZEOF_VOID_P+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

gasnet_cv_SIZEOF_VOID_P=""





# vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(void *))>0?(sizeof(void *)):-(sizeof(void *))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(void *))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
       (eval $ac_compile) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest.o ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO.o"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.o") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



    mv conftest.o $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_VOID_P=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while compile extracting sizeof(void *)" >&5
echo "$as_me: error: Failed while compile extracting sizeof(void *)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



if test -z "$gasnet_cv_SIZEOF_VOID_P" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  cat >conftest.$ac_ext <<"EOF"
#include "confdefs.h"


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((sizeof(void *))>0?(sizeof(void *)):-(sizeof(void *))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(void *))>=0?' ':'-'),
             ' ',
	     DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4),
	     DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0),
             ' ','$','\0'};

  int main() {
 char *p = s; while (*p) printf("%c",*(p++));
  return 0; }
EOF
  if test ! -f conftest.$ac_ext ; then
     { { echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5
echo "$as_me: error: failed to write conftest.$ac_ext" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
       (eval $ac_link) 2>&5
       ac_status=$?
       echo "$as_me:$LINENO: \$? = $ac_status" >&5
       (exit $ac_status); } && \
       test -f conftest$ac_exeext ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:5)

    if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then
    _pushcnt_GASNET_EXAMINE_BIN=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${GASNET_EXAMINE_BIN+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN
  eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset
  _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext"
  echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



    mv conftest$ac_exeext $GASNET_EXAMINE_BIN

   _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}'
   gasnet_cv_SIZEOF_VOID_P=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN`

    rm -f $GASNET_EXAMINE_BIN



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then
    _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5
    else
      unset GASNET_EXAMINE_BIN
      echo "popping GASNET_EXAMINE_BIN back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  else
    echo Failed program: >&5
    cat conftest.$ac_ext >&5
    { { echo "$as_me:$LINENO: error: Failed while link extracting sizeof(void *)" >&5
echo "$as_me: error: Failed while link extracting sizeof(void *)" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



fi



fi
echo "$as_me:$LINENO: result: $gasnet_cv_SIZEOF_VOID_P" >&5
echo "${ECHO_T}$gasnet_cv_SIZEOF_VOID_P" >&6
if test -n "$gasnet_cv_SIZEOF_VOID_P" ; then
  SIZEOF_VOID_P=$gasnet_cv_SIZEOF_VOID_P
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(void *) (binary probe),SIZEOF_VOID_P,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    if test -z "$SIZEOF_VOID_P" ; then # last resort is to use CROSS var



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(SIZEOF_VOID_P,SIZEOF_VOID_P) vvvvvvvvvvvvvvvvvvvvvv (L:3)


  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_SIZEOF_VOID_P,) vvvvvvvvvvvvvvvvvvvvvv (L:4)




  echo "$as_me:$LINENO: checking for CROSS_SIZEOF_VOID_P in environment" >&5
echo $ECHO_N "checking for CROSS_SIZEOF_VOID_P in environment... $ECHO_C" >&6




  envval_src_CROSS_SIZEOF_VOID_P="cached"
  if test "${gasnet_cv_envvar_CROSS_SIZEOF_VOID_P+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${CROSS_SIZEOF_VOID_P-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_sizeof_void_p" != ""; then
	      gasnet_cv_envvar_CROSS_SIZEOF_VOID_P="$with_cross_sizeof_void_p"
	      envval_src_CROSS_SIZEOF_VOID_P=given
	    else
	      gasnet_cv_envvar_CROSS_SIZEOF_VOID_P=""
	      envval_src_CROSS_SIZEOF_VOID_P=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_CROSS_SIZEOF_VOID_P="$CROSS_SIZEOF_VOID_P"
	    envval_src_CROSS_SIZEOF_VOID_P=given
      esac

fi


  CROSS_SIZEOF_VOID_P="$gasnet_cv_envvar_CROSS_SIZEOF_VOID_P"
  case "$envval_src_CROSS_SIZEOF_VOID_P" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_VOID_P\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_SIZEOF_VOID_P\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_VOID_P\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_SIZEOF_VOID_P\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_VOID_P\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_SIZEOF_VOID_P\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_SIZEOF_VOID_P,) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



    if test "$CROSS_SIZEOF_VOID_P" = "" ; then
      { { echo "$as_me:$LINENO: error: This configure script requires \$CROSS_SIZEOF_VOID_P be set for cross-compilation" >&5
echo "$as_me: error: This configure script requires \$CROSS_SIZEOF_VOID_P be set for cross-compilation" >&2;}
   { (exit 1); exit 1; }; }
    else
      SIZEOF_VOID_P="$CROSS_SIZEOF_VOID_P"
    fi
  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CROSS_VAR(SIZEOF_VOID_P,SIZEOF_VOID_P) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    fi
    ac_cv_sizeof_void_p=$SIZEOF_VOID_P
  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(ac_cv_sizeof_void_p,"$ac_cv_sizeof_void_p") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_ac_cv_sizeof_void_p" = "" ; then
    _pushcnt_ac_cv_sizeof_void_p=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_sizeof_void_p+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_sizeof_void_p_$_pushcnt_ac_cv_sizeof_void_p=\$ac_cv_sizeof_void_p
  eval _pushedvarset_ac_cv_sizeof_void_p_$_pushcnt_ac_cv_sizeof_void_p=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_sizeof_void_p=`expr $_pushcnt_ac_cv_sizeof_void_p + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  echo "pushed new ac_cv_sizeof_void_p value: $ac_cv_sizeof_void_p" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(ac_cv_sizeof_void_p,"$ac_cv_sizeof_void_p") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  if test "$ac_cv_sizeof_void_p" = "" ; then
    unset ac_cv_sizeof_void_p
    unset ac_cv_type_void_p
  fi
  if test "" != "" ; then
    echo "$as_me:$LINENO: checking  size:" >&5
echo $ECHO_N "checking  size:... $ECHO_C" >&6
  fi
  echo "$as_me:$LINENO: checking for void *" >&5
echo $ECHO_N "checking for void *... $ECHO_C" >&6
if test "${ac_cv_type_void_p+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
if ((void * *) 0)
  return 0;
if (sizeof (void *))
  return 0;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_type_void_p=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_void_p=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
echo "${ECHO_T}$ac_cv_type_void_p" >&6

echo "$as_me:$LINENO: checking size of void *" >&5
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
if test "${ac_cv_sizeof_void_p+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_void_p" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=0 ac_mid=0
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr $ac_mid + 1`
                    if test $ac_lo -le $ac_mid; then
                      ac_lo= ac_hi=
                      break
                    fi
                    ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=-1 ac_mid=-1
  while :; do
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_lo=$ac_mid; break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_hi=`expr '(' $ac_mid ')' - 1`
                       if test $ac_mid -le $ac_hi; then
                         ac_lo= ac_hi=
                         break
                       fi
                       ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo= ac_hi=
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
test_array [0] = 0

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_hi=$ac_mid
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_void_p=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; } ;;
esac
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
long longval () { return (long) (sizeof (void *)); }
unsigned long ulongval () { return (long) (sizeof (void *)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (void *))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (void *))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (void *))))
	exit (1);
      fprintf (f, "%lu\n", i);
    }
  exit (ferror (f) || fclose (f) != 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_sizeof_void_p=`cat conftest.val`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
  ac_cv_sizeof_void_p=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
_ACEOF


  gasnet_checksizeoftmp_sizeof_void_p="$ac_cv_sizeof_void_p"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(ac_cv_sizeof_void_p) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_ac_cv_sizeof_void_p" -ge "1"; then
    _pushcnt_ac_cv_sizeof_void_p=`expr $_pushcnt_ac_cv_sizeof_void_p - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_ac_cv_sizeof_void_p_$_pushcnt_ac_cv_sizeof_void_p
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval ac_cv_sizeof_void_p=\$_pushedvar_ac_cv_sizeof_void_p_$_pushcnt_ac_cv_sizeof_void_p
      echo "popping ac_cv_sizeof_void_p back to: $ac_cv_sizeof_void_p" >&5
    else
      unset ac_cv_sizeof_void_p
      echo "popping ac_cv_sizeof_void_p back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_void_p" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_void_p" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(ac_cv_sizeof_void_p) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  ac_cv_sizeof_void_p=$gasnet_checksizeoftmp_sizeof_void_p
  SIZEOF_VOID_P=$gasnet_checksizeoftmp_sizeof_void_p
  if test "$SIZEOF_VOID_P" = "0" -o "$SIZEOF_VOID_P" = "" -o "$ac_cv_sizeof_void_p" != "$SIZEOF_VOID_P"; then
    { { echo "$as_me:$LINENO: error: failed to find sizeof(void *)" >&5
echo "$as_me: error: failed to find sizeof(void *)" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if test "" != ""; then
                    ac_cv_SIZEOF_VOID_P_indirect=SIZEOF_VOID_P
        cat >>confdefs.h <<_ACEOF
#define $ac_cv_SIZEOF_VOID_P_indirect $SIZEOF_VOID_P
_ACEOF

  fi







# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_SIZEOF(void *,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






  if test x"$ac_cv_sizeof_int$ac_cv_sizeof_long$ac_cv_sizeof_void_p" = x444; then
    PLATFORM_ILP32=yes
  fi
  if test x"$ac_cv_sizeof_int$ac_cv_sizeof_long$ac_cv_sizeof_void_p" = x488; then
    PLATFORM_LP64=yes
  fi
  if test x"$ac_cv_sizeof_int$ac_cv_sizeof_long$ac_cv_sizeof_void_p" = x888; then
    PLATFORM_ILP64=yes
  fi


if test "$PLATFORM_ILP32" = "yes"; then
  PLATFORM_ILP32_TRUE=
  PLATFORM_ILP32_FALSE='#'
else
  PLATFORM_ILP32_TRUE='#'
  PLATFORM_ILP32_FALSE=
fi



if test "$PLATFORM_LP64" = "yes"; then
  PLATFORM_LP64_TRUE=
  PLATFORM_LP64_FALSE='#'
else
  PLATFORM_LP64_TRUE='#'
  PLATFORM_LP64_FALSE=
fi



if test "$PLATFORM_ILP64" = "yes"; then
  PLATFORM_ILP64_TRUE=
  PLATFORM_ILP64_FALSE='#'
else
  PLATFORM_ILP64_TRUE='#'
  PLATFORM_ILP64_FALSE=
fi



if test "$PLATFORM_ILP32" = "yes"; then
  PLATFORM_ILP32_TRUE=
  PLATFORM_ILP32_FALSE='#'
else
  PLATFORM_ILP32_TRUE='#'
  PLATFORM_ILP32_FALSE=
fi



if test "$PLATFORM_LP64" = "yes"; then
  PLATFORM_LP64_TRUE=
  PLATFORM_LP64_FALSE='#'
else
  PLATFORM_LP64_TRUE='#'
  PLATFORM_LP64_FALSE=
fi



if test "$PLATFORM_ILP64" = "yes"; then
  PLATFORM_ILP64_TRUE=
  PLATFORM_ILP64_FALSE='#'
else
  PLATFORM_ILP64_TRUE='#'
  PLATFORM_ILP64_FALSE=
fi







# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_INTTYPES(stdint.h,) vvvvvvvvvvvvvvvvvvvvvv (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(HAVE_STDINT_H,"") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_HAVE_STDINT_H" = "" ; then
    _pushcnt_HAVE_STDINT_H=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${HAVE_STDINT_H+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_HAVE_STDINT_H_$_pushcnt_HAVE_STDINT_H=\$HAVE_STDINT_H
  eval _pushedvarset_HAVE_STDINT_H_$_pushcnt_HAVE_STDINT_H=$_gasnet_pushvar_isset
  _pushcnt_HAVE_STDINT_H=`expr $_pushcnt_HAVE_STDINT_H + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  HAVE_STDINT_H=""
  echo "pushed new HAVE_STDINT_H value: $HAVE_STDINT_H" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(HAVE_STDINT_H,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  unset ac_cv_header_stdint_h

for ac_header in stdint.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done




# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(HAVE_STDINT_H) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_HAVE_STDINT_H" -ge "1"; then
    _pushcnt_HAVE_STDINT_H=`expr $_pushcnt_HAVE_STDINT_H - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_HAVE_STDINT_H_$_pushcnt_HAVE_STDINT_H
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval HAVE_STDINT_H=\$_pushedvar_HAVE_STDINT_H_$_pushcnt_HAVE_STDINT_H
      echo "popping HAVE_STDINT_H back to: $HAVE_STDINT_H" >&5
    else
      unset HAVE_STDINT_H
      echo "popping HAVE_STDINT_H back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on HAVE_STDINT_H" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on HAVE_STDINT_H" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(HAVE_STDINT_H) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



 if test "$ac_cv_header_stdint_h" = "yes"; then
  HAVE_STDINT_H=1

  cat >>confdefs.h <<\_ACEOF
#define HAVE_STDINT_H 1
_ACEOF

  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for a complete stdint.h,[]COMPLETE_[]uppername,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking for a complete stdint.h" >&5
echo $ECHO_N "checking for a complete stdint.h... $ECHO_C" >&6
if test "${gasnet_cv_COMPLETE_STDINT_H+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


    #include <stdint.h>
    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;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_COMPLETE_STDINT_H=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_COMPLETE_STDINT_H=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_COMPLETE_STDINT_H" >&5
echo "${ECHO_T}$gasnet_cv_COMPLETE_STDINT_H" >&6
if test "$gasnet_cv_COMPLETE_STDINT_H" = yes; then
  :

      COMPLETE_STDINT_H=1

      cat >>confdefs.h <<\_ACEOF
#define COMPLETE_STDINT_H 1
_ACEOF


else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for a complete stdint.h,[]COMPLETE_[]uppername,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN(for a complete stdint.h,[]COMPLETE_[]uppername,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking for a complete stdint.h" >&5
echo $ECHO_N "checking for a complete stdint.h... $ECHO_C" >&6
if test "${gasnet_cv_COMPLETE_STDINT_H+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


    #include <stdint.h>
    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(); }

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_COMPLETE_STDINT_H=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv_COMPLETE_STDINT_H=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv_COMPLETE_STDINT_H" >&5
echo "${ECHO_T}$gasnet_cv_COMPLETE_STDINT_H" >&6
if test "$gasnet_cv_COMPLETE_STDINT_H" = yes; then
  :

      COMPLETE_STDINT_H=1

      cat >>confdefs.h <<\_ACEOF
#define COMPLETE_STDINT_H 1
_ACEOF


else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN(for a complete stdint.h,[]COMPLETE_[]uppername,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  fi
 fi



# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_INTTYPES(stdint.h,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_INTTYPES(inttypes.h,) vvvvvvvvvvvvvvvvvvvvvv (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(HAVE_INTTYPES_H,"") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_HAVE_INTTYPES_H" = "" ; then
    _pushcnt_HAVE_INTTYPES_H=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${HAVE_INTTYPES_H+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_HAVE_INTTYPES_H_$_pushcnt_HAVE_INTTYPES_H=\$HAVE_INTTYPES_H
  eval _pushedvarset_HAVE_INTTYPES_H_$_pushcnt_HAVE_INTTYPES_H=$_gasnet_pushvar_isset
  _pushcnt_HAVE_INTTYPES_H=`expr $_pushcnt_HAVE_INTTYPES_H + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  HAVE_INTTYPES_H=""
  echo "pushed new HAVE_INTTYPES_H value: $HAVE_INTTYPES_H" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(HAVE_INTTYPES_H,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  unset ac_cv_header_inttypes_h

for ac_header in inttypes.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done




# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(HAVE_INTTYPES_H) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_HAVE_INTTYPES_H" -ge "1"; then
    _pushcnt_HAVE_INTTYPES_H=`expr $_pushcnt_HAVE_INTTYPES_H - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_HAVE_INTTYPES_H_$_pushcnt_HAVE_INTTYPES_H
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval HAVE_INTTYPES_H=\$_pushedvar_HAVE_INTTYPES_H_$_pushcnt_HAVE_INTTYPES_H
      echo "popping HAVE_INTTYPES_H back to: $HAVE_INTTYPES_H" >&5
    else
      unset HAVE_INTTYPES_H
      echo "popping HAVE_INTTYPES_H back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on HAVE_INTTYPES_H" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on HAVE_INTTYPES_H" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(HAVE_INTTYPES_H) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



 if test "$ac_cv_header_inttypes_h" = "yes"; then
  HAVE_INTTYPES_H=1

  cat >>confdefs.h <<\_ACEOF
#define HAVE_INTTYPES_H 1
_ACEOF

  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for a complete inttypes.h,[]COMPLETE_[]uppername,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking for a complete inttypes.h" >&5
echo $ECHO_N "checking for a complete inttypes.h... $ECHO_C" >&6
if test "${gasnet_cv_COMPLETE_INTTYPES_H+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


    #include <inttypes.h>
    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;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_COMPLETE_INTTYPES_H=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_COMPLETE_INTTYPES_H=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_COMPLETE_INTTYPES_H" >&5
echo "${ECHO_T}$gasnet_cv_COMPLETE_INTTYPES_H" >&6
if test "$gasnet_cv_COMPLETE_INTTYPES_H" = yes; then
  :

      COMPLETE_INTTYPES_H=1

      cat >>confdefs.h <<\_ACEOF
#define COMPLETE_INTTYPES_H 1
_ACEOF


else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for a complete inttypes.h,[]COMPLETE_[]uppername,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN(for a complete inttypes.h,[]COMPLETE_[]uppername,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking for a complete inttypes.h" >&5
echo $ECHO_N "checking for a complete inttypes.h... $ECHO_C" >&6
if test "${gasnet_cv_COMPLETE_INTTYPES_H+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


    #include <inttypes.h>
    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(); }

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_COMPLETE_INTTYPES_H=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv_COMPLETE_INTTYPES_H=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv_COMPLETE_INTTYPES_H" >&5
echo "${ECHO_T}$gasnet_cv_COMPLETE_INTTYPES_H" >&6
if test "$gasnet_cv_COMPLETE_INTTYPES_H" = yes; then
  :

      COMPLETE_INTTYPES_H=1

      cat >>confdefs.h <<\_ACEOF
#define COMPLETE_INTTYPES_H 1
_ACEOF


else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN(for a complete inttypes.h,[]COMPLETE_[]uppername,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  fi
 fi



# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_INTTYPES(inttypes.h,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_INTTYPES(sys/types.h,) vvvvvvvvvvvvvvvvvvvvvv (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(HAVE_SYS_TYPES_H,"") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_HAVE_SYS_TYPES_H" = "" ; then
    _pushcnt_HAVE_SYS_TYPES_H=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${HAVE_SYS_TYPES_H+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_HAVE_SYS_TYPES_H_$_pushcnt_HAVE_SYS_TYPES_H=\$HAVE_SYS_TYPES_H
  eval _pushedvarset_HAVE_SYS_TYPES_H_$_pushcnt_HAVE_SYS_TYPES_H=$_gasnet_pushvar_isset
  _pushcnt_HAVE_SYS_TYPES_H=`expr $_pushcnt_HAVE_SYS_TYPES_H + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  HAVE_SYS_TYPES_H=""
  echo "pushed new HAVE_SYS_TYPES_H value: $HAVE_SYS_TYPES_H" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(HAVE_SYS_TYPES_H,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  unset ac_cv_header_sys_types_h

for ac_header in sys/types.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done




# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(HAVE_SYS_TYPES_H) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  if test "$_pushcnt_HAVE_SYS_TYPES_H" -ge "1"; then
    _pushcnt_HAVE_SYS_TYPES_H=`expr $_pushcnt_HAVE_SYS_TYPES_H - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_HAVE_SYS_TYPES_H_$_pushcnt_HAVE_SYS_TYPES_H
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval HAVE_SYS_TYPES_H=\$_pushedvar_HAVE_SYS_TYPES_H_$_pushcnt_HAVE_SYS_TYPES_H
      echo "popping HAVE_SYS_TYPES_H back to: $HAVE_SYS_TYPES_H" >&5
    else
      unset HAVE_SYS_TYPES_H
      echo "popping HAVE_SYS_TYPES_H back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on HAVE_SYS_TYPES_H" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on HAVE_SYS_TYPES_H" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(HAVE_SYS_TYPES_H) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



 if test "$ac_cv_header_sys_types_h" = "yes"; then
  HAVE_SYS_TYPES_H=1

  cat >>confdefs.h <<\_ACEOF
#define HAVE_SYS_TYPES_H 1
_ACEOF

  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for a complete sys/types.h,[]COMPLETE_[]uppername,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking for a complete sys/types.h" >&5
echo $ECHO_N "checking for a complete sys/types.h... $ECHO_C" >&6
if test "${gasnet_cv_COMPLETE_SYS_TYPES_H+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


    #include <sys/types.h>
    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;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_COMPLETE_SYS_TYPES_H=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_COMPLETE_SYS_TYPES_H=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_COMPLETE_SYS_TYPES_H" >&5
echo "${ECHO_T}$gasnet_cv_COMPLETE_SYS_TYPES_H" >&6
if test "$gasnet_cv_COMPLETE_SYS_TYPES_H" = yes; then
  :

      COMPLETE_SYS_TYPES_H=1

      cat >>confdefs.h <<\_ACEOF
#define COMPLETE_SYS_TYPES_H 1
_ACEOF


else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for a complete sys/types.h,[]COMPLETE_[]uppername,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN(for a complete sys/types.h,[]COMPLETE_[]uppername,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking for a complete sys/types.h" >&5
echo $ECHO_N "checking for a complete sys/types.h... $ECHO_C" >&6
if test "${gasnet_cv_COMPLETE_SYS_TYPES_H+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


    #include <sys/types.h>
    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(); }

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_COMPLETE_SYS_TYPES_H=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv_COMPLETE_SYS_TYPES_H=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv_COMPLETE_SYS_TYPES_H" >&5
echo "${ECHO_T}$gasnet_cv_COMPLETE_SYS_TYPES_H" >&6
if test "$gasnet_cv_COMPLETE_SYS_TYPES_H" = yes; then
  :

      COMPLETE_SYS_TYPES_H=1

      cat >>confdefs.h <<\_ACEOF
#define COMPLETE_SYS_TYPES_H 1
_ACEOF


else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN(for a complete sys/types.h,[]COMPLETE_[]uppername,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  fi
 fi



# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_INTTYPES(sys/types.h,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




  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"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_APPEND_DEFINE vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$HAVE_STDINT_H" != ""; then
    INTTYPES_DEFINES="$INTTYPES_DEFINES -DHAVE_STDINT_H"
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_APPEND_DEFINE ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_APPEND_DEFINE vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$COMPLETE_STDINT_H" != ""; then
    INTTYPES_DEFINES="$INTTYPES_DEFINES -DCOMPLETE_STDINT_H"
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_APPEND_DEFINE ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_APPEND_DEFINE vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$HAVE_INTTYPES_H" != ""; then
    INTTYPES_DEFINES="$INTTYPES_DEFINES -DHAVE_INTTYPES_H"
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_APPEND_DEFINE ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_APPEND_DEFINE vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$COMPLETE_INTTYPES_H" != ""; then
    INTTYPES_DEFINES="$INTTYPES_DEFINES -DCOMPLETE_INTTYPES_H"
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_APPEND_DEFINE ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_APPEND_DEFINE vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$HAVE_SYS_TYPES_H" != ""; then
    INTTYPES_DEFINES="$INTTYPES_DEFINES -DHAVE_SYS_TYPES_H"
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_APPEND_DEFINE ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_APPEND_DEFINE vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$COMPLETE_SYS_TYPES_H" != ""; then
    INTTYPES_DEFINES="$INTTYPES_DEFINES -DCOMPLETE_SYS_TYPES_H"
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_APPEND_DEFINE ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SETUP_INTTYPES(,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




########################################################################
##
##  Page size
##




# vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(GASNETI_PAGESIZE,PAGESIZE) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_PAGESIZE,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for CROSS_PAGESIZE in environment" >&5
echo $ECHO_N "checking for CROSS_PAGESIZE in environment... $ECHO_C" >&6



# Check whether --with-cross-pagesize or --without-cross-pagesize was given.
if test "${with_cross_pagesize+set}" = set; then
  withval="$with_cross_pagesize"

fi;



  envval_src_CROSS_PAGESIZE="cached"
  if test "${gasnet_cv_envvar_CROSS_PAGESIZE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${CROSS_PAGESIZE-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_pagesize" != ""; then
	      gasnet_cv_envvar_CROSS_PAGESIZE="$with_cross_pagesize"
	      envval_src_CROSS_PAGESIZE=given
	    else
	      gasnet_cv_envvar_CROSS_PAGESIZE=""
	      envval_src_CROSS_PAGESIZE=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_CROSS_PAGESIZE="$CROSS_PAGESIZE"
	    envval_src_CROSS_PAGESIZE=given
      esac

fi


  CROSS_PAGESIZE="$gasnet_cv_envvar_CROSS_PAGESIZE"
  case "$envval_src_CROSS_PAGESIZE" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_PAGESIZE\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_PAGESIZE\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_PAGESIZE\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_PAGESIZE\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_PAGESIZE\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_PAGESIZE\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_PAGESIZE,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



    if test "$CROSS_PAGESIZE" = "" ; then
      { { echo "$as_me:$LINENO: error: This configure script requires \$CROSS_PAGESIZE be set for cross-compilation" >&5
echo "$as_me: error: This configure script requires \$CROSS_PAGESIZE be set for cross-compilation" >&2;}
   { (exit 1); exit 1; }; }
    else
      GASNETI_PAGESIZE="$CROSS_PAGESIZE"
    fi
  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CROSS_VAR(GASNETI_PAGESIZE,PAGESIZE) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




if test "$GASNETI_PAGESIZE" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_EXPR(PAGESIZE,PAGESIZE,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking PAGESIZE" >&5
echo $ECHO_N "checking PAGESIZE... $ECHO_C" >&6
if test "${gasnet_cv_PAGESIZE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

  #include "confdefs.h"
  #include <stdio.h>
  #include <stdlib.h>
   #include <limits.h>
  int main() {
    FILE *f=fopen("conftestval", "w");
    int val = 0;
    if (!f) exit(1);
    {  val = PAGESIZE; if (val<=0) exit(1); ; }
    fprintf(f, "%d\n", (int)(val));
    return 0;
  }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_PAGESIZE=`cat conftestval`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv_PAGESIZE=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv_PAGESIZE" >&5
echo "${ECHO_T}$gasnet_cv_PAGESIZE" >&6
if test "$gasnet_cv_PAGESIZE" != no; then
  :
  GASNETI_PAGESIZE=$gasnet_cv_PAGESIZE
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_EXPR(PAGESIZE,PAGESIZE,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



fi

if test "$GASNETI_PAGESIZE" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_EXPR(PAGE_SIZE,PAGE_SIZE,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking PAGE_SIZE" >&5
echo $ECHO_N "checking PAGE_SIZE... $ECHO_C" >&6
if test "${gasnet_cv_PAGE_SIZE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

  #include "confdefs.h"
  #include <stdio.h>
  #include <stdlib.h>
   #include <limits.h>
  int main() {
    FILE *f=fopen("conftestval", "w");
    int val = 0;
    if (!f) exit(1);
    {  val = PAGE_SIZE; if (val<=0) exit(1); ; }
    fprintf(f, "%d\n", (int)(val));
    return 0;
  }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_PAGE_SIZE=`cat conftestval`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv_PAGE_SIZE=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv_PAGE_SIZE" >&5
echo "${ECHO_T}$gasnet_cv_PAGE_SIZE" >&6
if test "$gasnet_cv_PAGE_SIZE" != no; then
  :
  GASNETI_PAGESIZE=$gasnet_cv_PAGE_SIZE
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_EXPR(PAGE_SIZE,PAGE_SIZE,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



fi

if test "$GASNETI_PAGESIZE" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_EXPR(sysconf(_SC_PAGESIZE),_SC_PAGESIZE,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking sysconf(_SC_PAGESIZE)" >&5
echo $ECHO_N "checking sysconf(_SC_PAGESIZE)... $ECHO_C" >&6
if test "${gasnet_cv__SC_PAGESIZE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

  #include "confdefs.h"
  #include <stdio.h>
  #include <stdlib.h>
   #include <unistd.h>
  int main() {
    FILE *f=fopen("conftestval", "w");
    int val = 0;
    if (!f) exit(1);
    {  val = sysconf(_SC_PAGESIZE); if (val<=0) exit(1); ; }
    fprintf(f, "%d\n", (int)(val));
    return 0;
  }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv__SC_PAGESIZE=`cat conftestval`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv__SC_PAGESIZE=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv__SC_PAGESIZE" >&5
echo "${ECHO_T}$gasnet_cv__SC_PAGESIZE" >&6
if test "$gasnet_cv__SC_PAGESIZE" != no; then
  :
  GASNETI_PAGESIZE=$gasnet_cv__SC_PAGESIZE
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_EXPR(sysconf(_SC_PAGESIZE),_SC_PAGESIZE,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



fi

if test "$GASNETI_PAGESIZE" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_EXPR(sysconf(_SC_PAGE_SIZE),_SC_PAGE_SIZE,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking sysconf(_SC_PAGE_SIZE)" >&5
echo $ECHO_N "checking sysconf(_SC_PAGE_SIZE)... $ECHO_C" >&6
if test "${gasnet_cv__SC_PAGE_SIZE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

  #include "confdefs.h"
  #include <stdio.h>
  #include <stdlib.h>
   #include <unistd.h>
  int main() {
    FILE *f=fopen("conftestval", "w");
    int val = 0;
    if (!f) exit(1);
    {  val = sysconf(_SC_PAGE_SIZE); if (val<=0) exit(1); ; }
    fprintf(f, "%d\n", (int)(val));
    return 0;
  }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv__SC_PAGE_SIZE=`cat conftestval`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv__SC_PAGE_SIZE=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv__SC_PAGE_SIZE" >&5
echo "${ECHO_T}$gasnet_cv__SC_PAGE_SIZE" >&6
if test "$gasnet_cv__SC_PAGE_SIZE" != no; then
  :
  GASNETI_PAGESIZE=$gasnet_cv__SC_PAGE_SIZE
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_EXPR(sysconf(_SC_PAGE_SIZE),_SC_PAGE_SIZE,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



fi

if test "$GASNETI_PAGESIZE" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_EXPR(getpagesize(),getpagesize,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking getpagesize()" >&5
echo $ECHO_N "checking getpagesize()... $ECHO_C" >&6
if test "${gasnet_cv_getpagesize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

  #include "confdefs.h"
  #include <stdio.h>
  #include <stdlib.h>
   #include <unistd.h>
  int main() {
    FILE *f=fopen("conftestval", "w");
    int val = 0;
    if (!f) exit(1);
    {  val = getpagesize(); if (val<=0) exit(1); ; }
    fprintf(f, "%d\n", (int)(val));
    return 0;
  }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_getpagesize=`cat conftestval`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv_getpagesize=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv_getpagesize" >&5
echo "${ECHO_T}$gasnet_cv_getpagesize" >&6
if test "$gasnet_cv_getpagesize" != no; then
  :
  GASNETI_PAGESIZE=$gasnet_cv_getpagesize
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_EXPR(getpagesize(),getpagesize,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



fi

if test "$GASNETI_PAGESIZE" != ""; then
  cat >>confdefs.h <<_ACEOF
#define GASNETI_PAGESIZE $GASNETI_PAGESIZE
_ACEOF


  case "$GASNETI_PAGESIZE" in
    1024)     GASNETI_PAGESHIFT=10 ;;
    2048)     GASNETI_PAGESHIFT=11 ;;
    4096)     GASNETI_PAGESHIFT=12 ;;
    8192)     GASNETI_PAGESHIFT=13 ;;
    16384)    GASNETI_PAGESHIFT=14 ;;
    32768)    GASNETI_PAGESHIFT=15 ;;
    65536)    GASNETI_PAGESHIFT=16 ;;
    131072)   GASNETI_PAGESHIFT=17 ;;
    262144)   GASNETI_PAGESHIFT=18 ;;
    524288)   GASNETI_PAGESHIFT=19 ;;
    1048576)  GASNETI_PAGESHIFT=20 ;;
    2097152)  GASNETI_PAGESHIFT=21 ;;
    4194304)  GASNETI_PAGESHIFT=22 ;;
    8388608)  GASNETI_PAGESHIFT=23 ;;
    16777216) GASNETI_PAGESHIFT=24 ;;
    *) { { echo "$as_me:$LINENO: error: unknown GASNETI_PAGESIZE=$GASNETI_PAGESIZE" >&5
echo "$as_me: error: unknown GASNETI_PAGESIZE=$GASNETI_PAGESIZE" >&2;}
   { (exit 1); exit 1; }; } ;;
  esac
  cat >>confdefs.h <<_ACEOF
#define GASNETI_PAGESHIFT $GASNETI_PAGESHIFT
_ACEOF

fi

########################################################################
##
##  Cluster computing libraries
##

# -lm should only live in LIBM, and only if we have it (not in LIBS)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_LIBM vvvvvvvvvvvvvvvvvvvvvv (L:1)





# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$LIBS") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$LIBS"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$LIBS") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



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 "$as_me:$LINENO: checking for sin in -lm" >&5
echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
if test "${ac_cv_lib_m_sin+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 sin ();
int
main ()
{
sin ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_m_sin=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_m_sin=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
if test $ac_cv_lib_m_sin = yes; then
  LIBM="-lm"
else
  LIBM=""
fi

  ;;
esac




# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LIBM ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_LIB(ens,NameServer_Init,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LDFLAGS,"$LDFLAGS -L/usr/lib ${with_ens:+-L$with_ens}") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_LDFLAGS" = "" ; then
    _pushcnt_LDFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LDFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LDFLAGS_$_pushcnt_LDFLAGS=\$LDFLAGS
  eval _pushedvarset_LDFLAGS_$_pushcnt_LDFLAGS=$_gasnet_pushvar_isset
  _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LDFLAGS="$LDFLAGS -L/usr/lib ${with_ens:+-L$with_ens}"
  echo "pushed new LDFLAGS value: $LDFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LDFLAGS,"$LDFLAGS -L/usr/lib ${with_ens:+-L$with_ens}") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for NameServer_Init in -lens" >&5
echo $ECHO_N "checking for NameServer_Init in -lens... $ECHO_C" >&6
if test "${ac_cv_lib_ens_NameServer_Init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lens  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 NameServer_Init ();
int
main ()
{
NameServer_Init ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_ens_NameServer_Init=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_ens_NameServer_Init=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_ens_NameServer_Init" >&5
echo "${ECHO_T}$ac_cv_lib_ens_NameServer_Init" >&6
if test $ac_cv_lib_ens_NameServer_Init = yes; then
  have_libens=yes
fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LDFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_LDFLAGS" -ge "1"; then
    _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LDFLAGS_$_pushcnt_LDFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LDFLAGS=\$_pushedvar_LDFLAGS_$_pushcnt_LDFLAGS
      echo "popping LDFLAGS back to: $LDFLAGS" >&5
    else
      unset LDFLAGS
      echo "popping LDFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LDFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_LIB(ens,NameServer_Init,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



echo "$as_me:$LINENO: checking for Glib_Initialize in -lglunix" >&5
echo $ECHO_N "checking for Glib_Initialize in -lglunix... $ECHO_C" >&6
if test "${ac_cv_lib_glunix_Glib_Initialize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lglunix -lsocket $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 Glib_Initialize ();
int
main ()
{
Glib_Initialize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_glunix_Glib_Initialize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_glunix_Glib_Initialize=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_glunix_Glib_Initialize" >&5
echo "${ECHO_T}$ac_cv_lib_glunix_Glib_Initialize" >&6
if test $ac_cv_lib_glunix_Glib_Initialize = yes; then
  have_libglunix=yes
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_REXEC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $REXEC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_REXEC="$REXEC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="$with_rexec:$PATH"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_REXEC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
REXEC=$ac_cv_path_REXEC

if test -n "$REXEC"; then
  echo "$as_me:$LINENO: result: $REXEC" >&5
echo "${ECHO_T}$REXEC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi


echo "$as_me:$LINENO: checking for Millennium rexec" >&5
echo $ECHO_N "checking for Millennium rexec... $ECHO_C" >&6
# 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
  GASNET_REXEC_DEFINES="-DREXEC"
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  have_rexec=no
  GASNET_REXEC_DEFINES=""
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

#---------------------------------------------------------------------------------------------------------------
# Machine defs

GASNET_THREAD_DEFINES=""
GASNET_THREAD_LIBS=""
case "$target_os" in
  solaris*)
	GASNET_THREAD_DEFINES="-D_REENTRANT"
        # on some systems static linking fails with -lpthread,
        # but need it or pthread_create will fail at runtime
        GASNET_THREAD_LIBS="-lpthread"
        ;;
  linux*)
	# Check for SGI Altix, using a device heuristic.  SGI has assured us
	# that /dev/hw is specific (and standard) on their system
	# DOB: as of 2.6.5-7.252-sn2 (possibly earlier) /dev/hw/cpunum no longer exists
	# so now we use /dev/xpmem instead, which is not likely to disappear
	if test -d "/dev/hw/cpunum" -o -c "/dev/xpmem"; then
	  cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_ALTIX 1
_ACEOF

	fi
        case "$target" in
          *-catamount-*)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__LIBCATAMOUNT__,...,) vvvvvvvvvvvvvvvvvvvvvv (L:1)

if test -z "" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __LIBCATAMOUNT__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


	      { { echo "$as_me:$LINENO: error: Compiling for a catamount target, but __LIBCATAMOUNT__ is not predefined! Are you using the right compiler? (perhaps try mpicc)" >&5
echo "$as_me: error: Compiling for a catamount target, but __LIBCATAMOUNT__ is not predefined! Are you using the right compiler? (perhaps try mpicc)" >&2;}
   { (exit 1); exit 1; }; }

fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __LIBCATAMOUNT__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


	      { { echo "$as_me:$LINENO: error: Compiling for a catamount target, but __LIBCATAMOUNT__ is not predefined! Are you using the right compiler? (perhaps try mpicc)" >&5
echo "$as_me: error: Compiling for a catamount target, but __LIBCATAMOUNT__ is not predefined! Are you using the right compiler? (perhaps try mpicc)" >&2;}
   { (exit 1); exit 1; }; }

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__LIBCATAMOUNT__,...,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



          ;;
        esac
        # Defining _GNU_SOURCE gives us accesss to the "adaptive"
        # implementation of pthread_mutex_t, which is faster then
        # the default implementation for our purposes.
	GASNET_THREAD_DEFINES="-D_REENTRANT -D_GNU_SOURCE"
        GASNET_THREAD_LIBS="-lpthread"
	;;
  freebsd*)
	GASNET_THREAD_DEFINES="-D_REENTRANT"
        GASNET_THREAD_LIBS="-pthread" # bug 1205: do not explicitly select threading lib
	;;
  netbsd*)
	GASNET_THREAD_DEFINES="-D_REENTRANT"
        GASNET_THREAD_LIBS="-pthread" # bug 1205: do not explicitly select threading lib
	;;
  cygwin*)
	GASNET_THREAD_DEFINES="-D_REENTRANT"
        GASNET_THREAD_LIBS=""
	;;
  darwin*)
	GASNET_THREAD_DEFINES="-D_REENTRANT"
        GASNET_THREAD_LIBS=""
	;;
  irix*)
	GASNET_THREAD_DEFINES="-D_REENTRANT"
	GASNET_THREAD_LIBS="-lpthread"
        ;;
  aix*)
        GASNET_THREAD_DEFINES="-D_REENTRANT -D_THREAD_SAFE"
        GASNET_THREAD_LIBS="-lpthread"
	;;
  osf*)
        # -D_PTHREAD_NOMETER_STATIC fixes failures when initially trylocking a statically-init mutex
        GASNET_THREAD_DEFINES="-D_REENTRANT -D_THREAD_SAFE -D_PTHREAD_NOMETER_STATIC"
        GASNET_THREAD_LIBS="-pthread -lpthreads"
	;;
  hpux*)
        GASNET_THREAD_DEFINES="-D_REENTRANT"
        GASNET_THREAD_LIBS="-lpthread"
	;;
  mtx*)
	GASNET_THREAD_DEFINES=""
        GASNET_THREAD_LIBS="-lpthread"
        ;;
  superux*)
        GASNET_THREAD_DEFINES="-D_REENTRANT"
        GASNET_THREAD_LIBS="-lpthread"
	;;
  unicos*)
        GASNET_THREAD_LIBS="-lpthread"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for Cray T3E,cc_is_t3e,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for Cray T3E" >&5
echo $ECHO_N "checking for Cray T3E... $ECHO_C" >&6
if test "${gasnet_cv_cc_is_t3e+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

	    #ifndef _CRAYT3E
	      #error not Cray T3E
	    #endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_is_t3e=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_is_t3e=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_is_t3e" >&5
echo "${ECHO_T}$gasnet_cv_cc_is_t3e" >&6
if test "$gasnet_cv_cc_is_t3e" = yes; then
  :

            GASNET_THREAD_DEFINES="-D_REENTRANT"
	    use_pthreads=no  # pthreads are horribly broken on the T3E

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for Cray T3E,cc_is_t3e,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for Cray X1,cc_is_x1,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for Cray X1" >&5
echo $ECHO_N "checking for Cray X1... $ECHO_C" >&6
if test "${gasnet_cv_cc_is_x1+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

            #ifndef __crayx1
              #error not Cray X1
            #endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_is_x1=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_is_x1=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_is_x1" >&5
echo "${ECHO_T}$gasnet_cv_cc_is_x1" >&6
if test "$gasnet_cv_cc_is_x1" = yes; then
  :

            GASNET_THREAD_DEFINES="-D_REENTRANT -hthreadsafe"

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for Cray X1,cc_is_x1,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        ;;
  *)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: unknown OS - you may need to update the configure script" >&5
echo "$as_me: WARNING: unknown OS - you may need to update the configure script" >&2;}
  echo "unknown OS - you may need to update the configure script" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




        ;;
esac






# Find the appropriate OS suffix for executables
case "$target_os" in
  cygwin*)    EXESUFFIX='.exe' ;;
  *)          EXESUFFIX='' ;;
esac


########################################################################
##
##  Multithreading Libraries
##


## POSIX threads
#
have_pthread=no
if test "$use_pthreads" != "no"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_OVERRIDE_PTHREADS vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(PTHREADS_INCLUDE,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for PTHREADS_INCLUDE in environment" >&5
echo $ECHO_N "checking for PTHREADS_INCLUDE in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_PTHREADS_INCLUDE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${PTHREADS_INCLUDE-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_pthreads_include" != ""; then
	      gasnet_cv_envvar_PTHREADS_INCLUDE="$with_pthreads_include"
	      envval_src_PTHREADS_INCLUDE=given
	    else
	      gasnet_cv_envvar_PTHREADS_INCLUDE=""
	      envval_src_PTHREADS_INCLUDE=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_PTHREADS_INCLUDE="$PTHREADS_INCLUDE"
	    envval_src_PTHREADS_INCLUDE=given
      esac

fi


  PTHREADS_INCLUDE="$gasnet_cv_envvar_PTHREADS_INCLUDE"
  case "$envval_src_PTHREADS_INCLUDE" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$PTHREADS_INCLUDE\"" >&5
echo "${ECHO_T}using cached value \"$PTHREADS_INCLUDE\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$PTHREADS_INCLUDE\"" >&5
echo "${ECHO_T}no, defaulting to \"$PTHREADS_INCLUDE\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$PTHREADS_INCLUDE\"" >&5
echo "${ECHO_T}yes, using \"$PTHREADS_INCLUDE\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(PTHREADS_INCLUDE,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(PTHREADS_LIB,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for PTHREADS_LIB in environment" >&5
echo $ECHO_N "checking for PTHREADS_LIB in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_PTHREADS_LIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${PTHREADS_LIB-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_pthreads_lib" != ""; then
	      gasnet_cv_envvar_PTHREADS_LIB="$with_pthreads_lib"
	      envval_src_PTHREADS_LIB=given
	    else
	      gasnet_cv_envvar_PTHREADS_LIB=""
	      envval_src_PTHREADS_LIB=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_PTHREADS_LIB="$PTHREADS_LIB"
	    envval_src_PTHREADS_LIB=given
      esac

fi


  PTHREADS_LIB="$gasnet_cv_envvar_PTHREADS_LIB"
  case "$envval_src_PTHREADS_LIB" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$PTHREADS_LIB\"" >&5
echo "${ECHO_T}using cached value \"$PTHREADS_LIB\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$PTHREADS_LIB\"" >&5
echo "${ECHO_T}no, defaulting to \"$PTHREADS_LIB\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$PTHREADS_LIB\"" >&5
echo "${ECHO_T}yes, using \"$PTHREADS_LIB\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(PTHREADS_LIB,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  if test -n "$PTHREADS_INCLUDE" || test -n "$PTHREADS_LIB"; then
    if test -z "$PTHREADS_INCLUDE" || test -z "$PTHREADS_LIB"; then
        { { echo "$as_me:$LINENO: error: 'Both \$PTHREADS_INCLUDE and \$PTHREADS_LIB must be set, or neither'" >&5
echo "$as_me: error: 'Both \$PTHREADS_INCLUDE and \$PTHREADS_LIB must be set, or neither'" >&2;}
   { (exit 1); exit 1; }; }
    fi
    # test to see if files exist
    if test ! -f "$PTHREADS_INCLUDE/pthread.h"; then
        { { echo "$as_me:$LINENO: error: \"Could not find $PTHREADS_INCLUDE/pthread.h: bad \$PTHREADS_INCLUDE\"" >&5
echo "$as_me: error: \"Could not find $PTHREADS_INCLUDE/pthread.h: bad \$PTHREADS_INCLUDE\"" >&2;}
   { (exit 1); exit 1; }; }
    fi
    if test ! -f "$PTHREADS_LIB/libpthread.a" || test ! -f "$PTHREADS_LIB/libpthread.so" ; then
        { { echo "$as_me:$LINENO: error: \"Could not find $PTHREADS_LIB/libpthread.{a,so}: bad \$PTHREADS_LIB\"" >&5
echo "$as_me: error: \"Could not find $PTHREADS_LIB/libpthread.{a,so}: bad \$PTHREADS_LIB\"" >&2;}
   { (exit 1); exit 1; }; }
    fi
    CFLAGS="-I$PTHREADS_INCLUDE -L$PTHREADS_LIB $CFLAGS"
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_OVERRIDE_PTHREADS ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  echo "$as_me:$LINENO: checking for working pthreads support" >&5
echo $ECHO_N "checking for working pthreads support... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $GASNET_THREAD_DEFINES") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $GASNET_THREAD_DEFINES"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $GASNET_THREAD_DEFINES") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$LIBS $GASNET_THREAD_LIBS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$LIBS $GASNET_THREAD_LIBS"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$LIBS $GASNET_THREAD_LIBS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
 #include <pthread.h>
int
main ()
{
 pthread_create(0,0,0,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  have_pthread=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  echo "$as_me:$LINENO: result: $have_pthread" >&5
echo "${ECHO_T}$have_pthread" >&6
else
  pthread_reason="was disabled"
fi
if test "$use_pthreads$have_pthread" = "yesno" ; then
  { { echo "$as_me:$LINENO: error: --enable-pthreads passed but no working pthreads support found" >&5
echo "$as_me: error: --enable-pthreads passed but no working pthreads support found" >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$use_pthreads$have_pthread" = "tryno" ; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: No working pthreads support found - disabling pthreads support" >&5
echo "$as_me: WARNING: No working pthreads support found - disabling pthreads support" >&2;}
  echo "No working pthreads support found - disabling pthreads support" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  pthread_reason="appear to be missing or broken"
fi

GASNETI_CACHE_LINE_BYTES=""
if test "$have_pthread" = no ; then
  GASNET_THREAD_DEFINES=""
  GASNET_THREAD_LIBS=""
else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CPPFLAGS,"$CPPFLAGS $GASNET_THREAD_DEFINES -I$TOP_SRCDIR/other") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CPPFLAGS" = "" ; then
    _pushcnt_CPPFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CPPFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS=\$CPPFLAGS
  eval _pushedvarset_CPPFLAGS_$_pushcnt_CPPFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CPPFLAGS="$CPPFLAGS $GASNET_THREAD_DEFINES -I$TOP_SRCDIR/other"
  echo "pushed new CPPFLAGS value: $CPPFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CPPFLAGS,"$CPPFLAGS $GASNET_THREAD_DEFINES -I$TOP_SRCDIR/other") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$GASNET_THREAD_LIBS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$GASNET_THREAD_LIBS"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$GASNET_THREAD_LIBS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  # define HAVE_PTHREAD_H

for ac_header in pthread.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


  # look for optional pthreads entry points and features
  echo "$as_me:$LINENO: checking for library containing pthread_setconcurrency" >&5
echo $ECHO_N "checking for library containing pthread_setconcurrency... $ECHO_C" >&6
if test "${ac_cv_search_pthread_setconcurrency+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_pthread_setconcurrency=no
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 pthread_setconcurrency ();
int
main ()
{
pthread_setconcurrency ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_pthread_setconcurrency="none required"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_pthread_setconcurrency" = no; then
  for ac_lib in pthread pthreads c_r; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 pthread_setconcurrency ();
int
main ()
{
pthread_setconcurrency ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_pthread_setconcurrency="-l$ac_lib"
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_pthread_setconcurrency" >&5
echo "${ECHO_T}$ac_cv_search_pthread_setconcurrency" >&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 <<\_ACEOF
#define HAVE_PTHREAD_SETCONCURRENCY 1
_ACEOF

fi

  echo "$as_me:$LINENO: checking for library containing pthread_kill_other_threads_np" >&5
echo $ECHO_N "checking for library containing pthread_kill_other_threads_np... $ECHO_C" >&6
if test "${ac_cv_search_pthread_kill_other_threads_np+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_pthread_kill_other_threads_np=no
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 pthread_kill_other_threads_np ();
int
main ()
{
pthread_kill_other_threads_np ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_pthread_kill_other_threads_np="none required"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_pthread_kill_other_threads_np" = no; then
  for ac_lib in pthread pthreads; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 pthread_kill_other_threads_np ();
int
main ()
{
pthread_kill_other_threads_np ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_pthread_kill_other_threads_np="-l$ac_lib"
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_pthread_kill_other_threads_np" >&5
echo "${ECHO_T}$ac_cv_search_pthread_kill_other_threads_np" >&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 <<\_ACEOF
#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
_ACEOF

fi





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(tls,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-tls or --disable-tls was given.
if test "${enable_tls+set}" = set; then
  enableval="$enable_tls"

fi;
# Check whether --enable-tls or --disable-tls was given.
if test "${enable_tls+set}" = set; then
  enableval="$enable_tls"

fi;
case "$enable_tls" in
  no)  enabled_tls=no ;;
  yes) enabled_tls=yes ;;
  *)   enabled_tls=probe ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(tls,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  if test "$enabled_tls" != "no" ; then
    case "$gasnet_cv_cc_family-$target_cpu" in
      Sun-i*86) have_tls=no ;; # __thread causes sunC 5.7 for x86 to crash on libgasnet-par
      *)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_TLS_SUPPORT vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_WITHCC(whether the GCC __thread extension is supported.,tls_supported,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_LINK(whether the GCC __thread extension is supported.,tls_supported,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking whether the GCC __thread extension is supported." >&5
echo $ECHO_N "checking whether the GCC __thread extension is supported.... $ECHO_C" >&6
if test "${gasnet_cv_tls_supported+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <pthread.h>

#define NTHREADS 5
pthread_t p[NTHREADS];
pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
extern __thread long tlocal;
void foo() { tlocal = 4; } /* extern + use + definition crashes gcc-3.3/ia64 */
__thread long tlocal = 0;

/* trigger a bug on gcc-3.4/solaris/SPARC - misalignment during compilation with -g leads to
   a link error: relocation error: R_SPARC_TLS_DTPOFF32 .. symbol misc2: offset 0xff351dd1 is non-aligned
*/
__thread int  misc  = 0;
__thread long misc2 = 0;

void * thread_start (void *arg) {
  int id = *((int *)arg);
  int *return_val = malloc(sizeof(int));
  if (pthread_mutex_lock (&lock)) { exit (2); }
  /* if the value is truly thread-local, this assignment
     will yield the value 1, for each thread. If tlocal
     is instead a process global static value then tlocal
     will be incremented by each thread, and its final
     value will be the number of threads. */
  tlocal += 1;
  if (pthread_mutex_unlock (&lock)) { exit (2); }
  *return_val = tlocal;
  /* detect an Intel 9.0/9.1 bug on x86/Linux (n2001) */
  if (misc != 0 || misc2 != 0) *return_val = -1;
  return return_val;
}

int
main ()
{

  int i;
  for (i = 0; i < NTHREADS; ++i) {
      int *id = (int *)malloc(sizeof(int));
      *id = i;
      if (pthread_create(&p[i], NULL, thread_start, id)) { exit (2); }
  }
  for (i = 0; i < NTHREADS; ++i) {
      int *rc;
      if (pthread_join (p[i], (void **)&rc)) { exit (2); }
      if (*rc != 1) { exit (1); }
  }
  return 0;

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_tls_supported=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_tls_supported=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_tls_supported" >&5
echo "${ECHO_T}$gasnet_cv_tls_supported" >&6
if test "$gasnet_cv_tls_supported" = yes; then
  :

    	cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_TLS_SUPPORT 1
_ACEOF

	have_tls=yes

else
  :
   have_tls=no
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(whether the GCC __thread extension is supported.,tls_supported,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN(whether the GCC __thread extension is supported.,tls_supported,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

echo "$as_me:$LINENO: checking whether the GCC __thread extension is supported." >&5
echo $ECHO_N "checking whether the GCC __thread extension is supported.... $ECHO_C" >&6
if test "${gasnet_cv_tls_supported+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <pthread.h>

#define NTHREADS 5
pthread_t p[NTHREADS];
pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
extern __thread long tlocal;
void foo() { tlocal = 4; } /* extern + use + definition crashes gcc-3.3/ia64 */
__thread long tlocal = 0;

/* trigger a bug on gcc-3.4/solaris/SPARC - misalignment during compilation with -g leads to
   a link error: relocation error: R_SPARC_TLS_DTPOFF32 .. symbol misc2: offset 0xff351dd1 is non-aligned
*/
__thread int  misc  = 0;
__thread long misc2 = 0;

void * thread_start (void *arg) {
  int id = *((int *)arg);
  int *return_val = malloc(sizeof(int));
  if (pthread_mutex_lock (&lock)) { exit (2); }
  /* if the value is truly thread-local, this assignment
     will yield the value 1, for each thread. If tlocal
     is instead a process global static value then tlocal
     will be incremented by each thread, and its final
     value will be the number of threads. */
  tlocal += 1;
  if (pthread_mutex_unlock (&lock)) { exit (2); }
  *return_val = tlocal;
  /* detect an Intel 9.0/9.1 bug on x86/Linux (n2001) */
  if (misc != 0 || misc2 != 0) *return_val = -1;
  return return_val;
}

      int main() {

  int i;
  for (i = 0; i < NTHREADS; ++i) {
      int *id = (int *)malloc(sizeof(int));
      *id = i;
      if (pthread_create(&p[i], NULL, thread_start, id)) { exit (2); }
  }
  for (i = 0; i < NTHREADS; ++i) {
      int *rc;
      if (pthread_join (p[i], (void **)&rc)) { exit (2); }
      if (*rc != 1) { exit (1); }
  }
  return 0;

	return 0;
      }

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_tls_supported=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv_tls_supported=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv_tls_supported" >&5
echo "${ECHO_T}$gasnet_cv_tls_supported" >&6
if test "$gasnet_cv_tls_supported" = yes; then
  :

    	cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_TLS_SUPPORT 1
_ACEOF

	have_tls=yes

else
  :
   have_tls=no
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN(whether the GCC __thread extension is supported.,tls_supported,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_WITHCC(whether the GCC __thread extension is supported.,tls_supported,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_TLS_SUPPORT ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      ;;
    esac
  fi
  if test "$enabled_tls$have_tls" = "yesno"; then


echo
echo "configure error: --enable-tls passed but no working tls support found"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


  fi

 if test "$cross_compiling" = "no"; then
  case "$target_os" in
    darwin*)
      echo "$as_me:$LINENO: checking for shared data cache line size" >&5
echo $ECHO_N "checking for shared data cache line size... $ECHO_C" >&6
      GASNETI_CACHE_LINE_BYTES=`/usr/sbin/sysctl hw.cachelinesize | cut '-d ' -f2`
      echo "$as_me:$LINENO: result: $GASNETI_CACHE_LINE_BYTES" >&5
echo "${ECHO_T}$GASNETI_CACHE_LINE_BYTES" >&6
      ;;
    *)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_EXPR(for shared data cache line size,datacache_line_size,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for shared data cache line size" >&5
echo $ECHO_N "checking for shared data cache line size... $ECHO_C" >&6
if test "${gasnet_cv_datacache_line_size+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

  #include "confdefs.h"
  #include <stdio.h>
  #include <stdlib.h>
   #define CONFIG_TEST 1
        #include "detect-cachesz.c"
  int main() {
    FILE *f=fopen("conftestval", "w");
    int val = 0;
    if (!f) exit(1);
    {
       val = detect_cachesz(79.0, 0); if (val<=0) exit(1); ; }
    fprintf(f, "%d\n", (int)(val));
    return 0;
  }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_datacache_line_size=`cat conftestval`
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv_datacache_line_size=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv_datacache_line_size" >&5
echo "${ECHO_T}$gasnet_cv_datacache_line_size" >&6
if test "$gasnet_cv_datacache_line_size" != no; then
  :
  GASNETI_CACHE_LINE_BYTES=$gasnet_cv_datacache_line_size
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_EXPR(for shared data cache line size,datacache_line_size,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      ;;
  esac
 fi

  case "$target_os" in
    freebsd*) ;; # bug 1205: intentionally avoid -lpthread on BSD, where it causes problems
    netbsd*)  ;;
    *) GASNET_THREAD_LIBS="$LIBS" ;;
  esac



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CPPFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CPPFLAGS" -ge "1"; then
    _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CPPFLAGS_$_pushcnt_CPPFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CPPFLAGS=\$_pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS
      echo "popping CPPFLAGS back to: $CPPFLAGS" >&5
    else
      unset CPPFLAGS
      echo "popping CPPFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CPPFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CPPFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CPPFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



fi
if test "$GASNETI_CACHE_LINE_BYTES" = "" ; then
  GASNETI_CACHE_LINE_BYTES=128
  if test "$cross_compiling" = "no"; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: Unable to automatically detect a shared data cache line size (either system load too high, pthreads is broken or this is not a cache-coherent SMP).  Using a safe default size of $GASNETI_CACHE_LINE_BYTES" >&5
echo "$as_me: WARNING: Unable to automatically detect a shared data cache line size (either system load too high, pthreads is broken or this is not a cache-coherent SMP).  Using a safe default size of $GASNETI_CACHE_LINE_BYTES" >&2;}
  echo "Unable to automatically detect a shared data cache line size (either system load too high, pthreads is broken or this is not a cache-coherent SMP).  Using a safe default size of $GASNETI_CACHE_LINE_BYTES" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  else




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: Unable to automatically detect a shared data cache line size when cross compiling.  Using a safe default size of $GASNETI_CACHE_LINE_BYTES" >&5
echo "$as_me: WARNING: Unable to automatically detect a shared data cache line size when cross compiling.  Using a safe default size of $GASNETI_CACHE_LINE_BYTES" >&2;}
  echo "Unable to automatically detect a shared data cache line size when cross compiling.  Using a safe default size of $GASNETI_CACHE_LINE_BYTES" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  fi
fi
cat >>confdefs.h <<_ACEOF
#define GASNETI_CACHE_LINE_BYTES $GASNETI_CACHE_LINE_BYTES
_ACEOF

case "$GASNETI_CACHE_LINE_BYTES" in
     1)     GASNETI_CACHE_LINE_SHIFT=0  ;;
     2)     GASNETI_CACHE_LINE_SHIFT=1  ;;
     4)     GASNETI_CACHE_LINE_SHIFT=2  ;;
     8)     GASNETI_CACHE_LINE_SHIFT=3  ;;
    16)     GASNETI_CACHE_LINE_SHIFT=4  ;;
    32)     GASNETI_CACHE_LINE_SHIFT=5  ;;
    64)     GASNETI_CACHE_LINE_SHIFT=6  ;;
   128)     GASNETI_CACHE_LINE_SHIFT=7  ;;
   256)     GASNETI_CACHE_LINE_SHIFT=8  ;;
   512)     GASNETI_CACHE_LINE_SHIFT=9  ;;
  1024)     GASNETI_CACHE_LINE_SHIFT=10 ;;
  *) { { echo "$as_me:$LINENO: error: unknown GASNETI_CACHE_LINE_BYTES=$GASNETI_CACHE_LINE_BYTES" >&5
echo "$as_me: error: unknown GASNETI_CACHE_LINE_BYTES=$GASNETI_CACHE_LINE_BYTES" >&2;}
   { (exit 1); exit 1; }; } ;;
  esac
cat >>confdefs.h <<_ACEOF
#define GASNETI_CACHE_LINE_SHIFT $GASNETI_CACHE_LINE_SHIFT
_ACEOF




if test "$have_pthread" = yes; then
  HAVE_PTHREAD_TRUE=
  HAVE_PTHREAD_FALSE='#'
else
  HAVE_PTHREAD_TRUE='#'
  HAVE_PTHREAD_FALSE=
fi

PTHREADS="$have_pthread"


## Solaris threads

echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
if test "${ac_cv_lib_thread_thr_create+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lthread  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 thr_create ();
int
main ()
{
thr_create ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_thread_thr_create=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_thread_thr_create=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
if test $ac_cv_lib_thread_thr_create = yes; then
  have_solthread=yes
else
  have_solthread=no
fi


########################################################################
## CPU feature checks

## Look for PPC970/PPC970FX (aka G5)
# Both false positives and false negatives are safe, but getting this
# wrong may hurt performance.



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(tune-ppc970,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-tune-ppc970 or --disable-tune-ppc970 was given.
if test "${enable_tune_ppc970+set}" = set; then
  enableval="$enable_tune_ppc970"

fi;
# Check whether --enable-tune-ppc970 or --disable-tune-ppc970 was given.
if test "${enable_tune_ppc970+set}" = set; then
  enableval="$enable_tune_ppc970"

fi;
case "$enable_tune_ppc970" in
  no)  enabled_ppc970=no ;;
  yes) enabled_ppc970=yes ;;
  *)   enabled_ppc970=probe ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(tune-ppc970,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if expr "$enabled_ppc970@$cross_compiling@$target_cpu" : "probe@no@powerpc" >/dev/null; then
  echo "$as_me:$LINENO: checking whether to tune for PPC970/G5" >&5
echo $ECHO_N "checking whether to tune for PPC970/G5... $ECHO_C" >&6
  case "$target_os" in
     aix*) if /usr/sbin/lsattr -l proc0 -E | grep -i PowerPC_970 >/dev/null 2>&1; then
             enabled_ppc970=yes
           fi ;;
   linux*) if grep -i PPC970 /proc/cpuinfo >/dev/null 2>&1; then
             enabled_ppc970=yes
           fi ;;
  darwin*) if test `/usr/sbin/sysctl hw.cpusubtype | cut '-d ' -f2` = '100'; then
             enabled_ppc970=yes
           fi ;;
  esac
  if test "$enabled_ppc970" = yes; then
    cat >>confdefs.h <<\_ACEOF
#define GASNETI_TUNE_PPC970 1
_ACEOF

    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  else
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  fi
fi

## Look for potentially buggy MIPS R10k systems
# There is a processor erratum to work-around in our atomics :-(
# The only SGI products w/ the bad cpus are the "IP27" platforms (Origin 200, Origin 2000, and Onyx 2)
# XXX: We could refine this to check the reported cpu revision



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(arch-sgi-ip27,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-arch-sgi-ip27 or --disable-arch-sgi-ip27 was given.
if test "${enable_arch_sgi_ip27+set}" = set; then
  enableval="$enable_arch_sgi_ip27"

fi;
# Check whether --enable-arch-sgi-ip27 or --disable-arch-sgi-ip27 was given.
if test "${enable_arch_sgi_ip27+set}" = set; then
  enableval="$enable_arch_sgi_ip27"

fi;
case "$enable_arch_sgi_ip27" in
  no)  enabled_sgi_ip27=no ;;
  yes) enabled_sgi_ip27=yes ;;
  *)   enabled_sgi_ip27=unknown ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(arch-sgi-ip27,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if expr "$enabled_sgi_ip27@$cross_compiling@$target_cpu" : "unknown@no@mips" >/dev/null; then
  echo "$as_me:$LINENO: checking for potentially buggy MIPS R10K multiprocessor system" >&5
echo $ECHO_N "checking for potentially buggy MIPS R10K multiprocessor system... $ECHO_C" >&6
  case "$target_os" in
    irix*) if test `uname -m` = "IP27" ; then
             enabled_sgi_ip27=yes
	   else
             enabled_sgi_ip27=no
	   fi ;;
  esac
  echo "$as_me:$LINENO: result: $enabled_sgi_ip27" >&5
echo "${ECHO_T}$enabled_sgi_ip27" >&6
fi
if expr "$enabled_sgi_ip27@$target_cpu" : "unknown@mips" >/dev/null; then
  # Either cross compiling, or not on IRIX.
  { { echo "$as_me:$LINENO: error: Do not know how to probe for an SGI IP27 system.  Please configure either with --enable-sgi-ip27 or --disable-sgi-ip27" >&5
echo "$as_me: error: Do not know how to probe for an SGI IP27 system.  Please configure either with --enable-sgi-ip27 or --disable-sgi-ip27" >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$enabled_sgi_ip27" = yes; then
  cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_SGI_IP27 1
_ACEOF

fi


## x86 -fPIC which steals the B register
## XXX: Test currently only correctly identifies PIC mode with using a
## compiler which accepts GNU-style asm - but that is the only
## case where we *currently* care.  Test may need some additional
## cases for other compilers in the future.



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS -I$TOP_SRCDIR -I$TOP_SRCDIR/other -D_IN_CONFIGURE") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS -I$TOP_SRCDIR -I$TOP_SRCDIR/other -D_IN_CONFIGURE"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS -I$TOP_SRCDIR -I$TOP_SRCDIR/other -D_IN_CONFIGURE") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



echo "$as_me:$LINENO: checking for x86 EBX register" >&5
echo $ECHO_N "checking for x86 EBX register... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

  #include "gasnet_asm.h" /* For PGI_WITH_REAL_ASM and PLATFORM_COMPILER_* */

int
main ()
{

  #if PLATFORM_ARCH_X86_64 || PLATFORM_ARCH_X86
    #if PLATFORM_COMPILER_GNU || PLATFORM_COMPILER_INTEL || \
        PLATFORM_COMPILER_PATHSCALE || PGI_WITH_REAL_ASM || PLATFORM_COMPILER_TINY
      __asm__ __volatile__ ("pushl %0" : : "b" (0));
    #else
	/* Don't know, but fortunately don't currently care */
    #endif
  #else
    /* N/A */
  #endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cat >>confdefs.h <<\_ACEOF
#define GASNETI_HAVE_X86_EBX 1
_ACEOF

    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.$ac_objext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




## Spinloop hints



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS -I$TOP_SRCDIR -I$TOP_SRCDIR/other -D_IN_CONFIGURE") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS -I$TOP_SRCDIR -I$TOP_SRCDIR/other -D_IN_CONFIGURE"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS -I$TOP_SRCDIR -I$TOP_SRCDIR/other -D_IN_CONFIGURE") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



# need to run here because some OS's (Solaris/x86) forbid the pause instruction



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_WITHCC(for x86 pause instruction,x86_pause_instruction,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_LINK(for x86 pause instruction,x86_pause_instruction,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking for x86 pause instruction" >&5
echo $ECHO_N "checking for x86 pause instruction... $ECHO_C" >&6
if test "${gasnet_cv_x86_pause_instruction+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

  #include "gasnet_asm.h" /* Includes portable_platform.h */

int
main ()
{

  #if PLATFORM_ARCH_X86_64 || PLATFORM_ARCH_X86
    GASNETI_ASM("pause");
  #else
    #error wrong CPU architecture
  #endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_x86_pause_instruction=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_x86_pause_instruction=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_x86_pause_instruction" >&5
echo "${ECHO_T}$gasnet_cv_x86_pause_instruction" >&6
if test "$gasnet_cv_x86_pause_instruction" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define GASNETI_PAUSE_INSTRUCTION "pause"
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(for x86 pause instruction,x86_pause_instruction,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN(for x86 pause instruction,x86_pause_instruction,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking for x86 pause instruction" >&5
echo $ECHO_N "checking for x86 pause instruction... $ECHO_C" >&6
if test "${gasnet_cv_x86_pause_instruction+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


  #include "gasnet_asm.h" /* Includes portable_platform.h */

      int main() {

  #if PLATFORM_ARCH_X86_64 || PLATFORM_ARCH_X86
    GASNETI_ASM("pause");
  #else
    #error wrong CPU architecture
  #endif

	return 0;
      }

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_x86_pause_instruction=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv_x86_pause_instruction=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv_x86_pause_instruction" >&5
echo "${ECHO_T}$gasnet_cv_x86_pause_instruction" >&6
if test "$gasnet_cv_x86_pause_instruction" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define GASNETI_PAUSE_INSTRUCTION "pause"
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN(for x86 pause instruction,x86_pause_instruction,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_WITHCC(for x86 pause instruction,x86_pause_instruction,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



## Disabled ia64 pause hint until we see an actual need for it -PHH 2006.01.09
#AC_MSG_CHECKING(for ia64 pause hint)
#AC_TRY_COMPILE([
#  #include "gasnet_asm.h"
#], [
#  #if defined(__ia64__)
#    GASNETI_ASM("hint @pause");
#  #else
#    #error wrong CPU architecture
#  #endif
#], [AC_DEFINE(GASNETI_PAUSE_INSTRUCTION, "hint @pause")
#    AC_MSG_RESULT(yes)
#], [AC_MSG_RESULT(no)])



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




#---------------------------------------------------------------------------------------------------------------

# Global disable of fork() (and related calls) on "special" systems.
# Conduits may also set GASNETI_NO_FORK individually
have_fork=yes



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(fork,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-fork or --disable-fork was given.
if test "${enable_fork+set}" = set; then
  enableval="$enable_fork"

fi;
# Check whether --enable-fork or --disable-fork was given.
if test "${enable_fork+set}" = set; then
  enableval="$enable_fork"

fi;
case "$enable_fork" in
  no)   have_fork=no
    fork_reason="was disabled"  ;;
  yes)  :  ;;
  *)


for ac_func in fork popen system
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* 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 ();
/* 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
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
  :
else
   have_fork=no
		     fork_reason="appears to be missing or broken"
		     break
fi
done
 ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(fork,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test $have_fork = no; then
  cat >>confdefs.h <<\_ACEOF
#define GASNETI_NO_FORK 1
_ACEOF

fi

#---------------------------------------------------------------------------------------------------------------
# Check for overrides of compile-time checks for SMPs



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(smp-safe,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-smp-safe or --disable-smp-safe was given.
if test "${enable_smp_safe+set}" = set; then
  enableval="$enable_smp_safe"

fi;
# Check whether --enable-smp-safe or --disable-smp-safe was given.
if test "${enable_smp_safe+set}" = set; then
  enableval="$enable_smp_safe"

fi;
case "$enable_smp_safe" in
  no)   uni_build=yes ;;
  yes)  uni_build=no  ;;
  *)
for ac_header in /boot/kernel.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

    echo "$as_me:$LINENO: checking whether to force a uni-processor build" >&5
echo $ECHO_N "checking whether to force a uni-processor build... $ECHO_C" >&6
    if test "`uname -a | grep -i SMP`" != ""; then
      uni_build=no;
    else
      cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

        /* Note that we try to error on the side of an SMP */
        #if defined(__linux__)
          #include <linux/config.h>
          #if defined(CONFIG_SMP)
            #error Make the AC_TRY_COMPILE fail (SMP)
          #endif
          #ifdef HAVE__BOOT_KERNEL_H
            #include </boot/kernel.h>
            #if defined(__BOOT_KERNEL_SMP) && (__BOOT_KERNEL_SMP == 1)
              #error Make the AC_TRY_COMPILE fail (SMP)
            #endif
          #endif
        #elif defined(__FreeBSD__)
          #if defined(SMP)
            #error Make the AC_TRY_COMPILE fail (SMP)
          #endif
        #else
          #error Make the AC_TRY_COMPILE fail (SMP)
        #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   uni_build=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 uni_build=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
    fi
    echo "$as_me:$LINENO: result: $uni_build" >&5
echo "${ECHO_T}$uni_build" >&6

  ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(smp-safe,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$uni_build" = yes; then
  cat >>confdefs.h <<\_ACEOF
#define GASNETI_UNI_BUILD 1
_ACEOF

fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(loopback-memsync,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-loopback-memsync or --disable-loopback-memsync was given.
if test "${enable_loopback_memsync+set}" = set; then
  enableval="$enable_loopback_memsync"

fi;

case "$enable_loopback_memsync" in
  '' | no) :
       ;;
  *)  cat >>confdefs.h <<\_ACEOF
#define GASNETI_MEMSYNC_ON_LOOPBACK 1
_ACEOF
 ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(loopback-memsync,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(throttle-poll,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-throttle-poll or --disable-throttle-poll was given.
if test "${enable_throttle_poll+set}" = set; then
  enableval="$enable_throttle_poll"

fi;

case "$enable_throttle_poll" in
  '' | no) :
       ;;
  *)  cat >>confdefs.h <<\_ACEOF
#define GASNETI_THROTTLE_FEATURE_ENABLED 1
_ACEOF
 ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(throttle-poll,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




# FORCED non-default implementations - used mainly for debugging
#
# NOTE: If adding an "--enable-forced-*" option here, please:
# 1) Set enabled_force=yes to trigger the warning below
# 2) Add to the "don't trust performance" warning in tests/test.h
# 3) If applicable, the corresponding portion of the GASNet config string should
#    distinguish forced behaviors from default ones.
# 4) You probably want a "LINKCONFIG_IDIOTCHECK" as well (might be covered by #3)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(force-generic-atomicops,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-force-generic-atomicops or --disable-force-generic-atomicops was given.
if test "${enable_force_generic_atomicops+set}" = set; then
  enableval="$enable_force_generic_atomicops"

fi;

case "$enable_force_generic_atomicops" in
  '' | no) :
       ;;
  *)  enabled_force=yes; enabled_generic_atomicops=yes ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(force-generic-atomicops,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(force-os-atomicops,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-force-os-atomicops or --disable-force-os-atomicops was given.
if test "${enable_force_os_atomicops+set}" = set; then
  enableval="$enable_force_os_atomicops"

fi;

case "$enable_force_os_atomicops" in
  '' | no) :
       ;;
  *)  enabled_force=yes; enabled_os_atomicops=yes ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(force-os-atomicops,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  if test "$enabled_generic_atomicops$enabled_os_atomicops" = yesyes; then
    { { echo "$as_me:$LINENO: error: You cannot request both --enable-force-generic-atomicops and --enable-force-os-atomicops" >&5
echo "$as_me: error: You cannot request both --enable-force-generic-atomicops and --enable-force-os-atomicops" >&2;}
   { (exit 1); exit 1; }; }
  elif test -n "$enabled_generic_atomicops" ; then
    cat >>confdefs.h <<\_ACEOF
#define GASNETI_FORCE_GENERIC_ATOMICOPS 1
_ACEOF

  elif test -n "$enabled_os_atomicops"; then
    cat >>confdefs.h <<\_ACEOF
#define GASNETI_FORCE_OS_ATOMICOPS 1
_ACEOF

  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(force-gettimeofday,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-force-gettimeofday or --disable-force-gettimeofday was given.
if test "${enable_force_gettimeofday+set}" = set; then
  enableval="$enable_force_gettimeofday"

fi;

case "$enable_force_gettimeofday" in
  '' | no) :
       ;;
  *)  enabled_force=yes; enabled_gettimeofday=yes ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(force-gettimeofday,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(force-posix-realtime,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-force-posix-realtime or --disable-force-posix-realtime was given.
if test "${enable_force_posix_realtime+set}" = set; then
  enableval="$enable_force_posix_realtime"

fi;

case "$enable_force_posix_realtime" in
  '' | no) :
       ;;
  *)  enabled_force=yes; enabled_posix_realtime=yes ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(force-posix-realtime,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  if test "$enabled_gettimeofday$enabled_posix_realtime" = yesyes; then
    { { echo "$as_me:$LINENO: error: You cannot request both --enable-force-gettimeofday and --enable-force-posix-realtime" >&5
echo "$as_me: error: You cannot request both --enable-force-gettimeofday and --enable-force-posix-realtime" >&2;}
   { (exit 1); exit 1; }; }
  elif test -n "$enabled_gettimeofday" ; then
    cat >>confdefs.h <<\_ACEOF
#define GASNETI_FORCE_GETTIMEOFDAY 1
_ACEOF

  elif test -n "$enabled_posix_realtime"; then
    cat >>confdefs.h <<\_ACEOF
#define GASNETI_FORCE_POSIX_REALTIME 1
_ACEOF

  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(force-yield-membars,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-force-yield-membars or --disable-force-yield-membars was given.
if test "${enable_force_yield_membars+set}" = set; then
  enableval="$enable_force_yield_membars"

fi;

case "$enable_force_yield_membars" in
  '' | no) :
       ;;
  *)  enabled_force=yes; enabled_yield_membars=yes ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(force-yield-membars,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(force-slow-membars,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-force-slow-membars or --disable-force-slow-membars was given.
if test "${enable_force_slow_membars+set}" = set; then
  enableval="$enable_force_slow_membars"

fi;

case "$enable_force_slow_membars" in
  '' | no) :
       ;;
  *)  enabled_force=yes; enabled_slow_membars=yes ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(force-slow-membars,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  if test "$enabled_yield_membars$enabled_slow_membars" = yesyes; then
    { { echo "$as_me:$LINENO: error: You cannot request both --enable-force-yield-membars and --enable-force-slow-membars" >&5
echo "$as_me: error: You cannot request both --enable-force-yield-membars and --enable-force-slow-membars" >&2;}
   { (exit 1); exit 1; }; }
  elif test -n "$enabled_yield_membars" ; then
    cat >>confdefs.h <<\_ACEOF
#define GASNETI_FORCE_YIELD_MEMBARS 1
_ACEOF

  elif test -n "$enabled_slow_membars" ; then
    cat >>confdefs.h <<\_ACEOF
#define GASNETI_FORCE_SLOW_MEMBARS 1
_ACEOF

  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(force-true-weakatomics,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-force-true-weakatomics or --disable-force-true-weakatomics was given.
if test "${enable_force_true_weakatomics+set}" = set; then
  enableval="$enable_force_true_weakatomics"

fi;

case "$enable_force_true_weakatomics" in
  '' | no) :
       ;;
  *)  enabled_force=yes; cat >>confdefs.h <<\_ACEOF
#define GASNETI_FORCE_TRUE_WEAKATOMICS 1
_ACEOF
  ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(force-true-weakatomics,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(force-generic-semaphores,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-force-generic-semaphores or --disable-force-generic-semaphores was given.
if test "${enable_force_generic_semaphores+set}" = set; then
  enableval="$enable_force_generic_semaphores"

fi;

case "$enable_force_generic_semaphores" in
  '' | no) :
       ;;
  *)  enabled_force=yes; cat >>confdefs.h <<\_ACEOF
#define GASNETI_FORCE_GENERIC_SEMAPHORES 1
_ACEOF
  ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(force-generic-semaphores,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




if test "$enabled_force" = yes; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING:
-----------------------------------------------------------------------
 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

 You have configured with one or more --enable-force-* options
 This usually has a SERIOUS impact on performance, so you should NOT
 trust any performance numbers obtained from programs built
 using this GASNet installation!!!

 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
-----------------------------------------------------------------------" >&5
echo "$as_me: WARNING:
-----------------------------------------------------------------------
 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

 You have configured with one or more --enable-force-* options
 This usually has a SERIOUS impact on performance, so you should NOT
 trust any performance numbers obtained from programs built
 using this GASNet installation!!!

 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
-----------------------------------------------------------------------" >&2;}
  echo "
-----------------------------------------------------------------------
 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

 You have configured with one or more --enable-force-* options
 This usually has a SERIOUS impact on performance, so you should NOT
 trust any performance numbers obtained from programs built
 using this GASNet installation!!!

 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
-----------------------------------------------------------------------" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




fi

#---------------------------------------------------------------------------------------------------------------
# CONDUIT CONFIGURATIONS
#---------------------------------------------------------------------------------------------------------------
CONDUITS=

# reporting file output at completion
CONDUIT_LIST=.gasnet-conduit-list.tmp
echo > $CONDUIT_LIST

echo " Portable conduits:" >> $CONDUIT_LIST
echo " -----------------" >> $CONDUIT_LIST

#---------------------------------------------------------------------------------------------------------------
# UDP/AMUDP Configuration
# Hack-around to prevent a bogus autoconf 2.58 bug when AC_PROG_CXX is called conditionally below
am__fastdepCXX_TRUE='#'
am__fastdepCXX_FALSE=





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(udp,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-udp or --disable-udp was given.
if test "${enable_udp+set}" = set; then
  enableval="$enable_udp"

fi;
# Check whether --enable-udp or --disable-udp was given.
if test "${enable_udp+set}" = set; then
  enableval="$enable_udp"

fi;
case "$enable_udp" in
  no)  enabled_udp=no ;;
  yes) enabled_udp=yes;force_udp=yes ;;
  *)   enabled_udp=yes ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(udp,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test $enabled_udp = yes; then

  # Do C++ configuration



  # when called by Titanium configure, target C++ compiler will be in TARGET_CXX(FLAGS)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(TARGET_CXX,"") vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for TARGET_CXX in environment" >&5
echo $ECHO_N "checking for TARGET_CXX in environment... $ECHO_C" >&6



# Check whether --with-target-cxx or --without-target-cxx was given.
if test "${with_target_cxx+set}" = set; then
  withval="$with_target_cxx"

fi;



  envval_src_TARGET_CXX="cached"
  if test "${gasnet_cv_envvar_TARGET_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${TARGET_CXX-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_target_cxx" != ""; then
	      gasnet_cv_envvar_TARGET_CXX="$with_target_cxx"
	      envval_src_TARGET_CXX=given
	    else
	      gasnet_cv_envvar_TARGET_CXX=""""
	      envval_src_TARGET_CXX=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_TARGET_CXX="$TARGET_CXX"
	    envval_src_TARGET_CXX=given
      esac

fi


  TARGET_CXX="$gasnet_cv_envvar_TARGET_CXX"
  case "$envval_src_TARGET_CXX" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$TARGET_CXX\"" >&5
echo "${ECHO_T}using cached value \"$TARGET_CXX\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$TARGET_CXX\"" >&5
echo "${ECHO_T}no, defaulting to \"$TARGET_CXX\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$TARGET_CXX\"" >&5
echo "${ECHO_T}yes, using \"$TARGET_CXX\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(TARGET_CXX,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  if test "${TARGET_CXX}" != "" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(TARGET_CXXFLAGS,"") vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for TARGET_CXXFLAGS in environment" >&5
echo $ECHO_N "checking for TARGET_CXXFLAGS in environment... $ECHO_C" >&6



# Check whether --with-target-cxxflags or --without-target-cxxflags was given.
if test "${with_target_cxxflags+set}" = set; then
  withval="$with_target_cxxflags"

fi;



  envval_src_TARGET_CXXFLAGS="cached"
  if test "${gasnet_cv_envvar_TARGET_CXXFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${TARGET_CXXFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_target_cxxflags" != ""; then
	      gasnet_cv_envvar_TARGET_CXXFLAGS="$with_target_cxxflags"
	      envval_src_TARGET_CXXFLAGS=given
	    else
	      gasnet_cv_envvar_TARGET_CXXFLAGS=""""
	      envval_src_TARGET_CXXFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_TARGET_CXXFLAGS="$TARGET_CXXFLAGS"
	    envval_src_TARGET_CXXFLAGS=given
      esac

fi


  TARGET_CXXFLAGS="$gasnet_cv_envvar_TARGET_CXXFLAGS"
  case "$envval_src_TARGET_CXXFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$TARGET_CXXFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$TARGET_CXXFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$TARGET_CXXFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$TARGET_CXXFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$TARGET_CXXFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$TARGET_CXXFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(TARGET_CXXFLAGS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    unset ac_cv_prog_CXX
    unset ac_cv_prog_CXXCPP
    CXX="$TARGET_CXX"
    CXXFLAGS="$TARGET_CXXFLAGS"
  fi






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PROG_CXX vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PROG_CXXCPP vvvvvvvvvvvvvvvvvvvvvv (L:2)


  ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  echo "$as_me:$LINENO: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CXX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ac_ct_CXX" && break
done
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"

  CXX=$ac_ct_CXX
fi


# Provide some information about the compiler.
echo "$as_me:$LINENO:" \
     "checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  (eval $ac_compiler --version </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  (eval $ac_compiler -v </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  (eval $ac_compiler -V </dev/null >&5) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }

echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_compiler_gnu=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu

fi
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="-g"
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cxx_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_prog_cxx_g=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_prog_cxx_g=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&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
for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

continue
fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

depcc="$CXX"  am_compiler_list=

echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CXX_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      : > sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    case $depmode in
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    none) break ;;
    esac
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.
    if depmode=$depmode \
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored.
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
        am_cv_CXX_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CXX_dependencies_compiler_type=none
fi

fi
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type



if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  am__fastdepCXX_TRUE=
  am__fastdepCXX_FALSE='#'
else
  am__fastdepCXX_TRUE='#'
  am__fastdepCXX_FALSE=
fi


  ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
if test -z "$CXXCPP"; then
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
      # Double quotes because CXXCPP needs to be expanded
    for CXXCPP in "$CXX -E" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
                     Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  break
fi

    done
    ac_cv_prog_CXXCPP=$CXXCPP

fi
  CXXCPP=$ac_cv_prog_CXXCPP
else
  ac_cv_prog_CXXCPP=$CXXCPP
fi
echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
                     Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext

  # OK, works on sane cases.  Now check whether non-existent headers
  # can be detected and how.
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  # Broken: success on invalid input.
continue
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
  :
else
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




# vvvvvvvvvvvvvvvvvvvvvv GASNET_GETFULLPATH(CXXCPP) vvvvvvvvvvvvvvvvvvvvvv (L:3)



if test "$gasnet_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 gasnet_cv__gfp_fullprogname_CXXCPP
    unset ac_cv_path_gasnet_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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_gasnet_cv__gfp_fullprogname_CXXCPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $gasnet_cv__gfp_fullprogname_CXXCPP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_gasnet_cv__gfp_fullprogname_CXXCPP="$gasnet_cv__gfp_fullprogname_CXXCPP" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_gasnet_cv__gfp_fullprogname_CXXCPP="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
gasnet_cv__gfp_fullprogname_CXXCPP=$ac_cv_path_gasnet_cv__gfp_fullprogname_CXXCPP

if test -n "$gasnet_cv__gfp_fullprogname_CXXCPP"; then
  echo "$as_me:$LINENO: result: $gasnet_cv__gfp_fullprogname_CXXCPP" >&5
echo "${ECHO_T}$gasnet_cv__gfp_fullprogname_CXXCPP" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    echo "$as_me:$LINENO: checking for full path expansion of CXXCPP" >&5
echo $ECHO_N "checking for full path expansion of CXXCPP... $ECHO_C" >&6
    if test "$gasnet_cv__gfp_fullprogname_CXXCPP" != "" ; then
      CXXCPP="$gasnet_cv__gfp_fullprogname_CXXCPP $gasnet_gfp_progargs"
    fi
    echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6
  fi
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GETFULLPATH(CXXCPP) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)





  echo "$as_me:$LINENO: checking for working C++ preprocessor" >&5
echo $ECHO_N "checking for working C++ preprocessor... $ECHO_C" >&6


  ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

  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 <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

    # error

_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  { { echo "$as_me:$LINENO: error: Your C++ preprocessor is broken - reported success when it should have failed" >&5
echo "$as_me: error: Your C++ preprocessor is broken - reported success when it should have failed" >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5



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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi
rm -f conftest.err conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

    #ifndef __cplusplus
      #error __cplusplus must be defined in a C++ preprocessor!
    #endif

_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5



echo
echo "configure error: Your C++ preprocessor is broken, it fails to define __cplusplus."
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi
rm -f conftest.err conftest.$ac_ext
  echo "$as_me:$LINENO: result: yes$gasnet_progcxxcpp_extrainfo" >&5
echo "${ECHO_T}yes$gasnet_progcxxcpp_extrainfo" >&6
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PROG_CXXCPP ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_GETFULLPATH(CXX) vvvvvvvvvvvvvvvvvvvvvv (L:2)



if test "$gasnet_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 gasnet_cv__gfp_fullprogname_CXX
    unset ac_cv_path_gasnet_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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_gasnet_cv__gfp_fullprogname_CXX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $gasnet_cv__gfp_fullprogname_CXX in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_gasnet_cv__gfp_fullprogname_CXX="$gasnet_cv__gfp_fullprogname_CXX" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_gasnet_cv__gfp_fullprogname_CXX="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
gasnet_cv__gfp_fullprogname_CXX=$ac_cv_path_gasnet_cv__gfp_fullprogname_CXX

if test -n "$gasnet_cv__gfp_fullprogname_CXX"; then
  echo "$as_me:$LINENO: result: $gasnet_cv__gfp_fullprogname_CXX" >&5
echo "${ECHO_T}$gasnet_cv__gfp_fullprogname_CXX" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    echo "$as_me:$LINENO: checking for full path expansion of CXX" >&5
echo $ECHO_N "checking for full path expansion of CXX... $ECHO_C" >&6
    if test "$gasnet_cv__gfp_fullprogname_CXX" != "" ; then
      CXX="$gasnet_cv__gfp_fullprogname_CXX $gasnet_gfp_progargs"
    fi
    echo "$as_me:$LINENO: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
  fi
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GETFULLPATH(CXX) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)





  echo "$as_me:$LINENO: checking for working C++ compiler" >&5
echo $ECHO_N "checking for working C++ compiler... $ECHO_C" >&6


  ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

    fail for me

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  { { echo "$as_me:$LINENO: error: Your C++ compiler is broken - reported success when it should have failed" >&5
echo "$as_me: error: Your C++ compiler is broken - reported success when it should have failed" >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
 #include <stdio.h>
                   #include <stdlib.h>

int
main ()
{
 printf("hi\n"); exit(0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5



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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi
rm -f conftest.$ac_objext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
 extern int some_bogus_nonexistent_symbol();
int
main ()
{
 int x = some_bogus_nonexistent_symbol();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  { { echo "$as_me:$LINENO: error: Your C++ linker is broken - reported success when it should have failed" >&5
echo "$as_me: error: Your C++ linker is broken - reported success when it should have failed" >&2;}
   { (exit 1); exit 1; }; }
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
 #include <stdio.h>
                   #include <stdlib.h>

int
main ()
{
 printf("hi\n"); exit(0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5



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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    echo "$as_me:$LINENO: checking if user enabled cross-compile" >&5
echo $ECHO_N "checking if user enabled cross-compile... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(cross-compile,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

# 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 "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    cross_compiling=no
    ac_cv_prog_cxx_cross=no
    echo "$as_me:$LINENO: checking working C++ compiler executables" >&5
echo $ECHO_N "checking working C++ compiler executables... $ECHO_C" >&6
    if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: Internal configure error - please report" >&5
echo "$as_me: error: Internal configure error - please report" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
int main() { return 0; }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6

echo
echo "configure error: Cannot run executables created with C++ compiler. If you're attempting to cross-compile, use --enable-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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
   ;;
  *)
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    cross_compiling=yes
    ac_cv_prog_cxx_cross=yes
   ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(cross-compile,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PROG_CXX ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  have_cxx=1

  ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu




# vvvvvvvvvvvvvvvvvvvvvv GASNET_FAMILY_CACHE_CHECK(C++,CXX,gasnet_cv_cxx_family) vvvvvvvvvvvvvvvvvvvvvv (L:1)


echo "$as_me:$LINENO: checking for C++ compiler family" >&5
echo $ECHO_N "checking for C++ compiler family... $ECHO_C" >&6
if test "${gasnet_cv_cxx_family+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  if test "CXX" = "CC" ; then
    _GASNET_FAMILY_CACHE_CHECK_PREPROC="$CPP"
  else
    _GASNET_FAMILY_CACHE_CHECK_PREPROC="$CXXCPP"
  fi
  if test "`echo '$_GASNET_FAMILY_CACHE_CHECK_PREPROC' | grep '$C++'`" = "" ; then
    # preprocessor may differ from true compiler, so force full compilation testing
    _force_compile=1
  else
    _force_compile=
  fi
  gasnet_cv_cxx_family=unknown

    if test "$gasnet_cv_cxx_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__xlC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __xlC__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=XLC
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __xlC__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=XLC
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__xlC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  if test "$gasnet_cv_cxx_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(_CRAYC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef _CRAYC
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=Cray
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef _CRAYC
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=Cray
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(_CRAYC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
    if test "$gasnet_cv_cxx_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__GNUC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __GNUC__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=GNU
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __GNUC__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=GNU
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__GNUC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__PATHCC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __PATHCC__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=Pathscale
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __PATHCC__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=Pathscale
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__PATHCC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__PGI,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __PGI
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=PGI
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __PGI
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=PGI
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__PGI,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__INTEL_COMPILER,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __INTEL_COMPILER
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=Intel
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __INTEL_COMPILER
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=Intel
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__INTEL_COMPILER,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
    if test "$gasnet_cv_cxx_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__DECC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __DECC
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=Compaq
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __DECC
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=Compaq
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__DECC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # Compaq C



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__DECCXX,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __DECCXX
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=Compaq
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __DECCXX
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=Compaq
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__DECCXX,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # Compaq C++
  fi
  if test "$gasnet_cv_cxx_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__SUNPRO_C,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __SUNPRO_C
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=Sun
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __SUNPRO_C
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=Sun
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__SUNPRO_C,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


  # Sun C



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__SUNPRO_CC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __SUNPRO_CC
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=Sun
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __SUNPRO_CC
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=Sun
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__SUNPRO_CC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # Sun C++
  fi
  if test "$gasnet_cv_cxx_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__HP_cc,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __HP_cc
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=HP
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __HP_cc
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=HP
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__HP_cc,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


  # HP C



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__HP_aCC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __HP_aCC
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=HP
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __HP_aCC
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=HP
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__HP_aCC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # HP aCC (C++)
  fi
  if test "$gasnet_cv_cxx_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(_SGI_COMPILER_VERSION,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef _SGI_COMPILER_VERSION
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=MIPS
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef _SGI_COMPILER_VERSION
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=MIPS
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(_SGI_COMPILER_VERSION,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  if test "$gasnet_cv_cxx_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__MTA__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __MTA__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=MTA
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __MTA__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=MTA
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__MTA__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  if test "$gasnet_cv_cxx_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__KCC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __KCC
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=KAI
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __KCC
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=KAI
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__KCC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  if test "$gasnet_cv_cxx_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__TINYC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __TINYC__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=TINY
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __TINYC__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=TINY
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__TINYC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi
  if test "$gasnet_cv_cxx_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__LCC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "$_force_compile" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __LCC__
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=LCC
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __LCC__
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=LCC
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__LCC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi

    if test "$gasnet_cv_cxx_family" = "unknown"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(_SX,...,) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef _SX
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=NEC
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef _SX
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=NEC
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(_SX,...,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__sgi,...,) vvvvvvvvvvvvvvvvvvvvvv (L:2)

if test -z "" ; then
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __sgi
# error
#endif
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_cxx_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  gasnet_cv_cxx_family=MIPS
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


fi
rm -f conftest.err conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#ifndef __sgi
# error
#endif
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_family=MIPS
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__sgi,...,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # MIPSPro 7.3.0 and earlier
  fi

fi
echo "$as_me:$LINENO: result: $gasnet_cv_cxx_family" >&5
echo "${ECHO_T}$gasnet_cv_cxx_family" >&6
if test "$gasnet_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=$gasnet_cv_cxx_family
CXX_UNWRAPPED=$CXX
case $gasnet_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"


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FAMILY_CACHE_CHECK(C++,CXX,gasnet_cv_cxx_family) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  CXXDEBUGFLAGS="-g"
  CXXOPTFLAGS="-O2"
  GASNET_UDP_LIBS=""
  case "$gasnet_cv_cxx_family" in
    GNU)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_GCC_VERSION_CHECK(CXX) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for known buggy compilers" >&5
echo $ECHO_N "checking for known buggy compilers... $ECHO_C" >&6
badgccmsg=""
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#if __GNUC__ == 2 && __GNUC_MINOR__ == 96 && __GNUC_PATCHLEVEL__ == 0
# error
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


echo "$as_me:$LINENO: result: CXX is gcc 2.96" >&5
echo "${ECHO_T}CXX is gcc 2.96" >&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."



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(allow-gcc296,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

# 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 "$as_me:$LINENO: error: $badgccmsg \
  You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc296 flag." >&5
echo "$as_me: error: $badgccmsg \
  You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc296 flag." >&2;}
   { (exit 1); exit 1; }; }
 ;;
  *)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:3)

  { echo "$as_me:$LINENO: WARNING: $badgccmsg" >&5
echo "$as_me: WARNING: $badgccmsg" >&2;}
  echo "$badgccmsg" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




   ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(allow-gcc296,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




fi
rm -f conftest.$ac_objext conftest.$ac_ext
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#if __GNUC__ == 3 && __GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ <= 2
# error
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  :
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


echo "$as_me:$LINENO: result: CXX is gcc 3.2.0-2" >&5
echo "${ECHO_T}CXX is gcc 3.2.0-2" >&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."



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(allow-gcc32,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

# 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 "$as_me:$LINENO: error: $badgccmsg \
  You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc32 flag." >&5
echo "$as_me: error: $badgccmsg \
  You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc32 flag." >&2;}
   { (exit 1); exit 1; }; }
 ;;
  *)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:3)

  { echo "$as_me:$LINENO: WARNING: $badgccmsg" >&5
echo "$as_me: WARNING: $badgccmsg" >&2;}
  echo "$badgccmsg" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




   ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(allow-gcc32,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




fi
rm -f conftest.$ac_objext conftest.$ac_ext
if test -z "$badgccmsg"; then
  echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GCC_VERSION_CHECK(CXX) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



       case "$target_cpu" in
         sparc)

  if test "$GASNETI_PTR_BITS" = 32 -a "$DISABLE_ULTRASPARC" != 1; then
    for flag in "-mcpu=ultrasparc3 -mtune=ultrasparc3" "-mcpu=ultrasparc -mtune=ultrasparc" ; do



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $flag"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag $flag" >&5
echo $ECHO_N "checking for C++ compiler flag $flag... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ultrasparc_flag_worked=1

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
   ultrasparc_flag_worked=0

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     ultrasparc_flag_worked=1
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     ultrasparc_flag_worked=0
   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ultrasparc_flag_worked=0


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      if test "$ultrasparc_flag_worked" = 1; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $MISC_CXXFLAGS $flag"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	echo "$as_me:$LINENO: checking for working flag $flag" >&5
echo $ECHO_N "checking for working flag $flag... $ECHO_C" >&6
	if test "$cross_compiling" = yes; then
  ultrasparc_flag_worked=1
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

          void foo(void) {
            #ifdef __GNUC__
              register void * addr = 0;
              register int oldval = 0;
              register int newval = 1;
              __asm__ __volatile__ ("cas	[%2], %0, %1"
                                    : "=&r"(oldval), "=&r"(newval) : "r" (addr) : "memory");
            #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
              __asm("cas	[%i0], %i1, %i2");
            #else
              #error unknown sparc compiler
            #endif
          }
           int main() { return 0; }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ultrasparc_flag_worked=1
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ultrasparc_flag_worked=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	if test "$ultrasparc_flag_worked" = 1; then
	  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      	  MISC_CXXFLAGS="$flag"
	  break
	else
	  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	fi
      fi
    done
  fi
  echo "$as_me:$LINENO: checking for UltraSPARC instruction support" >&5
echo $ECHO_N "checking for UltraSPARC instruction support... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $MISC_CXXFLAGS"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

          void foo(void) {
            #ifdef __GNUC__
              register void * addr = 0;
              register int oldval = 0;
              register int newval = 1;
              __asm__ __volatile__ ("cas	[%2], %0, %1"
                                    : "=&r"(oldval), "=&r"(newval) : "r" (addr) : "memory");
            #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
              __asm("cas	[%i0], %i1, %i2");
            #else
              #error unknown sparc compiler
            #endif
          }

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                 cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_ULTRASPARC 1
_ACEOF


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	 echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                 cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_ULTRASPARC 1
_ACEOF


      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6
      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
     echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6

  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




;;
         powerpc*)

  if test "$GASNETI_PTR_BITS" = 32 -a "$DISABLE_PPC64" != 1 -a "$cross_compiling" != "yes"; then
    # Bug 1587: "for flag in ; do" chokes the shell on Solaris
    # Bug 1589: Use of m4_ifval(["-force_cpusubtype_ALL" "-Wa,-mppc64"]) to avoid bug 1587 chokes autoconf 2.13
    # So, we add a dummy element to keep the for-loop list non-empty, and then skip it.
    for flag in "-force_cpusubtype_ALL" "-Wa,-mppc64" DUMMY ; do
      if test "$flag" != DUMMY ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $flag"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag $flag" >&5
echo $ECHO_N "checking for C++ compiler flag $flag... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ppc64_flag_worked=1

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
   ppc64_flag_worked=0

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     ppc64_flag_worked=1
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     ppc64_flag_worked=0
   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ppc64_flag_worked=0


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        if test "$ppc64_flag_worked" = 1; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $MISC_CXXFLAGS $flag"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	  echo "$as_me:$LINENO: checking for working flag $flag" >&5
echo $ECHO_N "checking for working flag $flag... $ECHO_C" >&6
	  if test "$cross_compiling" = yes; then
  ppc64_flag_worked=1
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif
        int main() { double x; return testme(&x); }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ppc64_flag_worked=1
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ppc64_flag_worked=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	  if test "$ppc64_flag_worked" = 1; then
	    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      	    MISC_CXXFLAGS="$flag"
	    break
	  else
	    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	  fi
        fi
      fi
    done
  fi
  echo "$as_me:$LINENO: checking for PPC64 instruction support" >&5
echo $ECHO_N "checking for PPC64 instruction support... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $MISC_CXXFLAGS"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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
      :
      if test "$cross_compiling" = yes; then
   # Cross compiling.  For now just trust PTR_BITS.
		       if test "$GASNETI_PTR_BITS" = 64; then
                         echo "$as_me:$LINENO: result: yes (cross-compiling w/ 64-bit pointers)" >&5
echo "${ECHO_T}yes (cross-compiling w/ 64-bit pointers)" >&6
                         cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

		       else
                         echo "$as_me:$LINENO: result: no (cross-compiling w/ 32-bit pointers)" >&5
echo "${ECHO_T}no (cross-compiling w/ 32-bit pointers)" >&6
		       fi

else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif
        int main() { double x; return testme(&x); }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                      cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
echo "$as_me:$LINENO: result: no/failure" >&5
echo "${ECHO_T}no/failure" >&6
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	if test "$cross_compiling" = yes; then
   # Cross compiling.  For now just trust PTR_BITS.
		       if test "$GASNETI_PTR_BITS" = 64; then
                         echo "$as_me:$LINENO: result: yes (cross-compiling w/ 64-bit pointers)" >&5
echo "${ECHO_T}yes (cross-compiling w/ 64-bit pointers)" >&6
                         cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

		       else
                         echo "$as_me:$LINENO: result: no (cross-compiling w/ 32-bit pointers)" >&5
echo "${ECHO_T}no (cross-compiling w/ 32-bit pointers)" >&6
		       fi

else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif
        int main() { double x; return testme(&x); }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                      cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
echo "$as_me:$LINENO: result: no/failure" >&5
echo "${ECHO_T}no/failure" >&6
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6
      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
     echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6

  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




;;
       esac



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




        CXXFLAGS="-g3"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG(-Wall) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wall") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS -Wall"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wall") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag -Wall" >&5
echo $ECHO_N "checking for C++ compiler flag -Wall... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CXXFLAGS="$CXXFLAGS -Wall"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     CXXFLAGS="$CXXFLAGS -Wall"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG(-Wall) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG(-Wno-unused) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wno-unused") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS -Wno-unused"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wno-unused") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag -Wno-unused" >&5
echo $ECHO_N "checking for C++ compiler flag -Wno-unused... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CXXFLAGS="$CXXFLAGS -Wno-unused"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     CXXFLAGS="$CXXFLAGS -Wno-unused"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG(-Wno-unused) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG(-Wpointer-arith) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wpointer-arith") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS -Wpointer-arith"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wpointer-arith") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag -Wpointer-arith" >&5
echo $ECHO_N "checking for C++ compiler flag -Wpointer-arith... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CXXFLAGS="$CXXFLAGS -Wpointer-arith"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     CXXFLAGS="$CXXFLAGS -Wpointer-arith"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG(-Wpointer-arith) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG(-Wnested-externs) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wnested-externs") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS -Wnested-externs"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wnested-externs") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag -Wnested-externs" >&5
echo $ECHO_N "checking for C++ compiler flag -Wnested-externs... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CXXFLAGS="$CXXFLAGS -Wnested-externs"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     CXXFLAGS="$CXXFLAGS -Wnested-externs"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG(-Wnested-externs) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG(-Wwrite-strings) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wwrite-strings") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS -Wwrite-strings"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wwrite-strings") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag -Wwrite-strings" >&5
echo $ECHO_N "checking for C++ compiler flag -Wwrite-strings... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CXXFLAGS="$CXXFLAGS -Wwrite-strings"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     CXXFLAGS="$CXXFLAGS -Wwrite-strings"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG(-Wwrite-strings) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG(-Wdeclaration-after-statement) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wdeclaration-after-statement") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS -Wdeclaration-after-statement"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wdeclaration-after-statement") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag -Wdeclaration-after-statement" >&5
echo $ECHO_N "checking for C++ compiler flag -Wdeclaration-after-statement... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CXXFLAGS="$CXXFLAGS -Wdeclaration-after-statement"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     CXXFLAGS="$CXXFLAGS -Wdeclaration-after-statement"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG(-Wdeclaration-after-statement) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG(-Wmissing-format-attribute) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wmissing-format-attribute") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wmissing-format-attribute") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag -Wmissing-format-attribute" >&5
echo $ECHO_N "checking for C++ compiler flag -Wmissing-format-attribute... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG(-Wmissing-format-attribute) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	if test "$use_pthreads" != "no" ; then
        # some crappy pthread mutex implementations generate warnings without -Wno-missing-braces
	echo "$as_me:$LINENO: checking for buggy pthread.h mutex initializers" >&5
echo $ECHO_N "checking for buggy pthread.h mutex initializers... $ECHO_C" >&6
        oldCXXFLAGS="$CXXFLAGS"
        # OSF and FREEBSD require the -pthread compiler flag when including pthread.h
        case "$target_os" in
          osf*)     CXXFLAGS="-pthread $CXXFLAGS" ;;
          freebsd*) CXXFLAGS="-pthread $CXXFLAGS" ;;
        esac



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"
#include <pthread.h>
int main() {
pthread_mutex_t fastmutex = PTHREAD_MUTEX_INITIALIZER;
; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	echo "$as_me:$LINENO: result: buggy" >&5
echo "${ECHO_T}buggy" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG(-Wno-missing-braces) vvvvvvvvvvvvvvvvvvvvvv (L:6)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wno-missing-braces") vvvvvvvvvvvvvvvvvvvvvv (L:7)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS -Wno-missing-braces"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wno-missing-braces") ^^^^^^^^^^^^^^^^^^^^^^ (L:7)



echo "$as_me:$LINENO: checking for C++ compiler flag -Wno-missing-braces" >&5
echo $ECHO_N "checking for C++ compiler flag -Wno-missing-braces... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:8)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)



 oldCXXFLAGS="$oldCXXFLAGS -Wno-missing-braces"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:10)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     oldCXXFLAGS="$oldCXXFLAGS -Wno-missing-braces"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG(-Wno-missing-braces) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)




    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	echo "$as_me:$LINENO: result: buggy" >&5
echo "${ECHO_T}buggy" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG(-Wno-missing-braces) vvvvvvvvvvvvvvvvvvvvvv (L:6)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wno-missing-braces") vvvvvvvvvvvvvvvvvvvvvv (L:7)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS -Wno-missing-braces"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wno-missing-braces") ^^^^^^^^^^^^^^^^^^^^^^ (L:7)



echo "$as_me:$LINENO: checking for C++ compiler flag -Wno-missing-braces" >&5
echo $ECHO_N "checking for C++ compiler flag -Wno-missing-braces... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:8)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)



 oldCXXFLAGS="$oldCXXFLAGS -Wno-missing-braces"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:10)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     oldCXXFLAGS="$oldCXXFLAGS -Wno-missing-braces"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG(-Wno-missing-braces) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
    #bug611: ignore failures here, which may be due to broken/missing pthreads support
           #AC_MSG_ERROR(failure while checking for buggy pthread.h mutexes)
	   echo "$as_me:$LINENO: result: failure - ignored" >&5
echo "${ECHO_T}failure - ignored" >&6



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        CXXFLAGS="$oldCXXFLAGS"
	fi
        case "$target_os" in
          solaris*) # hide pragma warnings in system header files included by absolute path



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG(-Wno-unknown-pragmas) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wno-unknown-pragmas") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -Wno-unknown-pragmas") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag -Wno-unknown-pragmas" >&5
echo $ECHO_N "checking for C++ compiler flag -Wno-unknown-pragmas... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG(-Wno-unknown-pragmas) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        esac
        #GASNET_TRY_CXXFLAG([-ansi -U__STRICT_ANSI__],[[CXX]FLAGS="$[CXX]FLAGS -ansi -U__STRICT_ANSI__"])

       MISC_CXXFLAGS="$MISC_CXXFLAGS $CXXFLAGS"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    ;;
    PGI)   MISC_CXXFLAGS="-w -Masmkeyword" ;; # apparently has no way to indep control warnings
    KAI)   MISC_CXXFLAGS="--diag_suppress 611 --diag_suppress 610" ;;
    MIPS)  MISC_CXXFLAGS="-diag_error 1035 -diag_suppress 1171,1174,1209,1552,1681,1682 -LANG:std -common" ;;
    HP)    MISC_CXXFLAGS="+W612 +W749 +W2111 +W2174 +W2177 +W2236 +W2550"
           CXXOPTFLAGS="+O3"
           ;;
    Compaq) MISC_CXXFLAGS="-msg_disable extrasemi,boolexprconst,codeunreachable" ;;
    MTA)   MISC_CXXFLAGS="-exceptions -display_error_number -WS 111,174,238"
           CXXDEBUGFLAGS="-g2"
           CXXOPTFLAGS="-O3"
      ;;
    Intel) MISC_CXXFLAGS="-wd654 -wd1125 -wd279"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG(-wd1572) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -wd1572") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS -wd1572"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS -wd1572") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag -wd1572" >&5
echo $ECHO_N "checking for C++ compiler flag -wd1572... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 MISC_CXXFLAGS="$MISC_CXXFLAGS -wd1572"

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     MISC_CXXFLAGS="$MISC_CXXFLAGS -wd1572"
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG(-wd1572) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



           ;;
    XLC)


  if test "$GASNETI_PTR_BITS" = 32 -a "$DISABLE_PPC64" != 1 -a "$cross_compiling" != "yes"; then
    # Bug 1587: "for flag in ; do" chokes the shell on Solaris
    # Bug 1589: Use of m4_ifval([]) to avoid bug 1587 chokes autoconf 2.13
    # So, we add a dummy element to keep the for-loop list non-empty, and then skip it.
    for flag in  DUMMY ; do
      if test "$flag" != DUMMY ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $flag"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag $flag" >&5
echo $ECHO_N "checking for C++ compiler flag $flag... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ppc64_flag_worked=1

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
   ppc64_flag_worked=0

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     ppc64_flag_worked=1
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     ppc64_flag_worked=0
   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ppc64_flag_worked=0


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        if test "$ppc64_flag_worked" = 1; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $MISC_CXXFLAGS $flag"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	  echo "$as_me:$LINENO: checking for working flag $flag" >&5
echo $ECHO_N "checking for working flag $flag... $ECHO_C" >&6
	  if test "$cross_compiling" = yes; then
  ppc64_flag_worked=1
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif
        int main() { double x; return testme(&x); }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ppc64_flag_worked=1
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ppc64_flag_worked=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	  if test "$ppc64_flag_worked" = 1; then
	    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      	    MISC_CXXFLAGS="$flag"
	    break
	  else
	    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	  fi
        fi
      fi
    done
  fi
  echo "$as_me:$LINENO: checking for PPC64 instruction support" >&5
echo $ECHO_N "checking for PPC64 instruction support... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $MISC_CXXFLAGS"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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
      :
      if test "$cross_compiling" = yes; then
   # Cross compiling.  For now just trust PTR_BITS.
		       if test "$GASNETI_PTR_BITS" = 64; then
                         echo "$as_me:$LINENO: result: yes (cross-compiling w/ 64-bit pointers)" >&5
echo "${ECHO_T}yes (cross-compiling w/ 64-bit pointers)" >&6
                         cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

		       else
                         echo "$as_me:$LINENO: result: no (cross-compiling w/ 32-bit pointers)" >&5
echo "${ECHO_T}no (cross-compiling w/ 32-bit pointers)" >&6
		       fi

else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif
        int main() { double x; return testme(&x); }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                      cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
echo "$as_me:$LINENO: result: no/failure" >&5
echo "${ECHO_T}no/failure" >&6
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	if test "$cross_compiling" = yes; then
   # Cross compiling.  For now just trust PTR_BITS.
		       if test "$GASNETI_PTR_BITS" = 64; then
                         echo "$as_me:$LINENO: result: yes (cross-compiling w/ 64-bit pointers)" >&5
echo "${ECHO_T}yes (cross-compiling w/ 64-bit pointers)" >&6
                         cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

		       else
                         echo "$as_me:$LINENO: result: no (cross-compiling w/ 32-bit pointers)" >&5
echo "${ECHO_T}no (cross-compiling w/ 32-bit pointers)" >&6
		       fi

else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	#include <stdio.h>
	#if defined(__xlC__)
	  static int testme(double *p);
	  #pragma mc_func testme {            \\
	    /* ARGS: r3 = p  LOCAL: r4, r5 */ \\
	    "38a00001" /* li   r5,1     */    \\
	    "38800000" /* li   r4,0     */    \\
	    "f8830000" /* std  r4,0(r3) */    \\
	    "e8a30000" /* ld   r5,0(r3) */    \\
	    "7ca32b78" /* mr   r3,r5    */    \\
	  }
	  #pragma reg_killed_by testme cr0, gr4, gr5
	#else
	  static int testme(double *p) {
	    int tmp, result;
	    __asm__ __volatile__ (
			"li	%2,1		\n\t"
			"li	%1,0		\n\t"
			"std	%1,0(%3)	\n\t"
			"ld	%2,0(%3)	\n\t"
			: "=m" (*p), "=&b" (tmp), "=&r" (result)
			: "b" (p) );
	    return result;
	  }
	#endif
        int main() { double x; return testme(&x); }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                      cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_PPC64 1
_ACEOF

else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
echo "$as_me:$LINENO: result: no/failure" >&5
echo "${ECHO_T}no/failure" >&6
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6
      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
     echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6

  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





     MISC_CXXFLAGS="$MISC_CXXFLAGS -qsuppress=1540-0809" # 1540-0809 = empty source file (some linux headers)
     case "$target_os" in
      aix*) MISC_CXXFLAGS="$MISC_CXXFLAGS -qeh -qweaksymbol" ;;
      *) MISC_CXXFLAGS="$MISC_CXXFLAGS -qeh" ;;
     esac ;;
    Sun) if test "$target_cpu" = "sparc"; then


  if test "$GASNETI_PTR_BITS" = 32 -a "$DISABLE_ULTRASPARC" != 1; then
    for flag in "-xarch=v8plusb" "-xarch=v8plusa" "-xarch=v8plus" ; do



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $flag"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C++ compiler flag $flag" >&5
echo $ECHO_N "checking for C++ compiler flag $flag... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ultrasparc_flag_worked=1

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CXXFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
   ultrasparc_flag_worked=0

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CXXFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     ultrasparc_flag_worked=1
   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CXXFLAG_TMP" >&6
     ultrasparc_flag_worked=0
   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



 ultrasparc_flag_worked=0


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      if test "$ultrasparc_flag_worked" = 1; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $MISC_CXXFLAGS $flag"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	echo "$as_me:$LINENO: checking for working flag $flag" >&5
echo $ECHO_N "checking for working flag $flag... $ECHO_C" >&6
	if test "$cross_compiling" = yes; then
  ultrasparc_flag_worked=1
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

          void foo(void) {
            #ifdef __GNUC__
              register void * addr = 0;
              register int oldval = 0;
              register int newval = 1;
              __asm__ __volatile__ ("cas	[%2], %0, %1"
                                    : "=&r"(oldval), "=&r"(newval) : "r" (addr) : "memory");
            #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
              __asm("cas	[%i0], %i1, %i2");
            #else
              #error unknown sparc compiler
            #endif
          }
           int main() { return 0; }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ultrasparc_flag_worked=1
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ultrasparc_flag_worked=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	if test "$ultrasparc_flag_worked" = 1; then
	  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      	  MISC_CXXFLAGS="$flag"
	  break
	else
	  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
	fi
      fi
    done
  fi
  echo "$as_me:$LINENO: checking for UltraSPARC instruction support" >&5
echo $ECHO_N "checking for UltraSPARC instruction support... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $MISC_CXXFLAGS"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $MISC_CXXFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

          void foo(void) {
            #ifdef __GNUC__
              register void * addr = 0;
              register int oldval = 0;
              register int newval = 1;
              __asm__ __volatile__ ("cas	[%2], %0, %1"
                                    : "=&r"(oldval), "=&r"(newval) : "r" (addr) : "memory");
            #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
              __asm("cas	[%i0], %i1, %i2");
            #else
              #error unknown sparc compiler
            #endif
          }

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                 cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_ULTRASPARC 1
_ACEOF


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.cc
  gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
    	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6

    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	 echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                 cat >>confdefs.h <<\_ACEOF
#define GASNETI_ARCH_ULTRASPARC 1
_ACEOF


      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"
	 echo "$as_me:$LINENO: result: no/warning" >&5
echo "${ECHO_T}no/warning" >&6
      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CXXCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5
     echo "$as_me:$LINENO: result: no/error" >&5
echo "${ECHO_T}no/error" >&6

  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CXXCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





         fi
      ;;
    NEC)   MISC_CXXFLAGS="-woff=68:111:174:177:236:301:550:940 -Kexceptions"
           CXXDEBUGFLAGS="-g -Cnoopt -Cdebug"
	   GASNET_UDP_LIBS="-Kexceptions"
      ;;
    Cray)
     case "$target_cpu" in
       # Cray CC v3.3.0.2 fails to accept "-htaskprivate", but accepts "-htask private", v3.6.0.2 accepts neither
      alphaev5) MISC_CXXFLAGS="-hnomessage=236:611:997 -hexceptions -hnew_for_init $LIBCM" ;; # T3E
      *)        MISC_CXXFLAGS="-hnomessage=236:611:997 -hexceptions -hnew_for_init $LIBCM" ;; # X1
     esac ;;
  esac
  if test "$BUILDCONFIG" = "optimize" ; then
    CXXFLAGS="$CXXOPTFLAGS"
  else
    CXXFLAGS="$CXXDEBUGFLAGS"
  fi
  case "$target" in
    *-uclinux-*) # uclinux requires -Os
      MISC_CXXFLAGS="$MISC_CXXFLAGS -DGASNET_ALLOW_OPTIMIZED_DEBUG=1" ;;
    *)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_OPTIMIZEDDEBUG(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

 if test "$enable_debug" = "yes" ; then
  echo "$as_me:$LINENO: checking CXX for debug vs. optimize compilation conflict" >&5
echo $ECHO_N "checking CXX for debug vs. optimize compilation conflict... $ECHO_C" >&6


  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$CXX") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$CXX"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$CXX") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CXXFLAGS $CXXCPPFLAGS $MISC_CXXFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CXXFLAGS $CXXCPPFLAGS $MISC_CXXFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CXXFLAGS $CXXCPPFLAGS $MISC_CXXFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


    #if defined(__OPTIMIZE__) || defined(NDEBUG)
	choke me
    #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6


echo
echo "configure error: User requested --enable-debug but CXX or CXXFLAGS has enabled optimization (-O) or disabled assertions (-DNDEBUG). Try setting CXX='$CXX -O0 -UNDEBUG' or changing CXXFLAGS"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }



fi
rm -f conftest.$ac_objext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

 fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_OPTIMIZEDDEBUG(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    ;;
  esac




# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(cxxLIBS,) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for cxxLIBS in environment" >&5
echo $ECHO_N "checking for cxxLIBS in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_cxxLIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${cxxLIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cxxlibs" != ""; then
	      gasnet_cv_envvar_cxxLIBS="$with_cxxlibs"
	      envval_src_cxxLIBS=given
	    else
	      gasnet_cv_envvar_cxxLIBS=""
	      envval_src_cxxLIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_cxxLIBS="$cxxLIBS"
	    envval_src_cxxLIBS=given
      esac

fi


  cxxLIBS="$gasnet_cv_envvar_cxxLIBS"
  case "$envval_src_cxxLIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$cxxLIBS\"" >&5
echo "${ECHO_T}using cached value \"$cxxLIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$cxxLIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$cxxLIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$cxxLIBS\"" >&5
echo "${ECHO_T}yes, using \"$cxxLIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(cxxLIBS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)


             # C++ LIBS for any C++ link



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(cxxLDFLAGS,) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for cxxLDFLAGS in environment" >&5
echo $ECHO_N "checking for cxxLDFLAGS in environment... $ECHO_C" >&6



# Check whether --with-cxxldflags or --without-cxxldflags was given.
if test "${with_cxxldflags+set}" = set; then
  withval="$with_cxxldflags"

fi;



  envval_src_cxxLDFLAGS="cached"
  if test "${gasnet_cv_envvar_cxxLDFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${cxxLDFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cxxldflags" != ""; then
	      gasnet_cv_envvar_cxxLDFLAGS="$with_cxxldflags"
	      envval_src_cxxLDFLAGS=given
	    else
	      gasnet_cv_envvar_cxxLDFLAGS=""
	      envval_src_cxxLDFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_cxxLDFLAGS="$cxxLDFLAGS"
	    envval_src_cxxLDFLAGS=given
      esac

fi


  cxxLDFLAGS="$gasnet_cv_envvar_cxxLDFLAGS"
  case "$envval_src_cxxLDFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$cxxLDFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$cxxLDFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$cxxLDFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$cxxLDFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$cxxLDFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$cxxLDFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(cxxLDFLAGS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)


          # C++ LDFLAGS for any C++ link
  GASNET_UDP_LIBS="$GASNET_UDP_LIBS $cxxLIBS"






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $CXXCPPFLAGS $MISC_CXXFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CXXFLAGS" = "" ; then
    _pushcnt_CXXFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CXXFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS
  eval _pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CXXFLAGS="$CXXFLAGS $CXXCPPFLAGS $MISC_CXXFLAGS"
  echo "pushed new CXXFLAGS value: $CXXFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CXXFLAGS,"$CXXFLAGS $CXXCPPFLAGS $MISC_CXXFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LDFLAGS,"$LDFLAGS $cxxLDFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LDFLAGS" = "" ; then
    _pushcnt_LDFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LDFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LDFLAGS_$_pushcnt_LDFLAGS=\$LDFLAGS
  eval _pushedvarset_LDFLAGS_$_pushcnt_LDFLAGS=$_gasnet_pushvar_isset
  _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LDFLAGS="$LDFLAGS $cxxLDFLAGS"
  echo "pushed new LDFLAGS value: $LDFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LDFLAGS,"$LDFLAGS $cxxLDFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$LIBS $cxxLIBS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$LIBS $cxxLIBS"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$LIBS $cxxLIBS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_WITHCC(for working C++ exceptions,cxx_exceptions,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_LINK(for working C++ exceptions,cxx_exceptions,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking for working C++ exceptions" >&5
echo $ECHO_N "checking for working C++ exceptions... $ECHO_C" >&6
if test "${gasnet_cv_cxx_exceptions+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

     try {
       int *p = new int[10];
       throw p;
       return 1;
     } catch (int *exn) {
       if (exn) return 0;
       else return 2;
     }

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_exceptions=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cxx_exceptions=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cxx_exceptions" >&5
echo "${ECHO_T}$gasnet_cv_cxx_exceptions" >&6
if test "$gasnet_cv_cxx_exceptions" = yes; then
  :

else
  :


echo
echo "configure error:  \"I can\'t figure out how to build and run a program that uses C++ exceptions\"  "
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(for working C++ exceptions,cxx_exceptions,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN(for working C++ exceptions,cxx_exceptions,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking for working C++ exceptions" >&5
echo $ECHO_N "checking for working C++ exceptions... $ECHO_C" >&6
if test "${gasnet_cv_cxx_exceptions+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


      int main() {

     try {
       int *p = new int[10];
       throw p;
       return 1;
     } catch (int *exn) {
       if (exn) return 0;
       else return 2;
     }

	return 0;
      }

_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cxx_exceptions=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv_cxx_exceptions=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cxx_exceptions" >&5
echo "${ECHO_T}$gasnet_cv_cxx_exceptions" >&6
if test "$gasnet_cv_cxx_exceptions" = yes; then
  :

else
  :


echo
echo "configure error:  \"I can\'t figure out how to build and run a program that uses C++ exceptions\"  "
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN(for working C++ exceptions,cxx_exceptions,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_WITHCC(for working C++ exceptions,cxx_exceptions,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CXXFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CXXFLAGS" -ge "1"; then
    _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CXXFLAGS_$_pushcnt_CXXFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS
      echo "popping CXXFLAGS back to: $CXXFLAGS" >&5
    else
      unset CXXFLAGS
      echo "popping CXXFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CXXFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LDFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LDFLAGS" -ge "1"; then
    _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LDFLAGS_$_pushcnt_LDFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LDFLAGS=\$_pushedvar_LDFLAGS_$_pushcnt_LDFLAGS
      echo "popping LDFLAGS back to: $LDFLAGS" >&5
    else
      unset LDFLAGS
      echo "popping LDFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LDFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  supported_amudp=yes
  if test "$force_udp$supported_udp" = yesno ; then
    { { echo "$as_me:$LINENO: error: User requested --enable-udp but AMUDP is not supported on your system" >&5
echo "$as_me: error: User requested --enable-udp but AMUDP is not supported on your system" >&2;}
   { (exit 1); exit 1; }; }
  fi

  if test $supported_amudp = yes; then
    # detect libraries necessary for udp-* backends



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS=""
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      echo "$as_me:$LINENO: checking for library containing socket" >&5
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
if test "${ac_cv_search_socket+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_socket=no
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 socket ();
int
main ()
{
socket ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_socket="none required"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_socket" = no; then
  for ac_lib in socket; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 socket ();
int
main ()
{
socket ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_socket="-l$ac_lib"
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
echo "${ECHO_T}$ac_cv_search_socket" >&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 "$as_me:$LINENO: checking for library containing gethostbyname" >&5
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
if test "${ac_cv_search_gethostbyname+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_gethostbyname=no
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_gethostbyname="none required"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_gethostbyname" = no; then
  for ac_lib in nsl; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 gethostbyname ();
int
main ()
{
gethostbyname ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_gethostbyname="-l$ac_lib"
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&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

      GASNET_UDP_LIBS="$GASNET_UDP_LIBS $LIBS"

      if test "$have_udp" = yes ; then
	echo "$as_me:$LINENO: checking for working UDP configuration" >&5
echo $ECHO_N "checking for working UDP configuration... $ECHO_C" >&6
	# TODO: add a basic test of the UDP configuration to make sure it works
	# this is a mess because every OS has different headers required
	udp_test_worked=yes

	if test "$udp_test_worked" = yes ; then
	    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	else
	    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: build test failed: I don't know how to build UDP programs on your system" >&5
echo "$as_me: WARNING: build test failed: I don't know how to build UDP programs on your system" >&2;}
  echo "build test failed: I don't know how to build UDP programs on your system" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




	    have_udp=no
	fi
      fi

      if test "$force_udp$have_udp" = yesno ; then


echo
echo "configure error: User requested --enable-udp but I don't know how to build UDP programs for your system"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


      fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
fi


if test "$have_cxx" = 1; then
  HAVE_CXX_TRUE=
  HAVE_CXX_FALSE='#'
else
  HAVE_CXX_TRUE='#'
  HAVE_CXX_FALSE=
fi




if test "$enabled_udp$have_udp" = yesyes; then
  USE_UDP_CONDUIT_TRUE=
  USE_UDP_CONDUIT_FALSE='#'
else
  USE_UDP_CONDUIT_TRUE='#'
  USE_UDP_CONDUIT_FALSE=
fi

if test "$enabled_udp$have_udp" = yesyes ; then
  CONDUITS="$CONDUITS udp"
  echo "  portable UDP network conduit (udp)                 ON" >> $CONDUIT_LIST
else
  echo "  portable UDP network conduit (udp)                 OFF" >> $CONDUIT_LIST
fi





# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(GASNET_CSPAWN_CMD,"$TI_CSPAWN_CMD") vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for GASNET_CSPAWN_CMD in environment" >&5
echo $ECHO_N "checking for GASNET_CSPAWN_CMD in environment... $ECHO_C" >&6



# Check whether --with-gasnet-cspawn-cmd or --without-gasnet-cspawn-cmd was given.
if test "${with_gasnet_cspawn_cmd+set}" = set; then
  withval="$with_gasnet_cspawn_cmd"

fi;



  envval_src_GASNET_CSPAWN_CMD="cached"
  if test "${gasnet_cv_envvar_GASNET_CSPAWN_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${GASNET_CSPAWN_CMD-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_gasnet_cspawn_cmd" != ""; then
	      gasnet_cv_envvar_GASNET_CSPAWN_CMD="$with_gasnet_cspawn_cmd"
	      envval_src_GASNET_CSPAWN_CMD=given
	    else
	      gasnet_cv_envvar_GASNET_CSPAWN_CMD=""$TI_CSPAWN_CMD""
	      envval_src_GASNET_CSPAWN_CMD=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_GASNET_CSPAWN_CMD="$GASNET_CSPAWN_CMD"
	    envval_src_GASNET_CSPAWN_CMD=given
      esac

fi


  GASNET_CSPAWN_CMD="$gasnet_cv_envvar_GASNET_CSPAWN_CMD"
  case "$envval_src_GASNET_CSPAWN_CMD" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$GASNET_CSPAWN_CMD\"" >&5
echo "${ECHO_T}using cached value \"$GASNET_CSPAWN_CMD\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$GASNET_CSPAWN_CMD\"" >&5
echo "${ECHO_T}no, defaulting to \"$GASNET_CSPAWN_CMD\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$GASNET_CSPAWN_CMD\"" >&5
echo "${ECHO_T}yes, using \"$GASNET_CSPAWN_CMD\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(GASNET_CSPAWN_CMD,"$TI_CSPAWN_CMD") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$GASNET_CSPAWN_CMD" != "" ; then
  cat >>confdefs.h <<_ACEOF
#define GASNET_CSPAWN_CMD "$GASNET_CSPAWN_CMD"
_ACEOF

fi

#---------------------------------------------------------------------------------------------------------------
# MPI/AMMPI Configuration

# --enable-mpi-compat controls MPI compatibility in all conduits



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(mpi-compat,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-mpi-compat or --disable-mpi-compat was given.
if test "${enable_mpi_compat+set}" = set; then
  enableval="$enable_mpi_compat"

fi;
# Check whether --enable-mpi-compat or --disable-mpi-compat was given.
if test "${enable_mpi_compat+set}" = set; then
  enableval="$enable_mpi_compat"

fi;
case "$enable_mpi_compat" in
  no)  enabled_mpi_compat=no ;;
  yes) enabled_mpi_compat=yes;force_mpi_compat=yes ;;
  *)   enabled_mpi_compat=yes ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(mpi-compat,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




# --enable-mpi controls mpi-conduit




# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(mpi,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-mpi or --disable-mpi was given.
if test "${enable_mpi+set}" = set; then
  enableval="$enable_mpi"

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)  enabled_mpi=no ;;
  yes) enabled_mpi=yes;force_mpi=yes ;;
  *)   enabled_mpi=yes ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(mpi,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




if test $enabled_mpi = yes || test $enabled_mpi_compat = 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 "$BUILDCONFIG" = "debug" ; 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



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CC,mpicc) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_CC in environment" >&5
echo $ECHO_N "checking for MPI_CC in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_MPI_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CC-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cc" != ""; then
	      gasnet_cv_envvar_MPI_CC="$with_mpi_cc"
	      envval_src_MPI_CC=given
	    else
	      gasnet_cv_envvar_MPI_CC="mpicc"
	      envval_src_MPI_CC=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CC="$MPI_CC"
	    envval_src_MPI_CC=given
      esac

fi


  MPI_CC="$gasnet_cv_envvar_MPI_CC"
  case "$envval_src_MPI_CC" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CC\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CC\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CC\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CC\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CC\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CC\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CC,mpicc) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_SET_CHECKED_CFLAGS(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

if test "$MPI_CFLAGS" != "" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS=""
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # user-provided flags
else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,$MISC_CFLAGS $CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS="$MISC_CFLAGS $CFLAGS"
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,$MISC_CFLAGS $CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # try DEFAULT_CFLAGS



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$MPI_CC") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$MPI_CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$MPI_CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS=""
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($[MPI_CFLAGS]) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MPI_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



echo "$as_me:$LINENO: checking for C compiler flag $MPI_CFLAGS" >&5
echo $ECHO_N "checking for C compiler flag $MPI_CFLAGS... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)








# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:5)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:5)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($[MPI_CFLAGS]) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SET_CHECKED_CFLAGS(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_LIBS,) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_LIBS in environment" >&5
echo $ECHO_N "checking for MPI_LIBS in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_MPI_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_libs" != ""; then
	      gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs"
	      envval_src_MPI_LIBS=given
	    else
	      gasnet_cv_envvar_MPI_LIBS=""
	      envval_src_MPI_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS"
	    envval_src_MPI_LIBS=given
      esac

fi


  MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS"
  case "$envval_src_MPI_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_LIBS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPIRUN_CMD,mpirun -np %N %C) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPIRUN_CMD in environment" >&5
echo $ECHO_N "checking for MPIRUN_CMD in environment... $ECHO_C" >&6



# 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 test "${gasnet_cv_envvar_MPIRUN_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPIRUN_CMD-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpirun_cmd" != ""; then
	      gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd"
	      envval_src_MPIRUN_CMD=given
	    else
	      gasnet_cv_envvar_MPIRUN_CMD="mpirun -np %N %C"
	      envval_src_MPIRUN_CMD=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD"
	    envval_src_MPIRUN_CMD=given
      esac

fi


  MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD"
  case "$envval_src_MPIRUN_CMD" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}using cached value \"$MPIRUN_CMD\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPIRUN_CMD\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}yes, using \"$MPIRUN_CMD\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPIRUN_CMD,mpirun -np %N %C) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        ;;
    linux*)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CC,mpicc) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_CC in environment" >&5
echo $ECHO_N "checking for MPI_CC in environment... $ECHO_C" >&6




  envval_src_MPI_CC="cached"
  if test "${gasnet_cv_envvar_MPI_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CC-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cc" != ""; then
	      gasnet_cv_envvar_MPI_CC="$with_mpi_cc"
	      envval_src_MPI_CC=given
	    else
	      gasnet_cv_envvar_MPI_CC="mpicc"
	      envval_src_MPI_CC=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CC="$MPI_CC"
	    envval_src_MPI_CC=given
      esac

fi


  MPI_CC="$gasnet_cv_envvar_MPI_CC"
  case "$envval_src_MPI_CC" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CC\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CC\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CC\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CC\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CC\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CC\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CC,mpicc) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_SET_CHECKED_CFLAGS(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

if test "$MPI_CFLAGS" != "" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS=""
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # user-provided flags
else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,$MISC_CFLAGS $CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS="$MISC_CFLAGS $CFLAGS"
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,$MISC_CFLAGS $CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # try DEFAULT_CFLAGS



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$MPI_CC") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$MPI_CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$MPI_CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS=""
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($[MPI_CFLAGS]) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MPI_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



echo "$as_me:$LINENO: checking for C compiler flag $MPI_CFLAGS" >&5
echo $ECHO_N "checking for C compiler flag $MPI_CFLAGS... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)








# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:5)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:5)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($[MPI_CFLAGS]) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SET_CHECKED_CFLAGS(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_LIBS,) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_LIBS in environment" >&5
echo $ECHO_N "checking for MPI_LIBS in environment... $ECHO_C" >&6




  envval_src_MPI_LIBS="cached"
  if test "${gasnet_cv_envvar_MPI_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_libs" != ""; then
	      gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs"
	      envval_src_MPI_LIBS=given
	    else
	      gasnet_cv_envvar_MPI_LIBS=""
	      envval_src_MPI_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS"
	    envval_src_MPI_LIBS=given
      esac

fi


  MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS"
  case "$envval_src_MPI_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_LIBS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPIRUN_CMD,mpirun -np %N %C) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPIRUN_CMD in environment" >&5
echo $ECHO_N "checking for MPIRUN_CMD in environment... $ECHO_C" >&6




  envval_src_MPIRUN_CMD="cached"
  if test "${gasnet_cv_envvar_MPIRUN_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPIRUN_CMD-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpirun_cmd" != ""; then
	      gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd"
	      envval_src_MPIRUN_CMD=given
	    else
	      gasnet_cv_envvar_MPIRUN_CMD="mpirun -np %N %C"
	      envval_src_MPIRUN_CMD=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD"
	    envval_src_MPIRUN_CMD=given
      esac

fi


  MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD"
  case "$envval_src_MPIRUN_CMD" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}using cached value \"$MPIRUN_CMD\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPIRUN_CMD\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}yes, using \"$MPIRUN_CMD\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPIRUN_CMD,mpirun -np %N %C) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        ;;
    irix*)
	# use SGI native MPI library
        # user may need to do a "module load mpt" to make this work



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CC,cc -n32) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_CC in environment" >&5
echo $ECHO_N "checking for MPI_CC in environment... $ECHO_C" >&6




  envval_src_MPI_CC="cached"
  if test "${gasnet_cv_envvar_MPI_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CC-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cc" != ""; then
	      gasnet_cv_envvar_MPI_CC="$with_mpi_cc"
	      envval_src_MPI_CC=given
	    else
	      gasnet_cv_envvar_MPI_CC="cc -n32"
	      envval_src_MPI_CC=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CC="$MPI_CC"
	    envval_src_MPI_CC=given
      esac

fi


  MPI_CC="$gasnet_cv_envvar_MPI_CC"
  case "$envval_src_MPI_CC" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CC\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CC\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CC\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CC\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CC\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CC\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CC,cc -n32) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        # cannot use MISC_CFLAGS here because C compiler may not be MIPSPro
        # -common gets us correct linking behavior for tentative definitions
	BASIC_MPI_CFLAGS="-diag_error 1035 -diag_suppress1171,1174,1209,1552 -common"
	if test "$BUILDCONFIG" = "optimize" ; then
      	  BASIC_MPI_CFLAGS="-O2 $BASIC_MPI_CFLAGS"
	else
      	  BASIC_MPI_CFLAGS="-g $BASIC_MPI_CFLAGS"
	fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SET_CHECKED_CFLAGS(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

if test "$MPI_CFLAGS" != "" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS=""
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # user-provided flags
else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,$BASIC_MPI_CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS="$BASIC_MPI_CFLAGS"
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,$BASIC_MPI_CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # try DEFAULT_CFLAGS



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$MPI_CC") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$MPI_CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$MPI_CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS=""
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($[MPI_CFLAGS]) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MPI_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



echo "$as_me:$LINENO: checking for C compiler flag $MPI_CFLAGS" >&5
echo $ECHO_N "checking for C compiler flag $MPI_CFLAGS... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)








# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:5)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:5)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($[MPI_CFLAGS]) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SET_CHECKED_CFLAGS(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_LIBS,-lmpi) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_LIBS in environment" >&5
echo $ECHO_N "checking for MPI_LIBS in environment... $ECHO_C" >&6




  envval_src_MPI_LIBS="cached"
  if test "${gasnet_cv_envvar_MPI_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_libs" != ""; then
	      gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs"
	      envval_src_MPI_LIBS=given
	    else
	      gasnet_cv_envvar_MPI_LIBS="-lmpi"
	      envval_src_MPI_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS"
	    envval_src_MPI_LIBS=given
      esac

fi


  MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS"
  case "$envval_src_MPI_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_LIBS,-lmpi) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPIRUN_CMD,mpirun -np %N %C) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPIRUN_CMD in environment" >&5
echo $ECHO_N "checking for MPIRUN_CMD in environment... $ECHO_C" >&6




  envval_src_MPIRUN_CMD="cached"
  if test "${gasnet_cv_envvar_MPIRUN_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPIRUN_CMD-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpirun_cmd" != ""; then
	      gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd"
	      envval_src_MPIRUN_CMD=given
	    else
	      gasnet_cv_envvar_MPIRUN_CMD="mpirun -np %N %C"
	      envval_src_MPIRUN_CMD=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD"
	    envval_src_MPIRUN_CMD=given
      esac

fi


  MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD"
  case "$envval_src_MPIRUN_CMD" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}using cached value \"$MPIRUN_CMD\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPIRUN_CMD\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}yes, using \"$MPIRUN_CMD\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPIRUN_CMD,mpirun -np %N %C) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        ;;
    aix*)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CC,mpcc) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_CC in environment" >&5
echo $ECHO_N "checking for MPI_CC in environment... $ECHO_C" >&6




  envval_src_MPI_CC="cached"
  if test "${gasnet_cv_envvar_MPI_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CC-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cc" != ""; then
	      gasnet_cv_envvar_MPI_CC="$with_mpi_cc"
	      envval_src_MPI_CC=given
	    else
	      gasnet_cv_envvar_MPI_CC="mpcc"
	      envval_src_MPI_CC=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CC="$MPI_CC"
	    envval_src_MPI_CC=given
      esac

fi


  MPI_CC="$gasnet_cv_envvar_MPI_CC"
  case "$envval_src_MPI_CC" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CC\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CC\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CC\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CC\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CC\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CC\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CC,mpcc) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	BASIC_MPI_CFLAGS=""
	if test "$BUILDCONFIG" = "optimize" ; 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



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SET_CHECKED_CFLAGS(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

if test "$MPI_CFLAGS" != "" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS=""
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # user-provided flags
else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,$BASIC_MPI_CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS="$BASIC_MPI_CFLAGS"
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,$BASIC_MPI_CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # try DEFAULT_CFLAGS



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$MPI_CC") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$MPI_CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$MPI_CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS=""
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($[MPI_CFLAGS]) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MPI_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



echo "$as_me:$LINENO: checking for C compiler flag $MPI_CFLAGS" >&5
echo $ECHO_N "checking for C compiler flag $MPI_CFLAGS... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)








# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:5)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:5)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($[MPI_CFLAGS]) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SET_CHECKED_CFLAGS(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_LIBS,-Wl,-bbigtoc) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_LIBS in environment" >&5
echo $ECHO_N "checking for MPI_LIBS in environment... $ECHO_C" >&6




  envval_src_MPI_LIBS="cached"
  if test "${gasnet_cv_envvar_MPI_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_libs" != ""; then
	      gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs"
	      envval_src_MPI_LIBS=given
	    else
	      gasnet_cv_envvar_MPI_LIBS="-Wl,-bbigtoc"
	      envval_src_MPI_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS"
	    envval_src_MPI_LIBS=given
      esac

fi


  MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS"
  case "$envval_src_MPI_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_LIBS,-Wl,-bbigtoc) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPIRUN_CMD,poe %C -procs %N -nodes %M -rmpool 1 -euilib us -retry 1 -retrycount 10000 -msg_api mpi) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPIRUN_CMD in environment" >&5
echo $ECHO_N "checking for MPIRUN_CMD in environment... $ECHO_C" >&6




  envval_src_MPIRUN_CMD="cached"
  if test "${gasnet_cv_envvar_MPIRUN_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPIRUN_CMD-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpirun_cmd" != ""; then
	      gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd"
	      envval_src_MPIRUN_CMD=given
	    else
	      gasnet_cv_envvar_MPIRUN_CMD="poe %C -procs %N -nodes %M -rmpool 1 -euilib us -retry 1 -retrycount 10000 -msg_api mpi"
	      envval_src_MPIRUN_CMD=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD"
	    envval_src_MPIRUN_CMD=given
      esac

fi


  MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD"
  case "$envval_src_MPIRUN_CMD" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}using cached value \"$MPIRUN_CMD\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPIRUN_CMD\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}yes, using \"$MPIRUN_CMD\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPIRUN_CMD,poe %C -procs %N -nodes %M -rmpool 1 -euilib us -retry 1 -retrycount 10000 -msg_api mpi) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        ;;
    osf*)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CC,cc) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_CC in environment" >&5
echo $ECHO_N "checking for MPI_CC in environment... $ECHO_C" >&6




  envval_src_MPI_CC="cached"
  if test "${gasnet_cv_envvar_MPI_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CC-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cc" != ""; then
	      gasnet_cv_envvar_MPI_CC="$with_mpi_cc"
	      envval_src_MPI_CC=given
	    else
	      gasnet_cv_envvar_MPI_CC="cc"
	      envval_src_MPI_CC=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CC="$MPI_CC"
	    envval_src_MPI_CC=given
      esac

fi


  MPI_CC="$gasnet_cv_envvar_MPI_CC"
  case "$envval_src_MPI_CC" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CC\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CC\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CC\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CC\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CC\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CC\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CC,cc) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	BASIC_MPI_CFLAGS="-msg_disable extrasemi"
        if test "$BUILDCONFIG" = "optimize" ; then
          BASIC_MPI_CFLAGS="-fast -noifo -O4 -tune host -inline speed $BASIC_MPI_CFLAGS"
        else
          BASIC_MPI_CFLAGS="-g $BASIC_MPI_CFLAGS"
        fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SET_CHECKED_CFLAGS(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

if test "$MPI_CFLAGS" != "" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS=""
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # user-provided flags
else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,$BASIC_MPI_CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS="$BASIC_MPI_CFLAGS"
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,$BASIC_MPI_CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # try DEFAULT_CFLAGS



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$MPI_CC") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$MPI_CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$MPI_CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS=""
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($[MPI_CFLAGS]) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MPI_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



echo "$as_me:$LINENO: checking for C compiler flag $MPI_CFLAGS" >&5
echo $ECHO_N "checking for C compiler flag $MPI_CFLAGS... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)








# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:5)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:5)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($[MPI_CFLAGS]) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SET_CHECKED_CFLAGS(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_LIBS,-lmpi -lelan -lrt) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_LIBS in environment" >&5
echo $ECHO_N "checking for MPI_LIBS in environment... $ECHO_C" >&6




  envval_src_MPI_LIBS="cached"
  if test "${gasnet_cv_envvar_MPI_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_libs" != ""; then
	      gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs"
	      envval_src_MPI_LIBS=given
	    else
	      gasnet_cv_envvar_MPI_LIBS="-lmpi -lelan -lrt"
	      envval_src_MPI_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS"
	    envval_src_MPI_LIBS=given
      esac

fi


  MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS"
  case "$envval_src_MPI_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_LIBS,-lmpi -lelan -lrt) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPIRUN_CMD,prun -n %N -N %M %C) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPIRUN_CMD in environment" >&5
echo $ECHO_N "checking for MPIRUN_CMD in environment... $ECHO_C" >&6




  envval_src_MPIRUN_CMD="cached"
  if test "${gasnet_cv_envvar_MPIRUN_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPIRUN_CMD-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpirun_cmd" != ""; then
	      gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd"
	      envval_src_MPIRUN_CMD=given
	    else
	      gasnet_cv_envvar_MPIRUN_CMD="prun -n %N -N %M %C"
	      envval_src_MPIRUN_CMD=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD"
	    envval_src_MPIRUN_CMD=given
      esac

fi


  MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD"
  case "$envval_src_MPIRUN_CMD" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}using cached value \"$MPIRUN_CMD\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPIRUN_CMD\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}yes, using \"$MPIRUN_CMD\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPIRUN_CMD,prun -n %N -N %M %C) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        ;;
    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



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CC,cc) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_CC in environment" >&5
echo $ECHO_N "checking for MPI_CC in environment... $ECHO_C" >&6




  envval_src_MPI_CC="cached"
  if test "${gasnet_cv_envvar_MPI_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CC-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cc" != ""; then
	      gasnet_cv_envvar_MPI_CC="$with_mpi_cc"
	      envval_src_MPI_CC=given
	    else
	      gasnet_cv_envvar_MPI_CC="cc"
	      envval_src_MPI_CC=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CC="$MPI_CC"
	    envval_src_MPI_CC=given
      esac

fi


  MPI_CC="$gasnet_cv_envvar_MPI_CC"
  case "$envval_src_MPI_CC" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CC\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CC\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CC\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CC\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CC\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CC\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CC,cc) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        case "$target_cpu" in
          alphaev5) BASIC_MPI_CFLAGS="-hnomessage=236 -htaskprivate $LIBCM"  # T3E



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPIRUN_CMD,mpprun -n %N %C) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPIRUN_CMD in environment" >&5
echo $ECHO_N "checking for MPIRUN_CMD in environment... $ECHO_C" >&6




  envval_src_MPIRUN_CMD="cached"
  if test "${gasnet_cv_envvar_MPIRUN_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPIRUN_CMD-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpirun_cmd" != ""; then
	      gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd"
	      envval_src_MPIRUN_CMD=given
	    else
	      gasnet_cv_envvar_MPIRUN_CMD="mpprun -n %N %C"
	      envval_src_MPIRUN_CMD=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD"
	    envval_src_MPIRUN_CMD=given
      esac

fi


  MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD"
  case "$envval_src_MPIRUN_CMD" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}using cached value \"$MPIRUN_CMD\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPIRUN_CMD\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}yes, using \"$MPIRUN_CMD\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPIRUN_CMD,mpprun -n %N %C) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_LIBS,) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_LIBS in environment" >&5
echo $ECHO_N "checking for MPI_LIBS in environment... $ECHO_C" >&6




  envval_src_MPI_LIBS="cached"
  if test "${gasnet_cv_envvar_MPI_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_libs" != ""; then
	      gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs"
	      envval_src_MPI_LIBS=given
	    else
	      gasnet_cv_envvar_MPI_LIBS=""
	      envval_src_MPI_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS"
	    envval_src_MPI_LIBS=given
      esac

fi


  MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS"
  case "$envval_src_MPI_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_LIBS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



          ;;
          *)        BASIC_MPI_CFLAGS="-hnomessage=236 $LIBCM" # X1



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPIRUN_CMD,mpirun -np %N %C) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPIRUN_CMD in environment" >&5
echo $ECHO_N "checking for MPIRUN_CMD in environment... $ECHO_C" >&6




  envval_src_MPIRUN_CMD="cached"
  if test "${gasnet_cv_envvar_MPIRUN_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPIRUN_CMD-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpirun_cmd" != ""; then
	      gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd"
	      envval_src_MPIRUN_CMD=given
	    else
	      gasnet_cv_envvar_MPIRUN_CMD="mpirun -np %N %C"
	      envval_src_MPIRUN_CMD=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD"
	    envval_src_MPIRUN_CMD=given
      esac

fi


  MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD"
  case "$envval_src_MPIRUN_CMD" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}using cached value \"$MPIRUN_CMD\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPIRUN_CMD\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}yes, using \"$MPIRUN_CMD\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPIRUN_CMD,mpirun -np %N %C) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_LIBS,-lpthread) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_LIBS in environment" >&5
echo $ECHO_N "checking for MPI_LIBS in environment... $ECHO_C" >&6




  envval_src_MPI_LIBS="cached"
  if test "${gasnet_cv_envvar_MPI_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_libs" != ""; then
	      gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs"
	      envval_src_MPI_LIBS=given
	    else
	      gasnet_cv_envvar_MPI_LIBS="-lpthread"
	      envval_src_MPI_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS"
	    envval_src_MPI_LIBS=given
      esac

fi


  MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS"
  case "$envval_src_MPI_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_LIBS,-lpthread) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



          ;;
        esac
	if test "$BUILDCONFIG" = "optimize" ; then
    	  BASIC_MPI_CFLAGS="-O2 $BASIC_MPI_CFLAGS"
	else
    	  BASIC_MPI_CFLAGS="-g $BASIC_MPI_CFLAGS"
	fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SET_CHECKED_CFLAGS(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

if test "$MPI_CFLAGS" != "" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS=""
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # user-provided flags
else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,$BASIC_MPI_CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS="$BASIC_MPI_CFLAGS"
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,$BASIC_MPI_CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # try DEFAULT_CFLAGS



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$MPI_CC") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$MPI_CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$MPI_CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS=""
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($[MPI_CFLAGS]) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MPI_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



echo "$as_me:$LINENO: checking for C compiler flag $MPI_CFLAGS" >&5
echo $ECHO_N "checking for C compiler flag $MPI_CFLAGS... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)








# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:5)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:5)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($[MPI_CFLAGS]) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SET_CHECKED_CFLAGS(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        ;;
    mtx*)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CC,cc) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_CC in environment" >&5
echo $ECHO_N "checking for MPI_CC in environment... $ECHO_C" >&6




  envval_src_MPI_CC="cached"
  if test "${gasnet_cv_envvar_MPI_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CC-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cc" != ""; then
	      gasnet_cv_envvar_MPI_CC="$with_mpi_cc"
	      envval_src_MPI_CC=given
	    else
	      gasnet_cv_envvar_MPI_CC="cc"
	      envval_src_MPI_CC=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CC="$MPI_CC"
	    envval_src_MPI_CC=given
      esac

fi


  MPI_CC="$gasnet_cv_envvar_MPI_CC"
  case "$envval_src_MPI_CC" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CC\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CC\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CC\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CC\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CC\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CC\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CC,cc) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_SET_CHECKED_CFLAGS(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

if test "$MPI_CFLAGS" != "" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS=""
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # user-provided flags
else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,$MISC_CFLAGS $CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS="$MISC_CFLAGS $CFLAGS"
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,$MISC_CFLAGS $CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # try DEFAULT_CFLAGS



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$MPI_CC") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$MPI_CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$MPI_CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS=""
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($[MPI_CFLAGS]) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MPI_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



echo "$as_me:$LINENO: checking for C compiler flag $MPI_CFLAGS" >&5
echo $ECHO_N "checking for C compiler flag $MPI_CFLAGS... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)








# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:5)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:5)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($[MPI_CFLAGS]) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SET_CHECKED_CFLAGS(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_LIBS,-lmpi) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_LIBS in environment" >&5
echo $ECHO_N "checking for MPI_LIBS in environment... $ECHO_C" >&6




  envval_src_MPI_LIBS="cached"
  if test "${gasnet_cv_envvar_MPI_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_libs" != ""; then
	      gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs"
	      envval_src_MPI_LIBS=given
	    else
	      gasnet_cv_envvar_MPI_LIBS="-lmpi"
	      envval_src_MPI_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS"
	    envval_src_MPI_LIBS=given
      esac

fi


  MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS"
  case "$envval_src_MPI_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_LIBS,-lmpi) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPIRUN_CMD,mtarun -t %N -m %N /usr/bin/env _MPI_MT=%N %C) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPIRUN_CMD in environment" >&5
echo $ECHO_N "checking for MPIRUN_CMD in environment... $ECHO_C" >&6




  envval_src_MPIRUN_CMD="cached"
  if test "${gasnet_cv_envvar_MPIRUN_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPIRUN_CMD-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpirun_cmd" != ""; then
	      gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd"
	      envval_src_MPIRUN_CMD=given
	    else
	      gasnet_cv_envvar_MPIRUN_CMD="mtarun -t %N -m %N /usr/bin/env _MPI_MT=%N %C"
	      envval_src_MPIRUN_CMD=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD"
	    envval_src_MPIRUN_CMD=given
      esac

fi


  MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD"
  case "$envval_src_MPIRUN_CMD" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}using cached value \"$MPIRUN_CMD\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPIRUN_CMD\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}yes, using \"$MPIRUN_CMD\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPIRUN_CMD,mtarun -t %N -m %N /usr/bin/env _MPI_MT=%N %C) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        ;;
    superux*)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CC,mpic++ -Xa) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_CC in environment" >&5
echo $ECHO_N "checking for MPI_CC in environment... $ECHO_C" >&6




  envval_src_MPI_CC="cached"
  if test "${gasnet_cv_envvar_MPI_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CC-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cc" != ""; then
	      gasnet_cv_envvar_MPI_CC="$with_mpi_cc"
	      envval_src_MPI_CC=given
	    else
	      gasnet_cv_envvar_MPI_CC="mpic++ -Xa"
	      envval_src_MPI_CC=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CC="$MPI_CC"
	    envval_src_MPI_CC=given
      esac

fi


  MPI_CC="$gasnet_cv_envvar_MPI_CC"
  case "$envval_src_MPI_CC" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CC\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CC\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CC\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CC\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CC\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CC\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CC,mpic++ -Xa) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_SET_CHECKED_CFLAGS(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

if test "$MPI_CFLAGS" != "" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS=""
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # user-provided flags
else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,$MISC_CFLAGS $CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS="$MISC_CFLAGS $CFLAGS"
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,$MISC_CFLAGS $CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # try DEFAULT_CFLAGS



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$MPI_CC") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$MPI_CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$MPI_CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS=""
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($[MPI_CFLAGS]) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MPI_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



echo "$as_me:$LINENO: checking for C compiler flag $MPI_CFLAGS" >&5
echo $ECHO_N "checking for C compiler flag $MPI_CFLAGS... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)








# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:5)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:5)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($[MPI_CFLAGS]) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SET_CHECKED_CFLAGS(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_LIBS,) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_LIBS in environment" >&5
echo $ECHO_N "checking for MPI_LIBS in environment... $ECHO_C" >&6




  envval_src_MPI_LIBS="cached"
  if test "${gasnet_cv_envvar_MPI_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_libs" != ""; then
	      gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs"
	      envval_src_MPI_LIBS=given
	    else
	      gasnet_cv_envvar_MPI_LIBS=""
	      envval_src_MPI_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS"
	    envval_src_MPI_LIBS=given
      esac

fi


  MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS"
  case "$envval_src_MPI_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_LIBS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPIRUN_CMD,mpirun -np %N %C) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPIRUN_CMD in environment" >&5
echo $ECHO_N "checking for MPIRUN_CMD in environment... $ECHO_C" >&6




  envval_src_MPIRUN_CMD="cached"
  if test "${gasnet_cv_envvar_MPIRUN_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPIRUN_CMD-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpirun_cmd" != ""; then
	      gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd"
	      envval_src_MPIRUN_CMD=given
	    else
	      gasnet_cv_envvar_MPIRUN_CMD="mpirun -np %N %C"
	      envval_src_MPIRUN_CMD=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD"
	    envval_src_MPIRUN_CMD=given
      esac

fi


  MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD"
  case "$envval_src_MPIRUN_CMD" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}using cached value \"$MPIRUN_CMD\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPIRUN_CMD\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}yes, using \"$MPIRUN_CMD\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPIRUN_CMD,mpirun -np %N %C) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      ;;
    *)
      # unknown OS - if user doesn't provide info, nothing we can do



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CC,mpicc) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_CC in environment" >&5
echo $ECHO_N "checking for MPI_CC in environment... $ECHO_C" >&6




  envval_src_MPI_CC="cached"
  if test "${gasnet_cv_envvar_MPI_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CC-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cc" != ""; then
	      gasnet_cv_envvar_MPI_CC="$with_mpi_cc"
	      envval_src_MPI_CC=given
	    else
	      gasnet_cv_envvar_MPI_CC="mpicc"
	      envval_src_MPI_CC=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CC="$MPI_CC"
	    envval_src_MPI_CC=given
      esac

fi


  MPI_CC="$gasnet_cv_envvar_MPI_CC"
  case "$envval_src_MPI_CC" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CC\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CC\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CC\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CC\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CC\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CC\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CC,mpicc) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_SET_CHECKED_CFLAGS(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

if test "$MPI_CFLAGS" != "" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS=""
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # user-provided flags
else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_CFLAGS,$MISC_CFLAGS $CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for MPI_CFLAGS in environment" >&5
echo $ECHO_N "checking for MPI_CFLAGS in environment... $ECHO_C" >&6




  envval_src_MPI_CFLAGS="cached"
  if test "${gasnet_cv_envvar_MPI_CFLAGS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_cflags" != ""; then
	      gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags"
	      envval_src_MPI_CFLAGS=given
	    else
	      gasnet_cv_envvar_MPI_CFLAGS="$MISC_CFLAGS $CFLAGS"
	      envval_src_MPI_CFLAGS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS"
	    envval_src_MPI_CFLAGS=given
      esac

fi


  MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS"
  case "$envval_src_MPI_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_CFLAGS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_CFLAGS,$MISC_CFLAGS $CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)


 # try DEFAULT_CFLAGS



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$MPI_CC") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$MPI_CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$MPI_CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS=""
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($[MPI_CFLAGS]) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $MPI_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MPI_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



echo "$as_me:$LINENO: checking for C compiler flag $MPI_CFLAGS" >&5
echo $ECHO_N "checking for C compiler flag $MPI_CFLAGS... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

    _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:6)

  echo \"$gasnet_compile_cmd\" >&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 "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

   if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then
          echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6

   else
          echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5
echo "${ECHO_T}no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6





# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:7)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:7)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"

   fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CFLAG"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5

 echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5
echo "${ECHO_T}no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)








# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:5)

  { echo "$as_me:$LINENO: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&5
echo "$as_me: WARNING: Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >&2;}
  echo "Unable to use default MPI_CFLAGS=\"$MPI_CFLAGS\" so using \"$SAFE_MPI_CFLAGS\" instead. Consider manually seting MPI_CFLAGS" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:5)




        MPI_CFLAGS="$SAFE_MPI_CFLAGS"



  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($[MPI_CFLAGS]) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SET_CHECKED_CFLAGS(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPI_LIBS,) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPI_LIBS in environment" >&5
echo $ECHO_N "checking for MPI_LIBS in environment... $ECHO_C" >&6




  envval_src_MPI_LIBS="cached"
  if test "${gasnet_cv_envvar_MPI_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPI_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpi_libs" != ""; then
	      gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs"
	      envval_src_MPI_LIBS=given
	    else
	      gasnet_cv_envvar_MPI_LIBS=""
	      envval_src_MPI_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS"
	    envval_src_MPI_LIBS=given
      esac

fi


  MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS"
  case "$envval_src_MPI_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPI_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$MPI_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPI_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPI_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPI_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$MPI_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPI_LIBS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MPIRUN_CMD,mpirun -np %N %C) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MPIRUN_CMD in environment" >&5
echo $ECHO_N "checking for MPIRUN_CMD in environment... $ECHO_C" >&6




  envval_src_MPIRUN_CMD="cached"
  if test "${gasnet_cv_envvar_MPIRUN_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MPIRUN_CMD-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mpirun_cmd" != ""; then
	      gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd"
	      envval_src_MPIRUN_CMD=given
	    else
	      gasnet_cv_envvar_MPIRUN_CMD="mpirun -np %N %C"
	      envval_src_MPIRUN_CMD=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD"
	    envval_src_MPIRUN_CMD=given
      esac

fi


  MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD"
  case "$envval_src_MPIRUN_CMD" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}using cached value \"$MPIRUN_CMD\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}no, defaulting to \"$MPIRUN_CMD\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MPIRUN_CMD\"" >&5
echo "${ECHO_T}yes, using \"$MPIRUN_CMD\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MPIRUN_CMD,mpirun -np %N %C) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      if test "$MPI_CC" = ""; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: I don't know how to build MPI programs on your system: consider using \$MPI_CC \$MPI_CFLAGS and \$MPI_LIBS to configure MPI support for your site if you want the mpi-* backends" >&5
echo "$as_me: WARNING: I don't know how to build MPI programs on your system: consider using \$MPI_CC \$MPI_CFLAGS and \$MPI_LIBS to configure MPI support for your site if you want the mpi-* backends" >&2;}
  echo "I don't know how to build MPI programs on your system: consider using \$MPI_CC \$MPI_CFLAGS and \$MPI_LIBS to configure MPI support for your site if you want the mpi-* backends" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




	MPI_CC=$CC
        have_mpi=no
      fi
      ;;
  esac



# vvvvvvvvvvvvvvvvvvvvvv GASNET_GETFULLPATH(MPI_CC) vvvvvvvvvvvvvvvvvvvvvv (L:1)



if test "$gasnet_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 gasnet_cv__gfp_fullprogname_MPI_CC
    unset ac_cv_path_gasnet_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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_gasnet_cv__gfp_fullprogname_MPI_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $gasnet_cv__gfp_fullprogname_MPI_CC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_gasnet_cv__gfp_fullprogname_MPI_CC="$gasnet_cv__gfp_fullprogname_MPI_CC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_gasnet_cv__gfp_fullprogname_MPI_CC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
gasnet_cv__gfp_fullprogname_MPI_CC=$ac_cv_path_gasnet_cv__gfp_fullprogname_MPI_CC

if test -n "$gasnet_cv__gfp_fullprogname_MPI_CC"; then
  echo "$as_me:$LINENO: result: $gasnet_cv__gfp_fullprogname_MPI_CC" >&5
echo "${ECHO_T}$gasnet_cv__gfp_fullprogname_MPI_CC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    echo "$as_me:$LINENO: checking for full path expansion of MPI_CC" >&5
echo $ECHO_N "checking for full path expansion of MPI_CC... $ECHO_C" >&6
    if test "$gasnet_cv__gfp_fullprogname_MPI_CC" != "" ; then
      MPI_CC="$gasnet_cv__gfp_fullprogname_MPI_CC $gasnet_gfp_progargs"
    fi
    echo "$as_me:$LINENO: result: $MPI_CC" >&5
echo "${ECHO_T}$MPI_CC" >&6
  fi
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GETFULLPATH(MPI_CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_GETFULLPATH(MPIRUN_CMD) vvvvvvvvvvvvvvvvvvvvvv (L:1)



if test "$gasnet_cv__gfp_disable" = ""; then
  gasnet_gfp_progname=`echo "$MPIRUN_CMD" | $AWK -F' ' '{ print $1 }'`
  gasnet_gfp_progargs=`echo "$MPIRUN_CMD" | $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 gasnet_cv__gfp_fullprogname_MPIRUN_CMD
    unset ac_cv_path_gasnet_cv__gfp_fullprogname_MPIRUN_CMD
    # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_MPIRUN_CMD, $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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_gasnet_cv__gfp_fullprogname_MPIRUN_CMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $gasnet_cv__gfp_fullprogname_MPIRUN_CMD in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_gasnet_cv__gfp_fullprogname_MPIRUN_CMD="$gasnet_cv__gfp_fullprogname_MPIRUN_CMD" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_gasnet_cv__gfp_fullprogname_MPIRUN_CMD="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
gasnet_cv__gfp_fullprogname_MPIRUN_CMD=$ac_cv_path_gasnet_cv__gfp_fullprogname_MPIRUN_CMD

if test -n "$gasnet_cv__gfp_fullprogname_MPIRUN_CMD"; then
  echo "$as_me:$LINENO: result: $gasnet_cv__gfp_fullprogname_MPIRUN_CMD" >&5
echo "${ECHO_T}$gasnet_cv__gfp_fullprogname_MPIRUN_CMD" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

    echo "$as_me:$LINENO: checking for full path expansion of MPIRUN_CMD" >&5
echo $ECHO_N "checking for full path expansion of MPIRUN_CMD... $ECHO_C" >&6
    if test "$gasnet_cv__gfp_fullprogname_MPIRUN_CMD" != "" ; then
      MPIRUN_CMD="$gasnet_cv__gfp_fullprogname_MPIRUN_CMD $gasnet_gfp_progargs"
    fi
    echo "$as_me:$LINENO: result: $MPIRUN_CMD" >&5
echo "${ECHO_T}$MPIRUN_CMD" >&6
  fi
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GETFULLPATH(MPIRUN_CMD) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  # now run a basic test of the MPI configuration to make sure it works
  if test $have_mpi = yes; then

    echo "$as_me:$LINENO: checking building MPI helper object" >&5
echo $ECHO_N "checking building MPI helper object... $ECHO_C" >&6
    # 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 <stdio.h>
    #include <string.h>
    #include <assert.h>
    #include <math.h>
    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 $MISC_CFLAGS $CPPFLAGS -c $MPIHELPER_SRC"
    eval echo "$compile" >&5
    if eval $compile 2>&5 && test -s $MPIHELPER_OBJ ; then
	echo "$as_me:$LINENO: result: ok" >&5
echo "${ECHO_T}ok" >&6
    else
	{ { echo "$as_me:$LINENO: error: failed while building MPI helper object" >&5
echo "$as_me: error: failed while building MPI helper object" >&2;}
   { (exit 1); exit 1; }; }
    fi

    echo "$as_me:$LINENO: checking for working MPI configuration" >&5
echo $ECHO_N "checking for working MPI configuration... $ECHO_C" >&6
    # we need a clean slate here because MPI config may be totally different



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$MPI_CC") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$MPI_CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$MPI_CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$MPI_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$MPI_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$MPI_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CPPFLAGS,"") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CPPFLAGS" = "" ; then
    _pushcnt_CPPFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CPPFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS=\$CPPFLAGS
  eval _pushedvarset_CPPFLAGS_$_pushcnt_CPPFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CPPFLAGS=""
  echo "pushed new CPPFLAGS value: $CPPFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CPPFLAGS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LDFLAGS,"") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LDFLAGS" = "" ; then
    _pushcnt_LDFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LDFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LDFLAGS_$_pushcnt_LDFLAGS=\$LDFLAGS
  eval _pushedvarset_LDFLAGS_$_pushcnt_LDFLAGS=$_gasnet_pushvar_isset
  _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LDFLAGS=""
  echo "pushed new LDFLAGS value: $LDFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LDFLAGS,"") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$MPIHELPER_LIBS $MPI_LIBS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$MPIHELPER_LIBS $MPI_LIBS"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$MPIHELPER_LIBS $MPI_LIBS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    # we just try to link an MPI app - running MPI apps is a whole new can of worms
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

      #include <mpi.h>

int
main ()
{

      $MPIHELPER_CODE
      MPI_Init((void*)0,(void*)0);
      MPI_Finalize();

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   mpi_test_worked=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 mpi_test_worked=no
if test -f "conftest.$ac_ext" ; then
  cp conftest.$ac_ext gasnet_errsave_file
fi
if test -f "conftest.err" ; then
  cp conftest.err gasnet_errsave_err
fi

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CPPFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CPPFLAGS" -ge "1"; then
    _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CPPFLAGS_$_pushcnt_CPPFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CPPFLAGS=\$_pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS
      echo "popping CPPFLAGS back to: $CPPFLAGS" >&5
    else
      unset CPPFLAGS
      echo "popping CPPFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CPPFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CPPFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CPPFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LDFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LDFLAGS" -ge "1"; then
    _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LDFLAGS_$_pushcnt_LDFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LDFLAGS=\$_pushedvar_LDFLAGS_$_pushcnt_LDFLAGS
      echo "popping LDFLAGS back to: $LDFLAGS" >&5
    else
      unset LDFLAGS
      echo "popping LDFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LDFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    rm -f $MPIHELPER_OBJ
  fi
  if test "$mpi_test_worked" = yes ; then
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&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



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_OPTIMIZEDDEBUG(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

 if test "$enable_debug" = "yes" ; then
  echo "$as_me:$LINENO: checking MPI_CC for debug vs. optimize compilation conflict" >&5
echo $ECHO_N "checking MPI_CC for debug vs. optimize compilation conflict... $ECHO_C" >&6


  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$MPI_CC") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CC" = "" ; then
    _pushcnt_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CC_$_pushcnt_CC=\$CC
  eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset
  _pushcnt_CC=`expr $_pushcnt_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CC="$MPI_CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$MPI_CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$MPI_CFLAGS ") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$MPI_CFLAGS "
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$MPI_CFLAGS ") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


        #include <mpi.h>

    #if defined(__OPTIMIZE__) || defined(NDEBUG)
	choke me
    #endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6


echo
echo "configure error: User requested --enable-debug but MPI_CC or MPI_CFLAGS has enabled optimization (-O) or disabled assertions (-DNDEBUG). Try setting MPI_CC='$MPI_CC -O0 -UNDEBUG' or changing MPI_CFLAGS"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }



fi
rm -f conftest.$ac_objext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CC" -ge "1"; then
    _pushcnt_CC=`expr $_pushcnt_CC - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CC=\$_pushedvar_CC_$_pushcnt_CC
      echo "popping CC back to: $CC" >&5
    else
      unset CC
      echo "popping CC back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

 fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_OPTIMIZEDDEBUG(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: build test failed: I don't know how to build MPI programs on your system -- see $TOP_BUILDDIR/config.log for details: consider using \$MPI_CC \$MPI_CFLAGS and \$MPI_LIBS to configure MPI support for your site if you want the mpi conduit" >&5
echo "$as_me: WARNING: build test failed: I don't know how to build MPI programs on your system -- see $TOP_BUILDDIR/config.log for details: consider using \$MPI_CC \$MPI_CFLAGS and \$MPI_LIBS to configure MPI support for your site if you want the mpi conduit" >&2;}
  echo "build test failed: I don't know how to build MPI programs on your system -- see $TOP_BUILDDIR/config.log for details: consider using \$MPI_CC \$MPI_CFLAGS and \$MPI_LIBS to configure MPI support for your site if you want the mpi conduit" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




      have_mpi=no
  fi
  if test "$force_mpi_compat$have_mpi" = yesno ; then


echo
echo "configure error: User requested --enable-mpi-compat but I don't know how to build MPI programs for your system"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


  fi
  if test "$force_mpi$have_mpi" = yesno ; then


echo
echo "configure error: User requested --enable-mpi but I don't know how to build MPI programs for your system"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


  fi
  if test "$have_mpi" = no ; then
    mpi_reason="was not found"
  fi
else
  have_mpi=no
  mpi_reason="was disabled"
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 by tcrun to run MPI programs


if test "$enabled_mpi$have_mpi" = yesyes; then
  USE_MPI_CONDUIT_TRUE=
  USE_MPI_CONDUIT_FALSE='#'
else
  USE_MPI_CONDUIT_TRUE='#'
  USE_MPI_CONDUIT_FALSE=
fi

if test "$enabled_mpi$have_mpi" = yesyes ; then
  CONDUITS="$CONDUITS mpi"
  echo "  portable MPI-1.1/2.x network conduit (mpi)         ON" >> $CONDUIT_LIST
else
  echo "  portable MPI-1.1/2.x network conduit (mpi)         OFF" >> $CONDUIT_LIST
fi

if test "$enabled_mpi_compat$have_mpi" = yesyes ; then
  have_mpi_compat=yes
else
  have_mpi_compat=no
fi


if test "$have_mpi_compat" = yes; then
  USE_MPI_COMPAT_TRUE=
  USE_MPI_COMPAT_FALSE='#'
else
  USE_MPI_COMPAT_TRUE='#'
  USE_MPI_COMPAT_FALSE=
fi

# USE_MPI == MPI-compatbility or MPI-conduit


if test "$have_mpi" = yes; then
  USE_MPI_TRUE=
  USE_MPI_FALSE='#'
else
  USE_MPI_TRUE='#'
  USE_MPI_FALSE=
fi


#-----------------------------------------------------------------------------------------------
# SMP configuration





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(smp,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-smp or --disable-smp was given.
if test "${enable_smp+set}" = set; then
  enableval="$enable_smp"

fi;
# Check whether --enable-smp or --disable-smp was given.
if test "${enable_smp+set}" = set; then
  enableval="$enable_smp"

fi;
case "$enable_smp" in
  no)  have_smp=no ;;
  yes) have_smp=yes ;;
  *)   have_smp=yes ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(smp,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





if test "$have_smp" = yes; then
  USE_SMP_CONDUIT_TRUE=
  USE_SMP_CONDUIT_FALSE='#'
else
  USE_SMP_CONDUIT_TRUE='#'
  USE_SMP_CONDUIT_FALSE=
fi

if test "$have_smp" = yes ; then
  CONDUITS="$CONDUITS smp"
  echo "  portable SMP-loopback network conduit (smp)        ON" >> $CONDUIT_LIST
else
  echo "  portable SMP-loopback network conduit (smp)        OFF" >> $CONDUIT_LIST
fi


echo " " >> $CONDUIT_LIST
echo " Native, high-performance conduits:" >> $CONDUIT_LIST
echo " ---------------------------------" >> $CONDUIT_LIST

#--------------------------------------------------------------------------------------------------------
# GM configuration





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(gm,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-gm or --disable-gm was given.
if test "${enable_gm+set}" = set; then
  enableval="$enable_gm"

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)  enabled_gm=no ;;
  yes) enabled_gm=yes;force_gm=yes ;;
  *)   enabled_gm=yes ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(gm,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test $enabled_gm = yes; then
  # Assume the best
  have_gm=yes

  # Look for gm binaries in our path
  for ac_prog in gm_board_info
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_gm_board_info+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $gm_board_info in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_gm_board_info="$gm_board_info" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_gm_board_info="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
gm_board_info=$ac_cv_path_gm_board_info

if test -n "$gm_board_info"; then
  echo "$as_me:$LINENO: result: $gm_board_info" >&5
echo "${ECHO_T}$gm_board_info" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$gm_board_info" && break
done

  if test "$gm_board_info"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_FOLLOWLINKS(gm_board_info) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  gasnet_fl_file="$gm_board_info"
  gasnet_fl_link=`/bin/ls -al "$gasnet_fl_file" | $AWK 'BEGIN{FS=">"}{split($2,A," ") ; print A[1]}'`
  while test "$gasnet_fl_link"; do
    gasnet_fl_file="$gasnet_fl_link"
    gasnet_fl_link=`/bin/ls -al "$gasnet_fl_file" | $AWK 'BEGIN{FS=">"}{split($2,A," ") ; print A[1]}'`
  done
  gm_board_info="$gasnet_fl_file"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FOLLOWLINKS(gm_board_info) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    gm_guess=`dirname \`dirname $gm_board_info\``
  else
    gm_guess=/usr/local/gm
  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(GMHOME,$gm_guess) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for GMHOME in environment" >&5
echo $ECHO_N "checking for GMHOME in environment... $ECHO_C" >&6



# Check whether --with-gmhome or --without-gmhome was given.
if test "${with_gmhome+set}" = set; then
  withval="$with_gmhome"

fi;



  envval_src_GMHOME="cached"
  if test "${gasnet_cv_envvar_GMHOME+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${GMHOME-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_gmhome" != ""; then
	      gasnet_cv_envvar_GMHOME="$with_gmhome"
	      envval_src_GMHOME=given
	    else
	      gasnet_cv_envvar_GMHOME="$gm_guess"
	      envval_src_GMHOME=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_GMHOME="$GMHOME"
	    envval_src_GMHOME=given
      esac

fi


  GMHOME="$gasnet_cv_envvar_GMHOME"
  case "$envval_src_GMHOME" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$GMHOME\"" >&5
echo "${ECHO_T}using cached value \"$GMHOME\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$GMHOME\"" >&5
echo "${ECHO_T}no, defaulting to \"$GMHOME\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$GMHOME\"" >&5
echo "${ECHO_T}yes, using \"$GMHOME\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(GMHOME,$gm_guess) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  case "$target_os" in
    solaris*)
    ;;
    *)	# All unknown for now



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(GM_INCLUDE,$GMHOME/include) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for GM_INCLUDE in environment" >&5
echo $ECHO_N "checking for GM_INCLUDE in environment... $ECHO_C" >&6



# Check whether --with-gm-include or --without-gm-include was given.
if test "${with_gm_include+set}" = set; then
  withval="$with_gm_include"

fi;



  envval_src_GM_INCLUDE="cached"
  if test "${gasnet_cv_envvar_GM_INCLUDE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${GM_INCLUDE-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_gm_include" != ""; then
	      gasnet_cv_envvar_GM_INCLUDE="$with_gm_include"
	      envval_src_GM_INCLUDE=given
	    else
	      gasnet_cv_envvar_GM_INCLUDE="$GMHOME/include"
	      envval_src_GM_INCLUDE=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_GM_INCLUDE="$GM_INCLUDE"
	    envval_src_GM_INCLUDE=given
      esac

fi


  GM_INCLUDE="$gasnet_cv_envvar_GM_INCLUDE"
  case "$envval_src_GM_INCLUDE" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$GM_INCLUDE\"" >&5
echo "${ECHO_T}using cached value \"$GM_INCLUDE\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$GM_INCLUDE\"" >&5
echo "${ECHO_T}no, defaulting to \"$GM_INCLUDE\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$GM_INCLUDE\"" >&5
echo "${ECHO_T}yes, using \"$GM_INCLUDE\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(GM_INCLUDE,$GMHOME/include) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(GM_LIB,$GMHOME/lib) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for GM_LIB in environment" >&5
echo $ECHO_N "checking for GM_LIB in environment... $ECHO_C" >&6



# Check whether --with-gm-lib or --without-gm-lib was given.
if test "${with_gm_lib+set}" = set; then
  withval="$with_gm_lib"

fi;



  envval_src_GM_LIB="cached"
  if test "${gasnet_cv_envvar_GM_LIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${GM_LIB-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_gm_lib" != ""; then
	      gasnet_cv_envvar_GM_LIB="$with_gm_lib"
	      envval_src_GM_LIB=given
	    else
	      gasnet_cv_envvar_GM_LIB="$GMHOME/lib"
	      envval_src_GM_LIB=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_GM_LIB="$GM_LIB"
	    envval_src_GM_LIB=given
      esac

fi


  GM_LIB="$gasnet_cv_envvar_GM_LIB"
  case "$envval_src_GM_LIB" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$GM_LIB\"" >&5
echo "${ECHO_T}using cached value \"$GM_LIB\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$GM_LIB\"" >&5
echo "${ECHO_T}no, defaulting to \"$GM_LIB\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$GM_LIB\"" >&5
echo "${ECHO_T}yes, using \"$GM_LIB\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(GM_LIB,$GMHOME/lib) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



	if test "$GM_INCLUDE" = "" || test ! -d "$GM_INCLUDE"; then
	  have_gm=no
	fi
	if test "$GM_LIB" = ""; then
	  have_gm=no
	fi
    ;;
  esac

  if test $have_gm = yes; then
    echo "$as_me:$LINENO: checking for working GM configuration" >&5
echo $ECHO_N "checking for working GM configuration... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I$GM_INCLUDE -L$GM_LIB") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -I$GM_INCLUDE -L$GM_LIB"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I$GM_INCLUDE -L$GM_LIB") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$LIBS -lgm") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$LIBS -lgm"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$LIBS -lgm") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    # try to compile and link a simple gm_init, gm_finalize
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

      #include <stdlib.h>
      #include <gm.h>

int
main ()
{

      gm_init();
      gm_finalize();

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   gm_test_worked=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 gm_test_worked=no
if test -f "conftest.$ac_ext" ; then
  cp conftest.$ac_ext gasnet_errsave_file
fi
if test -f "conftest.err" ; then
  cp conftest.err gasnet_errsave_err
fi

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




    if test "$gm_test_worked" = yes; then
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    else
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
      have_gm=no
    fi
    # GM conduit was shown to break horribly on some versions of gcc, because
    # of our reuse of memory storage in firehose.  We disable strict aliasing
    # altogether as the problem appears and disappears across gcc3 minor
    # versions.
    # This is a firehose problem, and bug #1052 showed xlc to be affected as well.
    case "$gasnet_cv_cc_family" in
      GNU) GM_NO_ALIAS="-fno-strict-aliasing";;
      Pathscale) GM_NO_ALIAS="-fno-strict-aliasing";;
      XLC) GM_NO_ALIAS="-qnoansialias -qalias=addr";;
        *) GM_NO_ALIAS="";;
    esac

    # Only test if working GM config
    if test $have_gm = yes; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(broken-gm,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-broken-gm or --disable-broken-gm was given.
if test "${enable_broken_gm+set}" = set; then
  enableval="$enable_broken_gm"

fi;

case "$enable_broken_gm" in
  '' | no) :
      allow_broken_gm=no ;;
  *)  cat >>confdefs.h <<\_ACEOF
#define GASNETC_GM_ENABLE_BROKEN_VERSIONS 1
_ACEOF

	 allow_broken_gm=yes ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(broken-gm,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




      # Now test to see if the targetted GM is a broken one
      # broken gm builds
      echo "$as_me:$LINENO: checking for broken GM 2.x RDMA gets build" >&5
echo $ECHO_N "checking for broken GM 2.x RDMA gets build... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I$GM_INCLUDE -L$GM_LIB") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -I$GM_INCLUDE -L$GM_LIB"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I$GM_INCLUDE -L$GM_LIB") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$LIBS -lgm") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$LIBS -lgm"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$LIBS -lgm") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

        #include <gm.h>

int
main ()
{

        #if GM_API_VERSION_2_0 &&                                 \
           ((GM_API_VERSION_2_1_0 && GM_API_VERSION < 0x20102) || \
             GM_API_VERSION < 0x2000c)
          #error GM build is broken
	#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   gm_build_broken=no
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 gm_build_broken=yes
fi
rm -f conftest.$ac_objext conftest.$ac_ext
      if test "$gm_build_broken" = yes; then
        if test "$allow_broken_gm" = no; then
          echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
	  { { echo "$as_me:$LINENO: error: Detected a broken GM 2.x RDMA gets build. See gm-conduit/README" >&5
echo "$as_me: error: Detected a broken GM 2.x RDMA gets build. See gm-conduit/README" >&2;}
   { (exit 1); exit 1; }; }
	else
          echo "$as_me:$LINENO: result: yes which disables RDMA gets" >&5
echo "${ECHO_T}yes which disables RDMA gets" >&6
	fi
      else
          echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
      fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




      echo "$as_me:$LINENO: checking for GM interoperability with MPI" >&5
echo $ECHO_N "checking for GM interoperability with MPI... $ECHO_C" >&6
      GM_MPI_COMPAT=$have_mpi_compat
      echo "$as_me:$LINENO: result: $GM_MPI_COMPAT" >&5
echo "${ECHO_T}$GM_MPI_COMPAT" >&6
      if test "$GM_MPI_COMPAT" = yes; then
	  cat >>confdefs.h <<\_ACEOF
#define GASNETC_GM_MPI_COMPAT 1
_ACEOF

      else




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: GM requires MPI for interoperability and MPI $mpi_reason - disabling feature" >&5
echo "$as_me: WARNING: GM requires MPI for interoperability and MPI $mpi_reason - disabling feature" >&2;}
  echo "GM requires MPI for interoperability and MPI $mpi_reason - disabling feature" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




      fi
    fi
  fi
  if test "$force_gm$have_gm" = yesno ; then


echo
echo "configure error: User requested --enable-gm but I don't know how to build GM programs for your system"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


  fi
fi







if test "$enabled_gm$have_gm" = yesyes; then
  USE_GM_CONDUIT_TRUE=
  USE_GM_CONDUIT_FALSE='#'
else
  USE_GM_CONDUIT_TRUE='#'
  USE_GM_CONDUIT_FALSE=
fi



if test "$GM_MPI_COMPAT" = yes; then
  GM_MPI_COMPAT_TRUE=
  GM_MPI_COMPAT_FALSE='#'
else
  GM_MPI_COMPAT_TRUE='#'
  GM_MPI_COMPAT_FALSE=
fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(gm-rodata-workaround,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-gm-rodata-workaround or --disable-gm-rodata-workaround was given.
if test "${enable_gm_rodata_workaround+set}" = set; then
  enableval="$enable_gm_rodata_workaround"

fi;

case "$enable_gm_rodata_workaround" in
  '' | no) :
       ;;
  *)  gm_rodata_workaround=yes ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(gm-rodata-workaround,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





if test "$gm_rodata_workaround" = yes; then
  GM_RODATA_WORKAROUND_TRUE=
  GM_RODATA_WORKAROUND_FALSE='#'
else
  GM_RODATA_WORKAROUND_TRUE='#'
  GM_RODATA_WORKAROUND_FALSE=
fi

if test "$enabled_gm$have_gm" = yesyes ; then
  CONDUITS="$CONDUITS gm"
  echo "  Myricom/GM network conduit (gm)                    ON" >> $CONDUIT_LIST
  if test "$GASNETI_DISABLE_ALIGNED_SEGMENTS"="1" ; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: GM conduit does not support --disable-aligned-segments - ignoring for that conduit.." >&5
echo "$as_me: WARNING: GM conduit does not support --disable-aligned-segments - ignoring for that conduit.." >&2;}
  echo "GM conduit does not support --disable-aligned-segments - ignoring for that conduit.." >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  fi
else
  echo "  Myricom/GM network conduit (gm)                    OFF" >> $CONDUIT_LIST
fi


#--------------------------------------------------------------------------------------------------------
# LAPI configuration





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(lapi,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-lapi or --disable-lapi was given.
if test "${enable_lapi+set}" = set; then
  enableval="$enable_lapi"

fi;
# 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)  enabled_lapi=no ;;
  yes) enabled_lapi=yes;force_lapi=yes ;;
  *)   enabled_lapi=yes ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(lapi,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$force_lapi$have_pthread" = yesno; then
  { { echo "$as_me:$LINENO: error: lapi-conduit requires pthread support but pthreads $pthread_reason" >&5
echo "$as_me: error: lapi-conduit requires pthread support but pthreads $pthread_reason" >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$enabled_lapi$have_pthread" = yesno; then
  enabled_lapi=no




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: lapi-conduit requires pthread support but pthreads $pthread_reason - disabling lapi" >&5
echo "$as_me: WARNING: lapi-conduit requires pthread support but pthreads $pthread_reason - disabling lapi" >&2;}
  echo "lapi-conduit requires pthread support but pthreads $pthread_reason - disabling lapi" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




fi
if test "$enabled_lapi" = yes; then
  echo "$as_me:$LINENO: checking for working LAPI configuration" >&5
echo $ECHO_N "checking for working LAPI configuration... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$LIBS -llapi_r -lpthread") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$LIBS -llapi_r -lpthread"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$LIBS -llapi_r -lpthread") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  # try to compile and link a simple LAPI program
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

    #include <lapi.h>
    #include <string.h>

int
main ()
{
{
      lapi_handle_t  gasnetc_lapi_context;
      lapi_info_t    gasnetc_lapi_info;

      memset(&gasnetc_lapi_info, 0, sizeof(lapi_info_t));
      LAPI_Init(&gasnetc_lapi_context, &gasnetc_lapi_info);
    }
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   have_lapi=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 have_lapi=no
if test -f "conftest.$ac_ext" ; then
  cp conftest.$ac_ext gasnet_errsave_file
fi
if test -f "conftest.err" ; then
  cp conftest.err gasnet_errsave_err
fi

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  echo "$as_me:$LINENO: result: $have_lapi" >&5
echo "${ECHO_T}$have_lapi" >&6

  # Check for hardware version
  if test "$have_lapi" = "yes"; then
    have_fed="no"
    have_col="no"
    lapi_how="selected"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_WITH(lapi-type,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)


# Check whether --with-lapi-type or --without-lapi-type was given.
if test "${with_lapi_type+set}" = set; then
  withval="$with_lapi_type"

  case "$withval" in
    no) :
        have_lapi=no ;;
    *)  case "$withval" in
	   [cC]olony|COLONY) have_col="yes" ;;
	   [fF]ederation|FEDERATION) have_fed="yes" ;;
	   *) { { echo "$as_me:$LINENO: error: Unrecognized value \"$withval\" passed to --with-lapi-type.  Legal values are \"colony\" or \"federation\"." >&5
echo "$as_me: error: Unrecognized value \"$withval\" passed to --with-lapi-type.  Legal values are \"colony\" or \"federation\"." >&2;}
   { (exit 1); exit 1; }; };
	 esac ;;
  esac

else

   :
   echo "$as_me:$LINENO: checking for Federation Switch hardware" >&5
echo $ECHO_N "checking for Federation Switch hardware... $ECHO_C" >&6
	 if test -n "`lscfg -l sni0 2> /dev/null | grep -- sni0`" ; then
	   have_fed="yes"
	 fi
	 echo "$as_me:$LINENO: result: $have_fed" >&5
echo "${ECHO_T}$have_fed" >&6
	 echo "$as_me:$LINENO: checking for Colony Switch hardware" >&5
echo $ECHO_N "checking for Colony Switch hardware... $ECHO_C" >&6
	 if test -n "`lscfg -l css0 2> /dev/null | grep -- css0`" ; then
	   have_col="yes"
	 fi
	 echo "$as_me:$LINENO: result: $have_col" >&5
echo "${ECHO_T}$have_col" >&6
	 lapi_how="found"

fi;

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_WITH(lapi-type,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    if test "${have_fed}${have_col}" = "yesyes"; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: Both Federation and Colony Switch hardware $lapi_how - disabling lapi.  Pass exactly one of --with-lapi-type=colony or --with-lapi-type=federation to select one." >&5
echo "$as_me: WARNING: Both Federation and Colony Switch hardware $lapi_how - disabling lapi.  Pass exactly one of --with-lapi-type=colony or --with-lapi-type=federation to select one." >&2;}
  echo "Both Federation and Colony Switch hardware $lapi_how - disabling lapi.  Pass exactly one of --with-lapi-type=colony or --with-lapi-type=federation to select one." >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




      have_lapi="no"
    elif test "${have_fed}" = "yes"; then
      cat >>confdefs.h <<\_ACEOF
#define GASNETC_LAPI_FEDERATION 1
_ACEOF

	echo "$as_me:$LINENO: checking For LAPI Federation Version" >&5
echo $ECHO_N "checking For LAPI Federation Version... $ECHO_C" >&6
        LAPI_VER=`lslpp -l | grep rsct.lapi.rte 2>/dev/null | tail -1 | $AWK '{print $2}'`
        if test -z "$LAPI_VER" ; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: Could not detect LAPI version number with lslpp. " >&5
echo "$as_me: WARNING: Could not detect LAPI version number with lslpp. " >&2;}
  echo "Could not detect LAPI version number with lslpp. " >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




        else
           LAPI_VER_NUM1=`echo $LAPI_VER | cut -d\. -f 1`
           cat >>confdefs.h <<_ACEOF
#define GASNETC_LAPI_VERSION_A $LAPI_VER_NUM1
_ACEOF

           LAPI_VER_NUM2=`echo $LAPI_VER | cut -d\. -f 2`
           cat >>confdefs.h <<_ACEOF
#define GASNETC_LAPI_VERSION_B $LAPI_VER_NUM2
_ACEOF

           LAPI_VER_NUM3=`echo $LAPI_VER | cut -d\. -f 3`
           cat >>confdefs.h <<_ACEOF
#define GASNETC_LAPI_VERSION_C $LAPI_VER_NUM3
_ACEOF

           LAPI_VER_NUM4=`echo $LAPI_VER | cut -d\. -f 4`
           cat >>confdefs.h <<_ACEOF
#define GASNETC_LAPI_VERSION_D $LAPI_VER_NUM4
_ACEOF

        fi
        echo "$as_me:$LINENO: result: $LAPI_VER" >&5
echo "${ECHO_T}$LAPI_VER" >&6
    elif test "${have_col}" = "yes"; then
      cat >>confdefs.h <<\_ACEOF
#define GASNETC_LAPI_COLONY 1
_ACEOF

	echo "$as_me:$LINENO: checking For LAPI Colony Version" >&5
echo $ECHO_N "checking For LAPI Colony Version... $ECHO_C" >&6
        LAPI_VER=`lslpp -l | grep ssp.css.lapi 2>/dev/null | tail -1 | $AWK '{print $2}'`
        if test -z "$LAPI_VER" ; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: Could not detect LAPI version number with lslpp. " >&5
echo "$as_me: WARNING: Could not detect LAPI version number with lslpp. " >&2;}
  echo "Could not detect LAPI version number with lslpp. " >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




        else
           LAPI_VER_NUM1=`echo $LAPI_VER | cut -d\. -f 1`
           cat >>confdefs.h <<_ACEOF
#define GASNETC_LAPI_VERSION_A $LAPI_VER_NUM1
_ACEOF

           LAPI_VER_NUM2=`echo $LAPI_VER | cut -d\. -f 2`
           cat >>confdefs.h <<_ACEOF
#define GASNETC_LAPI_VERSION_B $LAPI_VER_NUM2
_ACEOF

           LAPI_VER_NUM3=`echo $LAPI_VER | cut -d\. -f 3`
           cat >>confdefs.h <<_ACEOF
#define GASNETC_LAPI_VERSION_C $LAPI_VER_NUM3
_ACEOF

           LAPI_VER_NUM4=`echo $LAPI_VER | cut -d\. -f 4`
           cat >>confdefs.h <<_ACEOF
#define GASNETC_LAPI_VERSION_D $LAPI_VER_NUM4
_ACEOF

        fi
        echo "$as_me:$LINENO: result: $LAPI_VER" >&5
echo "${ECHO_T}$LAPI_VER" >&6
    else




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: No IBM SP Switch hardware $lapi_how - disabling lapi. If your system has LAPI hardware, please select the hardware type using configure switch --with-lapi-type=federation or --with-lapi-type=colony" >&5
echo "$as_me: WARNING: No IBM SP Switch hardware $lapi_how - disabling lapi. If your system has LAPI hardware, please select the hardware type using configure switch --with-lapi-type=federation or --with-lapi-type=colony" >&2;}
  echo "No IBM SP Switch hardware $lapi_how - disabling lapi. If your system has LAPI hardware, please select the hardware type using configure switch --with-lapi-type=federation or --with-lapi-type=colony" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




      have_lapi="no"
    fi
  fi

  # Check for LAPI-RDMA
  # - TODO: detect this automatically, and/or check to see if actually present
  # when user requests it



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(lapi-rdma,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-lapi-rdma or --disable-lapi-rdma was given.
if test "${enable_lapi_rdma+set}" = set; then
  enableval="$enable_lapi_rdma"

fi;
# Check whether --enable-lapi-rdma or --disable-lapi-rdma was given.
if test "${enable_lapi_rdma+set}" = set; then
  enableval="$enable_lapi_rdma"

fi;
case "$enable_lapi_rdma" in
  no)  use_lapi_rdma=no ;;
  yes) use_lapi_rdma=yes ;;
  *)   use_lapi_rdma=try ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(lapi-rdma,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  if test "$use_lapi_rdma" = yes; then
      cat >>confdefs.h <<\_ACEOF
#define GASNETC_LAPI_RDMA 1
_ACEOF

  fi

  # Check for conflict
  if test "$force_lapi$have_lapi" = yesno; then


echo
echo "configure error: User requested --enable-lapi but I don't know how to build LAPI programs for your system."
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


  fi

  if test x"$ac_cv_sizeof_void_p" = x4; then
    LAPI_LD="mpcc_r"
  else
    LAPI_LD="mpcc_r -q64"
  fi


fi



if test "$have_lapi" = yes; then
  USE_LAPI_CONDUIT_TRUE=
  USE_LAPI_CONDUIT_FALSE='#'
else
  USE_LAPI_CONDUIT_TRUE='#'
  USE_LAPI_CONDUIT_FALSE=
fi

if test "$have_lapi" = yes ; then
  CONDUITS="$CONDUITS lapi"
  echo "  LAPI (IBM SP) network conduit (lapi)               ON" >> $CONDUIT_LIST
else
  echo "  LAPI (IBM SP) network conduit (lapi)               OFF" >> $CONDUIT_LIST
fi


#--------------------------------------------------------------------------------------------------------
# ELAN configuration





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(elan,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-elan or --disable-elan was given.
if test "${enable_elan+set}" = set; then
  enableval="$enable_elan"

fi;
# 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)  enabled_elan=no ;;
  yes) enabled_elan=yes;force_elan=yes ;;
  *)   enabled_elan=yes ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(elan,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test $enabled_elan = yes; then

  case "$target_os" in
    linux*)
	# the default locations are /usr/include and /usr/lib
        # rms libs are only there to support signalling exit,
        # if they're problematic they can be removed provided
        # you compile with -DGASNETC_USE_SIGNALING_EXIT=0



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(ELAN_INCLUDE,/usr/include) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for ELAN_INCLUDE in environment" >&5
echo $ECHO_N "checking for ELAN_INCLUDE in environment... $ECHO_C" >&6



# Check whether --with-elan-include or --without-elan-include was given.
if test "${with_elan_include+set}" = set; then
  withval="$with_elan_include"

fi;



  envval_src_ELAN_INCLUDE="cached"
  if test "${gasnet_cv_envvar_ELAN_INCLUDE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${ELAN_INCLUDE-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_elan_include" != ""; then
	      gasnet_cv_envvar_ELAN_INCLUDE="$with_elan_include"
	      envval_src_ELAN_INCLUDE=given
	    else
	      gasnet_cv_envvar_ELAN_INCLUDE="/usr/include"
	      envval_src_ELAN_INCLUDE=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_ELAN_INCLUDE="$ELAN_INCLUDE"
	    envval_src_ELAN_INCLUDE=given
      esac

fi


  ELAN_INCLUDE="$gasnet_cv_envvar_ELAN_INCLUDE"
  case "$envval_src_ELAN_INCLUDE" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$ELAN_INCLUDE\"" >&5
echo "${ECHO_T}using cached value \"$ELAN_INCLUDE\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$ELAN_INCLUDE\"" >&5
echo "${ECHO_T}no, defaulting to \"$ELAN_INCLUDE\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$ELAN_INCLUDE\"" >&5
echo "${ECHO_T}yes, using \"$ELAN_INCLUDE\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(ELAN_INCLUDE,/usr/include) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    ;;
    *)
	# the default locations are /usr/opt/rms/include and /usr/lib



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(ELAN_INCLUDE,/usr/opt/rms/include) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for ELAN_INCLUDE in environment" >&5
echo $ECHO_N "checking for ELAN_INCLUDE in environment... $ECHO_C" >&6




  envval_src_ELAN_INCLUDE="cached"
  if test "${gasnet_cv_envvar_ELAN_INCLUDE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${ELAN_INCLUDE-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_elan_include" != ""; then
	      gasnet_cv_envvar_ELAN_INCLUDE="$with_elan_include"
	      envval_src_ELAN_INCLUDE=given
	    else
	      gasnet_cv_envvar_ELAN_INCLUDE="/usr/opt/rms/include"
	      envval_src_ELAN_INCLUDE=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_ELAN_INCLUDE="$ELAN_INCLUDE"
	    envval_src_ELAN_INCLUDE=given
      esac

fi


  ELAN_INCLUDE="$gasnet_cv_envvar_ELAN_INCLUDE"
  case "$envval_src_ELAN_INCLUDE" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$ELAN_INCLUDE\"" >&5
echo "${ECHO_T}using cached value \"$ELAN_INCLUDE\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$ELAN_INCLUDE\"" >&5
echo "${ECHO_T}no, defaulting to \"$ELAN_INCLUDE\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$ELAN_INCLUDE\"" >&5
echo "${ECHO_T}yes, using \"$ELAN_INCLUDE\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(ELAN_INCLUDE,/usr/opt/rms/include) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    ;;
  esac
  ELAN_HEADERBASE="${ELAN_INCLUDE}"
  # Don't actually place -I/usr/include on the compile line, because this
  # breaks IA64 Intel C, which relies on preceding /usr/include with its own
  # include directory that overrides some system headers (eg asm/*)
  if test "`cd ${ELAN_INCLUDE} 2>/dev/null; pwd`" = "/usr/include"; then
    ELAN_INCLUDE=.
  fi

  echo "$as_me:$LINENO: checking for ELAN device driver headers" >&5
echo $ECHO_N "checking for ELAN device driver headers... $ECHO_C" >&6
  if test -f "$ELAN_HEADERBASE/elan4/library.h" ; then
        echo "$as_me:$LINENO: result: elan4" >&5
echo "${ECHO_T}elan4" >&6
	ELANDEVLIB="-lelan4"
        cat >>confdefs.h <<\_ACEOF
#define GASNETC_ELAN4 1
_ACEOF

        have_elan=yes
  else
    if test -f "$ELAN_HEADERBASE/elan3/elan3.h" ; then
        echo "$as_me:$LINENO: result: elan3" >&5
echo "${ECHO_T}elan3" >&6
	ELANDEVLIB="-lelan3"
        cat >>confdefs.h <<\_ACEOF
#define GASNETC_ELAN3 1
_ACEOF

        have_elan=yes
    else
        echo "$as_me:$LINENO: result: none found" >&5
echo "${ECHO_T}none found" >&6
        have_elan=no
    fi
  fi

 if test $have_elan = yes; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I$ELAN_INCLUDE") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -I$ELAN_INCLUDE"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I$ELAN_INCLUDE") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$LIBS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$LIBS"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$LIBS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  # librmscall used by any elan program, librms also used on older systems
  RMSLIBS="-lrmscall"
  echo "$as_me:$LINENO: checking for main in -lrms" >&5
echo $ECHO_N "checking for main in -lrms... $ECHO_C" >&6
if test "${ac_cv_lib_rms_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrms  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


int
main ()
{
main ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_rms_main=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_rms_main=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_rms_main" >&5
echo "${ECHO_T}$ac_cv_lib_rms_main" >&6
if test $ac_cv_lib_rms_main = yes; then
  RMSLIBS="$RMSLIBS -lrms"
fi

  # look for RMS rcontrol
  echo "$as_me:$LINENO: checking for RMS rcontrol" >&5
echo $ECHO_N "checking for RMS rcontrol... $ECHO_C" >&6
  RMS_RCONTROL_PATH=`which rcontrol 2> /dev/null`
  if test -x "$RMS_RCONTROL_PATH" -a \
            "`$RMS_RCONTROL_PATH help 2> /dev/null | grep signal`" != "" ; then
      cat >>confdefs.h <<_ACEOF
#define RMS_RCONTROL_PATH $RMS_RCONTROL_PATH
_ACEOF

      echo "$as_me:$LINENO: result: $RMS_RCONTROL_PATH" >&5
echo "${ECHO_T}$RMS_RCONTROL_PATH" >&6
  else
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  fi
  # rmsapi is used for RMS signalling exit

for ac_header in rms/rmsapi.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

  echo "$as_me:$LINENO: checking for rms_killResource in -lrmsapi" >&5
echo $ECHO_N "checking for rms_killResource in -lrmsapi... $ECHO_C" >&6
if test "${ac_cv_lib_rmsapi_rms_killResource+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lrmsapi  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 rms_killResource ();
int
main ()
{
rms_killResource ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_rmsapi_rms_killResource=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_rmsapi_rms_killResource=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_rmsapi_rms_killResource" >&5
echo "${ECHO_T}$ac_cv_lib_rmsapi_rms_killResource" >&6
if test $ac_cv_lib_rmsapi_rms_killResource = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_RMS_KILLRESOURCE 1
_ACEOF

     RMSLIBS="$RMSLIBS -lrmsapi"
fi

  # look for SLURM scancel
  echo "$as_me:$LINENO: checking for SLURM scancel" >&5
echo $ECHO_N "checking for SLURM scancel... $ECHO_C" >&6
  SLURM_SCANCEL_PATH=`which scancel 2> /dev/null`
  if test -x "$SLURM_SCANCEL_PATH" -a \
            "`$SLURM_SCANCEL_PATH -V 2> /dev/null | grep slurm`" != "" ; then
      cat >>confdefs.h <<_ACEOF
#define SLURM_SCANCEL_PATH $SLURM_SCANCEL_PATH
_ACEOF

      echo "$as_me:$LINENO: result: $SLURM_SCANCEL_PATH" >&5
echo "${ECHO_T}$SLURM_SCANCEL_PATH" >&6
  else
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  fi
  # slurm API is used for SLURM signalling exit

for ac_header in slurm/slurm.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

  echo "$as_me:$LINENO: checking for slurm_kill_job in -lslurm" >&5
echo $ECHO_N "checking for slurm_kill_job in -lslurm... $ECHO_C" >&6
if test "${ac_cv_lib_slurm_slurm_kill_job+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lslurm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 slurm_kill_job ();
int
main ()
{
slurm_kill_job ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_slurm_slurm_kill_job=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_slurm_slurm_kill_job=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_slurm_slurm_kill_job" >&5
echo "${ECHO_T}$ac_cv_lib_slurm_slurm_kill_job" >&6
if test $ac_cv_lib_slurm_slurm_kill_job = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_SLURM_KILL_JOB 1
_ACEOF

     RMSLIBS="$RMSLIBS -lslurm"
fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(ELAN_LIBS,-lelan $ELANDEVLIB $RMSLIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for ELAN_LIBS in environment" >&5
echo $ECHO_N "checking for ELAN_LIBS in environment... $ECHO_C" >&6



# Check whether --with-elan-libs or --without-elan-libs was given.
if test "${with_elan_libs+set}" = set; then
  withval="$with_elan_libs"

fi;



  envval_src_ELAN_LIBS="cached"
  if test "${gasnet_cv_envvar_ELAN_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${ELAN_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_elan_libs" != ""; then
	      gasnet_cv_envvar_ELAN_LIBS="$with_elan_libs"
	      envval_src_ELAN_LIBS=given
	    else
	      gasnet_cv_envvar_ELAN_LIBS="-lelan $ELANDEVLIB $RMSLIBS"
	      envval_src_ELAN_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_ELAN_LIBS="$ELAN_LIBS"
	    envval_src_ELAN_LIBS=given
      esac

fi


  ELAN_LIBS="$gasnet_cv_envvar_ELAN_LIBS"
  case "$envval_src_ELAN_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$ELAN_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$ELAN_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$ELAN_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$ELAN_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$ELAN_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$ELAN_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(ELAN_LIBS,-lelan $ELANDEVLIB $RMSLIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  echo "$as_me:$LINENO: checking for elan_queueMaxSlotSize in -lelan" >&5
echo $ECHO_N "checking for elan_queueMaxSlotSize in -lelan... $ECHO_C" >&6
if test "${ac_cv_lib_elan_elan_queueMaxSlotSize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 elan_queueMaxSlotSize ();
int
main ()
{
elan_queueMaxSlotSize ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_elan_elan_queueMaxSlotSize=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_elan_elan_queueMaxSlotSize=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_queueMaxSlotSize" >&5
echo "${ECHO_T}$ac_cv_lib_elan_elan_queueMaxSlotSize" >&6
if test $ac_cv_lib_elan_elan_queueMaxSlotSize = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_ELAN_QUEUEMAXSLOTSIZE 1
_ACEOF

fi

  echo "$as_me:$LINENO: checking for elan_queueTxInit in -lelan" >&5
echo $ECHO_N "checking for elan_queueTxInit in -lelan... $ECHO_C" >&6
if test "${ac_cv_lib_elan_elan_queueTxInit+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 elan_queueTxInit ();
int
main ()
{
elan_queueTxInit ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_elan_elan_queueTxInit=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_elan_elan_queueTxInit=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_queueTxInit" >&5
echo "${ECHO_T}$ac_cv_lib_elan_elan_queueTxInit" >&6
if test $ac_cv_lib_elan_elan_queueTxInit = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_ELAN_QUEUETXINIT 1
_ACEOF

fi

  echo "$as_me:$LINENO: checking for elan_done in -lelan" >&5
echo $ECHO_N "checking for elan_done in -lelan... $ECHO_C" >&6
if test "${ac_cv_lib_elan_elan_done+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lelan  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 elan_done ();
int
main ()
{
elan_done ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_lib_elan_elan_done=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_elan_elan_done=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_elan_elan_done" >&5
echo "${ECHO_T}$ac_cv_lib_elan_elan_done" >&6
if test $ac_cv_lib_elan_elan_done = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_ELAN_DONE 1
_ACEOF

fi

  LIBS="$ELAN_LIBS"
  echo "$as_me:$LINENO: checking for working ELAN configuration" >&5
echo $ECHO_N "checking for working ELAN configuration... $ECHO_C" >&6
  # try to compile and link a simple elan prog
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

    #include <stdlib.h>
    #include <elan/elan.h>

int
main ()
{

   #ifdef QSNETLIBS_VERSION_CODE
     #if QSNETLIBS_VERSION_CODE >= QSNETLIBS_VERSION(1,4,10)
       elan_baseInit(0);
     #else
       elan_baseInit();
     #endif
   #else
     elan_baseInit();
   #endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   elan_test_worked=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 elan_test_worked=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  if test "$elan_test_worked" = yes; then
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    echo "$as_me:$LINENO: checking for libelan version" >&5
echo $ECHO_N "checking for libelan version... $ECHO_C" >&6
    if test -r ${ELAN_HEADERBASE}/elan/version.h; then
      verstr=`grep QSNETLIBS_VERSION_STRING ${ELAN_HEADERBASE}/elan/version.h`
      majorver=`echo $verstr | $AWK -F'[ \t]*|\"|[.]' '{ print $4 }'`
      minorver=`echo $verstr | $AWK -F'[ \t]*|\"|[.]' '{ print $5 }'`
      subver=`echo $verstr | $AWK -F'[ \t]*|\"|[.]' '{ print $6 }'`
    else
      verstr=`grep 'ELAN_VERSION' ${ELAN_HEADERBASE}/elan/misc.h`
      majorver=`echo $verstr | $AWK -F'[ \t]*|\"|[.]' '{ print $5 }'`
      minorver=`echo $verstr | $AWK -F'[ \t]*|\"|[.]' '{ print $6 }'`
      subver=0
    fi
    echo "$as_me:$LINENO: result: \"${majorver}.${minorver}.${subver}\"" >&5
echo "${ECHO_T}\"${majorver}.${minorver}.${subver}\"" >&6
    if test "$majorver" = "" -o "$minorver" = "" -o "$subver" = "" ; then
      { { echo "$as_me:$LINENO: error: \"libelan present, but unable to determine libelan version\"" >&5
echo "$as_me: error: \"libelan present, but unable to determine libelan version\"" >&2;}
   { (exit 1); exit 1; }; }
    fi
    cat >>confdefs.h <<_ACEOF
#define ELAN_VERSION_MAJOR $majorver
_ACEOF

    cat >>confdefs.h <<_ACEOF
#define ELAN_VERSION_MINOR $minorver
_ACEOF

    cat >>confdefs.h <<_ACEOF
#define ELAN_VERSION_SUB $subver
_ACEOF


    echo "$as_me:$LINENO: checking for elan driver version" >&5
echo $ECHO_N "checking for elan driver version... $ECHO_C" >&6
    ELAN_DRIVER_VERSION=unknown
    if test -f /proc/qsnet/version ; then
      ELAN_DRIVER_VERSION=`cat /proc/qsnet/version`
    fi
    echo "$as_me:$LINENO: result: $ELAN_DRIVER_VERSION" >&5
echo "${ECHO_T}$ELAN_DRIVER_VERSION" >&6
    cat >>confdefs.h <<_ACEOF
#define ELAN_DRIVER_VERSION $ELAN_DRIVER_VERSION
_ACEOF


    ELAN4_KERNEL_PATCH=no
    if test -d /proc/qsnet/elan4/ ; then
      echo "$as_me:$LINENO: checking for elan kernel patches" >&5
echo $ECHO_N "checking for elan kernel patches... $ECHO_C" >&6
      if test -f /proc/qsnet/elan4/config/user_ioproc_enabled ; then
        ELAN4_KERNEL_PATCH=yes
        cat >>confdefs.h <<\_ACEOF
#define ELAN4_KERNEL_PATCH 1
_ACEOF

	echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      else
        ELAN4_KERNEL_PATCH=no
	echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
        badkernelmsg="It appears you are attempting to compile Quadrics/elan4 support \
using the Quadrics patch-free elan4 drivers. These drivers are a nice convenience for \
test driving Quadrics hardware on your stock Linux kernel, but are NOT intended for \
use in production super computing environments, and specifically have serious known bugs when \
used with one-sided elan-based communication libraries such as GASNet or shmem. \
You should download the latest Linux kernel patch and associated drivers from \
http://www.quadrics.com and follow the instructions on that page to install them. \
Use of GASNet with the patch-free kernel drivers is HIGHLY discouraged, \
and will very likely induce both serious performance degradation \
and significant application runtime stability problems."



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(allow-elan4-patchfree,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-allow-elan4-patchfree or --disable-allow-elan4-patchfree was given.
if test "${enable_allow_elan4_patchfree+set}" = set; then
  enableval="$enable_allow_elan4_patchfree"

fi;

case "$enable_allow_elan4_patchfree" in
  '' | no) :

  	  { { echo "$as_me:$LINENO: error: $badkernelmsg \
If you're REALLY sure you know what you're doing, you may enable the use of these \
problematic drivers at your own risk by passing the --enable-allow-elan4-patchfree flag." >&5
echo "$as_me: error: $badkernelmsg \
If you're REALLY sure you know what you're doing, you may enable the use of these \
problematic drivers at your own risk by passing the --enable-allow-elan4-patchfree flag." >&2;}
   { (exit 1); exit 1; }; }
	 ;;
  *)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: $badkernelmsg" >&5
echo "$as_me: WARNING: $badkernelmsg" >&2;}
  echo "$badkernelmsg" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




  	 ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(allow-elan4-patchfree,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      fi
    fi
  else
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    have_elan=no
  fi
 fi

  if test "$force_elan$have_elan" = yesno; then
    { { echo "$as_me:$LINENO: error: User requested --enable-elan but I don't know how to build elan programs for your system." >&5
echo "$as_me: error: User requested --enable-elan but I don't know how to build elan programs for your system." >&2;}
   { (exit 1); exit 1; }; }
  fi
fi





if test "$enabled_elan$have_elan" = yesyes; then
  USE_ELAN_CONDUIT_TRUE=
  USE_ELAN_CONDUIT_FALSE='#'
else
  USE_ELAN_CONDUIT_TRUE='#'
  USE_ELAN_CONDUIT_FALSE=
fi

if test "$enabled_elan$have_elan" = yesyes ; then
  CONDUITS="$CONDUITS elan"
  echo "  Quadrics Elan3/Elan4 network conduit (elan)        ON" >> $CONDUIT_LIST
else
  echo "  Quadrics Elan3/Elan4 network conduit (elan)        OFF" >> $CONDUIT_LIST
fi


#--------------------------------------------------------------------------------------------------------
# VAPI configuration





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(vapi,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-vapi or --disable-vapi was given.
if test "${enable_vapi+set}" = set; then
  enableval="$enable_vapi"

fi;
# 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)  enabled_vapi=no ;;
  yes) enabled_vapi=yes;force_vapi=yes ;;
  *)   enabled_vapi=yes ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(vapi,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$force_vapi$have_pthread" = yesno; then
  { { echo "$as_me:$LINENO: error: vapi-conduit requires pthread support but pthreads $pthread_reason" >&5
echo "$as_me: error: vapi-conduit requires pthread support but pthreads $pthread_reason" >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$enabled_vapi$have_pthread" = yesno; then
  enabled_vapi=no




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: vapi-conduit requires pthread support but pthreads $pthread_reason - disabling vapi" >&5
echo "$as_me: WARNING: vapi-conduit requires pthread support but pthreads $pthread_reason - disabling vapi" >&2;}
  echo "vapi-conduit requires pthread support but pthreads $pthread_reason - disabling vapi" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




fi
if test "$force_vapi$have_mpi_compat$have_fork" = yesnono; then
  { { echo "$as_me:$LINENO: error: vapi-conduit requires either MPI compatibility ($mpi_reason) or fork() ($fork_reason) for startup" >&5
echo "$as_me: error: vapi-conduit requires either MPI compatibility ($mpi_reason) or fork() ($fork_reason) for startup" >&2;}
   { (exit 1); exit 1; }; }
fi
if test "$enabled_vapi$have_mpi_compat$have_fork" = yesnono; then
  enabled_vapi=no




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: vapi-conduit requires either MPI compatibility ($mpi_reason) or fork() ($fork_reason) for startup - disabling vapi" >&5
echo "$as_me: WARNING: vapi-conduit requires either MPI compatibility ($mpi_reason) or fork() ($fork_reason) for startup - disabling vapi" >&2;}
  echo "vapi-conduit requires either MPI compatibility ($mpi_reason) or fork() ($fork_reason) for startup - disabling vapi" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




fi
if test "$enabled_vapi" = yes; then
  # Start by assuming we do have VAPI
  have_vapi=yes

  # Start by finding a reasonable default
  for ac_prog in vstat
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_vstat+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $vstat in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_vstat="$vstat" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_vstat="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
vstat=$ac_cv_path_vstat

if test -n "$vstat"; then
  echo "$as_me:$LINENO: result: $vstat" >&5
echo "${ECHO_T}$vstat" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$vstat" && break
done

  if test -n "$vstat"; then
    vapi_guess=`dirname \`dirname $vstat\``
  elif test -r /usr/local/ibgd/driver/infinihost; then
    vapi_guess=/usr/local/ibgd/driver/infinihost
  elif test -r /usr/mellanox; then
    vapi_guess=/usr/mellanox
  else
    vapi_guess=/usr
  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(MTHOME,$vapi_guess) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for MTHOME in environment" >&5
echo $ECHO_N "checking for MTHOME in environment... $ECHO_C" >&6



# Check whether --with-mthome or --without-mthome was given.
if test "${with_mthome+set}" = set; then
  withval="$with_mthome"

fi;



  envval_src_MTHOME="cached"
  if test "${gasnet_cv_envvar_MTHOME+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${MTHOME-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_mthome" != ""; then
	      gasnet_cv_envvar_MTHOME="$with_mthome"
	      envval_src_MTHOME=given
	    else
	      gasnet_cv_envvar_MTHOME="$vapi_guess"
	      envval_src_MTHOME=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_MTHOME="$MTHOME"
	    envval_src_MTHOME=given
      esac

fi


  MTHOME="$gasnet_cv_envvar_MTHOME"
  case "$envval_src_MTHOME" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$MTHOME\"" >&5
echo "${ECHO_T}using cached value \"$MTHOME\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$MTHOME\"" >&5
echo "${ECHO_T}no, defaulting to \"$MTHOME\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$MTHOME\"" >&5
echo "${ECHO_T}yes, using \"$MTHOME\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(MTHOME,$vapi_guess) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  # MTHOME may point to either 'true' home, or to symlinked location
  echo "$as_me:$LINENO: checking if $MTHOME is the VAPI install directory" >&5
echo $ECHO_N "checking if $MTHOME is the VAPI install directory... $ECHO_C" >&6
  if test -r $MTHOME/include/vapi.h; then
    # MTHOME looks OK
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  elif test -r $MTHOME/bin/vstat; then
    vstat=$MTHOME/bin/vstat



# vvvvvvvvvvvvvvvvvvvvvv GASNET_FOLLOWLINKS(vstat) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  gasnet_fl_file="$vstat"
  gasnet_fl_link=`/bin/ls -al "$gasnet_fl_file" | $AWK 'BEGIN{FS=">"}{split($2,A," ") ; print A[1]}'`
  while test "$gasnet_fl_link"; do
    gasnet_fl_file="$gasnet_fl_link"
    gasnet_fl_link=`/bin/ls -al "$gasnet_fl_file" | $AWK 'BEGIN{FS=">"}{split($2,A," ") ; print A[1]}'`
  done
  vstat="$gasnet_fl_file"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FOLLOWLINKS(vstat) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    MTHOME=`dirname \`dirname $vstat\``
    echo "$as_me:$LINENO: result: no - followed symlink to $MTHOME" >&5
echo "${ECHO_T}no - followed symlink to $MTHOME" >&6
  else
    echo "$as_me:$LINENO: result: probably not" >&5
echo "${ECHO_T}probably not" >&6
  fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(VAPI_INCLUDE,$MTHOME/include) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for VAPI_INCLUDE in environment" >&5
echo $ECHO_N "checking for VAPI_INCLUDE in environment... $ECHO_C" >&6



# Check whether --with-vapi-include or --without-vapi-include was given.
if test "${with_vapi_include+set}" = set; then
  withval="$with_vapi_include"

fi;



  envval_src_VAPI_INCLUDE="cached"
  if test "${gasnet_cv_envvar_VAPI_INCLUDE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${VAPI_INCLUDE-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_vapi_include" != ""; then
	      gasnet_cv_envvar_VAPI_INCLUDE="$with_vapi_include"
	      envval_src_VAPI_INCLUDE=given
	    else
	      gasnet_cv_envvar_VAPI_INCLUDE="$MTHOME/include"
	      envval_src_VAPI_INCLUDE=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_VAPI_INCLUDE="$VAPI_INCLUDE"
	    envval_src_VAPI_INCLUDE=given
      esac

fi


  VAPI_INCLUDE="$gasnet_cv_envvar_VAPI_INCLUDE"
  case "$envval_src_VAPI_INCLUDE" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$VAPI_INCLUDE\"" >&5
echo "${ECHO_T}using cached value \"$VAPI_INCLUDE\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$VAPI_INCLUDE\"" >&5
echo "${ECHO_T}no, defaulting to \"$VAPI_INCLUDE\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$VAPI_INCLUDE\"" >&5
echo "${ECHO_T}yes, using \"$VAPI_INCLUDE\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(VAPI_INCLUDE,$MTHOME/include) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(VAPI_LIBS,-lvapi -lmtl_common -lmosal -lmpga) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for VAPI_LIBS in environment" >&5
echo $ECHO_N "checking for VAPI_LIBS in environment... $ECHO_C" >&6



# Check whether --with-vapi-libs or --without-vapi-libs was given.
if test "${with_vapi_libs+set}" = set; then
  withval="$with_vapi_libs"

fi;



  envval_src_VAPI_LIBS="cached"
  if test "${gasnet_cv_envvar_VAPI_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${VAPI_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_vapi_libs" != ""; then
	      gasnet_cv_envvar_VAPI_LIBS="$with_vapi_libs"
	      envval_src_VAPI_LIBS=given
	    else
	      gasnet_cv_envvar_VAPI_LIBS="-lvapi -lmtl_common -lmosal -lmpga"
	      envval_src_VAPI_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_VAPI_LIBS="$VAPI_LIBS"
	    envval_src_VAPI_LIBS=given
      esac

fi


  VAPI_LIBS="$gasnet_cv_envvar_VAPI_LIBS"
  case "$envval_src_VAPI_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$VAPI_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$VAPI_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$VAPI_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$VAPI_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$VAPI_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$VAPI_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(VAPI_LIBS,-lvapi -lmtl_common -lmosal -lmpga) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  # Note 'test -d $foo/.' works even if $foo is a symlink
  if test x"$ac_cv_sizeof_void_p" = x8 -a -d $MTHOME/lib64/.; then
    vapi_libdir_default=$MTHOME/lib64
  else
    vapi_libdir_default=$MTHOME/lib
  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(VAPI_LIBDIR,$vapi_libdir_default) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for VAPI_LIBDIR in environment" >&5
echo $ECHO_N "checking for VAPI_LIBDIR in environment... $ECHO_C" >&6



# Check whether --with-vapi-libdir or --without-vapi-libdir was given.
if test "${with_vapi_libdir+set}" = set; then
  withval="$with_vapi_libdir"

fi;



  envval_src_VAPI_LIBDIR="cached"
  if test "${gasnet_cv_envvar_VAPI_LIBDIR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${VAPI_LIBDIR-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_vapi_libdir" != ""; then
	      gasnet_cv_envvar_VAPI_LIBDIR="$with_vapi_libdir"
	      envval_src_VAPI_LIBDIR=given
	    else
	      gasnet_cv_envvar_VAPI_LIBDIR="$vapi_libdir_default"
	      envval_src_VAPI_LIBDIR=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_VAPI_LIBDIR="$VAPI_LIBDIR"
	    envval_src_VAPI_LIBDIR=given
      esac

fi


  VAPI_LIBDIR="$gasnet_cv_envvar_VAPI_LIBDIR"
  case "$envval_src_VAPI_LIBDIR" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$VAPI_LIBDIR\"" >&5
echo "${ECHO_T}using cached value \"$VAPI_LIBDIR\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$VAPI_LIBDIR\"" >&5
echo "${ECHO_T}no, defaulting to \"$VAPI_LIBDIR\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$VAPI_LIBDIR\"" >&5
echo "${ECHO_T}yes, using \"$VAPI_LIBDIR\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(VAPI_LIBDIR,$vapi_libdir_default) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  # Assemble any extra flags needed at library build time
  VAPI_LIBCFLAGS=''
  echo "$as_me:$LINENO: checking if $CC supports GNU variadic preprocessor macros" >&5
echo $ECHO_N "checking if $CC supports GNU variadic preprocessor macros... $ECHO_C" >&6
  if test "$gasnet_cv_cc_family" = "GNU"; then
    echo "$as_me:$LINENO: result: yes (gcc)" >&5
echo "${ECHO_T}yes (gcc)" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

	extern void bar1(int a);
	extern void bar3(int a, int b, int c);
	#define foo1(A, B...) bar1(A, ## B)	/* expect the comma to disappear */
	#define foo3(A, B...) bar3(A, ## B)	/* expect the comma to remain */

int
main ()
{

	foo1(1);
	foo3(1, 2, 3);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5


      # Work aroung bug #522 by omitting mtl_log.h
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
      VAPI_LIBCFLAGS="$VAPI_LIBCFLAGS -DH_MTL_LOG_H"

fi
rm -f conftest.$ac_objext conftest.$ac_ext
  fi

  # Since we are using firehose we need to disable certain optimizations.
  # See bug #350 for an example of why firehose needs this.
  # See bug #596 or #1031 for evidence that VAPI is affected by this.
  # See bug #1052 for evidence that xlc is affected.
  case "$gasnet_cv_cc_family" in
    GNU) VAPI_NO_ALIAS="-fno-strict-aliasing";;
    Pathscale) VAPI_NO_ALIAS="-fno-strict-aliasing";;
    XLC) VAPI_NO_ALIAS="-qnoansialias -qalias=addr";;
      *) VAPI_NO_ALIAS="";;
  esac

  # Try to compile and link a basic VAPI program
  echo "$as_me:$LINENO: checking for working VAPI configuration" >&5
echo $ECHO_N "checking for working VAPI configuration... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I$VAPI_INCLUDE $GASNET_THREAD_DEFINES $VAPI_LIBCFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -I$VAPI_INCLUDE $GASNET_THREAD_DEFINES $VAPI_LIBCFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I$VAPI_INCLUDE $GASNET_THREAD_DEFINES $VAPI_LIBCFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$LIBS -L$VAPI_LIBDIR $VAPI_LIBS $GASNET_THREAD_LIBS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$LIBS -L$VAPI_LIBDIR $VAPI_LIBS $GASNET_THREAD_LIBS"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$LIBS -L$VAPI_LIBDIR $VAPI_LIBS $GASNET_THREAD_LIBS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  # try to compile and link a simple VAPI program
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

    #include <evapi.h>

int
main ()
{
{
    int rc;
    u_int32_t num_of_hcas;
    VAPI_hca_id_t inst_hca_id;

    rc = EVAPI_list_hcas(1, &num_of_hcas, &inst_hca_id);
    }
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   vapi_test_worked=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 vapi_test_worked=no
if test -f "conftest.$ac_ext" ; then
  cp conftest.$ac_ext gasnet_errsave_file
fi
if test -f "conftest.err" ; then
  cp conftest.err gasnet_errsave_err
fi

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  if test "$vapi_test_worked" = yes; then
    echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
  else
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    have_vapi=no
  fi

  # Check for conflict
  if test "$force_vapi$have_vapi" = yesno; then


echo
echo "configure error: User requested --enable-vapi but I don't know how to build VAPI programs for your system."
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


  fi

  if test "$have_vapi" = yes; then
    echo "$as_me:$LINENO: checking for VAPI FMR support" >&5
echo $ECHO_N "checking for VAPI FMR support... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I$VAPI_INCLUDE $GASNET_THREAD_DEFINES $VAPI_LIBCFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -I$VAPI_INCLUDE $GASNET_THREAD_DEFINES $VAPI_LIBCFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I$VAPI_INCLUDE $GASNET_THREAD_DEFINES $VAPI_LIBCFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$LIBS -L$VAPI_LIBDIR $VAPI_LIBS $GASNET_THREAD_LIBS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$LIBS -L$VAPI_LIBDIR $VAPI_LIBS $GASNET_THREAD_LIBS"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$LIBS -L$VAPI_LIBDIR $VAPI_LIBS $GASNET_THREAD_LIBS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

      #include <vapi.h>
      #include <evapi.h>

int
main ()
{
{
      VAPI_hca_hndl_t my_hca;
      EVAPI_fmr_hndl_t handles[1];
      EVAPI_unmap_fmr(my_hca, 1, handles);
    }
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   cat >>confdefs.h <<\_ACEOF
#define HAVE_VAPI_FMR 1
_ACEOF

          echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




    # Collect some VAPI-specifc configure options



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(vapi-poll-lock,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-vapi-poll-lock or --disable-vapi-poll-lock was given.
if test "${enable_vapi_poll_lock+set}" = set; then
  enableval="$enable_vapi_poll_lock"

fi;
# Check whether --enable-vapi-poll-lock or --disable-vapi-poll-lock was given.
if test "${enable_vapi_poll_lock+set}" = set; then
  enableval="$enable_vapi_poll_lock"

fi;
case "$enable_vapi_poll_lock" in
  no)  enabled_vapi_poll_lock=no ;;
  yes) enabled_vapi_poll_lock=yes ;;
  *)   enabled_vapi_poll_lock=no ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(vapi-poll-lock,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      if test "$enabled_vapi_poll_lock" = yes; then
        cat >>confdefs.h <<\_ACEOF
#define GASNETC_VAPI_POLL_LOCK 1
_ACEOF

      fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(vapi-rcv-thread,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-vapi-rcv-thread or --disable-vapi-rcv-thread was given.
if test "${enable_vapi_rcv_thread+set}" = set; then
  enableval="$enable_vapi_rcv_thread"

fi;
# Check whether --enable-vapi-rcv-thread or --disable-vapi-rcv-thread was given.
if test "${enable_vapi_rcv_thread+set}" = set; then
  enableval="$enable_vapi_rcv_thread"

fi;
case "$enable_vapi_rcv_thread" in
  no)  enabled_vapi_rcv_thread=no ;;
  yes) enabled_vapi_rcv_thread=yes ;;
  *)   enabled_vapi_rcv_thread=yes ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(vapi-rcv-thread,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      if test "$enabled_vapi_rcv_thread" = yes; then
        cat >>confdefs.h <<\_ACEOF
#define GASNETC_VAPI_RCV_THREAD 1
_ACEOF

      fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_WITH(vapi-spawner,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)


# Check whether --with-vapi-spawner or --without-vapi-spawner was given.
if test "${with_vapi_spawner+set}" = set; then
  withval="$with_vapi_spawner"

  case "$withval" in
    no) :
        { { echo "$as_me:$LINENO: error: --with-vapi-spawner argument must be \"ssh\" or \"mpi\"" >&5
echo "$as_me: error: --with-vapi-spawner argument must be \"ssh\" or \"mpi\"" >&2;}
   { (exit 1); exit 1; }; } ;;
    *)  case "$withval" in
          ssh|mpi) GASNET_VAPI_SPAWNER_CONF=$withval
	       ;;
          yes) { { echo "$as_me:$LINENO: error: --with-vapi-spawner requires an argument (\"ssh\" or \"mpi\")" >&5
echo "$as_me: error: --with-vapi-spawner requires an argument (\"ssh\" or \"mpi\")" >&2;}
   { (exit 1); exit 1; }; }
	       ;;
          *)   { { echo "$as_me:$LINENO: error: --with-vapi-spawner argument must be \"ssh\" or \"mpi\"" >&5
echo "$as_me: error: --with-vapi-spawner argument must be \"ssh\" or \"mpi\"" >&2;}
   { (exit 1); exit 1; }; }
	       ;;
        esac ;;
  esac

else

   :
   if test "$have_mpi_compat" = yes; then
          GASNET_VAPI_SPAWNER_CONF=mpi
        else
          GASNET_VAPI_SPAWNER_CONF=ssh
        fi

fi;

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_WITH(vapi-spawner,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




    if test "$GASNET_VAPI_SPAWNER_CONF$have_mpi_compat" = mpino; then
      { { echo "$as_me:$LINENO: error: --with-vapi-spawner=mpi requires MPI compatibility support which $mpi_reason" >&5
echo "$as_me: error: --with-vapi-spawner=mpi requires MPI compatibility support which $mpi_reason" >&2;}
   { (exit 1); exit 1; }; }
    fi
    if test "$GASNET_VAPI_SPAWNER_CONF$have_fork" = sshno; then
      { { echo "$as_me:$LINENO: error: --with-vapi-spawner=ssh requires fork() support which $fork_reason" >&5
echo "$as_me: error: --with-vapi-spawner=ssh requires fork() support which $fork_reason" >&2;}
   { (exit 1); exit 1; }; }
    fi

    gasnetc_vapi_max_hcas=2



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(vapi-multirail,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-vapi-multirail or --disable-vapi-multirail was given.
if test "${enable_vapi_multirail+set}" = set; then
  enableval="$enable_vapi_multirail"

fi;
# Check whether --enable-vapi-multirail or --disable-vapi-multirail was given.
if test "${enable_vapi_multirail+set}" = set; then
  enableval="$enable_vapi_multirail"

fi;
case "$enable_vapi_multirail" in
  no)  enabled_vapi_multirail=no ;;
  yes) enabled_vapi_multirail=yes ;;
  *)   enabled_vapi_multirail=yes ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(vapi-multirail,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_WITH(vapi-max-hcas,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)


# Check whether --with-vapi-max-hcas or --without-vapi-max-hcas was given.
if test "${with_vapi_max_hcas+set}" = set; then
  withval="$with_vapi_max_hcas"

  case "$withval" in
    no) :
        { { echo "$as_me:$LINENO: error: --with-vapi-max-hcas requires a postive integer argument" >&5
echo "$as_me: error: --with-vapi-max-hcas requires a postive integer argument" >&2;}
   { (exit 1); exit 1; }; } ;;
    *)  if expr "${withval}" : "[1-9][0-9]*" >/dev/null; then
	  gasnetc_vapi_max_hcas="$withval"
	else
          { { echo "$as_me:$LINENO: error: --with-vapi-max-hcas requires a postive integer argument" >&5
echo "$as_me: error: --with-vapi-max-hcas requires a postive integer argument" >&2;}
   { (exit 1); exit 1; }; }
        fi ;;
  esac

else

   :
   :

fi;

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_WITH(vapi-max-hcas,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    if test "$enabled_vapi_multirail" = yes; then
      cat >>confdefs.h <<_ACEOF
#define GASNETC_VAPI_MAX_HCAS $gasnetc_vapi_max_hcas
_ACEOF

    fi
  fi
fi







if test "$have_vapi" = yes; then
  USE_VAPI_CONDUIT_TRUE=
  USE_VAPI_CONDUIT_FALSE='#'
else
  USE_VAPI_CONDUIT_TRUE='#'
  USE_VAPI_CONDUIT_FALSE=
fi



if test "$have_mpi_compat" = yes; then
  VAPI_BOOTSTRAP_MPI_TRUE=
  VAPI_BOOTSTRAP_MPI_FALSE='#'
else
  VAPI_BOOTSTRAP_MPI_TRUE='#'
  VAPI_BOOTSTRAP_MPI_FALSE=
fi
	# Option to omit MPI support?


if test "$enabled_vapi_rcv_thread" = yes; then
  VAPI_RCV_THREAD_TRUE=
  VAPI_RCV_THREAD_FALSE='#'
else
  VAPI_RCV_THREAD_TRUE='#'
  VAPI_RCV_THREAD_FALSE=
fi

if test "$have_vapi" = yes ; then
  CONDUITS="$CONDUITS vapi"
  echo "  Mellanox InfiniBand/VAPI network conduit (vapi)    ON" >> $CONDUIT_LIST
else
  echo "  Mellanox InfiniBand/VAPI network conduit (vapi)    OFF" >> $CONDUIT_LIST
fi

#--------------------------------------------------------------------------------------------------------
# Portals Conduit


case "$target" in
  *-catamount-*) enabled_portals=yes ;; # enable by default only on catamount
  *) enabled_portals=no ;;
esac



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(portals,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-portals or --disable-portals was given.
if test "${enable_portals+set}" = set; then
  enableval="$enable_portals"

fi;
# Check whether --enable-portals or --disable-portals was given.
if test "${enable_portals+set}" = set; then
  enableval="$enable_portals"

fi;
case "$enable_portals" in
  no)  enabled_portals=no ;;
  yes) enabled_portals=yes;force_portals=yes ;;
  *)    ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(portals,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




if test "$enabled_portals" = yes; then
  have_portals=yes # start by assuming we have it



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(PE_DIR,/opt/xt-pe/default) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for PE_DIR in environment" >&5
echo $ECHO_N "checking for PE_DIR in environment... $ECHO_C" >&6



# Check whether --with-pe-dir or --without-pe-dir was given.
if test "${with_pe_dir+set}" = set; then
  withval="$with_pe_dir"

fi;



  envval_src_PE_DIR="cached"
  if test "${gasnet_cv_envvar_PE_DIR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${PE_DIR-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_pe_dir" != ""; then
	      gasnet_cv_envvar_PE_DIR="$with_pe_dir"
	      envval_src_PE_DIR=given
	    else
	      gasnet_cv_envvar_PE_DIR="/opt/xt-pe/default"
	      envval_src_PE_DIR=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_PE_DIR="$PE_DIR"
	    envval_src_PE_DIR=given
      esac

fi


  PE_DIR="$gasnet_cv_envvar_PE_DIR"
  case "$envval_src_PE_DIR" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$PE_DIR\"" >&5
echo "${ECHO_T}using cached value \"$PE_DIR\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$PE_DIR\"" >&5
echo "${ECHO_T}no, defaulting to \"$PE_DIR\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$PE_DIR\"" >&5
echo "${ECHO_T}yes, using \"$PE_DIR\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(PE_DIR,/opt/xt-pe/default) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(PORTALS_INCLUDE,$PE_DIR/include) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for PORTALS_INCLUDE in environment" >&5
echo $ECHO_N "checking for PORTALS_INCLUDE in environment... $ECHO_C" >&6



# Check whether --with-portals-include or --without-portals-include was given.
if test "${with_portals_include+set}" = set; then
  withval="$with_portals_include"

fi;



  envval_src_PORTALS_INCLUDE="cached"
  if test "${gasnet_cv_envvar_PORTALS_INCLUDE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${PORTALS_INCLUDE-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_portals_include" != ""; then
	      gasnet_cv_envvar_PORTALS_INCLUDE="$with_portals_include"
	      envval_src_PORTALS_INCLUDE=given
	    else
	      gasnet_cv_envvar_PORTALS_INCLUDE="$PE_DIR/include"
	      envval_src_PORTALS_INCLUDE=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_PORTALS_INCLUDE="$PORTALS_INCLUDE"
	    envval_src_PORTALS_INCLUDE=given
      esac

fi


  PORTALS_INCLUDE="$gasnet_cv_envvar_PORTALS_INCLUDE"
  case "$envval_src_PORTALS_INCLUDE" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$PORTALS_INCLUDE\"" >&5
echo "${ECHO_T}using cached value \"$PORTALS_INCLUDE\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$PORTALS_INCLUDE\"" >&5
echo "${ECHO_T}no, defaulting to \"$PORTALS_INCLUDE\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$PORTALS_INCLUDE\"" >&5
echo "${ECHO_T}yes, using \"$PORTALS_INCLUDE\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(PORTALS_INCLUDE,$PE_DIR/include) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CATAMOUNT_DIR,/opt/xt-catamount/default) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for CATAMOUNT_DIR in environment" >&5
echo $ECHO_N "checking for CATAMOUNT_DIR in environment... $ECHO_C" >&6



# Check whether --with-catamount-dir or --without-catamount-dir was given.
if test "${with_catamount_dir+set}" = set; then
  withval="$with_catamount_dir"

fi;



  envval_src_CATAMOUNT_DIR="cached"
  if test "${gasnet_cv_envvar_CATAMOUNT_DIR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${CATAMOUNT_DIR-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_catamount_dir" != ""; then
	      gasnet_cv_envvar_CATAMOUNT_DIR="$with_catamount_dir"
	      envval_src_CATAMOUNT_DIR=given
	    else
	      gasnet_cv_envvar_CATAMOUNT_DIR="/opt/xt-catamount/default"
	      envval_src_CATAMOUNT_DIR=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_CATAMOUNT_DIR="$CATAMOUNT_DIR"
	    envval_src_CATAMOUNT_DIR=given
      esac

fi


  CATAMOUNT_DIR="$gasnet_cv_envvar_CATAMOUNT_DIR"
  case "$envval_src_CATAMOUNT_DIR" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CATAMOUNT_DIR\"" >&5
echo "${ECHO_T}using cached value \"$CATAMOUNT_DIR\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CATAMOUNT_DIR\"" >&5
echo "${ECHO_T}no, defaulting to \"$CATAMOUNT_DIR\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CATAMOUNT_DIR\"" >&5
echo "${ECHO_T}yes, using \"$CATAMOUNT_DIR\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CATAMOUNT_DIR,/opt/xt-catamount/default) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CATAMOUNT_INCLUDE,$CATAMOUNT_DIR/catamount/linux/include) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for CATAMOUNT_INCLUDE in environment" >&5
echo $ECHO_N "checking for CATAMOUNT_INCLUDE in environment... $ECHO_C" >&6



# Check whether --with-catamount-include or --without-catamount-include was given.
if test "${with_catamount_include+set}" = set; then
  withval="$with_catamount_include"

fi;



  envval_src_CATAMOUNT_INCLUDE="cached"
  if test "${gasnet_cv_envvar_CATAMOUNT_INCLUDE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${CATAMOUNT_INCLUDE-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_catamount_include" != ""; then
	      gasnet_cv_envvar_CATAMOUNT_INCLUDE="$with_catamount_include"
	      envval_src_CATAMOUNT_INCLUDE=given
	    else
	      gasnet_cv_envvar_CATAMOUNT_INCLUDE="$CATAMOUNT_DIR/catamount/linux/include"
	      envval_src_CATAMOUNT_INCLUDE=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_CATAMOUNT_INCLUDE="$CATAMOUNT_INCLUDE"
	    envval_src_CATAMOUNT_INCLUDE=given
      esac

fi


  CATAMOUNT_INCLUDE="$gasnet_cv_envvar_CATAMOUNT_INCLUDE"
  case "$envval_src_CATAMOUNT_INCLUDE" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CATAMOUNT_INCLUDE\"" >&5
echo "${ECHO_T}using cached value \"$CATAMOUNT_INCLUDE\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CATAMOUNT_INCLUDE\"" >&5
echo "${ECHO_T}no, defaulting to \"$CATAMOUNT_INCLUDE\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CATAMOUNT_INCLUDE\"" >&5
echo "${ECHO_T}yes, using \"$CATAMOUNT_INCLUDE\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CATAMOUNT_INCLUDE,$CATAMOUNT_DIR/catamount/linux/include) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  if test "$have_mpi_compat" != yes; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: portals-conduit requires MPI compatibility support which $mpi_reason" >&5
echo "$as_me: WARNING: portals-conduit requires MPI compatibility support which $mpi_reason" >&2;}
  echo "portals-conduit requires MPI compatibility support which $mpi_reason" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




    have_portals=no
  fi
  if test "$gasnet_cv_cc_family" != GNU; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: portals-conduit currently requires the GNU GCC compiler (PrgEnv-gnu))" >&5
echo "$as_me: WARNING: portals-conduit currently requires the GNU GCC compiler (PrgEnv-gnu))" >&2;}
  echo "portals-conduit currently requires the GNU GCC compiler (PrgEnv-gnu))" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




    have_portals=no
  fi
  if test $have_portals = yes; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I${PORTALS_INCLUDE} -I${CATAMOUNT_INCLUDE}") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -I${PORTALS_INCLUDE} -I${CATAMOUNT_INCLUDE}"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I${PORTALS_INCLUDE} -I${CATAMOUNT_INCLUDE}") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




    echo "$as_me:$LINENO: checking for working Portals configuration" >&5
echo $ECHO_N "checking for working Portals configuration... $ECHO_C" >&6
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

       #include <portals/portals3.h>
       #include <catamount/cnos_mpi_os.h>

int
main ()
{
{
       static ptl_handle_ni_t ptl_ni_h;
       static ptl_interface_t ptl_iface;
       int my_rank = cnos_get_rank();
       int my_size = cnos_get_size();
       PtlNIInit(ptl_iface, PTL_PID_ANY, NULL, NULL, &ptl_ni_h);
    }
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   portals_test_worked=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 portals_test_worked=no
if test -f "conftest.$ac_ext" ; then
  cp conftest.$ac_ext gasnet_errsave_file
fi
if test -f "conftest.err" ; then
  cp conftest.err gasnet_errsave_err
fi

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




    if test "$portals_test_worked" = yes; then
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
    else
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: build test failed: I don't know how to build Portals programs on your system" >&5
echo "$as_me: WARNING: build test failed: I don't know how to build Portals programs on your system" >&2;}
  echo "build test failed: I don't know how to build Portals programs on your system" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




      have_portals=no
    fi
  fi
  # Check for conflict
  if test "$force_portals$have_portals" = yesno; then


echo
echo "configure error: User requested --enable-portals but I don't know how to build Portals programs for your system."
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


  fi


fi



if test "$have_portals" = yes; then
  USE_PORTALS_CONDUIT_TRUE=
  USE_PORTALS_CONDUIT_FALSE='#'
else
  USE_PORTALS_CONDUIT_TRUE='#'
  USE_PORTALS_CONDUIT_FALSE=
fi

if test "$have_portals" = yes ; then
   CONDUITS="$CONDUITS portals"
   echo "  Portals network conduit (portals)                  ON" >> $CONDUIT_LIST
else
   echo "  Portals network conduit (portals)                  OFF" >> $CONDUIT_LIST
fi


#--------------------------------------------------------------------------------------------------------
# SHMEM configuration





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(shmem,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-shmem or --disable-shmem was given.
if test "${enable_shmem+set}" = set; then
  enableval="$enable_shmem"

fi;
# 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)  enabled_shmem=no ;;
  yes) enabled_shmem=yes;force_shmem=yes ;;
  *)   enabled_shmem=yes ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(shmem,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




if test $enabled_shmem = yes; then
  SHMEM_FLAVOUR="unknown"
  have_shmem=yes

  echo "$as_me:$LINENO: checking for SHMEM network type" >&5
echo $ECHO_N "checking for SHMEM network type... $ECHO_C" >&6

  case "$target_os" in
    unicos*)
      echo "$as_me:$LINENO: result: Cray" >&5
echo "${ECHO_T}Cray" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(SHMEM_INCLUDE,/opt/ctl/mpt/mpt/include) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for SHMEM_INCLUDE in environment" >&5
echo $ECHO_N "checking for SHMEM_INCLUDE in environment... $ECHO_C" >&6



# Check whether --with-shmem-include or --without-shmem-include was given.
if test "${with_shmem_include+set}" = set; then
  withval="$with_shmem_include"

fi;



  envval_src_SHMEM_INCLUDE="cached"
  if test "${gasnet_cv_envvar_SHMEM_INCLUDE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${SHMEM_INCLUDE-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_shmem_include" != ""; then
	      gasnet_cv_envvar_SHMEM_INCLUDE="$with_shmem_include"
	      envval_src_SHMEM_INCLUDE=given
	    else
	      gasnet_cv_envvar_SHMEM_INCLUDE="/opt/ctl/mpt/mpt/include"
	      envval_src_SHMEM_INCLUDE=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_SHMEM_INCLUDE="$SHMEM_INCLUDE"
	    envval_src_SHMEM_INCLUDE=given
      esac

fi


  SHMEM_INCLUDE="$gasnet_cv_envvar_SHMEM_INCLUDE"
  case "$envval_src_SHMEM_INCLUDE" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$SHMEM_INCLUDE\"" >&5
echo "${ECHO_T}using cached value \"$SHMEM_INCLUDE\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$SHMEM_INCLUDE\"" >&5
echo "${ECHO_T}no, defaulting to \"$SHMEM_INCLUDE\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$SHMEM_INCLUDE\"" >&5
echo "${ECHO_T}yes, using \"$SHMEM_INCLUDE\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(SHMEM_INCLUDE,/opt/ctl/mpt/mpt/include) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(SHMEM_LIBDIR,/opt/ctl/mpt/mpt/lib) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for SHMEM_LIBDIR in environment" >&5
echo $ECHO_N "checking for SHMEM_LIBDIR in environment... $ECHO_C" >&6



# Check whether --with-shmem-libdir or --without-shmem-libdir was given.
if test "${with_shmem_libdir+set}" = set; then
  withval="$with_shmem_libdir"

fi;



  envval_src_SHMEM_LIBDIR="cached"
  if test "${gasnet_cv_envvar_SHMEM_LIBDIR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${SHMEM_LIBDIR-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_shmem_libdir" != ""; then
	      gasnet_cv_envvar_SHMEM_LIBDIR="$with_shmem_libdir"
	      envval_src_SHMEM_LIBDIR=given
	    else
	      gasnet_cv_envvar_SHMEM_LIBDIR="/opt/ctl/mpt/mpt/lib"
	      envval_src_SHMEM_LIBDIR=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_SHMEM_LIBDIR="$SHMEM_LIBDIR"
	    envval_src_SHMEM_LIBDIR=given
      esac

fi


  SHMEM_LIBDIR="$gasnet_cv_envvar_SHMEM_LIBDIR"
  case "$envval_src_SHMEM_LIBDIR" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$SHMEM_LIBDIR\"" >&5
echo "${ECHO_T}using cached value \"$SHMEM_LIBDIR\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$SHMEM_LIBDIR\"" >&5
echo "${ECHO_T}no, defaulting to \"$SHMEM_LIBDIR\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$SHMEM_LIBDIR\"" >&5
echo "${ECHO_T}yes, using \"$SHMEM_LIBDIR\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(SHMEM_LIBDIR,/opt/ctl/mpt/mpt/lib) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(SHMEM_LIBS,"-lsma") vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for SHMEM_LIBS in environment" >&5
echo $ECHO_N "checking for SHMEM_LIBS in environment... $ECHO_C" >&6



# Check whether --with-shmem-libs or --without-shmem-libs was given.
if test "${with_shmem_libs+set}" = set; then
  withval="$with_shmem_libs"

fi;



  envval_src_SHMEM_LIBS="cached"
  if test "${gasnet_cv_envvar_SHMEM_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${SHMEM_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_shmem_libs" != ""; then
	      gasnet_cv_envvar_SHMEM_LIBS="$with_shmem_libs"
	      envval_src_SHMEM_LIBS=given
	    else
	      gasnet_cv_envvar_SHMEM_LIBS=""-lsma""
	      envval_src_SHMEM_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_SHMEM_LIBS="$SHMEM_LIBS"
	    envval_src_SHMEM_LIBS=given
      esac

fi


  SHMEM_LIBS="$gasnet_cv_envvar_SHMEM_LIBS"
  case "$envval_src_SHMEM_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$SHMEM_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$SHMEM_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$SHMEM_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$SHMEM_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$SHMEM_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$SHMEM_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(SHMEM_LIBS,"-lsma") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      SHMEM_FLAVOUR="CRAY_SHMEM"
      ;;
    irix*)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: Currently no access to shmem on IRIX" >&5
echo "$as_me: WARNING: Currently no access to shmem on IRIX" >&2;}
  echo "Currently no access to shmem on IRIX" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




      have_shmem=no
      ;;
    # Linux shmem may mean Quadrics shmem or SGI shmem, but only SGI shmem is supported.
    linux*)
      if test -r /dev/xpmem; then
        # SGI Altix uhas xpmem device
	SHMEM_FLAVOUR="SGI_SHMEM"
	echo "$as_me:$LINENO: result: SGI/Altix" >&5
echo "${ECHO_T}SGI/Altix" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(SHMEM_INCLUDE,/usr/include) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for SHMEM_INCLUDE in environment" >&5
echo $ECHO_N "checking for SHMEM_INCLUDE in environment... $ECHO_C" >&6




  envval_src_SHMEM_INCLUDE="cached"
  if test "${gasnet_cv_envvar_SHMEM_INCLUDE+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${SHMEM_INCLUDE-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_shmem_include" != ""; then
	      gasnet_cv_envvar_SHMEM_INCLUDE="$with_shmem_include"
	      envval_src_SHMEM_INCLUDE=given
	    else
	      gasnet_cv_envvar_SHMEM_INCLUDE="/usr/include"
	      envval_src_SHMEM_INCLUDE=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_SHMEM_INCLUDE="$SHMEM_INCLUDE"
	    envval_src_SHMEM_INCLUDE=given
      esac

fi


  SHMEM_INCLUDE="$gasnet_cv_envvar_SHMEM_INCLUDE"
  case "$envval_src_SHMEM_INCLUDE" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$SHMEM_INCLUDE\"" >&5
echo "${ECHO_T}using cached value \"$SHMEM_INCLUDE\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$SHMEM_INCLUDE\"" >&5
echo "${ECHO_T}no, defaulting to \"$SHMEM_INCLUDE\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$SHMEM_INCLUDE\"" >&5
echo "${ECHO_T}yes, using \"$SHMEM_INCLUDE\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(SHMEM_INCLUDE,/usr/include) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



        # Work around stoopid bug in Intel ecc on Altix: programs won't compile
        # if -L/usr/lib is explicitly passed.



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(SHMEM_LIBDIR,/anything/but/usr/lib) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for SHMEM_LIBDIR in environment" >&5
echo $ECHO_N "checking for SHMEM_LIBDIR in environment... $ECHO_C" >&6




  envval_src_SHMEM_LIBDIR="cached"
  if test "${gasnet_cv_envvar_SHMEM_LIBDIR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${SHMEM_LIBDIR-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_shmem_libdir" != ""; then
	      gasnet_cv_envvar_SHMEM_LIBDIR="$with_shmem_libdir"
	      envval_src_SHMEM_LIBDIR=given
	    else
	      gasnet_cv_envvar_SHMEM_LIBDIR="/anything/but/usr/lib"
	      envval_src_SHMEM_LIBDIR=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_SHMEM_LIBDIR="$SHMEM_LIBDIR"
	    envval_src_SHMEM_LIBDIR=given
      esac

fi


  SHMEM_LIBDIR="$gasnet_cv_envvar_SHMEM_LIBDIR"
  case "$envval_src_SHMEM_LIBDIR" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$SHMEM_LIBDIR\"" >&5
echo "${ECHO_T}using cached value \"$SHMEM_LIBDIR\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$SHMEM_LIBDIR\"" >&5
echo "${ECHO_T}no, defaulting to \"$SHMEM_LIBDIR\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$SHMEM_LIBDIR\"" >&5
echo "${ECHO_T}yes, using \"$SHMEM_LIBDIR\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(SHMEM_LIBDIR,/anything/but/usr/lib) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(SHMEM_LIBS,-lsma -lmpi) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for SHMEM_LIBS in environment" >&5
echo $ECHO_N "checking for SHMEM_LIBS in environment... $ECHO_C" >&6




  envval_src_SHMEM_LIBS="cached"
  if test "${gasnet_cv_envvar_SHMEM_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${SHMEM_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_shmem_libs" != ""; then
	      gasnet_cv_envvar_SHMEM_LIBS="$with_shmem_libs"
	      envval_src_SHMEM_LIBS=given
	    else
	      gasnet_cv_envvar_SHMEM_LIBS="-lsma -lmpi"
	      envval_src_SHMEM_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_SHMEM_LIBS="$SHMEM_LIBS"
	    envval_src_SHMEM_LIBS=given
      esac

fi


  SHMEM_LIBS="$gasnet_cv_envvar_SHMEM_LIBS"
  case "$envval_src_SHMEM_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$SHMEM_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$SHMEM_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$SHMEM_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$SHMEM_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$SHMEM_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$SHMEM_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(SHMEM_LIBS,-lsma -lmpi) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      else
        echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6
        have_shmem=no
      fi
      ;;
    *)
      echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6
      have_shmem=no
      ;;
  esac


  if test $have_shmem = yes; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I${SHMEM_INCLUDE} -I${SHMEM_INCLUDE}/mpp") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS -I${SHMEM_INCLUDE} -I${SHMEM_INCLUDE}/mpp"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -I${SHMEM_INCLUDE} -I${SHMEM_INCLUDE}/mpp") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$LIBS -L${SHMEM_LIBDIR} ${SHMEM_LIBS}") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$LIBS -L${SHMEM_LIBDIR} ${SHMEM_LIBS}"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$LIBS -L${SHMEM_LIBDIR} ${SHMEM_LIBS}") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    SHMEM_FLAGS="-D${SHMEM_FLAVOUR}"

    echo "$as_me:$LINENO: checking for working SHMEM configuration" >&5
echo $ECHO_N "checking for working SHMEM configuration... $ECHO_C" >&6
    # only include shmem.h even if some prescribe <mpp/shmem.h> and rely on the
    # include search directories to be correct.  This approach is more general
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

      #include <shmem.h>

int
main ()
{
{
      int mype, numpes;

      mype = shmem_my_pe();
      numpes = shmem_n_pes();
      }
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   shmem_test_worked=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 shmem_test_worked=no
if test -f "conftest.$ac_ext" ; then
  cp conftest.$ac_ext gasnet_errsave_file
fi
if test -f "conftest.err" ; then
  cp conftest.err gasnet_errsave_err
fi

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




    if test "$shmem_test_worked" = yes; then
      echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
      SHMEM_FLAGS="-D${SHMEM_FLAVOUR} "
    else
      echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: build test failed: I don't know how to build SHMEM programs on your system" >&5
echo "$as_me: WARNING: build test failed: I don't know how to build SHMEM programs on your system" >&2;}
  echo "build test failed: I don't know how to build SHMEM programs on your system" >> .gasnet_cv_configure_warnings.tmp
  echo " " >> .gasnet_cv_configure_warnings.tmp

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




      have_shmem=no
    fi
  fi
  if test "$force_shmem$have_shmem" = yesno; then


echo
echo "configure error: User requested --enable-shmem but I don't know how to build shmem programs for your system"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


  fi
fi







if test "$enabled_shmem$have_shmem" = yesyes; then
  USE_SHMEM_CONDUIT_TRUE=
  USE_SHMEM_CONDUIT_FALSE='#'
else
  USE_SHMEM_CONDUIT_TRUE='#'
  USE_SHMEM_CONDUIT_FALSE=
fi

if test "$enabled_shmem$have_shmem" = yesyes ; then
  CONDUITS="$CONDUITS shmem"
  echo "  Shmem network conduit (shmem)                      ON" >> $CONDUIT_LIST
else
  echo "  Shmem network conduit (shmem)                      OFF" >> $CONDUIT_LIST
fi


#--------------------------------------------------------------------------------------------------------
# SCI configuration





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(sci,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-sci or --disable-sci was given.
if test "${enable_sci+set}" = set; then
  enableval="$enable_sci"

fi;
# Check whether --enable-sci or --disable-sci was given.
if test "${enable_sci+set}" = set; then
  enableval="$enable_sci"

fi;
case "$enable_sci" in
  no)  enabled_sci=no ;;
  yes) enabled_sci=yes;force_sci=yes ;;
  *)   enabled_sci=yes ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(sci,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




if test "$enabled_sci" = yes; then
  # Look for sci binaries in our path
  for ac_prog in scibench2
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_scibench2+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $scibench2 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_scibench2="$scibench2" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_scibench2="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
scibench2=$ac_cv_path_scibench2

if test -n "$scibench2"; then
  echo "$as_me:$LINENO: result: $scibench2" >&5
echo "${ECHO_T}$scibench2" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$scibench2" && break
done

  if test "$scibench2"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_FOLLOWLINKS(scibench2) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  gasnet_fl_file="$scibench2"
  gasnet_fl_link=`/bin/ls -al "$gasnet_fl_file" | $AWK 'BEGIN{FS=">"}{split($2,A," ") ; print A[1]}'`
  while test "$gasnet_fl_link"; do
    gasnet_fl_file="$gasnet_fl_link"
    gasnet_fl_link=`/bin/ls -al "$gasnet_fl_file" | $AWK 'BEGIN{FS=">"}{split($2,A," ") ; print A[1]}'`
  done
  scibench2="$gasnet_fl_file"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FOLLOWLINKS(scibench2) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    sci_guess=`dirname \`dirname $scibench2\``
  else
    sci_guess=/opt/DIS
  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(SCIHOME,$sci_guess) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for SCIHOME in environment" >&5
echo $ECHO_N "checking for SCIHOME in environment... $ECHO_C" >&6



# Check whether --with-scihome or --without-scihome was given.
if test "${with_scihome+set}" = set; then
  withval="$with_scihome"

fi;



  envval_src_SCIHOME="cached"
  if test "${gasnet_cv_envvar_SCIHOME+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${SCIHOME-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_scihome" != ""; then
	      gasnet_cv_envvar_SCIHOME="$with_scihome"
	      envval_src_SCIHOME=given
	    else
	      gasnet_cv_envvar_SCIHOME="$sci_guess"
	      envval_src_SCIHOME=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_SCIHOME="$SCIHOME"
	    envval_src_SCIHOME=given
      esac

fi


  SCIHOME="$gasnet_cv_envvar_SCIHOME"
  case "$envval_src_SCIHOME" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$SCIHOME\"" >&5
echo "${ECHO_T}using cached value \"$SCIHOME\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$SCIHOME\"" >&5
echo "${ECHO_T}no, defaulting to \"$SCIHOME\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$SCIHOME\"" >&5
echo "${ECHO_T}yes, using \"$SCIHOME\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(SCIHOME,$sci_guess) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(SCI_INCLUDES,-I$SCIHOME/include -I$SCIHOME/lib/api) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for SCI_INCLUDES in environment" >&5
echo $ECHO_N "checking for SCI_INCLUDES in environment... $ECHO_C" >&6



# Check whether --with-sci-includes or --without-sci-includes was given.
if test "${with_sci_includes+set}" = set; then
  withval="$with_sci_includes"

fi;



  envval_src_SCI_INCLUDES="cached"
  if test "${gasnet_cv_envvar_SCI_INCLUDES+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${SCI_INCLUDES-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_sci_includes" != ""; then
	      gasnet_cv_envvar_SCI_INCLUDES="$with_sci_includes"
	      envval_src_SCI_INCLUDES=given
	    else
	      gasnet_cv_envvar_SCI_INCLUDES="-I$SCIHOME/include -I$SCIHOME/lib/api"
	      envval_src_SCI_INCLUDES=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_SCI_INCLUDES="$SCI_INCLUDES"
	    envval_src_SCI_INCLUDES=given
      esac

fi


  SCI_INCLUDES="$gasnet_cv_envvar_SCI_INCLUDES"
  case "$envval_src_SCI_INCLUDES" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$SCI_INCLUDES\"" >&5
echo "${ECHO_T}using cached value \"$SCI_INCLUDES\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$SCI_INCLUDES\"" >&5
echo "${ECHO_T}no, defaulting to \"$SCI_INCLUDES\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$SCI_INCLUDES\"" >&5
echo "${ECHO_T}yes, using \"$SCI_INCLUDES\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(SCI_INCLUDES,-I$SCIHOME/include -I$SCIHOME/lib/api) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(SCI_LIBS,-L$SCIHOME/lib -lsisci) vvvvvvvvvvvvvvvvvvvvvv (L:1)




  echo "$as_me:$LINENO: checking for SCI_LIBS in environment" >&5
echo $ECHO_N "checking for SCI_LIBS in environment... $ECHO_C" >&6



# Check whether --with-sci-libs or --without-sci-libs was given.
if test "${with_sci_libs+set}" = set; then
  withval="$with_sci_libs"

fi;



  envval_src_SCI_LIBS="cached"
  if test "${gasnet_cv_envvar_SCI_LIBS+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${SCI_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_sci_libs" != ""; then
	      gasnet_cv_envvar_SCI_LIBS="$with_sci_libs"
	      envval_src_SCI_LIBS=given
	    else
	      gasnet_cv_envvar_SCI_LIBS="-L$SCIHOME/lib -lsisci"
	      envval_src_SCI_LIBS=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_SCI_LIBS="$SCI_LIBS"
	    envval_src_SCI_LIBS=given
      esac

fi


  SCI_LIBS="$gasnet_cv_envvar_SCI_LIBS"
  case "$envval_src_SCI_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$SCI_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$SCI_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$SCI_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$SCI_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$SCI_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$SCI_LIBS\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(SCI_LIBS,-L$SCIHOME/lib -lsisci) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  echo "$as_me:$LINENO: checking for working SCI configuration" >&5
echo $ECHO_N "checking for working SCI configuration... $ECHO_C" >&6



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $SCI_INCLUDES") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CFLAGS" = "" ; then
    _pushcnt_CFLAGS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CFLAGS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS
  eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset
  _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CFLAGS="$CFLAGS $SCI_INCLUDES"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $SCI_INCLUDES") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$LIBS $SCI_LIBS") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_LIBS" = "" ; then
    _pushcnt_LIBS=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${LIBS+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS
  eval _pushedvarset_LIBS_$_pushcnt_LIBS=$_gasnet_pushvar_isset
  _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  LIBS="$LIBS $SCI_LIBS"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$LIBS $SCI_LIBS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  # try to compile and link a simple SCI program
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

     #include <sisci_types.h>
     #include <sisci_api.h>
     #include <sisci_error.h>

int
main ()
{
{
     sci_desc_t sd;
     sci_error_t err;
     SCIOpen(&sd, 0, &err);
    }
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   have_sci=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

 have_sci=no
if test -f "conftest.$ac_ext" ; then
  cp conftest.$ac_ext gasnet_errsave_file
fi
if test -f "conftest.err" ; then
  cp conftest.err gasnet_errsave_err
fi

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_CFLAGS" -ge "1"; then
    _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS
      echo "popping CFLAGS back to: $CFLAGS" >&5
    else
      unset CFLAGS
      echo "popping CFLAGS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(LIBS) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_pushcnt_LIBS" -ge "1"; then
    _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1`
    _total_pushcnt=`expr $_total_pushcnt - 1`
    eval _gasnet_pushvar_isset=\$_pushedvarset_LIBS_$_pushcnt_LIBS
    if test "$_gasnet_pushvar_isset" = "1" ; then
      eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS
      echo "popping LIBS back to: $LIBS" >&5
    else
      unset LIBS
      echo "popping LIBS back to: <unset>" >&5
    fi
  else
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(LIBS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  echo "$as_me:$LINENO: result: $have_sci" >&5
echo "${ECHO_T}$have_sci" >&6

  # Check for conflict
  if test "$force_sci$have_sci" = yesno; then


echo
echo "configure error: User requested --enable-sci but I don't know how to build SCI programs for your system."
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }


  fi
fi




if test "$have_sci" = yes; then
  USE_SCI_CONDUIT_TRUE=
  USE_SCI_CONDUIT_FALSE='#'
else
  USE_SCI_CONDUIT_TRUE='#'
  USE_SCI_CONDUIT_FALSE=
fi

if test "$have_sci" = yes ; then
  CONDUITS="$CONDUITS sci"
  echo "  Dolphin SISCI network conduit (sci)                ON" >> $CONDUIT_LIST
else
  echo "  Dolphin SISCI network conduit (sci)                OFF" >> $CONDUIT_LIST
fi


cat >>confdefs.h <<_ACEOF
#define GASNETI_CONDUITS "$CONDUITS"
_ACEOF


########################################################################
# Configure conduit-independent spawners

# Things needed by ssh spawner


for ac_header in sys/socket.h netinet/tcp.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

case "$target_os" in
  linux*)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(ssh-prctl,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-ssh-prctl or --disable-ssh-prctl was given.
if test "${enable_ssh_prctl+set}" = set; then
  enableval="$enable_ssh_prctl"

fi;

case "$enable_ssh_prctl" in
  '' | no) :
       ;;
  *)
      echo "$as_me:$LINENO: checking for PR_SET_PDEATHSIG" >&5
echo $ECHO_N "checking for PR_SET_PDEATHSIG... $ECHO_C" >&6
      cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

          #include <sys/prctl.h>

int
main ()
{

          int rc = prctl(PR_SET_PDEATHSIG, 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
   echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
             cat >>confdefs.h <<\_ACEOF
#define HAVE_PR_SET_PDEATHSIG 1
_ACEOF

else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
       ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(ssh-prctl,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  ;;
esac

echo "$as_me:$LINENO: checking for socklen_t or its equivalent" >&5
echo $ECHO_N "checking for socklen_t or its equivalent... $ECHO_C" >&6
if test "${gasnet_cv_socklen_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

  # 'float' is to check the compiler is reliable
  gasnet_socklen_t=""
  for gasnet_socklen_try in float socklen_t size_t int long unsigned "unsigned long"; do
    if test "$gasnet_socklen_t"; then
      break; # break in success block of TRY would leave temp files
    else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"
#include <stddef.h>
	#include <sys/types.h>
	#include <sys/socket.h>
int main() {
$gasnet_socklen_try x = 0;
	getpeername(0,NULL,&x);
	getsockname(0,NULL,&x);
; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3)

  echo \"$gasnet_compile_cmd\" >&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
      :
      gasnet_socklen_t="$gasnet_socklen_try"
    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5

        _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout"
    _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4)

  gasnet_testname=gasnet-conftest
  gasnet_testfile=${gasnet_testname}.c
  gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile"
  cat > $gasnet_testfile <<EOF
#include "confdefs.h"

int main() {

; return 0; }
EOF



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:5)

  echo \"$gasnet_compile_cmd\" >&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
      :

        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"


    else
      :

    echo "configure: warned program was:" >&5
    cat $gasnet_testfile >&5
           if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then
        	gasnet_socklen_t="$gasnet_socklen_try"
      else
        	gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP"
	gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP"

      fi


    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


echo
echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN"
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 "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5
echo "$as_me: error: See $CONFIG_FILE for details." >&2;}
   { (exit 1); exit 1; }; }




  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4)





    fi
  else
    :

    echo "configure: failed program was:" >&5
    cat $gasnet_testfile >&5


  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



  rm -f ${gasnet_testname}.*

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



    fi
  done
  gasnet_cv_socklen_t="$gasnet_socklen_t"
fi

if test x"$gasnet_cv_socklen_t" = x; then
  echo "$as_me:$LINENO: result: not found" >&5
echo "${ECHO_T}not found" >&6
elif test "$gasnet_cv_socklen_t" = float; then
  echo "$as_me:$LINENO: result: compiler unreliable - defaulting to socklen_t" >&5
echo "${ECHO_T}compiler unreliable - defaulting to socklen_t" >&6
  cat >>confdefs.h <<_ACEOF
#define GASNET_SOCKLEN_T socklen_t
_ACEOF

else
  echo "$as_me:$LINENO: result: $gasnet_cv_socklen_t" >&5
echo "${ECHO_T}$gasnet_cv_socklen_t" >&6
  cat >>confdefs.h <<_ACEOF
#define GASNET_SOCKLEN_T $gasnet_cv_socklen_t
_ACEOF

fi

########################################################################

# Check for alloca in C code



  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
echo "$as_me:$LINENO: checking for working alloca.h" >&5
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
if test "${ac_cv_working_alloca_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <alloca.h>
int
main ()
{
char *p = (char *) alloca (2 * sizeof (int));
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_working_alloca_h=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_working_alloca_h=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
if test $ac_cv_working_alloca_h = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_ALLOCA_H 1
_ACEOF

fi

echo "$as_me:$LINENO: checking for alloca" >&5
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
if test "${ac_cv_func_alloca_works+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  if HAVE_ALLOCA_H
#   include <alloca.h>
#  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;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_alloca_works=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_alloca_works=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6

if test $ac_cv_func_alloca_works = yes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_ALLOCA 1
_ACEOF

else
  # 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 <<\_ACEOF
#define C_ALLOCA 1
_ACEOF


echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
if test "${ac_cv_os_cray+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#if defined(CRAY) && ! defined(CRAY2)
webecray
#else
wenotbecray
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "webecray" >/dev/null 2>&1; then
  ac_cv_os_cray=yes
else
  ac_cv_os_cray=no
fi
rm -f conftest*

fi
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
echo "${ECHO_T}$ac_cv_os_cray" >&6
if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* System header to define __stub macros and hopefully few prototypes,which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined,since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* 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 ();
/* 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
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then

cat >>confdefs.h <<_ACEOF
#define CRAY_STACKSEG_END $ac_func
_ACEOF

    break
fi

  done
fi

echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
if test "${ac_cv_c_stack_direction+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_c_stack_direction=0
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
int
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}

int
main ()
{
  exit (find_stack_direction () < 0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_c_stack_direction=1
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
ac_cv_c_stack_direction=-1
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6

cat >>confdefs.h <<_ACEOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
_ACEOF


fi







for ac_func in setenv unsetenv putenv
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* 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 ();
/* 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
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done



for ac_header in features.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_func in fopen64
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* 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 ();
/* 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
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


########################################################################
# BACKTRACE support




# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(backtrace-execinfo,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-backtrace-execinfo or --disable-backtrace-execinfo was given.
if test "${enable_backtrace_execinfo+set}" = set; then
  enableval="$enable_backtrace_execinfo"

fi;
# Check whether --enable-backtrace-execinfo or --disable-backtrace-execinfo was given.
if test "${enable_backtrace_execinfo+set}" = set; then
  enableval="$enable_backtrace_execinfo"

fi;
case "$enable_backtrace_execinfo" in
  no)  use_execinfo="no" ;;
  yes) use_execinfo="yes" ;;
  *)   use_execinfo="try" ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(backtrace-execinfo,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$use_execinfo" != no; then

for ac_header in execinfo.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done

  if test "$ac_cv_header_execinfo_h" = "yes" ; then


for ac_func in backtrace backtrace_symbols
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* 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 ();
/* 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
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != $ac_func;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  eval "$as_ac_var=yes"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

eval "$as_ac_var=no"
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

  fi
  if test "$use_execinfo$ac_cv_func_backtrace" = 'yesno'; then
    { { echo "$as_me:$LINENO: error: User requested --enable-backtrace-execinfo but support is not available on your system." >&5
echo "$as_me: error: User requested --enable-backtrace-execinfo but support is not available on your system." >&2;}
   { (exit 1); exit 1; }; }
  fi
  for ac_prog in addr2line
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ADDR2LINE_PATH+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ADDR2LINE_PATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ADDR2LINE_PATH="$ADDR2LINE_PATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="/usr/bin:${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ADDR2LINE_PATH="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
ADDR2LINE_PATH=$ac_cv_path_ADDR2LINE_PATH

if test -n "$ADDR2LINE_PATH"; then
  echo "$as_me:$LINENO: result: $ADDR2LINE_PATH" >&5
echo "${ECHO_T}$ADDR2LINE_PATH" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ADDR2LINE_PATH" && break
done

  if test -n "$ADDR2LINE_PATH"; then
    cat >>confdefs.h <<_ACEOF
#define ADDR2LINE_PATH "$ADDR2LINE_PATH"
_ACEOF

  fi
fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(backtrace-gdb,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-backtrace-gdb or --disable-backtrace-gdb was given.
if test "${enable_backtrace_gdb+set}" = set; then
  enableval="$enable_backtrace_gdb"

fi;
# Check whether --enable-backtrace-gdb or --disable-backtrace-gdb was given.
if test "${enable_backtrace_gdb+set}" = set; then
  enableval="$enable_backtrace_gdb"

fi;
case "$enable_backtrace_gdb" in
  no)  use_gdb="no" ;;
  yes) use_gdb="yes" ;;
  *)   use_gdb="try" ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(backtrace-gdb,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$use_gdb" != no; then
  for ac_prog in $GDB gdb
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_GDB_PATH+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $GDB_PATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GDB_PATH="$GDB_PATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="/usr/bin:${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_GDB_PATH="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
GDB_PATH=$ac_cv_path_GDB_PATH

if test -n "$GDB_PATH"; then
  echo "$as_me:$LINENO: result: $GDB_PATH" >&5
echo "${ECHO_T}$GDB_PATH" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$GDB_PATH" && break
done

  if test -n "$GDB_PATH"; then
    cat >>confdefs.h <<_ACEOF
#define GDB_PATH "$GDB_PATH"
_ACEOF

  elif test "$use_gdb" = yes; then
    { { echo "$as_me:$LINENO: error: User requested --enable-backtrace-gdb but gdb was not found.  Perhaps you need to set \$GDB?" >&5
echo "$as_me: error: User requested --enable-backtrace-gdb but gdb was not found.  Perhaps you need to set \$GDB?" >&2;}
   { (exit 1); exit 1; }; }
  fi
fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(backtrace-pgdbg,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-backtrace-pgdbg or --disable-backtrace-pgdbg was given.
if test "${enable_backtrace_pgdbg+set}" = set; then
  enableval="$enable_backtrace_pgdbg"

fi;
# Check whether --enable-backtrace-pgdbg or --disable-backtrace-pgdbg was given.
if test "${enable_backtrace_pgdbg+set}" = set; then
  enableval="$enable_backtrace_pgdbg"

fi;
case "$enable_backtrace_pgdbg" in
  no)  use_pgdbg="no" ;;
  yes) use_pgdbg="yes" ;;
  *)   use_pgdbg="try" ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(backtrace-pgdbg,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$use_pgdbg" != no; then
  for ac_prog in $PGDBG pgdbg
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PGDBG_PATH+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $PGDBG_PATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PGDBG_PATH="$PGDBG_PATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="/usr/bin:${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PGDBG_PATH="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
PGDBG_PATH=$ac_cv_path_PGDBG_PATH

if test -n "$PGDBG_PATH"; then
  echo "$as_me:$LINENO: result: $PGDBG_PATH" >&5
echo "${ECHO_T}$PGDBG_PATH" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$PGDBG_PATH" && break
done

  if test -n "$PGDBG_PATH"; then
    cat >>confdefs.h <<_ACEOF
#define PGDBG_PATH "$PGDBG_PATH"
_ACEOF

  elif test "$use_pgdbg" = yes; then
    { { echo "$as_me:$LINENO: error: User requested --enable-backtrace-pgdbg but pgdbg was not found.  Perhaps you need to set \$PGDBG?" >&5
echo "$as_me: error: User requested --enable-backtrace-pgdbg but pgdbg was not found.  Perhaps you need to set \$PGDBG?" >&2;}
   { (exit 1); exit 1; }; }
  fi
fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(backtrace-idb,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-backtrace-idb or --disable-backtrace-idb was given.
if test "${enable_backtrace_idb+set}" = set; then
  enableval="$enable_backtrace_idb"

fi;
# Check whether --enable-backtrace-idb or --disable-backtrace-idb was given.
if test "${enable_backtrace_idb+set}" = set; then
  enableval="$enable_backtrace_idb"

fi;
case "$enable_backtrace_idb" in
  no)  use_idb="no" ;;
  yes) use_idb="yes" ;;
  *)   use_idb="try" ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(backtrace-idb,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$use_idb" != no; then
  for ac_prog in $IDB idb idb-e
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_IDB_PATH+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $IDB_PATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_IDB_PATH="$IDB_PATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="/usr/bin:${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_IDB_PATH="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
IDB_PATH=$ac_cv_path_IDB_PATH

if test -n "$IDB_PATH"; then
  echo "$as_me:$LINENO: result: $IDB_PATH" >&5
echo "${ECHO_T}$IDB_PATH" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$IDB_PATH" && break
done

  if test -n "$IDB_PATH"; then
    cat >>confdefs.h <<_ACEOF
#define IDB_PATH "$IDB_PATH"
_ACEOF

  elif test "$use_idb" = yes; then
    { { echo "$as_me:$LINENO: error: User requested --enable-backtrace-idb but idb was not found.  Perhaps you need to set \$IDB?" >&5
echo "$as_me: error: User requested --enable-backtrace-idb but idb was not found.  Perhaps you need to set \$IDB?" >&2;}
   { (exit 1); exit 1; }; }
  fi
fi





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(backtrace-ladebug,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-backtrace-ladebug or --disable-backtrace-ladebug was given.
if test "${enable_backtrace_ladebug+set}" = set; then
  enableval="$enable_backtrace_ladebug"

fi;
# Check whether --enable-backtrace-ladebug or --disable-backtrace-ladebug was given.
if test "${enable_backtrace_ladebug+set}" = set; then
  enableval="$enable_backtrace_ladebug"

fi;
case "$enable_backtrace_ladebug" in
  no)  use_ladebug="no" ;;
  yes) use_ladebug="yes" ;;
  *)   use_ladebug="try" ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(backtrace-ladebug,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$use_ladebug" != no; then
  for ac_prog in $LADEBUG ladebug
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_LADEBUG_PATH+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $LADEBUG_PATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LADEBUG_PATH="$LADEBUG_PATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="/usr/bin:${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_LADEBUG_PATH="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
LADEBUG_PATH=$ac_cv_path_LADEBUG_PATH

if test -n "$LADEBUG_PATH"; then
  echo "$as_me:$LINENO: result: $LADEBUG_PATH" >&5
echo "${ECHO_T}$LADEBUG_PATH" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$LADEBUG_PATH" && break
done

  if test -n "$LADEBUG_PATH"; then
    cat >>confdefs.h <<_ACEOF
#define LADEBUG_PATH "$LADEBUG_PATH"
_ACEOF

  elif test "$use_ladebg" = yes; then
    { { echo "$as_me:$LINENO: error: User requested --enable-backtrace-ladebug but ladebug was not found.  Perhaps you need to set \$LADEBUG?" >&5
echo "$as_me: error: User requested --enable-backtrace-ladebug but ladebug was not found.  Perhaps you need to set \$LADEBUG?" >&2;}
   { (exit 1); exit 1; }; }
  fi
fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(backtrace-dbx,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-backtrace-dbx or --disable-backtrace-dbx was given.
if test "${enable_backtrace_dbx+set}" = set; then
  enableval="$enable_backtrace_dbx"

fi;
# Check whether --enable-backtrace-dbx or --disable-backtrace-dbx was given.
if test "${enable_backtrace_dbx+set}" = set; then
  enableval="$enable_backtrace_dbx"

fi;
case "$enable_backtrace_dbx" in
  no)  use_dbx="no" ;;
  yes) use_dbx="yes" ;;
  *)   use_dbx="try" ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(backtrace-dbx,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$use_dbx" != no; then
  for ac_prog in $DBX dbx
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_DBX_PATH+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $DBX_PATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DBX_PATH="$DBX_PATH" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="/usr/bin:${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_DBX_PATH="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
DBX_PATH=$ac_cv_path_DBX_PATH

if test -n "$DBX_PATH"; then
  echo "$as_me:$LINENO: result: $DBX_PATH" >&5
echo "${ECHO_T}$DBX_PATH" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$DBX_PATH" && break
done

  if test -n "$DBX_PATH"; then
    cat >>confdefs.h <<_ACEOF
#define DBX_PATH "$DBX_PATH"
_ACEOF

  elif test "$use_dbx" = yes; then
    { { echo "$as_me:$LINENO: error: User requested --enable-backtrace-dbx but dbx was not found.  Perhaps you need to set \$DBX?" >&5
echo "$as_me: error: User requested --enable-backtrace-dbx but dbx was not found.  Perhaps you need to set \$DBX?" >&2;}
   { (exit 1); exit 1; }; }
  fi
fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(backtrace-printstack,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-backtrace-printstack or --disable-backtrace-printstack was given.
if test "${enable_backtrace_printstack+set}" = set; then
  enableval="$enable_backtrace_printstack"

fi;
# Check whether --enable-backtrace-printstack or --disable-backtrace-printstack was given.
if test "${enable_backtrace_printstack+set}" = set; then
  enableval="$enable_backtrace_printstack"

fi;
case "$enable_backtrace_printstack" in
  no)  use_printstack="no" ;;
  yes) use_printstack="yes" ;;
  *)   use_printstack="try" ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(backtrace-printstack,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$use_printstack" != no; then
  have_printstack=no

for ac_header in ucontext.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 echo "$as_me:$LINENO: checking for printstack" >&5
echo $ECHO_N "checking for printstack... $ECHO_C" >&6
if test "${ac_cv_func_printstack+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char printstack (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* 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 printstack ();
/* 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_printstack) || defined (__stub___printstack)
choke me
#else
char (*f) () = printstack;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != printstack;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_printstack=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_printstack=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_printstack" >&5
echo "${ECHO_T}$ac_cv_func_printstack" >&6
if test $ac_cv_func_printstack = yes; then
  have_printstack=yes; cat >>confdefs.h <<\_ACEOF
#define HAVE_PRINTSTACK 1
_ACEOF

fi

fi

done

  if test "$use_printstack$have_printstack" = yesno; then
    { { echo "$as_me:$LINENO: error: User requested --enable-backtrace-printstack but printstack support was not found." >&5
echo "$as_me: error: User requested --enable-backtrace-printstack but printstack support was not found." >&2;}
   { (exit 1); exit 1; }; }
  fi
fi


########################################################################
# Try to discover the C compiler's inline modifier

inlinemod=""
case "$gasnet_cv_cc_family" in
  Compaq) # force __inline on Compaq C, because it's the most effective
    cat >>confdefs.h <<\_ACEOF
#define CC_INLINE_MODIFIER __inline
_ACEOF

    inlinemod=__inline
  ;;
  XLC) # force __inline on XLC, to avoid warnings
    cat >>confdefs.h <<\_ACEOF
#define CC_INLINE_MODIFIER __inline
_ACEOF

    inlinemod=__inline
  ;;
  HP) # __inline crashes HP C when optimizations are disabled
    if test "$BUILDCONFIG" = "debug" ; then
      cat >>confdefs.h <<\_ACEOF
#define CC_INLINE_MODIFIER
_ACEOF

      inlinemod=" "
    fi
  ;;
esac
if test "$inlinemod" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for inline modifier,cc_modinline,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for inline modifier" >&5
echo $ECHO_N "checking for inline modifier... $ECHO_C" >&6
if test "${gasnet_cv_cc_modinline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
inline int dummy() { return 1; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_modinline=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_modinline=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_modinline" >&5
echo "${ECHO_T}$gasnet_cv_cc_modinline" >&6
if test "$gasnet_cv_cc_modinline" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define CC_INLINE_MODIFIER inline
_ACEOF

    inlinemod=inline
else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for inline modifier,cc_modinline,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



fi
if test "$inlinemod" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for __inline__ modifier,cc_mod__inline__,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for __inline__ modifier" >&5
echo $ECHO_N "checking for __inline__ modifier... $ECHO_C" >&6
if test "${gasnet_cv_cc_mod__inline__+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
__inline__ int dummy() { return 1; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_mod__inline__=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_mod__inline__=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_mod__inline__" >&5
echo "${ECHO_T}$gasnet_cv_cc_mod__inline__" >&6
if test "$gasnet_cv_cc_mod__inline__" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define CC_INLINE_MODIFIER __inline__
_ACEOF

    inlinemod=__inline__
else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for __inline__ modifier,cc_mod__inline__,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



fi
if test "$inlinemod" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for __inline modifier,cc_mod__inline,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for __inline modifier" >&5
echo $ECHO_N "checking for __inline modifier... $ECHO_C" >&6
if test "${gasnet_cv_cc_mod__inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
__inline int dummy() { return 1; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_mod__inline=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_mod__inline=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_mod__inline" >&5
echo "${ECHO_T}$gasnet_cv_cc_mod__inline" >&6
if test "$gasnet_cv_cc_mod__inline" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define CC_INLINE_MODIFIER __inline
_ACEOF

    inlinemod=__inline
else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for __inline modifier,cc_mod__inline,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



fi
if test "$inlinemod" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for _inline modifier,cc_mod_inline,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for _inline modifier" >&5
echo $ECHO_N "checking for _inline modifier... $ECHO_C" >&6
if test "${gasnet_cv_cc_mod_inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
_inline int dummy() { return 1; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_mod_inline=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_mod_inline=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_mod_inline" >&5
echo "${ECHO_T}$gasnet_cv_cc_mod_inline" >&6
if test "$gasnet_cv_cc_mod_inline" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define CC_INLINE_MODIFIER _inline
_ACEOF

    inlinemod=_inline
else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for _inline modifier,cc_mod_inline,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



fi
if test "$inlinemod" = ""; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for _Inline modifier,cc_mod_Inline,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for _Inline modifier" >&5
echo $ECHO_N "checking for _Inline modifier... $ECHO_C" >&6
if test "${gasnet_cv_cc_mod_Inline+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
_Inline int dummy() { return 1; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_mod_Inline=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_mod_Inline=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_mod_Inline" >&5
echo "${ECHO_T}$gasnet_cv_cc_mod_Inline" >&6
if test "$gasnet_cv_cc_mod_Inline" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define CC_INLINE_MODIFIER _Inline
_ACEOF

    inlinemod=_Inline
else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for _Inline modifier,cc_mod_Inline,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



fi

if test "$inlinemod" != ""; then
  echo "$as_me:$LINENO: checking whether static $inlinemod works" >&5
echo $ECHO_N "checking whether static $inlinemod works... $ECHO_C" >&6
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
static $inlinemod int dummy() { return 1; }
int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  cat >>confdefs.h <<\_ACEOF
#define STATIC_INLINE_WORKS 1
_ACEOF

     echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi

# Runtime Var Arrays
#GASNET_IF_ENABLED_WITH_AUTO(vararray, Use stack arrays of variable size in code,
#AC_DEFINE(VARARRAY_WORKS),
#,
#GASNET_TRY_CACHE_CHECK(for variable stack arrays, cc_vararray_mod,
#  [void dummy(int x) { char y[x]; }], [],
#  AC_DEFINE(VARARRAY_WORKS)))

########################################################################
# different high-precision sleep libraries

# Check for usleep



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for usleep(),cc_has_usleep,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for usleep()" >&5
echo $ECHO_N "checking for usleep()... $ECHO_C" >&6
if test "${gasnet_cv_cc_has_usleep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <unistd.h>

int
main ()
{

usleep(500);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_has_usleep=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_has_usleep=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_has_usleep" >&5
echo "${ECHO_T}$gasnet_cv_cc_has_usleep" >&6
if test "$gasnet_cv_cc_has_usleep" = yes; then
  :
  echo "$as_me:$LINENO: checking for library containing usleep" >&5
echo $ECHO_N "checking for library containing usleep... $ECHO_C" >&6
if test "${ac_cv_search_usleep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_usleep=no
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 usleep ();
int
main ()
{
usleep ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_usleep="none required"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_usleep" = no; then
  for ac_lib in posix4; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 usleep ();
int
main ()
{
usleep ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_usleep="-l$ac_lib"
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_usleep" >&5
echo "${ECHO_T}$ac_cv_search_usleep" >&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 <<\_ACEOF
#define HAVE_USLEEP 1
_ACEOF

else
  echo "$as_me:$LINENO: result: entry point not found - disabled" >&5
echo "${ECHO_T}entry point not found - disabled" >&6
fi

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for usleep(),cc_has_usleep,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




# Check for nanosleep



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for nanosleep(),cc_has_nanosleep,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for nanosleep()" >&5
echo $ECHO_N "checking for nanosleep()... $ECHO_C" >&6
if test "${gasnet_cv_cc_has_nanosleep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <time.h>
#include <sys/time.h>

int
main ()
{

  struct timespec tm, tmremaining;
  tm.tv_sec =1;
  tm.tv_nsec = 1000000;
  nanosleep(&tm, &tmremaining);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_has_nanosleep=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_has_nanosleep=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_has_nanosleep" >&5
echo "${ECHO_T}$gasnet_cv_cc_has_nanosleep" >&6
if test "$gasnet_cv_cc_has_nanosleep" = yes; then
  :
  echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
if test "${ac_cv_search_nanosleep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_nanosleep=no
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 nanosleep ();
int
main ()
{
nanosleep ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_nanosleep="none required"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_nanosleep" = no; then
  for ac_lib in posix4; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 nanosleep ();
int
main ()
{
nanosleep ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_nanosleep="-l$ac_lib"
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
echo "${ECHO_T}$ac_cv_search_nanosleep" >&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 <<\_ACEOF
#define HAVE_NANOSLEEP 1
_ACEOF

else
  echo "$as_me:$LINENO: result: entry point not found - disabled" >&5
echo "${ECHO_T}entry point not found - disabled" >&6
fi

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for nanosleep(),cc_has_nanosleep,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




# Check for nsleep



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for nsleep(),cc_has_nsleep,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for nsleep()" >&5
echo $ECHO_N "checking for nsleep()... $ECHO_C" >&6
if test "${gasnet_cv_cc_has_nsleep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <time.h>
#include <sys/time.h>

int
main ()
{

  struct timespec tm, tmremaining;
  tm.tv_sec =1;
  tm.tv_nsec = 1000000;
  nsleep(&tm, &tmremaining);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_has_nsleep=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_has_nsleep=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_has_nsleep" >&5
echo "${ECHO_T}$gasnet_cv_cc_has_nsleep" >&6
if test "$gasnet_cv_cc_has_nsleep" = yes; then
  :
  echo "$as_me:$LINENO: checking for library containing nsleep" >&5
echo $ECHO_N "checking for library containing nsleep... $ECHO_C" >&6
if test "${ac_cv_search_nsleep+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_nsleep=no
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 nsleep ();
int
main ()
{
nsleep ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_nsleep="none required"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_nsleep" = no; then
  for ac_lib in posix4; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 nsleep ();
int
main ()
{
nsleep ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_nsleep="-l$ac_lib"
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_nsleep" >&5
echo "${ECHO_T}$ac_cv_search_nsleep" >&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 <<\_ACEOF
#define HAVE_NSLEEP 1
_ACEOF

else
  echo "$as_me:$LINENO: result: entry point not found - disabled" >&5
echo "${ECHO_T}entry point not found - disabled" >&6
fi

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for nsleep(),cc_has_nsleep,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




# Check for sched_yield



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for sched_yield(),cc_has_sched_yield,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for sched_yield()" >&5
echo $ECHO_N "checking for sched_yield()... $ECHO_C" >&6
if test "${gasnet_cv_cc_has_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

#include <sched.h>

int
main ()
{

  sched_yield();

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_has_sched_yield=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_has_sched_yield=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_has_sched_yield" >&5
echo "${ECHO_T}$gasnet_cv_cc_has_sched_yield" >&6
if test "$gasnet_cv_cc_has_sched_yield" = yes; then
  :
  echo "$as_me:$LINENO: checking for library containing sched_yield" >&5
echo $ECHO_N "checking for library containing sched_yield... $ECHO_C" >&6
if test "${ac_cv_search_sched_yield+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_sched_yield=no
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 sched_yield ();
int
main ()
{
sched_yield ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_sched_yield="none required"
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_sched_yield" = no; then
  for ac_lib in posix4; do
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 sched_yield ();
int
main ()
{
sched_yield ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_search_sched_yield="-l$ac_lib"
break
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  done
fi
LIBS=$ac_func_search_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_search_sched_yield" >&5
echo "${ECHO_T}$ac_cv_search_sched_yield" >&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 <<\_ACEOF
#define HAVE_SCHED_YIELD 1
_ACEOF

else
  echo "$as_me:$LINENO: result: entry point not found - disabled" >&5
echo "${ECHO_T}entry point not found - disabled" >&6
fi

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for sched_yield(),cc_has_sched_yield,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




if test "$cross_compiling" = "no" ; then
  case "$target_os" in
    linux*)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(plpa,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# Check whether --enable-plpa or --disable-plpa was given.
if test "${enable_plpa+set}" = set; then
  enableval="$enable_plpa"

fi;
# Check whether --enable-plpa or --disable-plpa was given.
if test "${enable_plpa+set}" = set; then
  enableval="$enable_plpa"

fi;
case "$enable_plpa" in
  no)  enabled_plpa="no - user disabled" ;;
  yes) enabled_plpa="yes"; force_plpa="yes" ;;
  *)   enabled_plpa="yes" ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(plpa,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



      if test "$enabled_plpa" = yes; then


    # Included mode, or standalone?

    if test "$enable_included_mode" = "yes"; then
        plpa_mode=included
    else
        plpa_mode=standalone
    fi

    # Change the symbol prefix?

    if test "$with_plpa_symbol_prefix" = ""; then
        plpa_symbol_prefix_value=plpa_
    else
        plpa_symbol_prefix_value=$with_plpa_symbol_prefix
    fi




    plpa_symbol_prefix_value=gasneti_plpa_





    # Check for syscall()
    echo "$as_me:$LINENO: checking for syscall" >&5
echo $ECHO_N "checking for syscall... $ECHO_C" >&6
if test "${ac_cv_func_syscall+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char syscall (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
/* 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 syscall ();
/* 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_syscall) || defined (__stub___syscall)
choke me
#else
char (*f) () = syscall;
#endif
#ifdef __cplusplus
}
#endif

int
main ()
{
return f != syscall;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_cv_func_syscall=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_func_syscall=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_func_syscall" >&5
echo "${ECHO_T}$ac_cv_func_syscall" >&6
if test $ac_cv_func_syscall = yes; then
  happy=1
else
  happy=0
fi


    # Look for syscall.h
    if test "$happy" = 1; then
        if test "${ac_cv_header_syscall_h+set}" = set; then
  echo "$as_me:$LINENO: checking for syscall.h" >&5
echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6
if test "${ac_cv_header_syscall_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5
echo "${ECHO_T}$ac_cv_header_syscall_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking syscall.h usability" >&5
echo $ECHO_N "checking syscall.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <syscall.h>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking syscall.h presence" >&5
echo $ECHO_N "checking syscall.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <syscall.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: syscall.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: syscall.h: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: syscall.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: syscall.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: syscall.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: syscall.h: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: syscall.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: syscall.h: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for syscall.h" >&5
echo $ECHO_N "checking for syscall.h... $ECHO_C" >&6
if test "${ac_cv_header_syscall_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_syscall_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_syscall_h" >&5
echo "${ECHO_T}$ac_cv_header_syscall_h" >&6

fi
if test $ac_cv_header_syscall_h = yes; then
  happy=1
else
  happy=0
fi


    fi

    # Look for unistd.h
    if test "$happy" = 1; then
        if test "${ac_cv_header_unistd_h+set}" = set; then
  echo "$as_me:$LINENO: checking for unistd.h" >&5
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
if test "${ac_cv_header_unistd_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking unistd.h usability" >&5
echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <unistd.h>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking unistd.h presence" >&5
echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unistd.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for unistd.h" >&5
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
if test "${ac_cv_header_unistd_h+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_cv_header_unistd_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6

fi
if test $ac_cv_header_unistd_h = yes; then
  happy=1
else
  happy=0
fi


    fi

    # Check for __NR_sched_setaffinity
    if test "$happy" = 1; then
        echo "$as_me:$LINENO: checking for __NR_sched_setaffinity" >&5
echo $ECHO_N "checking for __NR_sched_setaffinity... $ECHO_C" >&6
        cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <syscall.h>
#include <unistd.h>
int
main ()
{
#ifndef __NR_sched_setaffinity
#error __NR_sched_setaffinity_not found!
#endif
int i = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                        happy=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        happy=0
fi
rm -f conftest.$ac_objext conftest.$ac_ext
    fi

    # Check for __NR_sched_getaffinity (probably overkill, but what
    # the heck?)
    if test "$happy" = 1; then
        echo "$as_me:$LINENO: checking for __NR_sched_getaffinity" >&5
echo $ECHO_N "checking for __NR_sched_getaffinity... $ECHO_C" >&6
        cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <syscall.h>
#include <unistd.h>
int
main ()
{
#ifndef __NR_sched_getaffinity
#error __NR_sched_getaffinity_not found!
#endif
int i = 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                        happy=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
                        happy=0
fi
rm -f conftest.$ac_objext conftest.$ac_ext
    fi

    # If all was good, do the real init
    if test "$happy" = 1; then



    # Are we building as standalone or included?
    echo "$as_me:$LINENO: checking for PLPA building mode" >&5
echo $ECHO_N "checking for PLPA building mode... $ECHO_C" >&6

    echo "$as_me:$LINENO: result: $plpa_mode" >&5
echo "${ECHO_T}$plpa_mode" >&6

    # What prefix are we using?
    echo "$as_me:$LINENO: checking for PLPA symbol prefix" >&5
echo $ECHO_N "checking for PLPA symbol prefix... $ECHO_C" >&6

cat >>confdefs.h <<_ACEOF
#define PLPA_SYM_PREFIX $plpa_symbol_prefix_value
_ACEOF

    echo "$as_me:$LINENO: result: $plpa_symbol_prefix_value" >&5
echo "${ECHO_T}$plpa_symbol_prefix_value" >&6

    # Success
    enabled_plpa="yes"

    else
        enabled_plpa="no - probe failed"
	:	# in case enabled_plpa="no - probe failed" is empty.
    fi

    # Cleanup
    unset happy

      fi
      echo "$as_me:$LINENO: checking whether to use PLPA for cpu binding" >&5
echo $ECHO_N "checking whether to use PLPA for cpu binding... $ECHO_C" >&6
      echo "$as_me:$LINENO: result: $enabled_plpa" >&5
echo "${ECHO_T}$enabled_plpa" >&6
      if test "$enabled_plpa" = yes; then
	cat >>confdefs.h <<\_ACEOF
#define HAVE_PLPA 1
_ACEOF

      elif test "$force_plpa" = yes; then
        { { echo "$as_me:$LINENO: error: User requested --enable-plpa but PLPA is not supported on your system" >&5
echo "$as_me: error: User requested --enable-plpa but PLPA is not supported on your system" >&2;}
   { (exit 1); exit 1; }; }
      fi
      ;;
  esac
fi


if test "$enabled_plpa" = "yes"; then
  USE_PLPA_TRUE=
  USE_PLPA_FALSE='#'
else
  USE_PLPA_TRUE='#'
  USE_PLPA_FALSE=
fi


#  AC_FUNC_MMAP
# Check for mmap functionality we actually use
case "$target_os" in
  cygwin*)
  # mmap is known to be broken on Cygwin - dont even try
  HAVE_MMAP=0
  ;;
  *)
if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(HAVE_MMAP,HAVE_MMAP) vvvvvvvvvvvvvvvvvvvvvv (L:1)


  if test "$cross_compiling" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_HAVE_MMAP,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




  echo "$as_me:$LINENO: checking for CROSS_HAVE_MMAP in environment" >&5
echo $ECHO_N "checking for CROSS_HAVE_MMAP in environment... $ECHO_C" >&6



# Check whether --with-cross-have-mmap or --without-cross-have-mmap was given.
if test "${with_cross_have_mmap+set}" = set; then
  withval="$with_cross_have_mmap"

fi;



  envval_src_CROSS_HAVE_MMAP="cached"
  if test "${gasnet_cv_envvar_CROSS_HAVE_MMAP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

      case "${CROSS_HAVE_MMAP-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_have_mmap" != ""; then
	      gasnet_cv_envvar_CROSS_HAVE_MMAP="$with_cross_have_mmap"
	      envval_src_CROSS_HAVE_MMAP=given
	    else
	      gasnet_cv_envvar_CROSS_HAVE_MMAP=""
	      envval_src_CROSS_HAVE_MMAP=default
	    fi
	    ;;
	*)  gasnet_cv_envvar_CROSS_HAVE_MMAP="$CROSS_HAVE_MMAP"
	    envval_src_CROSS_HAVE_MMAP=given
      esac

fi


  CROSS_HAVE_MMAP="$gasnet_cv_envvar_CROSS_HAVE_MMAP"
  case "$envval_src_CROSS_HAVE_MMAP" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_HAVE_MMAP\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_HAVE_MMAP\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_HAVE_MMAP\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_HAVE_MMAP\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_HAVE_MMAP\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_HAVE_MMAP\"" >&6 ;;
      *) { { echo "$as_me:$LINENO: error: _GASNET_ENV_DEFAULT broken" >&5
echo "$as_me: error: _GASNET_ENV_DEFAULT broken" >&2;}
   { (exit 1); exit 1; }; }
  esac




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_HAVE_MMAP,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



    if test "$CROSS_HAVE_MMAP" = "" ; then
      { { echo "$as_me:$LINENO: error: This configure script requires \$CROSS_HAVE_MMAP be set for cross-compilation" >&5
echo "$as_me: error: This configure script requires \$CROSS_HAVE_MMAP be set for cross-compilation" >&2;}
   { (exit 1); exit 1; }; }
    else
      HAVE_MMAP="$CROSS_HAVE_MMAP"
    fi
  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CROSS_VAR(HAVE_MMAP,HAVE_MMAP) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN(for working mmap(),have_mmap,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for working mmap()" >&5
echo $ECHO_N "checking for working mmap()... $ECHO_C" >&6
if test "${gasnet_cv_have_mmap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: no default value for cross compiling" >&5
echo "$as_me: error: no default value for cross compiling" >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

  #include <unistd.h>
  #include <sys/mman.h>
  #include <sys/types.h>
  #include <sys/stat.h>
  #include <fcntl.h>
  #include <stdio.h>
  #include <stdlib.h>
  char junk[16384];
  int testfd(int);
  int main() {
    int fd, retval;
    #if 0
      char filename[255];
      tmpnam(filename); /* unsafe */
      fd = open(filename, O_RDWR | O_CREAT);
    #else
      char filename[255];
      if (getenv("TMPDIR")) strcpy(filename,getenv("TMPDIR"));
      else strcpy(filename,"/tmp");
      strcat(filename,"/gasnet-conftemp-XXXXXX");
      fd = mkstemp(filename); /* leaves crap laying around */
    #endif
    retval = testfd(fd);
    close(fd);
    remove(filename);
    return retval;
  }
  int testfd(int fd) {
    void *ptr,*ptr2;
    if (fd == -1) return 1;
    if (write(fd, junk, 16384) == -1) return 2;
    ptr = mmap(0, 16384, (PROT_READ|PROT_WRITE),
	MAP_PRIVATE, fd, 0);
    if (ptr == MAP_FAILED || ptr == NULL) return 3;
    if (munmap(ptr,16384) != 0) return 4;
    ptr2 = mmap(ptr, 16384, (PROT_READ|PROT_WRITE),
	(MAP_PRIVATE | MAP_FIXED), fd, 0);
    if (ptr2 == MAP_FAILED || ptr2 == NULL || ptr2 != ptr) return 5;
    if (munmap(ptr,16384) != 0) return 6;
    return 0;
  }
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_have_mmap=yes
else
  echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

( exit $ac_status )
gasnet_cv_have_mmap=no
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $gasnet_cv_have_mmap" >&5
echo "${ECHO_T}$gasnet_cv_have_mmap" >&6
if test "$gasnet_cv_have_mmap" = yes; then
  :
   HAVE_MMAP=1
else
  :
   HAVE_MMAP=0
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN(for working mmap(),have_mmap,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



fi
  ;;
esac
if test "$HAVE_MMAP" != "0" ; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_MMAP 1
_ACEOF

fi

case "$target" in
*-catamount-*) ;; # don't use mallopt on catamount, even if it appears to be available
*)

for ac_header in malloc.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_LINK(for ptmalloc,malloc_is_ptmalloc,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for ptmalloc" >&5
echo $ECHO_N "checking for ptmalloc... $ECHO_C" >&6
if test "${gasnet_cv_malloc_is_ptmalloc+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
 #if HAVE_STDLIB_H
      #include <stdlib.h>
    #endif
    #if HAVE_MALLOC_H
      #include <malloc.h>
    #endif

int
main ()
{

    mallopt(M_TRIM_THRESHOLD, -1);
    mallopt(M_MMAP_MAX, 0);

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_malloc_is_ptmalloc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_malloc_is_ptmalloc=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_malloc_is_ptmalloc" >&5
echo "${ECHO_T}$gasnet_cv_malloc_is_ptmalloc" >&6
if test "$gasnet_cv_malloc_is_ptmalloc" = yes; then
  :
   cat >>confdefs.h <<\_ACEOF
#define HAVE_PTMALLOC 1
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(for ptmalloc,malloc_is_ptmalloc,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



esac

case "$target" in
*-blrts-*) debugmalloc_support=no ;; # debug malloc vars crash BG/L RTS
*) debugmalloc_support=yes ;; # it's a glibc feature, but appears harmless elsewhere
esac


if test "$debugmalloc_support" = "yes"; then
  DEBUGMALLOC_TRUE=
  DEBUGMALLOC_FALSE='#'
else
  DEBUGMALLOC_TRUE='#'
  DEBUGMALLOC_FALSE=
fi




########################################################################
# Special GCC feature support

# Check for __builtin_expect (GCC 3.0)



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_LINK(for __builtin_expect,cc_has_builtin_expect,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for __builtin_expect" >&5
echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
if test "${gasnet_cv_cc_has_builtin_expect+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
int x;
int
main ()
{
if (__builtin_expect(x,1)) return 1;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_has_builtin_expect=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_has_builtin_expect=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_has_builtin_expect" >&5
echo "${ECHO_T}$gasnet_cv_cc_has_builtin_expect" >&6
if test "$gasnet_cv_cc_has_builtin_expect" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define HAVE_BUILTIN_EXPECT 1
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(for __builtin_expect,cc_has_builtin_expect,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_LINK(for __builtin_prefetch,cc_has_builtin_prefetch,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for __builtin_prefetch" >&5
echo $ECHO_N "checking for __builtin_prefetch... $ECHO_C" >&6
if test "${gasnet_cv_cc_has_builtin_prefetch+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
int x;
int
main ()
{
__builtin_prefetch(&x,0);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_has_builtin_prefetch=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_has_builtin_prefetch=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_has_builtin_prefetch" >&5
echo "${ECHO_T}$gasnet_cv_cc_has_builtin_prefetch" >&6
if test "$gasnet_cv_cc_has_builtin_prefetch" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define HAVE_BUILTIN_PREFETCH 1
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(for __builtin_prefetch,cc_has_builtin_prefetch,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_LINK(for __func__,cc_has_func,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for __func__" >&5
echo $ECHO_N "checking for __func__... $ECHO_C" >&6
if test "${gasnet_cv_cc_has_func+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
const char* p = __func__;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  gasnet_cv_cc_has_func=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

gasnet_cv_cc_has_func=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $gasnet_cv_cc_has_func" >&5
echo "${ECHO_T}$gasnet_cv_cc_has_func" >&6
if test "$gasnet_cv_cc_has_func" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define HAVE_FUNC 1
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(for __func__,cc_has_func,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




########################################################################
## Misc Header checks


for ac_header in sys/param.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
  # Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_header_compiler=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6

# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } >/dev/null; then
  if test -s conftest.err; then
    ac_cpp_err=$ac_c_preproc_warn_flag
  else
    ac_cpp_err=
  fi
else
  ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc in
  yes:no )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
  no:yes )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    (
      cat <<\_ASBOX
## ------------------------------------ ##
## Report this to bug-autoconf@gnu.org. ##
## ------------------------------------ ##
_ASBOX
    ) |
      sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=$ac_header_preproc"
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



########################################################################
##
##  Supporting Command-Line Tools (continued)
##

case "$target_os" in
    aix*)
        # If on AIX, and in 64 bit mode, we need to use 'ranlib -X64' and 'ar -X64'
        if test x"$ac_cv_sizeof_void_p" = x8; then
            AR="ar -X64"
            RANLIB="ranlib -X64"
        fi
        ;;
    osf*)
        # Tru64 has a default /bin/sh that emits error msgs for missing
        # commands, even when 2>/dev/null passed.  Use posix shell instead.
        if test -x /usr/bin/posix/sh; then
            BOURNE_SHELL="/usr/bin/posix/sh"
        fi
        ;;
esac
if test x"$BOURNE_SHELL" = x; then
    BOURNE_SHELL="/bin/sh"
fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PATH_PROGS(AR,$AR ar gar,archiver) vvvvvvvvvvvvvvvvvvvvvv (L:1)

case "$AR" in
  '') for ac_prog in $AR 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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_AR+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $AR in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_AR="$AR" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
AR=$ac_cv_path_AR

if test -n "$AR"; then
  echo "$as_me:$LINENO: result: $AR" >&5
echo "${ECHO_T}$AR" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$AR" && break
done

      ;;
  *) echo "$as_me:$LINENO: checking for archiver" >&5
echo $ECHO_N "checking for archiver... $ECHO_C" >&6
     echo "$as_me:$LINENO: result: $AR" >&5
echo "${ECHO_T}$AR" >&6
      ;;
esac
case "$AR" in
  '') { { echo "$as_me:$LINENO: error: cannot find archiver" >&5
echo "$as_me: error: cannot find archiver" >&2;}
   { (exit 1); exit 1; }; }
      ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PATH_PROGS(AR,$AR ar gar,archiver) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



#AC_PROG_RANLIB



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PATH_PROGS(RANLIB,$RANLIB ranlib touch,ranlib) vvvvvvvvvvvvvvvvvvvvvv (L:1)

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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_RANLIB+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $RANLIB in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
RANLIB=$ac_cv_path_RANLIB

if test -n "$RANLIB"; then
  echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$RANLIB" && break
done

      ;;
  *) echo "$as_me:$LINENO: checking for ranlib" >&5
echo $ECHO_N "checking for ranlib... $ECHO_C" >&6
     echo "$as_me:$LINENO: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
      ;;
esac
case "$RANLIB" in
  '') { { echo "$as_me:$LINENO: error: cannot find ranlib" >&5
echo "$as_me: error: cannot find ranlib" >&2;}
   { (exit 1); exit 1; }; }
      ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PATH_PROGS(RANLIB,$RANLIB ranlib touch,ranlib) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



case "$target_os" in
    darwin*) RANLIB="$RANLIB -s -c" ;; # ensure correct common block behavior on darwin
esac



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PATH_PROGS(BASENAME,$BASENAME basename,basename) vvvvvvvvvvvvvvvvvvvvvv (L:1)

case "$BASENAME" in
  '') for ac_prog in $BASENAME basename
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_BASENAME+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $BASENAME in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
BASENAME=$ac_cv_path_BASENAME

if test -n "$BASENAME"; then
  echo "$as_me:$LINENO: result: $BASENAME" >&5
echo "${ECHO_T}$BASENAME" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$BASENAME" && break
done

      ;;
  *) echo "$as_me:$LINENO: checking for basename" >&5
echo $ECHO_N "checking for basename... $ECHO_C" >&6
     echo "$as_me:$LINENO: result: $BASENAME" >&5
echo "${ECHO_T}$BASENAME" >&6
      ;;
esac
case "$BASENAME" in
  '') { { echo "$as_me:$LINENO: error: cannot find basename" >&5
echo "$as_me: error: cannot find basename" >&2;}
   { (exit 1); exit 1; }; }
      ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PATH_PROGS(BASENAME,$BASENAME basename,basename) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PATH_PROGS(DIRNAME,$DIRNAME dirname,dirname) vvvvvvvvvvvvvvvvvvvvvv (L:1)

case "$DIRNAME" in
  '') for ac_prog in $DIRNAME dirname
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_DIRNAME+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $DIRNAME in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
DIRNAME=$ac_cv_path_DIRNAME

if test -n "$DIRNAME"; then
  echo "$as_me:$LINENO: result: $DIRNAME" >&5
echo "${ECHO_T}$DIRNAME" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$DIRNAME" && break
done

      ;;
  *) echo "$as_me:$LINENO: checking for dirname" >&5
echo $ECHO_N "checking for dirname... $ECHO_C" >&6
     echo "$as_me:$LINENO: result: $DIRNAME" >&5
echo "${ECHO_T}$DIRNAME" >&6
      ;;
esac
case "$DIRNAME" in
  '') { { echo "$as_me:$LINENO: error: cannot find dirname" >&5
echo "$as_me: error: cannot find dirname" >&2;}
   { (exit 1); exit 1; }; }
      ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PATH_PROGS(DIRNAME,$DIRNAME dirname,dirname) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



# Some platforms are lacking readlink, and we currently do not require it
for ac_prog in $READLINK readlink
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_READLINK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $READLINK in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
READLINK=$ac_cv_path_READLINK

if test -n "$READLINK"; then
  echo "$as_me:$LINENO: result: $READLINK" >&5
echo "${ECHO_T}$READLINK" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$READLINK" && break
done

# other optional commands
for ac_prog in $TIMECMD time
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_TIMECMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $TIMECMD in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_TIMECMD="$TIMECMD" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="/usr/bin:${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_TIMECMD="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
TIMECMD=$ac_cv_path_TIMECMD

if test -n "$TIMECMD"; then
  echo "$as_me:$LINENO: result: $TIMECMD" >&5
echo "${ECHO_T}$TIMECMD" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$TIMECMD" && break
done

for ac_prog in $ENVCMD env
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 "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ENVCMD+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $ENVCMD in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ENVCMD="$ENVCMD" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_dummy="/usr/bin:${PATH}"
for as_dir in $as_dummy
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ENVCMD="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  ;;
esac
fi
ENVCMD=$ac_cv_path_ENVCMD

if test -n "$ENVCMD"; then
  echo "$as_me:$LINENO: result: $ENVCMD" >&5
echo "${ECHO_T}$ENVCMD" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

  test -n "$ENVCMD" && break
done












########################################################################

# complete linker setup

case "$target_os" in
  aix*)
    # AIX linker doesn't allow large enough TOC by default to accomodate
    # most large applications
    # LDFLAGS="$LDFLAGS -Wl,-bbigtoc"

    # set the data segment size to the largest permitted size for 32-bit apps (2GB)
    # MLW: No.  (1) this has no effect when building libraries, only executables
    #               and should be under control of end user.
    #           (2) If this was used for a executable in a 32 bit app there would
    #               only be one segment left for mmap and shared memory segments
    #               and GASNET allocs shared mem region using mmap.
    # LDFLAGS="$LDFLAGS -Wl,-bmaxdata:0x80000000"
  ;;

  darwin*)
    # Darwin linker complains about symbols defined in multiple dynamic libs.
    # This is a minor annoyance in some cases, however it becomes a fatal error
    # when linking with the mpich libs.
    LDFLAGS="$LDFLAGS -Wl,-multiply_defined,suppress"
  ;;
esac
case "$gasnet_cv_cc_family" in
  MIPS) LDFLAGS="$LDFLAGS -LD_MSG:off=84" # don't warn about unused libm
  ;;
esac


# Figure out how to install config files

GASNET_INSTALL_CMD="sed -e '/###NOINSTALL###/d' -e 's@###INSTALL_PREFIX###@\$(prefix)@g'"



TOOL_PREFIX=gasnet



# vvvvvvvvvvvvvvvvvvvvvv GASNET_WITH(tool-prefix,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)


# Check whether --with-tool-prefix or --without-tool-prefix was given.
if test "${with_tool_prefix+set}" = set; then
  withval="$with_tool_prefix"

  case "$withval" in
    no) :
         ;;
    *)  TOOL_PREFIX=$withval ;;
  esac

else

   :


fi;

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_WITH(tool-prefix,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





########################################################################
##
##  Final Output
##




# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC(gm-conduit/contrib/gasnetrun_gm) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  gasnet_cv_exec_list="$gasnet_cv_exec_list gm-conduit/contrib/gasnetrun_gm"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC(gm-conduit/contrib/gasnetrun_gm) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC(mpi-conduit/contrib/gasnetrun_mpi) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  gasnet_cv_exec_list="$gasnet_cv_exec_list mpi-conduit/contrib/gasnetrun_mpi"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC(mpi-conduit/contrib/gasnetrun_mpi) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC(sci-conduit/contrib/gasnetrun_sci) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  gasnet_cv_exec_list="$gasnet_cv_exec_list sci-conduit/contrib/gasnetrun_sci"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC(sci-conduit/contrib/gasnetrun_sci) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC(vapi-conduit/contrib/gasnetrun_vapi) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  gasnet_cv_exec_list="$gasnet_cv_exec_list vapi-conduit/contrib/gasnetrun_vapi"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC(vapi-conduit/contrib/gasnetrun_vapi) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC(other/contrib/gasnet_trace) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  gasnet_cv_exec_list="$gasnet_cv_exec_list other/contrib/gasnet_trace"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC(other/contrib/gasnet_trace) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




cat >>$CONDUIT_LIST <<EOF

 Some conduits require --enable-XXX configure flags and/or additional
 variables providing the install location of vendor drivers.
 See the GASNet documentation for details.

 Misc Settings
 -------------
  MPI compatibility:      $have_mpi_compat
  Pthreads support:       $have_pthread
  Segment config:         $segconfig
EOF

# Files added here should also be added to ./unBootstrap


  rm -f gasnet_errsave_file gasnet_errsave_err




# vvvvvvvvvvvvvvvvvvvvvv GASNET_SAVE_AUTOCONF_ENV vvvvvvvvvvvvvvvvvvvvvv (L:1)

  for varname in $gasnet_cv_acenv_list; do
    val=`eval echo '$'"$varname"`
    if test "$val" != ""; then
      cachevarname=gasnet_cv_acenv_$varname
      eval $cachevarname=\"$val\"
    fi
  done

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SAVE_AUTOCONF_ENV ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHPOP_CHECK vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test "$_total_pushcnt" -ge "1" ; then
    { { echo "$as_me:$LINENO: error: INTERNAL ERROR: GASNET_PUSH/POPVAR mismatch: $_total_pushcnt more pushes than pops" >&5
echo "$as_me: error: INTERNAL ERROR: GASNET_PUSH/POPVAR mismatch: $_total_pushcnt more pushes than pops" >&2;}
   { (exit 1); exit 1; }; }
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHPOP_CHECK ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




                                                                                                                                                                                                                                                                                                                                                                                                                                    ac_config_files="$ac_config_files Makefile other/perlstart mpi-conduit/Makefile mpi-conduit/conduit.mak mpi-conduit/contrib/Makefile mpi-conduit/contrib/gasnetrun_mpi udp-conduit/Makefile udp-conduit/conduit.mak gm-conduit/Makefile gm-conduit/conduit.mak gm-conduit/contrib/Makefile gm-conduit/contrib/gasnetrun_gm lapi-conduit/Makefile lapi-conduit/conduit.mak sci-conduit/Makefile sci-conduit/conduit.mak sci-conduit/contrib/Makefile sci-conduit/contrib/gasnetrun_sci smp-conduit/Makefile smp-conduit/conduit.mak elan-conduit/Makefile elan-conduit/conduit.mak vapi-conduit/Makefile vapi-conduit/conduit.mak vapi-conduit/contrib/Makefile vapi-conduit/contrib/gasnetrun_vapi shmem-conduit/Makefile shmem-conduit/conduit.mak portals-conduit/Makefile portals-conduit/conduit.mak other/Makefile other/Makefile-conduit.mak other/Makefile-libgasnet.mak other/fragment-head.mak other/fragment-body.mak other/ammpi/Makefile other/amudp/Makefile other/contrib/Makefile other/contrib/gasnet_trace other/testspawn/Makefile tests/Makefile config-aux/Makefile"
          ac_config_commands="$ac_config_commands default"
cat >confcache <<\_ACEOF
# 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, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# 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 \
        "s/'/'\\\\''/g;
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;;
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n \
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
      ;;
    esac;
} |
  sed '
     t clear
     : clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     : end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
  if test -w $cache_file; then
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
    cat confcache >$cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@srcdir@:*/:/;
s/^\([^=]*=[ 	]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ 	]*$//;
}'
fi

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_i=`echo "$ac_i" |
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  # 2. Add them.
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test -z "${BUILD_IS_SRC_TRUE}" && test -z "${BUILD_IS_SRC_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_IS_SRC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"BUILD_IS_SRC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${GNU_NM_TRUE}" && test -z "${GNU_NM_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"GNU_NM\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"GNU_NM\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"CROSS_COMPILING\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"CROSS_COMPILING\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${BUILDCONFIG_DEBUG_TRUE}" && test -z "${BUILDCONFIG_DEBUG_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"BUILDCONFIG_DEBUG\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"BUILDCONFIG_DEBUG\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${BUILDCONFIG_DEBUG_VERBOSE_TRUE}" && test -z "${BUILDCONFIG_DEBUG_VERBOSE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"BUILDCONFIG_DEBUG_VERBOSE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"BUILDCONFIG_DEBUG_VERBOSE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${BUILDCONFIG_TRACE_TRUE}" && test -z "${BUILDCONFIG_TRACE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"BUILDCONFIG_TRACE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"BUILDCONFIG_TRACE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${BUILDCONFIG_STATS_TRUE}" && test -z "${BUILDCONFIG_STATS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"BUILDCONFIG_STATS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"BUILDCONFIG_STATS\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${BUILDCONFIG_SRCLINES_TRUE}" && test -z "${BUILDCONFIG_SRCLINES_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"BUILDCONFIG_SRCLINES\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"BUILDCONFIG_SRCLINES\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${GASNET_SEGMENT_FAST_TRUE}" && test -z "${GASNET_SEGMENT_FAST_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"GASNET_SEGMENT_FAST\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"GASNET_SEGMENT_FAST\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${GASNET_SEGMENT_LARGE_TRUE}" && test -z "${GASNET_SEGMENT_LARGE_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"GASNET_SEGMENT_LARGE\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"GASNET_SEGMENT_LARGE\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${GASNET_SEGMENT_EVERYTHING_TRUE}" && test -z "${GASNET_SEGMENT_EVERYTHING_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"GASNET_SEGMENT_EVERYTHING\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"GASNET_SEGMENT_EVERYTHING\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${PLATFORM_ILP32_TRUE}" && test -z "${PLATFORM_ILP32_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_ILP32\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"PLATFORM_ILP32\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${PLATFORM_LP64_TRUE}" && test -z "${PLATFORM_LP64_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_LP64\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"PLATFORM_LP64\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${PLATFORM_ILP64_TRUE}" && test -z "${PLATFORM_ILP64_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_ILP64\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"PLATFORM_ILP64\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${PLATFORM_ILP32_TRUE}" && test -z "${PLATFORM_ILP32_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_ILP32\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"PLATFORM_ILP32\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${PLATFORM_LP64_TRUE}" && test -z "${PLATFORM_LP64_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_LP64\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"PLATFORM_LP64\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${PLATFORM_ILP64_TRUE}" && test -z "${PLATFORM_ILP64_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_ILP64\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"PLATFORM_ILP64\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_PTHREAD\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_PTHREAD\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CXX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"HAVE_CXX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_UDP_CONDUIT_TRUE}" && test -z "${USE_UDP_CONDUIT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_UDP_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_UDP_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_MPI_CONDUIT_TRUE}" && test -z "${USE_MPI_CONDUIT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_MPI_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_MPI_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_MPI_COMPAT_TRUE}" && test -z "${USE_MPI_COMPAT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_MPI_COMPAT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_MPI_COMPAT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_MPI_TRUE}" && test -z "${USE_MPI_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_MPI\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_MPI\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_SMP_CONDUIT_TRUE}" && test -z "${USE_SMP_CONDUIT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_SMP_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_SMP_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_GM_CONDUIT_TRUE}" && test -z "${USE_GM_CONDUIT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_GM_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_GM_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${GM_MPI_COMPAT_TRUE}" && test -z "${GM_MPI_COMPAT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"GM_MPI_COMPAT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"GM_MPI_COMPAT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${GM_RODATA_WORKAROUND_TRUE}" && test -z "${GM_RODATA_WORKAROUND_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"GM_RODATA_WORKAROUND\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"GM_RODATA_WORKAROUND\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_LAPI_CONDUIT_TRUE}" && test -z "${USE_LAPI_CONDUIT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_LAPI_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_LAPI_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_ELAN_CONDUIT_TRUE}" && test -z "${USE_ELAN_CONDUIT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_ELAN_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_ELAN_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_VAPI_CONDUIT_TRUE}" && test -z "${USE_VAPI_CONDUIT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_VAPI_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_VAPI_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${VAPI_BOOTSTRAP_MPI_TRUE}" && test -z "${VAPI_BOOTSTRAP_MPI_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"VAPI_BOOTSTRAP_MPI\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"VAPI_BOOTSTRAP_MPI\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${VAPI_RCV_THREAD_TRUE}" && test -z "${VAPI_RCV_THREAD_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"VAPI_RCV_THREAD\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"VAPI_RCV_THREAD\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_PORTALS_CONDUIT_TRUE}" && test -z "${USE_PORTALS_CONDUIT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_PORTALS_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_PORTALS_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_SHMEM_CONDUIT_TRUE}" && test -z "${USE_SHMEM_CONDUIT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_SHMEM_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_SHMEM_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_SCI_CONDUIT_TRUE}" && test -z "${USE_SCI_CONDUIT_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_SCI_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_SCI_CONDUIT\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_PLPA_TRUE}" && test -z "${USE_PLPA_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USE_PLPA\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USE_PLPA\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${DEBUGMALLOC_TRUE}" && test -z "${DEBUGMALLOC_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"DEBUGMALLOC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"DEBUGMALLOC\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi

: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  set -o posix
fi

# Support unset when possible.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    $as_unset $as_var
  fi
done

# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
as_me=`$as_basename "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)$' \| \
	 .     : '\(.\)' 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
  	  /^X\/\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`


# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi


  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  # Find who we are.  Look in the path if we contain no path at all
  # relative or not.
  case $0 in
    *[\\/]* ) as_myself=$0 ;;
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done

       ;;
  esac
  # We did not find ourselves, most probably we were run as `sh COMMAND'
  # in which case we are not to be found in the path.
  if test "x$as_myself" = x; then
    as_myself=$0
  fi
  if test ! -f "$as_myself"; then
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
   { (exit 1); exit 1; }; }
  fi
  case $CONFIG_SHELL in
  '')
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for as_base in sh bash ksh sh5; do
	 case $as_dir in
	 /*)
	   if ("$as_dir/$as_base" -c '
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
	     CONFIG_SHELL=$as_dir/$as_base
	     export CONFIG_SHELL
	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
	   fi;;
	 esac
       done
done
;;
  esac

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line before each line; the second 'sed' does the real
  # work.  The second script uses 'N' to pair each line-number line
  # with the numbered line, and appends trailing '-' during
  # substitution so that $LINENO is not a special case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  sed '=' <$as_myself |
    sed '
      N
      s,$,-,
      : loop
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
      t loop
      s,-$,,
      s,^['$as_cr_digits']*\n,,
    ' >$as_me.lineno &&
  chmod +x $as_me.lineno ||
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensible to this).
  . ./$as_me.lineno
  # Exit status is that of the last command.
  exit
}


case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  *c*,-n*) ECHO_N= ECHO_C='
' ECHO_T='	' ;;
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac

if expr a : '\(a\)' >/dev/null 2>&1; then
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test a) works b) is more generic
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    as_ln_s='cp -p'
  else
    as_ln_s='ln -s'
  fi
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  as_mkdir_p=false
fi

as_executable_p="test -f"

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"


# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" 	$as_nl"

# CDPATH.
$as_unset CDPATH

exec 6>&1

# Open the log real soon, to keep \$[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.  Logging --version etc. is OK.
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
} >&5
cat >&5 <<_CSEOF

This file was extended by $as_me, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

_CSEOF
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
echo >&5
_ACEOF

# Files that config.status was made for.
if test -n "$ac_config_files"; then
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_headers"; then
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_links"; then
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi

if test -n "$ac_config_commands"; then
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi

cat >>$CONFIG_STATUS <<\_ACEOF

ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

Usage: $0 [OPTIONS] [FILE]...

  -h, --help       print this help, then exit
  -V, --version    print version number, then exit
  -q, --quiet      do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <bug-autoconf@gnu.org>."
_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.57,
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"

Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
INSTALL="$INSTALL"
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  -*)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  *) # This is not an option, so the user has probably given explicit
     # arguments.
     ac_option=$1
     ac_need_defaults=false;;
  esac

  case $ac_option in
  # Handling of the options.
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --vers* | -V )
    echo "$ac_cs_version"; exit 0 ;;
  --he | --h)
    # Conflict between --help and --header
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit 0 ;;
  --debug | --d* | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    ac_need_defaults=false;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
   { (exit 1); exit 1; }; } ;;

  *) ac_config_targets="$ac_config_targets $1" ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fi

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF
#
# INIT-COMMANDS section.
#

AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC_SETUP vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "\${config_commands+set}" != set ; then
    config_commands="default"
  fi
  CONFIG_COMMANDS="\$config_commands"
  gasnet_cv_exec_list="$gasnet_cv_exec_list"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC_SETUP ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





_ACEOF



cat >>$CONFIG_STATUS <<\_ACEOF
for ac_config_target in $ac_config_targets
do
  case "$ac_config_target" in
  # Handling of arguments.
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  "other/perlstart" ) CONFIG_FILES="$CONFIG_FILES other/perlstart" ;;
  "mpi-conduit/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpi-conduit/Makefile" ;;
  "mpi-conduit/conduit.mak" ) CONFIG_FILES="$CONFIG_FILES mpi-conduit/conduit.mak" ;;
  "mpi-conduit/contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpi-conduit/contrib/Makefile" ;;
  "mpi-conduit/contrib/gasnetrun_mpi" ) CONFIG_FILES="$CONFIG_FILES mpi-conduit/contrib/gasnetrun_mpi" ;;
  "udp-conduit/Makefile" ) CONFIG_FILES="$CONFIG_FILES udp-conduit/Makefile" ;;
  "udp-conduit/conduit.mak" ) CONFIG_FILES="$CONFIG_FILES udp-conduit/conduit.mak" ;;
  "gm-conduit/Makefile" ) CONFIG_FILES="$CONFIG_FILES gm-conduit/Makefile" ;;
  "gm-conduit/conduit.mak" ) CONFIG_FILES="$CONFIG_FILES gm-conduit/conduit.mak" ;;
  "gm-conduit/contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gm-conduit/contrib/Makefile" ;;
  "gm-conduit/contrib/gasnetrun_gm" ) CONFIG_FILES="$CONFIG_FILES gm-conduit/contrib/gasnetrun_gm" ;;
  "lapi-conduit/Makefile" ) CONFIG_FILES="$CONFIG_FILES lapi-conduit/Makefile" ;;
  "lapi-conduit/conduit.mak" ) CONFIG_FILES="$CONFIG_FILES lapi-conduit/conduit.mak" ;;
  "sci-conduit/Makefile" ) CONFIG_FILES="$CONFIG_FILES sci-conduit/Makefile" ;;
  "sci-conduit/conduit.mak" ) CONFIG_FILES="$CONFIG_FILES sci-conduit/conduit.mak" ;;
  "sci-conduit/contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES sci-conduit/contrib/Makefile" ;;
  "sci-conduit/contrib/gasnetrun_sci" ) CONFIG_FILES="$CONFIG_FILES sci-conduit/contrib/gasnetrun_sci" ;;
  "smp-conduit/Makefile" ) CONFIG_FILES="$CONFIG_FILES smp-conduit/Makefile" ;;
  "smp-conduit/conduit.mak" ) CONFIG_FILES="$CONFIG_FILES smp-conduit/conduit.mak" ;;
  "elan-conduit/Makefile" ) CONFIG_FILES="$CONFIG_FILES elan-conduit/Makefile" ;;
  "elan-conduit/conduit.mak" ) CONFIG_FILES="$CONFIG_FILES elan-conduit/conduit.mak" ;;
  "vapi-conduit/Makefile" ) CONFIG_FILES="$CONFIG_FILES vapi-conduit/Makefile" ;;
  "vapi-conduit/conduit.mak" ) CONFIG_FILES="$CONFIG_FILES vapi-conduit/conduit.mak" ;;
  "vapi-conduit/contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES vapi-conduit/contrib/Makefile" ;;
  "vapi-conduit/contrib/gasnetrun_vapi" ) CONFIG_FILES="$CONFIG_FILES vapi-conduit/contrib/gasnetrun_vapi" ;;
  "shmem-conduit/Makefile" ) CONFIG_FILES="$CONFIG_FILES shmem-conduit/Makefile" ;;
  "shmem-conduit/conduit.mak" ) CONFIG_FILES="$CONFIG_FILES shmem-conduit/conduit.mak" ;;
  "portals-conduit/Makefile" ) CONFIG_FILES="$CONFIG_FILES portals-conduit/Makefile" ;;
  "portals-conduit/conduit.mak" ) CONFIG_FILES="$CONFIG_FILES portals-conduit/conduit.mak" ;;
  "other/Makefile" ) CONFIG_FILES="$CONFIG_FILES other/Makefile" ;;
  "other/Makefile-conduit.mak" ) CONFIG_FILES="$CONFIG_FILES other/Makefile-conduit.mak" ;;
  "other/Makefile-libgasnet.mak" ) CONFIG_FILES="$CONFIG_FILES other/Makefile-libgasnet.mak" ;;
  "other/fragment-head.mak" ) CONFIG_FILES="$CONFIG_FILES other/fragment-head.mak" ;;
  "other/fragment-body.mak" ) CONFIG_FILES="$CONFIG_FILES other/fragment-body.mak" ;;
  "other/ammpi/Makefile" ) CONFIG_FILES="$CONFIG_FILES other/ammpi/Makefile" ;;
  "other/amudp/Makefile" ) CONFIG_FILES="$CONFIG_FILES other/amudp/Makefile" ;;
  "other/contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES other/contrib/Makefile" ;;
  "other/contrib/gasnet_trace" ) CONFIG_FILES="$CONFIG_FILES other/contrib/gasnet_trace" ;;
  "other/testspawn/Makefile" ) CONFIG_FILES="$CONFIG_FILES other/testspawn/Makefile" ;;
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  "config-aux/Makefile" ) CONFIG_FILES="$CONFIG_FILES config-aux/Makefile" ;;
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  "gasnet_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gasnet_config.h" ;;
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done

# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason to put it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}

# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./confstat$$-$RANDOM
  (umask 077 && mkdir $tmp)
} ||
{
   echo "$me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; }
}

_ACEOF

cat >>$CONFIG_STATUS <<_ACEOF

#
# CONFIG_FILES section.
#

# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
  # Protect against being on the right side of a sed subst in config.status.
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@SHELL@,$SHELL,;t t
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
s,@exec_prefix@,$exec_prefix,;t t
s,@prefix@,$prefix,;t t
s,@program_transform_name@,$program_transform_name,;t t
s,@bindir@,$bindir,;t t
s,@sbindir@,$sbindir,;t t
s,@libexecdir@,$libexecdir,;t t
s,@datadir@,$datadir,;t t
s,@sysconfdir@,$sysconfdir,;t t
s,@sharedstatedir@,$sharedstatedir,;t t
s,@localstatedir@,$localstatedir,;t t
s,@libdir@,$libdir,;t t
s,@includedir@,$includedir,;t t
s,@oldincludedir@,$oldincludedir,;t t
s,@infodir@,$infodir,;t t
s,@mandir@,$mandir,;t t
s,@build_alias@,$build_alias,;t t
s,@host_alias@,$host_alias,;t t
s,@target_alias@,$target_alias,;t t
s,@DEFS@,$DEFS,;t t
s,@ECHO_C@,$ECHO_C,;t t
s,@ECHO_N@,$ECHO_N,;t t
s,@ECHO_T@,$ECHO_T,;t t
s,@LIBS@,$LIBS,;t t
s,@build@,$build,;t t
s,@build_cpu@,$build_cpu,;t t
s,@build_vendor@,$build_vendor,;t t
s,@build_os@,$build_os,;t t
s,@host@,$host,;t t
s,@host_cpu@,$host_cpu,;t t
s,@host_vendor@,$host_vendor,;t t
s,@host_os@,$host_os,;t t
s,@target@,$target,;t t
s,@target_cpu@,$target_cpu,;t t
s,@target_vendor@,$target_vendor,;t t
s,@target_os@,$target_os,;t t
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
s,@CYGPATH_W@,$CYGPATH_W,;t t
s,@PACKAGE@,$PACKAGE,;t t
s,@VERSION@,$VERSION,;t t
s,@ACLOCAL@,$ACLOCAL,;t t
s,@AUTOCONF@,$AUTOCONF,;t t
s,@AUTOMAKE@,$AUTOMAKE,;t t
s,@AUTOHEADER@,$AUTOHEADER,;t t
s,@MAKEINFO@,$MAKEINFO,;t t
s,@AMTAR@,$AMTAR,;t t
s,@install_sh@,$install_sh,;t t
s,@STRIP@,$STRIP,;t t
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
s,@AWK@,$AWK,;t t
s,@SET_MAKE@,$SET_MAKE,;t t
s,@am__leading_dot@,$am__leading_dot,;t t
s,@PWD_PROG@,$PWD_PROG,;t t
s,@CONFIGURE_ARGS@,$CONFIGURE_ARGS,;t t
s,@TOP_SRCDIR@,$TOP_SRCDIR,;t t
s,@TOP_BUILDDIR@,$TOP_BUILDDIR,;t t
s,@BUILD_IS_SRC_TRUE@,$BUILD_IS_SRC_TRUE,;t t
s,@BUILD_IS_SRC_FALSE@,$BUILD_IS_SRC_FALSE,;t t
s,@BUILD_IS_SRC@,$BUILD_IS_SRC,;t t
s,@SYSTEM_NAME@,$SYSTEM_NAME,;t t
s,@SYSTEM_TUPLE@,$SYSTEM_TUPLE,;t t
s,@BUILD_ID@,$BUILD_ID,;t t
s,@GMAKE@,$GMAKE,;t t
s,@NM@,$NM,;t t
s,@GNU_NM_TRUE@,$GNU_NM_TRUE,;t t
s,@GNU_NM_FALSE@,$GNU_NM_FALSE,;t t
s,@PERL@,$PERL,;t t
s,@GASNET_PERL_BYTESFLAG@,$GASNET_PERL_BYTESFLAG,;t t
s,@CC@,$CC,;t t
s,@CFLAGS@,$CFLAGS,;t t
s,@LDFLAGS@,$LDFLAGS,;t t
s,@CPPFLAGS@,$CPPFLAGS,;t t
s,@ac_ct_CC@,$ac_ct_CC,;t t
s,@EXEEXT@,$EXEEXT,;t t
s,@OBJEXT@,$OBJEXT,;t t
s,@DEPDIR@,$DEPDIR,;t t
s,@am__include@,$am__include,;t t
s,@am__quote@,$am__quote,;t t
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
s,@CCDEPMODE@,$CCDEPMODE,;t t
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
s,@CPP@,$CPP,;t t
s,@gasnet_cv__gfp_fullprogname_CPP@,$gasnet_cv__gfp_fullprogname_CPP,;t t
s,@gasnet_cv__gfp_fullprogname_CC@,$gasnet_cv__gfp_fullprogname_CC,;t t
s,@CROSS_COMPILING_TRUE@,$CROSS_COMPILING_TRUE,;t t
s,@CROSS_COMPILING_FALSE@,$CROSS_COMPILING_FALSE,;t t
s,@CROSS_COMPILING@,$CROSS_COMPILING,;t t
s,@LN_S@,$LN_S,;t t
s,@have_mpcc_r@,$have_mpcc_r,;t t
s,@CC_FAMILY@,$CC_FAMILY,;t t
s,@CC_UNWRAPPED@,$CC_UNWRAPPED,;t t
s,@CC_WRAPPED@,$CC_WRAPPED,;t t
s,@EGREP@,$EGREP,;t t
s,@SIZEOF_VOID_P@,$SIZEOF_VOID_P,;t t
s,@GASNETI_PTR_BITS@,$GASNETI_PTR_BITS,;t t
s,@SEPARATE_CC@,$SEPARATE_CC,;t t
s,@BUILDCONFIG_DEBUG_TRUE@,$BUILDCONFIG_DEBUG_TRUE,;t t
s,@BUILDCONFIG_DEBUG_FALSE@,$BUILDCONFIG_DEBUG_FALSE,;t t
s,@BUILDCONFIG_DEBUG_VERBOSE_TRUE@,$BUILDCONFIG_DEBUG_VERBOSE_TRUE,;t t
s,@BUILDCONFIG_DEBUG_VERBOSE_FALSE@,$BUILDCONFIG_DEBUG_VERBOSE_FALSE,;t t
s,@BUILDCONFIG_TRACE_TRUE@,$BUILDCONFIG_TRACE_TRUE,;t t
s,@BUILDCONFIG_TRACE_FALSE@,$BUILDCONFIG_TRACE_FALSE,;t t
s,@BUILDCONFIG_STATS_TRUE@,$BUILDCONFIG_STATS_TRUE,;t t
s,@BUILDCONFIG_STATS_FALSE@,$BUILDCONFIG_STATS_FALSE,;t t
s,@BUILDCONFIG_SRCLINES_TRUE@,$BUILDCONFIG_SRCLINES_TRUE,;t t
s,@BUILDCONFIG_SRCLINES_FALSE@,$BUILDCONFIG_SRCLINES_FALSE,;t t
s,@MISC_CFLAGS@,$MISC_CFLAGS,;t t
s,@MISC_CPPFLAGS@,$MISC_CPPFLAGS,;t t
s,@KEEPTMP_CFLAGS@,$KEEPTMP_CFLAGS,;t t
s,@GASNET_SEGMENT_FAST_TRUE@,$GASNET_SEGMENT_FAST_TRUE,;t t
s,@GASNET_SEGMENT_FAST_FALSE@,$GASNET_SEGMENT_FAST_FALSE,;t t
s,@GASNET_SEGMENT_LARGE_TRUE@,$GASNET_SEGMENT_LARGE_TRUE,;t t
s,@GASNET_SEGMENT_LARGE_FALSE@,$GASNET_SEGMENT_LARGE_FALSE,;t t
s,@GASNET_SEGMENT_EVERYTHING_TRUE@,$GASNET_SEGMENT_EVERYTHING_TRUE,;t t
s,@GASNET_SEGMENT_EVERYTHING_FALSE@,$GASNET_SEGMENT_EVERYTHING_FALSE,;t t
s,@LIBGCC@,$LIBGCC,;t t
s,@SIZEOF_CHAR@,$SIZEOF_CHAR,;t t
s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
s,@SIZEOF_INT@,$SIZEOF_INT,;t t
s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
s,@PLATFORM_ILP32_TRUE@,$PLATFORM_ILP32_TRUE,;t t
s,@PLATFORM_ILP32_FALSE@,$PLATFORM_ILP32_FALSE,;t t
s,@PLATFORM_LP64_TRUE@,$PLATFORM_LP64_TRUE,;t t
s,@PLATFORM_LP64_FALSE@,$PLATFORM_LP64_FALSE,;t t
s,@PLATFORM_ILP64_TRUE@,$PLATFORM_ILP64_TRUE,;t t
s,@PLATFORM_ILP64_FALSE@,$PLATFORM_ILP64_FALSE,;t t
s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
s,@COMPLETE_STDINT_H@,$COMPLETE_STDINT_H,;t t
s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
s,@COMPLETE_INTTYPES_H@,$COMPLETE_INTTYPES_H,;t t
s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
s,@COMPLETE_SYS_TYPES_H@,$COMPLETE_SYS_TYPES_H,;t t
s,@INTTYPES_DEFINES@,$INTTYPES_DEFINES,;t t
s,@LIBM@,$LIBM,;t t
s,@REXEC@,$REXEC,;t t
s,@GASNET_MACHINE_DEFINES@,$GASNET_MACHINE_DEFINES,;t t
s,@GASNET_THREAD_DEFINES@,$GASNET_THREAD_DEFINES,;t t
s,@GASNET_THREAD_LIBS@,$GASNET_THREAD_LIBS,;t t
s,@GASNET_REXEC_DEFINES@,$GASNET_REXEC_DEFINES,;t t
s,@EXESUFFIX@,$EXESUFFIX,;t t
s,@HAVE_PTHREAD_TRUE@,$HAVE_PTHREAD_TRUE,;t t
s,@HAVE_PTHREAD_FALSE@,$HAVE_PTHREAD_FALSE,;t t
s,@PTHREADS@,$PTHREADS,;t t
s,@CONDUITS@,$CONDUITS,;t t
s,@CXX@,$CXX,;t t
s,@CXXFLAGS@,$CXXFLAGS,;t t
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
s,@CXXCPP@,$CXXCPP,;t t
s,@gasnet_cv__gfp_fullprogname_CXXCPP@,$gasnet_cv__gfp_fullprogname_CXXCPP,;t t
s,@CXXCPPFLAGS@,$CXXCPPFLAGS,;t t
s,@gasnet_cv__gfp_fullprogname_CXX@,$gasnet_cv__gfp_fullprogname_CXX,;t t
s,@CXX_FAMILY@,$CXX_FAMILY,;t t
s,@CXX_UNWRAPPED@,$CXX_UNWRAPPED,;t t
s,@CXX_WRAPPED@,$CXX_WRAPPED,;t t
s,@cxxLIBS@,$cxxLIBS,;t t
s,@cxxLDFLAGS@,$cxxLDFLAGS,;t t
s,@MISC_CXXFLAGS@,$MISC_CXXFLAGS,;t t
s,@HAVE_CXX_TRUE@,$HAVE_CXX_TRUE,;t t
s,@HAVE_CXX_FALSE@,$HAVE_CXX_FALSE,;t t
s,@GASNET_UDP_LIBS@,$GASNET_UDP_LIBS,;t t
s,@USE_UDP_CONDUIT_TRUE@,$USE_UDP_CONDUIT_TRUE,;t t
s,@USE_UDP_CONDUIT_FALSE@,$USE_UDP_CONDUIT_FALSE,;t t
s,@gasnet_cv__gfp_fullprogname_MPI_CC@,$gasnet_cv__gfp_fullprogname_MPI_CC,;t t
s,@gasnet_cv__gfp_fullprogname_MPIRUN_CMD@,$gasnet_cv__gfp_fullprogname_MPIRUN_CMD,;t t
s,@MPI_CC@,$MPI_CC,;t t
s,@MPI_CFLAGS@,$MPI_CFLAGS,;t t
s,@MPI_LIBS@,$MPI_LIBS,;t t
s,@MPI_DEFINES@,$MPI_DEFINES,;t t
s,@MPIRUN_CMD@,$MPIRUN_CMD,;t t
s,@USE_MPI_CONDUIT_TRUE@,$USE_MPI_CONDUIT_TRUE,;t t
s,@USE_MPI_CONDUIT_FALSE@,$USE_MPI_CONDUIT_FALSE,;t t
s,@USE_MPI_COMPAT_TRUE@,$USE_MPI_COMPAT_TRUE,;t t
s,@USE_MPI_COMPAT_FALSE@,$USE_MPI_COMPAT_FALSE,;t t
s,@USE_MPI_TRUE@,$USE_MPI_TRUE,;t t
s,@USE_MPI_FALSE@,$USE_MPI_FALSE,;t t
s,@USE_SMP_CONDUIT_TRUE@,$USE_SMP_CONDUIT_TRUE,;t t
s,@USE_SMP_CONDUIT_FALSE@,$USE_SMP_CONDUIT_FALSE,;t t
s,@gm_board_info@,$gm_board_info,;t t
s,@GM_INCLUDE@,$GM_INCLUDE,;t t
s,@GM_LIB@,$GM_LIB,;t t
s,@GM_NO_ALIAS@,$GM_NO_ALIAS,;t t
s,@GM_MPI_COMPAT@,$GM_MPI_COMPAT,;t t
s,@USE_GM_CONDUIT_TRUE@,$USE_GM_CONDUIT_TRUE,;t t
s,@USE_GM_CONDUIT_FALSE@,$USE_GM_CONDUIT_FALSE,;t t
s,@GM_MPI_COMPAT_TRUE@,$GM_MPI_COMPAT_TRUE,;t t
s,@GM_MPI_COMPAT_FALSE@,$GM_MPI_COMPAT_FALSE,;t t
s,@GM_RODATA_WORKAROUND_TRUE@,$GM_RODATA_WORKAROUND_TRUE,;t t
s,@GM_RODATA_WORKAROUND_FALSE@,$GM_RODATA_WORKAROUND_FALSE,;t t
s,@LAPI_LD@,$LAPI_LD,;t t
s,@USE_LAPI_CONDUIT_TRUE@,$USE_LAPI_CONDUIT_TRUE,;t t
s,@USE_LAPI_CONDUIT_FALSE@,$USE_LAPI_CONDUIT_FALSE,;t t
s,@ELAN_INCLUDE@,$ELAN_INCLUDE,;t t
s,@ELAN_LIBS@,$ELAN_LIBS,;t t
s,@USE_ELAN_CONDUIT_TRUE@,$USE_ELAN_CONDUIT_TRUE,;t t
s,@USE_ELAN_CONDUIT_FALSE@,$USE_ELAN_CONDUIT_FALSE,;t t
s,@vstat@,$vstat,;t t
s,@GASNET_VAPI_SPAWNER_CONF@,$GASNET_VAPI_SPAWNER_CONF,;t t
s,@VAPI_INCLUDE@,$VAPI_INCLUDE,;t t
s,@VAPI_LIBDIR@,$VAPI_LIBDIR,;t t
s,@VAPI_LIBS@,$VAPI_LIBS,;t t
s,@VAPI_LIBCFLAGS@,$VAPI_LIBCFLAGS,;t t
s,@VAPI_NO_ALIAS@,$VAPI_NO_ALIAS,;t t
s,@USE_VAPI_CONDUIT_TRUE@,$USE_VAPI_CONDUIT_TRUE,;t t
s,@USE_VAPI_CONDUIT_FALSE@,$USE_VAPI_CONDUIT_FALSE,;t t
s,@VAPI_BOOTSTRAP_MPI_TRUE@,$VAPI_BOOTSTRAP_MPI_TRUE,;t t
s,@VAPI_BOOTSTRAP_MPI_FALSE@,$VAPI_BOOTSTRAP_MPI_FALSE,;t t
s,@VAPI_RCV_THREAD_TRUE@,$VAPI_RCV_THREAD_TRUE,;t t
s,@VAPI_RCV_THREAD_FALSE@,$VAPI_RCV_THREAD_FALSE,;t t
s,@PORTALS_INCLUDE@,$PORTALS_INCLUDE,;t t
s,@CATAMOUNT_INCLUDE@,$CATAMOUNT_INCLUDE,;t t
s,@USE_PORTALS_CONDUIT_TRUE@,$USE_PORTALS_CONDUIT_TRUE,;t t
s,@USE_PORTALS_CONDUIT_FALSE@,$USE_PORTALS_CONDUIT_FALSE,;t t
s,@SHMEM_INCLUDE@,$SHMEM_INCLUDE,;t t
s,@SHMEM_LIBDIR@,$SHMEM_LIBDIR,;t t
s,@SHMEM_LIBS@,$SHMEM_LIBS,;t t
s,@SHMEM_FLAGS@,$SHMEM_FLAGS,;t t
s,@USE_SHMEM_CONDUIT_TRUE@,$USE_SHMEM_CONDUIT_TRUE,;t t
s,@USE_SHMEM_CONDUIT_FALSE@,$USE_SHMEM_CONDUIT_FALSE,;t t
s,@scibench2@,$scibench2,;t t
s,@SCI_INCLUDES@,$SCI_INCLUDES,;t t
s,@SCI_LIBS@,$SCI_LIBS,;t t
s,@USE_SCI_CONDUIT_TRUE@,$USE_SCI_CONDUIT_TRUE,;t t
s,@USE_SCI_CONDUIT_FALSE@,$USE_SCI_CONDUIT_FALSE,;t t
s,@ALLOCA@,$ALLOCA,;t t
s,@ADDR2LINE_PATH@,$ADDR2LINE_PATH,;t t
s,@GDB_PATH@,$GDB_PATH,;t t
s,@PGDBG_PATH@,$PGDBG_PATH,;t t
s,@IDB_PATH@,$IDB_PATH,;t t
s,@LADEBUG_PATH@,$LADEBUG_PATH,;t t
s,@DBX_PATH@,$DBX_PATH,;t t
s,@USE_PLPA_TRUE@,$USE_PLPA_TRUE,;t t
s,@USE_PLPA_FALSE@,$USE_PLPA_FALSE,;t t
s,@DEBUGMALLOC_TRUE@,$DEBUGMALLOC_TRUE,;t t
s,@DEBUGMALLOC_FALSE@,$DEBUGMALLOC_FALSE,;t t
s,@AR@,$AR,;t t
s,@RANLIB@,$RANLIB,;t t
s,@BASENAME@,$BASENAME,;t t
s,@DIRNAME@,$DIRNAME,;t t
s,@READLINK@,$READLINK,;t t
s,@TIMECMD@,$TIMECMD,;t t
s,@ENVCMD@,$ENVCMD,;t t
s,@BOURNE_SHELL@,$BOURNE_SHELL,;t t
s,@GASNET_INSTALL_CMD@,$GASNET_INSTALL_CMD,;t t
s,@TOOL_PREFIX@,$TOOL_PREFIX,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
/@PERLSTART@/r $PERLSTART
s,@PERLSTART@,,;t t
/@cc_wrapper_mk@/r $cc_wrapper_mk
s,@cc_wrapper_mk@,,;t t
CEOF

_ACEOF

  cat >>$CONFIG_STATUS <<\_ACEOF
  # 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_lines=48
  ac_sed_frag=1 # Number of current file.
  ac_beg=1 # First line for current file.
  ac_end=$ac_max_sed_lines # 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" $tmp/subs.sed >$tmp/subs.frag
    else
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    fi
    if test ! -s $tmp/subs.frag; then
      ac_more_lines=false
    else
      # The purpose of the label and of the branching condition is to
      # speed up the sed processing (if there are no `@' at all, there
      # is no need to browse any of the substitutions).
      # These are the two extra sed commands mentioned above.
      (echo ':t
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
      if test -z "$ac_sed_cmds"; then
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
      else
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
      fi
      ac_sed_frag=`expr $ac_sed_frag + 1`
      ac_beg=$ac_end
      ac_end=`expr $ac_end + $ac_max_sed_lines`
    fi
  done
  if test -z "$ac_sed_cmds"; then
    ac_sed_cmds=cat
  fi
fi # test -n "$CONFIG_FILES"

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  { if $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$as_dir" : 'X\(//\)[^/]' \| \
         X"$as_dir" : 'X\(//\)$' \| \
         X"$as_dir" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }; }

  ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`


  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  esac

  if test x"$ac_file" != x-; then
    { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    rm -f "$ac_file"
  fi
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    configure_input=
  else
    configure_input="$ac_file.  "
  fi
  configure_input=$configure_input"Generated from `echo $ac_file_in |
                                     sed 's,.*/,,'` by configure."

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
  sed "$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$ac_srcdir,;t t
s,@abs_srcdir@,$ac_abs_srcdir,;t t
s,@top_srcdir@,$ac_top_srcdir,;t t
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
s,@builddir@,$ac_builddir,;t t
s,@abs_builddir@,$ac_abs_builddir,;t t
s,@top_builddir@,$ac_top_builddir,;t t
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
s,@INSTALL@,$ac_INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  rm -f $tmp/stdin
  if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
  else
    cat $tmp/out
    rm -f $tmp/out
  fi

done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF

#
# CONFIG_HEADER section.
#

# 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=' '
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='$,\1#\2define\3'
ac_uC=' '
ac_uD=',;t'

for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case $ac_file in
  - | *:- | *:-:* ) # input from stdin
        cat >$tmp/stdin
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  * )   ac_file_in=$ac_file.in ;;
  esac

  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}

  # First look for the input files in the build tree, otherwise in the
  # src tree.
  ac_file_inputs=`IFS=:
    for f in $ac_file_in; do
      case $f in
      -) echo $tmp/stdin ;;
      [\\/$]*)
         # Absolute (can't be DOS-style, as IFS=:)
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         echo $f;;
      *) # Relative
         if test -f "$f"; then
           # Build tree
           echo $f
         elif test -f "$srcdir/$f"; then
           # Source tree
           echo $srcdir/$f
         else
           # /dev/null tree
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
   { (exit 1); exit 1; }; }
         fi;;
      esac
    done` || { (exit 1); exit 1; }
  # Remove the trailing spaces.
  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in

_ACEOF

# Transform confdefs.h into two sed scripts, `conftest.defines' and
# `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h.  The first handles `#define'
# templates, and the second `#undef' templates.
# 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.defines conftest.undefs
# Using a here document instead of a string reduces the quoting nightmare.
# Putting comments in sed scripts is not portable.
#
# `end' is used to avoid that the second main sed command (meant for
# 0-ary CPP macros) applies to n-ary macro definitions.
# See the Autoconf documentation for `clear'.
cat >confdef2sed.sed <<\_ACEOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
t end
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
: end
_ACEOF
# If some macros were called several times there might be several times
# the same #defines, which is useless.  Nevertheless, we may not want to
# sort them, since we want the *last* AC-DEFINE to be honored.
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
rm -f confdef2sed.sed

# 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.undefs <<\_ACEOF
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
_ACEOF

# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
echo '  :' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.defines >/dev/null
do
  # Write a limited-size here document to $tmp/defines.sed.
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#define' lines.
  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  rm -f conftest.defines
  mv conftest.tail conftest.defines
done
rm -f conftest.defines
echo '  fi # grep' >>$CONFIG_STATUS
echo >>$CONFIG_STATUS

# Break up conftest.undefs because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.undefs >/dev/null
do
  # Write a limited-size here document to $tmp/undefs.sed.
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  # Speed up: don't consider the non `#undef'
  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
  # Work around the forget-to-reset-the-flag bug.
  echo 't clr' >>$CONFIG_STATUS
  echo ': clr' >>$CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  echo 'CEOF
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  rm -f $tmp/in
  mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  rm -f conftest.undefs
  mv conftest.tail conftest.undefs
done
rm -f conftest.undefs

cat >>$CONFIG_STATUS <<\_ACEOF
  # Let's still pretend it is `configure' which instantiates (i.e., don't
  # use $as_me), people would be surprised to read:
  #    /* config.h.  Generated by config.status.  */
  if test x"$ac_file" = x-; then
    echo "/* Generated by configure.  */" >$tmp/config.h
  else
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
  fi
  cat $tmp/in >>$tmp/config.h
  rm -f $tmp/in
  if test x"$ac_file" != x-; then
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_file" : 'X\(//\)[^/]' \| \
         X"$ac_file" : 'X\(//\)$' \| \
         X"$ac_file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
      { if $as_mkdir_p; then
    mkdir -p "$ac_dir"
  else
    as_dir="$ac_dir"
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$as_dir" : 'X\(//\)[^/]' \| \
         X"$as_dir" : 'X\(//\)$' \| \
         X"$as_dir" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   { (exit 1); exit 1; }; }; }

      rm -f $ac_file
      mv $tmp/config.h $ac_file
    fi
  else
    cat $tmp/config.h
    rm -f $tmp/config.h
  fi
# Compute $ac_file's index in $config_headers.
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $ac_file | $ac_file:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X$ac_file : 'X\(//\)[^/]' \| \
         X$ac_file : 'X\(//\)$' \| \
         X$ac_file : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X$ac_file |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`/stamp-h$_am_stamp_count
done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF

#
# CONFIG_COMMANDS section.
#
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$ac_dest" : 'X\(//\)[^/]' \| \
         X"$ac_dest" : 'X\(//\)$' \| \
         X"$ac_dest" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$ac_dest" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  ac_builddir=.

if test "$ac_dir" != .; then
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A "../" for each directory in $ac_dir_suffix.
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
  ac_dir_suffix= ac_top_builddir=
fi

case $srcdir in
  .)  # No --srcdir option.  We are building in place.
    ac_srcdir=.
    if test -z "$ac_top_builddir"; then
       ac_top_srcdir=.
    else
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    fi ;;
  [\\/]* | ?:[\\/]* )  # Absolute path.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir ;;
  *) # Relative path.
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
# absolute.
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`


  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
echo "$as_me: executing $ac_dest commands" >&6;}
  case $ac_dest in
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  # Strip MF so we end up with the name of the file.
  mf=`echo "$mf" | sed -e 's/:.*$//'`
  # Check whether this is an Automake generated Makefile or not.
  # We used to match only the files named `Makefile.in', but
  # some people rename them; so instead we look at the file content.
  # Grep'ing the first line is not enough: some people post-process
  # each Makefile.in and add a new line on top of each file to say so.
  # So let's grep whole file.
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
    dirpart=`(dirname "$mf") 2>/dev/null ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$mf" : 'X\(//\)[^/]' \| \
         X"$mf" : 'X\(//\)$' \| \
         X"$mf" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
  else
    continue
  fi
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  # Extract the definition of DEP_FILES from the Makefile without
  # running `make'.
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  test -z "$DEPDIR" && continue
  # When using ansi2knr, U may be empty or an underscore; expand it
  U=`sed -n -e '/^U = / s///p' < "$mf"`
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  # We invoke sed twice because it is the simplest approach to
  # changing $(DEPDIR) to its actual value in the expansion.
  for file in `sed -n -e '
    /^DEP_FILES = .*\\\\$/ {
      s/^DEP_FILES = //
      :loop
	s/\\\\$//
	p
	n
	/\\\\$/ b loop
      p
    }
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    # Make sure the directory exists.
    test -f "$dirpart/$file" && continue
    fdir=`(dirname "$file") 2>/dev/null ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$file" : 'X\(//\)[^/]' \| \
         X"$file" : 'X\(//\)$' \| \
         X"$file" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    { if $as_mkdir_p; then
    mkdir -p $dirpart/$fdir
  else
    as_dir=$dirpart/$fdir
    as_dirs=
    while test ! -d "$as_dir"; do
      as_dirs="$as_dir $as_dirs"
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$as_dir" : 'X\(//\)[^/]' \| \
         X"$as_dir" : 'X\(//\)$' \| \
         X"$as_dir" : 'X\(/\)' \| \
         .     : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  	  /^X\(\/\/\)$/{ s//\1/; q; }
  	  /^X\(\/\).*/{ s//\1/; q; }
  	  s/.*/./; q'`
    done
    test ! -n "$as_dirs" || mkdir $as_dirs
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
   { (exit 1); exit 1; }; }; }

    # echo "creating $dirpart/$file"
    echo '# dummy' > "$dirpart/$file"
  done
done
 ;;
    default )


# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC_OUTPUT vvvvvvvvvvvvvvvvvvvvvv (L:1)

  for file in $gasnet_cv_exec_list; do
   case "$CONFIG_FILES" in
     *${file}*) chmod +x ${file} ;;
   esac
  done

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC_OUTPUT ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_SANITIZE_PACKAGE(gasnet_config.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test -f 'gasnet_config.h' -a -n "`grep PACKAGE_NAME 'gasnet_config.h'`" ; then
    mv 'gasnet_config.h' 'gasnet_config.h.dirty'
    cat 'gasnet_config.h.dirty' | grep -v '#define PACKAGE_' > 'gasnet_config.h'
    rm -f 'gasnet_config.h.dirty'
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SANITIZE_PACKAGE(gasnet_config.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





  if test -f .gasnet_cv_configure_warnings.tmp ; then
    echo "--------------------------------------------------------------------" >&2
    echo "--------------------------------------------------------------------" >&5
    echo "configure warning summary:" >&2
    echo "configure warning summary:" >&5
    echo " " >&2
    echo " " >&5
    cat .gasnet_cv_configure_warnings.tmp >&2
    cat .gasnet_cv_configure_warnings.tmp >&5
    rm -f .gasnet_cv_configure_warnings.tmp
  fi

CONDUIT_LIST=.gasnet-conduit-list.tmp
if test -f "$CONDUIT_LIST" ; then
  echo "----------------------------------------------------------------------"
  echo "GASNet conduit configuration: $CONDUITS"
  cat $CONDUIT_LIST
  echo "----------------------------------------------------------------------"
  rm -f $CONDUIT_LIST
fi
  ;;
  esac
done
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF

{ (exit 0); exit 0; }
_ACEOF
chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || { (exit 1); exit 1; }
fi


