#! /bin/sh
# 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="upcr.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_subdirs_all="$ac_subdirs_all $TOTALVIEW_SUBDIR"
ac_subdirs_all="$ac_subdirs_all gasnet"
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 UPCR_VERSION RUNTIME_SPEC UPC_SPEC PERL GASNET_PERL_BYTESFLAG HARNESS_TRANS_OPTION GCCUPC_VERSION USING_GCCUPC USING_GCCUPC_TRUE USING_GCCUPC_FALSE 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 upcr_cv__gfp_fullprogname_CPP upcr_cv__gfp_fullprogname_CC CROSS_COMPILING_TRUE CROSS_COMPILING_FALSE CROSS_COMPILING CC_FAMILY CC_UNWRAPPED CC_WRAPPED UPCR_SYSTEM_CFLAGS HOST_CC HOST_CFLAGS HOST_LDFLAGS HOST_LIBS UPCR_PROFILE_FLAG EGREP LEX LEXLIB LEX_OUTPUT_ROOT UPCR_USE_LEX_TRUE UPCR_USE_LEX_FALSE SIZEOF_VOID_P UPCRI_PTR_BITS NM GNU_NM_TRUE GNU_NM_FALSE AR RANLIB ENVCMD DIG NSLOOKUP GMAKE TAIL BOURNE_SHELL TAIL_FOLLOW TAIL_FOLLOW_MULTI GNU_GCC USE_GNU_PREPROC GCC_AS_CC EXESUFFIX PLATFORM_PREPROCESS UPCR_OBJECT_STRINGS_TRUE UPCR_OBJECT_STRINGS_FALSE subdirs TOTALVIEW_ENABLED TOTALVIEW_SUBDIR BUILDCONFIG_DEBUG_TRUE BUILDCONFIG_DEBUG_FALSE BUILDCONFIG_GASP_TRUE BUILDCONFIG_GASP_FALSE GASP_ENABLED MPI_INCOMPATIBLE BUILDCONFIG TRANSLATOR GCC_TLS_SUPPORT HAVE_CPP_INCLUDE_NEXT PATH_ALLOCA_H HAVE_ALLOCA_H PATH_FENV_H HAVE_FENV_H PATH_STDINT_H HAVE_STDINT_H PATH_STRING_H HAVE_STRING_H PATH_STDLIB_H HAVE_STDLIB_H PATH_STDIO_H HAVE_STDIO_H PATH_STDDEF_H HAVE_STDDEF_H PATH_STDBOOL_H HAVE_STDBOOL_H PATH_STDARG_H HAVE_STDARG_H PATH_INTTYPES_H HAVE_INTTYPES_H PATH_LIMITS_H HAVE_LIMITS_H PATH_MATH_H HAVE_MATH_H PATH_TIME_H HAVE_TIME_H PATH_SYS_STAT_H HAVE_SYS_STAT_H SYSTEM_HEADER_DIRS 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 COMPLETE_STDINT_H COMPLETE_INTTYPES_H HAVE_SYS_TYPES_H COMPLETE_SYS_TYPES_H INTTYPES_DEFINES SIZEOF_PTRDIFF_T SIZEOF_SIZE_T CHAR_IS_SIGNED HAVE_BOOL SIGINT SIGTERM SIGKILL TARGETLIBS ASSISTANTLIBS CONDUITS DEFAULT_CONDUIT PARSEQ PRETRANS_CPPFLAGS GASNET_INSTALL_CMD MAKE_INCLUDE SHARED_HEAP_SIZE SHARED_HEAP_OFFSET PTHREADS LIBOBJS LTLIBOBJS'
ac_subst_files='cc_wrapper_mk UPCR_INCLUDE_NEXT_ALLOCA_H UPCR_INCLUDE_NEXT_FENV_H UPCR_INCLUDE_NEXT_STDINT_H UPCR_INCLUDE_NEXT_STRING_H UPCR_INCLUDE_NEXT_STDLIB_H UPCR_INCLUDE_NEXT_STDIO_H UPCR_INCLUDE_NEXT_STDDEF_H UPCR_INCLUDE_NEXT_STDBOOL_H UPCR_INCLUDE_NEXT_STDARG_H UPCR_INCLUDE_NEXT_INTTYPES_H UPCR_INCLUDE_NEXT_LIMITS_H UPCR_INCLUDE_NEXT_MATH_H UPCR_INCLUDE_NEXT_TIME_H UPCR_INCLUDE_NEXT_SYS_STAT_H PERLSTART'

# 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

#
# 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-sptr-packed        Use the more efficient 'packed' shared pointer representation (on by default)
  --enable-sptr-struct        Use the 'struct' shared pointer representation
  --enable-sptr-symmetric     Enable 'symmetric' pointer variant where available (64-bit smp & shmem) (off by default)
  --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-object-strings     assume strings can be scanned from unlinked objects
  --disable-object-strings    assume strings can be scanned from unlinked objects
  --enable-totalview          Enable Totalview debugger support (implies --enable-debug)
  --enable-trace              build UPC Runtime/GASNet with tracing enabled
  --enable-stats              build UPC Runtime/GASNet with statistical collection enabled
  --enable-debug              build UPC Runtime/GASNet in debug mode
  --enable-inst               enable UPC performance instrumentation via GASP - note might negatively impact performance
  --disable-mpi-compat        Enable/disable interoperability with MPI (enabled if MPI detected)
  --enable-segment-fast       Select GASNet's FAST segments (default), for the fastest remote access with a possible cost in max shared memory size
  --enable-segment-large      Select GASNet's LARGE segments, for the largest possible shared memory size (see also --with-segment-mmap-max), at a possible cost in remote access time
  --enable-pthreads           support pthreaded UPC processes
  --disable-pthreads          support pthreaded UPC processes
  --enable-include-next       try to use include_next in header wrappers
  --disable-include-next      try to use include_next in header wrappers
  --enable-udp                support running over UDP (portable, low-performance conduit)
  --disable-udp               support running over UDP (portable, low-performance conduit)
  --enable-smp                support running over smp loopback (no network)
  --disable-smp               support running over smp loopback (no network)
  --enable-mpi                support running over MPI 1.1/2.x (portable, low-performance conduit)
  --disable-mpi               support running over MPI 1.1/2.x (portable, low-performance conduit)
  --enable-sci                support running over Dolphin SCI (EXPERIMENTAL)
  --disable-sci               support running over Dolphin SCI (EXPERIMENTAL)
  --enable-elan               support running over Quadrics' elan
  --disable-elan              support running over Quadrics' elan
  --enable-lapi               support running over IBM LAPI
  --disable-lapi              support running over IBM LAPI
  --enable-gm                 support running over Myrinet GM
  --disable-gm                support running over Myrinet GM
  --enable-shmem              support running over SHMEM
  --disable-shmem             support running over SHMEM
  --enable-vapi               support running over Mellanox VAPI
  --disable-vapi              support running over Mellanox VAPI
  --enable-portals            support running over Cray Portals
  --disable-portals           support running over Cray Portals

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-gccupc=value         use gccupc compiler (provide full pathname to 'upc')
  --with-host-cc=             value for HOST_CC
  --with-host-cflags=         value for HOST_CFLAGS
  --with-host-ldflags=        value for HOST_LDFLAGS
  --with-host-libs=           value for HOST_LIBS
  --with-lex=value            specify the 'lex' version to use (default is auto-detection).  Use --without-lex to force use of the prebuild scanner.
  --with-cross-sizeof-void-p= value for CROSS_SIZEOF_VOID_P
  --with-gcc=path             full pathname of GNU GCC compiler (if needed)
  --with-segment-mmap-max=value Set default max size of mmap-based GASNet segments (ex: "2GB", "1045MB") -- see also --enable-segment-large
  --with-lapi-type=value      IBM Switch hardware type ("colony" or "federation", default is to probe)
  --with-sptr-packed-bits=value value='phase,thread,addr' tweak bit distribution in packed sptr representation, requires phase+thread+addr=64
  --with-translator           specify UPC-to-C translator
  --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-sizeof-ptrdiff-t= value for CROSS_SIZEOF_PTRDIFF_T
  --with-cross-sizeof-size-t= value for CROSS_SIZEOF_SIZE_T
  --with-cross-char-is-signed= value for CROSS_CHAR_IS_SIGNED
  --with-cross-stack-grows-up= value for CROSS_STACK_GROWS_UP
  --with-cross-sigint=        value for CROSS_SIGINT
  --with-cross-sigterm=       value for CROSS_SIGTERM
  --with-cross-sigkill=       value for CROSS_SIGKILL
  --with-pthreads-include=    value for PTHREADS_INCLUDE
  --with-pthreads-lib=        value for PTHREADS_LIB

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

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





















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=berkeley_upc
 VERSION=2.3.16


# 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.



if test "" ; then
     # 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=x
 VERSION=x


# 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.



fi

          ac_config_headers="$ac_config_headers upcr_config.h"







