#! /bin/sh # From configure.in Revision: 1.580 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.63. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # 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 as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. 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 IFS=$as_save_IFS ;; 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; 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 || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= 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=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell bug-autoconf@gnu.org about your system, echo including any error possibly output before this message. echo This can help us improve future autoconf versions. echo Configuration will now proceed without shell functions. } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # 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 after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, 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 # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_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 sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval 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="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 7<&0 &1 # 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` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="gasnet_tools.h" ac_default_prefix=/usr/local/gasnet # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='LTLIBOBJS LIBOBJS TOOL_PREFIX GASNET_INSTALL_CMD USE_STRICT_PROTOTYPES_FALSE USE_STRICT_PROTOTYPES_TRUE BOURNE_SHELL ENVCMD TIMECMD READLINK DIRNAME BASENAME RANLIB AR DEBUGMALLOC_FALSE DEBUGMALLOC_TRUE USE_PLPA_FALSE USE_PLPA_TRUE DBX_PATH LADEBUG_PATH IDB_PATH PGDBG_PATH GDB_PATH ADDR2LINE_PATH ALLOCA USE_AMMPI_FALSE USE_AMMPI_TRUE USE_SCI_CONDUIT_FALSE USE_SCI_CONDUIT_TRUE SCI_LIBS SCI_INCLUDES scibench2 USE_DCMF_CONDUIT_FALSE USE_DCMF_CONDUIT_TRUE DCMF_LIBS DCMF_SYS_LIBDIR DCMF_LIBDIR DCMF_SYS_INCLUDE DCMF_INCLUDE USE_SHMEM_CONDUIT_FALSE USE_SHMEM_CONDUIT_TRUE SHMEM_FLAGS SHMEM_LIBS USE_PORTALS_CONDUIT_FALSE USE_PORTALS_CONDUIT_TRUE OS_CATAMOUNT_FALSE OS_CATAMOUNT_TRUE PORTALS_INCLUDES PORTALS_LIBS IBV_RCV_THREAD_FALSE IBV_RCV_THREAD_TRUE IBV_BOOTSTRAP_MPI_FALSE IBV_BOOTSTRAP_MPI_TRUE IBV_BOOTSTRAP_SSH_FALSE IBV_BOOTSTRAP_SSH_TRUE USE_IBV_CONDUIT_FALSE USE_IBV_CONDUIT_TRUE IBV_LIBCFLAGS IBV_LIBS IBV_LIBDIR IBV_INCLUDE GASNET_IBV_SPAWNER_CONF ibv_devinfo VAPI_RCV_THREAD_FALSE VAPI_RCV_THREAD_TRUE VAPI_BOOTSTRAP_MPI_FALSE VAPI_BOOTSTRAP_MPI_TRUE VAPI_BOOTSTRAP_SSH_FALSE VAPI_BOOTSTRAP_SSH_TRUE USE_VAPI_CONDUIT_FALSE USE_VAPI_CONDUIT_TRUE VAPI_LIBCFLAGS VAPI_LIBS VAPI_LIBDIR VAPI_INCLUDE GASNET_VAPI_SPAWNER_CONF vstat USE_ELAN_CONDUIT_FALSE USE_ELAN_CONDUIT_TRUE ELAN_LIBS ELAN_INCLUDE HAVE_LAPI_RDMA_FALSE HAVE_LAPI_RDMA_TRUE USE_LAPI_CONDUIT_FALSE USE_LAPI_CONDUIT_TRUE POE_RDMA_ARGS LAPI_LD GM_RODATA_WORKAROUND_FALSE GM_RODATA_WORKAROUND_TRUE GM_MPI_COMPAT_FALSE GM_MPI_COMPAT_TRUE USE_GM_CONDUIT_FALSE USE_GM_CONDUIT_TRUE GM_MPI_COMPAT GM_LIB GM_INCLUDE FH_CFLAGS gm_board_info USE_SMP_CONDUIT_FALSE USE_SMP_CONDUIT_TRUE USE_MPI_FALSE USE_MPI_TRUE USE_MPI_COMPAT_FALSE USE_MPI_COMPAT_TRUE USE_MPI_CONDUIT_FALSE USE_MPI_CONDUIT_TRUE MPIRUN_CMD_BATCH MPIRUN_CMD MPI_DEFINES MPI_LIBS MPI_CFLAGS MPI_CC gasnet_cv__gfp_fullprogname_MPIRUN_CMD gasnet_cv__gfp_fullprogname_MPI_CC USE_UDP_CONDUIT_FALSE USE_UDP_CONDUIT_TRUE GASNET_UDP_LIBS HAVE_CXX_FALSE HAVE_CXX_TRUE MISC_CXXFLAGS cxxLDFLAGS cxxLIBS CXX_WRAPPED CXX_UNWRAPPED CXX_FAMILY gasnet_cv__gfp_fullprogname_CXX CXXCPPFLAGS gasnet_cv__gfp_fullprogname_CXXCPP CXXCPP am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX CONDUIT_MODE_FALSE CONDUIT_MODE_TRUE TOOLSONLY_MODE_FALSE TOOLSONLY_MODE_TRUE CONDUITS USE_PSHM_FALSE USE_PSHM_TRUE GASNET_PSHM_LIBS PTHREADS HAVE_PTHREAD_FALSE HAVE_PTHREAD_TRUE BUILD_PARSYNC_LIBS_FALSE BUILD_PARSYNC_LIBS_TRUE BUILD_PAR_LIBS_FALSE BUILD_PAR_LIBS_TRUE BUILD_SEQ_LIBS_FALSE BUILD_SEQ_LIBS_TRUE PATCHED_HEADER EXESUFFIX GASNET_THREAD_LIBS GASNET_THREAD_DEFINES GASNET_MACHINE_DEFINES LIBM INTTYPES_DEFINES COMPLETE_SYS_TYPES_H HAVE_SYS_TYPES_H COMPLETE_INTTYPES_H HAVE_INTTYPES_H COMPLETE_STDINT_H HAVE_STDINT_H PLATFORM_ILP64_FALSE PLATFORM_ILP64_TRUE PLATFORM_LP64_FALSE PLATFORM_LP64_TRUE PLATFORM_ILP32_FALSE PLATFORM_ILP32_TRUE SIZEOF_LONG_LONG SIZEOF_LONG SIZEOF_INT SIZEOF_SHORT SIZEOF_CHAR LIBGCC GASNET_SEGMENT_EVERYTHING_FALSE GASNET_SEGMENT_EVERYTHING_TRUE GASNET_SEGMENT_LARGE_FALSE GASNET_SEGMENT_LARGE_TRUE GASNET_SEGMENT_FAST_FALSE GASNET_SEGMENT_FAST_TRUE KEEPTMP_CFLAGS MISC_CPPFLAGS MISC_CFLAGS BUILDCONFIG_SRCLINES_FALSE BUILDCONFIG_SRCLINES_TRUE BUILDCONFIG_STATS_FALSE BUILDCONFIG_STATS_TRUE BUILDCONFIG_TRACE_FALSE BUILDCONFIG_TRACE_TRUE BUILDCONFIG_DEBUG_VERBOSE_FALSE BUILDCONFIG_DEBUG_VERBOSE_TRUE BUILDCONFIG_DEBUG_FALSE BUILDCONFIG_DEBUG_TRUE SYS_HEADER_INST SYS_HEADER_BLD bgpmaster SEPARATE_CC GASNETI_PTR_BITS SIZEOF_VOID_P EGREP GREP CC_WRAPPED CC_UNWRAPPED CC_FAMILY have_mpcc_r LN_S CROSS_COMPILING CROSS_COMPILING_FALSE CROSS_COMPILING_TRUE gasnet_cv__gfp_fullprogname_CC gasnet_cv__gfp_fullprogname_CPP CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC GASNET_PERL_BYTESFLAG PERL GNU_NM_FALSE GNU_NM_TRUE NM GMAKE ALWAYS_FALSECOND_FALSE ALWAYS_FALSECOND_TRUE ALWAYS_TRUECOND_FALSE ALWAYS_TRUECOND_TRUE BUILD_ID SYSTEM_TUPLE SYSTEM_NAME BUILD_IS_SRC BUILD_IS_SRC_FALSE BUILD_IS_SRC_TRUE TOP_BUILDDIR TOP_SRCDIR CONFIGURE_ARGS PWD_PROG am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_os target_vendor target_cpu target host_os host_vendor host_cpu host build_os build_vendor build_cpu build target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='PERLSTART cc_wrapper_mk' ac_user_opts=' enable_option_checking enable_pthreads enable_conservative_local_copy enable_dependency_tracking enable_full_path_expansion enable_allow_libcpp enable_cross_compile enable_allow_gcc296 enable_allow_gcc32 enable_allow_gcc4 enable_ultrasparc_probe enable_ppc64_probe with_bgp_sys_home with_bgp_sys_include enable_debug enable_gasnet_verbose enable_trace enable_stats enable_srclines enable_segment_fast enable_segment_large enable_segment_everything with_segment_mmap_max with_pthreads_include with_pthreads_lib with_pthreads_patch enable_seq enable_par enable_parsync with_max_pthreads_per_node enable_tls enable_pshm enable_aligned_segments enable_tune_ppc970 enable_arch_sgi_ip27 enable_arch_ice9a enable_fork enable_smp_safe enable_loopback_memsync enable_throttle_poll enable_force_generic_atomicops enable_force_os_atomicops enable_force_gettimeofday enable_force_posix_realtime enable_force_yield_membars enable_force_slow_membars enable_force_true_weakatomics enable_force_generic_semaphores enable_auto_conduit_detect enable_udp with_target_cxx with_target_cxxflags with_cxxlibs with_cxxldflags with_gasnet_cspawn_cmd enable_mpi_compat enable_mpi with_mpi_cc with_mpi_cflags with_mpi_libs with_mpirun_cmd with_mpirun_cmd_batch enable_smp enable_gm with_gmhome with_gm_include with_gm_lib with_fh_cflags enable_broken_gm enable_gm_rodata_workaround enable_lapi with_lapi_type enable_lapi_rdma with_lapi_rdma_count enable_elan with_elan_include with_elan_libs enable_allow_elan4_patchfree enable_vapi with_mthome with_vapi_include with_vapi_libs with_vapi_libdir enable_vapi_fmr enable_vapi_poll_lock enable_vapi_rcv_thread with_vapi_spawner enable_vapi_multirail with_vapi_max_hcas enable_ibv with_ibvhome with_ibv_include with_ibv_libs with_ibv_libdir enable_ibv_poll_lock enable_ibv_rcv_thread with_ibv_spawner enable_ibv_multirail with_ibv_max_hcas enable_portals with_pe_dir with_mpt_dir with_portals_include with_portals_libs with_catamount_dir with_catamount_include enable_shmem with_shmem_include with_shmem_libdir with_shmem_libs enable_dcmf enable_dcmf_linux with_dcmf_home with_dcmf_include with_dcmf_sys_include with_dcmf_libdir with_dcmf_sys_libdir with_dcmf_libs enable_sci with_scihome with_sci_includes with_sci_libs enable_ssh_prctl enable_backtrace enable_backtrace_execinfo enable_backtrace_gdb enable_backtrace_pgdbg enable_backtrace_idb enable_backtrace_ladebug enable_backtrace_dbx enable_backtrace_printstack enable_plpa enable_mmap enable_strict_prototypes with_tool_prefix ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC CXXCPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # 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. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -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) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$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 ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$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 ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 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 ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$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_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=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 ;; -*) { $as_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 && { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_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'` { $as_echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 { (exit 1); exit 1; }; } ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } 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 $as_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 ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { $as_echo "$as_me: error: working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # 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 the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | 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 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # 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 \`..'] 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] --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] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _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-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-pthreads enable use of pthreads (required to support pthreaded GASNet clients) --disable-pthreads enable use of pthreads (required to support pthreaded GASNet clients) --enable-conservative-local-copy enable use of conservative (slower) mechanism for local data movement (default is no) --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --disable-full-path-expansion Disable expansion of program names to full pathnames --enable-allow-libcpp Allow the use of /lib/cpp for preprocessing --enable-cross-compile Enable cross-compilation (experimental) --enable-allow-gcc296 Allow the use of the broken gcc/g++ 2.96 compiler --enable-allow-gcc32 Allow the use of the known broken gcc/g++ 3.2.0-2 compiler --enable-allow-gcc4 Allow the use of a broken gcc/g++ 4.0-4.2 compiler --disable-ultrasparc-probe Disable probe for UltraSPARC compiler options --disable-ppc64-probe Disable probe for PPC64 compiler options --enable-debug Build GASNet in a debugging mode --enable-gasnet-verbose Build GASNet lib with debugging status messages --enable-trace Build GASNet with tracing enabled (enabled by default with --enable-debug) --disable-trace Build GASNet with tracing enabled (enabled by default with --enable-debug) --enable-stats Build GASNet with statistical collection enabled (enabled by default with --enable-debug) --disable-stats Build GASNet with statistical collection enabled (enabled by default with --enable-debug) --enable-srclines Build GASNet with srclines support (enabled by default with --enable-trace) --enable-segment-fast Build GASNet in the FAST shared segment configuration --enable-segment-large Build GASNet in the LARGE shared segment configuration --enable-segment-everything Build GASNet in the EVERYTHING shared segment configuration --enable-seq support SEQ-mode single=threaded GASNet clients --disable-seq support SEQ-mode single=threaded GASNet clients --enable-par support PAR-mode pthreaded GASNet clients --disable-par support PAR-mode pthreaded GASNet clients --enable-parsync support PARSYNC-mode pthreaded GASNet clients --disable-parsync support PARSYNC-mode pthreaded GASNet clients --enable-tls Enable/disable use of thread-local storage extensions (ie __thread) (auto-detected) --disable-tls Enable/disable use of thread-local storage extensions (ie __thread) (auto-detected) --enable-pshm Enable/disable inter-process shared memory support (default disabled) --disable-aligned-segments Disable requirement to achieve aligned VM segments, for heterogeneous clusters --enable-tune-ppc970 Enable/disable tuning for PPC970 (aka G5) (auto-detected) --disable-tune-ppc970 Enable/disable tuning for PPC970 (aka G5) (auto-detected) --enable-arch-sgi-ip27 Enable/disable work-around for buggy SGI IP27 platforms (Onyx2, Origin200 and Origin2000) (auto-detected) --disable-arch-sgi-ip27 Enable/disable work-around for buggy SGI IP27 platforms (Onyx2, Origin200 and Origin2000) (auto-detected) --enable-arch-ice9a Enable/disable work-around for buggy SiCoretex ICE9A processor (auto-detected) --disable-arch-ice9a Enable/disable work-around for buggy SiCoretex ICE9A processor (auto-detected) --enable-fork Allow internal use of fork() and related calls (default is to probe at configure time) --disable-fork Allow internal use of fork() and related calls (default is to probe at configure time) --enable-smp-safe Enable build of SMP-safe libraries (default is to probe at configure time) --disable-smp-safe Enable build of SMP-safe libraries (default is to probe at configure time) --enable-loopback-memsync Force memory barriers for GASNet local (loopback) puts and gets --enable-throttle-poll throttle polling threads in multi-threaded configurations to reduce contention --enable-force-generic-atomicops Force mutex-based atomic ops (default is platform specific) --enable-force-os-atomicops Force os-provided atomic ops (default is platform specific) --enable-force-gettimeofday Force use of gettimeofday() for timers (default is platform-specific) --enable-force-posix-realtime Force use of clock_gettime() for timers (default is platform-specific) --enable-force-yield-membars Force a sched_yield() call in memory barriers (disabled by default) --enable-force-slow-membars Force function call based (non-inline) memory barriers (disabled by default) --enable-force-true-weakatomics Force use of real atomic operations in sequential code (disabled by default) --enable-force-generic-semaphores Force mutex-based semaphores (default is platform specific) --disable-auto-conduit-detect Enable/disable automatic detection of supported network conduits (enabled by default) --enable-udp Enable/disable the portable UDP network conduit (udp) (auto-detected) --disable-udp Enable/disable the portable UDP network conduit (udp) (auto-detected) --enable-mpi-compat Enable/disable MPI compatibility (auto-detected) --disable-mpi-compat Enable/disable MPI compatibility (auto-detected) --enable-mpi Enable/disable the portable MPI-1.1/2.x network conduit (mpi) (auto-detected) --disable-mpi Enable/disable the portable MPI-1.1/2.x network conduit (mpi) (auto-detected) --enable-smp Enable/disable the portable SMP-loopback network conduit (smp) (auto-detected) --disable-smp Enable/disable the portable SMP-loopback network conduit (smp) (auto-detected) --enable-gm Enable/disable the Myricom/GM network conduit (gm) (auto-detected) --disable-gm Enable/disable the Myricom/GM network conduit (gm) (auto-detected) --enable-broken-gm Allow 2.x GM versions with broken RDMA gets --enable-gm-rodata-workaround Enable rodata permissions hack to work-around GM's inability to register read-only program data segments --enable-lapi Enable/disable the LAPI (IBM SP) network conduit (lapi) (auto-detected) --disable-lapi Enable/disable the LAPI (IBM SP) network conduit (lapi) (auto-detected) --enable-lapi-rdma support/use LAPI RDMA (default is to probe) --disable-lapi-rdma support/use LAPI RDMA (default is to probe) --enable-elan Enable/disable the Quadrics Elan3/Elan4 network conduit (elan) (auto-detected) --disable-elan Enable/disable the Quadrics Elan3/Elan4 network conduit (elan) (auto-detected) --enable-allow-elan4-patchfree Allow the use of the problematic elan4 patch-free drivers --enable-vapi Enable/disable the Mellanox InfiniBand/VAPI network conduit (vapi) (auto-detected) --disable-vapi Enable/disable the Mellanox InfiniBand/VAPI network conduit (vapi) (auto-detected) --enable-vapi-fmr support/use VAPI Fast Memory Regions (default is to probe) --disable-vapi-fmr support/use VAPI Fast Memory Regions (default is to probe) --enable-vapi-poll-lock See vapi-conduit/README (disabled by default) --disable-vapi-poll-lock See vapi-conduit/README (disabled by default) --enable-vapi-rcv-thread See vapi-conduit/README (enabled by default if pthreads available) --disable-vapi-rcv-thread See vapi-conduit/README (enabled by default if pthreads available) --enable-vapi-multirail Enable/disable VAPI over multiple HCAs, see vapi-conduit/README (enabled by default) --disable-vapi-multirail Enable/disable VAPI over multiple HCAs, see vapi-conduit/README (enabled by default) --enable-ibv Enable/disable the OpenIB/OpenFabrics IB Verbs network conduit (ibv) (auto-detected) --disable-ibv Enable/disable the OpenIB/OpenFabrics IB Verbs network conduit (ibv) (auto-detected) --enable-ibv-poll-lock See vapi-conduit/README (disabled by default) --disable-ibv-poll-lock See vapi-conduit/README (disabled by default) --enable-ibv-rcv-thread See vapi-conduit/README (enabled by default if pthreads available) --disable-ibv-rcv-thread See vapi-conduit/README (enabled by default if pthreads available) --enable-ibv-multirail Enable/disable IBV over multiple HCAs, see vapi-conduit/README (enabled by default) --disable-ibv-multirail Enable/disable IBV over multiple HCAs, see vapi-conduit/README (enabled by default) --enable-portals Enable/disable the Portals network conduit (portals) (auto-detected) --disable-portals Enable/disable the Portals network conduit (portals) (auto-detected) --enable-shmem Enable/disable the Shmem network conduit (shmem) (auto-detected) --disable-shmem Enable/disable the Shmem network conduit (shmem) (auto-detected) --enable-dcmf Enable/disable the BlueGene/P network conduit (dcmf) (auto-detected) --disable-dcmf Enable/disable the BlueGene/P network conduit (dcmf) (auto-detected) --enable-dcmf-linux Use Linux as the Compute Node OS --disable-dcmf-linux Use Linux as the Compute Node OS --enable-sci Enable/disable the Dolphin SISCI network conduit (sci) (auto-detected) --disable-sci Enable/disable the Dolphin SISCI network conduit (sci) (auto-detected) --enable-ssh-prctl Enable use of prctl() in the ssh-based spawner (see other/ssh-spawner/README) (disabled by default) --enable-backtrace support backtrace, via any mechanism (auto-detected) --disable-backtrace support backtrace, via any mechanism (auto-detected) --enable-backtrace-execinfo support backtrace via execinfo.h (auto-detected) --disable-backtrace-execinfo support backtrace via execinfo.h (auto-detected) --enable-backtrace-gdb support backtrace via gdb (auto-detected) --disable-backtrace-gdb support backtrace via gdb (auto-detected) --enable-backtrace-pgdbg support backtrace via pgdbg (auto-detected) --disable-backtrace-pgdbg support backtrace via pgdbg (auto-detected) --enable-backtrace-idb support backtrace via idb (auto-detected) --disable-backtrace-idb support backtrace via idb (auto-detected) --enable-backtrace-ladebug support backtrace via ladebug (auto-detected) --disable-backtrace-ladebug support backtrace via ladebug (auto-detected) --enable-backtrace-dbx support backtrace via dbx (auto-detected) --disable-backtrace-dbx support backtrace via dbx (auto-detected) --enable-backtrace-printstack support backtrace via printstack (auto-detected) --disable-backtrace-printstack support backtrace via printstack (auto-detected) --enable-plpa use PLPA for CPU binding (default is to probe) --disable-plpa use PLPA for CPU binding (default is to probe) --enable-mmap force the use or non-use of mmap (default to probe) --disable-mmap force the use or non-use of mmap (default to probe) --enable-strict-prototypes Use strict prototypes in GASNet headers (at the expense of slight deviation from the specification) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-bgp-sys-home= value for BGP_SYS_HOME --with-bgp-sys-include= value for BGP_SYS_INCLUDE --with-segment-mmap-max=value Upper bound for mmap-based GASNet segments (ex: "2GB", "1045MB") --with-pthreads-include= value for PTHREADS_INCLUDE --with-pthreads-lib= value for PTHREADS_LIB --with-pthreads-patch= value for PTHREADS_PATCH --with-max-pthreads-per-node=value Set max pthreads supported per GASNet node --with-target-cxx= value for TARGET_CXX --with-target-cxxflags= value for TARGET_CXXFLAGS --with-cxxlibs= value for cxxLIBS --with-cxxldflags= value for cxxLDFLAGS --with-gasnet-cspawn-cmd= value for GASNET_CSPAWN_CMD --with-mpi-cc= value for MPI_CC --with-mpi-cflags= value for MPI_CFLAGS --with-mpi-libs= value for MPI_LIBS --with-mpirun-cmd= value for MPIRUN_CMD --with-mpirun-cmd-batch= value for MPIRUN_CMD_BATCH --with-gmhome= value for GMHOME --with-gm-include= value for GM_INCLUDE --with-gm-lib= value for GM_LIB --with-fh-cflags= value for FH_CFLAGS --with-lapi-type=value IBM Switch hardware type ("colony" or "federation", default is to probe) --with-lapi-rdma-count=value Number of LAPI RDMA context blocks to request (default is ${lapi_rdma_count}) --with-elan-include= value for ELAN_INCLUDE --with-elan-libs= value for ELAN_LIBS --with-mthome= value for MTHOME --with-vapi-include= value for VAPI_INCLUDE --with-vapi-libs= value for VAPI_LIBS --with-vapi-libdir= value for VAPI_LIBDIR --with-vapi-spawner=value VAPI job spawner ("ssh" or "mpi", default is mpi when available) --with-vapi-max-hcas=value maximum number of VAPI HCAs to open for multi-rail support (default is 2) --with-ibvhome= value for IBVHOME --with-ibv-include= value for IBV_INCLUDE --with-ibv-libs= value for IBV_LIBS --with-ibv-libdir= value for IBV_LIBDIR --with-ibv-spawner=value IBV job spawner ("ssh" or "mpi", default is mpi when available) --with-ibv-max-hcas=value maximum number of IBV HCAs to open for multi-rail support (default is 2) --with-pe-dir= value for PE_DIR --with-mpt-dir= value for MPT_DIR --with-portals-include= value for PORTALS_INCLUDE --with-portals-libs= value for PORTALS_LIBS --with-catamount-dir= value for CATAMOUNT_DIR --with-catamount-include= value for CATAMOUNT_INCLUDE --with-shmem-include= value for SHMEM_INCLUDE --with-shmem-libdir= value for SHMEM_LIBDIR --with-shmem-libs= value for SHMEM_LIBS --with-dcmf-home= value for DCMF_HOME --with-dcmf-include= value for DCMF_INCLUDE --with-dcmf-sys-include= value for DCMF_SYS_INCLUDE --with-dcmf-libdir= value for DCMF_LIBDIR --with-dcmf-sys-libdir= value for DCMF_SYS_LIBDIR --with-dcmf-libs= value for DCMF_LIBS --with-scihome= value for SCIHOME --with-sci-includes= value for SCI_INCLUDES --with-sci-libs= value for SCI_LIBS --with-tool-prefix=value Naming prefix to use for contributed tools Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested 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 else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.63 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 fi cat >config.log <<_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.63. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { 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` /usr/bin/hostinfo = `(/usr/bin/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=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&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_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=`$as_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_arg'" ;; 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: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 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, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r 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 -f -r conftest* 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 an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then ac_site_file1=$CONFIG_SITE elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test -r "$ac_site_file"; then { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 $as_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 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 $as_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 $ac_precious_vars; 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,) { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 $as_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 # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_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 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # vvvvvvvvvvvvvvvvvvvvvv GASNET_FIX_SHELL vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for good shell" >&5 $as_echo_n "checking for good shell... " >&6; } if test "$BASH" = '' && test `uname` = HP-UX; then { $as_echo "$as_me:$LINENO: result: no, switching to bash" >&5 $as_echo "no, switching to bash" >&6; } case $# in 0) exec bash - "$0" ;; *) exec bash - "$0" "$@" ;; esac else { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FIX_SHELL ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ac_aux_dir= for ac_dir in config-aux "$srcdir"/config-aux; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config-aux \"$srcdir\"/config-aux" >&5 $as_echo "$as_me: error: cannot find install-sh or install.sh in config-aux \"$srcdir\"/config-aux" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { $as_echo "$as_me:$LINENO: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if test "${ac_cv_build+set}" = set; then $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 $as_echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:$LINENO: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if test "${ac_cv_host+set}" = set; then $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 $as_echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:$LINENO: checking target system type" >&5 $as_echo_n "checking target system type... " >&6; } if test "${ac_cv_target+set}" = set; then $as_echo_n "(cached) " >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 $as_echo "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 $as_echo "$as_me: error: invalid value of canonical target" >&2;} { (exit 1); exit 1; }; };; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # 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.10' # 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" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then $as_echo_n "(cached) " >&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/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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 rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir 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. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 $as_echo "$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' { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&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". { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 $as_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 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 $as_echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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 $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # 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= { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac 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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AWK+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:$LINENO: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=GASNet VERSION=1.14.0 # 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"} install_sh=${install_sh-"\$(SHELL) $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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers gasnet_config.h" # vvvvvvvvvvvvvvvvvvvvvv GASNET_START_CONFIGURE(AWK) vvvvvvvvvvvvvvvvvvvvvv (L:1) # 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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_PWD_PROG+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PWD_PROG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PWD_PROG=$ac_cv_path_PWD_PROG if test -n "$PWD_PROG"; then { $as_echo "$as_me:$LINENO: result: $PWD_PROG" >&5 $as_echo "$PWD_PROG" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PWD_PROG" && break done ;; *) { $as_echo "$as_me:$LINENO: checking for pwd" >&5 $as_echo_n "checking for pwd... " >&6; } { $as_echo "$as_me:$LINENO: result: $PWD_PROG" >&5 $as_echo "$PWD_PROG" >&6; } ;; esac case "$PWD_PROG" in '') { { $as_echo "$as_me:$LINENO: error: cannot find pwd" >&5 $as_echo "$as_me: error: cannot find pwd" >&2;} { (exit 1); exit 1; }; } ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PATH_PROGS(PWD_PROG,pwd,pwd) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) if test -z "$GASNET_CONFIGURE_WARNING_GLOBAL" ; then GASNET_CONFIGURE_WARNING_GLOBAL="`$PWD_PROG`/.gasnet_cv_configure_warnings.tmp" export GASNET_CONFIGURE_WARNING_GLOBAL fi rm -f ".gasnet_cv_configure_warnings.tmp" # vvvvvvvvvvvvvvvvvvvvvv GASNET_GET_AUTOCONF_VERSION vvvvvvvvvvvvvvvvvvvvvv (L:2) { $as_echo "$as_me:$LINENO: checking autoconf version" >&5 $as_echo_n "checking autoconf version... " >&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); }'` { $as_echo "$as_me:$LINENO: result: $AUTOCONF_VERSION_STR" >&5 $as_echo "$AUTOCONF_VERSION_STR" >&6; } # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GET_AUTOCONF_VERSION ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for configure settings" >&5 $as_echo_n "checking for configure settings... " >&6; } { $as_echo "$as_me:$LINENO: result: " >&5 $as_echo "" >&6; } CONFIGURE_ARGS="$ac_configure_args" { $as_echo "$as_me:$LINENO: result: configure args: $CONFIGURE_ARGS" >&5 $as_echo "configure args: $CONFIGURE_ARGS" >&6; } if test "$cache_file" = "/dev/null" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2) { $as_echo "$as_me:$LINENO: WARNING: configure cache_file setting got lost - you may need to run a fresh ./Bootstrap" >&5 $as_echo "$as_me: WARNING: configure cache_file setting got lost - you may need to run a fresh ./Bootstrap" >&2;} echo "configure cache_file setting got lost - you may need to run a fresh ./Bootstrap" >> ".gasnet_cv_configure_warnings.tmp" echo " " >> ".gasnet_cv_configure_warnings.tmp" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:2) cache_file=config.cache fi ac_configure_args="$ac_configure_args --cache-file=$cache_file" TOP_SRCDIR=`cd ${srcdir} && ${PWD_PROG}` { $as_echo "$as_me:$LINENO: result: TOP_SRCDIR: $TOP_SRCDIR" >&5 $as_echo "TOP_SRCDIR: $TOP_SRCDIR" >&6; } TOP_BUILDDIR=`${PWD_PROG}` { $as_echo "$as_me:$LINENO: result: TOP_BUILDDIR: $TOP_BUILDDIR" >&5 $as_echo "TOP_BUILDDIR: $TOP_BUILDDIR" >&6; } if `echo $TOP_SRCDIR | grep ' ' >/dev/null 2>/dev/null`; then { { $as_echo "$as_me:$LINENO: error: TOP_SRCDIR contains space characters - please unpack the source in a different directory." >&5 $as_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 { { $as_echo "$as_me:$LINENO: error: TOP_BUILDDIR contains space characters - please build in a different directory." >&5 $as_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 # Handle prefix defaulting with subconfigures # When users pass --prefix on the command-line, this is automatically passed to subconfigures # and everything lives happily in the same tree # Without --prefix, different packages may default to different directories # (due to AC_PREFIX_DEFAULT), so ensure that all subconfigures # default to the same location (as determined by the outermost configure) if test "$prefix" = "NONE" -a -n "$ac_default_prefix" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_SUBCONFIGURE_ARG(--prefix="$ac_default_prefix") vvvvvvvvvvvvvvvvvvvvvv (L:2) ac_configure_args="$ac_configure_args --prefix="$ac_default_prefix"" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_SUBCONFIGURE_ARG(--prefix="$ac_default_prefix") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) 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 '` _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) { $as_echo "$as_me:$LINENO: WARNING: Apple gcc is cross-compiling for $_GASNET_GCCTARGET, readjusting configure target" >&5 $as_echo "$as_me: WARNING: Apple gcc is cross-compiling for $_GASNET_GCCTARGET, readjusting configure target" >&2;} echo "Apple gcc is cross-compiling for $_GASNET_GCCTARGET, readjusting configure target" >> ".gasnet_cv_configure_warnings.tmp" echo " " >> ".gasnet_cv_configure_warnings.tmp" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:2) target="$_GASNET_GCCTARGET" target_alias="$target" ac_cv_target="$target" ac_cv_target_alias="$target" target_cpu="$_GASNET_GCCCPU" esac fi ;; esac SYSTEM_TUPLE="$target" { $as_echo "$as_me:$LINENO: result: system info: $SYSTEM_NAME $SYSTEM_TUPLE" >&5 $as_echo "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" { $as_echo "$as_me:$LINENO: result: build id: $BUILD_ID" >&5 $as_echo "build id: $BUILD_ID" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_RESTORE_AUTOCONF_ENV(CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC AWK) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$gasnet_acenv_list" != ""; then echo echo "configure error: _GASNET_RESTORE_AUTOCONF_ENV called more than once with prefix = \"gasnet_cv_\"" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi gasnet_acenv_list="CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC AWK" { $as_echo "$as_me:$LINENO: checking for cached autoconf environment settings" >&5 $as_echo_n "checking for cached autoconf environment settings... " >&6; } { $as_echo "$as_me:$LINENO: result: \"\"" >&5 $as_echo "\"\"" >&6; } for varname in CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC AWK; do val=`eval echo '$'"gasnet_cv_acenv_$varname"` if test "$val" != ""; then eval $varname=\"$val\" { $as_echo "$as_me:$LINENO: result: $varname=\"$val\"" >&5 $as_echo "$varname=\"$val\"" >&6; } fi done # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_RESTORE_AUTOCONF_ENV(CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC AWK) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_START_CONFIGURE(AWK) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_DEFINE_CONFIGURE_VARS vvvvvvvvvvvvvvvvvvvvvv (L:1) cat >>confdefs.h <<_ACEOF #define GASNETI_CONFIGURE_ARGS "$CONFIGURE_ARGS" _ACEOF cat >>confdefs.h <<_ACEOF #define GASNETI_SYSTEM_NAME "$SYSTEM_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define GASNETI_SYSTEM_TUPLE "$SYSTEM_TUPLE" _ACEOF cat >>confdefs.h <<_ACEOF #define GASNETI_BUILD_ID "$BUILD_ID" _ACEOF # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_DEFINE_CONFIGURE_VARS ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test -z ""; then ALWAYS_TRUECOND_TRUE= ALWAYS_TRUECOND_FALSE='#' else ALWAYS_TRUECOND_TRUE='#' ALWAYS_TRUECOND_FALSE= fi if test -n ""; then ALWAYS_FALSECOND_TRUE= ALWAYS_FALSECOND_FALSE='#' else ALWAYS_FALSECOND_TRUE='#' ALWAYS_FALSECOND_FALSE= fi # Set gasnet_toolsonly_mode based on how we Bootstrapped gasnet_toolsonly_mode=no cat >>confdefs.h <<_ACEOF #define GASNET_RELEASE_VERSION_MAJOR 1 _ACEOF cat >>confdefs.h <<_ACEOF #define GASNET_RELEASE_VERSION_MINOR 14 _ACEOF cat >>confdefs.h <<_ACEOF #define GASNET_RELEASE_VERSION_PATCH 0 _ACEOF cat >>confdefs.h <<_ACEOF #define GASNETI_SPEC_VERSION_MAJOR 1 _ACEOF cat >>confdefs.h <<_ACEOF #define GASNETI_SPEC_VERSION_MINOR 8 _ACEOF cat >>confdefs.h <<_ACEOF #define GASNETIT_SPEC_VERSION_MAJOR 1 _ACEOF cat >>confdefs.h <<_ACEOF #define GASNETIT_SPEC_VERSION_MINOR 5 _ACEOF cat >>confdefs.h <<_ACEOF #define GASNETI_RELEASE_VERSION 1.14.0 _ACEOF 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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AWK+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:$LINENO: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done ######################################################################## ## ## Misc configure option processing ## # default: support pthreads if library found # --enable-pthreads: fail if pthreads lib not found # --disable-pthreads: don't even look for pthreads library # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(pthreads,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --enable-pthreads was given. if test "${enable_pthreads+set}" = set; then enableval=$enable_pthreads; fi # Check whether --enable-pthreads was given. if test "${enable_pthreads+set}" = set; then enableval=$enable_pthreads; fi case "$enable_pthreads" in no) use_pthreads="no" ;; yes) use_pthreads="yes" ;; *) use_pthreads="try" ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(pthreads,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_FORBID_PROGRAM_TRANSFORM vvvvvvvvvvvvvvvvvvvvvv (L:1) # echo program_prefix=$program_prefix program_suffix=$program_suffix program_transform_name=$program_transform_name # undo prefix autoconf automatically adds during cross-compilation if test "$cross_compiling" = yes && test "$program_prefix" = "${target_alias}-" ; then program_prefix=NONE fi # normalize empty prefix/suffix if test -z "$program_prefix" ; then program_prefix=NONE fi if test -z "$program_suffix" ; then program_suffix=NONE fi # canonicalize transforms caused by empty prefix/suffix if expr "$program_transform_name" : 's.^..$' >/dev/null || \ expr "$program_transform_name" : 's.$$..$' >/dev/null || \ expr "$program_transform_name" : 's.$$..;s.^..$' >/dev/null ; then program_transform_name="s,x,x," fi if test "$program_prefix$program_suffix$program_transform_name" != "NONENONEs,x,x," ; then echo echo "configure error: This configure script does not support --program-prefix, --program-suffix or --program-transform-name. Users are recommended to instead use --prefix with a unique directory and make symbolic links as desired for renaming." 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FORBID_PROGRAM_TRANSFORM ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # This is to support a very conservative implementation of # GASNETE_FAST_ALIGNED_MEMCPY and other type-punning operations. # It is to be enabled only to test if a given problem is related # to our type-punning issues (see bug 1389) # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(conservative-local-copy,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --enable-conservative-local-copy was given. if test "${enable_conservative_local_copy+set}" = set; then enableval=$enable_conservative_local_copy; fi case "$enable_conservative_local_copy" in '' | no) : ;; *) cat >>confdefs.h <<\_ACEOF #define GASNETI_BUG1389_WORKAROUND 1 _ACEOF # vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2) { $as_echo "$as_me:$LINENO: WARNING: ----------------------------------------------------------------------- WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING You passed --enable-conservative-local-copy This usually has a SERIOUS impact on performance, so you should NOT trust any performance numbers obtained from programs built using this GASNet installation!!! WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING -----------------------------------------------------------------------" >&5 $as_echo "$as_me: WARNING: ----------------------------------------------------------------------- WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING You passed --enable-conservative-local-copy This usually has a SERIOUS impact on performance, so you should NOT trust any performance numbers obtained from programs built using this GASNet installation!!! WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING -----------------------------------------------------------------------" >&2;} echo " ----------------------------------------------------------------------- WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING You passed --enable-conservative-local-copy This usually has a SERIOUS impact on performance, so you should NOT trust any performance numbers obtained from programs built using this GASNet installation!!! WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING -----------------------------------------------------------------------" >> ".gasnet_cv_configure_warnings.tmp" echo " " >> ".gasnet_cv_configure_warnings.tmp" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:2) ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(conservative-local-copy,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ######################################################################## ## ## Supporting Command-Line Tools ## # vvvvvvvvvvvvvvvvvvvvvv GASNET_PATH_PROGS(GMAKE,$GMAKE gmake make $MAKE,GNU make) vvvvvvvvvvvvvvvvvvvvvv (L:1) case "$GMAKE" in '') for ac_prog in $GMAKE gmake make $MAKE do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_GMAKE+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GMAKE=$ac_cv_path_GMAKE if test -n "$GMAKE"; then { $as_echo "$as_me:$LINENO: result: $GMAKE" >&5 $as_echo "$GMAKE" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$GMAKE" && break done ;; *) { $as_echo "$as_me:$LINENO: checking for GNU make" >&5 $as_echo_n "checking for GNU make... " >&6; } { $as_echo "$as_me:$LINENO: result: $GMAKE" >&5 $as_echo "$GMAKE" >&6; } ;; esac case "$GMAKE" in '') { { $as_echo "$as_me:$LINENO: error: cannot find GNU make" >&5 $as_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) { $as_echo "$as_me:$LINENO: checking for GNU make" >&5 $as_echo_n "checking for GNU make... " >&6; } if $GMAKE --version | grep GNU ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else # We don't actually require GNU Make at the moment # AC_MSG_ERROR(cannot find a version of GNU make - please install GNU make and/or set \$GMAKE to indicate where it's located) # vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: WARNING: cannot find a version of GNU make - if you encounter make problems, install GNU make and/or set \$GMAKE to indicate where it's located" >&5 $as_echo "$as_me: WARNING: cannot find a version of GNU make - if you encounter make problems, install GNU make and/or set \$GMAKE to indicate where it's located" >&2;} echo "cannot find a version of GNU make - if you encounter make problems, install GNU make and/or set \$GMAKE to indicate where it's located" >> ".gasnet_cv_configure_warnings.tmp" echo " " >> ".gasnet_cv_configure_warnings.tmp" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1) fi # we do not require nm # Extract the first word of "$NM nm", so it can be a program name with args. set dummy $NM nm; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_NM+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm utility" ;; esac fi NM=$ac_cv_path_NM if test -n "$NM"; then { $as_echo "$as_me:$LINENO: result: $NM" >&5 $as_echo "$NM" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:$LINENO: checking for GNU nm" >&5 $as_echo_n "checking for GNU nm... " >&6; } if test "`${NM:-nm} --version 2>&1 | grep GNU`" = "" ; then gnu_nm=no else gnu_nm=yes fi { $as_echo "$as_me:$LINENO: result: $gnu_nm" >&5 $as_echo "$gnu_nm" >&6; } if test "$gnu_nm" = "yes"; then GNU_NM_TRUE= GNU_NM_FALSE='#' else GNU_NM_TRUE='#' GNU_NM_FALSE= fi ######################################################################## ## ## Perl ## ## We do this early so we can use "$PERL -e" for complex configure tests. # vvvvvvvvvvvvvvvvvvvvvv GASNET_PROG_PERL vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PATH_PROGS(PERL,perl5 perl,perl) vvvvvvvvvvvvvvvvvvvvvv (L:2) case "$PERL" in '') for ac_prog in perl5 perl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_PERL+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PERL=$ac_cv_path_PERL if test -n "$PERL"; then { $as_echo "$as_me:$LINENO: result: $PERL" >&5 $as_echo "$PERL" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PERL" && break done ;; *) { $as_echo "$as_me:$LINENO: checking for perl" >&5 $as_echo_n "checking for perl... " >&6; } { $as_echo "$as_me:$LINENO: result: $PERL" >&5 $as_echo "$PERL" >&6; } ;; esac case "$PERL" in '') { { $as_echo "$as_me:$LINENO: error: cannot find perl" >&5 $as_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" { $as_echo "$as_me:$LINENO: checking for perl version $MIN_PERL_VERSION or later" >&5 $as_echo_n "checking for perl version $MIN_PERL_VERSION or later... " >&6; } if $PERL -e "require $MIN_PERL_VERSION;" 2>/dev/null; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { { $as_echo "$as_me:$LINENO: error: cannot find perl $MIN_PERL_VERSION or later" >&5 $as_echo "$as_me: error: cannot find perl $MIN_PERL_VERSION or later" >&2;} { (exit 1); exit 1; }; } fi if $PERL -Mbytes -e "exit 0" 2>/dev/null; then GASNET_PERL_BYTESFLAG="-Mbytes" else GASNET_PERL_BYTESFLAG= fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PROG_PERL ^^^^^^^^^^^^^^^^^^^^^^ (L:1) PERLSTART=$TOP_BUILDDIR/other/perlstart ######################################################################## ## ## C/C++ Compilers ## # Some OS's need help to find the right C compiler case "$target_os" in superux*) # "cc" is completely broken on SuperUX, never use it # vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CC,c++ -Xa) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for CC in environment" >&5 $as_echo_n "checking for CC in environment... " >&6; } envval_src_CC="cached" if test "${gasnet_cv_envvar_CC+set}" = set; then $as_echo_n "(cached) " >&6 else case "${CC-__NOT_SET__}" in __NOT_SET__) if test "$with_cc" != ""; then gasnet_cv_envvar_CC="$with_cc" envval_src_CC=given else gasnet_cv_envvar_CC="c++ -Xa" envval_src_CC=default fi ;; *) gasnet_cv_envvar_CC="$CC" envval_src_CC=given esac fi CC="$gasnet_cv_envvar_CC" case "$envval_src_CC" in 'cached') { $as_echo "$as_me:$LINENO: result: using cached value \"$CC\"" >&5 $as_echo "using cached value \"$CC\"" >&6; } ;; 'default') { $as_echo "$as_me:$LINENO: result: no, defaulting to \"$CC\"" >&5 $as_echo "no, defaulting to \"$CC\"" >&6; } ;; 'given') { $as_echo "$as_me:$LINENO: result: yes, using \"$CC\"" >&5 $as_echo "yes, using \"$CC\"" >&6; } ;; *) echo echo "configure error: _GASNET_ENV_DEFAULT broken" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CC,c++ -Xa) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ;; # may also/alternately want -Kc99 esac DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&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 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-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 was given. if test "${enable_full_path_expansion+set}" = set; then enableval=$enable_full_path_expansion; fi case "$enable_full_path_expansion" in '' | yes) : ;; *) gasnet_cv__gfp_disable=1 ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_DISABLED(full-path-expansion,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PROG_CC vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PROG_CPP vvvvvvvvvvvvvvvvvvvvvv (L:2) ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi 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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi 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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 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 { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe 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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 $as_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. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* 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.out.dSYM 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. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } if test -z "$ac_file"; then $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 $as_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 # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&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' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_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 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_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 $as_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 { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_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 | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if test "${ac_cv_objext+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* 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; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 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 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:$LINENO: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:$LINENO: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac 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= { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then $as_echo_n "(cached) " >&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 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch 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/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 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 # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' 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 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$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 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&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 $as_echo_n "(cached) " >&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 to if __STDC__ is defined, since # 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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else $as_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 nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_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 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 $as_echo "$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 to if __STDC__ is defined, since # 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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else $as_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 nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_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 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # vvvvvvvvvvvvvvvvvvvvvv GASNET_GETFULLPATH(CPP) vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$gasnet_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$CPP" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$CPP" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then if test "`echo $gasnet_gfp_progname | grep '/'`" != "" ; then { { $as_echo "$as_me:$LINENO: error: CPP was set to a relative path: $gasnet_gfp_progname -- please use an absolute pathname" >&5 $as_echo "$as_me: error: CPP was set to a relative path: $gasnet_gfp_progname -- please use an absolute pathname" >&2;} { (exit 1); exit 1; }; } fi # clear cached values, in case this is a pushed var unset gasnet_cv__gfp_fullprogname_CPP unset ac_cv_path_gasnet_cv__gfp_fullprogname_CPP # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_CPP, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_gasnet_cv__gfp_fullprogname_CPP+set}" = set; then $as_echo_n "(cached) " >&6 else case $gasnet_cv__gfp_fullprogname_CPP in [\\/]* | ?:[\\/]*) ac_cv_path_gasnet_cv__gfp_fullprogname_CPP="$gasnet_cv__gfp_fullprogname_CPP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_gasnet_cv__gfp_fullprogname_CPP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi gasnet_cv__gfp_fullprogname_CPP=$ac_cv_path_gasnet_cv__gfp_fullprogname_CPP if test -n "$gasnet_cv__gfp_fullprogname_CPP"; then { $as_echo "$as_me:$LINENO: result: $gasnet_cv__gfp_fullprogname_CPP" >&5 $as_echo "$gasnet_cv__gfp_fullprogname_CPP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:$LINENO: checking for full path expansion of CPP" >&5 $as_echo_n "checking for full path expansion of CPP... " >&6; } if test "$gasnet_cv__gfp_fullprogname_CPP" != "" ; then CPP="$gasnet_cv__gfp_fullprogname_CPP $gasnet_gfp_progargs" fi { $as_echo "$as_me:$LINENO: result: $CPP" >&5 $as_echo "$CPP" >&6; } fi fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GETFULLPATH(CPP) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) { $as_echo "$as_me:$LINENO: checking for working C preprocessor" >&5 $as_echo_n "checking for working C preprocessor... " >&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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ # error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then echo echo "configure error: Your C preprocessor is broken - reported success when it should have failed" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } else $as_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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else $as_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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 /* 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 { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else $as_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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.err conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: yes$gasnet_progcpp_extrainfo" >&5 $as_echo "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 was given. if test "${enable_allow_libcpp+set}" = set; then enableval=$enable_allow_libcpp; fi case "$enable_allow_libcpp" in '' | no) : { { $as_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 $as_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) { $as_echo "$as_me:$LINENO: WARNING: $badlibcppmsg" >&5 $as_echo "$as_me: WARNING: $badlibcppmsg" >&2;} echo "$badlibcppmsg" >> ".gasnet_cv_configure_warnings.tmp" echo " " >> ".gasnet_cv_configure_warnings.tmp" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:4) ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(allow-libcpp,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PROG_CPP ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_GETFULLPATH(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$gasnet_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$CC" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$CC" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then if test "`echo $gasnet_gfp_progname | grep '/'`" != "" ; then { { $as_echo "$as_me:$LINENO: error: CC was set to a relative path: $gasnet_gfp_progname -- please use an absolute pathname" >&5 $as_echo "$as_me: error: CC was set to a relative path: $gasnet_gfp_progname -- please use an absolute pathname" >&2;} { (exit 1); exit 1; }; } fi # clear cached values, in case this is a pushed var unset gasnet_cv__gfp_fullprogname_CC unset ac_cv_path_gasnet_cv__gfp_fullprogname_CC # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_CC, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_gasnet_cv__gfp_fullprogname_CC+set}" = set; then $as_echo_n "(cached) " >&6 else case $gasnet_cv__gfp_fullprogname_CC in [\\/]* | ?:[\\/]*) ac_cv_path_gasnet_cv__gfp_fullprogname_CC="$gasnet_cv__gfp_fullprogname_CC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_gasnet_cv__gfp_fullprogname_CC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi gasnet_cv__gfp_fullprogname_CC=$ac_cv_path_gasnet_cv__gfp_fullprogname_CC if test -n "$gasnet_cv__gfp_fullprogname_CC"; then { $as_echo "$as_me:$LINENO: result: $gasnet_cv__gfp_fullprogname_CC" >&5 $as_echo "$gasnet_cv__gfp_fullprogname_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:$LINENO: checking for full path expansion of CC" >&5 $as_echo_n "checking for full path expansion of CC... " >&6; } if test "$gasnet_cv__gfp_fullprogname_CC" != "" ; then CC="$gasnet_cv__gfp_fullprogname_CC $gasnet_gfp_progargs" fi { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } fi fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GETFULLPATH(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for working C compiler" >&5 $as_echo_n "checking for working C compiler... " >&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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then echo echo "configure error: Your C compiler is broken - reported success when it should have failed" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { printf("hi\n"); exit(0); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* 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 { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then echo echo "configure error: Your C linker is broken - reported success when it should have failed" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { printf("hi\n"); exit(0); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : else $as_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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } { $as_echo "$as_me:$LINENO: checking if user enabled cross-compile" >&5 $as_echo_n "checking if user enabled cross-compile... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(cross-compile,...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # Check whether --enable-cross-compile was given. if test "${enable_cross_compile+set}" = set; then enableval=$enable_cross_compile; fi case "$enable_cross_compile" in '' | no) : { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } cross_compiling=no CROSS_COMPILING=0 ac_cv_prog_cc_cross=no { $as_echo "$as_me:$LINENO: checking working C compiler executables" >&5 $as_echo_n "checking working C compiler executables... " >&6; } if test "$cross_compiling" = yes; then echo echo "configure error: Internal configure error - please report" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main(void) { return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi ;; *) { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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) { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_BIGENDIAN() vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$cross_compiling" = "no" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_RUN_EXPR(whether byte ordering is bigendian ,c_bigendian,...) vvvvvvvvvvvvvvvvvvvvvv (L:2) { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian " >&5 $as_echo_n "checking whether byte ordering is bigendian ... " >&6; } if test "${gasnet_cv_c_bigendian+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then { { $as_echo "$as_me:$LINENO: error: no default value for cross compiling" >&5 $as_echo "$as_me: error: no default value for cross compiling" >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "confdefs.h" #include #include int main(void) { 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 { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gasnet_cv_c_bigendian=`cat conftestval` else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) gasnet_cv_c_bigendian=no fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_c_bigendian" >&5 $as_echo "$gasnet_cv_c_bigendian" >&6; } if test "$gasnet_cv_c_bigendian" != no; then : WORDS_BIGENDIAN=$gasnet_cv_c_bigendian fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_RUN_EXPR(whether byte ordering is bigendian ,c_bigendian,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) else { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian (binary probe) " >&5 $as_echo_n "checking whether byte ordering is bigendian (binary probe) ... " >&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(void) { foo(); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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.${ac_objext} ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") 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_objext}" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") ^^^^^^^^^^^^^^^^^^^^^^ (L:3) mv conftest.${ac_objext} $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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: error building endian probe" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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(void) { foo(); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: error building endian probe" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi { $as_echo "$as_me:$LINENO: result: $WORDS_BIGENDIAN" >&5 $as_echo "$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 echo "configure error: Inconsistent results from endian probe" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_BIGENDIAN() ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # Extract the first word of "mpcc_r", so it can be a program name with args. set dummy mpcc_r; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_have_mpcc_r+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$have_mpcc_r"; then ac_cv_prog_have_mpcc_r="$have_mpcc_r" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_have_mpcc_r="yes" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_have_mpcc_r" && ac_cv_prog_have_mpcc_r="no" fi fi have_mpcc_r=$ac_cv_prog_have_mpcc_r if test -n "$have_mpcc_r"; then { $as_echo "$as_me:$LINENO: result: $have_mpcc_r" >&5 $as_echo "$have_mpcc_r" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi ## specific compiler families # vvvvvvvvvvvvvvvvvvvvvv GASNET_FAMILY_CACHE_CHECK(C,CC,gasnet_cv_cc_family) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for C compiler family" >&5 $as_echo_n "checking for C compiler family... " >&6; } if test "${gasnet_cv_cc_family+set}" = set; then $as_echo_n "(cached) " >&6 else if test "CC" = "CC" ; then _GASNET_FAMILY_CACHE_CHECK_PREPROC="$CPP" else _GASNET_FAMILY_CACHE_CHECK_PREPROC="$CXXCPP" fi if test "`echo '$_GASNET_FAMILY_CACHE_CHECK_PREPROC' | grep '$C'`" = "" ; then # preprocessor may differ from true compiler, so force full compilation testing _force_compile=1 else _force_compile= fi gasnet_cv_cc_family=unknown if test "$gasnet_cv_cc_family" = "unknown"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__xlC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test -z "$_force_compile" ; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __xlC__ # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=XLC else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=XLC else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__xlC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi if test "$gasnet_cv_cc_family" = "unknown"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(_CRAYC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test -z "$_force_compile" ; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef _CRAYC # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=Cray else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=Cray else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(_CRAYC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi if test "$gasnet_cv_cc_family" = "unknown"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__GNUC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test -z "$_force_compile" ; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __GNUC__ # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=GNU else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=GNU else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err 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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __PATHCC__ # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=Pathscale else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=Pathscale else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err 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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __PGI # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=PGI else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=PGI else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err 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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __INTEL_COMPILER # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=Intel else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=Intel else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__INTEL_COMPILER,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi if test "$gasnet_cv_cc_family" = "unknown"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__DECC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test -z "$_force_compile" ; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __DECC # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=Compaq else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=Compaq else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err 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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __DECCXX # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=Compaq else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=Compaq else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__DECCXX,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # Compaq C++ fi if test "$gasnet_cv_cc_family" = "unknown"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__SUNPRO_C,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test -z "$_force_compile" ; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __SUNPRO_C # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=Sun else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=Sun else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err 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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __SUNPRO_CC # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=Sun else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=Sun else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__SUNPRO_CC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # Sun C++ fi if test "$gasnet_cv_cc_family" = "unknown"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__HP_cc,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test -z "$_force_compile" ; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __HP_cc # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=HP else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=HP else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err 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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __HP_aCC # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=HP else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=HP else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__HP_aCC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # HP aCC (C++) fi if test "$gasnet_cv_cc_family" = "unknown"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(_SGI_COMPILER_VERSION,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test -z "$_force_compile" ; then cat >conftest.$ac_ext <<_ACEOF /* 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 { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=MIPS else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=MIPS else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(_SGI_COMPILER_VERSION,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi if test "$gasnet_cv_cc_family" = "unknown"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__MTA__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test -z "$_force_compile" ; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __MTA__ # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=MTA else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=MTA else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__MTA__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi if test "$gasnet_cv_cc_family" = "unknown"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__KCC,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test -z "$_force_compile" ; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __KCC # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=KAI else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=KAI else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__KCC,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi if test "$gasnet_cv_cc_family" = "unknown"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__TINYC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test -z "$_force_compile" ; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __TINYC__ # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=TINY else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=TINY else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__TINYC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi if test "$gasnet_cv_cc_family" = "unknown"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(__LCC__,...,$_force_compile) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test -z "$_force_compile" ; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __LCC__ # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=LCC else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=LCC else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__LCC__,...,$_force_compile) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi if test "$gasnet_cv_cc_family" = "unknown"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_IFDEF(_SX,...,) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test -z "" ; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef _SX # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=NEC else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=NEC else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err 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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __sgi # error #endif _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then gasnet_cv_cc_family=MIPS else $as_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 /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_family=MIPS else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IFDEF(__sgi,...,) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # MIPSPro 7.3.0 and earlier fi fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_cc_family" >&5 $as_echo "$gasnet_cv_cc_family" >&6; } if test "$gasnet_cv_cc_family" != "GNU" ; then case CC in CC) ac_cv_c_compiler_gnu=no GCC="" ;; CXX) ac_cv_cxx_compiler_gnu=no GXX="" ;; esac fi CC_FAMILY=$gasnet_cv_cc_family CC_UNWRAPPED=$CC case $gasnet_cv_cc_family in GNU) CC_WRAPPED=$CC ;; *) CC_WRAPPED="\$(top_builddir)/cc-wrapper \$(CC_FAMILY) \$(CC_UNWRAPPED)" ;; esac cc_wrapper_mk="cc-wrapper.mk" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FAMILY_CACHE_CHECK(C,CC,gasnet_cv_cc_family) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ## compiler family early initialization case "$gasnet_cv_cc_family" in GNU) # vvvvvvvvvvvvvvvvvvvvvv GASNET_GCC_VERSION_CHECK(CC) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for known buggy compilers" >&5 $as_echo_n "checking for known buggy compilers... " >&6; } badgccmsg="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if __GNUC__ == 2 && __GNUC_MINOR__ == 96 && __GNUC_PATCHLEVEL__ == 0 # error #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: CC is gcc 2.96" >&5 $as_echo "CC is gcc 2.96" >&6; } badgccmsg="Use of gcc/g++ 2.96 for compiling this software is strongly discouraged. \ It is not an official GNU release and has many serious known bugs, especially \ in the optimizer, which may lead to bad code and incorrect runtime behavior. \ Consider using \$CC to select a different compiler." # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(allow-gcc296,...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # Check whether --enable-allow-gcc296 was given. if test "${enable_allow_gcc296+set}" = set; then enableval=$enable_allow_gcc296; fi case "$enable_allow_gcc296" in '' | no) : { { $as_echo "$as_me:$LINENO: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc296 flag." >&5 $as_echo "$as_me: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc296 flag." >&2;} { (exit 1); exit 1; }; } ;; *) # vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:3) { $as_echo "$as_me:$LINENO: WARNING: $badgccmsg" >&5 $as_echo "$as_me: WARNING: $badgccmsg" >&2;} echo "$badgccmsg" >> ".gasnet_cv_configure_warnings.tmp" echo " " >> ".gasnet_cv_configure_warnings.tmp" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:3) ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(allow-gcc296,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if __GNUC__ == 3 && __GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ <= 2 # error #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: CC is gcc 3.2.0-2" >&5 $as_echo "CC is gcc 3.2.0-2" >&6; } badgccmsg="Use of gcc/g++ 3.2.0-2 for compiling this software is strongly discouraged. \ This version has a serious known bug in the optimizer regarding structure copying, \ which may lead to bad code and incorrect runtime behavior when optimization is enabled. \ Consider using \$CC to select a different compiler." # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(allow-gcc32,...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # Check whether --enable-allow-gcc32 was given. if test "${enable_allow_gcc32+set}" = set; then enableval=$enable_allow_gcc32; fi case "$enable_allow_gcc32" in '' | no) : { { $as_echo "$as_me:$LINENO: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc32 flag." >&5 $as_echo "$as_me: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc32 flag." >&2;} { (exit 1); exit 1; }; } ;; *) # vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:3) { $as_echo "$as_me:$LINENO: WARNING: $badgccmsg" >&5 $as_echo "$as_me: WARNING: $badgccmsg" >&2;} echo "$badgccmsg" >> ".gasnet_cv_configure_warnings.tmp" echo " " >> ".gasnet_cv_configure_warnings.tmp" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:3) ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(allow-gcc32,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if __GNUC__ == 4 && __GNUC_MINOR__ < 3 # error #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: CC is gcc 4.x, for x < 3" >&5 $as_echo "CC is gcc 4.x, for x < 3" >&6; } badgccmsg="Use of gcc/g++ 4.0, 4.1 or 4.2 for compiling this software is strongly discouraged. \ These versions have a known bug in the optimizer regarding aliasing analysis which may lead \ to bad code and incorrect runtime behavior when optimization is enabled. \ Consider using \$CC to select a different compiler." # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(allow-gcc4,...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # Check whether --enable-allow-gcc4 was given. if test "${enable_allow_gcc4+set}" = set; then enableval=$enable_allow_gcc4; fi case "$enable_allow_gcc4" in '' | no) : { { $as_echo "$as_me:$LINENO: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc4 flag.\ If you do so, please see the documentation on --enable-conservative-local-copy for a possible \ work around for the gcc-4.x bug." >&5 $as_echo "$as_me: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc4 flag.\ If you do so, please see the documentation on --enable-conservative-local-copy for a possible \ work around for the gcc-4.x bug." >&2;} { (exit 1); exit 1; }; } ;; *) # vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:3) { $as_echo "$as_me:$LINENO: WARNING: $badgccmsg" >&5 $as_echo "$as_me: WARNING: $badgccmsg" >&2;} echo "$badgccmsg" >> ".gasnet_cv_configure_warnings.tmp" echo " " >> ".gasnet_cv_configure_warnings.tmp" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:3) ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(allow-gcc4,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test -z "$badgccmsg"; then { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_GCC_VERSION_CHECK(CC) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ;; MTA) # override target_os for MTA, which may be wrong if cross-compiling target_os="mtx" ;; esac if test "$cross_compiling" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define GASNETI_CROSS_COMPILING 1 _ACEOF fi ## discover bit width { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if test "${ac_cv_path_GREP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:$LINENO: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if test "${ac_cv_path_EGREP+set}" = set; then $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err 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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #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)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 $as_echo "$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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* 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 { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_SIZEOF(void *,) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$cross_compiling" = "yes" ; then SIZEOF_VOID_P= # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(void *) (binary probe),SIZEOF_VOID_P,...) vvvvvvvvvvvvvvvvvvvvvv (L:2) { $as_echo "$as_me:$LINENO: checking sizeof(void *) (binary probe)" >&5 $as_echo_n "checking sizeof(void *) (binary probe)... " >&6; } if test "${gasnet_cv_SIZEOF_VOID_P+set}" = set; then $as_echo_n "(cached) " >&6 else gasnet_cv_SIZEOF_VOID_P="" # vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include 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(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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.${ac_objext} ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") 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_objext}" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") ^^^^^^^^^^^^^^^^^^^^^^ (L:4) mv conftest.${ac_objext} $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_SIZEOF_VOID_P=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while compile extracting sizeof(void *)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) if test -z "$gasnet_cv_SIZEOF_VOID_P" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include 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(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_echo "$as_me: error: failed to write conftest.$ac_ext" >&2;} { (exit 1); exit 1; }; } fi if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && \ test -f conftest$ac_exeext ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then _pushcnt_GASNET_EXAMINE_BIN=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${GASNET_EXAMINE_BIN+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1` _total_pushcnt=`expr $_total_pushcnt + 1` GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:4) mv conftest$ac_exeext $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_SIZEOF_VOID_P=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while link extracting sizeof(void *)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) fi fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_SIZEOF_VOID_P" >&5 $as_echo "$gasnet_cv_SIZEOF_VOID_P" >&6; } if test -n "$gasnet_cv_SIZEOF_VOID_P" ; then SIZEOF_VOID_P=$gasnet_cv_SIZEOF_VOID_P fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(void *) (binary probe),SIZEOF_VOID_P,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) if test -z "$SIZEOF_VOID_P" ; then # last resort is to use CROSS var # vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(SIZEOF_VOID_P,SIZEOF_VOID_P) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$cross_compiling" = "yes" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_SIZEOF_VOID_P,) vvvvvvvvvvvvvvvvvvvvvv (L:3) { $as_echo "$as_me:$LINENO: checking for CROSS_SIZEOF_VOID_P in environment" >&5 $as_echo_n "checking for CROSS_SIZEOF_VOID_P in environment... " >&6; } envval_src_CROSS_SIZEOF_VOID_P="cached" if test "${gasnet_cv_envvar_CROSS_SIZEOF_VOID_P+set}" = set; then $as_echo_n "(cached) " >&6 else case "${CROSS_SIZEOF_VOID_P-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_void_p" != ""; then gasnet_cv_envvar_CROSS_SIZEOF_VOID_P="$with_cross_sizeof_void_p" envval_src_CROSS_SIZEOF_VOID_P=given else gasnet_cv_envvar_CROSS_SIZEOF_VOID_P="" envval_src_CROSS_SIZEOF_VOID_P=default fi ;; *) gasnet_cv_envvar_CROSS_SIZEOF_VOID_P="$CROSS_SIZEOF_VOID_P" envval_src_CROSS_SIZEOF_VOID_P=given esac fi CROSS_SIZEOF_VOID_P="$gasnet_cv_envvar_CROSS_SIZEOF_VOID_P" case "$envval_src_CROSS_SIZEOF_VOID_P" in 'cached') { $as_echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_VOID_P\"" >&5 $as_echo "using cached value \"$CROSS_SIZEOF_VOID_P\"" >&6; } ;; 'default') { $as_echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_VOID_P\"" >&5 $as_echo "no, defaulting to \"$CROSS_SIZEOF_VOID_P\"" >&6; } ;; 'given') { $as_echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_VOID_P\"" >&5 $as_echo "yes, using \"$CROSS_SIZEOF_VOID_P\"" >&6; } ;; *) echo echo "configure error: _GASNET_ENV_DEFAULT broken" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_SIZEOF_VOID_P,) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) if test "$CROSS_SIZEOF_VOID_P" = "" ; then { { $as_echo "$as_me:$LINENO: error: This configure script requires \$CROSS_SIZEOF_VOID_P be set for cross-compilation" >&5 $as_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 { $as_echo "$as_me:$LINENO: checking size:" >&5 $as_echo_n "checking size:... " >&6; } fi # The cast to long int 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. { $as_echo "$as_me:$LINENO: checking size of void *" >&5 $as_echo_n "checking size of void *... " >&6; } if test "${ac_cv_sizeof_void_p+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (void *))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (void *))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else $as_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 core conftest.err conftest.$ac_objext conftest.$ac_ext done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (void *))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (void *))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else $as_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 core conftest.err conftest.$ac_objext conftest.$ac_ext done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err 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 /* 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 int) (sizeof (void *))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_void_p=$ac_lo;; '') if test "$ac_cv_type_void_p" = yes; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute sizeof (void *) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }; } else ac_cv_sizeof_void_p=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default static long int longval () { return (long int) (sizeof (void *)); } static unsigned long int ulongval () { return (long int) (sizeof (void *)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (void *))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (void *)))) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (void *)))) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_void_p=`cat conftest.val` else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_void_p" = yes; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *) See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute sizeof (void *) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }; } else ac_cv_sizeof_void_p=0 fi fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 $as_echo "$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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_void_p" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 echo "configure error: failed to find sizeof(void *)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi if test "" != ""; then ac_cv_SIZEOF_VOID_P_indirect=SIZEOF_VOID_P cat >>confdefs.h <<_ACEOF #define $ac_cv_SIZEOF_VOID_P_indirect $SIZEOF_VOID_P _ACEOF fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_SIZEOF(void *,) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) GASNETI_PTR_BITS=`expr $SIZEOF_VOID_P \* 8` ### # # choose the default CC flags # NOTE: we intentionally *overwrite* CFLAGS with reasonable, well-tested values, # to avoid picking up bad default flags from AC_PROG_CC or the default user environment # Users who want to insert a specific compiler flag for all builds should append it to $CC case "$gasnet_cv_cc_family" in GNU) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"-O3") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="-O3" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"-O3") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # prefer the --param inliner option(s), which give us finer control # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(--param max-inline-insns-single=35000) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param max-inline-insns-single=35000") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS --param max-inline-insns-single=35000" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param max-inline-insns-single=35000") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag --param max-inline-insns-single=35000" >&5 $as_echo_n "checking for C compiler flag --param max-inline-insns-single=35000... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS --param max-inline-insns-single=35000" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(--param max-inline-insns=100000) vvvvvvvvvvvvvvvvvvvvvv (L:4) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param max-inline-insns=100000") vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS --param max-inline-insns=100000" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param max-inline-insns=100000") ^^^^^^^^^^^^^^^^^^^^^^ (L:5) { $as_echo "$as_me:$LINENO: checking for C compiler flag --param max-inline-insns=100000" >&5 $as_echo_n "checking for C compiler flag --param max-inline-insns=100000... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:7) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) CFLAGS="$CFLAGS --param max-inline-insns=100000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:7) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS --param max-inline-insns=100000" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:7) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(--param max-inline-insns=100000) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-finline-limit=10000) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -finline-limit=10000") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -finline-limit=10000" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -finline-limit=10000") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -finline-limit=10000" >&5 $as_echo_n "checking for C compiler flag -finline-limit=10000... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -finline-limit=10000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -finline-limit=10000" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-finline-limit=10000) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS --param max-inline-insns-single=35000" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(--param max-inline-insns=100000) vvvvvvvvvvvvvvvvvvvvvv (L:6) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param max-inline-insns=100000") vvvvvvvvvvvvvvvvvvvvvv (L:7) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS --param max-inline-insns=100000" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param max-inline-insns=100000") ^^^^^^^^^^^^^^^^^^^^^^ (L:7) { $as_echo "$as_me:$LINENO: checking for C compiler flag --param max-inline-insns=100000" >&5 $as_echo_n "checking for C compiler flag --param max-inline-insns=100000... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) CFLAGS="$CFLAGS --param max-inline-insns=100000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS --param max-inline-insns=100000" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(--param max-inline-insns=100000) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-finline-limit=10000) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -finline-limit=10000") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -finline-limit=10000" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -finline-limit=10000") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -finline-limit=10000" >&5 $as_echo_n "checking for C compiler flag -finline-limit=10000... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -finline-limit=10000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -finline-limit=10000" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-finline-limit=10000) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-finline-limit=10000) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -finline-limit=10000") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -finline-limit=10000" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -finline-limit=10000") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -finline-limit=10000" >&5 $as_echo_n "checking for C compiler flag -finline-limit=10000... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -finline-limit=10000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -finline-limit=10000" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-finline-limit=10000) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(--param max-inline-insns-single=35000) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # gcc 3.4+ require new flags to enable full inlining # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(--param inline-unit-growth=10000) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param inline-unit-growth=10000") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS --param inline-unit-growth=10000" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param inline-unit-growth=10000") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag --param inline-unit-growth=10000" >&5 $as_echo_n "checking for C compiler flag --param inline-unit-growth=10000... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS --param inline-unit-growth=10000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS --param inline-unit-growth=10000" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(--param inline-unit-growth=10000) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(--param large-function-growth=200000) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param large-function-growth=200000") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS --param large-function-growth=200000" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS --param large-function-growth=200000") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag --param large-function-growth=200000" >&5 $as_echo_n "checking for C compiler flag --param large-function-growth=200000... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS --param large-function-growth=200000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS --param large-function-growth=200000" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(--param large-function-growth=200000) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # We'd like to use -Winline to detect call sites where the optimizer # ignores our inline function modifier (usually due to technical limitations) # However, some versions of gcc issue spurious warnings with -Winline # for inlining operations which the user did not request. # Detect that gcc bug and avoid -Winline for those versions # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Winline) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Winline") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Winline" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Winline") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Winline" >&5 $as_echo_n "checking for C compiler flag -Winline... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) noninlineCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Winline" { $as_echo "$as_me:$LINENO: checking for buggy -Winline" >&5 $as_echo_n "checking for buggy -Winline... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } # keep -Winline else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: buggy" >&5 $as_echo "buggy" >&6; } CFLAGS="$noninlineCFLAGS" # remove -Winline else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } # keep -Winline else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: buggy" >&5 $as_echo "buggy" >&6; } CFLAGS="$noninlineCFLAGS" # remove -Winline fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: failure when detecting buggy -Winline" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } noninlineCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Winline" { $as_echo "$as_me:$LINENO: checking for buggy -Winline" >&5 $as_echo_n "checking for buggy -Winline... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:6) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } # keep -Winline else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: buggy" >&5 $as_echo "buggy" >&6; } CFLAGS="$noninlineCFLAGS" # remove -Winline else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } # keep -Winline else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: buggy" >&5 $as_echo "buggy" >&6; } CFLAGS="$noninlineCFLAGS" # remove -Winline fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: failure when detecting buggy -Winline" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Winline) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) CCOPTFLAGS="$CFLAGS" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ;; Pathscale) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"-O3") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="-O3" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"-O3") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # We'd like to use -Winline (for the same reasons as with gcc). # However, some installations have been observed to complain # on every inline keyword, due to -fno-inline being inserted # by the compiler driver. Avoid using -Winline in such a case. # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Winline) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Winline") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Winline" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Winline") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Winline" >&5 $as_echo_n "checking for C compiler flag -Winline... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) noninlineCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Winline" { $as_echo "$as_me:$LINENO: checking for -Winline flags conflict" >&5 $as_echo_n "checking for -Winline flags conflict... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } # keep -Winline else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: conflict" >&5 $as_echo "conflict" >&6; } CFLAGS="$noninlineCFLAGS" # remove -Winline else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } # keep -Winline else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: conflict" >&5 $as_echo "conflict" >&6; } CFLAGS="$noninlineCFLAGS" # remove -Winline fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: failure when detecting -Winline conflict" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } noninlineCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Winline" { $as_echo "$as_me:$LINENO: checking for -Winline flags conflict" >&5 $as_echo_n "checking for -Winline flags conflict... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:6) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } # keep -Winline else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: conflict" >&5 $as_echo "conflict" >&6; } CFLAGS="$noninlineCFLAGS" # remove -Winline else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } # keep -Winline else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: conflict" >&5 $as_echo "conflict" >&6; } CFLAGS="$noninlineCFLAGS" # remove -Winline fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: failure when detecting -Winline conflict" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Winline) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) CCOPTFLAGS="$CFLAGS" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ;; Sun) if test "$GASNETI_PTR_BITS" = 64; then # -fast => -xarch=v8 which clobbers user's 64-bit choice SUN_ARCH_FLAG=`echo "$CC $CFLAGS" | $PERL -ne 'foreach(split(/ /,$_)) { print "$_" if (m/^-xarch/);}'` else SUN_ARCH_FLAG= fi CCOPTFLAGS="-fast $SUN_ARCH_FLAG -xO5" ;; Cray) CCOPTFLAGS="-O2" ;; # DOB: -O3 is unstable on Cray cc HP) CCOPTFLAGS="-O3" ;; MIPS) CCOPTFLAGS="-O3" ;; XLC) case "$target_os" in darwin*) # enabling ipa (-O4 or higher) breaks linking to MPI (and thus vapi). case `/usr/sbin/sysctl hw.cpusubtype | cut '-d ' -f2` in # bug926: on G5 (cpusubtype 100) -qarch={ppc970,auto} causes corruption of 64-bit integer arithmetic 100) CCOPTFLAGS="-O3 -qhot -qarch=g5 -qtune=auto -qthreaded -qnosmp -qmaxmem=-1" ;; *) CCOPTFLAGS="-O3 -qhot -qarch=auto -qtune=auto -qthreaded -qnosmp -qmaxmem=-1" ;; esac ;; linux*) CCOPTFLAGS="-O3 -qarch=auto -qtune=auto -qthreaded -qnosmp -qmaxmem=-1";; *) #CCOPTFLAGS="-O5 -qthreaded -qnosmp -qmaxmem=-1" ;; # -O5 == -O3 w/ intra-procedural analysis, maxmem=-1 is default for -O3 or higher CCOPTFLAGS="-O3 -qarch=auto -qtune=auto -qthreaded -qnosmp -qmaxmem=-1" ;; # -O5 causes linker to hang on Titanium esac # If $CC sets -q, then remove conflicting options from CCOPTFLAGS for flag in arch tune hot threaded smp; do if echo "$CC" | grep "q\(no\)\?${flag}" >/dev/null; then CCOPTFLAGS=`echo "$CCOPTFLAGS" | sed -e "s/-q\(no\)\?${flag}\(=[a-z0-9_]*\)\?//"` fi done ;; Compaq) CCOPTFLAGS="-fast -noifo -O4 -tune host -inline all" ;; Intel) CCOPTFLAGS="-O3" ;; MTA) CCOPTFLAGS="-O3" ;; # MTA C actually ignores -O, optimization controlled by presence/absence of -g PGI) CCOPTFLAGS="-O2" ;; TINY) CCOPTFLAGS="" # optimization not supported SEPARATE_CC=1 # force separate compilation - multiple -c compilation not supported ;; *) CCOPTFLAGS="-O" ;; esac case "$gasnet_cv_cc_family" in GNU) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"-g3") 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="-g3" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"-g3") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wall) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wall") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wall" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wall") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wall" >&5 $as_echo_n "checking for C compiler flag -Wall... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wall" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wall" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wall) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-unused) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-unused") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-unused" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-unused") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wno-unused" >&5 $as_echo_n "checking for C compiler flag -Wno-unused... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wno-unused" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wno-unused" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-unused) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-address) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-address") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-address" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-address") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wno-address" >&5 $as_echo_n "checking for C compiler flag -Wno-address... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wno-address" 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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wno-address" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-address) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wpointer-arith) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wpointer-arith") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wpointer-arith" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wpointer-arith") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wpointer-arith" >&5 $as_echo_n "checking for C compiler flag -Wpointer-arith... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wpointer-arith" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wpointer-arith" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wpointer-arith) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wnested-externs) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wnested-externs") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wnested-externs" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wnested-externs") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wnested-externs" >&5 $as_echo_n "checking for C compiler flag -Wnested-externs... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wnested-externs" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wnested-externs" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wnested-externs) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wwrite-strings) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wwrite-strings") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wwrite-strings" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wwrite-strings") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wwrite-strings" >&5 $as_echo_n "checking for C compiler flag -Wwrite-strings... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wwrite-strings" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wwrite-strings" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wwrite-strings) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wdeclaration-after-statement) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wdeclaration-after-statement") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wdeclaration-after-statement" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wdeclaration-after-statement") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wdeclaration-after-statement" >&5 $as_echo_n "checking for C compiler flag -Wdeclaration-after-statement... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wdeclaration-after-statement" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wdeclaration-after-statement" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wdeclaration-after-statement) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wmissing-format-attribute) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wmissing-format-attribute") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wmissing-format-attribute" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wmissing-format-attribute") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wmissing-format-attribute" >&5 $as_echo_n "checking for C compiler flag -Wmissing-format-attribute... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wmissing-format-attribute" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wmissing-format-attribute" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wmissing-format-attribute) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$use_pthreads" != "no" ; then # some crappy pthread mutex implementations generate warnings without -Wno-missing-braces { $as_echo "$as_me:$LINENO: checking for buggy pthread.h mutex initializers" >&5 $as_echo_n "checking for buggy pthread.h mutex initializers... " >&6; } oldCFLAGS="$CFLAGS" # OSF and FREEBSD require the -pthread compiler flag when including pthread.h case "$target_os" in osf*) CFLAGS="-pthread $CFLAGS" ;; freebsd*) CFLAGS="-pthread $CFLAGS" ;; esac # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile < int main(void) { pthread_mutex_t fastmutex = PTHREAD_MUTEX_INITIALIZER; ; return 0; } EOF # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3) echo \"$gasnet_compile_cmd\" >&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: buggy" >&5 $as_echo "buggy" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-missing-braces) vvvvvvvvvvvvvvvvvvvvvv (L:6) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-missing-braces") vvvvvvvvvvvvvvvvvvvvvv (L:7) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-missing-braces" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-missing-braces") ^^^^^^^^^^^^^^^^^^^^^^ (L:7) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wno-missing-braces" >&5 $as_echo_n "checking for C compiler flag -Wno-missing-braces... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) oldCFLAGS="$oldCFLAGS -Wno-missing-braces" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } oldCFLAGS="$oldCFLAGS -Wno-missing-braces" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-missing-braces) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: buggy" >&5 $as_echo "buggy" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-missing-braces) vvvvvvvvvvvvvvvvvvvvvv (L:6) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-missing-braces") vvvvvvvvvvvvvvvvvvvvvv (L:7) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-missing-braces" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-missing-braces") ^^^^^^^^^^^^^^^^^^^^^^ (L:7) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wno-missing-braces" >&5 $as_echo_n "checking for C compiler flag -Wno-missing-braces... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) oldCFLAGS="$oldCFLAGS -Wno-missing-braces" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } oldCFLAGS="$oldCFLAGS -Wno-missing-braces" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-missing-braces) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 #bug611: ignore failures here, which may be due to broken/missing pthreads support #AC_MSG_ERROR(failure while checking for buggy pthread.h mutexes) { $as_echo "$as_me:$LINENO: result: failure - ignored" >&5 $as_echo "failure - ignored" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) CFLAGS="$oldCFLAGS" fi case "$target_os" in solaris*) # hide pragma warnings in system header files included by absolute path # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-unknown-pragmas) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-unknown-pragmas") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-unknown-pragmas" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-unknown-pragmas") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wno-unknown-pragmas" >&5 $as_echo_n "checking for C compiler flag -Wno-unknown-pragmas... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wno-unknown-pragmas" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wno-unknown-pragmas" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-unknown-pragmas) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) esac #GASNET_TRY_CFLAG([-ansi -U__STRICT_ANSI__],[[C]FLAGS="$[C]FLAGS -ansi -U__STRICT_ANSI__"]) CCDEBUGFLAGS="$CFLAGS" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ;; NEC) CCDEBUGFLAGS="-g -Cnoopt -Cdebug" ;; HP) CCDEBUGFLAGS="-g +ESdbgasm" ;; # need +ESdbgasm to use -g with _asm() MTA) CCDEBUGFLAGS="-g2" ;; # need +ESdbgasm to use -g with _asm() Compaq) CCDEBUGFLAGS="-trapuv -g2" ;; Pathscale) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"-g3 -O0") 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="-g3 -O0" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"-g3 -O0") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # need to explicitly disable optimization # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wall) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wall") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wall" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wall") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wall" >&5 $as_echo_n "checking for C compiler flag -Wall... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wall" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wall" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wall) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-unused) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-unused") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-unused" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-unused") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wno-unused" >&5 $as_echo_n "checking for C compiler flag -Wno-unused... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wno-unused" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wno-unused" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-unused) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-address) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-address") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-address" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-address") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wno-address" >&5 $as_echo_n "checking for C compiler flag -Wno-address... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wno-address" 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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wno-address" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-address) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wpointer-arith) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wpointer-arith") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wpointer-arith" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wpointer-arith") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wpointer-arith" >&5 $as_echo_n "checking for C compiler flag -Wpointer-arith... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wpointer-arith" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wpointer-arith" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wpointer-arith) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wnested-externs) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wnested-externs") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wnested-externs" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wnested-externs") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wnested-externs" >&5 $as_echo_n "checking for C compiler flag -Wnested-externs... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wnested-externs" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wnested-externs" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wnested-externs) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wwrite-strings) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wwrite-strings") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wwrite-strings" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wwrite-strings") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wwrite-strings" >&5 $as_echo_n "checking for C compiler flag -Wwrite-strings... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wwrite-strings" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wwrite-strings" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wwrite-strings) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wdeclaration-after-statement) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wdeclaration-after-statement") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wdeclaration-after-statement" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wdeclaration-after-statement") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wdeclaration-after-statement" >&5 $as_echo_n "checking for C compiler flag -Wdeclaration-after-statement... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wdeclaration-after-statement" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wdeclaration-after-statement" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wdeclaration-after-statement) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wmissing-format-attribute) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wmissing-format-attribute") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wmissing-format-attribute" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wmissing-format-attribute") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wmissing-format-attribute" >&5 $as_echo_n "checking for C compiler flag -Wmissing-format-attribute... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wmissing-format-attribute" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wmissing-format-attribute" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wmissing-format-attribute) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$use_pthreads" != "no" ; then # some crappy pthread mutex implementations generate warnings without -Wno-missing-braces { $as_echo "$as_me:$LINENO: checking for buggy pthread.h mutex initializers" >&5 $as_echo_n "checking for buggy pthread.h mutex initializers... " >&6; } oldCFLAGS="$CFLAGS" # OSF and FREEBSD require the -pthread compiler flag when including pthread.h case "$target_os" in osf*) CFLAGS="-pthread $CFLAGS" ;; freebsd*) CFLAGS="-pthread $CFLAGS" ;; esac # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile < int main(void) { pthread_mutex_t fastmutex = PTHREAD_MUTEX_INITIALIZER; ; return 0; } EOF # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3) echo \"$gasnet_compile_cmd\" >&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: buggy" >&5 $as_echo "buggy" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-missing-braces) vvvvvvvvvvvvvvvvvvvvvv (L:6) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-missing-braces") vvvvvvvvvvvvvvvvvvvvvv (L:7) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-missing-braces" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-missing-braces") ^^^^^^^^^^^^^^^^^^^^^^ (L:7) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wno-missing-braces" >&5 $as_echo_n "checking for C compiler flag -Wno-missing-braces... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) oldCFLAGS="$oldCFLAGS -Wno-missing-braces" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } oldCFLAGS="$oldCFLAGS -Wno-missing-braces" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-missing-braces) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: buggy" >&5 $as_echo "buggy" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-missing-braces) vvvvvvvvvvvvvvvvvvvvvv (L:6) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-missing-braces") vvvvvvvvvvvvvvvvvvvvvv (L:7) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-missing-braces" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-missing-braces") ^^^^^^^^^^^^^^^^^^^^^^ (L:7) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wno-missing-braces" >&5 $as_echo_n "checking for C compiler flag -Wno-missing-braces... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:7) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) oldCFLAGS="$oldCFLAGS -Wno-missing-braces" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:9) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } oldCFLAGS="$oldCFLAGS -Wno-missing-braces" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:10) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:9) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:9) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:8) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:7) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-missing-braces) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 #bug611: ignore failures here, which may be due to broken/missing pthreads support #AC_MSG_ERROR(failure while checking for buggy pthread.h mutexes) { $as_echo "$as_me:$LINENO: result: failure - ignored" >&5 $as_echo "failure - ignored" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) CFLAGS="$oldCFLAGS" fi case "$target_os" in solaris*) # hide pragma warnings in system header files included by absolute path # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-unknown-pragmas) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-unknown-pragmas") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-unknown-pragmas" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-unknown-pragmas") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wno-unknown-pragmas" >&5 $as_echo_n "checking for C compiler flag -Wno-unknown-pragmas... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) CFLAGS="$CFLAGS -Wno-unknown-pragmas" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } CFLAGS="$CFLAGS -Wno-unknown-pragmas" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-unknown-pragmas) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) esac #GASNET_TRY_CFLAG([-ansi -U__STRICT_ANSI__],[[C]FLAGS="$[C]FLAGS -ansi -U__STRICT_ANSI__"]) CCDEBUGFLAGS="$CFLAGS" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ;; *) CCDEBUGFLAGS="-g" ;; esac # attempt to enable the ultrasparc ISA in MISC_C(XX)FLAGS, and test for related capabilities # flags is compiler options which enable ultrasparc instructions for 32-bit ABI # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_DISABLED(ultrasparc-probe,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --enable-ultrasparc-probe was given. if test "${enable_ultrasparc_probe+set}" = set; then enableval=$enable_ultrasparc_probe; fi case "$enable_ultrasparc_probe" in '' | yes) : ;; *) DISABLE_ULTRASPARC=1 ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_DISABLED(ultrasparc-probe,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # attempt to enable 64-bit inline asm in MISC_C(XX)FLAGS, and test for related capabilities # flags is compiler options which enable ppc64 instructions for 32-bit ABI # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_DISABLED(ppc64-probe,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --enable-ppc64-probe was given. if test "${enable_ppc64_probe+set}" = set; then enableval=$enable_ppc64_probe; fi case "$enable_ppc64_probe" in '' | yes) : ;; *) DISABLE_PPC64=1 ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_DISABLED(ppc64-probe,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # find the proper MISC_CFLAGS/MISC_CPPFLAGS required to work around a known # gcc+hp/ux problem (http://gcc.gnu.org/ml/gcc-bugs/1999-09n/msg00676.html) case "$gasnet_cv_cc_family" in GNU) case "$target_cpu" in sparc) if test "$GASNETI_PTR_BITS" = 32 -a "$DISABLE_ULTRASPARC" != 1; then for flag in "-mcpu=ultrasparc3 -mtune=ultrasparc3" "-mcpu=ultrasparc -mtune=ultrasparc" ; do # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $flag" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag $flag" >&5 $as_echo_n "checking for C compiler flag $flag... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) ultrasparc_flag_worked=1 else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } ultrasparc_flag_worked=0 else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } ultrasparc_flag_worked=1 else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } ultrasparc_flag_worked=0 fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) ultrasparc_flag_worked=0 fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$ultrasparc_flag_worked" = 1; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MISC_CFLAGS $flag" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) { $as_echo "$as_me:$LINENO: checking for working flag $flag" >&5 $as_echo_n "checking for working flag $flag... " >&6; } if test "$cross_compiling" = yes; then ultrasparc_flag_worked=1 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ void foo(void) { #ifdef __GNUC__ register void * addr = 0; register int oldval = 0; register int newval = 1; __asm__ __volatile__ ("cas [%2], %0, %1" : "=&r"(oldval), "=&r"(newval) : "r" (addr) : "memory"); #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) __asm("cas [%i0], %i1, %i2"); #else #error unknown sparc compiler #endif } int main(void) { return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ultrasparc_flag_worked=1 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ultrasparc_flag_worked=0 fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$ultrasparc_flag_worked" = 1; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } MISC_CFLAGS="$flag" break else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi done fi { $as_echo "$as_me:$LINENO: checking for UltraSPARC instruction support" >&5 $as_echo_n "checking for UltraSPARC instruction support... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MISC_CFLAGS" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_ARCH_ULTRASPARC 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_ARCH_ULTRASPARC 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ;; powerpc*) if test "$GASNETI_PTR_BITS" = 32 -a "$DISABLE_PPC64" != 1 -a "$cross_compiling" != "yes"; then # Bug 1587: "for flag in ; do" chokes the shell on Solaris # Bug 1588: Use of m4_ifval(["-force_cpusubtype_ALL" "-Wa,-mppc64"]) to avoid bug 1587 chokes autoconf 2.13 # So, we add a dummy element to keep the for-loop list non-empty, and then skip it. for flag in "-force_cpusubtype_ALL" "-Wa,-mppc64" DUMMY ; do if test "$flag" != DUMMY ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $flag" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag $flag" >&5 $as_echo_n "checking for C compiler flag $flag... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) ppc64_flag_worked=1 else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } ppc64_flag_worked=0 else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } ppc64_flag_worked=1 else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } ppc64_flag_worked=0 fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) ppc64_flag_worked=0 fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$ppc64_flag_worked" = 1; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MISC_CFLAGS $flag" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) { $as_echo "$as_me:$LINENO: checking for working flag $flag" >&5 $as_echo_n "checking for working flag $flag... " >&6; } if test "$cross_compiling" = yes; then ppc64_flag_worked=1 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if defined(__xlC__) static int testme(double *p); #pragma mc_func testme { \\ /* ARGS: r3 = p LOCAL: r4, r5 */ \\ "38a00001" /* li r5,1 */ \\ "38800000" /* li r4,0 */ \\ "f8830000" /* std r4,0(r3) */ \\ "e8a30000" /* ld r5,0(r3) */ \\ "7ca32b78" /* mr r3,r5 */ \\ } #pragma reg_killed_by testme cr0, gr4, gr5 #else static int testme(double *p) { int tmp, result; __asm__ __volatile__ ( "li %2,1 \n\t" "li %1,0 \n\t" "std %1,0(%3) \n\t" "ld %2,0(%3) \n\t" : "=m" (*p), "=&b" (tmp), "=&r" (result) : "b" (p) ); return result; } #endif int main(void) { double x; return testme(&x); } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ppc64_flag_worked=1 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ppc64_flag_worked=0 fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$ppc64_flag_worked" = 1; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } MISC_CFLAGS="$flag" break else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi fi done fi { $as_echo "$as_me:$LINENO: checking for PPC64 instruction support" >&5 $as_echo_n "checking for PPC64 instruction support... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MISC_CFLAGS" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile < #if defined(__xlC__) static int testme(double *p); #pragma mc_func testme { \\ /* ARGS: r3 = p LOCAL: r4, r5 */ \\ "38a00001" /* li r5,1 */ \\ "38800000" /* li r4,0 */ \\ "f8830000" /* std r4,0(r3) */ \\ "e8a30000" /* ld r5,0(r3) */ \\ "7ca32b78" /* mr r3,r5 */ \\ } #pragma reg_killed_by testme cr0, gr4, gr5 #else static int testme(double *p) { int tmp, result; __asm__ __volatile__ ( "li %2,1 \n\t" "li %1,0 \n\t" "std %1,0(%3) \n\t" "ld %2,0(%3) \n\t" : "=m" (*p), "=&b" (tmp), "=&r" (result) : "b" (p) ); return result; } #endif int main(void) { ; return 0; } EOF # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3) echo \"$gasnet_compile_cmd\" >&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : if test "$cross_compiling" = yes; then # Cross compiling. For now just trust PTR_BITS. if test "$GASNETI_PTR_BITS" = 64; then { $as_echo "$as_me:$LINENO: result: yes (cross-compiling w/ 64-bit pointers)" >&5 $as_echo "yes (cross-compiling w/ 64-bit pointers)" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_ARCH_PPC64 1 _ACEOF else { $as_echo "$as_me:$LINENO: result: no (cross-compiling w/ 32-bit pointers)" >&5 $as_echo "no (cross-compiling w/ 32-bit pointers)" >&6; } fi else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if defined(__xlC__) static int testme(double *p); #pragma mc_func testme { \\ /* ARGS: r3 = p LOCAL: r4, r5 */ \\ "38a00001" /* li r5,1 */ \\ "38800000" /* li r4,0 */ \\ "f8830000" /* std r4,0(r3) */ \\ "e8a30000" /* ld r5,0(r3) */ \\ "7ca32b78" /* mr r3,r5 */ \\ } #pragma reg_killed_by testme cr0, gr4, gr5 #else static int testme(double *p) { int tmp, result; __asm__ __volatile__ ( "li %2,1 \n\t" "li %1,0 \n\t" "std %1,0(%3) \n\t" "ld %2,0(%3) \n\t" : "=m" (*p), "=&b" (tmp), "=&r" (result) : "b" (p) ); return result; } #endif int main(void) { double x; return testme(&x); } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_ARCH_PPC64 1 _ACEOF else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) { $as_echo "$as_me:$LINENO: result: no/failure" >&5 $as_echo "no/failure" >&6; } fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then if test "$cross_compiling" = yes; then # Cross compiling. For now just trust PTR_BITS. if test "$GASNETI_PTR_BITS" = 64; then { $as_echo "$as_me:$LINENO: result: yes (cross-compiling w/ 64-bit pointers)" >&5 $as_echo "yes (cross-compiling w/ 64-bit pointers)" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_ARCH_PPC64 1 _ACEOF else { $as_echo "$as_me:$LINENO: result: no (cross-compiling w/ 32-bit pointers)" >&5 $as_echo "no (cross-compiling w/ 32-bit pointers)" >&6; } fi else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if defined(__xlC__) static int testme(double *p); #pragma mc_func testme { \\ /* ARGS: r3 = p LOCAL: r4, r5 */ \\ "38a00001" /* li r5,1 */ \\ "38800000" /* li r4,0 */ \\ "f8830000" /* std r4,0(r3) */ \\ "e8a30000" /* ld r5,0(r3) */ \\ "7ca32b78" /* mr r3,r5 */ \\ } #pragma reg_killed_by testme cr0, gr4, gr5 #else static int testme(double *p) { int tmp, result; __asm__ __volatile__ ( "li %2,1 \n\t" "li %1,0 \n\t" "std %1,0(%3) \n\t" "ld %2,0(%3) \n\t" : "=m" (*p), "=&b" (tmp), "=&r" (result) : "b" (p) ); return result; } #endif int main(void) { double x; return testme(&x); } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_ARCH_PPC64 1 _ACEOF else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) { $as_echo "$as_me:$LINENO: result: no/failure" >&5 $as_echo "no/failure" >&6; } fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ;; ia64) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-mtls-size=64) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -mtls-size=64") 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 -mtls-size=64" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -mtls-size=64") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -mtls-size=64" >&5 $as_echo_n "checking for C compiler flag -mtls-size=64... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) MISC_CFLAGS="$MISC_CFLAGS -mtls-size=64" 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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } MISC_CFLAGS="$MISC_CFLAGS -mtls-size=64" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-mtls-size=64) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ;; esac case "$target_os" in hpux*) { $as_echo "$as_me:$LINENO: checking for Large File support by default" >&5 $as_echo_n "checking for Large File support by default... " >&6; } if test "$cross_compiling" = yes; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 $as_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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #define _LARGEFILE64_SOURCE 1 #include /* Many other headers possible here */ int main(void) { return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then hpux_flag_worked=1 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) hpux_flag_worked=0 fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi if test "$hpux_flag_worked" = 1; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } for flag in "-D__STDC_EXT__=1" ; do # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $flag" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag $flag" >&5 $as_echo_n "checking for C compiler flag $flag... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) hpux_flag_worked=1 else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } hpux_flag_worked=0 else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } hpux_flag_worked=1 else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } hpux_flag_worked=0 fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) hpux_flag_worked=0 fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$hpux_flag_worked" = 1; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MISC_CFLAGS $flag" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$cross_compiling" = yes; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 $as_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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #define _LARGEFILE64_SOURCE 1 #include /* Many other headers possible here */ int main(void) { return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then hpux_flag_worked=1 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) hpux_flag_worked=0 fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$hpux_flag_worked" = 1; then { $as_echo "$as_me:$LINENO: checking for flags required for Large File support" >&5 $as_echo_n "checking for flags required for Large File support... " >&6; } { $as_echo "$as_me:$LINENO: result: $flag" >&5 $as_echo "$flag" >&6; } MISC_CFLAGS="$flag" break; fi fi done if test "$hpux_flag_worked" = 0; then { { $as_echo "$as_me:$LINENO: error: no flags found to allow Large File support" >&5 $as_echo "$as_me: error: no flags found to allow Large File support" >&2;} { (exit 1); exit 1; }; } fi fi ;; esac ;; Cray) case "$target_cpu" in alphaev5) MISC_CFLAGS="-hnomessage=236 -htaskprivate $LIBCM" ;; # T3E *) MISC_CFLAGS="-hnomessage=236 $LIBCM" ;; # X1 esac ;; MIPS) MISC_CFLAGS="-common -diag_error 1035 -diag_suppress1171,1174,1209,1552" # 1035 ensures "#error" is fatal # bug1555: older versions (7.4.0) don't have _Pragma without -c99, but that flag causes incorrect optimizer behavior ;; Compaq) MISC_CFLAGS="-msg_disable extrasemi" ;; HP) MISC_CFLAGS="+W612 +W2111 +W2174 +W2177 +W2236 +W2550 -Wp,-H100000" ;; # -H increases internal preprocessor table size Intel) MISC_CFLAGS="-wd177 -wd279" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-wd1572) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -wd1572") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -wd1572" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -wd1572") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -wd1572" >&5 $as_echo_n "checking for C compiler flag -wd1572... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) MISC_CFLAGS="$MISC_CFLAGS -wd1572" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } MISC_CFLAGS="$MISC_CFLAGS -wd1572" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-wd1572) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ;; NEC) MISC_CFLAGS="-woff=68:111:174:177:236:301:550:940" ;; PGI) MISC_CFLAGS="-Masmkeyword -c9x -Msignextend";; # get inline assembly, restrict and sign-extended narrowing MTA) MISC_CFLAGS="-display_error_number -WS 111,174,238" ;; Sun) if test "$target_cpu" = "sparc"; then if test "$GASNETI_PTR_BITS" = 32 -a "$DISABLE_ULTRASPARC" != 1; then for flag in "-xarch=v8plusb" "-xarch=v8plusa" "-xarch=v8plus" ; do # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $flag" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag $flag" >&5 $as_echo_n "checking for C compiler flag $flag... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) ultrasparc_flag_worked=1 else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } ultrasparc_flag_worked=0 else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } ultrasparc_flag_worked=1 else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } ultrasparc_flag_worked=0 fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) ultrasparc_flag_worked=0 fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$ultrasparc_flag_worked" = 1; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MISC_CFLAGS $flag" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) { $as_echo "$as_me:$LINENO: checking for working flag $flag" >&5 $as_echo_n "checking for working flag $flag... " >&6; } if test "$cross_compiling" = yes; then ultrasparc_flag_worked=1 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ void foo(void) { #ifdef __GNUC__ register void * addr = 0; register int oldval = 0; register int newval = 1; __asm__ __volatile__ ("cas [%2], %0, %1" : "=&r"(oldval), "=&r"(newval) : "r" (addr) : "memory"); #elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) __asm("cas [%i0], %i1, %i2"); #else #error unknown sparc compiler #endif } int main(void) { return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ultrasparc_flag_worked=1 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ultrasparc_flag_worked=0 fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$ultrasparc_flag_worked" = 1; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } MISC_CFLAGS="$flag" break else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi done fi { $as_echo "$as_me:$LINENO: checking for UltraSPARC instruction support" >&5 $as_echo_n "checking for UltraSPARC instruction support... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MISC_CFLAGS" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_ARCH_ULTRASPARC 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_ARCH_ULTRASPARC 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) fi MISC_CFLAGS="$MISC_CFLAGS -errtags" ;; # show warning tag ids in warnings XLC) if test "$GASNETI_PTR_BITS" = 32 -a "$DISABLE_PPC64" != 1 -a "$cross_compiling" != "yes"; then # Bug 1587: "for flag in ; do" chokes the shell on Solaris # Bug 1588: Use of m4_ifval([]) to avoid bug 1587 chokes autoconf 2.13 # So, we add a dummy element to keep the for-loop list non-empty, and then skip it. for flag in DUMMY ; do if test "$flag" != DUMMY ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($flag) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $flag" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag $flag" >&5 $as_echo_n "checking for C compiler flag $flag... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) ppc64_flag_worked=1 else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_CFLAG_TMP="$gasnet_cmd_stdout$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:4) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } ppc64_flag_worked=0 else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } ppc64_flag_worked=1 else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } ppc64_flag_worked=0 fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) ppc64_flag_worked=0 fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$ppc64_flag_worked" = 1; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MISC_CFLAGS $flag" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS $flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) { $as_echo "$as_me:$LINENO: checking for working flag $flag" >&5 $as_echo_n "checking for working flag $flag... " >&6; } if test "$cross_compiling" = yes; then ppc64_flag_worked=1 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if defined(__xlC__) static int testme(double *p); #pragma mc_func testme { \\ /* ARGS: r3 = p LOCAL: r4, r5 */ \\ "38a00001" /* li r5,1 */ \\ "38800000" /* li r4,0 */ \\ "f8830000" /* std r4,0(r3) */ \\ "e8a30000" /* ld r5,0(r3) */ \\ "7ca32b78" /* mr r3,r5 */ \\ } #pragma reg_killed_by testme cr0, gr4, gr5 #else static int testme(double *p) { int tmp, result; __asm__ __volatile__ ( "li %2,1 \n\t" "li %1,0 \n\t" "std %1,0(%3) \n\t" "ld %2,0(%3) \n\t" : "=m" (*p), "=&b" (tmp), "=&r" (result) : "b" (p) ); return result; } #endif int main(void) { double x; return testme(&x); } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ppc64_flag_worked=1 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ppc64_flag_worked=0 fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$ppc64_flag_worked" = 1; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } MISC_CFLAGS="$flag" break else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi fi done fi { $as_echo "$as_me:$LINENO: checking for PPC64 instruction support" >&5 $as_echo_n "checking for PPC64 instruction support... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MISC_CFLAGS" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile < #if defined(__xlC__) static int testme(double *p); #pragma mc_func testme { \\ /* ARGS: r3 = p LOCAL: r4, r5 */ \\ "38a00001" /* li r5,1 */ \\ "38800000" /* li r4,0 */ \\ "f8830000" /* std r4,0(r3) */ \\ "e8a30000" /* ld r5,0(r3) */ \\ "7ca32b78" /* mr r3,r5 */ \\ } #pragma reg_killed_by testme cr0, gr4, gr5 #else static int testme(double *p) { int tmp, result; __asm__ __volatile__ ( "li %2,1 \n\t" "li %1,0 \n\t" "std %1,0(%3) \n\t" "ld %2,0(%3) \n\t" : "=m" (*p), "=&b" (tmp), "=&r" (result) : "b" (p) ); return result; } #endif int main(void) { ; return 0; } EOF # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:3) echo \"$gasnet_compile_cmd\" >&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : if test "$cross_compiling" = yes; then # Cross compiling. For now just trust PTR_BITS. if test "$GASNETI_PTR_BITS" = 64; then { $as_echo "$as_me:$LINENO: result: yes (cross-compiling w/ 64-bit pointers)" >&5 $as_echo "yes (cross-compiling w/ 64-bit pointers)" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_ARCH_PPC64 1 _ACEOF else { $as_echo "$as_me:$LINENO: result: no (cross-compiling w/ 32-bit pointers)" >&5 $as_echo "no (cross-compiling w/ 32-bit pointers)" >&6; } fi else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if defined(__xlC__) static int testme(double *p); #pragma mc_func testme { \\ /* ARGS: r3 = p LOCAL: r4, r5 */ \\ "38a00001" /* li r5,1 */ \\ "38800000" /* li r4,0 */ \\ "f8830000" /* std r4,0(r3) */ \\ "e8a30000" /* ld r5,0(r3) */ \\ "7ca32b78" /* mr r3,r5 */ \\ } #pragma reg_killed_by testme cr0, gr4, gr5 #else static int testme(double *p) { int tmp, result; __asm__ __volatile__ ( "li %2,1 \n\t" "li %1,0 \n\t" "std %1,0(%3) \n\t" "ld %2,0(%3) \n\t" : "=m" (*p), "=&b" (tmp), "=&r" (result) : "b" (p) ); return result; } #endif int main(void) { double x; return testme(&x); } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_ARCH_PPC64 1 _ACEOF else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) { $as_echo "$as_me:$LINENO: result: no/failure" >&5 $as_echo "no/failure" >&6; } fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then if test "$cross_compiling" = yes; then # Cross compiling. For now just trust PTR_BITS. if test "$GASNETI_PTR_BITS" = 64; then { $as_echo "$as_me:$LINENO: result: yes (cross-compiling w/ 64-bit pointers)" >&5 $as_echo "yes (cross-compiling w/ 64-bit pointers)" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_ARCH_PPC64 1 _ACEOF else { $as_echo "$as_me:$LINENO: result: no (cross-compiling w/ 32-bit pointers)" >&5 $as_echo "no (cross-compiling w/ 32-bit pointers)" >&6; } fi else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if defined(__xlC__) static int testme(double *p); #pragma mc_func testme { \\ /* ARGS: r3 = p LOCAL: r4, r5 */ \\ "38a00001" /* li r5,1 */ \\ "38800000" /* li r4,0 */ \\ "f8830000" /* std r4,0(r3) */ \\ "e8a30000" /* ld r5,0(r3) */ \\ "7ca32b78" /* mr r3,r5 */ \\ } #pragma reg_killed_by testme cr0, gr4, gr5 #else static int testme(double *p) { int tmp, result; __asm__ __volatile__ ( "li %2,1 \n\t" "li %1,0 \n\t" "std %1,0(%3) \n\t" "ld %2,0(%3) \n\t" : "=m" (*p), "=&b" (tmp), "=&r" (result) : "b" (p) ); return result; } #endif int main(void) { double x; return testme(&x); } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_ARCH_PPC64 1 _ACEOF else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) { $as_echo "$as_me:$LINENO: result: no/failure" >&5 $as_echo "no/failure" >&6; } fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) MISC_CFLAGS="$MISC_CFLAGS -qsuppress=1500-010:1506-229" # 1500-010 = infinite loop (such as in our tests) # 1506-229 = empty source file (some linux headers) ;; *) MISC_CFLAGS="" ;; esac case "$gasnet_cv_cc_family" in XLC) MISC_CPPFLAGS="-qcpluscmt" ;; # tell preprocessor to allow C++-style comments PGI) MISC_CPPFLAGS="-B" ;; # C++ comments Sun) MISC_CPPFLAGS="-xCC" ;; # C++ comments HP) MISC_CPPFLAGS="+W67" ;; # unrecognized #pragma upc GNU) case "$target_os" in darwin*) # add some options which are specific to the Apple Inc version of gcc # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-no-cpp-precomp) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -no-cpp-precomp") 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 -no-cpp-precomp" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -no-cpp-precomp") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -no-cpp-precomp" >&5 $as_echo_n "checking for C compiler flag -no-cpp-precomp... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) MISC_CPPFLAGS="$MISC_CPPFLAGS -no-cpp-precomp" 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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } MISC_CPPFLAGS="$MISC_CPPFLAGS -no-cpp-precomp" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-no-cpp-precomp) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG(-Wno-long-double) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-long-double") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-long-double" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS -Wno-long-double") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag -Wno-long-double" >&5 $as_echo_n "checking for C compiler flag -Wno-long-double... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) MISC_CPPFLAGS="$MISC_CPPFLAGS -Wno-long-double" 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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } MISC_CPPFLAGS="$MISC_CPPFLAGS -Wno-long-double" else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CFLAG" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG(-Wno-long-double) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ;; esac ;; *) MISC_CPPFLAGS="" ;; esac # Locate system directories for BG/P if expr "$target" : powerpc-bgp-linux >/dev/null; then for ac_prog in bgpmaster do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_bgpmaster+set}" = set; then $as_echo_n "(cached) " >&6 else case $bgpmaster in [\\/]* | ?:[\\/]*) ac_cv_path_bgpmaster="$bgpmaster" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_bgpmaster="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi bgpmaster=$ac_cv_path_bgpmaster if test -n "$bgpmaster"; then { $as_echo "$as_me:$LINENO: result: $bgpmaster" >&5 $as_echo "$bgpmaster" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$bgpmaster" && break done if test -n "$bgpmaster"; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_FOLLOWLINKS(bgpmaster) vvvvvvvvvvvvvvvvvvvvvv (L:1) gasnet_fl_file="$bgpmaster" gasnet_fl_link=`/bin/ls -al "$gasnet_fl_file" | $AWK 'BEGIN{FS=">"}{split($2,A," ") ; print A[1]}'` while test "$gasnet_fl_link"; do gasnet_fl_file="$gasnet_fl_link" gasnet_fl_link=`/bin/ls -al "$gasnet_fl_file" | $AWK 'BEGIN{FS=">"}{split($2,A," ") ; print A[1]}'` done bgpmaster="$gasnet_fl_file" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_FOLLOWLINKS(bgpmaster) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) bgsys_guess=`dirname \`dirname $bgpmaster\`` else bgsys_guess=/bgsys/drivers/ppcfloor fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(BGP_SYS_HOME,$bgsys_guess) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for BGP_SYS_HOME in environment" >&5 $as_echo_n "checking for BGP_SYS_HOME in environment... " >&6; } # Check whether --with-bgp-sys-home was given. if test "${with_bgp_sys_home+set}" = set; then withval=$with_bgp_sys_home; fi envval_src_BGP_SYS_HOME="cached" if test "${gasnet_cv_envvar_BGP_SYS_HOME+set}" = set; then $as_echo_n "(cached) " >&6 else case "${BGP_SYS_HOME-__NOT_SET__}" in __NOT_SET__) if test "$with_bgp_sys_home" != ""; then gasnet_cv_envvar_BGP_SYS_HOME="$with_bgp_sys_home" envval_src_BGP_SYS_HOME=given else gasnet_cv_envvar_BGP_SYS_HOME="$bgsys_guess" envval_src_BGP_SYS_HOME=default fi ;; *) gasnet_cv_envvar_BGP_SYS_HOME="$BGP_SYS_HOME" envval_src_BGP_SYS_HOME=given esac fi BGP_SYS_HOME="$gasnet_cv_envvar_BGP_SYS_HOME" case "$envval_src_BGP_SYS_HOME" in 'cached') { $as_echo "$as_me:$LINENO: result: using cached value \"$BGP_SYS_HOME\"" >&5 $as_echo "using cached value \"$BGP_SYS_HOME\"" >&6; } ;; 'default') { $as_echo "$as_me:$LINENO: result: no, defaulting to \"$BGP_SYS_HOME\"" >&5 $as_echo "no, defaulting to \"$BGP_SYS_HOME\"" >&6; } ;; 'given') { $as_echo "$as_me:$LINENO: result: yes, using \"$BGP_SYS_HOME\"" >&5 $as_echo "yes, using \"$BGP_SYS_HOME\"" >&6; } ;; *) echo echo "configure error: _GASNET_ENV_DEFAULT broken" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(BGP_SYS_HOME,$bgsys_guess) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(BGP_SYS_INCLUDE,$BGP_SYS_HOME/arch/include) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for BGP_SYS_INCLUDE in environment" >&5 $as_echo_n "checking for BGP_SYS_INCLUDE in environment... " >&6; } # Check whether --with-bgp-sys-include was given. if test "${with_bgp_sys_include+set}" = set; then withval=$with_bgp_sys_include; fi envval_src_BGP_SYS_INCLUDE="cached" if test "${gasnet_cv_envvar_BGP_SYS_INCLUDE+set}" = set; then $as_echo_n "(cached) " >&6 else case "${BGP_SYS_INCLUDE-__NOT_SET__}" in __NOT_SET__) if test "$with_bgp_sys_include" != ""; then gasnet_cv_envvar_BGP_SYS_INCLUDE="$with_bgp_sys_include" envval_src_BGP_SYS_INCLUDE=given else gasnet_cv_envvar_BGP_SYS_INCLUDE="$BGP_SYS_HOME/arch/include" envval_src_BGP_SYS_INCLUDE=default fi ;; *) gasnet_cv_envvar_BGP_SYS_INCLUDE="$BGP_SYS_INCLUDE" envval_src_BGP_SYS_INCLUDE=given esac fi BGP_SYS_INCLUDE="$gasnet_cv_envvar_BGP_SYS_INCLUDE" case "$envval_src_BGP_SYS_INCLUDE" in 'cached') { $as_echo "$as_me:$LINENO: result: using cached value \"$BGP_SYS_INCLUDE\"" >&5 $as_echo "using cached value \"$BGP_SYS_INCLUDE\"" >&6; } ;; 'default') { $as_echo "$as_me:$LINENO: result: no, defaulting to \"$BGP_SYS_INCLUDE\"" >&5 $as_echo "no, defaulting to \"$BGP_SYS_INCLUDE\"" >&6; } ;; 'given') { $as_echo "$as_me:$LINENO: result: yes, using \"$BGP_SYS_INCLUDE\"" >&5 $as_echo "yes, using \"$BGP_SYS_INCLUDE\"" >&6; } ;; *) echo echo "configure error: _GASNET_ENV_DEFAULT broken" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(BGP_SYS_INCLUDE,$BGP_SYS_HOME/arch/include) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test -e "$BGP_SYS_INCLUDE/common"; then tmp_flag="-isystem $BGP_SYS_INCLUDE" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CFLAG($tmp_flag) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $tmp_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 $tmp_flag" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $tmp_flag") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) { $as_echo "$as_me:$LINENO: checking for C compiler flag $tmp_flag" >&5 $as_echo_n "checking for C compiler flag $tmp_flag... " >&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 <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 <&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 : { $as_echo "$as_me:$LINENO: result: no/warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/warning: $_GASNET_TRY_CFLAG_TMP" >&6; } tmp_flag="-I$BGP_SYS_INCLUDE" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_CFLAG_TMP" ; then { $as_echo "$as_me:$LINENO: result: yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "yes/persistent-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } : else { $as_echo "$as_me:$LINENO: result: no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&5 $as_echo "no/new-warning: $_GASNET_TRY_CFLAG_TMP" >&6; } tmp_flag="-I$BGP_SYS_INCLUDE" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" >&5 $as_echo "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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) tmp_flag="-I$BGP_SYS_INCLUDE" fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CFLAG($tmp_flag) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) SYS_HEADER_BLD="$SYS_HEADER_BLD $tmp_flag" SYS_HEADER_INST="$SYS_HEADER_INST $tmp_flag" fi fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(debug,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then enableval=$enable_debug; fi case "$enable_debug" in '' | no) : CFLAGS="$CCOPTFLAGS" cat >>confdefs.h <<\_ACEOF #define GASNET_NDEBUG 1 _ACEOF BUILDCONFIG="optimize" enabled_debug=no ;; *) if test -z "$GASNET_SUPPRESS_DEBUG_WARNING" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_MSG_WARN() vvvvvvvvvvvvvvvvvvvvvv (L:2) { $as_echo "$as_me:$LINENO: WARNING: ----------------------------------------------------------------------- WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING Configuring the system for global, forced debugging mode. This usually has a SERIOUS impact on performance, so you should NOT trust any performance numbers obtained from programs built using this GASNet installation!!! WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING -----------------------------------------------------------------------" >&5 $as_echo "$as_me: WARNING: ----------------------------------------------------------------------- WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING Configuring the system for global, forced debugging mode. This usually has a SERIOUS impact on performance, so you should NOT trust any performance numbers obtained from programs built using this GASNet installation!!! WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING -----------------------------------------------------------------------" >&2;} echo " ----------------------------------------------------------------------- WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING Configuring the system for global, forced debugging mode. This usually has a SERIOUS impact on performance, so you should NOT trust any performance numbers obtained from programs built using this GASNet installation!!! WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING -----------------------------------------------------------------------" >> ".gasnet_cv_configure_warnings.tmp" echo " " >> ".gasnet_cv_configure_warnings.tmp" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_MSG_WARN() ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi CFLAGS="$CCDEBUGFLAGS" cat >>confdefs.h <<\_ACEOF #define GASNET_DEBUG 1 _ACEOF BUILDCONFIG="debug" enabled_debug=yes ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(debug,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$enabled_debug" = yes; then BUILDCONFIG_DEBUG_TRUE= BUILDCONFIG_DEBUG_FALSE='#' else BUILDCONFIG_DEBUG_TRUE='#' BUILDCONFIG_DEBUG_FALSE= fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(gasnet-verbose,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --enable-gasnet-verbose was given. if test "${enable_gasnet_verbose+set}" = set; then enableval=$enable_gasnet_verbose; fi case "$enable_gasnet_verbose" in '' | no) : enabled_debug_verbose=no ;; *) enabled_debug_verbose=yes ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(gasnet-verbose,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$enabled_debug_verbose" = yes; then cat >>confdefs.h <<\_ACEOF #define GASNET_DEBUG_VERBOSE 1 _ACEOF fi if test "$enabled_debug_verbose" = yes; then BUILDCONFIG_DEBUG_VERBOSE_TRUE= BUILDCONFIG_DEBUG_VERBOSE_FALSE='#' else BUILDCONFIG_DEBUG_VERBOSE_TRUE='#' BUILDCONFIG_DEBUG_VERBOSE_FALSE= fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(trace,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --enable-trace was given. if test "${enable_trace+set}" = set; then enableval=$enable_trace; fi # Check whether --enable-trace was given. if test "${enable_trace+set}" = set; then enableval=$enable_trace; fi case "$enable_trace" in no) enabled_trace=no ;; yes) enabled_trace=yes ;; *) enabled_trace=$enabled_debug ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(trace,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$enabled_trace" = yes; then cat >>confdefs.h <<\_ACEOF #define GASNET_TRACE 1 _ACEOF fi if test "$enabled_trace" = yes; then BUILDCONFIG_TRACE_TRUE= BUILDCONFIG_TRACE_FALSE='#' else BUILDCONFIG_TRACE_TRUE='#' BUILDCONFIG_TRACE_FALSE= fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED_WITH_AUTO(stats,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --enable-stats was given. if test "${enable_stats+set}" = set; then enableval=$enable_stats; fi # Check whether --enable-stats was given. if test "${enable_stats+set}" = set; then enableval=$enable_stats; fi case "$enable_stats" in no) enabled_stats=no ;; yes) enabled_stats=yes ;; *) enabled_stats=$enabled_debug ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED_WITH_AUTO(stats,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$enabled_stats" = yes; then cat >>confdefs.h <<\_ACEOF #define GASNET_STATS 1 _ACEOF fi if test "$enabled_stats" = yes; then BUILDCONFIG_STATS_TRUE= BUILDCONFIG_STATS_FALSE='#' else BUILDCONFIG_STATS_TRUE='#' BUILDCONFIG_STATS_FALSE= fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(srclines,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --enable-srclines was given. if test "${enable_srclines+set}" = set; then enableval=$enable_srclines; fi case "$enable_srclines" in '' | no) : ;; *) enabled_srclines=yes ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(srclines,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "$enabled_srclines" = yes; then cat >>confdefs.h <<\_ACEOF #define GASNET_SRCLINES 1 _ACEOF fi if test "$enabled_srclines" = yes; then BUILDCONFIG_SRCLINES_TRUE= BUILDCONFIG_SRCLINES_FALSE='#' else BUILDCONFIG_SRCLINES_TRUE='#' BUILDCONFIG_SRCLINES_FALSE= fi case "$target" in *-uclinux-*) # uclinux requires -Os MISC_CFLAGS="$MISC_CFLAGS -DGASNET_ALLOW_OPTIMIZED_DEBUG=1" ;; *) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_OPTIMIZEDDEBUG(...) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$enable_debug" = "yes" ; then { $as_echo "$as_me:$LINENO: checking CC for debug vs. optimize compilation conflict" >&5 $as_echo_n "checking CC for debug vs. optimize compilation conflict... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CC,"$CC") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CC+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC eval _pushedvarset_CC_$_pushcnt_CC=$_gasnet_pushvar_isset _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$CC" echo "pushed new CC value: $CC" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CC,"$CC") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $CPPFLAGS $MISC_CFLAGS $MISC_CPPFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $CPPFLAGS $MISC_CFLAGS $MISC_CPPFLAGS" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $CPPFLAGS $MISC_CFLAGS $MISC_CPPFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:2) cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined(__OPTIMIZE__) || defined(NDEBUG) choke me #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } echo echo "configure error: User requested --enable-debug but CC or CFLAGS has enabled optimization (-O) or disabled assertions (-DNDEBUG). Try setting CC='$CC -O0 -UNDEBUG' or changing CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CC) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CC_$_pushcnt_CC if test "$_gasnet_pushvar_isset" = "1" ; then eval CC=\$_pushedvar_CC_$_pushcnt_CC echo "popping CC back to: $CC" >&5 else unset CC echo "popping CC back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_OPTIMIZEDDEBUG(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ;; esac #AC_SUBST(CFLAGS) # opt/debug flags # warning suppression and other misc C flags # misc preprocessor flags case "$gasnet_cv_cc_family" in GNU) KEEPTMP_CFLAGS="-save-temps" ;; Pathscale) KEEPTMP_CFLAGS="-keep" ;; XLC) KEEPTMP_CFLAGS="-qlist" ;; # XXX: generates .lst w/ asm. Can't find a way to preserve .i PGI) KEEPTMP_CFLAGS="-Mkeepasm" ;; # XXX: only keeps .s. Can't find a way to preserve .i Intel) KEEPTMP_CFLAGS="-save-temps" ;; # XXX: only keeps .s. Can't find a way to preserve .i Sun) KEEPTMP_CFLAGS="-keeptmp" ;; MIPS) KEEPTMP_CFLAGS="-keep" ;; # XXX: only keeps .s and .B. Can't find a way to preserve .i *) KEEPTMP_CFLAGS="" ;; esac # flags to preserve intermediate file (,i, .s, etc.) segconfig="" # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(segment-fast,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --enable-segment-fast was given. if test "${enable_segment_fast+set}" = set; then enableval=$enable_segment_fast; fi case "$enable_segment_fast" in '' | no) : ;; *) segconfig="fast$segconfig" ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(segment-fast,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(segment-large,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --enable-segment-large was given. if test "${enable_segment_large+set}" = set; then enableval=$enable_segment_large; fi case "$enable_segment_large" in '' | no) : ;; *) segconfig="large$segconfig" ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(segment-large,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_IF_ENABLED(segment-everything,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --enable-segment-everything was given. if test "${enable_segment_everything+set}" = set; then enableval=$enable_segment_everything; fi case "$enable_segment_everything" in '' | no) : ;; *) segconfig="everything$segconfig" ;; esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_IF_ENABLED(segment-everything,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) case "$segconfig" in "") segconfig=fast; #for AM_CONDITIONAL, below cat >>confdefs.h <<\_ACEOF #define GASNET_SEGMENT_FAST 1 _ACEOF ;; # default is fast fast) cat >>confdefs.h <<\_ACEOF #define GASNET_SEGMENT_FAST 1 _ACEOF ;; large) cat >>confdefs.h <<\_ACEOF #define GASNET_SEGMENT_LARGE 1 _ACEOF ;; everything) cat >>confdefs.h <<\_ACEOF #define GASNET_SEGMENT_EVERYTHING 1 _ACEOF ;; *) { { $as_echo "$as_me:$LINENO: error: Conflicting shared segment configurations specified" >&5 $as_echo "$as_me: error: Conflicting shared segment configurations specified" >&2;} { (exit 1); exit 1; }; } ;; esac # Do it all again because AM_CONDITIONAL()s can't go inside if or case. # Groan. if test "$segconfig" = fast; then GASNET_SEGMENT_FAST_TRUE= GASNET_SEGMENT_FAST_FALSE='#' else GASNET_SEGMENT_FAST_TRUE='#' GASNET_SEGMENT_FAST_FALSE= fi if test "$segconfig" = large; then GASNET_SEGMENT_LARGE_TRUE= GASNET_SEGMENT_LARGE_FALSE='#' else GASNET_SEGMENT_LARGE_TRUE='#' GASNET_SEGMENT_LARGE_FALSE= fi if test "$segconfig" = everything; then GASNET_SEGMENT_EVERYTHING_TRUE= GASNET_SEGMENT_EVERYTHING_FALSE='#' else GASNET_SEGMENT_EVERYTHING_TRUE='#' GASNET_SEGMENT_EVERYTHING_FALSE= fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_WITH(segment-mmap-max,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # Check whether --with-segment-mmap-max was given. if test "${with_segment_mmap_max+set}" = set; then withval=$with_segment_mmap_max; case "$withval" in no) : ;; *) case "$withval" in [1-9]*G*) cat >>confdefs.h <<_ACEOF #define GASNETI_MMAP_MAX_SIZE ((uint64_t)(`expr "${withval}" : "\([1-9][0-9]*\)"`ull << 30)) _ACEOF ;; [1-9]*M*) cat >>confdefs.h <<_ACEOF #define GASNETI_MMAP_MAX_SIZE ((uint64_t)(`expr "${withval}" : "\([1-9][0-9]*\)"`ull << 20)) _ACEOF ;; [1-9][0-9]*) cat >>confdefs.h <<_ACEOF #define GASNETI_MMAP_MAX_SIZE ((uint64_t)${withval}ull) _ACEOF ;; *) { { $as_echo "$as_me:$LINENO: error: Illegal value for --with-segment-mmap-max=$withval" >&5 $as_echo "$as_me: error: Illegal value for --with-segment-mmap-max=$withval" >&2;} { (exit 1); exit 1; }; } ;; esac ;; esac else : fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_WITH(segment-mmap-max,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_LIBGCC vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for libgcc link flags" >&5 $as_echo_n "checking for libgcc link flags... " >&6; } if test "${gasnet_cv_lib_gcc+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$GCC" = yes; then #LIBGCC="`$CC -v 2>&1 | sed -n 's:^Reading specs from \(.*\)/specs$:-L\1 -lgcc:p'`" LIBGCC="-L`$CC -print-libgcc-file-name | xargs dirname` -lgcc" if test -z "$LIBGCC"; then echo echo "configure error: cannot find libgcc" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi fi gasnet_cv_lib_gcc="$LIBGCC" fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_lib_gcc" >&5 $as_echo "$gasnet_cv_lib_gcc" >&6; } LIBGCC="$gasnet_cv_lib_gcc" # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LIBGCC ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS eval _pushedvarset_CFLAGS_$_pushcnt_CFLAGS=$_gasnet_pushvar_isset _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS" echo "pushed new CFLAGS value: $CFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CFLAGS,"$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_RESTRICT vvvvvvvvvvvvvvvvvvvvvv (L:1) restrict_keyword="" if test "$restrict_keyword" = ""; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for restrict keyword,cc_keyrestrict,...) vvvvvvvvvvvvvvvvvvvvvv (L:2) { $as_echo "$as_me:$LINENO: checking for restrict keyword" >&5 $as_echo_n "checking for restrict keyword... " >&6; } if test "${gasnet_cv_cc_keyrestrict+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int dummy(void * restrict p) { return 1; } int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_keyrestrict=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gasnet_cv_cc_keyrestrict=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_cc_keyrestrict" >&5 $as_echo "$gasnet_cv_cc_keyrestrict" >&6; } if test "$gasnet_cv_cc_keyrestrict" = yes; then : restrict_keyword="restrict" else : fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for restrict keyword,cc_keyrestrict,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi if test "$restrict_keyword" = ""; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for __restrict__ keyword,cc_key__restrict__,...) vvvvvvvvvvvvvvvvvvvvvv (L:2) { $as_echo "$as_me:$LINENO: checking for __restrict__ keyword" >&5 $as_echo_n "checking for __restrict__ keyword... " >&6; } if test "${gasnet_cv_cc_key__restrict__+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int dummy(void * __restrict__ p) { return 1; } int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_key__restrict__=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gasnet_cv_cc_key__restrict__=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_cc_key__restrict__" >&5 $as_echo "$gasnet_cv_cc_key__restrict__" >&6; } if test "$gasnet_cv_cc_key__restrict__" = yes; then : restrict_keyword="__restrict__" else : fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for __restrict__ keyword,cc_key__restrict__,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi if test "$restrict_keyword" = ""; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(for __restrict keyword,cc_key__restrict,...) vvvvvvvvvvvvvvvvvvvvvv (L:2) { $as_echo "$as_me:$LINENO: checking for __restrict keyword" >&5 $as_echo_n "checking for __restrict keyword... " >&6; } if test "${gasnet_cv_cc_key__restrict+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int dummy(void * __restrict p) { return 1; } int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_key__restrict=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gasnet_cv_cc_key__restrict=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_cc_key__restrict" >&5 $as_echo "$gasnet_cv_cc_key__restrict" >&6; } if test "$gasnet_cv_cc_key__restrict" = yes; then : restrict_keyword="__restrict" else : fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(for __restrict keyword,cc_key__restrict,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi cat >>confdefs.h <<_ACEOF #define GASNETI_RESTRICT $restrict_keyword _ACEOF # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_CHECK(whether restrict may qualify typedefs,cc_restrict_typedefs,...) vvvvvvvvvvvvvvvvvvvvvv (L:2) { $as_echo "$as_me:$LINENO: checking whether restrict may qualify typedefs" >&5 $as_echo_n "checking whether restrict may qualify typedefs... " >&6; } if test "${gasnet_cv_cc_restrict_typedefs+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ typedef void *foo_t; int dummy(foo_t GASNETI_RESTRICT p) { return 1; } int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gasnet_cv_cc_restrict_typedefs=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gasnet_cv_cc_restrict_typedefs=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_cc_restrict_typedefs" >&5 $as_echo "$gasnet_cv_cc_restrict_typedefs" >&6; } if test "$gasnet_cv_cc_restrict_typedefs" = yes; then : cat >>confdefs.h <<\_ACEOF #define GASNETI_RESTRICT_MAY_QUALIFY_TYPEDEFS 1 _ACEOF else : fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_CHECK(whether restrict may qualify typedefs,cc_restrict_typedefs,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_RESTRICT ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__always_inline__) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for __attribute__((__always_inline__))" >&5 $as_echo_n "checking for __attribute__((__always_inline__))... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_ALWAYSINLINE 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_ALWAYSINLINE 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__always_inline__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__noinline__) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for __attribute__((__noinline__))" >&5 $as_echo_n "checking for __attribute__((__noinline__))... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_NOINLINE 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_NOINLINE 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__noinline__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__malloc__) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for __attribute__((__malloc__))" >&5 $as_echo_n "checking for __attribute__((__malloc__))... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile < __attribute__((__malloc__)) void * dummy(void) { return malloc(14); } int main(void) { ; return 0; } EOF # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4) echo \"$gasnet_compile_cmd\" >&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_MALLOC 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_MALLOC 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__malloc__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__warn_unused_result__) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for __attribute__((__warn_unused_result__))" >&5 $as_echo_n "checking for __attribute__((__warn_unused_result__))... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_WARNUNUSEDRESULT 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_WARNUNUSEDRESULT 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__warn_unused_result__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__used__) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for __attribute__((__used__))" >&5 $as_echo_n "checking for __attribute__((__used__))... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile < __attribute__((__used__)) void dummy(void) { abort(); } int main(void) { ; return 0; } EOF # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4) echo \"$gasnet_compile_cmd\" >&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_USED 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_USED 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__used__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__unused__) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for __attribute__((__unused__))" >&5 $as_echo_n "checking for __attribute__((__unused__))... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_UNUSED 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_UNUSED 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__unused__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__may_alias__) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for __attribute__((__may_alias__))" >&5 $as_echo_n "checking for __attribute__((__may_alias__))... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_MAYALIAS 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_MAYALIAS 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__may_alias__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__noreturn__) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for __attribute__((__noreturn__))" >&5 $as_echo_n "checking for __attribute__((__noreturn__))... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile < __attribute__((__noreturn__)) void dummy(void) { abort(); } int main(void) { ; return 0; } EOF # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) vvvvvvvvvvvvvvvvvvvvvv (L:4) echo \"$gasnet_compile_cmd\" >&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_NORETURN 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_NORETURN 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__noreturn__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__const__) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for __attribute__((__const__))" >&5 $as_echo_n "checking for __attribute__((__const__))... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_CONST 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_CONST 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__const__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__pure__) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for __attribute__((__pure__))" >&5 $as_echo_n "checking for __attribute__((__pure__))... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_PURE 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_PURE 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__pure__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_GCC_ATTRIBUTE(__format__) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking for __attribute__((__format__))" >&5 $as_echo_n "checking for __attribute__((__format__))... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:3) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_FORMAT 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:5) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_FORMAT 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:6) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_CHECK_GCC_ATTRIBUTE(__format__) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) { $as_echo "$as_me:$LINENO: checking for __attribute__((__format__)) on function pointers" >&5 $as_echo_n "checking for __attribute__((__format__)) on function pointers... " >&6; } # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN(...) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&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 : { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_FORMAT_FUNCPTR 1 _ACEOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 _GASNET_TRY_COMPILE_WITHWARN_OUTTMP="$gasnet_cmd_stdout" _GASNET_TRY_COMPILE_WITHWARN_ERRTMP="$gasnet_cmd_stderr" # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 if test "$gasnet_cmd_stdout$gasnet_cmd_stderr" = "$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" ; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } cat >>confdefs.h <<\_ACEOF #define GASNETI_HAVE_GCC_ATTRIBUTE_FORMAT_FUNCPTR 1 _ACEOF else gasnet_cmd_stdout="$_GASNET_TRY_COMPILE_WITHWARN_OUTTMP" gasnet_cmd_stderr="$_GASNET_TRY_COMPILE_WITHWARN_ERRTMP" { $as_echo "$as_me:$LINENO: result: no/warning" >&5 $as_echo "no/warning" >&6; } fi fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo echo "configure error: unknown failure case in TRY_CCOMPILE_WITHWARN" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_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 { $as_echo "$as_me:$LINENO: result: no/error" >&5 $as_echo "no/error" >&6; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_RUNCMD($gasnet_compile_cmd,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) rm -f ${gasnet_testname}.* # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN_NORETRY(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CCOMPILE_WITHWARN(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(CPPFLAGS,"$CPPFLAGS -I$TOP_SRCDIR/other") vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CPPFLAGS" = "" ; then _pushcnt_CPPFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${CPPFLAGS+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS=\$CPPFLAGS eval _pushedvarset_CPPFLAGS_$_pushcnt_CPPFLAGS=$_gasnet_pushvar_isset _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CPPFLAGS="$CPPFLAGS -I$TOP_SRCDIR/other" echo "pushed new CPPFLAGS value: $CPPFLAGS" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(CPPFLAGS,"$CPPFLAGS -I$TOP_SRCDIR/other") ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_STR(PLATFORM_COMPILER_IDSTR,PLATFORM_COMPILER_IDSTR,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking PLATFORM_COMPILER_IDSTR" >&5 $as_echo_n "checking PLATFORM_COMPILER_IDSTR... " >&6; } if test "${gasnet_cv_PLATFORM_COMPILER_IDSTR+set}" = set; then $as_echo_n "(cached) " >&6 else gasnet_cv_PLATFORM_COMPILER_IDSTR="" # vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include "portable_platform.h" #include extern const char *s; const char *s = "$gasnetextractstr: (-(|" PLATFORM_COMPILER_IDSTR "|)-) $"; int main(void) { printf("%s",s); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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.${ac_objext} ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") 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_objext}" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") ^^^^^^^^^^^^^^^^^^^^^^ (L:3) mv conftest.${ac_objext} $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\0";} if (m/\$gasnetextractstr: \(-\(\|(.+?)\|\)-\) \$/) { print "$1";}' gasnet_cv_PLATFORM_COMPILER_IDSTR=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while compile extracting PLATFORM_COMPILER_IDSTR " 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) if test -z "$gasnet_cv_PLATFORM_COMPILER_IDSTR" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include "portable_platform.h" #include extern const char *s; const char *s = "$gasnetextractstr: (-(|" PLATFORM_COMPILER_IDSTR "|)-) $"; int main(void) { printf("%s",s); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_echo "$as_me: error: failed to write conftest.$ac_ext" >&2;} { (exit 1); exit 1; }; } fi if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && \ test -f conftest$ac_exeext ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then _pushcnt_GASNET_EXAMINE_BIN=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${GASNET_EXAMINE_BIN+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1` _total_pushcnt=`expr $_total_pushcnt + 1` GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:3) mv conftest$ac_exeext $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\0";} if (m/\$gasnetextractstr: \(-\(\|(.+?)\|\)-\) \$/) { print "$1";}' gasnet_cv_PLATFORM_COMPILER_IDSTR=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while link extracting PLATFORM_COMPILER_IDSTR " 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_PLATFORM_COMPILER_IDSTR" >&5 $as_echo "$gasnet_cv_PLATFORM_COMPILER_IDSTR" >&6; } if test -n "$gasnet_cv_PLATFORM_COMPILER_IDSTR" ; then GASNETI_PLATFORM_COMPILER_IDSTR=$gasnet_cv_PLATFORM_COMPILER_IDSTR fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_STR(PLATFORM_COMPILER_IDSTR,PLATFORM_COMPILER_IDSTR,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "STR" = "STR" ; then cat >>confdefs.h <<_ACEOF #define GASNETI_PLATFORM_COMPILER_IDSTR "$GASNETI_PLATFORM_COMPILER_IDSTR" _ACEOF else cat >>confdefs.h <<_ACEOF #define GASNETI_PLATFORM_COMPILER_IDSTR $GASNETI_PLATFORM_COMPILER_IDSTR _ACEOF fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(PLATFORM_COMPILER_FAMILYID,PLATFORM_COMPILER_FAMILYID,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking PLATFORM_COMPILER_FAMILYID" >&5 $as_echo_n "checking PLATFORM_COMPILER_FAMILYID... " >&6; } if test "${gasnet_cv_PLATFORM_COMPILER_FAMILYID+set}" = set; then $as_echo_n "(cached) " >&6 else gasnet_cv_PLATFORM_COMPILER_FAMILYID="" # vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include "portable_platform.h" #include extern char s[]; #define DIGIT(d) (((char)(( (( PLATFORM_COMPILER_FAMILYID )>0?( PLATFORM_COMPILER_FAMILYID ):-( PLATFORM_COMPILER_FAMILYID )) >>(d*4))&0xF))+0x40) char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ', (( PLATFORM_COMPILER_FAMILYID )>=0?' ':'-'), ' ', DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4), DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0), ' ','$','\0'}; int main(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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.${ac_objext} ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") 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_objext}" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") ^^^^^^^^^^^^^^^^^^^^^^ (L:3) mv conftest.${ac_objext} $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_PLATFORM_COMPILER_FAMILYID=`$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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while compile extracting PLATFORM_COMPILER_FAMILYID " 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) if test -z "$gasnet_cv_PLATFORM_COMPILER_FAMILYID" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include "portable_platform.h" #include extern char s[]; #define DIGIT(d) (((char)(( (( PLATFORM_COMPILER_FAMILYID )>0?( PLATFORM_COMPILER_FAMILYID ):-( PLATFORM_COMPILER_FAMILYID )) >>(d*4))&0xF))+0x40) char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ', (( PLATFORM_COMPILER_FAMILYID )>=0?' ':'-'), ' ', DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4), DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0), ' ','$','\0'}; int main(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_echo "$as_me: error: failed to write conftest.$ac_ext" >&2;} { (exit 1); exit 1; }; } fi if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && \ test -f conftest$ac_exeext ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then _pushcnt_GASNET_EXAMINE_BIN=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${GASNET_EXAMINE_BIN+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1` _total_pushcnt=`expr $_total_pushcnt + 1` GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:3) mv conftest$ac_exeext $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_PLATFORM_COMPILER_FAMILYID=`$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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while link extracting PLATFORM_COMPILER_FAMILYID " 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_PLATFORM_COMPILER_FAMILYID" >&5 $as_echo "$gasnet_cv_PLATFORM_COMPILER_FAMILYID" >&6; } if test -n "$gasnet_cv_PLATFORM_COMPILER_FAMILYID" ; then GASNETI_PLATFORM_COMPILER_FAMILYID=$gasnet_cv_PLATFORM_COMPILER_FAMILYID fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(PLATFORM_COMPILER_FAMILYID,PLATFORM_COMPILER_FAMILYID,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "EXPR" = "STR" ; then cat >>confdefs.h <<_ACEOF #define GASNETI_PLATFORM_COMPILER_FAMILYID "$GASNETI_PLATFORM_COMPILER_FAMILYID" _ACEOF else cat >>confdefs.h <<_ACEOF #define GASNETI_PLATFORM_COMPILER_FAMILYID $GASNETI_PLATFORM_COMPILER_FAMILYID _ACEOF fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(PLATFORM_COMPILER_ID,PLATFORM_COMPILER_ID,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking PLATFORM_COMPILER_ID" >&5 $as_echo_n "checking PLATFORM_COMPILER_ID... " >&6; } if test "${gasnet_cv_PLATFORM_COMPILER_ID+set}" = set; then $as_echo_n "(cached) " >&6 else gasnet_cv_PLATFORM_COMPILER_ID="" # vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include "portable_platform.h" #include extern char s[]; #define DIGIT(d) (((char)(( (( PLATFORM_COMPILER_ID )>0?( PLATFORM_COMPILER_ID ):-( PLATFORM_COMPILER_ID )) >>(d*4))&0xF))+0x40) char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ', (( PLATFORM_COMPILER_ID )>=0?' ':'-'), ' ', DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4), DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0), ' ','$','\0'}; int main(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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.${ac_objext} ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") 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_objext}" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") ^^^^^^^^^^^^^^^^^^^^^^ (L:3) mv conftest.${ac_objext} $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_PLATFORM_COMPILER_ID=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while compile extracting PLATFORM_COMPILER_ID " 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) if test -z "$gasnet_cv_PLATFORM_COMPILER_ID" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include "portable_platform.h" #include extern char s[]; #define DIGIT(d) (((char)(( (( PLATFORM_COMPILER_ID )>0?( PLATFORM_COMPILER_ID ):-( PLATFORM_COMPILER_ID )) >>(d*4))&0xF))+0x40) char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ', (( PLATFORM_COMPILER_ID )>=0?' ':'-'), ' ', DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4), DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0), ' ','$','\0'}; int main(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_echo "$as_me: error: failed to write conftest.$ac_ext" >&2;} { (exit 1); exit 1; }; } fi if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && \ test -f conftest$ac_exeext ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then _pushcnt_GASNET_EXAMINE_BIN=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${GASNET_EXAMINE_BIN+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1` _total_pushcnt=`expr $_total_pushcnt + 1` GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:3) mv conftest$ac_exeext $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_PLATFORM_COMPILER_ID=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while link extracting PLATFORM_COMPILER_ID " 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_PLATFORM_COMPILER_ID" >&5 $as_echo "$gasnet_cv_PLATFORM_COMPILER_ID" >&6; } if test -n "$gasnet_cv_PLATFORM_COMPILER_ID" ; then GASNETI_PLATFORM_COMPILER_ID=$gasnet_cv_PLATFORM_COMPILER_ID fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(PLATFORM_COMPILER_ID,PLATFORM_COMPILER_ID,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "EXPR" = "STR" ; then cat >>confdefs.h <<_ACEOF #define GASNETI_PLATFORM_COMPILER_ID "$GASNETI_PLATFORM_COMPILER_ID" _ACEOF else cat >>confdefs.h <<_ACEOF #define GASNETI_PLATFORM_COMPILER_ID $GASNETI_PLATFORM_COMPILER_ID _ACEOF fi # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(PLATFORM_COMPILER_VERSION,PLATFORM_COMPILER_VERSION,...) vvvvvvvvvvvvvvvvvvvvvv (L:1) { $as_echo "$as_me:$LINENO: checking PLATFORM_COMPILER_VERSION" >&5 $as_echo_n "checking PLATFORM_COMPILER_VERSION... " >&6; } if test "${gasnet_cv_PLATFORM_COMPILER_VERSION+set}" = set; then $as_echo_n "(cached) " >&6 else gasnet_cv_PLATFORM_COMPILER_VERSION="" # vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include "portable_platform.h" #include extern char s[]; #define DIGIT(d) (((char)(( (( PLATFORM_COMPILER_VERSION )>0?( PLATFORM_COMPILER_VERSION ):-( PLATFORM_COMPILER_VERSION )) >>(d*4))&0xF))+0x40) char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ', (( PLATFORM_COMPILER_VERSION )>=0?' ':'-'), ' ', DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4), DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0), ' ','$','\0'}; int main(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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.${ac_objext} ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") 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_objext}" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") ^^^^^^^^^^^^^^^^^^^^^^ (L:3) mv conftest.${ac_objext} $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_PLATFORM_COMPILER_VERSION=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while compile extracting PLATFORM_COMPILER_VERSION " 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) if test -z "$gasnet_cv_PLATFORM_COMPILER_VERSION" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:2) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include "portable_platform.h" #include extern char s[]; #define DIGIT(d) (((char)(( (( PLATFORM_COMPILER_VERSION )>0?( PLATFORM_COMPILER_VERSION ):-( PLATFORM_COMPILER_VERSION )) >>(d*4))&0xF))+0x40) char s[] = {'$','g','a','s','n','e','t','e','x','t','r','a','c','t','e','x','p','r',':',' ', (( PLATFORM_COMPILER_VERSION )>=0?' ':'-'), ' ', DIGIT(7),DIGIT(6),DIGIT(5),DIGIT(4), DIGIT(3),DIGIT(2),DIGIT(1),DIGIT(0), ' ','$','\0'}; int main(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_echo "$as_me: error: failed to write conftest.$ac_ext" >&2;} { (exit 1); exit 1; }; } fi if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && \ test -f conftest$ac_exeext ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then _pushcnt_GASNET_EXAMINE_BIN=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${GASNET_EXAMINE_BIN+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1` _total_pushcnt=`expr $_total_pushcnt + 1` GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:3) mv conftest$ac_exeext $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_PLATFORM_COMPILER_VERSION=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while link extracting PLATFORM_COMPILER_VERSION " 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:2) fi fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_PLATFORM_COMPILER_VERSION" >&5 $as_echo "$gasnet_cv_PLATFORM_COMPILER_VERSION" >&6; } if test -n "$gasnet_cv_PLATFORM_COMPILER_VERSION" ; then GASNETI_PLATFORM_COMPILER_VERSION=$gasnet_cv_PLATFORM_COMPILER_VERSION fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(PLATFORM_COMPILER_VERSION,PLATFORM_COMPILER_VERSION,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) if test "EXPR" = "STR" ; then cat >>confdefs.h <<_ACEOF #define GASNETI_PLATFORM_COMPILER_VERSION "$GASNETI_PLATFORM_COMPILER_VERSION" _ACEOF else cat >>confdefs.h <<_ACEOF #define GASNETI_PLATFORM_COMPILER_VERSION $GASNETI_PLATFORM_COMPILER_VERSION _ACEOF fi # 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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CPPFLAGS" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CPPFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(CFLAGS) vvvvvvvvvvvvvvvvvvvvvv (L:1) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_CFLAGS_$_pushcnt_CFLAGS if test "$_gasnet_pushvar_isset" = "1" ; then eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS echo "popping CFLAGS back to: $CFLAGS" >&5 else unset CFLAGS echo "popping CFLAGS back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(CFLAGS) ^^^^^^^^^^^^^^^^^^^^^^ (L:1) ######################################################################## # hunt for 16-, 32-, and 64-bit integer types # vvvvvvvvvvvvvvvvvvvvvv GASNET_SETUP_INTTYPES(,) vvvvvvvvvvvvvvvvvvvvvv (L:1) # vvvvvvvvvvvvvvvvvvvvvv GASNET_CHECK_SIZEOF(char,) vvvvvvvvvvvvvvvvvvvvvv (L:2) if test "$cross_compiling" = "yes" ; then SIZEOF_CHAR= # vvvvvvvvvvvvvvvvvvvvvv GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(char) (binary probe),SIZEOF_CHAR,...) vvvvvvvvvvvvvvvvvvvvvv (L:3) { $as_echo "$as_me:$LINENO: checking sizeof(char) (binary probe)" >&5 $as_echo_n "checking sizeof(char) (binary probe)... " >&6; } if test "${gasnet_cv_SIZEOF_CHAR+set}" = set; then $as_echo_n "(cached) " >&6 else gasnet_cv_SIZEOF_CHAR="" # vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include 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(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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.${ac_objext} ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") 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_objext}" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") ^^^^^^^^^^^^^^^^^^^^^^ (L:5) mv conftest.${ac_objext} $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_SIZEOF_CHAR=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while compile extracting sizeof(char)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) if test -z "$gasnet_cv_SIZEOF_CHAR" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include 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(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_echo "$as_me: error: failed to write conftest.$ac_ext" >&2;} { (exit 1); exit 1; }; } fi if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && \ test -f conftest$ac_exeext ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then _pushcnt_GASNET_EXAMINE_BIN=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${GASNET_EXAMINE_BIN+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1` _total_pushcnt=`expr $_total_pushcnt + 1` GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:5) mv conftest$ac_exeext $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_SIZEOF_CHAR=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while link extracting sizeof(char)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_SIZEOF_CHAR" >&5 $as_echo "$gasnet_cv_SIZEOF_CHAR" >&6; } if test -n "$gasnet_cv_SIZEOF_CHAR" ; then SIZEOF_CHAR=$gasnet_cv_SIZEOF_CHAR fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(char) (binary probe),SIZEOF_CHAR,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) if test -z "$SIZEOF_CHAR" ; then # last resort is to use CROSS var # vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(SIZEOF_CHAR,SIZEOF_CHAR) vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$cross_compiling" = "yes" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_SIZEOF_CHAR,) vvvvvvvvvvvvvvvvvvvvvv (L:4) { $as_echo "$as_me:$LINENO: checking for CROSS_SIZEOF_CHAR in environment" >&5 $as_echo_n "checking for CROSS_SIZEOF_CHAR in environment... " >&6; } envval_src_CROSS_SIZEOF_CHAR="cached" if test "${gasnet_cv_envvar_CROSS_SIZEOF_CHAR+set}" = set; then $as_echo_n "(cached) " >&6 else case "${CROSS_SIZEOF_CHAR-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_char" != ""; then gasnet_cv_envvar_CROSS_SIZEOF_CHAR="$with_cross_sizeof_char" envval_src_CROSS_SIZEOF_CHAR=given else gasnet_cv_envvar_CROSS_SIZEOF_CHAR="" envval_src_CROSS_SIZEOF_CHAR=default fi ;; *) gasnet_cv_envvar_CROSS_SIZEOF_CHAR="$CROSS_SIZEOF_CHAR" envval_src_CROSS_SIZEOF_CHAR=given esac fi CROSS_SIZEOF_CHAR="$gasnet_cv_envvar_CROSS_SIZEOF_CHAR" case "$envval_src_CROSS_SIZEOF_CHAR" in 'cached') { $as_echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_CHAR\"" >&5 $as_echo "using cached value \"$CROSS_SIZEOF_CHAR\"" >&6; } ;; 'default') { $as_echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_CHAR\"" >&5 $as_echo "no, defaulting to \"$CROSS_SIZEOF_CHAR\"" >&6; } ;; 'given') { $as_echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_CHAR\"" >&5 $as_echo "yes, using \"$CROSS_SIZEOF_CHAR\"" >&6; } ;; *) echo echo "configure error: _GASNET_ENV_DEFAULT broken" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_SIZEOF_CHAR,) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) if test "$CROSS_SIZEOF_CHAR" = "" ; then { { $as_echo "$as_me:$LINENO: error: This configure script requires \$CROSS_SIZEOF_CHAR be set for cross-compilation" >&5 $as_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 { $as_echo "$as_me:$LINENO: checking size:" >&5 $as_echo_n "checking size:... " >&6; } fi # The cast to long int 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. { $as_echo "$as_me:$LINENO: checking size of char" >&5 $as_echo_n "checking size of char... " >&6; } if test "${ac_cv_sizeof_char+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (char))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (char))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else $as_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 core conftest.err conftest.$ac_objext conftest.$ac_ext done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (char))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (char))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else $as_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 core conftest.err conftest.$ac_objext conftest.$ac_ext done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err 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 /* 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 int) (sizeof (char))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_char=$ac_lo;; '') if test "$ac_cv_type_char" = yes; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute sizeof (char) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }; } else ac_cv_sizeof_char=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default static long int longval () { return (long int) (sizeof (char)); } static unsigned long int ulongval () { return (long int) (sizeof (char)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (char))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (char)))) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (char)))) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_char=`cat conftest.val` else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_char" = yes; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute sizeof (char) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }; } else ac_cv_sizeof_char=0 fi fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 $as_echo "$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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_char" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 echo "configure error: failed to find sizeof(char)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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) { $as_echo "$as_me:$LINENO: checking sizeof(short) (binary probe)" >&5 $as_echo_n "checking sizeof(short) (binary probe)... " >&6; } if test "${gasnet_cv_SIZEOF_SHORT+set}" = set; then $as_echo_n "(cached) " >&6 else gasnet_cv_SIZEOF_SHORT="" # vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include 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(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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.${ac_objext} ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") 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_objext}" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") ^^^^^^^^^^^^^^^^^^^^^^ (L:5) mv conftest.${ac_objext} $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_SIZEOF_SHORT=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while compile extracting sizeof(short)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) if test -z "$gasnet_cv_SIZEOF_SHORT" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include 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(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_echo "$as_me: error: failed to write conftest.$ac_ext" >&2;} { (exit 1); exit 1; }; } fi if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && \ test -f conftest$ac_exeext ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then _pushcnt_GASNET_EXAMINE_BIN=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${GASNET_EXAMINE_BIN+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1` _total_pushcnt=`expr $_total_pushcnt + 1` GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:5) mv conftest$ac_exeext $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_SIZEOF_SHORT=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while link extracting sizeof(short)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_SIZEOF_SHORT" >&5 $as_echo "$gasnet_cv_SIZEOF_SHORT" >&6; } if test -n "$gasnet_cv_SIZEOF_SHORT" ; then SIZEOF_SHORT=$gasnet_cv_SIZEOF_SHORT fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(short) (binary probe),SIZEOF_SHORT,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) if test -z "$SIZEOF_SHORT" ; then # last resort is to use CROSS var # vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(SIZEOF_SHORT,SIZEOF_SHORT) vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$cross_compiling" = "yes" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_SIZEOF_SHORT,) vvvvvvvvvvvvvvvvvvvvvv (L:4) { $as_echo "$as_me:$LINENO: checking for CROSS_SIZEOF_SHORT in environment" >&5 $as_echo_n "checking for CROSS_SIZEOF_SHORT in environment... " >&6; } envval_src_CROSS_SIZEOF_SHORT="cached" if test "${gasnet_cv_envvar_CROSS_SIZEOF_SHORT+set}" = set; then $as_echo_n "(cached) " >&6 else case "${CROSS_SIZEOF_SHORT-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_short" != ""; then gasnet_cv_envvar_CROSS_SIZEOF_SHORT="$with_cross_sizeof_short" envval_src_CROSS_SIZEOF_SHORT=given else gasnet_cv_envvar_CROSS_SIZEOF_SHORT="" envval_src_CROSS_SIZEOF_SHORT=default fi ;; *) gasnet_cv_envvar_CROSS_SIZEOF_SHORT="$CROSS_SIZEOF_SHORT" envval_src_CROSS_SIZEOF_SHORT=given esac fi CROSS_SIZEOF_SHORT="$gasnet_cv_envvar_CROSS_SIZEOF_SHORT" case "$envval_src_CROSS_SIZEOF_SHORT" in 'cached') { $as_echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_SHORT\"" >&5 $as_echo "using cached value \"$CROSS_SIZEOF_SHORT\"" >&6; } ;; 'default') { $as_echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_SHORT\"" >&5 $as_echo "no, defaulting to \"$CROSS_SIZEOF_SHORT\"" >&6; } ;; 'given') { $as_echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_SHORT\"" >&5 $as_echo "yes, using \"$CROSS_SIZEOF_SHORT\"" >&6; } ;; *) echo echo "configure error: _GASNET_ENV_DEFAULT broken" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_SIZEOF_SHORT,) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) if test "$CROSS_SIZEOF_SHORT" = "" ; then { { $as_echo "$as_me:$LINENO: error: This configure script requires \$CROSS_SIZEOF_SHORT be set for cross-compilation" >&5 $as_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 { $as_echo "$as_me:$LINENO: checking size:" >&5 $as_echo_n "checking size:... " >&6; } fi # The cast to long int 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. { $as_echo "$as_me:$LINENO: checking size of short" >&5 $as_echo_n "checking size of short... " >&6; } if test "${ac_cv_sizeof_short+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (short))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (short))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else $as_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 core conftest.err conftest.$ac_objext conftest.$ac_ext done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (short))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (short))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else $as_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 core conftest.err conftest.$ac_objext conftest.$ac_ext done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err 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 /* 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 int) (sizeof (short))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_short=$ac_lo;; '') if test "$ac_cv_type_short" = yes; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute sizeof (short) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }; } else ac_cv_sizeof_short=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default static long int longval () { return (long int) (sizeof (short)); } static unsigned long int ulongval () { return (long int) (sizeof (short)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (short))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (short)))) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (short)))) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_short=`cat conftest.val` else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_short" = yes; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute sizeof (short) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }; } else ac_cv_sizeof_short=0 fi fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 $as_echo "$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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_short" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 echo "configure error: failed to find sizeof(short)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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) { $as_echo "$as_me:$LINENO: checking sizeof(int) (binary probe)" >&5 $as_echo_n "checking sizeof(int) (binary probe)... " >&6; } if test "${gasnet_cv_SIZEOF_INT+set}" = set; then $as_echo_n "(cached) " >&6 else gasnet_cv_SIZEOF_INT="" # vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include 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(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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.${ac_objext} ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") 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_objext}" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") ^^^^^^^^^^^^^^^^^^^^^^ (L:5) mv conftest.${ac_objext} $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_SIZEOF_INT=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while compile extracting sizeof(int)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) if test -z "$gasnet_cv_SIZEOF_INT" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include 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(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_echo "$as_me: error: failed to write conftest.$ac_ext" >&2;} { (exit 1); exit 1; }; } fi if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && \ test -f conftest$ac_exeext ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then _pushcnt_GASNET_EXAMINE_BIN=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${GASNET_EXAMINE_BIN+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1` _total_pushcnt=`expr $_total_pushcnt + 1` GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:5) mv conftest$ac_exeext $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_SIZEOF_INT=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while link extracting sizeof(int)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_SIZEOF_INT" >&5 $as_echo "$gasnet_cv_SIZEOF_INT" >&6; } if test -n "$gasnet_cv_SIZEOF_INT" ; then SIZEOF_INT=$gasnet_cv_SIZEOF_INT fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(int) (binary probe),SIZEOF_INT,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) if test -z "$SIZEOF_INT" ; then # last resort is to use CROSS var # vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(SIZEOF_INT,SIZEOF_INT) vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$cross_compiling" = "yes" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_SIZEOF_INT,) vvvvvvvvvvvvvvvvvvvvvv (L:4) { $as_echo "$as_me:$LINENO: checking for CROSS_SIZEOF_INT in environment" >&5 $as_echo_n "checking for CROSS_SIZEOF_INT in environment... " >&6; } envval_src_CROSS_SIZEOF_INT="cached" if test "${gasnet_cv_envvar_CROSS_SIZEOF_INT+set}" = set; then $as_echo_n "(cached) " >&6 else case "${CROSS_SIZEOF_INT-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_int" != ""; then gasnet_cv_envvar_CROSS_SIZEOF_INT="$with_cross_sizeof_int" envval_src_CROSS_SIZEOF_INT=given else gasnet_cv_envvar_CROSS_SIZEOF_INT="" envval_src_CROSS_SIZEOF_INT=default fi ;; *) gasnet_cv_envvar_CROSS_SIZEOF_INT="$CROSS_SIZEOF_INT" envval_src_CROSS_SIZEOF_INT=given esac fi CROSS_SIZEOF_INT="$gasnet_cv_envvar_CROSS_SIZEOF_INT" case "$envval_src_CROSS_SIZEOF_INT" in 'cached') { $as_echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_INT\"" >&5 $as_echo "using cached value \"$CROSS_SIZEOF_INT\"" >&6; } ;; 'default') { $as_echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_INT\"" >&5 $as_echo "no, defaulting to \"$CROSS_SIZEOF_INT\"" >&6; } ;; 'given') { $as_echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_INT\"" >&5 $as_echo "yes, using \"$CROSS_SIZEOF_INT\"" >&6; } ;; *) echo echo "configure error: _GASNET_ENV_DEFAULT broken" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_SIZEOF_INT,) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) if test "$CROSS_SIZEOF_INT" = "" ; then { { $as_echo "$as_me:$LINENO: error: This configure script requires \$CROSS_SIZEOF_INT be set for cross-compilation" >&5 $as_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 { $as_echo "$as_me:$LINENO: checking size:" >&5 $as_echo_n "checking size:... " >&6; } fi # The cast to long int 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. { $as_echo "$as_me:$LINENO: checking size of int" >&5 $as_echo_n "checking size of int... " >&6; } if test "${ac_cv_sizeof_int+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (int))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (int))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else $as_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 core conftest.err conftest.$ac_objext conftest.$ac_ext done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (int))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (int))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else $as_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 core conftest.err conftest.$ac_objext conftest.$ac_ext done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err 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 /* 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 int) (sizeof (int))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_int=$ac_lo;; '') if test "$ac_cv_type_int" = yes; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute sizeof (int) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }; } else ac_cv_sizeof_int=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default static long int longval () { return (long int) (sizeof (int)); } static unsigned long int ulongval () { return (long int) (sizeof (int)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (int))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (int)))) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (int)))) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_int=`cat conftest.val` else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_int" = yes; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute sizeof (int) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }; } else ac_cv_sizeof_int=0 fi fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 $as_echo "$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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_int" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 echo "configure error: failed to find sizeof(int)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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) { $as_echo "$as_me:$LINENO: checking sizeof(long) (binary probe)" >&5 $as_echo_n "checking sizeof(long) (binary probe)... " >&6; } if test "${gasnet_cv_SIZEOF_LONG+set}" = set; then $as_echo_n "(cached) " >&6 else gasnet_cv_SIZEOF_LONG="" # vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include 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(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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.${ac_objext} ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") 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_objext}" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") ^^^^^^^^^^^^^^^^^^^^^^ (L:5) mv conftest.${ac_objext} $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_SIZEOF_LONG=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while compile extracting sizeof(long)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) if test -z "$gasnet_cv_SIZEOF_LONG" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include 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(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_echo "$as_me: error: failed to write conftest.$ac_ext" >&2;} { (exit 1); exit 1; }; } fi if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && \ test -f conftest$ac_exeext ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" = "" ; then _pushcnt_GASNET_EXAMINE_BIN=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi if test "${GASNET_EXAMINE_BIN+set}" = set; then _gasnet_pushvar_isset=1 else _gasnet_pushvar_isset=0 fi eval _pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=\$GASNET_EXAMINE_BIN eval _pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN=$_gasnet_pushvar_isset _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN + 1` _total_pushcnt=`expr $_total_pushcnt + 1` GASNET_EXAMINE_BIN="gasnet-examine-bin-$LINENO$ac_exeext" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO$ac_exeext") ^^^^^^^^^^^^^^^^^^^^^^ (L:5) mv conftest$ac_exeext $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_SIZEOF_LONG=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while link extracting sizeof(long)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_LINK_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) fi fi { $as_echo "$as_me:$LINENO: result: $gasnet_cv_SIZEOF_LONG" >&5 $as_echo "$gasnet_cv_SIZEOF_LONG" >&6; } if test -n "$gasnet_cv_SIZEOF_LONG" ; then SIZEOF_LONG=$gasnet_cv_SIZEOF_LONG fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_TRY_CACHE_EXTRACT_EXPR(sizeof(long) (binary probe),SIZEOF_LONG,...) ^^^^^^^^^^^^^^^^^^^^^^ (L:3) if test -z "$SIZEOF_LONG" ; then # last resort is to use CROSS var # vvvvvvvvvvvvvvvvvvvvvv GASNET_CROSS_VAR(SIZEOF_LONG,SIZEOF_LONG) vvvvvvvvvvvvvvvvvvvvvv (L:3) if test "$cross_compiling" = "yes" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_ENV_DEFAULT(CROSS_SIZEOF_LONG,) vvvvvvvvvvvvvvvvvvvvvv (L:4) { $as_echo "$as_me:$LINENO: checking for CROSS_SIZEOF_LONG in environment" >&5 $as_echo_n "checking for CROSS_SIZEOF_LONG in environment... " >&6; } envval_src_CROSS_SIZEOF_LONG="cached" if test "${gasnet_cv_envvar_CROSS_SIZEOF_LONG+set}" = set; then $as_echo_n "(cached) " >&6 else case "${CROSS_SIZEOF_LONG-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_long" != ""; then gasnet_cv_envvar_CROSS_SIZEOF_LONG="$with_cross_sizeof_long" envval_src_CROSS_SIZEOF_LONG=given else gasnet_cv_envvar_CROSS_SIZEOF_LONG="" envval_src_CROSS_SIZEOF_LONG=default fi ;; *) gasnet_cv_envvar_CROSS_SIZEOF_LONG="$CROSS_SIZEOF_LONG" envval_src_CROSS_SIZEOF_LONG=given esac fi CROSS_SIZEOF_LONG="$gasnet_cv_envvar_CROSS_SIZEOF_LONG" case "$envval_src_CROSS_SIZEOF_LONG" in 'cached') { $as_echo "$as_me:$LINENO: result: using cached value \"$CROSS_SIZEOF_LONG\"" >&5 $as_echo "using cached value \"$CROSS_SIZEOF_LONG\"" >&6; } ;; 'default') { $as_echo "$as_me:$LINENO: result: no, defaulting to \"$CROSS_SIZEOF_LONG\"" >&5 $as_echo "no, defaulting to \"$CROSS_SIZEOF_LONG\"" >&6; } ;; 'given') { $as_echo "$as_me:$LINENO: result: yes, using \"$CROSS_SIZEOF_LONG\"" >&5 $as_echo "yes, using \"$CROSS_SIZEOF_LONG\"" >&6; } ;; *) echo echo "configure error: _GASNET_ENV_DEFAULT broken" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } esac # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_ENV_DEFAULT(CROSS_SIZEOF_LONG,) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) if test "$CROSS_SIZEOF_LONG" = "" ; then { { $as_echo "$as_me:$LINENO: error: This configure script requires \$CROSS_SIZEOF_LONG be set for cross-compilation" >&5 $as_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 { $as_echo "$as_me:$LINENO: checking size:" >&5 $as_echo_n "checking size:... " >&6; } fi # The cast to long int 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. { $as_echo "$as_me:$LINENO: checking size of long" >&5 $as_echo_n "checking size of long... " >&6; } if test "${ac_cv_sizeof_long+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (long))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (long))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else $as_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 core conftest.err conftest.$ac_objext conftest.$ac_ext done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (long))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* 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 int) (sizeof (long))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else $as_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 core conftest.err conftest.$ac_objext conftest.$ac_ext done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err 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 /* 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 int) (sizeof (long))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_long=$ac_lo;; '') if test "$ac_cv_type_long" = yes; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute sizeof (long) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }; } else ac_cv_sizeof_long=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default static long int longval () { return (long int) (sizeof (long)); } static unsigned long int ulongval () { return (long int) (sizeof (long)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (long))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (long)))) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (long)))) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_long=`cat conftest.val` else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_long" = yes; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute sizeof (long) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }; } else ac_cv_sizeof_long=0 fi fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 $as_echo "$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: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on ac_cv_sizeof_long" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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 echo "configure error: failed to find sizeof(long)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&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) { $as_echo "$as_me:$LINENO: checking sizeof(long long) (binary probe)" >&5 $as_echo_n "checking sizeof(long long) (binary probe)... " >&6; } if test "${gasnet_cv_SIZEOF_LONG_LONG+set}" = set; then $as_echo_n "(cached) " >&6 else gasnet_cv_SIZEOF_LONG_LONG="" # vvvvvvvvvvvvvvvvvvvvvv GASNET_COMPILE_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include 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(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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.${ac_objext} ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") 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_objext}" echo "pushed new GASNET_EXAMINE_BIN value: $GASNET_EXAMINE_BIN" >&5 # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_PUSHVAR(GASNET_EXAMINE_BIN,"gasnet-examine-bin-$LINENO.${ac_objext}") ^^^^^^^^^^^^^^^^^^^^^^ (L:5) mv conftest.${ac_objext} $GASNET_EXAMINE_BIN _extract_prog='BEGIN{$/="\$";} if (m/^gasnetextractexpr: ([ -]) (.+?) \$/) { map($val=($val<<4)+($_-0x40),unpack("C8",$2)); print "-" if ($1 eq "-"); print $val;}' gasnet_cv_SIZEOF_LONG_LONG=`$PERL -ne "$_extract_prog" $GASNET_EXAMINE_BIN` rm -f $GASNET_EXAMINE_BIN # vvvvvvvvvvvvvvvvvvvvvv GASNET_POPVAR(GASNET_EXAMINE_BIN) vvvvvvvvvvvvvvvvvvvvvv (L:5) if test "$_pushcnt_GASNET_EXAMINE_BIN" -ge "1"; then _pushcnt_GASNET_EXAMINE_BIN=`expr $_pushcnt_GASNET_EXAMINE_BIN - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval _gasnet_pushvar_isset=\$_pushedvarset_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN if test "$_gasnet_pushvar_isset" = "1" ; then eval GASNET_EXAMINE_BIN=\$_pushedvar_GASNET_EXAMINE_BIN_$_pushcnt_GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: $GASNET_EXAMINE_BIN" >&5 else unset GASNET_EXAMINE_BIN echo "popping GASNET_EXAMINE_BIN back to: " >&5 fi else echo echo "configure error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on GASNET_EXAMINE_BIN" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_POPVAR(GASNET_EXAMINE_BIN) ^^^^^^^^^^^^^^^^^^^^^^ (L:5) else echo Failed program: >&5 cat conftest.$ac_ext >&5 echo echo "configure error: Failed while compile extracting sizeof(long long)" 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 { { $as_echo "$as_me:$LINENO: error: See $CONFIG_FILE for details." >&5 $as_echo "$as_me: error: See $CONFIG_FILE for details." >&2;} { (exit 1); exit 1; }; } fi # ^^^^^^^^^^^^^^^^^^^^^^ GASNET_COMPILE_EXAMINE(...) ^^^^^^^^^^^^^^^^^^^^^^ (L:4) if test -z "$gasnet_cv_SIZEOF_LONG_LONG" ; then # vvvvvvvvvvvvvvvvvvvvvv GASNET_LINK_EXAMINE(...) vvvvvvvvvvvvvvvvvvvvvv (L:4) cat >conftest.$ac_ext <<"EOF" #include "confdefs.h" #include 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(void) { char *p = s; while (*p) printf("%c",*(p++)); return 0; } EOF if test ! -f conftest.$ac_ext ; then { { $as_echo "$as_me:$LINENO: error: failed to write conftest.$ac_ext" >&5 $as_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 _ga