# vvvvvvvvvvvvvvvvvvvvvv GASNET_START_CONFIGURE() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  rm -f .upcr_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" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_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" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_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 ) vvvvvvvvvvvvvvvvvvvvvv (L:2)


  if test "$upcr_acenv_list" != ""; then
    { { echo "$as_me:$LINENO: error: _GASNET_RESTORE_AUTOCONF_ENV called more than once with prefix = \"upcr_cv_\"" >&5
echo "$as_me: error: _GASNET_RESTORE_AUTOCONF_ENV called more than once with prefix = \"upcr_cv_\"" >&2;}
   { (exit 1); exit 1; }; }
  fi
  upcr_acenv_list="CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC "
  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 ; do
    val=`eval echo '$'"upcr_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 ) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)




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






# vvvvvvvvvvvvvvvvvvvvvv GASNET_DEFINE_CONFIGURE_VARS vvvvvvvvvvvvvvvvvvvvvv (L:1)


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

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

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

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


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






    default_translator="http://upc-translator.lbl.gov/upcc-2.3.16.cgi"

    UPCR_RUNTIME_SPEC_MAJOR=3
  UPCR_RUNTIME_SPEC_MINOR=8
  RUNTIME_SPEC="${UPCR_RUNTIME_SPEC_MAJOR}.${UPCR_RUNTIME_SPEC_MINOR}"

    UPC_SPEC="200505L"

  UPCR_VERSION=2.3.16
  cat >>confdefs.h <<_ACEOF
#define UPCR_VERSION "$UPCR_VERSION"
_ACEOF




  cat >>confdefs.h <<_ACEOF
#define UPCR_RUNTIME_SPEC_MAJOR $UPCR_RUNTIME_SPEC_MAJOR
_ACEOF

  cat >>confdefs.h <<_ACEOF
#define UPCR_RUNTIME_SPEC_MINOR $UPCR_RUNTIME_SPEC_MINOR
_ACEOF






# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBCONFIGURE_ARG(--with-tool-prefix=upc) vvvvvvvvvvvvvvvvvvvvvv (L:1)

ac_configure_args="$ac_configure_args --with-tool-prefix=upc"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBCONFIGURE_ARG(--with-tool-prefix=upc) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# 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)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(sptr-packed,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

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

fi;

case "$enable_sptr_packed" in
  '' | no) :
       ;;
  *)  force_packed_sptr="yes" ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(sptr-packed,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(sptr-struct,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

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

fi;

case "$enable_sptr_struct" in
  '' | no) :
       ;;
  *)  force_struct_sptr="yes" ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(sptr-struct,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(sptr-symmetric,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

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

fi;

case "$enable_sptr_symmetric" in
  '' | no) :
       ;;
  *)  force_symmetric_sptr="yes" ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(sptr-symmetric,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



HARNESS_TRANS_OPTION="-trans"




# vvvvvvvvvvvvvvvvvvvvvv GASNET_WITH(gccupc,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)


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

  case "$withval" in
    no) :
         USING_GCCUPC="no"  ;;
    *)  if test -n "$force_packed_sptr" -o -n "$force_packed_symmetric"; then
        { { echo "$as_me:$LINENO: error: '--with-gccupc' requires '--enable-sptr-struct'" >&5
echo "$as_me: error: '--with-gccupc' requires '--enable-sptr-struct'" >&2;}
   { (exit 1); exit 1; }; }
     fi
     if test "$withval" = "yes"; then
        { { echo "$as_me:$LINENO: error: '--with-gccupc requires pathname to 'upc' or 'xupc'" >&5
echo "$as_me: error: '--with-gccupc requires pathname to 'upc' or 'xupc'" >&2;}
   { (exit 1); exit 1; }; }
     fi
     echo "$as_me:$LINENO: checking for gccupc" >&5
echo $ECHO_N "checking for gccupc... $ECHO_C" >&6
     gccdir=`expr "$withval" : '\(.*\)/x*upc$'`
     if test -z "$gccdir"; then
        { { echo "$as_me:$LINENO: error: \"--with-gccupc: must provide full path to 'upc' or 'xupc'\"" >&5
echo "$as_me: error: \"--with-gccupc: must provide full path to 'upc' or 'xupc'\"" >&2;}
   { (exit 1); exit 1; }; }
     fi
     if test -z "`$withval -v 2>&1 < /dev/null | grep 'GCC UPC'`" ; then
        { { echo "$as_me:$LINENO: error: '--with-gccupc' requires pathname to 'upc' or 'xupc' executable" >&5
echo "$as_me: error: '--with-gccupc' requires pathname to 'upc' or 'xupc' executable" >&2;}
   { (exit 1); exit 1; }; }
     fi
# Default CC to gccupc's 'gcc' (living in same directory as 'upc')
#   - TODO: make this work:  right now gasnet doesn't see the CC change if we
#           merely set CC=$gccdir/gcc.  If we export CC (or append
#           CC=$gccdir/gcc or --with-cc=$gccdir/gcc to ac_configure_args),
#           gasnet's configure dies complaining that CC wasn't set in the last
#           configure invocation.  This is because it shared the same
#           config.cache with upcr.
#       - for now, force users to set CC=<gccupc's gcc> if they want it.
#     if test -n "`$gccdir/gcc -v 2>&1 < /dev/null | grep 'gcc version'`"; then
#         if test -z "$CC"; then
#             CC="$gccdir/gcc"
#         fi
#     fi
     echo "$as_me:$LINENO: result: $withval" >&5
echo "${ECHO_T}$withval" >&6

     TRANSLATOR="$withval"
     cat >>confdefs.h <<\_ACEOF
#define UPCRI_USING_GCCUPC 1
_ACEOF

     force_struct_sptr="yes"
     USING_GCCUPC="yes"
     HARNESS_TRANS_OPTION=""
     echo "$as_me:$LINENO: checking for gccupc version" >&5
echo $ECHO_N "checking for gccupc version... $ECHO_C" >&6
     GCCUPC_VERSION=`$TRANSLATOR -v 2>&1 | $PERL -ne 'if (/upc-(\S+) .GCC UPC/) { print $1; }'`
     if test -z "$GCCUPC_VERSION" ; then
       { { echo "$as_me:$LINENO: error: Failed to detect GCC/UPC translator version" >&5
echo "$as_me: error: Failed to detect GCC/UPC translator version" >&2;}
   { (exit 1); exit 1; }; }
     else
       echo "$as_me:$LINENO: result: $GCCUPC_VERSION" >&5
echo "${ECHO_T}$GCCUPC_VERSION" >&6
     fi

     ;;
  esac

else

   :
    USING_GCCUPC="no"

fi;

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_WITH(gccupc,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






if test "$USING_GCCUPC" = "yes"; then
  USING_GCCUPC_TRUE=
  USING_GCCUPC_FALSE='#'
else
  USING_GCCUPC_TRUE='#'
  USING_GCCUPC_FALSE=
fi





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) :
        ;;
  *)   upcr_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


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 "$upcr_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 upcr_cv__gfp_fullprogname_CPP
    unset ac_cv_path_upcr_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_upcr_cv__gfp_fullprogname_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $upcr_cv__gfp_fullprogname_CPP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_upcr_cv__gfp_fullprogname_CPP="$upcr_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_upcr_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
upcr_cv__gfp_fullprogname_CPP=$ac_cv_path_upcr_cv__gfp_fullprogname_CPP

if test -n "$upcr_cv__gfp_fullprogname_CPP"; then
  echo "$as_me:$LINENO: result: $upcr_cv__gfp_fullprogname_CPP" >&5
echo "${ECHO_T}$upcr_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 "$upcr_cv__gfp_fullprogname_CPP" != "" ; then
      CPP="$upcr_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" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_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 "$upcr_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 upcr_cv__gfp_fullprogname_CC
    unset ac_cv_path_upcr_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_upcr_cv__gfp_fullprogname_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $upcr_cv__gfp_fullprogname_CC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_upcr_cv__gfp_fullprogname_CC="$upcr_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_upcr_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
upcr_cv__gfp_fullprogname_CC=$ac_cv_path_upcr_cv__gfp_fullprogname_CC

if test -n "$upcr_cv__gfp_fullprogname_CC"; then
  echo "$as_me:$LINENO: result: $upcr_cv__gfp_fullprogname_CC" >&5
echo "${ECHO_T}$upcr_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 "$upcr_cv__gfp_fullprogname_CC" != "" ; then
      CC="$upcr_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)







# vvvvvvvvvvvvvvvvvvvvvv GASNET_FAMILY_CACHE_CHECK(C,CC,upcr_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 "${upcr_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
  upcr_cv_cc_family=unknown

    if test "$upcr_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
  upcr_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
  upcr_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 "$upcr_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
  upcr_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
  upcr_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 "$upcr_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
  upcr_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
  upcr_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
  upcr_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
  upcr_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
  upcr_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
  upcr_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
  upcr_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
  upcr_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 "$upcr_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
  upcr_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
  upcr_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
  upcr_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
  upcr_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 "$upcr_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
  upcr_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
  upcr_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
  upcr_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
  upcr_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 "$upcr_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
  upcr_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
  upcr_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
  upcr_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
  upcr_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 "$upcr_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
  upcr_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
  upcr_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 "$upcr_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
  upcr_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
  upcr_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 "$upcr_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
  upcr_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
  upcr_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 "$upcr_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
  upcr_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
  upcr_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 "$upcr_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
  upcr_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
  upcr_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 "$upcr_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
  upcr_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
  upcr_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
  upcr_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
  upcr_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: $upcr_cv_cc_family" >&5
echo "${ECHO_T}$upcr_cv_cc_family" >&6
if test "$upcr_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=$upcr_cv_cc_family
CC_UNWRAPPED=$CC
case $upcr_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,upcr_cv_cc_family) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




case "$upcr_cv_cc_family" in
  GNU)  # gcc's strict-aliasing-based optimizations break pointer-to-shared in many nasty ways
    UPCR_SYSTEM_CFLAGS="-fno-strict-aliasing" ;;
  XLC)  # xlc's ansi-aliasing-based optimizations break pointer-to-shared in many nasty ways
    UPCR_SYSTEM_CFLAGS="-qnoansialias -qalias=addr" ;;
  Intel)  # bug 137c - disable a broken warning for non-POD type passed to ...
    UPCR_SYSTEM_CFLAGS="-wd1595" ;;
  Compaq) # we might need to use -noansi_alias here, but thus far there are no known instances
          # of misbehavior and some evidence that Compaq's optimizer attempts to validate aliasing
          # assumptions rather than blindly trusting the foolish ansi aliasing rules.
          # so for now, just disable the warning it issues upon detecting a violation
    UPCR_SYSTEM_CFLAGS="-msg_disable badansialias" ;;
  *)
    UPCR_SYSTEM_CFLAGS="" ;;
esac





# vvvvvvvvvvvvvvvvvvvvvv GASNET_PROG_HOSTCC vvvvvvvvvvvvvvvvvvvvvv (L:1)

if test "$cross_compiling" = "yes" ; then
  HOST_MSG="When cross-compiling, \$HOST_CC or --with-host-cc= must be set to indicate a C compiler for the host machine (ie the machine running this configure script)"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(HOST_CC,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




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



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

fi;



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

      case "${HOST_CC-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_host_cc" != ""; then
	      upcr_cv_envvar_HOST_CC="$with_host_cc"
	      envval_src_HOST_CC=given
	    else
	      upcr_cv_envvar_HOST_CC=""
	      envval_src_HOST_CC=default
	    fi
	    ;;
	*)  upcr_cv_envvar_HOST_CC="$HOST_CC"
	    envval_src_HOST_CC=given
      esac

fi


  HOST_CC="$upcr_cv_envvar_HOST_CC"
  case "$envval_src_HOST_CC" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$HOST_CC\"" >&5
echo "${ECHO_T}using cached value \"$HOST_CC\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$HOST_CC\"" >&5
echo "${ECHO_T}no, defaulting to \"$HOST_CC\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$HOST_CC\"" >&5
echo "${ECHO_T}yes, using \"$HOST_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(HOST_CC,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(HOST_CFLAGS,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




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



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

fi;



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

      case "${HOST_CFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_host_cflags" != ""; then
	      upcr_cv_envvar_HOST_CFLAGS="$with_host_cflags"
	      envval_src_HOST_CFLAGS=given
	    else
	      upcr_cv_envvar_HOST_CFLAGS=""
	      envval_src_HOST_CFLAGS=default
	    fi
	    ;;
	*)  upcr_cv_envvar_HOST_CFLAGS="$HOST_CFLAGS"
	    envval_src_HOST_CFLAGS=given
      esac

fi


  HOST_CFLAGS="$upcr_cv_envvar_HOST_CFLAGS"
  case "$envval_src_HOST_CFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$HOST_CFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$HOST_CFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$HOST_CFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$HOST_CFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$HOST_CFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$HOST_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(HOST_CFLAGS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(HOST_LDFLAGS,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




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



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

fi;



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

      case "${HOST_LDFLAGS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_host_ldflags" != ""; then
	      upcr_cv_envvar_HOST_LDFLAGS="$with_host_ldflags"
	      envval_src_HOST_LDFLAGS=given
	    else
	      upcr_cv_envvar_HOST_LDFLAGS=""
	      envval_src_HOST_LDFLAGS=default
	    fi
	    ;;
	*)  upcr_cv_envvar_HOST_LDFLAGS="$HOST_LDFLAGS"
	    envval_src_HOST_LDFLAGS=given
      esac

fi


  HOST_LDFLAGS="$upcr_cv_envvar_HOST_LDFLAGS"
  case "$envval_src_HOST_LDFLAGS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$HOST_LDFLAGS\"" >&5
echo "${ECHO_T}using cached value \"$HOST_LDFLAGS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$HOST_LDFLAGS\"" >&5
echo "${ECHO_T}no, defaulting to \"$HOST_LDFLAGS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$HOST_LDFLAGS\"" >&5
echo "${ECHO_T}yes, using \"$HOST_LDFLAGS\"" >&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(HOST_LDFLAGS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(HOST_LIBS,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




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



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

fi;



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

      case "${HOST_LIBS-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_host_libs" != ""; then
	      upcr_cv_envvar_HOST_LIBS="$with_host_libs"
	      envval_src_HOST_LIBS=given
	    else
	      upcr_cv_envvar_HOST_LIBS=""
	      envval_src_HOST_LIBS=default
	    fi
	    ;;
	*)  upcr_cv_envvar_HOST_LIBS="$HOST_LIBS"
	    envval_src_HOST_LIBS=given
      esac

fi


  HOST_LIBS="$upcr_cv_envvar_HOST_LIBS"
  case "$envval_src_HOST_LIBS" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$HOST_LIBS\"" >&5
echo "${ECHO_T}using cached value \"$HOST_LIBS\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$HOST_LIBS\"" >&5
echo "${ECHO_T}no, defaulting to \"$HOST_LIBS\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$HOST_LIBS\"" >&5
echo "${ECHO_T}yes, using \"$HOST_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(HOST_LIBS,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)







  if test ! "$HOST_CC" ; then
    { { echo "$as_me:$LINENO: error: $HOST_MSG" >&5
echo "$as_me: error: $HOST_MSG" >&2;}
   { (exit 1); exit 1; }; }
  fi



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$HOST_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="$HOST_CC"
  echo "pushed new CC value: $CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$HOST_CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$HOST_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="$HOST_CFLAGS"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$HOST_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LDFLAGS,"$HOST_LDFLAGS") 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="$HOST_LDFLAGS"
  echo "pushed new LDFLAGS value: $LDFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LDFLAGS,"$HOST_LDFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$HOST_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="$HOST_LIBS"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$HOST_LIBS") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR_UNSET(CPP) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CPP,"<unset>") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_CPP" = "" ; then
    _pushcnt_CPP=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CPP+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CPP_$_pushcnt_CPP=\$CPP
  eval _pushedvarset_CPP_$_pushcnt_CPP=$_gasnet_pushvar_isset
  _pushcnt_CPP=`expr $_pushcnt_CPP + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CPP="<unset>"
  echo "pushed new CPP value: $CPP" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CPP,"<unset>") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    unset CPP

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR_UNSET(CPP) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR_UNSET(CPPFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CPPFLAGS,"<unset>") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    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="<unset>"
  echo "pushed new CPPFLAGS value: $CPPFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CPPFLAGS,"<unset>") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    unset CPPFLAGS

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR_UNSET(CPPFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR_UNSET(ac_cv_prog_CC) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(ac_cv_prog_CC,"<unset>") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_ac_cv_prog_CC" = "" ; then
    _pushcnt_ac_cv_prog_CC=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_prog_CC+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_prog_CC_$_pushcnt_ac_cv_prog_CC=\$ac_cv_prog_CC
  eval _pushedvarset_ac_cv_prog_CC_$_pushcnt_ac_cv_prog_CC=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_prog_CC=`expr $_pushcnt_ac_cv_prog_CC + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_prog_CC="<unset>"
  echo "pushed new ac_cv_prog_CC value: $ac_cv_prog_CC" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(ac_cv_prog_CC,"<unset>") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    unset ac_cv_prog_CC

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR_UNSET(ac_cv_prog_CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR_UNSET(ac_cv_prog_CPP) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(ac_cv_prog_CPP,"<unset>") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_ac_cv_prog_CPP" = "" ; then
    _pushcnt_ac_cv_prog_CPP=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_prog_CPP+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_prog_CPP_$_pushcnt_ac_cv_prog_CPP=\$ac_cv_prog_CPP
  eval _pushedvarset_ac_cv_prog_CPP_$_pushcnt_ac_cv_prog_CPP=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_prog_CPP=`expr $_pushcnt_ac_cv_prog_CPP + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_prog_CPP="<unset>"
  echo "pushed new ac_cv_prog_CPP value: $ac_cv_prog_CPP" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(ac_cv_prog_CPP,"<unset>") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    unset ac_cv_prog_CPP

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR_UNSET(ac_cv_prog_CPP) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR_UNSET(ac_cv_c_compiler_gnu) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(ac_cv_c_compiler_gnu,"<unset>") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_ac_cv_c_compiler_gnu" = "" ; then
    _pushcnt_ac_cv_c_compiler_gnu=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_c_compiler_gnu+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_c_compiler_gnu_$_pushcnt_ac_cv_c_compiler_gnu=\$ac_cv_c_compiler_gnu
  eval _pushedvarset_ac_cv_c_compiler_gnu_$_pushcnt_ac_cv_c_compiler_gnu=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_c_compiler_gnu=`expr $_pushcnt_ac_cv_c_compiler_gnu + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_c_compiler_gnu="<unset>"
  echo "pushed new ac_cv_c_compiler_gnu value: $ac_cv_c_compiler_gnu" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(ac_cv_c_compiler_gnu,"<unset>") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    unset ac_cv_c_compiler_gnu

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR_UNSET(ac_cv_c_compiler_gnu) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR_UNSET(ac_cv_prog_cc_g) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(ac_cv_prog_cc_g,"<unset>") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_ac_cv_prog_cc_g" = "" ; then
    _pushcnt_ac_cv_prog_cc_g=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_prog_cc_g+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_prog_cc_g_$_pushcnt_ac_cv_prog_cc_g=\$ac_cv_prog_cc_g
  eval _pushedvarset_ac_cv_prog_cc_g_$_pushcnt_ac_cv_prog_cc_g=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_prog_cc_g=`expr $_pushcnt_ac_cv_prog_cc_g + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_prog_cc_g="<unset>"
  echo "pushed new ac_cv_prog_cc_g value: $ac_cv_prog_cc_g" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(ac_cv_prog_cc_g,"<unset>") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    unset ac_cv_prog_cc_g

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR_UNSET(ac_cv_prog_cc_g) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR_UNSET(ac_cv_prog_cc_stdc) vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(ac_cv_prog_cc_stdc,"<unset>") vvvvvvvvvvvvvvvvvvvvvv (L:3)

    if test "$_pushcnt_ac_cv_prog_cc_stdc" = "" ; then
    _pushcnt_ac_cv_prog_cc_stdc=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_prog_cc_stdc+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_prog_cc_stdc_$_pushcnt_ac_cv_prog_cc_stdc=\$ac_cv_prog_cc_stdc
  eval _pushedvarset_ac_cv_prog_cc_stdc_$_pushcnt_ac_cv_prog_cc_stdc=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_prog_cc_stdc=`expr $_pushcnt_ac_cv_prog_cc_stdc + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_prog_cc_stdc="<unset>"
  echo "pushed new ac_cv_prog_cc_stdc value: $ac_cv_prog_cc_stdc" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(ac_cv_prog_cc_stdc,"<unset>") ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



    unset ac_cv_prog_cc_stdc

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR_UNSET(ac_cv_prog_cc_stdc) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PROG_CC vvvvvvvvvvvvvvvvvvvvvv (L:2)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PROG_CPP vvvvvvvvvvvvvvvvvvvvvv (L:3)


  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); }

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


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:4)



if test "$upcr_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 upcr_cv__gfp_fullprogname_CPP
    unset ac_cv_path_upcr_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_upcr_cv__gfp_fullprogname_CPP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $upcr_cv__gfp_fullprogname_CPP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_upcr_cv__gfp_fullprogname_CPP="$upcr_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_upcr_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
upcr_cv__gfp_fullprogname_CPP=$ac_cv_path_upcr_cv__gfp_fullprogname_CPP

if test -n "$upcr_cv__gfp_fullprogname_CPP"; then
  echo "$as_me:$LINENO: result: $upcr_cv__gfp_fullprogname_CPP" >&5
echo "${ECHO_T}$upcr_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 "$upcr_cv__gfp_fullprogname_CPP" != "" ; then
      CPP="$upcr_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:4)





  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:4)

# 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:5)

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

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:5)




     ;;
esac


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



  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:3)






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



if test "$upcr_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 upcr_cv__gfp_fullprogname_CC
    unset ac_cv_path_upcr_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_upcr_cv__gfp_fullprogname_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $upcr_cv__gfp_fullprogname_CC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_upcr_cv__gfp_fullprogname_CC="$upcr_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_upcr_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
upcr_cv__gfp_fullprogname_CC=$ac_cv_path_upcr_cv__gfp_fullprogname_CC

if test -n "$upcr_cv__gfp_fullprogname_CC"; then
  echo "$as_me:$LINENO: result: $upcr_cv__gfp_fullprogname_CC" >&5
echo "${ECHO_T}$upcr_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 "$upcr_cv__gfp_fullprogname_CC" != "" ; then
      CC="$upcr_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:3)





  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:3)

# 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:3)





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




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(cross_compiling,"no") vvvvvvvvvvvvvvvvvvvvvv (L:2)

    if test "$_pushcnt_cross_compiling" = "" ; then
    _pushcnt_cross_compiling=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${cross_compiling+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_cross_compiling_$_pushcnt_cross_compiling=\$cross_compiling
  eval _pushedvarset_cross_compiling_$_pushcnt_cross_compiling=$_gasnet_pushvar_isset
  _pushcnt_cross_compiling=`expr $_pushcnt_cross_compiling + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  cross_compiling="no"
  echo "pushed new cross_compiling value: $cross_compiling" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(cross_compiling,"no") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



    echo "$as_me:$LINENO: checking working host C compiler executables" >&5
echo $ECHO_N "checking working host 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: $HOST_MSG"
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



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

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

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



    HOST_CC="$CC"
    HOST_CPP="$CPP"
    HOST_CPPFLAGS="$CPPFLAGS"
    HOST_CFLAGS="$CFLAGS"
    HOST_LDFLAGS="$LDFLAGS"
    HOST_LIBS="$LIBS"
    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_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)






# 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)






# 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)






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

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

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






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

  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:2)






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

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

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






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

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

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






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

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

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






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

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

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






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

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

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



fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PROG_HOSTCC ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




case "$upcr_cv_cc_family" in
  GNU)    UPCR_PROFILE_FLAG="-pg" ;;
  Intel)  UPCR_PROFILE_FLAG="-p" ;;
  Sun)    UPCR_PROFILE_FLAG="-p" ;;
  Compaq) UPCR_PROFILE_FLAG="-pg" ;; # -prof_gen also works, enables pixie profiling
  XLC)    UPCR_PROFILE_FLAG="-pg" ;;
  PGI)    UPCR_PROFILE_FLAG="-pg" ;; # -Mprof options enable lots of PGI-specific profiling
  *)      UPCR_PROFILE_FLAG="" ;;
esac



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($UPCR_PROFILE_FLAG) vvvvvvvvvvvvvvvvvvvvvv (L:1)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $UPCR_PROFILE_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 $UPCR_PROFILE_FLAG"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $UPCR_PROFILE_FLAG") ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



echo "$as_me:$LINENO: checking for C compiler flag $UPCR_PROFILE_FLAG" >&5
echo $ECHO_N "checking for C compiler flag $UPCR_PROFILE_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)





    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
   UPCR_PROFILE_FLAG=""

    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
     UPCR_PROFILE_FLAG=""
   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)



 UPCR_PROFILE_FLAG=""


  fi

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



  rm -f ${gasnet_testname}.*

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




# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($UPCR_PROFILE_FLAG) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




if test "$UPCR_PROFILE_FLAG" != ""; then
  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





for ac_header in sys/types.h sys/gmon.h mon.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_PUSHVAR(CFLAGS,"$CFLAGS $UPCR_PROFILE_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 $UPCR_PROFILE_FLAG"
  echo "pushed new CFLAGS value: $CFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $UPCR_PROFILE_FLAG") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  echo "$as_me:$LINENO: checking for _mcleanup()" >&5
echo $ECHO_N "checking for _mcleanup()... $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.  */

          #if HAVE_SYS_TYPES_H
            #include <sys/types.h>
          #endif
          #if HAVE_SYS_GMON_H
            #include <sys/gmon.h>
          #endif
          #if HAVE_MON_H
            #include <mon.h>
          #endif

int
main ()
{
 { _mcleanup(); }
  ;
  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_MCLEANUP 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
  echo "$as_me:$LINENO: checking for monitor_signal(0)" >&5
echo $ECHO_N "checking for monitor_signal(0)... $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.  */

          #if HAVE_SYS_TYPES_H
            #include <sys/types.h>
          #endif
          #if HAVE_SYS_GMON_H
            #include <sys/gmon.h>
          #endif
          #if HAVE_MON_H
            #include <mon.h>
          #endif

int
main ()
{
 { monitor_signal(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_MONITOR_SIGNAL 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
  echo "$as_me:$LINENO: checking for monitor(0)" >&5
echo $ECHO_N "checking for monitor(0)... $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.  */

          #if HAVE_SYS_TYPES_H
            #include <sys/types.h>
          #endif
          #if HAVE_SYS_GMON_H
            #include <sys/gmon.h>
          #endif
          #if HAVE_MON_H
            #include <mon.h>
          #endif

int
main ()
{
 { monitor(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_MONITOR 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
  echo "$as_me:$LINENO: checking for monitor(0,0,0,0,0)" >&5
echo $ECHO_N "checking for monitor(0,0,0,0,0)... $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.  */

          #if HAVE_SYS_TYPES_H
            #include <sys/types.h>
          #endif
          #if HAVE_SYS_GMON_H
            #include <sys/gmon.h>
          #endif
          #if HAVE_MON_H
            #include <mon.h>
          #endif

int
main ()
{
 { monitor(0,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
   echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
                 cat >>confdefs.h <<\_ACEOF
#define HAVE_MONITOR5 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
  case "$upcr_cv_cc_family" in
    PGI)
      echo "$as_me:$LINENO: checking for __rouexit()" >&5
echo $ECHO_N "checking for __rouexit()... $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.  */

          #if HAVE_SYS_TYPES_H
            #include <sys/types.h>
          #endif
          #if HAVE_SYS_GMON_H
            #include <sys/gmon.h>
          #endif
          #if HAVE_MON_H
            #include <mon.h>
          #endif

                   extern void __rouexit(void);
int
main ()
{
 { __rouexit(); }
  ;
  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_ROUEXIT 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



# 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




# 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 "${upcr_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
  upcr_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 )
upcr_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: $upcr_cv_c_bigendian" >&5
echo "${ECHO_T}$upcr_cv_c_bigendian" >&6
if test "$upcr_cv_c_bigendian" != no; then
  :
  WORDS_BIGENDIAN=$upcr_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)





enabled_lex=auto

# Check whether --with-lex or --without-lex was given.
if test "${with_lex+set}" = set; then
  withval="$with_lex"
  case "$with_lex" in
	no|yes)	enabled_lex="$with_lex" ;;
	*)	LEX="$with_lex" ;;
     esac

fi;
if test "$enabled_lex" != no; then
  for ac_prog in flex lex
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LEX+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # 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_LEX="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

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

  test -n "$LEX" && break
done
test -n "$LEX" || LEX=":"

if test -z "$LEXLIB"
then
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfl  $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 yywrap ();
int
main ()
{
yywrap ();
  ;
  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_fl_yywrap=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_fl_yywrap=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_fl_yywrap" >&5
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
if test $ac_cv_lib_fl_yywrap = yes; then
  LEXLIB="-lfl"
else
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
if test "${ac_cv_lib_l_yywrap+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-ll  $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 yywrap ();
int
main ()
{
yywrap ();
  ;
  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_l_yywrap=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_lib_l_yywrap=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_l_yywrap" >&5
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
if test $ac_cv_lib_l_yywrap = yes; then
  LEXLIB="-ll"
fi

fi

fi

if test "x$LEX" != "x:"; then
  echo "$as_me:$LINENO: checking lex output file root" >&5
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
if test "${ac_cv_prog_lex_root+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # The minimal lex program is just a single line: %%.  But some broken lexes
# (Solaris, I think it was) want two %% lines, so accommodate them.
cat >conftest.l <<_ACEOF
%%
%%
_ACEOF
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  (eval $LEX conftest.l) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
if test -f lex.yy.c; then
  ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
  ac_cv_prog_lex_root=lexyy
else
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
   { (exit 1); exit 1; }; }
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
rm -f conftest.l
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root

echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  # POSIX says lex can declare yytext either as a pointer or an array; the
# default is implementation-dependent. Figure out which it is, since
# not all implementations provide the %pointer and %array declarations.
ac_cv_prog_lex_yytext_pointer=no
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
ac_save_LIBS=$LIBS
LIBS="$LIBS $LEXLIB"
cat >conftest.$ac_ext <<_ACEOF
`cat $LEX_OUTPUT_ROOT.c`
_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_prog_lex_yytext_pointer=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
LIBS=$ac_save_LIBS
rm -f "${LEX_OUTPUT_ROOT}.c"

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

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

fi

fi
if test "$LEX" = :; then
  LEX=${am_missing_run}flex
fi
  # Automake uses the 'missing' script when no lex found, we want an empty LEX variable
  case "$LEX" in
    *missing*) LEX="" ;;
    :) LEX="" ;;        # Automake 1.4-p6 has a bug producing ':' instead of missing
  esac
fi
if test "$enabled_lex$LEX" = yes; then
  { { echo "$as_me:$LINENO: error: User specified --with-lex but no lex or flex could be found, try --with-lex=value." >&5
echo "$as_me: error: User specified --with-lex but no lex or flex could be found, try --with-lex=value." >&2;}
   { (exit 1); exit 1; }; }
fi


if test -n "$LEX"; then
  UPCR_USE_LEX_TRUE=
  UPCR_USE_LEX_FALSE='#'
else
  UPCR_USE_LEX_TRUE='#'
  UPCR_USE_LEX_FALSE=
fi





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

upcr_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;}'
   upcr_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 "$upcr_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;}'
   upcr_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: $upcr_cv_SIZEOF_VOID_P" >&5
echo "${ECHO_T}$upcr_cv_SIZEOF_VOID_P" >&6
if test -n "$upcr_cv_SIZEOF_VOID_P" ; then
  SIZEOF_VOID_P=$upcr_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 "${upcr_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
	      upcr_cv_envvar_CROSS_SIZEOF_VOID_P="$with_cross_sizeof_void_p"
	      envval_src_CROSS_SIZEOF_VOID_P=given
	    else
	      upcr_cv_envvar_CROSS_SIZEOF_VOID_P=""
	      envval_src_CROSS_SIZEOF_VOID_P=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_SIZEOF_VOID_P="$CROSS_SIZEOF_VOID_P"
	    envval_src_CROSS_SIZEOF_VOID_P=given
      esac

fi


  CROSS_SIZEOF_VOID_P="$upcr_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)


 # do NOT put inside 'case' statement...
UPCRI_PTR_BITS=`expr $SIZEOF_VOID_P \* 8`

case "$target_os" in
    aix*)
        # If on AIX, and in 64 bit mode, we need to use 'nm -X64' and 'ar -X64'
        # Also, use /usr/bin/nm instead of GNU nm (which can't do 64 bits)
        if test "$UPCRI_PTR_BITS" = 64; then
            NM="/usr/bin/nm -X64"
            AR="ar -X64"
            RANLIB="ranlib -X64"
        else
            NM="/usr/bin/nm"
        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

for ac_prog in $NM nm
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$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

  ;;
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

  test -n "$NM" && break
done
 # allow failure - nm is optional
echo "$as_me:$LINENO: checking for GNU nm" >&5
echo $ECHO_N "checking for GNU nm... $ECHO_C" >&6
if test "`$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




# 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)






# 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
ENVCMD="${ENVCMD:-/usr/bin/env}"
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
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_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

for ac_prog in $DIG dig
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_DIG+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $DIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DIG="$DIG" # 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_DIG="$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
DIG=$ac_cv_path_DIG

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

  test -n "$DIG" && break
done
 # optional
for ac_prog in $NSLOOKUP nslookup
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_NSLOOKUP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $NSLOOKUP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_NSLOOKUP="$NSLOOKUP" # 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_NSLOOKUP="$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
NSLOOKUP=$ac_cv_path_NSLOOKUP

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

  test -n "$NSLOOKUP" && break
done
 # optional



# 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
GMAKE_VERSTR=`$GMAKE --version | grep GNU 2> /dev/null`
if test "$GMAKE_VERSTR" = "" ; then
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
  { { echo "$as_me:$LINENO: error: cannot find a version of GNU make - please install GNU make and/or set \$GMAKE to indicate where it's located" >&5
echo "$as_me: error: cannot find a version of GNU make - please install GNU make and/or set \$GMAKE to indicate where it's located" >&2;}
   { (exit 1); exit 1; }; }
else
  GMAKE_VER=`echo "$GMAKE_VERSTR" | $PERL -n -e 'if (/([0-9]+)\.([0-9]+)(\.[0-9]+)?/) { $maj=$1; $min=$2; $pat=$3; printf "%i%03i%03i",($maj,$min,($pat?$pat=~s/\.//:0)) }'`
  # bug 824 - we require 3.79+
  if test $GMAKE_VER -lt 3079000 ; then
    echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
    { { echo "$as_me:$LINENO: error: This software requires GNU make version 3.79 or newer, and you appear to be running: \"$GMAKE_VERSTR\" - please install GNU make and/or set \$GMAKE to indicate where it's located" >&5
echo "$as_me: error: This software requires GNU make version 3.79 or newer, and you appear to be running: \"$GMAKE_VERSTR\" - please install GNU make and/or set \$GMAKE to indicate where it's located" >&2;}
   { (exit 1); exit 1; }; }
  else
    echo "$as_me:$LINENO: result: $GMAKE_VERSTR" >&5
echo "${ECHO_T}$GMAKE_VERSTR" >&6
  fi
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




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PATH_PROGS(TAIL,$TAIL tail cat,tail) vvvvvvvvvvvvvvvvvvvvvv (L:1)

case "$TAIL" in
  '') for ac_prog in $TAIL tail cat
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_TAIL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $TAIL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_TAIL="$TAIL" # 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_TAIL="$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
TAIL=$ac_cv_path_TAIL

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

  test -n "$TAIL" && break
done

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

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PATH_PROGS(TAIL,$TAIL tail cat,tail) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



TAIL_FOLLOW="$TAIL"
echo "$as_me:$LINENO: checking whether $TAIL supports -q" >&5
echo $ECHO_N "checking whether $TAIL supports -q... $ECHO_C" >&6
if test "`$TAIL -q /dev/null 2>&1`" = "" ; then
  TAIL_FOLLOW="$TAIL_FOLLOW -q"
  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
echo "$as_me:$LINENO: checking whether $TAIL supports multi-file" >&5
echo $ECHO_N "checking whether $TAIL supports multi-file... $ECHO_C" >&6
# use -q here or GNU tail dumps headers causing false negatives
if test "`$TAIL_FOLLOW /dev/null /dev/null 2>&1`" = "" ; then
  TAIL_FOLLOW_MULTI=''
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
  TAIL_FOLLOW_MULTI='#'
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
TAIL_FOLLOW="$TAIL_FOLLOW -f"














# Some vendor C compilers have a misbehaving preprocessor, so GCC's must be used

# Check whether --with-gcc or --without-gcc was given.
if test "${with_gcc+set}" = set; then
  withval="$with_gcc"
  GNU_GCC=$with_gcc
     if test "$with_gcc" = yes; then
	{ { echo "$as_me:$LINENO: error: --with-gcc=/path/to/gcc requires a path to gcc!" >&5
echo "$as_me: error: --with-gcc=/path/to/gcc requires a path to gcc!" >&2;}
   { (exit 1); exit 1; }; }
     fi
     echo with-gcc passed: GNU_GCC=$GNU_GCC

fi;
case "$upcr_cv_cc_family" in
    XLC) USE_GNU_PREPROC="yes" ;;
    Sun) USE_GNU_PREPROC="yes" ;;
    PGI) USE_GNU_PREPROC="yes" ;;
    *)   USE_GNU_PREPROC="no" ;;
esac
if test "$USE_GNU_PREPROC" = "yes" ; then
   GCC_CC_ERRMSG="The GCC preprocessor needed if CC=$upcr_cv_cc_family: use '--with-gcc=...' or make sure gcc is in your PATH"
   if test "$GNU_GCC" = no; then
      { { echo "$as_me:$LINENO: error: The GCC preprocessor is required if CC=$upcr_cv_cc_family: cannot use '--without-gcc'" >&5
echo "$as_me: error: The GCC preprocessor is required if CC=$upcr_cv_cc_family: cannot use '--without-gcc'" >&2;}
   { (exit 1); exit 1; }; }
   fi
   if test -z "$GNU_GCC"; then
      for ac_prog in gcc
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_GNU_GCC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $GNU_GCC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GNU_GCC="$GNU_GCC" # 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_GNU_GCC="$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
GNU_GCC=$ac_cv_path_GNU_GCC

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

  test -n "$GNU_GCC" && break
done
test -n "$GNU_GCC" || GNU_GCC="GNU GCC"

   fi
   if test -z "$GNU_GCC"; then
      { { echo "$as_me:$LINENO: error: $GCC_CC_ERRMSG" >&5
echo "$as_me: error: $GCC_CC_ERRMSG" >&2;}
   { (exit 1); exit 1; }; }
   fi

   # run a check to ensure this is really GCC



# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CPP,"$GNU_GCC -E") vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "$_pushcnt_CPP" = "" ; then
    _pushcnt_CPP=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${CPP+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_CPP_$_pushcnt_CPP=\$CPP
  eval _pushedvarset_CPP_$_pushcnt_CPP=$_gasnet_pushvar_isset
  _pushcnt_CPP=`expr $_pushcnt_CPP + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  CPP="$GNU_GCC -E"
  echo "pushed new CPP value: $CPP" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CPP,"$GNU_GCC -E") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(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=""
  echo "pushed new CFLAGS value: $CFLAGS" >&5

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



   echo "$as_me:$LINENO: checking for working gcc preprocessor" >&5
echo $ECHO_N "checking for working gcc preprocessor... $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.  */

      #if !defined(__GNUC__) || defined(__xlC__) || defined(__INTEL_COMPILER) || defined(__PGI) || defined(__PATHCC__)
      #error not GCC
      #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
  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
      { { echo "$as_me:$LINENO: error: '$GNU_GCC' is not an instance of the GCC compiler. $GCC_CC_ERRMSG" >&5
echo "$as_me: error: '$GNU_GCC' is not an instance of the GCC compiler. $GCC_CC_ERRMSG" >&2;}
   { (exit 1); exit 1; }; }

fi
rm -f conftest.err conftest.$ac_ext



# vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CPP) vvvvvvvvvvvvvvvvvvvvvv (L:1)

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

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CPP) ^^^^^^^^^^^^^^^^^^^^^^ (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)




   # we also need to teach GCC how to emulate the xlc preprocessor
   echo "$as_me:$LINENO: checking how to make GNU cpp look like $CPP" >&5
echo $ECHO_N "checking how to make GNU cpp look like $CPP... $ECHO_C" >&6
   echo "$as_me:$LINENO: result: " >&5
echo "${ECHO_T}" >&6
   echo "$as_me:$LINENO: result: $PERL $srcdir/gcc_as_cc.pl --gcc=\"$GNU_GCC -E\" --cc=\"$CPP\" --cc-family=$upcr_cv_cc_family" >&5
echo "${ECHO_T}$PERL $srcdir/gcc_as_cc.pl --gcc=\"$GNU_GCC -E\" --cc=\"$CPP\" --cc-family=$upcr_cv_cc_family" >&6
      GCC_AS_CC=`$PERL $srcdir/gcc_as_cc.pl --gcc="$GNU_GCC -E" --cc="$CPP" --cc-family=$upcr_cv_cc_family -v 2> conftest.err`
   cat conftest.err >&5
   echo "$as_me:$LINENO: result: $GCC_AS_CC" >&5
echo "${ECHO_T}$GCC_AS_CC" >&6
   if test -z "$GCC_AS_CC" ; then
      cat conftest.err
      { { echo "$as_me:$LINENO: error: Failed to detect GCC_AS_CC setting" >&5
echo "$as_me: error: Failed to detect GCC_AS_CC setting" >&2;}
   { (exit 1); exit 1; }; }
   fi
   rm -f conftest.err
fi




# Find the appropriate OS suffix for executables
case "$target_os" in
  cygwin*)    EXESUFFIX='.exe' ;;
  *)          EXESUFFIX='' ;;
esac


# Additional preprocess step to run on the preprocessed UPC file before translation
case "$target_os" in
  cygwin*)    PLATFORM_PREPROCESS="| $AWK -F \\n '{gsub(\"__attribute__[(][(][^)]*cdecl[^)]*[)][)]\",\"\");gsub(\"__attribute__[(][(][^)]*dll[^)]*[)][)]\",\"\");print;}'" ;;
  *)          PLATFORM_PREPROCESS='' ;;
esac
case "$upcr_cv_cc_family" in
  Sun)
  # Sun C preprocessor drops the filename in subsequent #line directives with the same filename
  # this perl goop puts it back, and also removes the #file directives it inserts whenever seeing #line upon input
  if test "$GCC_AS_CC" = "no" ; then
    PLATFORM_PREPROCESS="| $PERL -p -e 'if (/^#\s*(?:line\s+)?([0-9]+)\s+(\S+)\$\$/) { \$\$srcfile=\$\$2; \$\$_=\"#line \$\$1 \$\$srcfile\n\"; } elsif (/^#\s*file\s+(\S+)\$\$/) { \$\$srcfile=\$\$1; \$\$_=\"\"; } elsif (/^#\s*(?:line\s+)?([0-9]+)\s*\$\$/) { \$\$_=\"#line \$\$1 \$\$srcfile\n\"; } ' $PLATFORM_PREPROCESS"
  fi
;;
*)
;;
esac


case "$upcr_cv_cc_family" in
  Cray) object_strings=no  ;; # PR436 - no scannable object strings on Cray X1
  *)    object_strings=yes ;;
esac



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(object-strings,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

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

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

fi;
case "$enable_object_strings" in
  no)  object_strings=no ;;
  yes) object_strings=yes ;;
  *)    ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(object-strings,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






if test "$object_strings" = "yes"; then
  UPCR_OBJECT_STRINGS_TRUE=
  UPCR_OBJECT_STRINGS_FALSE='#'
else
  UPCR_OBJECT_STRINGS_TRUE='#'
  UPCR_OBJECT_STRINGS_FALSE=
fi






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(totalview,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

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

fi;

case "$enable_totalview" in
  '' | no) :
      TOTALVIEW_SUBDIR=""
     TOTALVIEW_ENABLED=no ;;
  *)  if test "$USING_GCCUPC"x = "yes"x ; then
       { { echo "$as_me:$LINENO: error: --with-gccupc and --enable-totalview cannot be used together" >&5
echo "$as_me: error: --with-gccupc and --enable-totalview cannot be used together" >&2;}
   { (exit 1); exit 1; }; }
     fi
     if test "$force_symmetric_sptr" = "yes"; then
         { { echo "$as_me:$LINENO: error: --enable-sptr-symmetric does not yet work with --enable-totalview" >&5
echo "$as_me: error: --enable-sptr-symmetric does not yet work with --enable-totalview" >&2;}
   { (exit 1); exit 1; }; }
     fi
     if test ! -f "$TOP_SRCDIR/totalview/configure"; then
         { { echo "$as_me:$LINENO: error: Cannot --enable-totalview - totalview support was disabled at Bootstrap" >&5
echo "$as_me: error: Cannot --enable-totalview - totalview support was disabled at Bootstrap" >&2;}
   { (exit 1); exit 1; }; }
     fi
     TOTALVIEW_SUBDIR="totalview"
     TOTALVIEW_ENABLED=yes ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(totalview,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$TOTALVIEW_SUBDIR" != ""; then


subdirs="$subdirs $TOTALVIEW_SUBDIR"

fi




UPCR_BUILDCONFIG="upcr,gasnet,upc_collective,upc_io,upc_memcpy_async,upc_ptradd,upc_thread_distance,upc_tick,upc_sem,upc_dump_shared,upc_trace_printf,upc_trace_mask,upc_local_to_shared,upc_atomics"
if test "$USING_GCCUPC" = "yes"; then
  BUILDCONFIG="gccupc,$UPCR_BUILDCONFIG"
else
  BUILDCONFIG="berkeleyupc,$UPCR_BUILDCONFIG,upc_memcpy_vis"
fi
BUILDCONFIG_TRACE=
BUILDCONFIG_STATS=



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(trace,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# 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) :
      BUILDCONFIG_TRACE="notrace" ;;
  *)  BUILDCONFIG_TRACE="trace" ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(trace,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(stats,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

# 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) :
      BUILDCONFIG_STATS="nostats" ;;
  *)  BUILDCONFIG_STATS="stats" ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(stats,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# 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) :

                   enabled_debug="$TOTALVIEW_ENABLED"
                   if test "$TOTALVIEW_ENABLED" = "yes" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBCONFIGURE_ARG(--enable-debug) vvvvvvvvvvvvvvvvvvvvvv (L:2)

ac_configure_args="$ac_configure_args --enable-debug"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBCONFIGURE_ARG(--enable-debug) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



                   fi
                  ;;
  *)   enabled_debug=yes  ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(debug,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$enabled_debug" = "yes" ; then
   BUILDCONFIG="$BUILDCONFIG,debug"
   BUILDCONFIG_TRACE="trace" # debug also enables trace and stats
   BUILDCONFIG_STATS="stats"
else
   BUILDCONFIG="$BUILDCONFIG,nodebug"
fi
BUILDCONFIG="$BUILDCONFIG,$BUILDCONFIG_TRACE"
BUILDCONFIG="$BUILDCONFIG,$BUILDCONFIG_STATS"


if test "$enabled_debug" = yes; then
  BUILDCONFIG_DEBUG_TRUE=
  BUILDCONFIG_DEBUG_FALSE='#'
else
  BUILDCONFIG_DEBUG_TRUE='#'
  BUILDCONFIG_DEBUG_FALSE=
fi





# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(inst,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

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

fi;

case "$enable_inst" in
  '' | no) :
       GASP_ENABLED=no  ;;
  *)   GASP_ENABLED=yes  ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(inst,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



if test "$GASP_ENABLED" = "yes"; then
      BUILDCONFIG="$BUILDCONFIG,gasp"
      cat >>confdefs.h <<\_ACEOF
#define UPCRI_GASP 1
_ACEOF




# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBCONFIGURE_ARG(--enable-srclines) vvvvvvvvvvvvvvvvvvvvvv (L:1)

ac_configure_args="$ac_configure_args --enable-srclines"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBCONFIGURE_ARG(--enable-srclines) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



else
      BUILDCONFIG="$BUILDCONFIG,nogasp"
fi


if test "$GASP_ENABLED" = yes; then
  BUILDCONFIG_GASP_TRUE=
  BUILDCONFIG_GASP_FALSE='#'
else
  BUILDCONFIG_GASP_TRUE='#'
  BUILDCONFIG_GASP_FALSE=
fi



# Conduits that are incompatible w/ --uses-mpi:
# upcc needs to know if gm belongs on the MPI incompatible list
# We can just check if the user has disabled compatability, since the
# case that MPI is not found eliminates use of --uses-mpi anyway.
MPI_INCOMPATIBLE="smp"



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_DISABLED(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;
case "$enable_mpi_compat" in
  '' | yes) :
        ;;
  *)   MPI_INCOMPATIBLE="$MPI_INCOMPATIBLE gm" ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_DISABLED(mpi-compat,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)





# no-ops: pass down to gasnet.  Here for documentation purposes only



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

else

   :


fi;

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_WITH(segment-mmap-max,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



BUILDCONFIG_SEGMENT="segment_fast"



# 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) :
       ;;
  *)   ;;
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) :
       ;;
  *)
   BUILDCONFIG_SEGMENT="segment_large"
 ;;
esac


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(segment-large,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




case "$enable_segment_everything" in
  '' | no) :
       ;;
  *)




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: --enable-segment-everything is *NOT* supported for Berkeley UPC!!!" >&5
echo "$as_me: WARNING: --enable-segment-everything is *NOT* supported for Berkeley UPC!!!" >&2;}
  echo "--enable-segment-everything is *NOT* supported for Berkeley UPC!!!" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




  BUILDCONFIG_SEGMENT="segment_everything"
 ;;
esac

BUILDCONFIG="$BUILDCONFIG,$BUILDCONFIG_SEGMENT"



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

else

   :


fi;

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_WITH(lapi-type,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




BUILDCONFIG_OS=os_`echo "$target_os" | $PERL -p -e '/([^0-9.]+)/ ; print $1; last'`
case "$BUILDCONFIG_OS" in
  os_linux*) BUILDCONFIG_OS="os_linux";;
esac
BUILDCONFIG_CPU=cpu_"$target_cpu"
if test "$UPCRI_PTR_BITS" = 64; then
  BUILDCONFIG_CPU="$BUILDCONFIG_CPU,cpu_64"
else
  BUILDCONFIG_CPU="$BUILDCONFIG_CPU,cpu_32"
fi
BUILDCONFIG_CC=cc_`echo "$upcr_cv_cc_family" | $PERL -p -e 'print lc($_); last'`
BUILDCONFIG="$BUILDCONFIG,$BUILDCONFIG_OS,$BUILDCONFIG_CPU,$BUILDCONFIG_CC"

# default to packed shared ptr rep
if test "$force_struct_sptr" = "yes"; then
      cat >>confdefs.h <<\_ACEOF
#define UPCRI_STRUCT_SPTR 1
_ACEOF

      BUILDCONFIG="$BUILDCONFIG,structsptr"
else
      cat >>confdefs.h <<\_ACEOF
#define UPCRI_PACKED_SPTR 1
_ACEOF

      BUILDCONFIG="$BUILDCONFIG,packedsptr"
fi

# Enable symmetric pointer if enabled by user
if test "$force_symmetric_sptr" = "yes"; then
      if test "$UPCRI_PTR_BITS" != "64"; then
	{ { echo "$as_me:$LINENO: error: --enable-sptr-symmetric is only available on 64-bit targets" >&5
echo "$as_me: error: --enable-sptr-symmetric is only available on 64-bit targets" >&2;}
   { (exit 1); exit 1; }; }
      fi
      cat >>confdefs.h <<\_ACEOF
#define UPCRI_SYMMETRIC_SPTR 1
_ACEOF

      BUILDCONFIG="$BUILDCONFIG,symmetricsptr"
fi




# vvvvvvvvvvvvvvvvvvvvvv GASNET_WITH(sptr-packed-bits,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)


# Check whether --with-sptr-packed-bits or --without-sptr-packed-bits was given.
if test "${with_sptr_packed_bits+set}" = set; then
  withval="$with_sptr_packed_bits"

  case "$withval" in
    no) :
         ;;
    *)
  if test "$force_struct_sptr" = "yes"; then
    { { echo "$as_me:$LINENO: error: --with-sptr-packed-bits is only supported for packed sptr representation" >&5
echo "$as_me: error: --with-sptr-packed-bits is only supported for packed sptr representation" >&2;}
   { (exit 1); exit 1; }; }
  fi
  UPCRI_PHASE_BITS_OVERRIDE=`echo $withval | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;  print $1 if ($1+$2+$3 == 64);'`
  UPCRI_THREAD_BITS_OVERRIDE=`echo $withval | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/; print $2 if ($1+$2+$3 == 64);'`
  UPCRI_ADDR_BITS_OVERRIDE=`echo $withval | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;   print $3 if ($1+$2+$3 == 64);'`
  if test -z "$UPCRI_PHASE_BITS_OVERRIDE"  -o "$UPCRI_PHASE_BITS_OVERRIDE"  -lt 1 -o \
          -z "$UPCRI_THREAD_BITS_OVERRIDE" -o "$UPCRI_THREAD_BITS_OVERRIDE" -lt 1 -o \
          -z "$UPCRI_ADDR_BITS_OVERRIDE"   -o "$UPCRI_ADDR_BITS_OVERRIDE"   -lt 20 -o \
	  "$UPCRI_ADDR_BITS_OVERRIDE" -gt "$UPCRI_PTR_BITS" ; then
    { { echo "$as_me:$LINENO: error: --with-sptr-packed-bits=phase,thread,addr requires phase+thread+addr=64 and phase >= 1 and thread >= 1 and addr >= 20 and addr <= 8*sizeof(void*)" >&5
echo "$as_me: error: --with-sptr-packed-bits=phase,thread,addr requires phase+thread+addr=64 and phase >= 1 and thread >= 1 and addr >= 20 and addr <= 8*sizeof(void*)" >&2;}
   { (exit 1); exit 1; }; }
  fi
  cat >>confdefs.h <<_ACEOF
#define UPCRI_PHASE_BITS_OVERRIDE $UPCRI_PHASE_BITS_OVERRIDE
_ACEOF

  cat >>confdefs.h <<_ACEOF
#define UPCRI_THREAD_BITS_OVERRIDE $UPCRI_THREAD_BITS_OVERRIDE
_ACEOF

  cat >>confdefs.h <<_ACEOF
#define UPCRI_ADDR_BITS_OVERRIDE $UPCRI_ADDR_BITS_OVERRIDE
_ACEOF

 ;;
  esac

else

   :


fi;

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_WITH(sptr-packed-bits,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




echo "$as_me:$LINENO: checking for compiler feature list" >&5
echo $ECHO_N "checking for compiler feature list... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $BUILDCONFIG" >&5
echo "${ECHO_T}$BUILDCONFIG" >&6


#  Allow translator location to be specified during configure

# Check whether --with-translator or --without-translator was given.
if test "${with_translator+set}" = set; then
  withval="$with_translator"
  if test "$with_translator" = yes; then
        { { echo "$as_me:$LINENO: error: --with-translator requires an argument!" >&5
echo "$as_me: error: --with-translator requires an argument!" >&2;}
   { (exit 1); exit 1; }; }
     fi
     if test x"$USING_GCCUPC" = "xyes"; then
        { { echo "$as_me:$LINENO: error: cannot use both --with-gccupc and --with-translator!" >&5
echo "$as_me: error: cannot use both --with-gccupc and --with-translator!" >&2;}
   { (exit 1); exit 1; }; }
     fi
     TRANSLATOR="$with_translator"
else
  if test -z "$TRANSLATOR"; then
        TRANSLATOR="$default_translator"
      fi

fi;


#
#     default: support pthreads if library found
#     --enable-pthreads: fail if pthreads lib not found
#     --disable-pthreads: don't even look for pthreads library
# PARSEQ will be modified by conduit-setup script based on GASNet's pthread verification test



# 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)  PARSEQ="seq" ;;
  yes) PARSEQ="par seq" ;;
  *)   PARSEQ="par seq" ;;
esac

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







# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(LIBS,"$LIBS -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 -lpthread"
  echo "pushed new LIBS value: $LIBS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(LIBS,"$LIBS -lpthread") ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# 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 "${upcr_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
  upcr_cv_tls_supported=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

upcr_cv_tls_supported=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $upcr_cv_tls_supported" >&5
echo "${ECHO_T}$upcr_cv_tls_supported" >&6
if test "$upcr_cv_tls_supported" = yes; then
  :

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

  GCC_TLS_SUPPORT=yes

else
  :

  GCC_TLS_SUPPORT=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 "${upcr_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
  upcr_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 )
upcr_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: $upcr_cv_tls_supported" >&5
echo "${ECHO_T}$upcr_cv_tls_supported" >&6
if test "$upcr_cv_tls_supported" = yes; then
  :

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

  GCC_TLS_SUPPORT=yes

else
  :

  GCC_TLS_SUPPORT=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)







# 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 "$USING_GCCUPC" = "yes" -a "$GCC_TLS_SUPPORT" = "no" -a "$PARSEQ" != "seq"; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: GCCUPC requires __thread support for pthreaded operation - disabling pthreads support" >&5
echo "$as_me: WARNING: GCCUPC requires __thread support for pthreaded operation - disabling pthreads support" >&2;}
  echo "GCCUPC requires __thread support for pthreaded operation - disabling pthreads support" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




  # don't bother building pthreaded versions of libraries, since they won't work with GCCUPC
  PARSEQ="seq"
  # Could pass --disable-pthreads to GASNet configure, but that breaks conduits that need private threads (vapi)
fi





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


























for ac_header in assert.h complex.h ctype.h errno.h fenv.h   	\
		 float.h inttypes.h iso646.h limits.h locale.h 	\
		 math.h setjmp.h signal.h stdarg.h stdbool.h 	\
		 stddef.h stdint.h stdio.h stdlib.h string.h 	\
		 tgmath.h time.h wchar.h wctype.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_header in stdarg.h varargs.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
 break
fi

done












for ac_header in fcntl.h unistd.h sys/types.h sys/stat.h memory.h strings.h	\
                 sys/mman.h sys/resource.h printf.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



HAVE_CPP_INCLUDE_NEXT=1



# vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(include-next,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

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

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

fi;
case "$enable_include_next" in
  no)  HAVE_CPP_INCLUDE_NEXT=0 ;;
  yes) FORCE_CPP_INCLUDE_NEXT=1 ;;
  *)    ;;
esac

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(include-next,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




if test "$HAVE_CPP_INCLUDE_NEXT" != "0"; then
echo "$as_me:$LINENO: checking for include_next support" >&5
echo $ECHO_N "checking for include_next support... $ECHO_C" >&6
CONFTMP="$TOP_BUILDDIR/conftemp"
CONFTMPINC_BASE="include"
CONFTMPINC="$CONFTMP/$CONFTMPINC_BASE"
mkdir -p $CONFTMPINC
cat > "$CONFTMPINC/stdlib.h" << EOF
#ifdef IN_STDLIB_WRAPPER
  #error reinclusion of stdlib wrapper
#endif
#define IN_STDLIB_WRAPPER
#include_next <stdlib.h>
#undef IN_STDLIB_WRAPPER
#define STDLIB_WRAPPER
EOF
cat > "$CONFTMPINC/assert.h" << EOF
#ifdef IN_ASSERT_WRAPPER
  #error reinclusion of assert wrapper
#endif
#define IN_ASSERT_WRAPPER
#include_next <assert.h>
#undef IN_ASSERT_WRAPPER
#define ASSERT_WRAPPER
EOF




# vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CPPFLAGS,"-I$CONFTMPINC -I$CONFTMP $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="-I$CONFTMPINC -I$CONFTMP $CPPFLAGS"
  echo "pushed new CPPFLAGS value: $CPPFLAGS" >&5

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CPPFLAGS,"-I$CONFTMPINC -I$CONFTMP $CPPFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (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 "stdlib.h"
            #include "$CONFTMPINC_BASE/assert.h"

int
main ()
{

            ldiv_t ld;
	    void *p = malloc(10);
            #ifndef assert
	      #error assert missing
            #endif
            #ifndef ASSERT_WRAPPER
	      #error assert wrapper missing
            #endif
            #ifndef STDLIB_WRAPPER
	      #error stdlib wrapper missing
            #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
  HAVE_CPP_INCLUDE_NEXT=1 ; 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

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



# 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)



rm -Rf "$CONFTMP"
if test "$HAVE_CPP_INCLUDE_NEXT$FORCE_CPP_INCLUDE_NEXT" = "01" ; then
  { { echo "$as_me:$LINENO: error: '--enable-include-next' passed, but include_next does not appear to work" >&5
echo "$as_me: error: '--enable-include-next' passed, but include_next does not appear to work" >&2;}
   { (exit 1); exit 1; }; }
fi
fi


SYSHDR_FILE=conftest-syshdr.c
echo "#include <confdefs.h>" > $SYSHDR_FILE

if test "$USE_GNU_PREPROC" = "yes"; then
  # help the FIND_HEADER detection logic by giving it a sane preprocessor
  GASNET_FIND_HEADER_CPP="$GCC_AS_CC"
fi





# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(alloca.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



for ac_header in alloca.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_alloca_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of alloca.h" >&5
echo $ECHO_N "checking for location of alloca.h... $ECHO_C" >&6
  echo "#include <alloca.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep alloca.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep alloca.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/alloca.h; then
        header_pathname="\"/usr/include/alloca.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of alloca_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of alloca_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of alloca_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_ALLOCA_H=$header_pathname
HAVE_ALLOCA_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(alloca.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_ALLOCA_H
  PATH_HEADER=$PATH_ALLOCA_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_ALLOCA_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_ALLOCA_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_ALLOCA_H"
  cat > $UPCR_INCLUDE_NEXT_ALLOCA_H <<EOF

      #if $HAVE_HEADER
         #include_next <alloca.h>
         #include_next <alloca.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_ALLOCA_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_ALLOCA_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_ALLOCA_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_ALLOCA_H"
  cat > $UPCR_INCLUDE_NEXT_ALLOCA_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_ALLOCA_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(fenv.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



for ac_header in fenv.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_fenv_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of fenv.h" >&5
echo $ECHO_N "checking for location of fenv.h... $ECHO_C" >&6
  echo "#include <fenv.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep fenv.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep fenv.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/fenv.h; then
        header_pathname="\"/usr/include/fenv.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of fenv_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of fenv_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of fenv_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_FENV_H=$header_pathname
HAVE_FENV_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(fenv.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_FENV_H
  PATH_HEADER=$PATH_FENV_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_FENV_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_FENV_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_FENV_H"
  cat > $UPCR_INCLUDE_NEXT_FENV_H <<EOF

      #if $HAVE_HEADER
         #include_next <fenv.h>
         #include_next <fenv.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_FENV_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_FENV_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_FENV_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_FENV_H"
  cat > $UPCR_INCLUDE_NEXT_FENV_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_FENV_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(stdint.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



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



if test "$ac_cv_header_stdint_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of stdint.h" >&5
echo $ECHO_N "checking for location of stdint.h... $ECHO_C" >&6
  echo "#include <stdint.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep stdint.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep stdint.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/stdint.h; then
        header_pathname="\"/usr/include/stdint.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of stdint_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of stdint_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of stdint_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_STDINT_H=$header_pathname
HAVE_STDINT_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(stdint.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_STDINT_H
  PATH_HEADER=$PATH_STDINT_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDINT_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STDINT_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STDINT_H"
  cat > $UPCR_INCLUDE_NEXT_STDINT_H <<EOF

      #if $HAVE_HEADER
         #include_next <stdint.h>
         #include_next <stdint.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDINT_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDINT_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STDINT_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STDINT_H"
  cat > $UPCR_INCLUDE_NEXT_STDINT_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDINT_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(string.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



for ac_header in string.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_string_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of string.h" >&5
echo $ECHO_N "checking for location of string.h... $ECHO_C" >&6
  echo "#include <string.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep string.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep string.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/string.h; then
        header_pathname="\"/usr/include/string.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of string_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of string_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of string_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_STRING_H=$header_pathname
HAVE_STRING_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(string.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_STRING_H
  PATH_HEADER=$PATH_STRING_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STRING_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STRING_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STRING_H"
  cat > $UPCR_INCLUDE_NEXT_STRING_H <<EOF

      #if $HAVE_HEADER
         #include_next <string.h>
         #include_next <string.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STRING_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STRING_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STRING_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STRING_H"
  cat > $UPCR_INCLUDE_NEXT_STRING_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STRING_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(stdlib.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



for ac_header in stdlib.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_stdlib_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of stdlib.h" >&5
echo $ECHO_N "checking for location of stdlib.h... $ECHO_C" >&6
  echo "#include <stdlib.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep stdlib.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep stdlib.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/stdlib.h; then
        header_pathname="\"/usr/include/stdlib.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of stdlib_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of stdlib_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of stdlib_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_STDLIB_H=$header_pathname
HAVE_STDLIB_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(stdlib.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_STDLIB_H
  PATH_HEADER=$PATH_STDLIB_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDLIB_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STDLIB_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STDLIB_H"
  cat > $UPCR_INCLUDE_NEXT_STDLIB_H <<EOF

      #if $HAVE_HEADER
         #include_next <stdlib.h>
         #include_next <stdlib.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDLIB_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDLIB_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STDLIB_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STDLIB_H"
  cat > $UPCR_INCLUDE_NEXT_STDLIB_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDLIB_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(stdio.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



for ac_header in stdio.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_stdio_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of stdio.h" >&5
echo $ECHO_N "checking for location of stdio.h... $ECHO_C" >&6
  echo "#include <stdio.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep stdio.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep stdio.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/stdio.h; then
        header_pathname="\"/usr/include/stdio.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of stdio_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of stdio_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of stdio_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_STDIO_H=$header_pathname
HAVE_STDIO_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(stdio.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_STDIO_H
  PATH_HEADER=$PATH_STDIO_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDIO_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STDIO_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STDIO_H"
  cat > $UPCR_INCLUDE_NEXT_STDIO_H <<EOF

      #if $HAVE_HEADER
         #include_next <stdio.h>
         #include_next <stdio.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDIO_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDIO_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STDIO_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STDIO_H"
  cat > $UPCR_INCLUDE_NEXT_STDIO_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDIO_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(stddef.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



for ac_header in stddef.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_stddef_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of stddef.h" >&5
echo $ECHO_N "checking for location of stddef.h... $ECHO_C" >&6
  echo "#include <stddef.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep stddef.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep stddef.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/stddef.h; then
        header_pathname="\"/usr/include/stddef.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of stddef_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of stddef_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of stddef_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_STDDEF_H=$header_pathname
HAVE_STDDEF_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(stddef.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_STDDEF_H
  PATH_HEADER=$PATH_STDDEF_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDDEF_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STDDEF_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STDDEF_H"
  cat > $UPCR_INCLUDE_NEXT_STDDEF_H <<EOF

      #if $HAVE_HEADER
         #include_next <stddef.h>
         #include_next <stddef.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDDEF_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDDEF_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STDDEF_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STDDEF_H"
  cat > $UPCR_INCLUDE_NEXT_STDDEF_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDDEF_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(stdbool.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



for ac_header in stdbool.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_stdbool_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of stdbool.h" >&5
echo $ECHO_N "checking for location of stdbool.h... $ECHO_C" >&6
  echo "#include <stdbool.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep stdbool.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep stdbool.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/stdbool.h; then
        header_pathname="\"/usr/include/stdbool.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of stdbool_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of stdbool_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of stdbool_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_STDBOOL_H=$header_pathname
HAVE_STDBOOL_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(stdbool.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_STDBOOL_H
  PATH_HEADER=$PATH_STDBOOL_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDBOOL_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STDBOOL_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STDBOOL_H"
  cat > $UPCR_INCLUDE_NEXT_STDBOOL_H <<EOF

      #if $HAVE_HEADER
         #include_next <stdbool.h>
         #include_next <stdbool.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDBOOL_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDBOOL_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STDBOOL_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STDBOOL_H"
  cat > $UPCR_INCLUDE_NEXT_STDBOOL_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDBOOL_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(stdarg.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



for ac_header in stdarg.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_stdarg_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of stdarg.h" >&5
echo $ECHO_N "checking for location of stdarg.h... $ECHO_C" >&6
  echo "#include <stdarg.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep stdarg.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep stdarg.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/stdarg.h; then
        header_pathname="\"/usr/include/stdarg.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of stdarg_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of stdarg_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of stdarg_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_STDARG_H=$header_pathname
HAVE_STDARG_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(stdarg.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_STDARG_H
  PATH_HEADER=$PATH_STDARG_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDARG_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STDARG_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STDARG_H"
  cat > $UPCR_INCLUDE_NEXT_STDARG_H <<EOF

      #if $HAVE_HEADER
         #include_next <stdarg.h>
         #include_next <stdarg.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDARG_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDARG_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_STDARG_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_STDARG_H"
  cat > $UPCR_INCLUDE_NEXT_STDARG_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_STDARG_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(inttypes.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



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



if test "$ac_cv_header_inttypes_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of inttypes.h" >&5
echo $ECHO_N "checking for location of inttypes.h... $ECHO_C" >&6
  echo "#include <inttypes.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep inttypes.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep inttypes.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/inttypes.h; then
        header_pathname="\"/usr/include/inttypes.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of inttypes_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of inttypes_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of inttypes_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_INTTYPES_H=$header_pathname
HAVE_INTTYPES_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(inttypes.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_INTTYPES_H
  PATH_HEADER=$PATH_INTTYPES_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_INTTYPES_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_INTTYPES_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_INTTYPES_H"
  cat > $UPCR_INCLUDE_NEXT_INTTYPES_H <<EOF

      #if $HAVE_HEADER
         #include_next <inttypes.h>
         #include_next <inttypes.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_INTTYPES_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_INTTYPES_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_INTTYPES_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_INTTYPES_H"
  cat > $UPCR_INCLUDE_NEXT_INTTYPES_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_INTTYPES_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(limits.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



for ac_header in limits.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_limits_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of limits.h" >&5
echo $ECHO_N "checking for location of limits.h... $ECHO_C" >&6
  echo "#include <limits.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep limits.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep limits.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/limits.h; then
        header_pathname="\"/usr/include/limits.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of limits_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of limits_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of limits_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_LIMITS_H=$header_pathname
HAVE_LIMITS_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(limits.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_LIMITS_H
  PATH_HEADER=$PATH_LIMITS_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_LIMITS_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_LIMITS_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_LIMITS_H"
  cat > $UPCR_INCLUDE_NEXT_LIMITS_H <<EOF

      #if $HAVE_HEADER
         #include_next <limits.h>
         #include_next <limits.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_LIMITS_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_LIMITS_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_LIMITS_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_LIMITS_H"
  cat > $UPCR_INCLUDE_NEXT_LIMITS_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_LIMITS_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(math.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



for ac_header in math.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_math_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of math.h" >&5
echo $ECHO_N "checking for location of math.h... $ECHO_C" >&6
  echo "#include <math.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep math.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep math.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/math.h; then
        header_pathname="\"/usr/include/math.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of math_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of math_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of math_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_MATH_H=$header_pathname
HAVE_MATH_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(math.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_MATH_H
  PATH_HEADER=$PATH_MATH_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_MATH_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_MATH_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_MATH_H"
  cat > $UPCR_INCLUDE_NEXT_MATH_H <<EOF

      #if $HAVE_HEADER
         #include_next <math.h>
         #include_next <math.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_MATH_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_MATH_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_MATH_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_MATH_H"
  cat > $UPCR_INCLUDE_NEXT_MATH_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_MATH_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(time.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



for ac_header in time.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_time_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of time.h" >&5
echo $ECHO_N "checking for location of time.h... $ECHO_C" >&6
  echo "#include <time.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep time.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep time.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/time.h; then
        header_pathname="\"/usr/include/time.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of time_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of time_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of time_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_TIME_H=$header_pathname
HAVE_TIME_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(time.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_TIME_H
  PATH_HEADER=$PATH_TIME_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_TIME_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_TIME_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_TIME_H"
  cat > $UPCR_INCLUDE_NEXT_TIME_H <<EOF

      #if $HAVE_HEADER
         #include_next <time.h>
         #include_next <time.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_TIME_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_TIME_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_TIME_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_TIME_H"
  cat > $UPCR_INCLUDE_NEXT_TIME_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_TIME_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIND_HEADER(sys/stat.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)



for ac_header in sys/stat.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_sys_stat_h" = "yes"; then
  echo "$as_me:$LINENO: checking for location of sys/stat.h" >&5
echo $ECHO_N "checking for location of sys/stat.h... $ECHO_C" >&6
  echo "#include <sys/stat.h>" > conftest.c
  header_pathname=
  if test "$GASNET_FIND_HEADER_CPP"; then
    echo "$GASNET_FIND_HEADER_CPP conftest.c" >&5
    header_pathname=`$GASNET_FIND_HEADER_CPP conftest.c 2>&5 | grep sys/stat.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    echo "$CPP conftest.c" >&5
    header_pathname=`$CPP conftest.c 2>&5 | grep sys/stat.h | head -1`
    header_pathname=`echo $header_pathname | $AWK '{ printf("%s",$3); }'`
  fi
  if test -z "$header_pathname"; then
    # IBM xlc doesn't always emit include file name in output: try /usr/include
    if test -r /usr/include/sys/stat.h; then
        header_pathname="\"/usr/include/sys/stat.h\""
    fi
  fi
  if test -z "$header_pathname"; then
    echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2)

  { echo "$as_me:$LINENO: WARNING: Unable to detect pathname of sys_stat_h - pretending it doesn't exist" >&5
echo "$as_me: WARNING: Unable to detect pathname of sys_stat_h - pretending it doesn't exist" >&2;}
  echo "Unable to detect pathname of sys_stat_h - pretending it doesn't exist" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




    have=0
  else
    echo "$as_me:$LINENO: result: $header_pathname" >&5
echo "${ECHO_T}$header_pathname" >&6
    have=1
  fi
else
  header_pathname=
  have=0
fi
PATH_SYS_STAT_H=$header_pathname
HAVE_SYS_STAT_H=$have





# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIND_HEADER(sys/stat.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  HAVE_HEADER=$HAVE_SYS_STAT_H
  PATH_HEADER=$PATH_SYS_STAT_H
  if test "$HAVE_CPP_INCLUDE_NEXT" = "1" ; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_SYS_STAT_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_SYS_STAT_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_SYS_STAT_H"
  cat > $UPCR_INCLUDE_NEXT_SYS_STAT_H <<EOF

      #if $HAVE_HEADER
         #include_next <sys/stat.h>
         #include_next <sys/stat.h>
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_SYS_STAT_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_SYS_STAT_H,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  mkdir -p "$TOP_BUILDDIR/.subst_text"
  UPCR_INCLUDE_NEXT_SYS_STAT_H="$TOP_BUILDDIR/.subst_text/UPCR_INCLUDE_NEXT_SYS_STAT_H"
  cat > $UPCR_INCLUDE_NEXT_SYS_STAT_H <<EOF

      #ifdef __SUNPRO_C
        #pragma error_messages(off, E_INC_USR_INC_MAY_NOT_PORTABLE)
      #endif
      #if $HAVE_HEADER
         #include $PATH_HEADER
         #include $PATH_HEADER
      #endif

EOF


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBST_TEXT(UPCR_INCLUDE_NEXT_SYS_STAT_H,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



  fi
  echo '#line 1 "'"$PATH_HEADER"'"' >> $SYSHDR_FILE
  echo 'extern int x;' >> $SYSHDR_FILE



echo "$as_me:$LINENO: checking for system header directories" >&5
echo $ECHO_N "checking for system header directories... $ECHO_C" >&6
touch upcr_config.h
cat $TOP_SRCDIR/upcr_syshdrs.h >> $SYSHDR_FILE
echo "${GASNET_FIND_HEADER_CPP:-$CPP} -I. -I$TOP_SRCDIR/gasnet/other $SYSHDR_FILE > $SYSHDR_FILE.tmp" >&5
      ${GASNET_FIND_HEADER_CPP:-$CPP} -I. -I$TOP_SRCDIR/gasnet/other $SYSHDR_FILE > $SYSHDR_FILE.tmp 2>&5
$PERL -n -e '{ if (m|^#(?:line)?\s*[0-9]+\s*"(/.*)/[^/]+"|) { $dirs{$1} = 1; } } END { my @dirs = (keys %dirs); delete @dirs{(map {my $x = $_; grep (m|^$x/|, @dirs);} @dirs)}; delete @dirs{"'"$TOP_SRCDIR/gasnet/other"'"}; print join(":", (keys %dirs)); }' $SYSHDR_FILE.tmp > $SYSHDR_FILE.out 2>&5
SYSTEM_HEADER_DIRS=`cat $SYSHDR_FILE.out`
if test -z "$SYSTEM_HEADER_DIRS" ; then
  SYSTEM_HEADER_DIRS='/usr/include'




# vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1)

  { echo "$as_me:$LINENO: WARNING: Failed to auto-detect SYSTEM_HEADER_DIRS - using $SYSTEM_HEADER_DIRS" >&5
echo "$as_me: WARNING: Failed to auto-detect SYSTEM_HEADER_DIRS - using $SYSTEM_HEADER_DIRS" >&2;}
  echo "Failed to auto-detect SYSTEM_HEADER_DIRS - using $SYSTEM_HEADER_DIRS" >> .upcr_cv_configure_warnings.tmp
  echo " " >> .upcr_cv_configure_warnings.tmp

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




fi
echo "$as_me:$LINENO: result: $SYSTEM_HEADER_DIRS" >&5
echo "${ECHO_T}$SYSTEM_HEADER_DIRS" >&6

rm -f $SYSHDR_FILE*

echo "$as_me:$LINENO: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+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 ((off_t *) 0)
  return 0;
if (sizeof (off_t))
  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_off_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_off_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test $ac_cv_type_off_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define off_t long
_ACEOF

fi

echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+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 ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  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_size_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_size_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned
_ACEOF

fi

echo "$as_me:$LINENO: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+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 ((pid_t *) 0)
  return 0;
if (sizeof (pid_t))
  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_pid_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

ac_cv_type_pid_t=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test $ac_cv_type_pid_t = yes; then
  :
else

cat >>confdefs.h <<_ACEOF
#define pid_t int
_ACEOF

fi

echo "$as_me:$LINENO: checking return type of signal handlers" >&5
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
if test "${ac_cv_type_signal+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>
#include <signal.h>
#ifdef signal
# undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int
main ()
{
int i;
  ;
  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_signal=void
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

cat >>confdefs.h <<_ACEOF
#define RETSIGTYPE $ac_cv_type_signal
_ACEOF



if test "$ac_cv_header_stddef_h" = "yes" ; then
      echo "#include <stddef.h>" >> confdefs.h
fi

# setup_inttypes() takes care of most of them, but we also need a couple others
# - note: normally we'd get this info from gasnet_config.h, but Totalview
# doesn't see it, so we need to dupe it here.



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

upcr_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;}'
   upcr_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 "$upcr_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;}'
   upcr_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: $upcr_cv_SIZEOF_CHAR" >&5
echo "${ECHO_T}$upcr_cv_SIZEOF_CHAR" >&6
if test -n "$upcr_cv_SIZEOF_CHAR" ; then
  SIZEOF_CHAR=$upcr_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 "${upcr_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
	      upcr_cv_envvar_CROSS_SIZEOF_CHAR="$with_cross_sizeof_char"
	      envval_src_CROSS_SIZEOF_CHAR=given
	    else
	      upcr_cv_envvar_CROSS_SIZEOF_CHAR=""
	      envval_src_CROSS_SIZEOF_CHAR=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_SIZEOF_CHAR="$CROSS_SIZEOF_CHAR"
	    envval_src_CROSS_SIZEOF_CHAR=given
      esac

fi


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

upcr_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;}'
   upcr_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 "$upcr_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;}'
   upcr_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: $upcr_cv_SIZEOF_SHORT" >&5
echo "${ECHO_T}$upcr_cv_SIZEOF_SHORT" >&6
if test -n "$upcr_cv_SIZEOF_SHORT" ; then
  SIZEOF_SHORT=$upcr_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 "${upcr_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
	      upcr_cv_envvar_CROSS_SIZEOF_SHORT="$with_cross_sizeof_short"
	      envval_src_CROSS_SIZEOF_SHORT=given
	    else
	      upcr_cv_envvar_CROSS_SIZEOF_SHORT=""
	      envval_src_CROSS_SIZEOF_SHORT=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_SIZEOF_SHORT="$CROSS_SIZEOF_SHORT"
	    envval_src_CROSS_SIZEOF_SHORT=given
      esac

fi


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

upcr_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;}'
   upcr_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 "$upcr_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;}'
   upcr_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: $upcr_cv_SIZEOF_INT" >&5
echo "${ECHO_T}$upcr_cv_SIZEOF_INT" >&6
if test -n "$upcr_cv_SIZEOF_INT" ; then
  SIZEOF_INT=$upcr_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 "${upcr_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
	      upcr_cv_envvar_CROSS_SIZEOF_INT="$with_cross_sizeof_int"
	      envval_src_CROSS_SIZEOF_INT=given
	    else
	      upcr_cv_envvar_CROSS_SIZEOF_INT=""
	      envval_src_CROSS_SIZEOF_INT=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_SIZEOF_INT="$CROSS_SIZEOF_INT"
	    envval_src_CROSS_SIZEOF_INT=given
      esac

fi


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

upcr_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;}'
   upcr_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 "$upcr_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;}'
   upcr_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: $upcr_cv_SIZEOF_LONG" >&5
echo "${ECHO_T}$upcr_cv_SIZEOF_LONG" >&6
if test -n "$upcr_cv_SIZEOF_LONG" ; then
  SIZEOF_LONG=$upcr_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 "${upcr_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
	      upcr_cv_envvar_CROSS_SIZEOF_LONG="$with_cross_sizeof_long"
	      envval_src_CROSS_SIZEOF_LONG=given
	    else
	      upcr_cv_envvar_CROSS_SIZEOF_LONG=""
	      envval_src_CROSS_SIZEOF_LONG=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_SIZEOF_LONG="$CROSS_SIZEOF_LONG"
	    envval_src_CROSS_SIZEOF_LONG=given
      esac

fi


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

upcr_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;}'
   upcr_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 "$upcr_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;}'
   upcr_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: $upcr_cv_SIZEOF_LONG_LONG" >&5
echo "${ECHO_T}$upcr_cv_SIZEOF_LONG_LONG" >&6
if test -n "$upcr_cv_SIZEOF_LONG_LONG" ; then
  SIZEOF_LONG_LONG=$upcr_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 "${upcr_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
	      upcr_cv_envvar_CROSS_SIZEOF_LONG_LONG="$with_cross_sizeof_long_long"
	      envval_src_CROSS_SIZEOF_LONG_LONG=given
	    else
	      upcr_cv_envvar_CROSS_SIZEOF_LONG_LONG=""
	      envval_src_CROSS_SIZEOF_LONG_LONG=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_SIZEOF_LONG_LONG="$CROSS_SIZEOF_LONG_LONG"
	    envval_src_CROSS_SIZEOF_LONG_LONG=given
      esac

fi


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

upcr_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;}'
   upcr_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 "$upcr_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;}'
   upcr_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: $upcr_cv_SIZEOF_VOID_P" >&5
echo "${ECHO_T}$upcr_cv_SIZEOF_VOID_P" >&6
if test -n "$upcr_cv_SIZEOF_VOID_P" ; then
  SIZEOF_VOID_P=$upcr_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 "${upcr_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
	      upcr_cv_envvar_CROSS_SIZEOF_VOID_P="$with_cross_sizeof_void_p"
	      envval_src_CROSS_SIZEOF_VOID_P=given
	    else
	      upcr_cv_envvar_CROSS_SIZEOF_VOID_P=""
	      envval_src_CROSS_SIZEOF_VOID_P=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_SIZEOF_VOID_P="$CROSS_SIZEOF_VOID_P"
	    envval_src_CROSS_SIZEOF_VOID_P=given
      esac

fi


  CROSS_SIZEOF_VOID_P="$upcr_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 "${upcr_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
  upcr_cv_COMPLETE_STDINT_H=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

upcr_cv_COMPLETE_STDINT_H=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $upcr_cv_COMPLETE_STDINT_H" >&5
echo "${ECHO_T}$upcr_cv_COMPLETE_STDINT_H" >&6
if test "$upcr_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 "${upcr_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
  upcr_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 )
upcr_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: $upcr_cv_COMPLETE_STDINT_H" >&5
echo "${ECHO_T}$upcr_cv_COMPLETE_STDINT_H" >&6
if test "$upcr_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 "${upcr_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
  upcr_cv_COMPLETE_INTTYPES_H=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

upcr_cv_COMPLETE_INTTYPES_H=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $upcr_cv_COMPLETE_INTTYPES_H" >&5
echo "${ECHO_T}$upcr_cv_COMPLETE_INTTYPES_H" >&6
if test "$upcr_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 "${upcr_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
  upcr_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 )
upcr_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: $upcr_cv_COMPLETE_INTTYPES_H" >&5
echo "${ECHO_T}$upcr_cv_COMPLETE_INTTYPES_H" >&6
if test "$upcr_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 "${upcr_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
  upcr_cv_COMPLETE_SYS_TYPES_H=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

upcr_cv_COMPLETE_SYS_TYPES_H=no
fi
rm -f conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $upcr_cv_COMPLETE_SYS_TYPES_H" >&5
echo "${ECHO_T}$upcr_cv_COMPLETE_SYS_TYPES_H" >&6
if test "$upcr_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 "${upcr_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
  upcr_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 )
upcr_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: $upcr_cv_COMPLETE_SYS_TYPES_H" >&5
echo "${ECHO_T}$upcr_cv_COMPLETE_SYS_TYPES_H" >&6
if test "$upcr_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)



#GASNET_CHECK_SIZEOF(void *) # already handled above



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_SIZEOF(ptrdiff_t,) vvvvvvvvvvvvvvvvvvvvvv (L:1)






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




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(ptrdiff_t) (binary probe),SIZEOF_PTRDIFF_T,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

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

upcr_cv_SIZEOF_PTRDIFF_T=""





# 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(ptrdiff_t))>0?(sizeof(ptrdiff_t)):-(sizeof(ptrdiff_t))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(ptrdiff_t))>=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;}'
   upcr_cv_SIZEOF_PTRDIFF_T=`$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(ptrdiff_t)" >&5
echo "$as_me: error: Failed while compile extracting sizeof(ptrdiff_t)" >&2;}
   { (exit 1); exit 1; }; }
  fi

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



if test -z "$upcr_cv_SIZEOF_PTRDIFF_T" ; 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(ptrdiff_t))>0?(sizeof(ptrdiff_t)):-(sizeof(ptrdiff_t))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(ptrdiff_t))>=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;}'
   upcr_cv_SIZEOF_PTRDIFF_T=`$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(ptrdiff_t)" >&5
echo "$as_me: error: Failed while link extracting sizeof(ptrdiff_t)" >&2;}
   { (exit 1); exit 1; }; }
  fi

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



fi



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

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(ptrdiff_t) (binary probe),SIZEOF_PTRDIFF_T,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



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



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


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



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




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



# Check whether --with-cross-sizeof-ptrdiff-t or --without-cross-sizeof-ptrdiff-t was given.
if test "${with_cross_sizeof_ptrdiff_t+set}" = set; then
  withval="$with_cross_sizeof_ptrdiff_t"

fi;



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

      case "${CROSS_SIZEOF_PTRDIFF_T-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_sizeof_ptrdiff_t" != ""; then
	      upcr_cv_envvar_CROSS_SIZEOF_PTRDIFF_T="$with_cross_sizeof_ptrdiff_t"
	      envval_src_CROSS_SIZEOF_PTRDIFF_T=given
	    else
	      upcr_cv_envvar_CROSS_SIZEOF_PTRDIFF_T=""
	      envval_src_CROSS_SIZEOF_PTRDIFF_T=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_SIZEOF_PTRDIFF_T="$CROSS_SIZEOF_PTRDIFF_T"
	    envval_src_CROSS_SIZEOF_PTRDIFF_T=given
      esac

fi


  CROSS_SIZEOF_PTRDIFF_T="$upcr_cv_envvar_CROSS_SIZEOF_PTRDIFF_T"
  case "$envval_src_CROSS_SIZEOF_PTRDIFF_T" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_PTRDIFF_T\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_SIZEOF_PTRDIFF_T\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_PTRDIFF_T\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_SIZEOF_PTRDIFF_T\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_PTRDIFF_T\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_SIZEOF_PTRDIFF_T\"" >&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_PTRDIFF_T,) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



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


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



    fi
    ac_cv_sizeof_ptrdiff_t=$SIZEOF_PTRDIFF_T
  fi



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

    if test "$_pushcnt_ac_cv_sizeof_ptrdiff_t" = "" ; then
    _pushcnt_ac_cv_sizeof_ptrdiff_t=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_sizeof_ptrdiff_t_$_pushcnt_ac_cv_sizeof_ptrdiff_t=\$ac_cv_sizeof_ptrdiff_t
  eval _pushedvarset_ac_cv_sizeof_ptrdiff_t_$_pushcnt_ac_cv_sizeof_ptrdiff_t=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_sizeof_ptrdiff_t=`expr $_pushcnt_ac_cv_sizeof_ptrdiff_t + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_sizeof_ptrdiff_t="$ac_cv_sizeof_ptrdiff_t"
  echo "pushed new ac_cv_sizeof_ptrdiff_t value: $ac_cv_sizeof_ptrdiff_t" >&5

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



  if test "$ac_cv_sizeof_ptrdiff_t" = "" ; then
    unset ac_cv_sizeof_ptrdiff_t
    unset ac_cv_type_ptrdiff_t
  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 ptrdiff_t" >&5
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
if test "${ac_cv_type_ptrdiff_t+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 ((ptrdiff_t *) 0)
  return 0;
if (sizeof (ptrdiff_t))
  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_ptrdiff_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6
if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_ptrdiff_t" = 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 (ptrdiff_t))) >= 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 (ptrdiff_t))) <= $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 (ptrdiff_t))) < 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 (ptrdiff_t))) >= $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 (ptrdiff_t))) <= $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_ptrdiff_t=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 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 (ptrdiff_t)); }
unsigned long ulongval () { return (long) (sizeof (ptrdiff_t)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (ptrdiff_t))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (ptrdiff_t))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (ptrdiff_t))))
	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_ptrdiff_t=`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 (ptrdiff_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 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_ptrdiff_t=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
_ACEOF


  gasnet_checksizeoftmp_sizeof_ptrdiff_t="$ac_cv_sizeof_ptrdiff_t"



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

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

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



  ac_cv_sizeof_ptrdiff_t=$gasnet_checksizeoftmp_sizeof_ptrdiff_t
  SIZEOF_PTRDIFF_T=$gasnet_checksizeoftmp_sizeof_ptrdiff_t
  if test "$SIZEOF_PTRDIFF_T" = "0" -o "$SIZEOF_PTRDIFF_T" = "" -o "$ac_cv_sizeof_ptrdiff_t" != "$SIZEOF_PTRDIFF_T"; then
    { { echo "$as_me:$LINENO: error: failed to find sizeof(ptrdiff_t)" >&5
echo "$as_me: error: failed to find sizeof(ptrdiff_t)" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if test "" != ""; then
                    ac_cv_SIZEOF_PTRDIFF_T_indirect=SIZEOF_PTRDIFF_T
        cat >>confdefs.h <<_ACEOF
#define $ac_cv_SIZEOF_PTRDIFF_T_indirect $SIZEOF_PTRDIFF_T
_ACEOF

  fi







# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_SIZEOF(ptrdiff_t,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_SIZEOF(size_t,) vvvvvvvvvvvvvvvvvvvvvv (L:1)






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




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(size_t) (binary probe),SIZEOF_SIZE_T,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

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

upcr_cv_SIZEOF_SIZE_T=""





# 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(size_t))>0?(sizeof(size_t)):-(sizeof(size_t))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(size_t))>=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;}'
   upcr_cv_SIZEOF_SIZE_T=`$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(size_t)" >&5
echo "$as_me: error: Failed while compile extracting sizeof(size_t)" >&2;}
   { (exit 1); exit 1; }; }
  fi

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



if test -z "$upcr_cv_SIZEOF_SIZE_T" ; 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(size_t))>0?(sizeof(size_t)):-(sizeof(size_t))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((sizeof(size_t))>=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;}'
   upcr_cv_SIZEOF_SIZE_T=`$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(size_t)" >&5
echo "$as_me: error: Failed while link extracting sizeof(size_t)" >&2;}
   { (exit 1); exit 1; }; }
  fi

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



fi



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

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(size_t) (binary probe),SIZEOF_SIZE_T,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



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



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


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



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




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



# Check whether --with-cross-sizeof-size-t or --without-cross-sizeof-size-t was given.
if test "${with_cross_sizeof_size_t+set}" = set; then
  withval="$with_cross_sizeof_size_t"

fi;



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

      case "${CROSS_SIZEOF_SIZE_T-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_sizeof_size_t" != ""; then
	      upcr_cv_envvar_CROSS_SIZEOF_SIZE_T="$with_cross_sizeof_size_t"
	      envval_src_CROSS_SIZEOF_SIZE_T=given
	    else
	      upcr_cv_envvar_CROSS_SIZEOF_SIZE_T=""
	      envval_src_CROSS_SIZEOF_SIZE_T=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_SIZEOF_SIZE_T="$CROSS_SIZEOF_SIZE_T"
	    envval_src_CROSS_SIZEOF_SIZE_T=given
      esac

fi


  CROSS_SIZEOF_SIZE_T="$upcr_cv_envvar_CROSS_SIZEOF_SIZE_T"
  case "$envval_src_CROSS_SIZEOF_SIZE_T" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_SIZE_T\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_SIZEOF_SIZE_T\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_SIZE_T\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_SIZEOF_SIZE_T\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_SIZE_T\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_SIZEOF_SIZE_T\"" >&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_SIZE_T,) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



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


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



    fi
    ac_cv_sizeof_size_t=$SIZEOF_SIZE_T
  fi



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

    if test "$_pushcnt_ac_cv_sizeof_size_t" = "" ; then
    _pushcnt_ac_cv_sizeof_size_t=0
  fi
  if test "$_total_pushcnt" = "" ; then
    _total_pushcnt=0
  fi
  if test "${ac_cv_sizeof_size_t+set}" = set; then
   _gasnet_pushvar_isset=1
  else
   _gasnet_pushvar_isset=0
  fi
  eval _pushedvar_ac_cv_sizeof_size_t_$_pushcnt_ac_cv_sizeof_size_t=\$ac_cv_sizeof_size_t
  eval _pushedvarset_ac_cv_sizeof_size_t_$_pushcnt_ac_cv_sizeof_size_t=$_gasnet_pushvar_isset
  _pushcnt_ac_cv_sizeof_size_t=`expr $_pushcnt_ac_cv_sizeof_size_t + 1`
  _total_pushcnt=`expr $_total_pushcnt + 1`
  ac_cv_sizeof_size_t="$ac_cv_sizeof_size_t"
  echo "pushed new ac_cv_sizeof_size_t value: $ac_cv_sizeof_size_t" >&5

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



  if test "$ac_cv_sizeof_size_t" = "" ; then
    unset ac_cv_sizeof_size_t
    unset ac_cv_type_size_t
  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 size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+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 ((size_t *) 0)
  return 0;
if (sizeof (size_t))
  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_size_t=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

echo "$as_me:$LINENO: checking size of size_t" >&5
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
if test "${ac_cv_sizeof_size_t+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$ac_cv_type_size_t" = 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 (size_t))) >= 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 (size_t))) <= $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 (size_t))) < 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 (size_t))) >= $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 (size_t))) <= $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_size_t=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (size_t), 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 (size_t)); }
unsigned long ulongval () { return (long) (sizeof (size_t)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    exit (1);
  if (((long) (sizeof (size_t))) < 0)
    {
      long i = longval ();
      if (i != ((long) (sizeof (size_t))))
	exit (1);
      fprintf (f, "%ld\n", i);
    }
  else
    {
      unsigned long i = ulongval ();
      if (i != ((long) (sizeof (size_t))))
	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_size_t=`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 (size_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (size_t), 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_size_t=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
_ACEOF


  gasnet_checksizeoftmp_sizeof_size_t="$ac_cv_sizeof_size_t"



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

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

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



  ac_cv_sizeof_size_t=$gasnet_checksizeoftmp_sizeof_size_t
  SIZEOF_SIZE_T=$gasnet_checksizeoftmp_sizeof_size_t
  if test "$SIZEOF_SIZE_T" = "0" -o "$SIZEOF_SIZE_T" = "" -o "$ac_cv_sizeof_size_t" != "$SIZEOF_SIZE_T"; then
    { { echo "$as_me:$LINENO: error: failed to find sizeof(size_t)" >&5
echo "$as_me: error: failed to find sizeof(size_t)" >&2;}
   { (exit 1); exit 1; }; }
  fi
  if test "" != ""; then
                    ac_cv_SIZEOF_SIZE_T_indirect=SIZEOF_SIZE_T
        cat >>confdefs.h <<_ACEOF
#define $ac_cv_SIZEOF_SIZE_T_indirect $SIZEOF_SIZE_T
_ACEOF

  fi







# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_SIZEOF(size_t,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




echo "$as_me:$LINENO: checking whether char is signed" >&5
echo $ECHO_N "checking whether char is signed... $ECHO_C" >&6
if test "$cross_compiling" = yes; then




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(whether char is signed (binary probe),CHAR_IS_SIGNED,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking whether char is signed (binary probe)" >&5
echo $ECHO_N "checking whether char is signed (binary probe)... $ECHO_C" >&6
if test "${upcr_cv_CHAR_IS_SIGNED+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

upcr_cv_CHAR_IS_SIGNED=""





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

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


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( (((((char)(int)-5) > 0 ? 0 : 1))>0?((((char)(int)-5) > 0 ? 0 : 1)):-((((char)(int)-5) > 0 ? 0 : 1))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             (((((char)(int)-5) > 0 ? 0 : 1))>=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;}'
   upcr_cv_CHAR_IS_SIGNED=`$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 (((char)(int)-5) > 0 ? 0 : 1)" >&5
echo "$as_me: error: Failed while compile extracting (((char)(int)-5) > 0 ? 0 : 1)" >&2;}
   { (exit 1); exit 1; }; }
  fi

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



if test -z "$upcr_cv_CHAR_IS_SIGNED" ; then



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

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


 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( (((((char)(int)-5) > 0 ? 0 : 1))>0?((((char)(int)-5) > 0 ? 0 : 1)):-((((char)(int)-5) > 0 ? 0 : 1))) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             (((((char)(int)-5) > 0 ? 0 : 1))>=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;}'
   upcr_cv_CHAR_IS_SIGNED=`$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 (((char)(int)-5) > 0 ? 0 : 1)" >&5
echo "$as_me: error: Failed while link extracting (((char)(int)-5) > 0 ? 0 : 1)" >&2;}
   { (exit 1); exit 1; }; }
  fi

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



fi



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

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(whether char is signed (binary probe),CHAR_IS_SIGNED,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



       if test -z "$CHAR_IS_SIGNED"; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(CHAR_IS_SIGNED,CHAR_IS_SIGNED) vvvvvvvvvvvvvvvvvvvvvv (L:1)


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



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_CHAR_IS_SIGNED,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




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



# Check whether --with-cross-char-is-signed or --without-cross-char-is-signed was given.
if test "${with_cross_char_is_signed+set}" = set; then
  withval="$with_cross_char_is_signed"

fi;



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

      case "${CROSS_CHAR_IS_SIGNED-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_char_is_signed" != ""; then
	      upcr_cv_envvar_CROSS_CHAR_IS_SIGNED="$with_cross_char_is_signed"
	      envval_src_CROSS_CHAR_IS_SIGNED=given
	    else
	      upcr_cv_envvar_CROSS_CHAR_IS_SIGNED=""
	      envval_src_CROSS_CHAR_IS_SIGNED=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_CHAR_IS_SIGNED="$CROSS_CHAR_IS_SIGNED"
	    envval_src_CROSS_CHAR_IS_SIGNED=given
      esac

fi


  CROSS_CHAR_IS_SIGNED="$upcr_cv_envvar_CROSS_CHAR_IS_SIGNED"
  case "$envval_src_CROSS_CHAR_IS_SIGNED" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_CHAR_IS_SIGNED\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_CHAR_IS_SIGNED\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_CHAR_IS_SIGNED\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_CHAR_IS_SIGNED\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_CHAR_IS_SIGNED\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_CHAR_IS_SIGNED\"" >&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_CHAR_IS_SIGNED,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



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


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CROSS_VAR(CHAR_IS_SIGNED,CHAR_IS_SIGNED) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)



       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.  */

  int main() {
    char c = (char)(int)-5;
    if (c > 0) return 0;
    else return 1;
  }
_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
   CHAR_IS_SIGNED=0
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 )
 CHAR_IS_SIGNED=1
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
if test "$CHAR_IS_SIGNED" = 0; then
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
else
  echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
fi


echo "$as_me:$LINENO: checking for direction of stack growth" >&5
echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6
if test "$cross_compiling" = yes; then



# vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(STACK_GROWS_UP,STACK_GROWS_UP) vvvvvvvvvvvvvvvvvvvvvv (L:1)


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



# vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_STACK_GROWS_UP,) vvvvvvvvvvvvvvvvvvvvvv (L:2)




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



# Check whether --with-cross-stack-grows-up or --without-cross-stack-grows-up was given.
if test "${with_cross_stack_grows_up+set}" = set; then
  withval="$with_cross_stack_grows_up"

fi;



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

      case "${CROSS_STACK_GROWS_UP-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_stack_grows_up" != ""; then
	      upcr_cv_envvar_CROSS_STACK_GROWS_UP="$with_cross_stack_grows_up"
	      envval_src_CROSS_STACK_GROWS_UP=given
	    else
	      upcr_cv_envvar_CROSS_STACK_GROWS_UP=""
	      envval_src_CROSS_STACK_GROWS_UP=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_STACK_GROWS_UP="$CROSS_STACK_GROWS_UP"
	    envval_src_CROSS_STACK_GROWS_UP=given
      esac

fi


  CROSS_STACK_GROWS_UP="$upcr_cv_envvar_CROSS_STACK_GROWS_UP"
  case "$envval_src_CROSS_STACK_GROWS_UP" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_STACK_GROWS_UP\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_STACK_GROWS_UP\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_STACK_GROWS_UP\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_STACK_GROWS_UP\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_STACK_GROWS_UP\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_STACK_GROWS_UP\"" >&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_STACK_GROWS_UP,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



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


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CROSS_VAR(STACK_GROWS_UP,STACK_GROWS_UP) ^^^^^^^^^^^^^^^^^^^^^^ (L: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 foo(int *p, int x) {
    int local = 1;
    if (x < 100) return foo(p,x+1);
    else if (&local > p) return 1;
    else return 0;
  }
  int main() {
    int local = 1;
    return foo(&local, 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
   STACK_GROWS_UP=0
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 )
 STACK_GROWS_UP=1
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
if test "$STACK_GROWS_UP" = "0" ; then
  echo "$as_me:$LINENO: result: down" >&5
echo "${ECHO_T}down" >&6
else
  cat >>confdefs.h <<\_ACEOF
#define UPCRI_STACK_GROWS_UP 1
_ACEOF

  echo "$as_me:$LINENO: result: up" >&5
echo "${ECHO_T}up" >&6
fi

echo "$as_me:$LINENO: checking for attribute(cleanup)" >&5
echo $ECHO_N "checking for attribute(cleanup)... $ECHO_C" >&6
if test "$cross_compiling" = yes; then
   ATTRIBUTE_CLEANUP=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 result = 3;
  int *addr;
  void clean(int *pi) {
    if (pi != addr) result = 1;
    else if (*pi != 1) result = 2;
    else result = 0;
  }
  int foo() {
    int local  __attribute__((cleanup(clean))) = 1;
    addr = &local;
  }
  int main() {
    foo();
    return result;
  }
_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
   ATTRIBUTE_CLEANUP=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 )
 ATTRIBUTE_CLEANUP=0
fi
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
if test "$ATTRIBUTE_CLEANUP" = "0" ; then
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
else
  cat >>confdefs.h <<\_ACEOF
#define UPCRI_HAVE_ATTRIBUTE_CLEANUP 1
_ACEOF

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

int
main ()
{
 _Bool b = 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
  HAVE_BOOL=1
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

HAVE_BOOL=0
fi
rm -f conftest.$ac_objext conftest.$ac_ext





# vvvvvvvvvvvvvvvvvvvvvv GASNET_GET_SIG vvvvvvvvvvvvvvvvvvvvvv (L:1)

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




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(value of SIGINT (binary probe),SIGINT,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking value of SIGINT (binary probe)" >&5
echo $ECHO_N "checking value of SIGINT (binary probe)... $ECHO_C" >&6
if test "${upcr_cv_SIGINT+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

upcr_cv_SIGINT=""





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

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

 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((SIGINT)>0?(SIGINT):-(SIGINT)) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((SIGINT)>=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;}'
   upcr_cv_SIGINT=`$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 SIGINT" >&5
echo "$as_me: error: Failed while compile extracting SIGINT" >&2;}
   { (exit 1); exit 1; }; }
  fi

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



if test -z "$upcr_cv_SIGINT" ; then



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

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

 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((SIGINT)>0?(SIGINT):-(SIGINT)) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((SIGINT)>=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;}'
   upcr_cv_SIGINT=`$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 SIGINT" >&5
echo "$as_me: error: Failed while link extracting SIGINT" >&2;}
   { (exit 1); exit 1; }; }
  fi

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



fi



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

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(value of SIGINT (binary probe),SIGINT,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



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



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


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



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




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



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

fi;



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

      case "${CROSS_SIGINT-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_sigint" != ""; then
	      upcr_cv_envvar_CROSS_SIGINT="$with_cross_sigint"
	      envval_src_CROSS_SIGINT=given
	    else
	      upcr_cv_envvar_CROSS_SIGINT=""
	      envval_src_CROSS_SIGINT=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_SIGINT="$CROSS_SIGINT"
	    envval_src_CROSS_SIGINT=given
      esac

fi


  CROSS_SIGINT="$upcr_cv_envvar_CROSS_SIGINT"
  case "$envval_src_CROSS_SIGINT" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIGINT\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_SIGINT\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIGINT\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_SIGINT\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIGINT\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_SIGINT\"" >&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_SIGINT,) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



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


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



    fi
  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_EXPR(value of SIGINT,SIGINT,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking value of SIGINT" >&5
echo $ECHO_N "checking value of SIGINT... $ECHO_C" >&6
if test "${upcr_cv_SIGINT+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 <signal.h>
  int main() {
    FILE *f=fopen("conftestval", "w");
    int val = 0;
    if (!f) exit(1);
    { val = (int)SIGINT;; }
    fprintf(f, "%d\n", (int)(val));
    return 0;
  }
_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
  upcr_cv_SIGINT=`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 )
upcr_cv_SIGINT=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: $upcr_cv_SIGINT" >&5
echo "${ECHO_T}$upcr_cv_SIGINT" >&6
if test "$upcr_cv_SIGINT" != no; then
  :
  SIGINT=$upcr_cv_SIGINT
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_EXPR(value of SIGINT,SIGINT,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GET_SIG ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_GET_SIG vvvvvvvvvvvvvvvvvvvvvv (L:1)

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




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(value of SIGTERM (binary probe),SIGTERM,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking value of SIGTERM (binary probe)" >&5
echo $ECHO_N "checking value of SIGTERM (binary probe)... $ECHO_C" >&6
if test "${upcr_cv_SIGTERM+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

upcr_cv_SIGTERM=""





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

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

 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((SIGTERM)>0?(SIGTERM):-(SIGTERM)) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((SIGTERM)>=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;}'
   upcr_cv_SIGTERM=`$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 SIGTERM" >&5
echo "$as_me: error: Failed while compile extracting SIGTERM" >&2;}
   { (exit 1); exit 1; }; }
  fi

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



if test -z "$upcr_cv_SIGTERM" ; then



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

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

 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((SIGTERM)>0?(SIGTERM):-(SIGTERM)) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((SIGTERM)>=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;}'
   upcr_cv_SIGTERM=`$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 SIGTERM" >&5
echo "$as_me: error: Failed while link extracting SIGTERM" >&2;}
   { (exit 1); exit 1; }; }
  fi

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



fi



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

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(value of SIGTERM (binary probe),SIGTERM,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



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



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


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



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




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



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

fi;



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

      case "${CROSS_SIGTERM-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_sigterm" != ""; then
	      upcr_cv_envvar_CROSS_SIGTERM="$with_cross_sigterm"
	      envval_src_CROSS_SIGTERM=given
	    else
	      upcr_cv_envvar_CROSS_SIGTERM=""
	      envval_src_CROSS_SIGTERM=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_SIGTERM="$CROSS_SIGTERM"
	    envval_src_CROSS_SIGTERM=given
      esac

fi


  CROSS_SIGTERM="$upcr_cv_envvar_CROSS_SIGTERM"
  case "$envval_src_CROSS_SIGTERM" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIGTERM\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_SIGTERM\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIGTERM\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_SIGTERM\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIGTERM\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_SIGTERM\"" >&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_SIGTERM,) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



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


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



    fi
  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_EXPR(value of SIGTERM,SIGTERM,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking value of SIGTERM" >&5
echo $ECHO_N "checking value of SIGTERM... $ECHO_C" >&6
if test "${upcr_cv_SIGTERM+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 <signal.h>
  int main() {
    FILE *f=fopen("conftestval", "w");
    int val = 0;
    if (!f) exit(1);
    { val = (int)SIGTERM;; }
    fprintf(f, "%d\n", (int)(val));
    return 0;
  }
_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
  upcr_cv_SIGTERM=`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 )
upcr_cv_SIGTERM=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: $upcr_cv_SIGTERM" >&5
echo "${ECHO_T}$upcr_cv_SIGTERM" >&6
if test "$upcr_cv_SIGTERM" != no; then
  :
  SIGTERM=$upcr_cv_SIGTERM
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_EXPR(value of SIGTERM,SIGTERM,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GET_SIG ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_GET_SIG vvvvvvvvvvvvvvvvvvvvvv (L:1)

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




# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(value of SIGKILL (binary probe),SIGKILL,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking value of SIGKILL (binary probe)" >&5
echo $ECHO_N "checking value of SIGKILL (binary probe)... $ECHO_C" >&6
if test "${upcr_cv_SIGKILL+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else

upcr_cv_SIGKILL=""





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

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

 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((SIGKILL)>0?(SIGKILL):-(SIGKILL)) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((SIGKILL)>=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;}'
   upcr_cv_SIGKILL=`$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 SIGKILL" >&5
echo "$as_me: error: Failed while compile extracting SIGKILL" >&2;}
   { (exit 1); exit 1; }; }
  fi

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



if test -z "$upcr_cv_SIGKILL" ; then



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

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

 #include <stdio.h>
 extern char s[];
 #define DIGIT(d) (((char)(( ((SIGKILL)>0?(SIGKILL):-(SIGKILL)) >>(d*4))&0xF))+0x40)
 char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ',
             ((SIGKILL)>=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;}'
   upcr_cv_SIGKILL=`$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 SIGKILL" >&5
echo "$as_me: error: Failed while link extracting SIGKILL" >&2;}
   { (exit 1); exit 1; }; }
  fi

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



fi



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

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(value of SIGKILL (binary probe),SIGKILL,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



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



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


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



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




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



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

fi;



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

      case "${CROSS_SIGKILL-__NOT_SET__}" in
	__NOT_SET__)
            if test "$with_cross_sigkill" != ""; then
	      upcr_cv_envvar_CROSS_SIGKILL="$with_cross_sigkill"
	      envval_src_CROSS_SIGKILL=given
	    else
	      upcr_cv_envvar_CROSS_SIGKILL=""
	      envval_src_CROSS_SIGKILL=default
	    fi
	    ;;
	*)  upcr_cv_envvar_CROSS_SIGKILL="$CROSS_SIGKILL"
	    envval_src_CROSS_SIGKILL=given
      esac

fi


  CROSS_SIGKILL="$upcr_cv_envvar_CROSS_SIGKILL"
  case "$envval_src_CROSS_SIGKILL" in
      'cached')
	  echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIGKILL\"" >&5
echo "${ECHO_T}using cached value \"$CROSS_SIGKILL\"" >&6 ;;
      'default')
	  echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIGKILL\"" >&5
echo "${ECHO_T}no, defaulting to \"$CROSS_SIGKILL\"" >&6 ;;
      'given')
	  echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIGKILL\"" >&5
echo "${ECHO_T}yes, using \"$CROSS_SIGKILL\"" >&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_SIGKILL,) ^^^^^^^^^^^^^^^^^^^^^^ (L:3)



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


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



    fi
  else



# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_EXPR(value of SIGKILL,SIGKILL,...) vvvvvvvvvvvvvvvvvvvvvv (L:2)

echo "$as_me:$LINENO: checking value of SIGKILL" >&5
echo $ECHO_N "checking value of SIGKILL... $ECHO_C" >&6
if test "${upcr_cv_SIGKILL+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 <signal.h>
  int main() {
    FILE *f=fopen("conftestval", "w");
    int val = 0;
    if (!f) exit(1);
    { val = (int)SIGKILL;; }
    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
  upcr_cv_SIGKILL=`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 )
upcr_cv_SIGKILL=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: $upcr_cv_SIGKILL" >&5
echo "${ECHO_T}$upcr_cv_SIGKILL" >&6
if test "$upcr_cv_SIGKILL" != no; then
  :
  SIGKILL=$upcr_cv_SIGKILL
fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_EXPR(value of SIGKILL,SIGKILL,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2)



  fi


# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GET_SIG ^^^^^^^^^^^^^^^^^^^^^^ (L:1)







for ac_header in stdlib.h unistd.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 getpagesize
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

echo "$as_me:$LINENO: checking for working mmap" >&5
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=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.  */
$ac_includes_default
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */

#include <fcntl.h>
#include <sys/mman.h>

#if !STDC_HEADERS && !HAVE_STDLIB_H
char *malloc ();
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#if !HAVE_GETPAGESIZE
/* Assume that all systems that can run configure have sys/param.h.  */
# if !HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  if HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192	/* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

int
main ()
{
  char *data, *data2, *data3;
  int i, pagesize;
  int fd;

  pagesize = getpagesize ();

  /* First, make a file with some known garbage in it. */
  data = (char *) malloc (pagesize);
  if (!data)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    *(data + i) = rand ();
  umask (0);
  fd = creat ("conftest.mmap", 0600);
  if (fd < 0)
    exit (1);
  if (write (fd, data, pagesize) != pagesize)
    exit (1);
  close (fd);

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    exit (1);
  data2 = (char *) malloc (2 * pagesize);
  if (!data2)
    exit (1);
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      exit (1);

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) malloc (pagesize);
  if (!data3)
    exit (1);
  if (read (fd, data3, pagesize) != pagesize)
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data3 + i))
      exit (1);
  close (fd);
  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
  ac_cv_func_mmap_fixed_mapped=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 )
ac_cv_func_mmap_fixed_mapped=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: $ac_cv_func_mmap_fixed_mapped" >&5
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then

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

fi
rm -f conftest.mmap







for ac_func in bzero getpagesize getrlimit setrlimit getrlimit64 setrlimit64
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





# 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 "${upcr_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
	      upcr_cv_envvar_PTHREADS_INCLUDE="$with_pthreads_include"
	      envval_src_PTHREADS_INCLUDE=given
	    else
	      upcr_cv_envvar_PTHREADS_INCLUDE=""
	      envval_src_PTHREADS_INCLUDE=default
	    fi
	    ;;
	*)  upcr_cv_envvar_PTHREADS_INCLUDE="$PTHREADS_INCLUDE"
	    envval_src_PTHREADS_INCLUDE=given
      esac

fi


  PTHREADS_INCLUDE="$upcr_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 "${upcr_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
	      upcr_cv_envvar_PTHREADS_LIB="$with_pthreads_lib"
	      envval_src_PTHREADS_LIB=given
	    else
	      upcr_cv_envvar_PTHREADS_LIB=""
	      envval_src_PTHREADS_LIB=default
	    fi
	    ;;
	*)  upcr_cv_envvar_PTHREADS_LIB="$PTHREADS_LIB"
	    envval_src_PTHREADS_LIB=given
      esac

fi


  PTHREADS_LIB="$upcr_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 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_attr_setguardsize" >&5
echo $ECHO_N "checking for library containing pthread_attr_setguardsize... $ECHO_C" >&6
if test "${ac_cv_search_pthread_attr_setguardsize+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_pthread_attr_setguardsize=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_attr_setguardsize ();
int
main ()
{
pthread_attr_setguardsize ();
  ;
  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_attr_setguardsize="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_attr_setguardsize" = 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_attr_setguardsize ();
int
main ()
{
pthread_attr_setguardsize ();
  ;
  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_attr_setguardsize="-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_attr_setguardsize" >&5
echo "${ECHO_T}$ac_cv_search_pthread_attr_setguardsize" >&6
if test "$ac_cv_search_pthread_attr_setguardsize" != no; then
  test "$ac_cv_search_pthread_attr_setguardsize" = "none required" || LIBS="$ac_cv_search_pthread_attr_setguardsize $LIBS"
  cat >>confdefs.h <<\_ACEOF
#define HAVE_PTHREAD_ATTR_SETGUARDSIZE 1
_ACEOF

fi

# see if new linux pthreads lib is used
echo "$as_me:$LINENO: checking for library containing pthread_setaffinity_np" >&5
echo $ECHO_N "checking for library containing pthread_setaffinity_np... $ECHO_C" >&6
if test "${ac_cv_search_pthread_setaffinity_np+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_func_search_save_LIBS=$LIBS
ac_cv_search_pthread_setaffinity_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_setaffinity_np ();
int
main ()
{
pthread_setaffinity_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_setaffinity_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_setaffinity_np" = 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_setaffinity_np ();
int
main ()
{
pthread_setaffinity_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_setaffinity_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_setaffinity_np" >&5
echo "${ECHO_T}$ac_cv_search_pthread_setaffinity_np" >&6
if test "$ac_cv_search_pthread_setaffinity_np" != no; then
  test "$ac_cv_search_pthread_setaffinity_np" = "none required" || LIBS="$ac_cv_search_pthread_setaffinity_np $LIBS"
  cat >>confdefs.h <<\_ACEOF
#define HAVE_PTHREADS_NPTL 1
_ACEOF

fi





# 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 "${upcr_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
  upcr_cv_cc_has_builtin_prefetch=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

upcr_cv_cc_has_builtin_prefetch=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $upcr_cv_cc_has_builtin_prefetch" >&5
echo "${ECHO_T}$upcr_cv_cc_has_builtin_prefetch" >&6
if test "$upcr_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 __builtin_huge_val,cc_has_builtin_huge_val,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for __builtin_huge_val" >&5
echo $ECHO_N "checking for __builtin_huge_val... $ECHO_C" >&6
if test "${upcr_cv_cc_has_builtin_huge_val+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.  */
double x = __builtin_huge_val();
int
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
  upcr_cv_cc_has_builtin_huge_val=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

upcr_cv_cc_has_builtin_huge_val=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $upcr_cv_cc_has_builtin_huge_val" >&5
echo "${ECHO_T}$upcr_cv_cc_has_builtin_huge_val" >&6
if test "$upcr_cv_cc_has_builtin_huge_val" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define HAVE_BUILTIN_HUGE_VAL 1
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(for __builtin_huge_val,cc_has_builtin_huge_val,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_LINK(for __builtin_huge_valf,cc_has_builtin_huge_valf,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for __builtin_huge_valf" >&5
echo $ECHO_N "checking for __builtin_huge_valf... $ECHO_C" >&6
if test "${upcr_cv_cc_has_builtin_huge_valf+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.  */
float x = __builtin_huge_valf();
int
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
  upcr_cv_cc_has_builtin_huge_valf=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

upcr_cv_cc_has_builtin_huge_valf=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $upcr_cv_cc_has_builtin_huge_valf" >&5
echo "${ECHO_T}$upcr_cv_cc_has_builtin_huge_valf" >&6
if test "$upcr_cv_cc_has_builtin_huge_valf" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define HAVE_BUILTIN_HUGE_VALF 1
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(for __builtin_huge_valf,cc_has_builtin_huge_valf,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_LINK(for __builtin_inf,cc_has_builtin_inf,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for __builtin_inf" >&5
echo $ECHO_N "checking for __builtin_inf... $ECHO_C" >&6
if test "${upcr_cv_cc_has_builtin_inf+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.  */
double x = __builtin_inf();
int
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
  upcr_cv_cc_has_builtin_inf=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

upcr_cv_cc_has_builtin_inf=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $upcr_cv_cc_has_builtin_inf" >&5
echo "${ECHO_T}$upcr_cv_cc_has_builtin_inf" >&6
if test "$upcr_cv_cc_has_builtin_inf" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define HAVE_BUILTIN_INF 1
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(for __builtin_inf,cc_has_builtin_inf,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_LINK(for __builtin_inff,cc_has_builtin_inff,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for __builtin_inff" >&5
echo $ECHO_N "checking for __builtin_inff... $ECHO_C" >&6
if test "${upcr_cv_cc_has_builtin_inff+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.  */
float x = __builtin_inff();
int
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
  upcr_cv_cc_has_builtin_inff=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

upcr_cv_cc_has_builtin_inff=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $upcr_cv_cc_has_builtin_inff" >&5
echo "${ECHO_T}$upcr_cv_cc_has_builtin_inff" >&6
if test "$upcr_cv_cc_has_builtin_inff" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define HAVE_BUILTIN_INFF 1
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(for __builtin_inff,cc_has_builtin_inff,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_LINK(for __builtin_nan,cc_has_builtin_nan,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for __builtin_nan" >&5
echo $ECHO_N "checking for __builtin_nan... $ECHO_C" >&6
if test "${upcr_cv_cc_has_builtin_nan+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.  */
double x = __builtin_nan("");
int
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
  upcr_cv_cc_has_builtin_nan=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

upcr_cv_cc_has_builtin_nan=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $upcr_cv_cc_has_builtin_nan" >&5
echo "${ECHO_T}$upcr_cv_cc_has_builtin_nan" >&6
if test "$upcr_cv_cc_has_builtin_nan" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define HAVE_BUILTIN_NAN 1
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(for __builtin_nan,cc_has_builtin_nan,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_LINK(for __builtin_nanf,cc_has_builtin_nanf,...) vvvvvvvvvvvvvvvvvvvvvv (L:1)

echo "$as_me:$LINENO: checking for __builtin_nanf" >&5
echo $ECHO_N "checking for __builtin_nanf... $ECHO_C" >&6
if test "${upcr_cv_cc_has_builtin_nanf+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.  */
float x = __builtin_nanf("");
int
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
  upcr_cv_cc_has_builtin_nanf=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

upcr_cv_cc_has_builtin_nanf=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $upcr_cv_cc_has_builtin_nanf" >&5
echo "${ECHO_T}$upcr_cv_cc_has_builtin_nanf" >&6
if test "$upcr_cv_cc_has_builtin_nanf" = yes; then
  :
  cat >>confdefs.h <<\_ACEOF
#define HAVE_BUILTIN_NANF 1
_ACEOF

else
  :

fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_LINK(for __builtin_nanf,cc_has_builtin_nanf,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




#       Adding new printf format specifiers will only work if glibc used

CONDUITS=

# the GASNet conduits, in order of increasingly preferred default conduit...
# those which GASNet auto-detects should use GASNET_IF_ENABLED_WITH_AUTO
# at this point, this is really just a guess at what conduits GASNet configure will detect
# the guess should always err on the side of being a superset of the GASNet detected conduits,
# and the guess will be corrected (if necessary) at the first top-level make invocation







# 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)   ;;
  yes) CONDUITS="$CONDUITS udp" ;;
  *)   CONDUITS="$CONDUITS udp" ;;
esac

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








# 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)   ;;
  yes) CONDUITS="$CONDUITS smp" ;;
  *)   CONDUITS="$CONDUITS smp" ;;
esac

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








# 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)   ;;
  yes) CONDUITS="$CONDUITS mpi" ;;
  *)   CONDUITS="$CONDUITS mpi" ;;
esac

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








# 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)   ;;
  yes) CONDUITS="$CONDUITS sci" ;;
  *)   CONDUITS="$CONDUITS sci" ;;
esac

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








# 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)   ;;
  yes) CONDUITS="$CONDUITS elan" ;;
  *)   CONDUITS="$CONDUITS elan" ;;
esac

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








# 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)   ;;
  yes) CONDUITS="$CONDUITS lapi" ;;
  *)   CONDUITS="$CONDUITS lapi" ;;
esac

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








# 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)   ;;
  yes) CONDUITS="$CONDUITS gm" ;;
  *)   CONDUITS="$CONDUITS gm" ;;
esac

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








# 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)   ;;
  yes) CONDUITS="$CONDUITS shmem" ;;
  *)   CONDUITS="$CONDUITS shmem" ;;
esac

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








# 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)   ;;
  yes) CONDUITS="$CONDUITS vapi" ;;
  *)   CONDUITS="$CONDUITS vapi" ;;
esac

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








# 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)   ;;
  yes) CONDUITS="$CONDUITS portals" ;;
  *)   CONDUITS="$CONDUITS portals" ;;
esac

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





echo "$as_me:$LINENO: checking for tentative conduit list" >&5
echo $ECHO_N "checking for tentative conduit list... $ECHO_C" >&6
CONDUIT_SETUP_MODE=configure
GASNET_CONDUITS=$CONDUITS
PTHREADS=yes
. $srcdir/conduit-setup
GASNET_CONDUITS=
PTHREADS=
rm -f $TOP_BUILDDIR/.conduit-check # ensure make-time check is run
          ac_config_commands="$ac_config_commands default-1"

# these are all set by conduit-setup





echo "$as_me:$LINENO: result: list=($CONDUITS) default=($DEFAULT_CONDUIT)" >&5
echo "${ECHO_T}list=($CONDUITS) default=($DEFAULT_CONDUIT)" >&6



MAKE_INCLUDE="include"

# Pick some values out of a hat for shared heap size/offset.
#  - These are deliberately low by default, just so they will
#    work out of the box on almost any machine.  It's up to the
#    sysadmin to set correct limits as part of install process.
#  - offset should be 0 on all known platforms at present.
SHARED_HEAP_SIZE="64MB"
SHARED_HEAP_OFFSET="0"

case "$target_os" in
  hpux*)
     if test "$target_cpu" = "ia64" ; then
	# keep translator from choking on some compiler built-in types
        # that unfortunately appear in the common system headers
	PRETRANS_CPPFLAGS="-D__float80='long double' -D__fpreg='long double' -D__va_list__='char *'"
     fi
  ;;
esac
case "$upcr_cv_cc_family" in
  GNU|Pathscale)  # keep translator from choking on gcc builtins used in system headers
    PRETRANS_CPPFLAGS="$PRETRANS_CPPFLAGS -D__NO_STRING_INLINES -D__NO_MATH_INLINES -D__NO_INLINE__"
  ;;
esac



GASNET_INSTALL_CMD="sed -e '/###NOINSTALL###/d' -e 's@###INSTALL_PREFIX###@\$(prefix)@g'"








PERLSTART=$TOP_BUILDDIR/gasnet/other/perlstart




subdirs="$subdirs gasnet"





# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC(upcc) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  upcr_cv_exec_list="$upcr_cv_exec_list upcc"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC(upcc) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC(upcrun) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  upcr_cv_exec_list="$upcr_cv_exec_list upcrun"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC(upcrun) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC(contrib/upcdecl/upcdecl) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  upcr_cv_exec_list="$upcr_cv_exec_list contrib/upcdecl/upcdecl"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC(contrib/upcdecl/upcdecl) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC(detect-upc/upcppp) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  upcr_cv_exec_list="$upcr_cv_exec_list detect-upc/upcppp"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC(detect-upc/upcppp) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC(harness/harness) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  upcr_cv_exec_list="$upcr_cv_exec_list harness/harness"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC(harness/harness) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC(harness/runjobs) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  upcr_cv_exec_list="$upcr_cv_exec_list harness/runjobs"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC(harness/runjobs) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC(harness/checkfail) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  upcr_cv_exec_list="$upcr_cv_exec_list harness/checkfail"

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC(harness/checkfail) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






  rm -f gasnet_errsave_file gasnet_errsave_err




# vvvvvvvvvvvvvvvvvvvvvv GASNET_SAVE_AUTOCONF_ENV vvvvvvvvvvvvvvvvvvvvvv (L:1)

  for varname in $upcr_cv_acenv_list; do
    val=`eval echo '$'"$varname"`
    if test "$val" != ""; then
      cachevarname=upcr_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 CTestTop.mak CTestBottom.mak config-aux/Makefile docs/Makefile man/Makefile umalloc/Makefile contrib/Makefile contrib/upcdecl/Makefile contrib/upcdecl/upcdecl contrib/upcc_CGI/Makefile profile/Makefile upcr_geninclude/Makefile upcr_geninclude/alloca.h upcr_geninclude/fenv.h upcr_geninclude/inttypes.h upcr_geninclude/limits.h upcr_geninclude/stdint.h upcr_geninclude/stdlib.h upcr_geninclude/stdio.h upcr_geninclude/string.h upcr_geninclude/stdbool.h upcr_geninclude/stddef.h upcr_geninclude/stdarg.h upcr_geninclude/math.h upcr_geninclude/time.h upcr_geninclude/sys/Makefile upcr_geninclude/sys/stat.h upcr_preinclude/Makefile upcr_postinclude/Makefile upcr_extinclude/Makefile detect-upc/Makefile upcc upcrun upcc.mak upcc.conf upcr.mak upcrun.conf detect-upc/upcppp harness/Makefile harness/harness harness/runjobs harness/checkfail harness/compiler.spec harness/gcc-upc-upcr.spec harness/gcc-upc-3-upcr.spec"
          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 "${USING_GCCUPC_TRUE}" && test -z "${USING_GCCUPC_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"USING_GCCUPC\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"USING_GCCUPC\" 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 "${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 "${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 "${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 "${UPCR_USE_LEX_TRUE}" && test -z "${UPCR_USE_LEX_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"UPCR_USE_LEX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"UPCR_USE_LEX\" 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 "${UPCR_OBJECT_STRINGS_TRUE}" && test -z "${UPCR_OBJECT_STRINGS_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"UPCR_OBJECT_STRINGS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"UPCR_OBJECT_STRINGS\" 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_GASP_TRUE}" && test -z "${BUILDCONFIG_GASP_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"BUILDCONFIG_GASP\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"BUILDCONFIG_GASP\" 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

: ${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"
 TOP_BUILDDIR=$TOP_BUILDDIR ; GMAKE=$GMAKE



# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC_SETUP vvvvvvvvvvvvvvvvvvvvvv (L:1)

    if test "\${config_commands+set}" != set ; then
    config_commands="default"
  fi
  CONFIG_COMMANDS="\$config_commands"
  upcr_cv_exec_list="$upcr_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" ;;
  "CTestTop.mak" ) CONFIG_FILES="$CONFIG_FILES CTestTop.mak" ;;
  "CTestBottom.mak" ) CONFIG_FILES="$CONFIG_FILES CTestBottom.mak" ;;
  "config-aux/Makefile" ) CONFIG_FILES="$CONFIG_FILES config-aux/Makefile" ;;
  "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  "umalloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES umalloc/Makefile" ;;
  "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  "contrib/upcdecl/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/upcdecl/Makefile" ;;
  "contrib/upcdecl/upcdecl" ) CONFIG_FILES="$CONFIG_FILES contrib/upcdecl/upcdecl" ;;
  "contrib/upcc_CGI/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/upcc_CGI/Makefile" ;;
  "profile/Makefile" ) CONFIG_FILES="$CONFIG_FILES profile/Makefile" ;;
  "upcr_geninclude/Makefile" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/Makefile" ;;
  "upcr_geninclude/alloca.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/alloca.h" ;;
  "upcr_geninclude/fenv.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/fenv.h" ;;
  "upcr_geninclude/inttypes.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/inttypes.h" ;;
  "upcr_geninclude/limits.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/limits.h" ;;
  "upcr_geninclude/stdint.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/stdint.h" ;;
  "upcr_geninclude/stdlib.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/stdlib.h" ;;
  "upcr_geninclude/stdio.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/stdio.h" ;;
  "upcr_geninclude/string.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/string.h" ;;
  "upcr_geninclude/stdbool.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/stdbool.h" ;;
  "upcr_geninclude/stddef.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/stddef.h" ;;
  "upcr_geninclude/stdarg.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/stdarg.h" ;;
  "upcr_geninclude/math.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/math.h" ;;
  "upcr_geninclude/time.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/time.h" ;;
  "upcr_geninclude/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/sys/Makefile" ;;
  "upcr_geninclude/sys/stat.h" ) CONFIG_FILES="$CONFIG_FILES upcr_geninclude/sys/stat.h" ;;
  "upcr_preinclude/Makefile" ) CONFIG_FILES="$CONFIG_FILES upcr_preinclude/Makefile" ;;
  "upcr_postinclude/Makefile" ) CONFIG_FILES="$CONFIG_FILES upcr_postinclude/Makefile" ;;
  "upcr_extinclude/Makefile" ) CONFIG_FILES="$CONFIG_FILES upcr_extinclude/Makefile" ;;
  "detect-upc/Makefile" ) CONFIG_FILES="$CONFIG_FILES detect-upc/Makefile" ;;
  "upcc" ) CONFIG_FILES="$CONFIG_FILES upcc" ;;
  "upcrun" ) CONFIG_FILES="$CONFIG_FILES upcrun" ;;
  "upcc.mak" ) CONFIG_FILES="$CONFIG_FILES upcc.mak" ;;
  "upcc.conf" ) CONFIG_FILES="$CONFIG_FILES upcc.conf" ;;
  "upcr.mak" ) CONFIG_FILES="$CONFIG_FILES upcr.mak" ;;
  "upcrun.conf" ) CONFIG_FILES="$CONFIG_FILES upcrun.conf" ;;
  "detect-upc/upcppp" ) CONFIG_FILES="$CONFIG_FILES detect-upc/upcppp" ;;
  "harness/Makefile" ) CONFIG_FILES="$CONFIG_FILES harness/Makefile" ;;
  "harness/harness" ) CONFIG_FILES="$CONFIG_FILES harness/harness" ;;
  "harness/runjobs" ) CONFIG_FILES="$CONFIG_FILES harness/runjobs" ;;
  "harness/checkfail" ) CONFIG_FILES="$CONFIG_FILES harness/checkfail" ;;
  "harness/compiler.spec" ) CONFIG_FILES="$CONFIG_FILES harness/compiler.spec" ;;
  "harness/gcc-upc-upcr.spec" ) CONFIG_FILES="$CONFIG_FILES harness/gcc-upc-upcr.spec" ;;
  "harness/gcc-upc-3-upcr.spec" ) CONFIG_FILES="$CONFIG_FILES harness/gcc-upc-3-upcr.spec" ;;
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  "upcr_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS upcr_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,@UPCR_VERSION@,$UPCR_VERSION,;t t
s,@RUNTIME_SPEC@,$RUNTIME_SPEC,;t t
s,@UPC_SPEC@,$UPC_SPEC,;t t
s,@PERL@,$PERL,;t t
s,@GASNET_PERL_BYTESFLAG@,$GASNET_PERL_BYTESFLAG,;t t
s,@HARNESS_TRANS_OPTION@,$HARNESS_TRANS_OPTION,;t t
s,@GCCUPC_VERSION@,$GCCUPC_VERSION,;t t
s,@USING_GCCUPC@,$USING_GCCUPC,;t t
s,@USING_GCCUPC_TRUE@,$USING_GCCUPC_TRUE,;t t
s,@USING_GCCUPC_FALSE@,$USING_GCCUPC_FALSE,;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,@upcr_cv__gfp_fullprogname_CPP@,$upcr_cv__gfp_fullprogname_CPP,;t t
s,@upcr_cv__gfp_fullprogname_CC@,$upcr_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,@CC_FAMILY@,$CC_FAMILY,;t t
s,@CC_UNWRAPPED@,$CC_UNWRAPPED,;t t
s,@CC_WRAPPED@,$CC_WRAPPED,;t t
s,@UPCR_SYSTEM_CFLAGS@,$UPCR_SYSTEM_CFLAGS,;t t
s,@HOST_CC@,$HOST_CC,;t t
s,@HOST_CFLAGS@,$HOST_CFLAGS,;t t
s,@HOST_LDFLAGS@,$HOST_LDFLAGS,;t t
s,@HOST_LIBS@,$HOST_LIBS,;t t
s,@UPCR_PROFILE_FLAG@,$UPCR_PROFILE_FLAG,;t t
s,@EGREP@,$EGREP,;t t
s,@LEX@,$LEX,;t t
s,@LEXLIB@,$LEXLIB,;t t
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
s,@UPCR_USE_LEX_TRUE@,$UPCR_USE_LEX_TRUE,;t t
s,@UPCR_USE_LEX_FALSE@,$UPCR_USE_LEX_FALSE,;t t
s,@SIZEOF_VOID_P@,$SIZEOF_VOID_P,;t t
s,@UPCRI_PTR_BITS@,$UPCRI_PTR_BITS,;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,@AR@,$AR,;t t
s,@RANLIB@,$RANLIB,;t t
s,@ENVCMD@,$ENVCMD,;t t
s,@DIG@,$DIG,;t t
s,@NSLOOKUP@,$NSLOOKUP,;t t
s,@GMAKE@,$GMAKE,;t t
s,@TAIL@,$TAIL,;t t
s,@BOURNE_SHELL@,$BOURNE_SHELL,;t t
s,@TAIL_FOLLOW@,$TAIL_FOLLOW,;t t
s,@TAIL_FOLLOW_MULTI@,$TAIL_FOLLOW_MULTI,;t t
s,@GNU_GCC@,$GNU_GCC,;t t
s,@USE_GNU_PREPROC@,$USE_GNU_PREPROC,;t t
s,@GCC_AS_CC@,$GCC_AS_CC,;t t
s,@EXESUFFIX@,$EXESUFFIX,;t t
s,@PLATFORM_PREPROCESS@,$PLATFORM_PREPROCESS,;t t
s,@UPCR_OBJECT_STRINGS_TRUE@,$UPCR_OBJECT_STRINGS_TRUE,;t t
s,@UPCR_OBJECT_STRINGS_FALSE@,$UPCR_OBJECT_STRINGS_FALSE,;t t
s,@subdirs@,$subdirs,;t t
s,@TOTALVIEW_ENABLED@,$TOTALVIEW_ENABLED,;t t
s,@TOTALVIEW_SUBDIR@,$TOTALVIEW_SUBDIR,;t t
s,@BUILDCONFIG_DEBUG_TRUE@,$BUILDCONFIG_DEBUG_TRUE,;t t
s,@BUILDCONFIG_DEBUG_FALSE@,$BUILDCONFIG_DEBUG_FALSE,;t t
s,@BUILDCONFIG_GASP_TRUE@,$BUILDCONFIG_GASP_TRUE,;t t
s,@BUILDCONFIG_GASP_FALSE@,$BUILDCONFIG_GASP_FALSE,;t t
s,@GASP_ENABLED@,$GASP_ENABLED,;t t
s,@MPI_INCOMPATIBLE@,$MPI_INCOMPATIBLE,;t t
s,@BUILDCONFIG@,$BUILDCONFIG,;t t
s,@TRANSLATOR@,$TRANSLATOR,;t t
s,@GCC_TLS_SUPPORT@,$GCC_TLS_SUPPORT,;t t
s,@HAVE_CPP_INCLUDE_NEXT@,$HAVE_CPP_INCLUDE_NEXT,;t t
s,@PATH_ALLOCA_H@,$PATH_ALLOCA_H,;t t
s,@HAVE_ALLOCA_H@,$HAVE_ALLOCA_H,;t t
s,@PATH_FENV_H@,$PATH_FENV_H,;t t
s,@HAVE_FENV_H@,$HAVE_FENV_H,;t t
s,@PATH_STDINT_H@,$PATH_STDINT_H,;t t
s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
s,@PATH_STRING_H@,$PATH_STRING_H,;t t
s,@HAVE_STRING_H@,$HAVE_STRING_H,;t t
s,@PATH_STDLIB_H@,$PATH_STDLIB_H,;t t
s,@HAVE_STDLIB_H@,$HAVE_STDLIB_H,;t t
s,@PATH_STDIO_H@,$PATH_STDIO_H,;t t
s,@HAVE_STDIO_H@,$HAVE_STDIO_H,;t t
s,@PATH_STDDEF_H@,$PATH_STDDEF_H,;t t
s,@HAVE_STDDEF_H@,$HAVE_STDDEF_H,;t t
s,@PATH_STDBOOL_H@,$PATH_STDBOOL_H,;t t
s,@HAVE_STDBOOL_H@,$HAVE_STDBOOL_H,;t t
s,@PATH_STDARG_H@,$PATH_STDARG_H,;t t
s,@HAVE_STDARG_H@,$HAVE_STDARG_H,;t t
s,@PATH_INTTYPES_H@,$PATH_INTTYPES_H,;t t
s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
s,@PATH_LIMITS_H@,$PATH_LIMITS_H,;t t
s,@HAVE_LIMITS_H@,$HAVE_LIMITS_H,;t t
s,@PATH_MATH_H@,$PATH_MATH_H,;t t
s,@HAVE_MATH_H@,$HAVE_MATH_H,;t t
s,@PATH_TIME_H@,$PATH_TIME_H,;t t
s,@HAVE_TIME_H@,$HAVE_TIME_H,;t t
s,@PATH_SYS_STAT_H@,$PATH_SYS_STAT_H,;t t
s,@HAVE_SYS_STAT_H@,$HAVE_SYS_STAT_H,;t t
s,@SYSTEM_HEADER_DIRS@,$SYSTEM_HEADER_DIRS,;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,@COMPLETE_STDINT_H@,$COMPLETE_STDINT_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,@SIZEOF_PTRDIFF_T@,$SIZEOF_PTRDIFF_T,;t t
s,@SIZEOF_SIZE_T@,$SIZEOF_SIZE_T,;t t
s,@CHAR_IS_SIGNED@,$CHAR_IS_SIGNED,;t t
s,@HAVE_BOOL@,$HAVE_BOOL,;t t
s,@SIGINT@,$SIGINT,;t t
s,@SIGTERM@,$SIGTERM,;t t
s,@SIGKILL@,$SIGKILL,;t t
s,@TARGETLIBS@,$TARGETLIBS,;t t
s,@ASSISTANTLIBS@,$ASSISTANTLIBS,;t t
s,@CONDUITS@,$CONDUITS,;t t
s,@DEFAULT_CONDUIT@,$DEFAULT_CONDUIT,;t t
s,@PARSEQ@,$PARSEQ,;t t
s,@PRETRANS_CPPFLAGS@,$PRETRANS_CPPFLAGS,;t t
s,@GASNET_INSTALL_CMD@,$GASNET_INSTALL_CMD,;t t
s,@MAKE_INCLUDE@,$MAKE_INCLUDE,;t t
s,@SHARED_HEAP_SIZE@,$SHARED_HEAP_SIZE,;t t
s,@SHARED_HEAP_OFFSET@,$SHARED_HEAP_OFFSET,;t t
s,@PTHREADS@,$PTHREADS,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
/@cc_wrapper_mk@/r $cc_wrapper_mk
s,@cc_wrapper_mk@,,;t t
/@UPCR_INCLUDE_NEXT_ALLOCA_H@/r $UPCR_INCLUDE_NEXT_ALLOCA_H
s,@UPCR_INCLUDE_NEXT_ALLOCA_H@,,;t t
/@UPCR_INCLUDE_NEXT_FENV_H@/r $UPCR_INCLUDE_NEXT_FENV_H
s,@UPCR_INCLUDE_NEXT_FENV_H@,,;t t
/@UPCR_INCLUDE_NEXT_STDINT_H@/r $UPCR_INCLUDE_NEXT_STDINT_H
s,@UPCR_INCLUDE_NEXT_STDINT_H@,,;t t
/@UPCR_INCLUDE_NEXT_STRING_H@/r $UPCR_INCLUDE_NEXT_STRING_H
s,@UPCR_INCLUDE_NEXT_STRING_H@,,;t t
/@UPCR_INCLUDE_NEXT_STDLIB_H@/r $UPCR_INCLUDE_NEXT_STDLIB_H
s,@UPCR_INCLUDE_NEXT_STDLIB_H@,,;t t
/@UPCR_INCLUDE_NEXT_STDIO_H@/r $UPCR_INCLUDE_NEXT_STDIO_H
s,@UPCR_INCLUDE_NEXT_STDIO_H@,,;t t
/@UPCR_INCLUDE_NEXT_STDDEF_H@/r $UPCR_INCLUDE_NEXT_STDDEF_H
s,@UPCR_INCLUDE_NEXT_STDDEF_H@,,;t t
/@UPCR_INCLUDE_NEXT_STDBOOL_H@/r $UPCR_INCLUDE_NEXT_STDBOOL_H
s,@UPCR_INCLUDE_NEXT_STDBOOL_H@,,;t t
/@UPCR_INCLUDE_NEXT_STDARG_H@/r $UPCR_INCLUDE_NEXT_STDARG_H
s,@UPCR_INCLUDE_NEXT_STDARG_H@,,;t t
/@UPCR_INCLUDE_NEXT_INTTYPES_H@/r $UPCR_INCLUDE_NEXT_INTTYPES_H
s,@UPCR_INCLUDE_NEXT_INTTYPES_H@,,;t t
/@UPCR_INCLUDE_NEXT_LIMITS_H@/r $UPCR_INCLUDE_NEXT_LIMITS_H
s,@UPCR_INCLUDE_NEXT_LIMITS_H@,,;t t
/@UPCR_INCLUDE_NEXT_MATH_H@/r $UPCR_INCLUDE_NEXT_MATH_H
s,@UPCR_INCLUDE_NEXT_MATH_H@,,;t t
/@UPCR_INCLUDE_NEXT_TIME_H@/r $UPCR_INCLUDE_NEXT_TIME_H
s,@UPCR_INCLUDE_NEXT_TIME_H@,,;t t
/@UPCR_INCLUDE_NEXT_SYS_STAT_H@/r $UPCR_INCLUDE_NEXT_SYS_STAT_H
s,@UPCR_INCLUDE_NEXT_SYS_STAT_H@,,;t t
/@PERLSTART@/r $PERLSTART
s,@PERLSTART@,,;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-1 )
if test -f gasnet/config.status ; then
  # this is a reconfigure - make sure conduit-setup gets run
  # prevent an infinite recursion on automake 1.4
  if test "$CONDUIT_CHECK_RECURSE" = "" ; then
    CONDUIT_CHECK_RECURSE=1 ; export CONDUIT_CHECK_RECURSE
    rm -f $TOP_BUILDDIR/.conduit-check
    # do NOT use TOP_BUILDDIR in the target name, because during distcheck
    # it can include an '=' sign on automake 1.6 (=build) and make will
    # therefore interpret the target argument as a variable assignment argument
    $GMAKE -s -C $TOP_BUILDDIR ./Makefile ./.conduit-check || exit 1
  fi
fi  ;;
    default )


# vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_EXEC_OUTPUT vvvvvvvvvvvvvvvvvvvvvv (L:1)

  for file in $upcr_cv_exec_list; do
   case "$CONFIG_FILES" in
     *${file}*) chmod +x ${file} ;;
   esac
  done

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_EXEC_OUTPUT ^^^^^^^^^^^^^^^^^^^^^^ (L:1)






# vvvvvvvvvvvvvvvvvvvvvv GASNET_SANITIZE_PACKAGE(upcr_config.h) vvvvvvvvvvvvvvvvvvvvvv (L:1)

  if test -f 'upcr_config.h' -a -n "`grep PACKAGE_NAME 'upcr_config.h'`" ; then
    mv 'upcr_config.h' 'upcr_config.h.dirty'
    cat 'upcr_config.h.dirty' | grep -v '#define PACKAGE_' > 'upcr_config.h'
    rm -f 'upcr_config.h.dirty'
  fi

# ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SANITIZE_PACKAGE(upcr_config.h) ^^^^^^^^^^^^^^^^^^^^^^ (L:1)




  if test -f .upcr_cv_configure_warnings.tmp ; then
    echo "--------------------------------------------------------------------" >&2
    echo "--------------------------------------------------------------------" >&5
    echo "configure warning summary:" >&2
    echo "configure warning summary:" >&5
    echo " " >&2
    echo " " >&5
    cat .upcr_cv_configure_warnings.tmp >&2
    cat .upcr_cv_configure_warnings.tmp >&5
    rm -f .upcr_cv_configure_warnings.tmp
  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

#
# CONFIG_SUBDIRS section.
#
if test "$no_recursion" != yes; then

  # Remove --cache-file and --srcdir arguments so they do not pile up.
  ac_sub_configure_args=
  ac_prev=
  for ac_arg in $ac_configure_args; do
    if test -n "$ac_prev"; then
      ac_prev=
      continue
    fi
    case $ac_arg in
    -cache-file | --cache-file | --cache-fil | --cache-fi \
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
      ac_prev=cache_file ;;
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
    | --c=*)
      ;;
    --config-cache | -C)
      ;;
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
      ac_prev=srcdir ;;
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
      ;;
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
      ac_prev=prefix ;;
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
      ;;
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
    esac
  done

  # Always prepend --prefix to ensure using the same prefix
  # in subdir configurations.
  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"

  ac_popdir=`pwd`
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue

    # Do not complain, so a configure script can configure whichever
    # parts of a large source tree are present.
    test -d $srcdir/$ac_dir || continue

    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
echo "$as_me: configuring in $ac_dir" >&6;}
    { 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`


    cd $ac_dir

    # Check for guested configure; otherwise get Cygnus style configure.
    if test -f $ac_srcdir/configure.gnu; then
      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
    elif test -f $ac_srcdir/configure; then
      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
    elif test -f $ac_srcdir/configure.in; then
      ac_sub_configure=$ac_configure
    else
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
      ac_sub_configure=
    fi

    # The recursion is here.
    if test -n "$ac_sub_configure"; then
      # Make the cache file name correct relative to the subdirectory.
      case $cache_file in
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
      *) # Relative path.
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
      esac

      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
      # The eval makes quoting arguments work.
      eval $ac_sub_configure $ac_sub_configure_args \
           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
   { (exit 1); exit 1; }; }
    fi

    cd "$ac_popdir"
  done
fi


