From 0cecb9bf493f6e37432819cc67dc44c775fafcfb Mon Sep 17 00:00:00 2001 From: Daniel Osei-Kuffuor Date: Thu, 9 Mar 2023 16:10:31 -0800 Subject: [PATCH 01/11] Added build system options for multiprecision build. --- src/config/HYPRE_config.h.in | 13 +- src/config/Makefile.config.in | 2 + src/config/configure.in | 24 + src/configure | 5398 ++++++++++++++------------------- 4 files changed, 2233 insertions(+), 3204 deletions(-) diff --git a/src/config/HYPRE_config.h.in b/src/config/HYPRE_config.h.in index ef0f16e67b..7910e28679 100644 --- a/src/config/HYPRE_config.h.in +++ b/src/config/HYPRE_config.h.in @@ -17,6 +17,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + /* Define to 1 if using MLI */ #undef HAVE_MLI @@ -26,9 +29,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H -/* Define to 1 if you have the header file. */ -#undef HAVE_STDIO_H - /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H @@ -121,6 +121,9 @@ /* Define to 1 if using long long int for HYPRE_BigInt */ #undef HYPRE_MIXEDINT +/* Define to 1 if using mixed-precision for HYPRE_Real type */ +#undef HYPRE_MIXED_PRECISION + /* Print HYPRE errors */ #undef HYPRE_PRINT_ERRORS @@ -301,7 +304,5 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION -/* Define to 1 if all of the C90 standard headers exist (not just the ones - required in a freestanding environment). This macro is provided for - backward compatibility; new code need not use it. */ +/* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS diff --git a/src/config/Makefile.config.in b/src/config/Makefile.config.in index 985ed51302..8202225af6 100644 --- a/src/config/Makefile.config.in +++ b/src/config/Makefile.config.in @@ -78,6 +78,8 @@ SHARED_BUILD_FLAG = @SHARED_BUILD_FLAG@ SHARED_SET_SONAME = @SHARED_SET_SONAME@ SHARED_OPTIONS = @SHARED_OPTIONS@ +MP_BUILD = @MP_BUILD@ + BUILD_PYTHON = @BUILD_PYTHON@ PYTHON = @PYTHON@ diff --git a/src/config/configure.in b/src/config/configure.in index 36a18b8541..39823b44f6 100644 --- a/src/config/configure.in +++ b/src/config/configure.in @@ -352,6 +352,25 @@ then AC_DEFINE(HYPRE_COMPLEX, 1, [Define to 1 if using complex values]) fi +dnl *** Mixed-precision support build option +AC_ARG_ENABLE(mixed-precision, +AS_HELP_STRING([--enable-mixed-precision], + [Enable mixed-precision build (default is NO).]), +[case "${enableval}" in + yes) hypre_using_fei=no + hypre_using_mixed_precision=yes ;; + no) hypre_using_mixed_precision=no ;; + *) AC_MSG_ERROR([Bad value ${enableval} for --enable-mixed-precision]) ;; + esac], +[hypre_using_mixed_precision=no] +) +MP_BUILD=0 +if test "$hypre_using_mixed_precision" = "yes" +then + AC_DEFINE(HYPRE_MIXED_PRECISION, 1, [Define to 1 if using mixed-precision for HYPRE_Real type]) + MP_BUILD=1 +fi + AC_ARG_ENABLE(maxdim, AS_HELP_STRING([--enable-maxdim=MAXDIM], [Change max dimension size to MAXDIM (default is 3). @@ -2915,6 +2934,11 @@ dnl ********************************************************************* AC_SUBST(DSUPERLU_INCLUDE) AC_SUBST(DSUPERLU_LIBS) +dnl ********************************************************************* +dnl * Mixed precision build +dnl ********************************************************************* +AC_SUBST(MP_BUILD) + dnl ********************************************************************* dnl * ar & ranlib substitution dnl ********************************************************************* diff --git a/src/configure b/src/configure index 22f6b7188c..5c95e6c51a 100755 --- a/src/configure +++ b/src/configure @@ -1,11 +1,10 @@ #! /bin/sh # From configure.in Id. # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for hypre 2.27.0. +# Generated by GNU Autoconf 2.69 for hypre 2.27.0. # # -# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, -# Inc. +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation @@ -19,16 +18,14 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: -if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 -then : +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 $as_nop +else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -38,46 +35,46 @@ esac fi - -# Reset variables that may have inherited troublesome values from -# the environment. - -# IFS needs to be set, to space, tab, and newline, in precisely that order. -# (If _AS_PATH_WALK were called with IFS unset, it would have the -# side effect of setting IFS to empty, thus disabling word splitting.) -# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -IFS=" "" $as_nl" - -PS1='$ ' -PS2='> ' -PS4='+ ' - -# Ensure predictable behavior from utilities with locale-dependent output. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# We cannot yet rely on "unset" to work, but we need these variables -# to be unset--not just set to an empty or harmless value--now, to -# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct -# also avoids known problems related to "unset" and subshell syntax -# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). -for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH -do eval test \${$as_var+y} \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done - -# Ensure that fds 0, 1, and 2 are open. -if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi -if (exec 3>&2) ; then :; else exec 2>/dev/null; fi +# 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 +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (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 ${PATH_SEPARATOR+false} :; then +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 || @@ -86,6 +83,13 @@ if ${PATH_SEPARATOR+false} :; then 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. as_myself= case $0 in #(( @@ -94,12 +98,8 @@ case $0 in #(( for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - test -r "$as_dir$0" && as_myself=$as_dir$0 && break + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS @@ -111,10 +111,30 @@ if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then - printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. @@ -136,22 +156,20 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 -exit 255 +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="as_nop=: -if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 -then : + as_bourne_compatible="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 \$as_nop +else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( @@ -171,53 +189,42 @@ as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ) -then : +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : -else \$as_nop +else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 -blah=\$(echo \$(echo blah)) -test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" - if (eval "$as_required") 2>/dev/null -then : + if (eval "$as_required") 2>/dev/null; then : as_have_required=yes -else $as_nop +else as_have_required=no fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null -then : + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : -else $as_nop +else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. - as_shell=$as_dir$as_base + as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null -then : + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes - if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null -then : + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi @@ -225,21 +232,14 @@ fi esac as_found=false done -IFS=$as_save_IFS -if $as_found -then : - -else $as_nop - if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null -then : +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes -fi -fi +fi; } +IFS=$as_save_IFS - if test "x$CONFIG_SHELL" != x -then : + if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also @@ -257,19 +257,18 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi - if test x$as_have_required = xno -then : - printf "%s\n" "$0: This script requires a shell more modern than all" - printf "%s\n" "$0: the shells that I found on your system." - if test ${ZSH_VERSION+y} ; then - printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" - printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." else - printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." @@ -296,7 +295,6 @@ as_fn_unset () } as_unset=as_fn_unset - # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -314,14 +312,6 @@ as_fn_exit () as_fn_set_status $1 exit $1 } # as_fn_exit -# as_fn_nop -# --------- -# Do nothing but, unlike ":", preserve the value of $?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop # as_fn_mkdir_p # ------------- @@ -336,7 +326,7 @@ as_fn_mkdir_p () as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -345,7 +335,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -printf "%s\n" X"$as_dir" | +$as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -384,13 +374,12 @@ as_fn_executable_p () # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null -then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' -else $as_nop +else as_fn_append () { eval $1=\$$1\$2 @@ -402,27 +391,18 @@ fi # as_fn_append # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null -then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else $as_nop +else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith -# as_fn_nop -# --------- -# Do nothing but, unlike ":", preserve the value of $?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- @@ -434,9 +414,9 @@ as_fn_error () as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - printf "%s\n" "$as_me: error: $2" >&2 + $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error @@ -463,7 +443,7 @@ as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -printf "%s\n" X/"$0" | +$as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -507,7 +487,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || - { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall @@ -521,10 +501,6 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits exit } - -# Determine whether it's possible to make 'echo' print without a newline. -# These variables are no longer used directly by Autoconf, but are AC_SUBSTed -# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -538,13 +514,6 @@ case `echo -n x` in #((((( ECHO_N='-n';; esac -# For backward compatibility with old third-party macros, we provide -# the shell variables $as_echo and $as_echo_n. New code should use -# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. -as_echo='printf %s\n' -as_echo_n='printf %s' - - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -621,39 +590,44 @@ ac_unique_file="HYPRE.h" ac_default_prefix=`pwd`/hypre # Factoring default headers for most tests. ac_includes_default="\ -#include -#ifdef HAVE_STDIO_H -# include +#include +#ifdef HAVE_SYS_TYPES_H +# include #endif -#ifdef HAVE_STDLIB_H +#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_STRINGS_H -# include -#endif -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif #ifdef HAVE_UNISTD_H # include #endif" -ac_header_c_list= ac_subst_vars='LTLIBOBJS LIBOBJS AR +MP_BUILD DSUPERLU_LIBS DSUPERLU_INCLUDE SUPERLU_LIBS @@ -775,7 +749,6 @@ infodir docdir oldincludedir includedir -runstatedir localstatedir sharedstatedir sysconfdir @@ -805,6 +778,7 @@ enable_bigint enable_single enable_longdouble enable_complex +enable_mixed_precision enable_maxdim enable_persistent enable_hopscotch @@ -954,7 +928,6 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' -runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -984,6 +957,8 @@ do *) ac_optarg=yes ;; esac + # Accept the important Cygnus configure options, so we can diagnose typos. + case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; @@ -1024,9 +999,9 @@ do 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_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt - ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1050,9 +1025,9 @@ do 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_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt - ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1205,15 +1180,6 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; - -runstatedir | --runstatedir | --runstatedi | --runstated \ - | --runstate | --runstat | --runsta | --runst | --runs \ - | --run | --ru | --r) - ac_prev=runstatedir ;; - -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ - | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ - | --run=* | --ru=* | --r=*) - runstatedir=$ac_optarg ;; - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1263,9 +1229,9 @@ do 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_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt - ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1279,9 +1245,9 @@ do 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_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt - ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1325,9 +1291,9 @@ Try \`$0 --help' for more information" *) # FIXME: should be removed in autoconf 3.0. - printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; @@ -1343,7 +1309,7 @@ if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi @@ -1351,7 +1317,7 @@ fi 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 runstatedir + libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1407,7 +1373,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -printf "%s\n" X"$as_myself" | +$as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -1504,7 +1470,6 @@ Fine tuning of the installation directories: --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] - --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -1548,6 +1513,8 @@ Optional Features: --enable-single Use single precision values (default is NO). --enable-longdouble Use long double precision values (default is NO). --enable-complex Use complex values (default is NO). + --enable-mixed-precision + Enable mixed-precision build (default is NO). --enable-maxdim=MAXDIM Change max dimension size to MAXDIM (default is 3). Currently must be at least 3. --enable-persistent Uses persistent communication (default is NO). @@ -1829,9 +1796,9 @@ if test "$ac_init_help" = "recursive"; then case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + 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/ ;; @@ -1859,8 +1826,7 @@ esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } - # Check for configure.gnu first; this name is used for a wrapper for - # Metaconfig's "Configure" on case-insensitive file systems. + # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive @@ -1868,7 +1834,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix echo && $SHELL "$ac_srcdir/configure" --help=recursive else - printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done @@ -1878,9 +1844,9 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF hypre configure 2.27.0 -generated by GNU Autoconf 2.71 +generated by GNU Autoconf 2.69 -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. @@ -1900,14 +1866,14 @@ fi ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest.beam + 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:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1915,15 +1881,14 @@ printf "%s\n" "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext -then : + } && test -s conftest.$ac_objext; then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else + $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1939,14 +1904,14 @@ fi ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest.beam + 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:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1954,15 +1919,14 @@ printf "%s\n" "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext -then : + } && test -s conftest.$ac_objext; then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else + $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1978,14 +1942,14 @@ fi ac_fn_fc_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest.beam + 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:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1993,15 +1957,14 @@ printf "%s\n" "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_fc_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext -then : + } && test -s conftest.$ac_objext; then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else + $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2017,14 +1980,14 @@ fi ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext + 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:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2032,18 +1995,17 @@ printf "%s\n" "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - } -then : + }; then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else + $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2064,12 +2026,11 @@ fi ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -printf %s "checking for $2... " >&6; } -if eval test \${$3+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. @@ -2077,9 +2038,16 @@ else $as_nop #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. */ + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif -#include #undef $2 /* Override any GCC internal prototype to avoid an error. @@ -2105,25 +2073,24 @@ choke me #endif #endif int -main (void) +main () { return $2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" -else $as_nop +else eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func @@ -2140,7 +2107,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2148,15 +2115,14 @@ printf "%s\n" "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err - } -then : + }; then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else + $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2166,6 +2132,135 @@ fi } # ac_fn_c_try_cpp +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + 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:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { 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:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +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 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in @@ -2173,59 +2268,37 @@ fi ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -printf %s "checking for $2... " >&6; } -if eval test \${$3+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" -else $as_nop +else eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile -ac_configure_args_raw= -for ac_arg -do - case $ac_arg in - *\'*) - ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - as_fn_append ac_configure_args_raw " '$ac_arg'" -done - -case $ac_configure_args_raw in - *$as_nl*) - ac_safe_unquote= ;; - *) - ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. - ac_unsafe_a="$ac_unsafe_z#~" - ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" - ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; -esac - 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 hypre $as_me 2.27.0, which was -generated by GNU Autoconf 2.71. Invocation command line was +generated by GNU Autoconf 2.69. Invocation command line was - $ $0$ac_configure_args_raw + $ $0 $@ _ACEOF exec 5>>config.log @@ -2258,12 +2331,8 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - printf "%s\n" "PATH: $as_dir" + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" done IFS=$as_save_IFS @@ -2298,7 +2367,7 @@ do | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) - ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; @@ -2333,13 +2402,11 @@ done # 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=$? - # Sanitize IFS. - IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo - printf "%s\n" "## ---------------- ## + $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo @@ -2350,8 +2417,8 @@ trap 'exit_status=$? case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { $as_echo "$as_me:${as_lineno-$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) ;; #( @@ -2375,7 +2442,7 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ) echo - printf "%s\n" "## ----------------- ## + $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -2383,14 +2450,14 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - printf "%s\n" "$ac_var='\''$ac_val'\''" + $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then - printf "%s\n" "## ------------------- ## + $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo @@ -2398,15 +2465,15 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - printf "%s\n" "$ac_var='\''$ac_val'\''" + $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then - printf "%s\n" "## ----------- ## + $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo @@ -2414,8 +2481,8 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} echo fi test "$ac_signal" != 0 && - printf "%s\n" "$as_me: caught signal $ac_signal" - printf "%s\n" "$as_me: exit $exit_status" + $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 && @@ -2429,48 +2496,63 @@ ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h -printf "%s\n" "/* confdefs.h */" > confdefs.h +$as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. -printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF -printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF -printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF -printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF -printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF -printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_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_files="$CONFIG_SITE" + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac elif test "x$prefix" != xNONE; then - ac_site_files="$prefix/share/config.site $prefix/etc/config.site" + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site else - ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + 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_files +for ac_site_file in "$ac_site_file1" "$ac_site_file2" do - case $ac_site_file in #( - */*) : - ;; #( - *) : - ac_site_file=./$ac_site_file ;; -esac - if test -f "$ac_site_file" && test -r "$ac_site_file"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$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" \ - || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi @@ -2480,650 +2562,19 @@ if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -printf "%s\n" "$as_me: loading cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -printf "%s\n" "$as_me: creating cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi -# Test code for whether the C compiler supports C89 (global declarations) -ac_c_conftest_c89_globals=' -/* Does the compiler advertise C89 conformance? - Do not test the value of __STDC__, because some compilers set it to 0 - while being otherwise adequately conformant. */ -#if !defined __STDC__ -# error "Compiler does not advertise C89 conformance" -#endif - -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ -struct buf { int x; }; -struct buf * (*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 do not provoke an error unfortunately, instead are silently treated - as an "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 is necessary to write \x00 == 0 to get something - that is 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 **, int *(*)(struct buf *, struct stat *, int), - int, int);' - -# Test code for whether the C compiler supports C89 (body of main). -ac_c_conftest_c89_main=' -ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); -' - -# Test code for whether the C compiler supports C99 (global declarations) -ac_c_conftest_c99_globals=' -// Does the compiler advertise C99 conformance? -#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L -# error "Compiler does not advertise C99 conformance" -#endif - -#include -extern int puts (const char *); -extern int printf (const char *, ...); -extern int dprintf (int, const char *, ...); -extern void *malloc (size_t); - -// Check varargs macros. These examples are taken from C99 6.10.3.5. -// dprintf is used instead of fprintf to avoid needing to declare -// FILE and stderr. -#define debug(...) dprintf (2, __VA_ARGS__) -#define showlist(...) puts (#__VA_ARGS__) -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) -static void -test_varargs_macros (void) -{ - int x = 1234; - int y = 5678; - debug ("Flag"); - debug ("X = %d\n", x); - showlist (The first, second, and third items.); - report (x>y, "x is %d but y is %d", x, y); -} - -// Check long long types. -#define BIG64 18446744073709551615ull -#define BIG32 4294967295ul -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) -#if !BIG_OK - #error "your preprocessor is broken" -#endif -#if BIG_OK -#else - #error "your preprocessor is broken" -#endif -static long long int bignum = -9223372036854775807LL; -static unsigned long long int ubignum = BIG64; - -struct incomplete_array -{ - int datasize; - double data[]; -}; - -struct named_init { - int number; - const wchar_t *name; - double average; -}; - -typedef const char *ccp; - -static inline int -test_restrict (ccp restrict text) -{ - // See if C++-style comments work. - // Iterate through items via the restricted pointer. - // Also check for declarations in for loops. - for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) - continue; - return 0; -} - -// Check varargs and va_copy. -static bool -test_varargs (const char *format, ...) -{ - va_list args; - va_start (args, format); - va_list args_copy; - va_copy (args_copy, args); - - const char *str = ""; - int number = 0; - float fnumber = 0; - - while (*format) - { - switch (*format++) - { - case '\''s'\'': // string - str = va_arg (args_copy, const char *); - break; - case '\''d'\'': // int - number = va_arg (args_copy, int); - break; - case '\''f'\'': // float - fnumber = va_arg (args_copy, double); - break; - default: - break; - } - } - va_end (args_copy); - va_end (args); - - return *str && number && fnumber; -} -' - -# Test code for whether the C compiler supports C99 (body of main). -ac_c_conftest_c99_main=' - // Check bool. - _Bool success = false; - success |= (argc != 0); - - // Check restrict. - if (test_restrict ("String literal") == 0) - success = true; - char *restrict newvar = "Another string"; - - // Check varargs. - success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); - test_varargs_macros (); - - // Check flexible array members. - struct incomplete_array *ia = - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); - ia->datasize = 10; - for (int i = 0; i < ia->datasize; ++i) - ia->data[i] = i * 1.234; - - // Check named initializers. - struct named_init ni = { - .number = 34, - .name = L"Test wide string", - .average = 543.34343, - }; - - ni.number = 58; - - int dynamic_array[ni.number]; - dynamic_array[0] = argv[0][0]; - dynamic_array[ni.number - 1] = 543; - - // work around unused variable warnings - ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' - || dynamic_array[ni.number - 1] != 543); -' - -# Test code for whether the C compiler supports C11 (global declarations) -ac_c_conftest_c11_globals=' -// Does the compiler advertise C11 conformance? -#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L -# error "Compiler does not advertise C11 conformance" -#endif - -// Check _Alignas. -char _Alignas (double) aligned_as_double; -char _Alignas (0) no_special_alignment; -extern char aligned_as_int; -char _Alignas (0) _Alignas (int) aligned_as_int; - -// Check _Alignof. -enum -{ - int_alignment = _Alignof (int), - int_array_alignment = _Alignof (int[100]), - char_alignment = _Alignof (char) -}; -_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); - -// Check _Noreturn. -int _Noreturn does_not_return (void) { for (;;) continue; } - -// Check _Static_assert. -struct test_static_assert -{ - int x; - _Static_assert (sizeof (int) <= sizeof (long int), - "_Static_assert does not work in struct"); - long int y; -}; - -// Check UTF-8 literals. -#define u8 syntax error! -char const utf8_literal[] = u8"happens to be ASCII" "another string"; - -// Check duplicate typedefs. -typedef long *long_ptr; -typedef long int *long_ptr; -typedef long_ptr long_ptr; - -// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. -struct anonymous -{ - union { - struct { int i; int j; }; - struct { int k; long int l; } w; - }; - int m; -} v1; -' - -# Test code for whether the C compiler supports C11 (body of main). -ac_c_conftest_c11_main=' - _Static_assert ((offsetof (struct anonymous, i) - == offsetof (struct anonymous, w.k)), - "Anonymous union alignment botch"); - v1.i = 2; - v1.w.k = 5; - ok |= v1.i != 5; -' - -# Test code for whether the C compiler supports C11 (complete). -ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} -${ac_c_conftest_c99_globals} -${ac_c_conftest_c11_globals} - -int -main (int argc, char **argv) -{ - int ok = 0; - ${ac_c_conftest_c89_main} - ${ac_c_conftest_c99_main} - ${ac_c_conftest_c11_main} - return ok; -} -" - -# Test code for whether the C compiler supports C99 (complete). -ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} -${ac_c_conftest_c99_globals} - -int -main (int argc, char **argv) -{ - int ok = 0; - ${ac_c_conftest_c89_main} - ${ac_c_conftest_c99_main} - return ok; -} -" - -# Test code for whether the C compiler supports C89 (complete). -ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} - -int -main (int argc, char **argv) -{ - int ok = 0; - ${ac_c_conftest_c89_main} - return ok; -} -" - -# Test code for whether the C++ compiler supports C++98 (global declarations) -ac_cxx_conftest_cxx98_globals=' -// Does the compiler advertise C++98 conformance? -#if !defined __cplusplus || __cplusplus < 199711L -# error "Compiler does not advertise C++98 conformance" -#endif - -// These inclusions are to reject old compilers that -// lack the unsuffixed header files. -#include -#include - -// and are *not* freestanding headers in C++98. -extern void assert (int); -namespace std { - extern int strcmp (const char *, const char *); -} - -// Namespaces, exceptions, and templates were all added after "C++ 2.0". -using std::exception; -using std::strcmp; - -namespace { - -void test_exception_syntax() -{ - try { - throw "test"; - } catch (const char *s) { - // Extra parentheses suppress a warning when building autoconf itself, - // due to lint rules shared with more typical C programs. - assert (!(strcmp) (s, "test")); - } -} - -template struct test_template -{ - T const val; - explicit test_template(T t) : val(t) {} - template T add(U u) { return static_cast(u) + val; } -}; - -} // anonymous namespace -' - -# Test code for whether the C++ compiler supports C++98 (body of main) -ac_cxx_conftest_cxx98_main=' - assert (argc); - assert (! argv[0]); -{ - test_exception_syntax (); - test_template tt (2.0); - assert (tt.add (4) == 6.0); - assert (true && !false); -} -' - -# Test code for whether the C++ compiler supports C++11 (global declarations) -ac_cxx_conftest_cxx11_globals=' -// Does the compiler advertise C++ 2011 conformance? -#if !defined __cplusplus || __cplusplus < 201103L -# error "Compiler does not advertise C++11 conformance" -#endif - -namespace cxx11test -{ - constexpr int get_val() { return 20; } - - struct testinit - { - int i; - double d; - }; - - class delegate - { - public: - delegate(int n) : n(n) {} - delegate(): delegate(2354) {} - - virtual int getval() { return this->n; }; - protected: - int n; - }; - - class overridden : public delegate - { - public: - overridden(int n): delegate(n) {} - virtual int getval() override final { return this->n * 2; } - }; - - class nocopy - { - public: - nocopy(int i): i(i) {} - nocopy() = default; - nocopy(const nocopy&) = delete; - nocopy & operator=(const nocopy&) = delete; - private: - int i; - }; - - // for testing lambda expressions - template Ret eval(Fn f, Ret v) - { - return f(v); - } - - // for testing variadic templates and trailing return types - template auto sum(V first) -> V - { - return first; - } - template auto sum(V first, Args... rest) -> V - { - return first + sum(rest...); - } -} -' - -# Test code for whether the C++ compiler supports C++11 (body of main) -ac_cxx_conftest_cxx11_main=' -{ - // Test auto and decltype - auto a1 = 6538; - auto a2 = 48573953.4; - auto a3 = "String literal"; - - int total = 0; - for (auto i = a3; *i; ++i) { total += *i; } - - decltype(a2) a4 = 34895.034; -} -{ - // Test constexpr - short sa[cxx11test::get_val()] = { 0 }; -} -{ - // Test initializer lists - cxx11test::testinit il = { 4323, 435234.23544 }; -} -{ - // Test range-based for - int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, - 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; - for (auto &x : array) { x += 23; } -} -{ - // Test lambda expressions - using cxx11test::eval; - assert (eval ([](int x) { return x*2; }, 21) == 42); - double d = 2.0; - assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); - assert (d == 5.0); - assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); - assert (d == 5.0); -} -{ - // Test use of variadic templates - using cxx11test::sum; - auto a = sum(1); - auto b = sum(1, 2); - auto c = sum(1.0, 2.0, 3.0); -} -{ - // Test constructor delegation - cxx11test::delegate d1; - cxx11test::delegate d2(); - cxx11test::delegate d3(45); -} -{ - // Test override and final - cxx11test::overridden o1(55464); -} -{ - // Test nullptr - char *c = nullptr; -} -{ - // Test template brackets - test_template<::test_template> v(test_template(12)); -} -{ - // Unicode literals - char const *utf8 = u8"UTF-8 string \u2500"; - char16_t const *utf16 = u"UTF-8 string \u2500"; - char32_t const *utf32 = U"UTF-32 string \u2500"; -} -' - -# Test code for whether the C compiler supports C++11 (complete). -ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} -${ac_cxx_conftest_cxx11_globals} - -int -main (int argc, char **argv) -{ - int ok = 0; - ${ac_cxx_conftest_cxx98_main} - ${ac_cxx_conftest_cxx11_main} - return ok; -} -" - -# Test code for whether the C compiler supports C++98 (complete). -ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} -int -main (int argc, char **argv) -{ - int ok = 0; - ${ac_cxx_conftest_cxx98_main} - return ok; -} -" - -as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" -as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" -as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" -as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" -as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" -as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" -as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" -as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" -as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" - -# Auxiliary files required by this configure script. -ac_aux_files="config.guess config.sub" - -# Locations in which to look for auxiliary files. -ac_aux_dir_candidates="${srcdir}/config" - -# Search for a directory containing all of the required auxiliary files, -# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. -# If we don't find one directory that contains all the files we need, -# we report the set of missing files from the *first* directory in -# $ac_aux_dir_candidates and give up. -ac_missing_aux_files="" -ac_first_candidate=: -printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_found=false -for as_dir in $ac_aux_dir_candidates -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - as_found=: - - printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 - ac_aux_dir_found=yes - ac_install_sh= - for ac_aux in $ac_aux_files - do - # As a special case, if "install-sh" is required, that requirement - # can be satisfied by any of "install-sh", "install.sh", or "shtool", - # and $ac_install_sh is set appropriately for whichever one is found. - if test x"$ac_aux" = x"install-sh" - then - if test -f "${as_dir}install-sh"; then - printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 - ac_install_sh="${as_dir}install-sh -c" - elif test -f "${as_dir}install.sh"; then - printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 - ac_install_sh="${as_dir}install.sh -c" - elif test -f "${as_dir}shtool"; then - printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 - ac_install_sh="${as_dir}shtool install -c" - else - ac_aux_dir_found=no - if $ac_first_candidate; then - ac_missing_aux_files="${ac_missing_aux_files} install-sh" - else - break - fi - fi - else - if test -f "${as_dir}${ac_aux}"; then - printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 - else - ac_aux_dir_found=no - if $ac_first_candidate; then - ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" - else - break - fi - fi - fi - done - if test "$ac_aux_dir_found" = yes; then - ac_aux_dir="$as_dir" - break - fi - ac_first_candidate=false - - as_found=false -done -IFS=$as_save_IFS -if $as_found -then : - -else $as_nop - as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 -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. -if test -f "${ac_aux_dir}config.guess"; then - ac_config_guess="$SHELL ${ac_aux_dir}config.guess" -fi -if test -f "${ac_aux_dir}config.sub"; then - ac_config_sub="$SHELL ${ac_aux_dir}config.sub" -fi -if test -f "$ac_aux_dir/configure"; then - ac_configure="$SHELL ${ac_aux_dir}configure" -fi - # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false @@ -3134,12 +2585,12 @@ for ac_var in $ac_precious_vars; do eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { $as_echo "$as_me:${as_lineno-$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) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { $as_echo "$as_me:${as_lineno-$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=: ;; ,);; *) @@ -3148,24 +2599,24 @@ printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { $as_echo "$as_me:${as_lineno-$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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { $as_echo "$as_me:${as_lineno-$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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$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=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) 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 @@ -3175,12 +2626,11 @@ printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi done if $ac_cache_corrupted; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' - and start over" "$LINENO" 5 + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$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_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## @@ -3197,6 +2647,34 @@ ac_config_headers="$ac_config_headers HYPRE_config.h:config/HYPRE_config.h.in" +ac_aux_dir= +for ac_dir in config "$srcdir"/config; 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_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 +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. + @@ -3211,22 +2689,34 @@ HYPRE_BUGS="https://github.com/hypre-space/hypre/issues" HYPRE_SRCDIR="`pwd`" -printf "%s\n" "#define HYPRE_RELEASE_NAME \"$HYPRE_NAME\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_RELEASE_NAME "$HYPRE_NAME" +_ACEOF -printf "%s\n" "#define HYPRE_RELEASE_VERSION \"$HYPRE_VERSION\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_RELEASE_VERSION "$HYPRE_VERSION" +_ACEOF -printf "%s\n" "#define HYPRE_RELEASE_NUMBER $HYPRE_NUMBER" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_RELEASE_NUMBER $HYPRE_NUMBER +_ACEOF -printf "%s\n" "#define HYPRE_RELEASE_DATE \"$HYPRE_DATE\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_RELEASE_DATE "$HYPRE_DATE" +_ACEOF -printf "%s\n" "#define HYPRE_RELEASE_TIME \"$HYPRE_TIME\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_RELEASE_TIME "$HYPRE_TIME" +_ACEOF -printf "%s\n" "#define HYPRE_RELEASE_BUGS \"$HYPRE_BUGS\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_RELEASE_BUGS "$HYPRE_BUGS" +_ACEOF @@ -3238,45 +2728,50 @@ printf "%s\n" "#define HYPRE_RELEASE_BUGS \"$HYPRE_BUGS\"" >>confdefs.h -if test -d "$HYPRE_SRCDIR/../.git" -then : +if test -d "$HYPRE_SRCDIR/../.git"; then : develop_string=$(git -C $HYPRE_SRCDIR describe --match 'v*' --long --abbrev=9) develop_lastag=$(git -C $HYPRE_SRCDIR describe --match 'v*' --abbrev=0) develop_number=$(git -C $HYPRE_SRCDIR rev-list --count $develop_lastag..HEAD) develop_branch=$(git -C $HYPRE_SRCDIR rev-parse --abbrev-ref HEAD) - if test -n "$develop_string" -then : + if test -n "$develop_string"; then : -printf "%s\n" "#define HYPRE_DEVELOP_STRING \"$develop_string\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_DEVELOP_STRING "$develop_string" +_ACEOF -printf "%s\n" "#define HYPRE_DEVELOP_NUMBER $develop_number" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_DEVELOP_NUMBER $develop_number +_ACEOF -printf "%s\n" "#define HYPRE_BRANCH_NAME \"$develop_branch\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_BRANCH_NAME "$develop_branch" +_ACEOF - if test "x$develop_branch" = "xmaster" -then : + if test "x$develop_branch" = "xmaster"; then : -printf "%s\n" "#define HYPRE_DEVELOP_BRANCH \"$develop_branch\"" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_DEVELOP_BRANCH "$develop_branch" +_ACEOF -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: NOTE: On branch $develop_branch, not the main development branch" >&5 -printf "%s\n" "$as_me: NOTE: On branch $develop_branch, not the main development branch" >&6;} +else + { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: On branch $develop_branch, not the main development branch" >&5 +$as_echo "$as_me: NOTE: On branch $develop_branch, not the main development branch" >&6;} fi -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: NOTE: Could not describe development branch" >&5 -printf "%s\n" "$as_me: NOTE: Could not describe development branch" >&6;} +else + { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: Could not describe development branch" >&5 +$as_echo "$as_me: NOTE: Could not describe development branch" >&6;} fi -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: NOTE: Could not find .git directory" >&5 -printf "%s\n" "$as_me: NOTE: Could not find .git directory" >&6;} +else + { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: Could not find .git directory" >&5 +$as_echo "$as_me: NOTE: Could not find .git directory" >&6;} fi @@ -3366,30 +2861,26 @@ hypre_lapack_lib_dir_old_style=no if test "x$build_alias" = "x" then + # Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - - - # Make sure we can run config.sub. -$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -printf %s "checking build system type... " >&6; } -if test ${ac_cv_build+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; 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"` + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -printf "%s\n" "$ac_cv_build" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; @@ -3412,22 +2903,21 @@ fi if test "x$host_alias" = "x" then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -printf %s "checking host system type... " >&6; } -if test ${ac_cv_host+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; 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_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -printf "%s\n" "$ac_cv_host" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; @@ -3454,36 +2944,33 @@ then fi # Check whether --enable-debug was given. -if test ${enable_debug+y} -then : +if test "${enable_debug+set}" = set; then : enableval=$enable_debug; case "${enableval}" in yes) hypre_using_debug=yes ;; no) hypre_using_debug=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; esac -else $as_nop +else hypre_using_debug=no fi # Check whether --enable-shared was given. -if test ${enable_shared+y} -then : +if test "${enable_shared+set}" = set; then : enableval=$enable_shared; case "${enableval}" in yes) hypre_using_shared=yes ;; no) hypre_using_shared=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-shared" "$LINENO" 5 ;; esac -else $as_nop +else hypre_using_shared=no fi # Check whether --enable-mixedint was given. -if test ${enable_mixedint+y} -then : +if test "${enable_mixedint+set}" = set; then : enableval=$enable_mixedint; case "${enableval}" in yes) hypre_using_fei=no hypre_using_mixedint=yes @@ -3492,7 +2979,7 @@ then : hypre_using_distributed_ls=yes ;; *) as_fn_error $? "Bad value ${enableval} for --enable-mixedint" "$LINENO" 5 ;; esac -else $as_nop +else hypre_using_mixedint=no fi @@ -3500,20 +2987,19 @@ fi if test "$hypre_using_mixedint" = "yes" then -printf "%s\n" "#define HYPRE_MIXEDINT 1" >>confdefs.h +$as_echo "#define HYPRE_MIXEDINT 1" >>confdefs.h fi # Check whether --enable-bigint was given. -if test ${enable_bigint+y} -then : +if test "${enable_bigint+set}" = set; then : enableval=$enable_bigint; case "${enableval}" in yes) hypre_using_fei=no hypre_using_bigint=yes ;; no) hypre_using_bigint=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-bigint" "$LINENO" 5 ;; esac -else $as_nop +else hypre_using_bigint=no fi @@ -3521,20 +3007,19 @@ fi if test "$hypre_using_bigint" = "yes" then -printf "%s\n" "#define HYPRE_BIGINT 1" >>confdefs.h +$as_echo "#define HYPRE_BIGINT 1" >>confdefs.h fi # Check whether --enable-single was given. -if test ${enable_single+y} -then : +if test "${enable_single+set}" = set; then : enableval=$enable_single; case "${enableval}" in yes) hypre_using_fei=no hypre_using_single=yes ;; no) hypre_using_single=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-single" "$LINENO" 5 ;; esac -else $as_nop +else hypre_using_single=no fi @@ -3542,20 +3027,19 @@ fi if test "$hypre_using_single" = "yes" then -printf "%s\n" "#define HYPRE_SINGLE 1" >>confdefs.h +$as_echo "#define HYPRE_SINGLE 1" >>confdefs.h fi # Check whether --enable-longdouble was given. -if test ${enable_longdouble+y} -then : +if test "${enable_longdouble+set}" = set; then : enableval=$enable_longdouble; case "${enableval}" in yes) hypre_using_fei=no hypre_using_longdouble=yes ;; no) hypre_using_longdouble=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-longdouble" "$LINENO" 5 ;; esac -else $as_nop +else hypre_using_longdouble=no fi @@ -3563,20 +3047,19 @@ fi if test "$hypre_using_longdouble" = "yes" then -printf "%s\n" "#define HYPRE_LONG_DOUBLE 1" >>confdefs.h +$as_echo "#define HYPRE_LONG_DOUBLE 1" >>confdefs.h fi # Check whether --enable-complex was given. -if test ${enable_complex+y} -then : +if test "${enable_complex+set}" = set; then : enableval=$enable_complex; case "${enableval}" in yes) hypre_using_fei=no hypre_using_complex=yes ;; no) hypre_using_complex=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-complex" "$LINENO" 5 ;; esac -else $as_nop +else hypre_using_complex=no fi @@ -3584,32 +3067,54 @@ fi if test "$hypre_using_complex" = "yes" then -printf "%s\n" "#define HYPRE_COMPLEX 1" >>confdefs.h +$as_echo "#define HYPRE_COMPLEX 1" >>confdefs.h + +fi + +# Check whether --enable-mixed-precision was given. +if test "${enable_mixed_precision+set}" = set; then : + enableval=$enable_mixed_precision; case "${enableval}" in + yes) hypre_using_fei=no + hypre_using_mixed_precision=yes ;; + no) hypre_using_mixed_precision=no ;; + *) as_fn_error $? "Bad value ${enableval} for --enable-mixed-precision" "$LINENO" 5 ;; + esac +else + hypre_using_mixed_precision=no fi +MP_BUILD=0 +if test "$hypre_using_mixed_precision" = "yes" +then + +$as_echo "#define HYPRE_MIXED_PRECISION 1" >>confdefs.h + + MP_BUILD=1 +fi + # Check whether --enable-maxdim was given. -if test ${enable_maxdim+y} -then : +if test "${enable_maxdim+set}" = set; then : enableval=$enable_maxdim; hypre_maxdim=${enableval} -else $as_nop +else hypre_maxdim=3 fi -printf "%s\n" "#define HYPRE_MAXDIM $hypre_maxdim" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_MAXDIM $hypre_maxdim +_ACEOF # Check whether --enable-persistent was given. -if test ${enable_persistent+y} -then : +if test "${enable_persistent+set}" = set; then : enableval=$enable_persistent; case "${enableval}" in yes) hypre_using_persistent=yes ;; no) hypre_using_persistent=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-persistent" "$LINENO" 5 ;; esac -else $as_nop +else hypre_using_persistent=no fi @@ -3617,19 +3122,18 @@ fi if test "$hypre_using_persistent" = "yes" then -printf "%s\n" "#define HYPRE_USING_PERSISTENT_COMM 1" >>confdefs.h +$as_echo "#define HYPRE_USING_PERSISTENT_COMM 1" >>confdefs.h fi # Check whether --enable-hopscotch was given. -if test ${enable_hopscotch+y} -then : +if test "${enable_hopscotch+set}" = set; then : enableval=$enable_hopscotch; case "${enableval}" in yes) hypre_using_hopscotch=yes ;; no) hypre_using_hopscotch=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-hopscotch" "$LINENO" 5 ;; esac -else $as_nop +else hypre_using_hopscotch=no fi @@ -3637,89 +3141,83 @@ fi if test "$hypre_using_hopscotch" = "yes" then -printf "%s\n" "#define HYPRE_HOPSCOTCH 1" >>confdefs.h +$as_echo "#define HYPRE_HOPSCOTCH 1" >>confdefs.h fi # Check whether --enable-fortran was given. -if test ${enable_fortran+y} -then : +if test "${enable_fortran+set}" = set; then : enableval=$enable_fortran; case "${enableval}" in yes) hypre_using_fortran=yes ;; no) hypre_using_fortran=no ;; *) hypre_using_fortran=yes ;; esac -else $as_nop +else hypre_using_fortran=yes fi # Check whether --enable-unified-memory was given. -if test ${enable_unified_memory+y} -then : +if test "${enable_unified_memory+set}" = set; then : enableval=$enable_unified_memory; case "${enableval}" in yes) hypre_using_um=yes ;; no) hypre_using_um=no ;; *) hypre_using_um=no ;; esac -else $as_nop +else hypre_using_um=no fi # Check whether --enable-device-memory-pool was given. -if test ${enable_device_memory_pool+y} -then : +if test "${enable_device_memory_pool+set}" = set; then : enableval=$enable_device_memory_pool; case "${enableval}" in yes) hypre_using_device_pool=yes ;; no) hypre_using_device_pool=no ;; *) hypre_using_device_pool=no ;; esac -else $as_nop +else hypre_using_device_pool=no fi # Check whether --enable-device-malloc-async was given. -if test ${enable_device_malloc_async+y} -then : +if test "${enable_device_malloc_async+set}" = set; then : enableval=$enable_device_malloc_async; case "${enableval}" in yes) hypre_using_device_malloc_async=yes ;; no) hypre_using_device_malloc_async=no ;; *) hypre_using_device_malloc_async=no ;; esac -else $as_nop +else hypre_using_device_malloc_async=no fi # Check whether --enable-gpu-profiling was given. -if test ${enable_gpu_profiling+y} -then : +if test "${enable_gpu_profiling+set}" = set; then : enableval=$enable_gpu_profiling; case "${enableval}" in yes) hypre_using_gpu_profiling=yes ;; no) hypre_using_gpu_profiling=no ;; *) hypre_using_gpu_profiling=no ;; esac -else $as_nop +else hypre_using_gpu_profiling=no fi # Check whether --enable-gpu-aware-mpi was given. -if test ${enable_gpu_aware_mpi+y} -then : +if test "${enable_gpu_aware_mpi+set}" = set; then : enableval=$enable_gpu_aware_mpi; case "${enableval}" in yes) hypre_gpu_mpi=yes ;; no) hypre_gpu_mpi=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-gpu-aware-mpi" "$LINENO" 5 ;; esac -else $as_nop +else hypre_gpu_mpi=no fi @@ -3811,8 +3309,7 @@ fi # Check whether --with-cxxstandard was given. -if test ${with_cxxstandard+y} -then : +if test "${with_cxxstandard+set}" = set; then : withval=$with_cxxstandard; hypre_cxxstd=$withval fi @@ -3821,8 +3318,7 @@ fi # Check whether --with-LD was given. -if test ${with_LD+y} -then : +if test "${with_LD+set}" = set; then : withval=$with_LD; LD=$withval fi @@ -3830,8 +3326,7 @@ fi # Check whether --with-LDFLAGS was given. -if test ${with_LDFLAGS+y} -then : +if test "${with_LDFLAGS+set}" = set; then : withval=$with_LDFLAGS; LDFLAGS=$withval fi @@ -3839,8 +3334,7 @@ fi # Check whether --with-extra-CFLAGS was given. -if test ${with_extra_CFLAGS+y} -then : +if test "${with_extra_CFLAGS+set}" = set; then : withval=$with_extra_CFLAGS; EXTRA_CFLAGS=$withval fi @@ -3848,8 +3342,7 @@ fi # Check whether --with-extra-CXXFLAGS was given. -if test ${with_extra_CXXFLAGS+y} -then : +if test "${with_extra_CXXFLAGS+set}" = set; then : withval=$with_extra_CXXFLAGS; EXTRA_CXXFLAGS=$withval fi @@ -3857,8 +3350,7 @@ fi # Check whether --with-extra-CUFLAGS was given. -if test ${with_extra_CUFLAGS+y} -then : +if test "${with_extra_CUFLAGS+set}" = set; then : withval=$with_extra_CUFLAGS; EXTRA_CUFLAGS=$withval fi @@ -3866,8 +3358,7 @@ fi # Check whether --with-extra-BUILDFLAGS was given. -if test ${with_extra_BUILDFLAGS+y} -then : +if test "${with_extra_BUILDFLAGS+set}" = set; then : withval=$with_extra_BUILDFLAGS; EXTRA_BUILDFLAGS=$withval fi @@ -3875,8 +3366,7 @@ fi # Check whether --with-extra-incpath was given. -if test ${with_extra_incpath+y} -then : +if test "${with_extra_incpath+set}" = set; then : withval=$with_extra_incpath; CCFLAGS="${CCFLAGS} -I`echo ${withval}|sed 's/ /\ -I/g'`" fi @@ -3884,8 +3374,7 @@ fi # Check whether --with-extra-ldpath was given. -if test ${with_extra_ldpath+y} -then : +if test "${with_extra_ldpath+set}" = set; then : withval=$with_extra_ldpath; LDFLAGS="-L`echo ${withval}|sed 's/ /\ -L/g'` ${LDFLAGS}" fi @@ -3893,8 +3382,7 @@ fi # Check whether --with-insure was given. -if test ${with_insure+y} -then : +if test "${with_insure+set}" = set; then : withval=$with_insure; case "${withval}" in yes) hypre_using_insure=yes hypre_using_debug=yes @@ -3910,8 +3398,7 @@ fi # Check whether --with-strict-checking was given. -if test ${with_strict_checking+y} -then : +if test "${with_strict_checking+set}" = set; then : withval=$with_strict_checking; case "${withval}" in yes) hypre_user_chose_ccompilers=yes @@ -3927,12 +3414,11 @@ then : do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -3940,15 +3426,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3959,11 +3441,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -4005,12 +3487,11 @@ test -n "$CC" || CC="""" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CXX+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -4018,15 +3499,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4037,11 +3514,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -printf "%s\n" "$CXX" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -4060,12 +3537,11 @@ test -n "$CXX" || CXX="""" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_FC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_FC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -4073,15 +3549,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4092,11 +3564,11 @@ fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -printf "%s\n" "$FC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +$as_echo "$FC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -4112,7 +3584,7 @@ test -n "$FC" || FC="""" fi -printf "%s\n" "#define HYPRE_SEQUENTIAL 1" >>confdefs.h +$as_echo "#define HYPRE_SEQUENTIAL 1" >>confdefs.h ;; esac @@ -4123,13 +3595,12 @@ fi # Check whether --with-MPI-include was given. -if test ${with_MPI_include+y} -then : +if test "${with_MPI_include+set}" = set; then : withval=$with_MPI_include; for mpi_dir in $withval; do MPIINCLUDE="$MPIINCLUDE -I$mpi_dir" done; hypre_user_chose_mpi=yes -else $as_nop +else hypre_user_chose_mpi=no fi @@ -4137,8 +3608,7 @@ fi # Check whether --with-MPI-libs was given. -if test ${with_MPI_libs+y} -then : +if test "${with_MPI_libs+set}" = set; then : withval=$with_MPI_libs; for mpi_lib in $withval; do MPILIBS="$MPILIBS -l$mpi_lib" done; @@ -4149,8 +3619,7 @@ fi # Check whether --with-MPI-lib-dirs was given. -if test ${with_MPI_lib_dirs+y} -then : +if test "${with_MPI_lib_dirs+set}" = set; then : withval=$with_MPI_lib_dirs; for mpi_lib_dir in $withval; do MPILIBDIRS="-L$mpi_lib_dir $MPILIBDIRS" done; @@ -4161,14 +3630,13 @@ fi # Check whether --with-MPI-flags was given. -if test ${with_MPI_flags+y} -then : +if test "${with_MPI_flags+set}" = set; then : withval=$with_MPI_flags; case "${withval}" in yes) MPIFLAGS="" ;; no) MPIFLAGS="" ;; *) MPIFLAGS=$withval ;; esac -else $as_nop +else MPIFLAGS="" fi @@ -4176,14 +3644,13 @@ fi # Check whether --with-node-aware-mpi was given. -if test ${with_node_aware_mpi+y} -then : +if test "${with_node_aware_mpi+set}" = set; then : withval=$with_node_aware_mpi; case "$withval" in yes) hypre_using_node_aware_mpi=yes;; no) hypre_using_node_aware_mpi=no ;; *) hypre_using_node_aware_mpi=no ;; esac -else $as_nop +else hypre_using_node_aware_mpi=no fi @@ -4191,8 +3658,7 @@ fi # Check whether --with-node-aware-mpi-include was given. -if test ${with_node_aware_mpi_include+y} -then : +if test "${with_node_aware_mpi_include+set}" = set; then : withval=$with_node_aware_mpi_include; for nap_dir in $withval; do HYPRE_NAP_INCLUDE="$HYPRE_NAP_INCLUDE -I$nap_dir" done; @@ -4203,14 +3669,13 @@ fi # Check whether --with-memory_tracker was given. -if test ${with_memory_tracker+y} -then : +if test "${with_memory_tracker+set}" = set; then : withval=$with_memory_tracker; case "$withval" in yes) hypre_using_memory_tracker=yes;; no) hypre_using_memory_tracker=no ;; *) hypre_using_memory_tracker=no ;; esac -else $as_nop +else hypre_using_memory_tracker=no fi @@ -4218,14 +3683,13 @@ fi # Check whether --with-test_using_host was given. -if test ${with_test_using_host+y} -then : +if test "${with_test_using_host+set}" = set; then : withval=$with_test_using_host; case "$withval" in yes) hypre_test_using_host=yes;; no) hypre_test_using_host=no ;; *) hypre_test_using_host=no ;; esac -else $as_nop +else hypre_test_using_host=no fi @@ -4234,8 +3698,7 @@ fi # Check whether --with-blas-lib was given. -if test ${with_blas_lib+y} -then : +if test "${with_blas_lib+set}" = set; then : withval=$with_blas_lib; for blas_lib in $withval; do BLASLIBS="$BLASLIBS $blas_lib" done; @@ -4246,8 +3709,7 @@ fi # Check whether --with-blas-libs was given. -if test ${with_blas_libs+y} -then : +if test "${with_blas_libs+set}" = set; then : withval=$with_blas_libs; for blas_lib in $withval; do BLASLIBS="$BLASLIBS -l$blas_lib" done; @@ -4259,8 +3721,7 @@ fi # Check whether --with-blas-lib-dirs was given. -if test ${with_blas_lib_dirs+y} -then : +if test "${with_blas_lib_dirs+set}" = set; then : withval=$with_blas_lib_dirs; for blas_lib_dir in $withval; do BLASLIBDIRS="-L$blas_lib_dir $BLASLIBDIRS" done; @@ -4273,8 +3734,7 @@ fi # Check whether --with-lapack-lib was given. -if test ${with_lapack_lib+y} -then : +if test "${with_lapack_lib+set}" = set; then : withval=$with_lapack_lib; for lapack_lib in $withval; do LAPACKLIBS="$LAPACKLIBS $lapack_lib" done; @@ -4285,8 +3745,7 @@ fi # Check whether --with-lapack-libs was given. -if test ${with_lapack_libs+y} -then : +if test "${with_lapack_libs+set}" = set; then : withval=$with_lapack_libs; for lapack_lib in $withval; do LAPACKLIBS="$LAPACKLIBS -l$lapack_lib" done; @@ -4298,8 +3757,7 @@ fi # Check whether --with-lapack-lib-dirs was given. -if test ${with_lapack_lib_dirs+y} -then : +if test "${with_lapack_lib_dirs+set}" = set; then : withval=$with_lapack_lib_dirs; for lapack_lib_dir in $withval; do LAPACKLIBDIRS="-L$lapack_lib_dir $LAPACKLIBDIRS" done; @@ -4313,8 +3771,7 @@ fi # Check whether --with-fmangle was given. -if test ${with_fmangle+y} -then : +if test "${with_fmangle+set}" = set; then : withval=$with_fmangle; hypre_fmangle=0; case "$withval" in no-underscores) hypre_fmangle=1 ;; @@ -4324,21 +3781,22 @@ then : one-before-after) hypre_fmangle=5 ;; esac -else $as_nop +else hypre_fmangle=0 fi -printf "%s\n" "#define HYPRE_FMANGLE $hypre_fmangle" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_FMANGLE $hypre_fmangle +_ACEOF # Check whether --with-fmangle-blas was given. -if test ${with_fmangle_blas+y} -then : +if test "${with_fmangle_blas+set}" = set; then : withval=$with_fmangle_blas; hypre_fmangle_blas=0; case "$withval" in no-underscores) hypre_fmangle_blas=1 ;; @@ -4348,21 +3806,22 @@ then : one-before-after) hypre_fmangle_blas=5 ;; esac -else $as_nop +else hypre_fmangle_blas=0 fi -printf "%s\n" "#define HYPRE_FMANGLE_BLAS $hypre_fmangle_blas" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_FMANGLE_BLAS $hypre_fmangle_blas +_ACEOF # Check whether --with-fmangle-lapack was given. -if test ${with_fmangle_lapack+y} -then : +if test "${with_fmangle_lapack+set}" = set; then : withval=$with_fmangle_lapack; hypre_fmangle_lapack=0; case "$withval" in no-underscores) hypre_fmangle_lapack=1 ;; @@ -4372,23 +3831,24 @@ then : one-before-after) hypre_fmangle_lapack=5 ;; esac -else $as_nop +else hypre_fmangle_lapack=0 fi -printf "%s\n" "#define HYPRE_FMANGLE_LAPACK $hypre_fmangle_lapack" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HYPRE_FMANGLE_LAPACK $hypre_fmangle_lapack +_ACEOF # Check whether --with-print-errors was given. -if test ${with_print_errors+y} -then : +if test "${with_print_errors+set}" = set; then : withval=$with_print_errors; if test "$withval" = "yes" then -printf "%s\n" "#define HYPRE_PRINT_ERRORS 1" >>confdefs.h +$as_echo "#define HYPRE_PRINT_ERRORS 1" >>confdefs.h fi @@ -4397,12 +3857,11 @@ fi # Check whether --with-timing was given. -if test ${with_timing+y} -then : +if test "${with_timing+set}" = set; then : withval=$with_timing; if test "$withval" = "yes" then -printf "%s\n" "#define HYPRE_TIMING 1" >>confdefs.h +$as_echo "#define HYPRE_TIMING 1" >>confdefs.h fi @@ -4411,13 +3870,12 @@ fi # Check whether --with-openmp was given. -if test ${with_openmp+y} -then : +if test "${with_openmp+set}" = set; then : withval=$with_openmp; case "${withval}" in yes) hypre_using_openmp=yes;; no) hypre_using_openmp=no ;; esac -else $as_nop +else hypre_using_openmp=no fi @@ -4425,13 +3883,12 @@ fi # Check whether --with-device-openmp was given. -if test ${with_device_openmp+y} -then : +if test "${with_device_openmp+set}" = set; then : withval=$with_device_openmp; case "${withval}" in yes) hypre_using_device_openmp=yes ;; no) hypre_using_device_openmp=no ;; esac -else $as_nop +else hypre_using_device_openmp=no fi @@ -4440,8 +3897,7 @@ fi # Check whether --with-superlu was given. -if test ${with_superlu+y} -then : +if test "${with_superlu+set}" = set; then : withval=$with_superlu; case "${withval}" in no) hypre_using_superlu=no ;; *) hypre_using_superlu=yes ;; @@ -4450,17 +3906,15 @@ then : fi -if test "x$with_superlu" = "xyes" -then : +if test "x$with_superlu" = "xyes"; then : -printf "%s\n" "#define HAVE_SUPERLU 1" >>confdefs.h +$as_echo "#define HAVE_SUPERLU 1" >>confdefs.h fi # Check whether --with-superlu-include was given. -if test ${with_superlu_include+y} -then : +if test "${with_superlu_include+set}" = set; then : withval=$with_superlu_include; for superlu_inc_dir in $withval; do SUPERLU_INCLUDE="-I$superlu_inc_dir $SUPERLU_INCLUDE" done @@ -4470,8 +3924,7 @@ fi # Check whether --with-superlu-lib was given. -if test ${with_superlu_lib+y} -then : +if test "${with_superlu_lib+set}" = set; then : withval=$with_superlu_lib; for superlu_lib in $withval; do SUPERLU_LIBS="$SUPERLU_LIBS $superlu_lib" done @@ -4482,8 +3935,7 @@ fi # Check whether --with-dsuperlu was given. -if test ${with_dsuperlu+y} -then : +if test "${with_dsuperlu+set}" = set; then : withval=$with_dsuperlu; case "${withval}" in no) hypre_using_dsuperlu=no ;; *) hypre_using_dsuperlu=yes ;; @@ -4492,17 +3944,15 @@ then : fi -if test "x$with_dsuperlu" = "xyes" -then : +if test "x$with_dsuperlu" = "xyes"; then : -printf "%s\n" "#define HYPRE_USING_DSUPERLU 1" >>confdefs.h +$as_echo "#define HYPRE_USING_DSUPERLU 1" >>confdefs.h fi # Check whether --with-dsuperlu-include was given. -if test ${with_dsuperlu_include+y} -then : +if test "${with_dsuperlu_include+set}" = set; then : withval=$with_dsuperlu_include; for dsuperlu_inc_dir in $withval; do DSUPERLU_INCLUDE="-I$dsuperlu_inc_dir $DSUPERLU_INCLUDE" done @@ -4512,8 +3962,7 @@ fi # Check whether --with-dsuperlu-lib was given. -if test ${with_dsuperlu_lib+y} -then : +if test "${with_dsuperlu_lib+set}" = set; then : withval=$with_dsuperlu_lib; for dsuperlu_lib in $withval; do DSUPERLU_LIBS="$DSUPERLU_LIBS $dsuperlu_lib" done @@ -4524,8 +3973,7 @@ fi # Check whether --with-fei-inc-dir was given. -if test ${with_fei_inc_dir+y} -then : +if test "${with_fei_inc_dir+set}" = set; then : withval=$with_fei_inc_dir; HYPRE_FEI_BASE_DIR="$withval"; hypre_using_fei=yes @@ -4535,8 +3983,7 @@ fi # Check whether --with-mli was given. -if test ${with_mli+y} -then : +if test "${with_mli+set}" = set; then : withval=$with_mli; case "${withval}" in no) hypre_using_mli=no ;; *) hypre_using_mli=yes ;; @@ -4548,8 +3995,7 @@ fi # Check whether --with-MPI was given. -if test ${with_MPI+y} -then : +if test "${with_MPI+set}" = set; then : withval=$with_MPI; case "$withval" in no) hypre_using_mpi=no ;; *) hypre_using_mpi=yes ;; @@ -4561,14 +4007,13 @@ fi # Check whether --with-cuda was given. -if test ${with_cuda+y} -then : +if test "${with_cuda+set}" = set; then : withval=$with_cuda; case "$withval" in yes) hypre_using_cuda=yes ;; no) hypre_using_cuda=no ;; *) hypre_using_cuda=no ;; esac -else $as_nop +else hypre_using_cuda=no fi @@ -4576,56 +4021,52 @@ fi # Check whether --with-hip was given. -if test ${with_hip+y} -then : +if test "${with_hip+set}" = set; then : withval=$with_hip; case "$withval" in yes) hypre_using_hip=yes ;; no) hypre_using_hip=no ;; *) hypre_using_hip=no ;; esac -else $as_nop +else hypre_using_hip=no fi # Check whether --enable-rocsparse was given. -if test ${enable_rocsparse+y} -then : +if test "${enable_rocsparse+set}" = set; then : enableval=$enable_rocsparse; case "${enableval}" in yes) hypre_using_rocsparse=yes ;; no) hypre_using_rocsparse=no ;; *) hypre_using_rocsparse=yes ;; esac -else $as_nop +else hypre_using_rocsparse=yes fi # Check whether --enable-rocblas was given. -if test ${enable_rocblas+y} -then : +if test "${enable_rocblas+set}" = set; then : enableval=$enable_rocblas; case "${enableval}" in yes) hypre_using_rocblas=yes ;; no) hypre_using_rocblas=no ;; *) hypre_using_rocblas=no ;; esac -else $as_nop +else hypre_using_rocblas=no fi # Check whether --enable-rocrand was given. -if test ${enable_rocrand+y} -then : +if test "${enable_rocrand+set}" = set; then : enableval=$enable_rocrand; case "${enableval}" in yes) hypre_using_rocrand=yes ;; no) hypre_using_rocrand=no ;; *) hypre_using_rocrand=yes ;; esac -else $as_nop +else hypre_using_rocrand=yes fi @@ -4633,14 +4074,13 @@ fi # Check whether --with-sycl was given. -if test ${with_sycl+y} -then : +if test "${with_sycl+set}" = set; then : withval=$with_sycl; case "$withval" in yes) hypre_using_sycl=yes ;; no) hypre_using_sycl=no ;; *) hypre_using_sycl=no ;; esac -else $as_nop +else hypre_using_sycl=no fi @@ -4649,8 +4089,7 @@ fi # Check whether --with-cuda-home was given. -if test ${with_cuda_home+y} -then : +if test "${with_cuda_home+set}" = set; then : withval=$with_cuda_home; for cuda_dir in $withval; do CUDA_HOME="$cuda_dir" done; @@ -4661,8 +4100,7 @@ fi # Check whether --with-gpu-arch was given. -if test ${with_gpu_arch+y} -then : +if test "${with_gpu_arch+set}" = set; then : withval=$with_gpu_arch; if test "x${withval}" != "x" then @@ -4677,14 +4115,13 @@ fi # Check whether --enable-cublas was given. -if test ${enable_cublas+y} -then : +if test "${enable_cublas+set}" = set; then : enableval=$enable_cublas; case "${enableval}" in yes) hypre_using_cublas=yes ;; no) hypre_using_cublas=no ;; *) hypre_using_cublas=no ;; esac -else $as_nop +else case "$hypre_using_cuda" in yes) hypre_using_cublas=yes ;; no) hypre_using_cublas=no ;; @@ -4695,14 +4132,13 @@ fi # Check whether --enable-curand was given. -if test ${enable_curand+y} -then : +if test "${enable_curand+set}" = set; then : enableval=$enable_curand; case "${enableval}" in yes) hypre_using_curand=yes ;; no) hypre_using_curand=no ;; *) hypre_using_curand=no ;; esac -else $as_nop +else case "$hypre_using_cuda" in yes) hypre_using_curand=yes ;; no) hypre_using_curand=no ;; @@ -4713,14 +4149,13 @@ fi # Check whether --enable-cuda-streams was given. -if test ${enable_cuda_streams+y} -then : +if test "${enable_cuda_streams+set}" = set; then : enableval=$enable_cuda_streams; case "${enableval}" in yes) hypre_using_cuda_streams=yes ;; no) hypre_using_cuda_streams=no ;; *) hypre_using_cuda_streams=yes ;; esac -else $as_nop +else case "$hypre_using_cuda" in yes) hypre_using_cuda_streams=yes ;; no) hypre_using_cuda_streams=no ;; @@ -4730,14 +4165,13 @@ fi # Check whether --enable-cusparse was given. -if test ${enable_cusparse+y} -then : +if test "${enable_cusparse+set}" = set; then : enableval=$enable_cusparse; case "${enableval}" in yes) hypre_using_cusparse=yes ;; no) hypre_using_cusparse=no ;; *) hypre_using_cusparse=no ;; esac -else $as_nop +else case "$hypre_using_cuda" in yes) hypre_using_cusparse=yes ;; no) hypre_using_cusparse=no ;; @@ -4747,14 +4181,13 @@ fi # Check whether --enable-cusolver was given. -if test ${enable_cusolver+y} -then : +if test "${enable_cusolver+set}" = set; then : enableval=$enable_cusolver; case "${enableval}" in yes) hypre_using_cusolver=yes ;; no) hypre_using_cusolver=no ;; *) hypre_using_cusolver=no ;; esac -else $as_nop +else hypre_using_cusolver=no fi @@ -4763,8 +4196,7 @@ fi # Check whether --with-sycl-target was given. -if test ${with_sycl_target+y} -then : +if test "${with_sycl_target+set}" = set; then : withval=$with_sycl_target; if test "x${withval}" != "x" then @@ -4780,8 +4212,7 @@ fi # Check whether --with-sycl-target-backend was given. -if test ${with_sycl_target_backend+y} -then : +if test "${with_sycl_target_backend+set}" = set; then : withval=$with_sycl_target_backend; if test "x${withval}" != "x" then @@ -4796,42 +4227,39 @@ fi # Check whether --enable-onemklsparse was given. -if test ${enable_onemklsparse+y} -then : +if test "${enable_onemklsparse+set}" = set; then : enableval=$enable_onemklsparse; case "${enableval}" in yes) hypre_using_onemklsparse=yes ;; no) hypre_using_onemklsparse=no ;; *) hypre_using_onemklsparse=yes ;; esac -else $as_nop +else hypre_using_onemklsparse=yes fi # Check whether --enable-onemklblas was given. -if test ${enable_onemklblas+y} -then : +if test "${enable_onemklblas+set}" = set; then : enableval=$enable_onemklblas; case "${enableval}" in yes) hypre_using_onemklblas=yes ;; no) hypre_using_onemklblas=no ;; *) hypre_using_onemklblas=yes ;; esac -else $as_nop +else hypre_using_onemklblas=yes fi # Check whether --enable-onemklrand was given. -if test ${enable_onemklrand+y} -then : +if test "${enable_onemklrand+set}" = set; then : enableval=$enable_onemklrand; case "${enableval}" in yes) hypre_using_onemklrand=yes ;; no) hypre_using_onemklrand=no ;; *) hypre_using_onemklrand=yes ;; esac -else $as_nop +else hypre_using_onemklrand=yes fi @@ -4840,14 +4268,13 @@ fi # Check whether --with-raja was given. -if test ${with_raja+y} -then : +if test "${with_raja+set}" = set; then : withval=$with_raja; case "$withval" in yes) hypre_using_raja=yes;; no) hypre_using_raja=no ;; *) hypre_using_raja=no ;; esac -else $as_nop +else hypre_using_raja=no fi @@ -4855,8 +4282,7 @@ fi # Check whether --with-raja-include was given. -if test ${with_raja_include+y} -then : +if test "${with_raja_include+set}" = set; then : withval=$with_raja_include; for raja_dir in $withval; do HYPRE_RAJA_INCLUDE="-I$raja_dir $HYPRE_RAJA_INCLUDE" done; @@ -4867,8 +4293,7 @@ fi # Check whether --with-raja-lib was given. -if test ${with_raja_lib+y} -then : +if test "${with_raja_lib+set}" = set; then : withval=$with_raja_lib; for raja_lib in $withval; do HYPRE_RAJA_LIB="$raja_lib $HYPRE_RAJA_LIB" done; @@ -4879,8 +4304,7 @@ fi # Check whether --with-raja-libs was given. -if test ${with_raja_libs+y} -then : +if test "${with_raja_libs+set}" = set; then : withval=$with_raja_libs; for raja_lib in $withval; do HYPRE_RAJA_LIB="-l$raja_lib $HYPRE_RAJA_LIB" done; @@ -4891,8 +4315,7 @@ fi # Check whether --with-raja-lib-dirs was given. -if test ${with_raja_lib_dirs+y} -then : +if test "${with_raja_lib_dirs+set}" = set; then : withval=$with_raja_lib_dirs; for raja_lib_dir in $withval; do HYPRE_RAJA_LIB_DIR="-L$raja_lib_dir $HYPRE_RAJA_LIB_DIR" done; @@ -4904,14 +4327,13 @@ fi # Check whether --with-kokkos was given. -if test ${with_kokkos+y} -then : +if test "${with_kokkos+set}" = set; then : withval=$with_kokkos; case "$withval" in yes) hypre_using_kokkos=yes ;; no) hypre_using_kokkos=no ;; *) hypre_using_kokkos=no ;; esac -else $as_nop +else hypre_using_kokkos=no fi @@ -4919,8 +4341,7 @@ fi # Check whether --with-kokkos-include was given. -if test ${with_kokkos_include+y} -then : +if test "${with_kokkos_include+set}" = set; then : withval=$with_kokkos_include; for kokkos_dir in $withval; do HYPRE_KOKKOS_INCLUDE="-I$kokkos_dir $HYPRE_KOKKOS_INCLUDE" done; @@ -4931,8 +4352,7 @@ fi # Check whether --with-kokkos-lib was given. -if test ${with_kokkos_lib+y} -then : +if test "${with_kokkos_lib+set}" = set; then : withval=$with_kokkos_lib; for kokkos_lib in $withval; do HYPRE_KOKKOS_LIB="$kokkos_lib $HYPRE_KOKKOS_LIB" done; @@ -4943,8 +4363,7 @@ fi # Check whether --with-kokkos-libs was given. -if test ${with_kokkos_libs+y} -then : +if test "${with_kokkos_libs+set}" = set; then : withval=$with_kokkos_libs; for kokkos_lib in $withval; do HYPRE_KOKKOS_LIB="-l$kokkos_lib $HYPRE_KOKKOS_LIB" done; @@ -4955,8 +4374,7 @@ fi # Check whether --with-kokkos-lib-dirs was given. -if test ${with_kokkos_lib_dirs+y} -then : +if test "${with_kokkos_lib_dirs+set}" = set; then : withval=$with_kokkos_lib_dirs; for kokkos_lib_dir in $withval; do HYPRE_KOKKOS_LIB_DIR="-L$kokkos_lib_dir $HYPRE_KOKKOS_LIB_DIR" done; @@ -4968,14 +4386,13 @@ fi # Check whether --with-umpire-host was given. -if test ${with_umpire_host+y} -then : +if test "${with_umpire_host+set}" = set; then : withval=$with_umpire_host; case "${withval}" in yes) hypre_using_umpire_host=yes ;; no) hypre_using_umpire_host=no ;; *) hypre_using_umpire_host=no ;; esac -else $as_nop +else hypre_using_umpire_host=no fi @@ -4983,14 +4400,13 @@ fi # Check whether --with-umpire-device was given. -if test ${with_umpire_device+y} -then : +if test "${with_umpire_device+set}" = set; then : withval=$with_umpire_device; case "${withval}" in yes) hypre_using_umpire_device=yes ;; no) hypre_using_umpire_device=no ;; *) hypre_using_umpire_device=no ;; esac -else $as_nop +else hypre_using_umpire_device=no fi @@ -4998,14 +4414,13 @@ fi # Check whether --with-umpire-um was given. -if test ${with_umpire_um+y} -then : +if test "${with_umpire_um+set}" = set; then : withval=$with_umpire_um; case "${withval}" in yes) hypre_using_umpire_um=yes ;; no) hypre_using_umpire_um=no ;; *) hypre_using_umpire_um=no ;; esac -else $as_nop +else hypre_using_umpire_um=no fi @@ -5013,14 +4428,13 @@ fi # Check whether --with-umpire-pinned was given. -if test ${with_umpire_pinned+y} -then : +if test "${with_umpire_pinned+set}" = set; then : withval=$with_umpire_pinned; case "${withval}" in yes) hypre_using_umpire_pinned=yes ;; no) hypre_using_umpire_pinned=no ;; *) hypre_using_umpire_pinned=no ;; esac -else $as_nop +else hypre_using_umpire_pinned=no fi @@ -5028,8 +4442,7 @@ fi # Check whether --with-umpire was given. -if test ${with_umpire+y} -then : +if test "${with_umpire+set}" = set; then : withval=$with_umpire; case "${withval}" in yes) hypre_using_umpire_device=yes hypre_using_umpire_um=yes ;; @@ -5041,8 +4454,7 @@ fi # Check whether --with-umpire-include was given. -if test ${with_umpire_include+y} -then : +if test "${with_umpire_include+set}" = set; then : withval=$with_umpire_include; for umpire_dir in $withval; do HYPRE_UMPIRE_INCLUDE="-I$umpire_dir $HYPRE_UMPIRE_INCLUDE" done; @@ -5053,8 +4465,7 @@ fi # Check whether --with-umpire-lib was given. -if test ${with_umpire_lib+y} -then : +if test "${with_umpire_lib+set}" = set; then : withval=$with_umpire_lib; for umpire_lib in $withval; do HYPRE_UMPIRE_LIB="$umpire_lib $HYPRE_UMPIRE_LIB" done; @@ -5065,8 +4476,7 @@ fi # Check whether --with-umpire-libs was given. -if test ${with_umpire_libs+y} -then : +if test "${with_umpire_libs+set}" = set; then : withval=$with_umpire_libs; for umpire_lib in $withval; do HYPRE_UMPIRE_LIB="-l$umpire_lib $HYPRE_UMPIRE_LIB" done; @@ -5077,8 +4487,7 @@ fi # Check whether --with-umpire-lib-dirs was given. -if test ${with_umpire_lib_dirs+y} -then : +if test "${with_umpire_lib_dirs+set}" = set; then : withval=$with_umpire_lib_dirs; for umpire_lib_dir in $withval; do HYPRE_UMPIRE_LIB_DIR="-L$umpire_lib_dir $HYPRE_UMPIRE_LIB_DIR" done; @@ -5090,28 +4499,25 @@ fi # Check whether --with-caliper was given. -if test ${with_caliper+y} -then : +if test "${with_caliper+set}" = set; then : withval=$with_caliper; case "$withval" in yes) hypre_using_caliper=yes;; *) hypre_using_caliper=no ;; esac -else $as_nop +else hypre_using_caliper=no fi -if test "x$with_caliper" = "xyes" -then : +if test "x$with_caliper" = "xyes"; then : -printf "%s\n" "#define HYPRE_USING_CALIPER 1" >>confdefs.h +$as_echo "#define HYPRE_USING_CALIPER 1" >>confdefs.h fi # Check whether --with-caliper-include was given. -if test ${with_caliper_include+y} -then : +if test "${with_caliper_include+set}" = set; then : withval=$with_caliper_include; for caliper_inc_dir in $withval; do CALIPER_INCLUDE="-I$caliper_inc_dir $CALIPER_INCLUDE" done; @@ -5122,8 +4528,7 @@ fi # Check whether --with-caliper-lib was given. -if test ${with_caliper_lib+y} -then : +if test "${with_caliper_lib+set}" = set; then : withval=$with_caliper_lib; for caliper_lib in $withval; do CALIPER_LIBS="$CALIPER_LIBS $caliper_lib" done; @@ -5142,12 +4547,11 @@ then do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5155,15 +4559,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5174,11 +4574,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5190,12 +4590,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5203,15 +4602,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5222,11 +4617,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5241,12 +4636,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5254,15 +4648,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5273,11 +4663,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5289,12 +4679,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5302,15 +4691,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5321,11 +4706,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5351,12 +4736,11 @@ then do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CXX+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -5364,15 +4748,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5383,11 +4763,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -printf "%s\n" "$CXX" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5399,12 +4779,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CXX+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -5412,15 +4791,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5431,11 +4806,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -printf "%s\n" "$CXX" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5450,12 +4825,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CXX+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -5463,15 +4837,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5482,11 +4852,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -printf "%s\n" "$CXX" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5498,12 +4868,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CXX+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -5511,15 +4880,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5530,11 +4895,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -printf "%s\n" "$CXX" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5560,12 +4925,11 @@ then do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_FC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_FC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -5573,15 +4937,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5592,11 +4952,11 @@ fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -printf "%s\n" "$FC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +$as_echo "$FC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5608,12 +4968,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_FC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_FC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -5621,15 +4980,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5640,11 +4995,11 @@ fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -printf "%s\n" "$FC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +$as_echo "$FC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5659,12 +5014,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_FC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_FC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -5672,15 +5026,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5691,11 +5041,11 @@ fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -printf "%s\n" "$FC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +$as_echo "$FC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5707,12 +5057,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_FC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_FC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -5720,15 +5069,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5739,11 +5084,11 @@ fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -printf "%s\n" "$FC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +$as_echo "$FC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5787,12 +5132,11 @@ then do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CUCC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CUCC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -5800,15 +5144,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5819,11 +5159,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -printf "%s\n" "$CUCC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +$as_echo "$CUCC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5835,12 +5175,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CUCC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CUCC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -5848,15 +5187,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5867,11 +5202,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -printf "%s\n" "$CUCC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +$as_echo "$CUCC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5886,12 +5221,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CUCC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CUCC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -5899,15 +5233,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5918,11 +5248,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -printf "%s\n" "$CUCC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +$as_echo "$CUCC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5934,12 +5264,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CUCC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CUCC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -5947,15 +5276,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5966,11 +5291,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -printf "%s\n" "$CUCC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +$as_echo "$CUCC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5987,12 +5312,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CUCC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CUCC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -6000,15 +5324,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in "${CUDA_HOME}/bin" do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6019,11 +5339,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -printf "%s\n" "$CUCC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +$as_echo "$CUCC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -6040,12 +5360,11 @@ test -n "$CUCC" || CUCC="""" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CUCC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CUCC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -6053,15 +5372,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6072,11 +5387,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -printf "%s\n" "$CUCC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +$as_echo "$CUCC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -6091,12 +5406,11 @@ done do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CUCC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CUCC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -6104,15 +5418,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6123,11 +5433,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -printf "%s\n" "$CUCC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +$as_echo "$CUCC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -6137,14 +5447,13 @@ done fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} -ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval test \${ac_cv_prog_make_${ac_make}_set+y} -then : - printf %s "(cached) " >&6 -else $as_nop +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @@ -6160,24 +5469,23 @@ esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } SET_MAKE= else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_RANLIB+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else @@ -6185,15 +5493,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6204,11 +5508,11 @@ fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -printf "%s\n" "$RANLIB" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -6217,12 +5521,11 @@ if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_RANLIB+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else @@ -6230,15 +5533,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6249,11 +5548,11 @@ fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -printf "%s\n" "$ac_ct_RANLIB" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then @@ -6261,8 +5560,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ $as_echo "$as_me:${as_lineno-$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 RANLIB=$ac_ct_RANLIB @@ -6274,16 +5573,7 @@ fi if test "$hypre_using_c" = "yes" then - - - - - - - - - -ac_ext=c + 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' @@ -6291,12 +5581,11 @@ 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -6304,15 +5593,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6323,11 +5608,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -6336,12 +5621,11 @@ 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; 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 @@ -6349,15 +5633,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6368,11 +5648,11 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -printf "%s\n" "$ac_ct_CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then @@ -6380,8 +5660,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ $as_echo "$as_me:${as_lineno-$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 @@ -6394,12 +5674,11 @@ 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -6407,15 +5686,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6426,11 +5701,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -6439,12 +5714,11 @@ 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -6453,19 +5727,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6481,18 +5751,18 @@ if test $ac_prog_rejected = yes; then # 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+' '}$@" + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -6503,12 +5773,11 @@ if test -z "$CC"; then 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -6516,15 +5785,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6535,11 +5800,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -6552,12 +5817,11 @@ if test -z "$CC"; then do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; 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 @@ -6565,15 +5829,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6584,11 +5844,11 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -printf "%s\n" "$ac_ct_CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -6600,138 +5860,34 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. -set dummy ${ac_tool_prefix}clang; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop - 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}clang" - printf "%s\n" "$as_me:${as_lineno-$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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "clang", so it can be a program name with args. -set dummy clang; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CC+y} -then : - printf %s "(cached) " >&6 -else $as_nop - 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="clang" - printf "%s\n" "$as_me:${as_lineno-$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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -printf "%s\n" "$ac_ct_CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ $as_echo "$as_me:${as_lineno-$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 fi -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. -printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 -for ac_option in --version -v -V -qversion -version; do +for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -6741,7 +5897,7 @@ printf "%s\n" "$ac_try_echo"; } >&5 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done @@ -6749,7 +5905,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main (void) +main () { ; @@ -6761,9 +5917,9 @@ 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. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -printf %s "checking whether the C compiler works... " >&6; } -ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&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.*" @@ -6784,12 +5940,11 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -then : + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; 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, @@ -6806,7 +5961,7 @@ do # certainly right. break;; *.* ) - if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi @@ -6822,46 +5977,44 @@ do done test "$ac_cv_exeext" = no && ac_cv_exeext= -else $as_nop +else ac_file='' fi -if test -z "$ac_file" -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -printf "%s\n" "$as_me: failed program was:" >&5 +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -printf %s "checking for C compiler default output file name... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -printf "%s\n" "$ac_file" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -printf %s "checking for suffix of executables... " >&6; } +{ $as_echo "$as_me:${as_lineno-$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:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -then : + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; 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 @@ -6875,15 +6028,15 @@ for ac_file in conftest.exe conftest conftest.*; do * ) break;; esac done -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -printf "%s\n" "$ac_cv_exeext" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext @@ -6892,7 +6045,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main (void) +main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; @@ -6904,8 +6057,8 @@ _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -printf %s "checking whether we are cross compiling... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in @@ -6913,10 +6066,10 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in @@ -6924,40 +6077,39 @@ printf "%s\n" "$ac_try_echo"; } >&5 *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot run C compiled programs. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -printf "%s\n" "$cross_compiling" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -printf %s "checking for suffix of object files... " >&6; } -if test ${ac_cv_objext+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main (void) +main () { ; @@ -6971,12 +6123,11 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -then : + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in @@ -6985,32 +6136,31 @@ then : break;; esac done -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else + $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -printf "%s\n" "$ac_cv_objext" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 -printf %s "checking whether the compiler supports GNU C... " >&6; } -if test ${ac_cv_c_compiler_gnu+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$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 ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main (void) +main () { #ifndef __GNUC__ choke me @@ -7020,33 +6170,29 @@ main (void) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes -else $as_nop +else ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } -ac_compiler_gnu=$ac_cv_c_compiler_gnu - +{ $as_echo "$as_me:${as_lineno-$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+y} +ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -printf %s "checking whether $CC accepts -g... " >&6; } -if test ${ac_cv_prog_cc_g+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; 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 @@ -7055,60 +6201,57 @@ else $as_nop /* end confdefs.h. */ int -main (void) +main () { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes -else $as_nop +else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main (void) +main () { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : -else $as_nop +else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main (void) +main () { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -printf "%s\n" "$ac_cv_prog_cc_g" >&6; } -if test $ac_test_CFLAGS; then +{ $as_echo "$as_me:${as_lineno-$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 @@ -7123,163 +6266,107 @@ else CFLAGS= fi fi -ac_prog_cc_stdc=no -if test x$ac_prog_cc_stdc = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 -printf %s "checking for $CC option to enable C11 features... " >&6; } -if test ${ac_cv_prog_cc_c11+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c11=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_c_conftest_c11_program -_ACEOF -for ac_arg in '' -std=gnu11 -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_c11=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam - test "x$ac_cv_prog_cc_c11" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC -fi +#include +#include +struct stat; +/* 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; +} -if test "x$ac_cv_prog_cc_c11" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c11" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 -printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" -fi - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 -fi -fi -if test x$ac_prog_cc_stdc = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 -printf %s "checking for $CC option to enable C99 features... " >&6; } -if test ${ac_cv_prog_cc_c99+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c99=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_c_conftest_c99_program -_ACEOF -for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_c99=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam - test "x$ac_cv_prog_cc_c99" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC -fi +/* 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]; -if test "x$ac_cv_prog_cc_c99" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c99" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 -printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } - CC="$CC $ac_cv_prog_cc_c99" -fi - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 -fi -fi -if test x$ac_prog_cc_stdc = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 -printf %s "checking for $CC option to enable C89 features... " >&6; } -if test ${ac_cv_prog_cc_c89+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_c_conftest_c89_program +/* 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__" +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO" -then : + if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi -rm -f core conftest.err conftest.$ac_objext conftest.beam +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 -if test "x$ac_cv_prog_cc_c89" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c89" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } - CC="$CC $ac_cv_prog_cc_c89" -fi - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + 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 - -fi - -if test "$hypre_using_cxx" = "yes" -then - - - - +ac_compiler_gnu=$ac_cv_c_compiler_gnu +fi -ac_ext=cpp +if test "$hypre_using_cxx" = "yes" +then + ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' @@ -7289,16 +6376,15 @@ if test -z "$CXX"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CXX+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -7306,15 +6392,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7325,11 +6407,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -printf "%s\n" "$CXX" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -7338,16 +6420,15 @@ fi fi if test -z "$CXX"; then ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CXX+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else @@ -7355,15 +6436,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7374,11 +6451,11 @@ fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 -printf "%s\n" "$ac_ct_CXX" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -7390,8 +6467,8 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ $as_echo "$as_me:${as_lineno-$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 CXX=$ac_ct_CXX @@ -7401,7 +6478,7 @@ fi fi fi # Provide some information about the compiler. -printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -7411,7 +6488,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -7421,21 +6498,20 @@ printf "%s\n" "$ac_try_echo"; } >&5 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 -printf %s "checking whether the compiler supports GNU C++... " >&6; } -if test ${ac_cv_cxx_compiler_gnu+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$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 ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main (void) +main () { #ifndef __GNUC__ choke me @@ -7445,33 +6521,29 @@ main (void) return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO" -then : +if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes -else $as_nop +else ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 -printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi -ac_test_CXXFLAGS=${CXXFLAGS+y} +ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 -printf %s "checking whether $CXX accepts -g... " >&6; } -if test ${ac_cv_prog_cxx_g+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no @@ -7480,60 +6552,57 @@ else $as_nop /* end confdefs.h. */ int -main (void) +main () { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO" -then : +if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes -else $as_nop +else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main (void) +main () { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO" -then : +if ac_fn_cxx_try_compile "$LINENO"; then : -else $as_nop +else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main (void) +main () { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO" -then : +if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 -printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } -if test $ac_test_CXXFLAGS; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then @@ -7548,100 +6617,6 @@ else CXXFLAGS= fi fi -ac_prog_cxx_stdcxx=no -if test x$ac_prog_cxx_stdcxx = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 -printf %s "checking for $CXX option to enable C++11 features... " >&6; } -if test ${ac_cv_prog_cxx_11+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_11=no -ac_save_CXX=$CXX -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_cxx_conftest_cxx11_program -_ACEOF -for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA -do - CXX="$ac_save_CXX $ac_arg" - if ac_fn_cxx_try_compile "$LINENO" -then : - ac_cv_prog_cxx_cxx11=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam - test "x$ac_cv_prog_cxx_cxx11" != "xno" && break -done -rm -f conftest.$ac_ext -CXX=$ac_save_CXX -fi - -if test "x$ac_cv_prog_cxx_cxx11" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx11" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 -printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx11" -fi - ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 - ac_prog_cxx_stdcxx=cxx11 -fi -fi -if test x$ac_prog_cxx_stdcxx = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 -printf %s "checking for $CXX option to enable C++98 features... " >&6; } -if test ${ac_cv_prog_cxx_98+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_98=no -ac_save_CXX=$CXX -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_cxx_conftest_cxx98_program -_ACEOF -for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA -do - CXX="$ac_save_CXX $ac_arg" - if ac_fn_cxx_try_compile "$LINENO" -then : - ac_cv_prog_cxx_cxx98=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam - test "x$ac_cv_prog_cxx_cxx98" != "xno" && break -done -rm -f conftest.$ac_ext -CXX=$ac_save_CXX -fi - -if test "x$ac_cv_prog_cxx_cxx98" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx98" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 -printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx98" -fi - ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 - ac_prog_cxx_stdcxx=cxx98 -fi -fi - ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7661,12 +6636,11 @@ if test -n "$ac_tool_prefix"; then 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_FC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_FC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -7674,15 +6648,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_tool_prefix$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7693,11 +6663,11 @@ fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -printf "%s\n" "$FC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +$as_echo "$FC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -7710,12 +6680,11 @@ if test -z "$FC"; then do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_FC+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_FC+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$ac_ct_FC"; then ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. else @@ -7723,15 +6692,11 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac + test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_FC="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7742,11 +6707,11 @@ fi fi ac_ct_FC=$ac_cv_prog_ac_ct_FC if test -n "$ac_ct_FC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 -printf "%s\n" "$ac_ct_FC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 +$as_echo "$ac_ct_FC" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -7758,8 +6723,8 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ $as_echo "$as_me:${as_lineno-$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 FC=$ac_ct_FC @@ -7768,7 +6733,7 @@ fi # Provide some information about the compiler. -printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -7778,7 +6743,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -7788,7 +6753,7 @@ printf "%s\n" "$ac_try_echo"; } >&5 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done rm -f a.out @@ -7797,12 +6762,11 @@ rm -f a.out # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran" >&5 -printf %s "checking whether the compiler supports GNU Fortran... " >&6; } -if test ${ac_cv_fc_compiler_gnu+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 +$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } +if ${ac_cv_fc_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else cat > conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ @@ -7811,48 +6775,43 @@ else $as_nop end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : ac_compiler_gnu=yes -else $as_nop +else ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_fc_compiler_gnu=$ac_compiler_gnu fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 -printf "%s\n" "$ac_cv_fc_compiler_gnu" >&6; } -ac_compiler_gnu=$ac_cv_fc_compiler_gnu - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 +$as_echo "$ac_cv_fc_compiler_gnu" >&6; } ac_ext=$ac_save_ext -ac_test_FCFLAGS=${FCFLAGS+y} +ac_test_FCFLAGS=${FCFLAGS+set} ac_save_FCFLAGS=$FCFLAGS FCFLAGS= -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 -printf %s "checking whether $FC accepts -g... " >&6; } -if test ${ac_cv_prog_fc_g+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 +$as_echo_n "checking whether $FC accepts -g... " >&6; } +if ${ac_cv_prog_fc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else FCFLAGS=-g cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_prog_fc_g=yes -else $as_nop +else ac_cv_prog_fc_g=no fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 -printf "%s\n" "$ac_cv_prog_fc_g" >&6; } -if test $ac_test_FCFLAGS; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 +$as_echo "$ac_cv_prog_fc_g" >&6; } +if test "$ac_test_FCFLAGS" = set; then FCFLAGS=$ac_save_FCFLAGS elif test $ac_cv_prog_fc_g = yes; then if test "x$ac_cv_fc_compiler_gnu" = xyes; then @@ -7884,19 +6843,17 @@ ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 -printf %s "checking how to get verbose linking output from $FC... " >&6; } -if test ${ac_cv_prog_fc_v+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 +$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } +if ${ac_cv_prog_fc_v+:} false; then : + $as_echo_n "(cached) " >&6 +else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_prog_fc_v= # Try some options frequently used verbose output for ac_verb in -v -verbose --verbose -V -\#\#\#; do @@ -7914,13 +6871,13 @@ ac_save_FCFLAGS=$FCFLAGS FCFLAGS="$FCFLAGS $ac_verb" eval "set x $ac_link" shift -printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5 +$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | sed '/^Driving:/d; /^Configured with:/d; '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` -printf "%s\n" "$ac_fc_v_output" >&5 +$as_echo "$ac_fc_v_output" >&5 FCFLAGS=$ac_save_FCFLAGS rm -rf conftest* @@ -7987,24 +6944,23 @@ esac done done if test -z "$ac_cv_prog_fc_v"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 -printf "%s\n" "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 +$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} fi -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 -printf "%s\n" "$as_me: WARNING: compilation failed" >&2;} +else + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 +$as_echo "$as_me: WARNING: compilation failed" >&2;} fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 -printf "%s\n" "$ac_cv_prog_fc_v" >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 -printf %s "checking for Fortran libraries of $FC... " >&6; } -if test ${ac_cv_fc_libs+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 +$as_echo "$ac_cv_prog_fc_v" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 +$as_echo_n "checking for Fortran libraries of $FC... " >&6; } +if ${ac_cv_fc_libs+:} false; then : + $as_echo_n "(cached) " >&6 +else if test "x$FCLIBS" != "x"; then ac_cv_fc_libs="$FCLIBS" # Let the user override the test. else @@ -8023,13 +6979,13 @@ ac_save_FCFLAGS=$FCFLAGS FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" eval "set x $ac_link" shift -printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5 +$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | sed '/^Driving:/d; /^Configured with:/d; '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` -printf "%s\n" "$ac_fc_v_output" >&5 +$as_echo "$ac_fc_v_output" >&5 FCFLAGS=$ac_save_FCFLAGS rm -rf conftest* @@ -8106,10 +7062,9 @@ while test $# != 1; do fi done - if test x"$ac_exists" = xtrue -then : + if test x"$ac_exists" = xtrue; then : -else $as_nop +else ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi ;; @@ -8122,10 +7077,9 @@ fi fi done - if test x"$ac_exists" = xtrue -then : + if test x"$ac_exists" = xtrue; then : -else $as_nop +else if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_arg; do ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" @@ -8140,24 +7094,9 @@ fi |-LANG:=* | -LIST:* | -LNO:* | -link) ;; -lkernel32) - # Ignore this library only on Windows-like systems. case $host_os in - cygwin* | msys* ) ;; - *) - ac_exists=false - for ac_i in $ac_cv_fc_libs; do - if test x"$ac_arg" = x"$ac_i"; then - ac_exists=true - break - fi - done - - if test x"$ac_exists" = xtrue -then : - -else $as_nop - ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" -fi + *cygwin*) ;; + *) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" ;; esac ;; @@ -8175,7 +7114,7 @@ fi esac ;; -YP,*) - for ac_j in `printf "%s\n" "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do + for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_j" = x"$ac_i"; then @@ -8184,10 +7123,9 @@ fi fi done - if test x"$ac_exists" = xtrue -then : + if test x"$ac_exists" = xtrue; then : -else $as_nop +else ac_arg="$ac_arg $ac_j" ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" fi @@ -8202,17 +7140,15 @@ fi fi done - if test x"$ac_exists" = xtrue -then : + if test x"$ac_exists" = xtrue; then : -else $as_nop +else ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi ;; -zallextract*| -zdefaultextract) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" ;; - -mllvm) ${2+shift};; # Defend against 'clang -mllvm -loopopt=0'. # Ignore everything else. esac done @@ -8224,7 +7160,7 @@ set X $ac_save_positional; shift # must begin with a "/"). case `(uname -sr) 2>/dev/null` in "SunOS 5"*) - ac_ld_run_path=`printf "%s\n" "$ac_fc_v_output" | + ac_ld_run_path=`$as_echo "$ac_fc_v_output" | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` test "x$ac_ld_run_path" != x && if test "$ac_compiler_gnu" = yes; then @@ -8239,8 +7175,8 @@ esac fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 -printf "%s\n" "$ac_cv_fc_libs" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 +$as_echo "$ac_cv_fc_libs" >&6; } FCLIBS="$ac_cv_fc_libs" @@ -8256,12 +7192,11 @@ ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 -printf %s "checking for dummy main to link with Fortran libraries... " >&6; } -if test ${ac_cv_fc_dummy_main+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 +$as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; } +if ${ac_cv_fc_dummy_main+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_fc_dm_save_LIBS=$LIBS LIBS="$LIBS $FCLIBS" ac_fortran_dm_var=FC_DUMMY_MAIN @@ -8284,20 +7219,19 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu #endif #endif int -main (void) +main () { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_fortran_dummy_main=none -else $as_nop +else ac_cv_fortran_dummy_main=unknown fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $ac_cv_fortran_dummy_main = unknown; then @@ -8314,18 +7248,17 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ #endif #endif int -main (void) +main () { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_fortran_dummy_main=$ac_func; break fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done fi @@ -8338,24 +7271,25 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu LIBS=$ac_fc_dm_save_LIBS fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5 -printf "%s\n" "$ac_cv_fc_dummy_main" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5 +$as_echo "$ac_cv_fc_dummy_main" >&6; } FC_DUMMY_MAIN=$ac_cv_fc_dummy_main -if test "$FC_DUMMY_MAIN" != unknown -then : +if test "$FC_DUMMY_MAIN" != unknown; then : if test $FC_DUMMY_MAIN != none; then -printf "%s\n" "#define FC_DUMMY_MAIN $FC_DUMMY_MAIN" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define FC_DUMMY_MAIN $FC_DUMMY_MAIN +_ACEOF if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then -printf "%s\n" "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h +$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h fi fi -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "linking to Fortran libraries from C fails See \`config.log' for more details" "$LINENO" 5; } fi @@ -8370,12 +7304,11 @@ ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 -printf %s "checking for Fortran name-mangling scheme... " >&6; } -if test ${ac_cv_fc_mangling+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 +$as_echo_n "checking for Fortran name-mangling scheme... " >&6; } +if ${ac_cv_fc_mangling+:} false; then : + $as_echo_n "(cached) " >&6 +else cat > conftest.$ac_ext <<_ACEOF subroutine foobar() return @@ -8384,8 +7317,7 @@ else $as_nop return end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : mv conftest.$ac_objext cfortran_test.$ac_objext ac_save_LIBS=$LIBS @@ -8406,6 +7338,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif char $ac_func (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -8416,18 +7351,17 @@ char $ac_func (); #endif #endif int -main (void) +main () { return $ac_func (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_success=yes; break 2 fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done done @@ -8462,6 +7396,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif char $ac_func (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -8472,18 +7409,17 @@ char $ac_func (); #endif #endif int -main (void) +main () { return $ac_func (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_success_extra=yes; break fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done ac_ext=${ac_fc_srcext-f} @@ -8513,17 +7449,17 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu LIBS=$ac_save_LIBS rm -rf conftest* rm -f cfortran_test* -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compile a simple Fortran program See \`config.log' for more details" "$LINENO" 5; } fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5 -printf "%s\n" "$ac_cv_fc_mangling" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5 +$as_echo "$ac_cv_fc_mangling" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -8537,48 +7473,48 @@ ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest ac_compiler_gnu=$ac_cv_fc_compiler_gnu case $ac_cv_fc_mangling in "lower case, no underscore, no extra underscore") - printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h + $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h - printf "%s\n" "#define FC_FUNC_(name,NAME) name" >>confdefs.h + $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h ;; "lower case, no underscore, extra underscore") - printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h + $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h - printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h + $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h ;; "lower case, underscore, no extra underscore") - printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h + $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h - printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h + $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h ;; "lower case, underscore, extra underscore") - printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h + $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h - printf "%s\n" "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h + $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h ;; "upper case, no underscore, no extra underscore") - printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h + $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h - printf "%s\n" "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h + $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h ;; "upper case, no underscore, extra underscore") - printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h + $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h - printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h + $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h ;; "upper case, underscore, no extra underscore") - printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h + $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h - printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h + $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h ;; "upper case, underscore, extra underscore") - printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h + $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h - printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h + $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h ;; *) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 -printf "%s\n" "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 +$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} ;; esac @@ -8593,26 +7529,24 @@ fi if test "$hypre_using_mpi" = "no" then -printf "%s\n" "#define HYPRE_SEQUENTIAL 1" >>confdefs.h +$as_echo "#define HYPRE_SEQUENTIAL 1" >>confdefs.h else if test x = x"$MPILIBS"; then ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" -if test "x$ac_cv_func_MPI_Init" = xyes -then : +if test "x$ac_cv_func_MPI_Init" = xyes; then : MPILIBS=" " fi fi if test x = x"$MPILIBS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 -printf %s "checking for MPI_Init in -lmpi... " >&6; } -if test ${ac_cv_lib_mpi_MPI_Init+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 +$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } +if ${ac_cv_lib_mpi_MPI_Init+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lmpi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -8621,6 +7555,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif char MPI_Init (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -8631,39 +7568,36 @@ char MPI_Init (); #endif #endif int -main (void) +main () { return MPI_Init (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_mpi_MPI_Init=yes -else $as_nop +else ac_cv_lib_mpi_MPI_Init=no fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 -printf "%s\n" "$ac_cv_lib_mpi_MPI_Init" >&6; } -if test "x$ac_cv_lib_mpi_MPI_Init" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 +$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } +if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : MPILIBS="-lmpi" fi fi if test x = x"$MPILIBS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 -printf %s "checking for MPI_Init in -lmpich... " >&6; } -if test ${ac_cv_lib_mpich_MPI_Init+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 +$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } +if ${ac_cv_lib_mpich_MPI_Init+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lmpich $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -8672,6 +7606,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif char MPI_Init (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -8682,35 +7619,33 @@ char MPI_Init (); #endif #endif int -main (void) +main () { return MPI_Init (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_mpich_MPI_Init=yes -else $as_nop +else ac_cv_lib_mpich_MPI_Init=no fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 -printf "%s\n" "$ac_cv_lib_mpich_MPI_Init" >&6; } -if test "x$ac_cv_lib_mpich_MPI_Init" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 +$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } +if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : MPILIBS="-lmpich" fi fi if test x != x"$MPILIBS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 -printf %s "checking for mpi.h... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 +$as_echo_n "checking for mpi.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -8723,23 +7658,22 @@ printf %s "checking for mpi.h... " >&6; } #endif #endif int -main (void) +main () { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else MPILIBS="" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi @@ -8750,54 +7684,62 @@ if test x = x"$MPILIBS"; then : else -printf "%s\n" "#define HYPRE_HAVE_MPI 1" >>confdefs.h +$as_echo "#define HYPRE_HAVE_MPI 1" >>confdefs.h LIBS="$LIBS $MPILIBS" : fi - ac_fn_c_check_func "$LINENO" "MPI_Comm_f2c" "ac_cv_func_MPI_Comm_f2c" -if test "x$ac_cv_func_MPI_Comm_f2c" = xyes -then : - printf "%s\n" "#define HAVE_MPI_COMM_F2C 1" >>confdefs.h + for ac_func in MPI_Comm_f2c +do : + ac_fn_c_check_func "$LINENO" "MPI_Comm_f2c" "ac_cv_func_MPI_Comm_f2c" +if test "x$ac_cv_func_MPI_Comm_f2c" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MPI_COMM_F2C 1 +_ACEOF fi +done 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -printf %s "checking how to run the C preprocessor... " >&6; } +{ $as_echo "$as_me:${as_lineno-$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+y} -then : - printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CC needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp + if ${ac_cv_prog_CPP+:} false; 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 confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#ifdef __STDC__ +# include +#else +# include +#endif Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : +if ac_fn_c_try_cpp "$LINENO"; then : -else $as_nop +else # Broken: fails on valid input. continue fi @@ -8809,11 +7751,10 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : +if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue -else $as_nop +else # Passes both tests. ac_preproc_ok=: break @@ -8823,8 +7764,7 @@ rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok -then : +if $ac_preproc_ok; then : break fi @@ -8836,24 +7776,29 @@ fi else ac_cv_prog_CPP=$CPP fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -printf "%s\n" "$CPP" >&6; } +{ $as_echo "$as_me:${as_lineno-$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 confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#ifdef __STDC__ +# include +#else +# include +#endif Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : +if ac_fn_c_try_cpp "$LINENO"; then : -else $as_nop +else # Broken: fails on valid input. continue fi @@ -8865,11 +7810,10 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : +if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue -else $as_nop +else # Passes both tests. ac_preproc_ok=: break @@ -8879,12 +7823,11 @@ rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok -then : +if $ac_preproc_ok; then : -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi @@ -8896,12 +7839,11 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$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 ${ac_cv_path_GREP+:} false; 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 @@ -8909,15 +7851,10 @@ else $as_nop for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in grep ggrep - do + 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" + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP @@ -8926,13 +7863,13 @@ case `"$ac_path_GREP" --version 2>&1` in ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 - printf %s 0123456789 >"conftest.in" + $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" - printf "%s\n" 'GREP' >> "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 as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -8960,17 +7897,16 @@ else fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; 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 @@ -8981,15 +7917,10 @@ else $as_nop for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do + 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" + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP @@ -8998,13 +7929,13 @@ case `"$ac_path_EGREP" --version 2>&1` in ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 - printf %s 0123456789 >"conftest.in" + $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" - printf "%s\n" 'EGREP' >> "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 as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -9033,17 +7964,16 @@ fi fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MPI_Comm_f2c is a macro" >&5 -printf %s "checking whether MPI_Comm_f2c is a macro... " >&6; } -if test ${hypre_cv_func_MPI_Comm_f2c_macro+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MPI_Comm_f2c is a macro" >&5 +$as_echo_n "checking whether MPI_Comm_f2c is a macro... " >&6; } +if ${hypre_cv_func_MPI_Comm_f2c_macro+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -9053,21 +7983,20 @@ else $as_nop #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "mpi_header_defines_MPI_Comm_f2c" >/dev/null 2>&1 -then : + $EGREP "mpi_header_defines_MPI_Comm_f2c" >/dev/null 2>&1; then : hypre_cv_func_MPI_Comm_f2c_macro=yes -else $as_nop +else hypre_cv_func_MPI_Comm_f2c_macro=no fi -rm -rf conftest* +rm -f conftest* fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hypre_cv_func_MPI_Comm_f2c_macro" >&5 -printf "%s\n" "$hypre_cv_func_MPI_Comm_f2c_macro" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hypre_cv_func_MPI_Comm_f2c_macro" >&5 +$as_echo "$hypre_cv_func_MPI_Comm_f2c_macro" >&6; } if test $ac_cv_func_MPI_Comm_f2c = yes \ || test $hypre_cv_func_MPI_Comm_f2c_macro = yes; then -printf "%s\n" "#define HYPRE_HAVE_MPI_COMM_F2C 1" >>confdefs.h +$as_echo "#define HYPRE_HAVE_MPI_COMM_F2C 1" >>confdefs.h fi fi @@ -9075,21 +8004,21 @@ fi if test "$hypre_using_node_aware_mpi" = "yes" then -printf "%s\n" "#define HYPRE_USING_NODE_AWARE_MPI 1" >>confdefs.h +$as_echo "#define HYPRE_USING_NODE_AWARE_MPI 1" >>confdefs.h fi if test "$hypre_using_memory_tracker" = "yes" then -printf "%s\n" "#define HYPRE_USING_MEMORY_TRACKER 1" >>confdefs.h +$as_echo "#define HYPRE_USING_MEMORY_TRACKER 1" >>confdefs.h fi if test "$hypre_test_using_host" = "yes" then -printf "%s\n" "#define HYPRE_TEST_USING_HOST 1" >>confdefs.h +$as_echo "#define HYPRE_TEST_USING_HOST 1" >>confdefs.h fi @@ -9099,14 +8028,14 @@ then if test $blas_lib = "-ldxml" then -printf "%s\n" "#define HYPRE_USING_DXML 1" >>confdefs.h +$as_echo "#define HYPRE_USING_DXML 1" >>confdefs.h fi if test $blas_lib = "-lessl" then -printf "%s\n" "#define HYPRE_USING_ESSL 1" >>confdefs.h +$as_echo "#define HYPRE_USING_ESSL 1" >>confdefs.h fi done @@ -9128,8 +8057,7 @@ then # Check whether --with-blas was given. -if test ${with_blas+y} -then : +if test "${with_blas+set}" = set; then : withval=$with_blas; fi @@ -9181,13 +8109,12 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu for lib in $BLAS_LIB_NAMES; do - as_ac_Lib=`printf "%s\n" "ac_cv_lib_$lib""_$dgemm" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $dgemm in -l$lib" >&5 -printf %s "checking for $dgemm in -l$lib... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_$dgemm" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dgemm in -l$lib" >&5 +$as_echo_n "checking for $dgemm in -l$lib... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-l$lib $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -9196,6 +8123,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif char $dgemm (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -9206,28 +8136,26 @@ char $dgemm (); #endif #endif int -main (void) +main () { return $dgemm (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : eval "$as_ac_Lib=yes" -else $as_nop +else eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes" -then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : BLASLIBS=$lib fi @@ -9256,13 +8184,13 @@ fi #*************************************************************** if test "$BLASLIBS" = "dxml"; then -printf "%s\n" "#define HYPRE_USING_DXML 1" >>confdefs.h +$as_echo "#define HYPRE_USING_DXML 1" >>confdefs.h fi if test "$BLASLIBS" = "essl"; then -printf "%s\n" "#define HYPRE_USING_ESSL 1" >>confdefs.h +$as_echo "#define HYPRE_USING_ESSL 1" >>confdefs.h fi @@ -9286,14 +8214,14 @@ printf "%s\n" "#define HYPRE_USING_ESSL 1" >>confdefs.h if test "$BLASLIBS" = "null" then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 -printf "%s\n" "$as_me: WARNING: ***************************************" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find BLAS library" >&5 -printf "%s\n" "$as_me: WARNING: Cannot find BLAS library" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configuring --without-blas" >&5 -printf "%s\n" "$as_me: WARNING: configuring --without-blas" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 -printf "%s\n" "$as_me: WARNING: ***************************************" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 +$as_echo "$as_me: WARNING: ***************************************" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find BLAS library" >&5 +$as_echo "$as_me: WARNING: Cannot find BLAS library" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuring --without-blas" >&5 +$as_echo "$as_me: WARNING: configuring --without-blas" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 +$as_echo "$as_me: WARNING: ***************************************" >&2;} elif test "$BLASLIBS" != "internal" then hypre_using_hypre_blas=no @@ -9304,7 +8232,7 @@ printf "%s\n" "$as_me: WARNING: ***************************************" >&2;} BLASLIBDIRS="" BLASLIBS="" -printf "%s\n" "#define HYPRE_USING_HYPRE_BLAS 1" >>confdefs.h +$as_echo "#define HYPRE_USING_HYPRE_BLAS 1" >>confdefs.h fi fi @@ -9315,7 +8243,7 @@ then if test $lapack_lib = "-lessl" then -printf "%s\n" "#define HYPRE_USING_ESSL 1" >>confdefs.h +$as_echo "#define HYPRE_USING_ESSL 1" >>confdefs.h fi done @@ -9337,8 +8265,7 @@ then # Check whether --with-lapack was given. -if test ${with_lapack+y} -then : +if test "${with_lapack+set}" = set; then : withval=$with_lapack; fi @@ -9390,13 +8317,12 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu for lib in $LAPACK_LIB_NAMES; do - as_ac_Lib=`printf "%s\n" "ac_cv_lib_$lib""_$dsygv" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $dsygv in -l$lib" >&5 -printf %s "checking for $dsygv in -l$lib... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_$dsygv" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dsygv in -l$lib" >&5 +$as_echo_n "checking for $dsygv in -l$lib... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-l$lib -lblas $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -9405,6 +8331,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif char $dsygv (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -9415,28 +8344,26 @@ char $dsygv (); #endif #endif int -main (void) +main () { return $dsygv (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : eval "$as_ac_Lib=yes" -else $as_nop +else eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes" -then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LAPACKLIBS=$lib fi @@ -9480,14 +8407,14 @@ fi if test "$LAPACKLIBS" = "null" then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 -printf "%s\n" "$as_me: WARNING: ***************************************" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LAPACK library" >&5 -printf "%s\n" "$as_me: WARNING: Cannot find LAPACK library" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configuring --without-lapack" >&5 -printf "%s\n" "$as_me: WARNING: configuring --without-lapack" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 -printf "%s\n" "$as_me: WARNING: ***************************************" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 +$as_echo "$as_me: WARNING: ***************************************" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LAPACK library" >&5 +$as_echo "$as_me: WARNING: Cannot find LAPACK library" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuring --without-lapack" >&5 +$as_echo "$as_me: WARNING: configuring --without-lapack" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 +$as_echo "$as_me: WARNING: ***************************************" >&2;} elif test "$LAPACKLIBS" != "internal" then hypre_using_hypre_lapack=no @@ -9498,7 +8425,7 @@ printf "%s\n" "$as_me: WARNING: ***************************************" >&2;} LAPACKLIBDIRS="" LAPACKLIBS="" -printf "%s\n" "#define HYPRE_USING_HYPRE_LAPACK 1" >>confdefs.h +$as_echo "#define HYPRE_USING_HYPRE_LAPACK 1" >>confdefs.h fi fi @@ -9516,16 +8443,15 @@ then HYPRE_FEI_SUBDIRS="femli $HYPRE_FEI_SUBDIRS" HYPRE_FEI_FEMLI_FILES="$HYPRE_SRCDIR/FEI_mv/femli/*.o" -printf "%s\n" "#define HAVE_MLI 1" >>confdefs.h +$as_echo "#define HAVE_MLI 1" >>confdefs.h fi fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gxx_personality_v0 in -lstdc++" >&5 -printf %s "checking for __gxx_personality_v0 in -lstdc++... " >&6; } -if test ${ac_cv_lib_stdcpp___gxx_personality_v0+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gxx_personality_v0 in -lstdc++" >&5 +$as_echo_n "checking for __gxx_personality_v0 in -lstdc++... " >&6; } +if ${ac_cv_lib_stdcpp___gxx_personality_v0+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lstdc++ $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -9534,6 +8460,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif char __gxx_personality_v0 (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -9544,27 +8473,25 @@ char __gxx_personality_v0 (); #endif #endif int -main (void) +main () { return __gxx_personality_v0 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_stdcpp___gxx_personality_v0=yes -else $as_nop +else ac_cv_lib_stdcpp___gxx_personality_v0=no fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp___gxx_personality_v0" >&5 -printf "%s\n" "$ac_cv_lib_stdcpp___gxx_personality_v0" >&6; } -if test "x$ac_cv_lib_stdcpp___gxx_personality_v0" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp___gxx_personality_v0" >&5 +$as_echo "$ac_cv_lib_stdcpp___gxx_personality_v0" >&6; } +if test "x$ac_cv_lib_stdcpp___gxx_personality_v0" = xyes; then : LIBS="$LIBS -lstdc++" fi @@ -9703,7 +8630,7 @@ then esac fi -printf "%s\n" "#define HYPRE_DEBUG 1" >>confdefs.h +$as_echo "#define HYPRE_DEBUG 1" >>confdefs.h else @@ -9866,12 +8793,11 @@ then CXXFLAGS="`mpicc -link-info | awk '{$1=""; print}'` $CXXFLAGS" fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cabs in -lm" >&5 -printf %s "checking for cabs in -lm... " >&6; } -if test ${ac_cv_lib_m_cabs+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs in -lm" >&5 +$as_echo_n "checking for cabs in -lm... " >&6; } +if ${ac_cv_lib_m_cabs+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -9880,6 +8806,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif char cabs (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -9890,27 +8819,25 @@ char cabs (); #endif #endif int -main (void) +main () { return cabs (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_cabs=yes -else $as_nop +else ac_cv_lib_m_cabs=no fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabs" >&5 -printf "%s\n" "$ac_cv_lib_m_cabs" >&6; } -if test "x$ac_cv_lib_m_cabs" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabs" >&5 +$as_echo "$ac_cv_lib_m_cabs" >&6; } +if test "x$ac_cv_lib_m_cabs" = xyes; then : LIBS="$LIBS -lm" fi @@ -10004,33 +8931,33 @@ if test "$hypre_using_caliper" = "yes" then if test "$hypre_user_gave_caliper_inc" != "yes" then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 -printf "%s\n" "$as_me: WARNING: *******************************************************" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Configuring with --with-caliper=yes without providing" >&5 -printf "%s\n" "$as_me: WARNING: Configuring with --with-caliper=yes without providing" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-caliper-include=." >&5 -printf "%s\n" "$as_me: WARNING: --with-caliper-include=." >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using default user include path." >&5 -printf "%s\n" "$as_me: WARNING: Using default user include path." >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: NOTE: Caliper annotations may not work." >&5 -printf "%s\n" "$as_me: WARNING: NOTE: Caliper annotations may not work." >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 -printf "%s\n" "$as_me: WARNING: *******************************************************" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 +$as_echo "$as_me: WARNING: *******************************************************" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring with --with-caliper=yes without providing" >&5 +$as_echo "$as_me: WARNING: Configuring with --with-caliper=yes without providing" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-caliper-include=." >&5 +$as_echo "$as_me: WARNING: --with-caliper-include=." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using default user include path." >&5 +$as_echo "$as_me: WARNING: Using default user include path." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NOTE: Caliper annotations may not work." >&5 +$as_echo "$as_me: WARNING: NOTE: Caliper annotations may not work." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 +$as_echo "$as_me: WARNING: *******************************************************" >&2;} fi if test "$hypre_user_gave_caliper_lib" != "yes" then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 -printf "%s\n" "$as_me: WARNING: *******************************************************" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Configuring with --with-caliper=yes without providing" >&5 -printf "%s\n" "$as_me: WARNING: Configuring with --with-caliper=yes without providing" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-caliper-lib=." >&5 -printf "%s\n" "$as_me: WARNING: --with-caliper-lib=." >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using default user library path." >&5 -printf "%s\n" "$as_me: WARNING: Using default user library path." >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: NOTE: Caliper annotations may not work." >&5 -printf "%s\n" "$as_me: WARNING: NOTE: Caliper annotations may not work." >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 -printf "%s\n" "$as_me: WARNING: *******************************************************" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 +$as_echo "$as_me: WARNING: *******************************************************" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring with --with-caliper=yes without providing" >&5 +$as_echo "$as_me: WARNING: Configuring with --with-caliper=yes without providing" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-caliper-lib=." >&5 +$as_echo "$as_me: WARNING: --with-caliper-lib=." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using default user library path." >&5 +$as_echo "$as_me: WARNING: Using default user library path." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NOTE: Caliper annotations may not work." >&5 +$as_echo "$as_me: WARNING: NOTE: Caliper annotations may not work." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 +$as_echo "$as_me: WARNING: *******************************************************" >&2;} fi fi @@ -10044,52 +8971,160 @@ fi if test "$hypre_using_cuda" = "yes" then - ac_header= ac_cache= -for ac_item in $ac_header_c_list -do - if test $ac_cache; then - ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" - if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then - printf "%s\n" "#define $ac_item 1" >> confdefs.h - fi - ac_header= ac_cache= - elif test $ac_header; then - ac_cache=$ac_item - else - ac_header=$ac_item - fi -done + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +#ifdef FC_DUMMY_MAIN +#ifndef FC_DUMMY_MAIN_EQ_F77 +# ifdef __cplusplus + extern "C" +# endif + int FC_DUMMY_MAIN() { return 1; } +#endif +#endif +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + 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 confdefs.h - <<_ACEOF >conftest.$ac_ext +/* 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 confdefs.h - <<_ACEOF >conftest.$ac_ext +/* 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 confdefs.h - <<_ACEOF >conftest.$ac_ext +/* 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 +if ac_fn_c_try_run "$LINENO"; then : +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then +$as_echo "#define STDC_HEADERS 1" >>confdefs.h -if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes -then : +fi -printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h +# 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` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF fi -as_ac_Header=`printf "%s\n" "ac_cv_header_"${CUDA_HOME}/include/cuda.h"" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" ""${CUDA_HOME}/include/cuda.h"" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes" -then : + +done + + +as_ac_Header=`$as_echo "ac_cv_header_"${CUDA_HOME}/include/cuda.h"" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" ""${CUDA_HOME}/include/cuda.h"" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : hypre_found_cuda=yes; HYPRE_CUDA_PATH=${CUDA_HOME} fi + if test "x$hypre_found_cuda" != "xyes" then - as_ac_Header=`printf "%s\n" "ac_cv_header_"${CUDA_PATH}/include/cuda.h"" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" ""${CUDA_PATH}/include/cuda.h"" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes" -then : + as_ac_Header=`$as_echo "ac_cv_header_"${CUDA_PATH}/include/cuda.h"" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" ""${CUDA_PATH}/include/cuda.h"" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : hypre_found_cuda=yes; HYPRE_CUDA_PATH=${CUDA_PATH} fi + fi if test "x$hypre_found_cuda" != "xyes" @@ -10101,13 +9136,12 @@ fi if test "$hypre_using_cusparse" = "yes" then - as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/include/cusparse.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/include/cusparse.h" >&5 -printf %s "checking for ${HYPRE_CUDA_PATH}/include/cusparse.h... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/include/cusparse.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/include/cusparse.h" >&5 +$as_echo_n "checking for ${HYPRE_CUDA_PATH}/include/cusparse.h... " >&6; } +if eval \${$as_ac_File+:} false; then : + $as_echo_n "(cached) " >&6 +else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/include/cusparse.h"; then @@ -10117,23 +9151,21 @@ else fi fi eval ac_res=\$$as_ac_File - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes" -then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes"; then : hypre_found_cusparse=yes; HYPRE_VENDOR_MATH_PATH=${HYPRE_CUDA_PATH} fi if test "x$hypre_found_cusparse" != "xyes" then - as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h" >&5 -printf %s "checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h" >&5 +$as_echo_n "checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h... " >&6; } +if eval \${$as_ac_File+:} false; then : + $as_echo_n "(cached) " >&6 +else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h"; then @@ -10143,25 +9175,23 @@ else fi fi eval ac_res=\$$as_ac_File - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes" -then : - hypre_found_cusparse=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../math_libs); { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 -printf "%s\n" "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + hypre_found_cusparse=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../math_libs); { $as_echo "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 +$as_echo "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} fi fi if test "x$hypre_found_cusparse" != "xyes" then - as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h" >&5 -printf %s "checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h" >&5 +$as_echo_n "checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h... " >&6; } +if eval \${$as_ac_File+:} false; then : + $as_echo_n "(cached) " >&6 +else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h"; then @@ -10171,12 +9201,11 @@ else fi fi eval ac_res=\$$as_ac_File - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes" -then : - hypre_found_cusparse=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../../math_libs); { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 -printf "%s\n" "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + hypre_found_cusparse=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../../math_libs); { $as_echo "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 +$as_echo "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} fi fi @@ -10190,13 +9219,12 @@ fi if test "$hypre_using_cublas" = "yes" then - as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/include/cublas.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/include/cublas.h" >&5 -printf %s "checking for ${HYPRE_CUDA_PATH}/include/cublas.h... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/include/cublas.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/include/cublas.h" >&5 +$as_echo_n "checking for ${HYPRE_CUDA_PATH}/include/cublas.h... " >&6; } +if eval \${$as_ac_File+:} false; then : + $as_echo_n "(cached) " >&6 +else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/include/cublas.h"; then @@ -10206,23 +9234,21 @@ else fi fi eval ac_res=\$$as_ac_File - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes" -then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes"; then : hypre_found_cublas=yes; HYPRE_VENDOR_MATH_PATH=${HYPRE_CUDA_PATH} fi if test "x$hypre_found_cublas" != "xyes" && test "x${HYPRE_VENDOR_MATH_PATH}" != "x" then - as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_VENDOR_MATH_PATH}/include/cublas.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_VENDOR_MATH_PATH}/include/cublas.h" >&5 -printf %s "checking for ${HYPRE_VENDOR_MATH_PATH}/include/cublas.h... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_${HYPRE_VENDOR_MATH_PATH}/include/cublas.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_VENDOR_MATH_PATH}/include/cublas.h" >&5 +$as_echo_n "checking for ${HYPRE_VENDOR_MATH_PATH}/include/cublas.h... " >&6; } +if eval \${$as_ac_File+:} false; then : + $as_echo_n "(cached) " >&6 +else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_VENDOR_MATH_PATH}/include/cublas.h"; then @@ -10232,10 +9258,9 @@ else fi fi eval ac_res=\$$as_ac_File - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes" -then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes"; then : hypre_found_cublas=yes; fi @@ -10243,13 +9268,12 @@ fi if test "x$hypre_found_cublas" != "xyes" then - as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h" >&5 -printf %s "checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h" >&5 +$as_echo_n "checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h... " >&6; } +if eval \${$as_ac_File+:} false; then : + $as_echo_n "(cached) " >&6 +else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h"; then @@ -10259,25 +9283,23 @@ else fi fi eval ac_res=\$$as_ac_File - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes" -then : - hypre_found_cublas=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../math_libs); { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 -printf "%s\n" "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + hypre_found_cublas=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../math_libs); { $as_echo "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 +$as_echo "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} fi fi if test "x$hypre_found_cublas" != "xyes" then - as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h" >&5 -printf %s "checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h" >&5 +$as_echo_n "checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h... " >&6; } +if eval \${$as_ac_File+:} false; then : + $as_echo_n "(cached) " >&6 +else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h"; then @@ -10287,12 +9309,11 @@ else fi fi eval ac_res=\$$as_ac_File - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes" -then : - hypre_found_cublas=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../../math_libs); { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 -printf "%s\n" "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + hypre_found_cublas=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../../math_libs); { $as_echo "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 +$as_echo "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} fi fi @@ -10306,13 +9327,12 @@ fi if test "$hypre_using_cusolver" = "yes" then - as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/include/cusolverDn.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/include/cusolverDn.h" >&5 -printf %s "checking for ${HYPRE_CUDA_PATH}/include/cusolverDn.h... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/include/cusolverDn.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/include/cusolverDn.h" >&5 +$as_echo_n "checking for ${HYPRE_CUDA_PATH}/include/cusolverDn.h... " >&6; } +if eval \${$as_ac_File+:} false; then : + $as_echo_n "(cached) " >&6 +else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/include/cusolverDn.h"; then @@ -10322,23 +9342,21 @@ else fi fi eval ac_res=\$$as_ac_File - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes" -then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes"; then : hypre_found_cusolver=yes; HYPRE_VENDOR_MATH_PATH=${HYPRE_CUDA_PATH} fi if test "x$hypre_found_cusolver" != "xyes" && test "x${HYPRE_VENDOR_MATH_PATH}" != "x" then - as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h" >&5 -printf %s "checking for ${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h" >&5 +$as_echo_n "checking for ${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h... " >&6; } +if eval \${$as_ac_File+:} false; then : + $as_echo_n "(cached) " >&6 +else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h"; then @@ -10348,10 +9366,9 @@ else fi fi eval ac_res=\$$as_ac_File - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes" -then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes"; then : hypre_found_cusolver=yes; fi @@ -10359,13 +9376,12 @@ fi if test "x$hypre_found_cusolver" != "xyes" then - as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h" >&5 -printf %s "checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h" >&5 +$as_echo_n "checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h... " >&6; } +if eval \${$as_ac_File+:} false; then : + $as_echo_n "(cached) " >&6 +else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h"; then @@ -10375,25 +9391,23 @@ else fi fi eval ac_res=\$$as_ac_File - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes" -then : - hypre_found_cusolver=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../math_libs); { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 -printf "%s\n" "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + hypre_found_cusolver=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../math_libs); { $as_echo "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 +$as_echo "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} fi fi if test "x$hypre_found_cusolver" != "xyes" then - as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h" >&5 -printf %s "checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h" >&5 +$as_echo_n "checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h... " >&6; } +if eval \${$as_ac_File+:} false; then : + $as_echo_n "(cached) " >&6 +else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h"; then @@ -10403,12 +9417,11 @@ else fi fi eval ac_res=\$$as_ac_File - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes" -then : - hypre_found_cusolver=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../../math_libs); { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 -printf "%s\n" "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + hypre_found_cusolver=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../../math_libs); { $as_echo "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 +$as_echo "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} fi fi @@ -10420,31 +9433,29 @@ fi fi -if test x"$hypre_using_hip" == x"yes" -then : - if test -n "$ROCM_PATH" -then : +if test x"$hypre_using_hip" == x"yes" ; then : + if test -n "$ROCM_PATH"; then : HYPRE_ROCM_PREFIX=$ROCM_PATH -else $as_nop +else HYPRE_ROCM_PREFIX=/opt/rocm fi - as_ac_Header=`printf "%s\n" "ac_cv_header_"${HYPRE_ROCM_PREFIX}/include/hip/hip_common.h"" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" ""${HYPRE_ROCM_PREFIX}/include/hip/hip_common.h"" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes" -then : + as_ac_Header=`$as_echo "ac_cv_header_"${HYPRE_ROCM_PREFIX}/include/hip/hip_common.h"" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" ""${HYPRE_ROCM_PREFIX}/include/hip/hip_common.h"" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : hypre_found_hip=yes -else $as_nop +else as_fn_error $? "unable to find ${HYPRE_ROCM_PREFIX}/include/hip/hip_common.h ... Ensure ROCm is installed and set ROCM_PATH environment variable to ROCm installation path." "$LINENO" 5 fi + fi if test "x$hypre_using_raja" = "xyes" then -printf "%s\n" "#define HYPRE_USING_RAJA 1" >>confdefs.h +$as_echo "#define HYPRE_USING_RAJA 1" >>confdefs.h if test "$hypre_user_chose_cxxflags" = "no" @@ -10466,7 +9477,7 @@ fi if test "x$hypre_using_kokkos" = "xyes" then -printf "%s\n" "#define HYPRE_USING_KOKKOS 1" >>confdefs.h +$as_echo "#define HYPRE_USING_KOKKOS 1" >>confdefs.h if test "$hypre_user_chose_cxxflags" = "no" @@ -10491,7 +9502,7 @@ if test "x$hypre_using_umpire_host" = "xyes" then hypre_using_umpire=yes -printf "%s\n" "#define HYPRE_USING_UMPIRE_HOST 1" >>confdefs.h +$as_echo "#define HYPRE_USING_UMPIRE_HOST 1" >>confdefs.h fi @@ -10499,7 +9510,7 @@ if test "x$hypre_using_umpire_device" = "xyes" then hypre_using_umpire=yes -printf "%s\n" "#define HYPRE_USING_UMPIRE_DEVICE 1" >>confdefs.h +$as_echo "#define HYPRE_USING_UMPIRE_DEVICE 1" >>confdefs.h fi @@ -10507,7 +9518,7 @@ if test "x$hypre_using_umpire_um" = "xyes" then hypre_using_umpire=yes -printf "%s\n" "#define HYPRE_USING_UMPIRE_UM 1" >>confdefs.h +$as_echo "#define HYPRE_USING_UMPIRE_UM 1" >>confdefs.h fi @@ -10515,25 +9526,25 @@ if test "x$hypre_using_umpire_pinned" = "xyes" then hypre_using_umpire=yes -printf "%s\n" "#define HYPRE_USING_UMPIRE_PINNED 1" >>confdefs.h +$as_echo "#define HYPRE_USING_UMPIRE_PINNED 1" >>confdefs.h fi if test "x$hypre_using_umpire" = "xyes" then -printf "%s\n" "#define HYPRE_USING_UMPIRE 1" >>confdefs.h +$as_echo "#define HYPRE_USING_UMPIRE 1" >>confdefs.h fi if test "$hypre_using_cuda" = "yes" then -printf "%s\n" "#define HYPRE_USING_GPU 1" >>confdefs.h +$as_echo "#define HYPRE_USING_GPU 1" >>confdefs.h -printf "%s\n" "#define HYPRE_USING_CUDA 1" >>confdefs.h +$as_echo "#define HYPRE_USING_CUDA 1" >>confdefs.h @@ -10567,10 +9578,8 @@ printf "%s\n" "#define HYPRE_USING_CUDA 1" >>confdefs.h HYPRE_CUDA_INCLUDE='-I${HYPRE_CUDA_PATH}/include' HYPRE_CUDA_LIBS='-L${HYPRE_CUDA_PATH}/lib64 -lcudart' - if test x"$hypre_using_cusparse" == x"yes" || test x"$hypre_using_cublas" == x"yes" || test x"$hypre_using_cusolver" == x"yes" -then : - if test "x$HYPRE_CUDA_PATH" != "x$HYPRE_VENDOR_MATH_PATH" -then : + if test x"$hypre_using_cusparse" == x"yes" || test x"$hypre_using_cublas" == x"yes" || test x"$hypre_using_cusolver" == x"yes"; then : + if test "x$HYPRE_CUDA_PATH" != "x$HYPRE_VENDOR_MATH_PATH"; then : HYPRE_CUDA_INCLUDE+=" -I${HYPRE_VENDOR_MATH_PATH}/include" HYPRE_CUDA_LIBS+=" -L${HYPRE_VENDOR_MATH_PATH}/lib64" fi @@ -10579,7 +9588,7 @@ fi if test "$hypre_using_gpu_profiling" = "yes" then -printf "%s\n" "#define HYPRE_USING_NVTX 1" >>confdefs.h +$as_echo "#define HYPRE_USING_NVTX 1" >>confdefs.h HYPRE_CUDA_LIBS+=" -lnvToolsExt" fi @@ -10587,7 +9596,7 @@ printf "%s\n" "#define HYPRE_USING_NVTX 1" >>confdefs.h if test "$hypre_using_cusparse" = "yes" then -printf "%s\n" "#define HYPRE_USING_CUSPARSE 1" >>confdefs.h +$as_echo "#define HYPRE_USING_CUSPARSE 1" >>confdefs.h HYPRE_CUDA_LIBS+=" -lcusparse" fi @@ -10595,7 +9604,7 @@ printf "%s\n" "#define HYPRE_USING_CUSPARSE 1" >>confdefs.h if test "$hypre_using_cublas" = "yes" then -printf "%s\n" "#define HYPRE_USING_CUBLAS 1" >>confdefs.h +$as_echo "#define HYPRE_USING_CUBLAS 1" >>confdefs.h HYPRE_CUDA_LIBS+=" -lcublas" fi @@ -10603,7 +9612,7 @@ printf "%s\n" "#define HYPRE_USING_CUBLAS 1" >>confdefs.h if test "$hypre_using_curand" = "yes" then -printf "%s\n" "#define HYPRE_USING_CURAND 1" >>confdefs.h +$as_echo "#define HYPRE_USING_CURAND 1" >>confdefs.h HYPRE_CUDA_LIBS+=" -lcurand" fi @@ -10611,7 +9620,7 @@ printf "%s\n" "#define HYPRE_USING_CURAND 1" >>confdefs.h if test "$hypre_using_cusolver" = "yes" then -printf "%s\n" "#define HYPRE_USING_CUSOLVER 1" >>confdefs.h +$as_echo "#define HYPRE_USING_CUSOLVER 1" >>confdefs.h HYPRE_CUDA_LIBS+=" -lcusolver" fi @@ -10619,33 +9628,32 @@ printf "%s\n" "#define HYPRE_USING_CUSOLVER 1" >>confdefs.h if test "$hypre_using_device_pool" = "yes" then -printf "%s\n" "#define HYPRE_USING_DEVICE_POOL 1" >>confdefs.h +$as_echo "#define HYPRE_USING_DEVICE_POOL 1" >>confdefs.h fi if test "$hypre_using_device_malloc_async" = "yes" then -printf "%s\n" "#define HYPRE_USING_DEVICE_MALLOC_ASYNC 1" >>confdefs.h +$as_echo "#define HYPRE_USING_DEVICE_MALLOC_ASYNC 1" >>confdefs.h fi if test "x$hypre_using_cuda_streams" = "xyes" then -printf "%s\n" "#define HYPRE_USING_CUDA_STREAMS 1" >>confdefs.h +$as_echo "#define HYPRE_USING_CUDA_STREAMS 1" >>confdefs.h fi fi -if test x"$hypre_using_hip" == x"yes" -then : +if test x"$hypre_using_hip" == x"yes"; then : -printf "%s\n" "#define HYPRE_USING_GPU 1" >>confdefs.h +$as_echo "#define HYPRE_USING_GPU 1" >>confdefs.h -printf "%s\n" "#define HYPRE_USING_HIP 1" >>confdefs.h +$as_echo "#define HYPRE_USING_HIP 1" >>confdefs.h @@ -10663,11 +9671,9 @@ printf "%s\n" "#define HYPRE_USING_HIP 1" >>confdefs.h HIPCXXFLAGS="-x hip -std=c++14 ${HIPCXXFLAGS}" - if test x"$hypre_using_debug" == x"yes" -then : + if test x"$hypre_using_debug" == x"yes"; then : HIPCXXFLAGS="-O1 -Wall -g -ggdb ${HIPCXXFLAGS}" -elif HIPCXXFLAGS="-O2 ${HIPCXXFLAGS}" -then : +elif HIPCXXFLAGS="-O2 ${HIPCXXFLAGS}"; then : fi @@ -10686,45 +9692,40 @@ fi HYPRE_HIP_LIBS="-L${HYPRE_ROCM_PREFIX}/lib -lamdhip64" - if test x"$hypre_using_rocsparse" == x"yes" -then : + if test x"$hypre_using_rocsparse" == x"yes"; then : -printf "%s\n" "#define HYPRE_USING_ROCSPARSE 1" >>confdefs.h +$as_echo "#define HYPRE_USING_ROCSPARSE 1" >>confdefs.h HYPRE_HIP_LIBS="${HYPRE_HIP_LIBS} -lrocsparse" fi - if test x"$hypre_using_rocblas" == x"yes" -then : + if test x"$hypre_using_rocblas" == x"yes"; then : -printf "%s\n" "#define HYPRE_USING_ROCBLAS 1" >>confdefs.h +$as_echo "#define HYPRE_USING_ROCBLAS 1" >>confdefs.h fi - if test x"$hypre_using_rocrand" == x"yes" -then : + if test x"$hypre_using_rocrand" == x"yes"; then : -printf "%s\n" "#define HYPRE_USING_ROCRAND 1" >>confdefs.h +$as_echo "#define HYPRE_USING_ROCRAND 1" >>confdefs.h HYPRE_HIP_LIBS="${HYPRE_HIP_LIBS} -lrocrand" fi - if test x"$hypre_using_gpu_profiling" == x"yes" -then : + if test x"$hypre_using_gpu_profiling" == x"yes"; then : -printf "%s\n" "#define HYPRE_USING_ROCTX 1" >>confdefs.h +$as_echo "#define HYPRE_USING_ROCTX 1" >>confdefs.h HYPRE_HIP_LIBS="${HYPRE_HIP_LIBS} -lroctx64" fi - if test x"$hypre_using_cuda_streams" == x"yes" -then : + if test x"$hypre_using_cuda_streams" == x"yes"; then : -printf "%s\n" "#define HYPRE_USING_CUDA_STREAMS 1" >>confdefs.h +$as_echo "#define HYPRE_USING_CUDA_STREAMS 1" >>confdefs.h fi @@ -10732,14 +9733,13 @@ fi fi -if test x"$hypre_using_sycl" == x"yes" -then : +if test x"$hypre_using_sycl" == x"yes"; then : -printf "%s\n" "#define HYPRE_USING_GPU 1" >>confdefs.h +$as_echo "#define HYPRE_USING_GPU 1" >>confdefs.h -printf "%s\n" "#define HYPRE_USING_SYCL 1" >>confdefs.h +$as_echo "#define HYPRE_USING_SYCL 1" >>confdefs.h LINK_CC=${CUCC} @@ -10768,45 +9768,41 @@ printf "%s\n" "#define HYPRE_USING_SYCL 1" >>confdefs.h CUFLAGS="${SYCLFLAGS}" fi - if test x"$hypre_using_onemklsparse" == x"yes" || test x"$hypre_using_onemklblas" == x"yes" || test x"$hypre_using_onemklrand" == x"yes" -then : - as_ac_Header=`printf "%s\n" "ac_cv_header_"${MKLROOT}/include/mkl.h"" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" ""${MKLROOT}/include/mkl.h"" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes" -then : + if test x"$hypre_using_onemklsparse" == x"yes" || test x"$hypre_using_onemklblas" == x"yes" || test x"$hypre_using_onemklrand" == x"yes"; then : + as_ac_Header=`$as_echo "ac_cv_header_"${MKLROOT}/include/mkl.h"" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" ""${MKLROOT}/include/mkl.h"" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : hypre_found_mkl=yes -else $as_nop +else as_fn_error $? "unable to find oneMKL ... Ensure that MKLROOT is set" "$LINENO" 5 fi + HYPRE_SYCL_LIBS="${HYPRE_SYCL_LIBS} -qmkl -Wl,-export-dynamic -Wl,--start-group -Wl,--end-group -lsycl -lOpenCL -lpthread -lm -ldl" HYPRE_SYCL_INCL="${HYPRE_SYCL_INCL} -qmkl -I${DPLROOT}/include -DMKL_ILP64 -I${MKLROOT}/include" fi - if test x"$hypre_using_onemklsparse" == x"yes" -then : + if test x"$hypre_using_onemklsparse" == x"yes"; then : -printf "%s\n" "#define HYPRE_USING_ONEMKLSPARSE 1" >>confdefs.h +$as_echo "#define HYPRE_USING_ONEMKLSPARSE 1" >>confdefs.h fi - if test x"$hypre_using_onemklblas" == x"yes" -then : + if test x"$hypre_using_onemklblas" == x"yes"; then : -printf "%s\n" "#define HYPRE_USING_ONEMKLBLAS 1" >>confdefs.h +$as_echo "#define HYPRE_USING_ONEMKLBLAS 1" >>confdefs.h fi - if test x"$hypre_using_onemklrand" == x"yes" -then : + if test x"$hypre_using_onemklrand" == x"yes"; then : -printf "%s\n" "#define HYPRE_USING_ONEMKLRAND 1" >>confdefs.h +$as_echo "#define HYPRE_USING_ONEMKLRAND 1" >>confdefs.h fi -printf "%s\n" "#define HYPRE_USING_CUDA_STREAMS 1" >>confdefs.h +$as_echo "#define HYPRE_USING_CUDA_STREAMS 1" >>confdefs.h @@ -10816,77 +9812,77 @@ if test "$hypre_using_um" != "yes" then if test "$hypre_using_cuda" = "yes" then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 -printf "%s\n" "$as_me: ***********************************************************************" >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring with --with-cuda=yes without unified memory." >&5 -printf "%s\n" "$as_me: Configuring with --with-cuda=yes without unified memory." >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: It only works for structured solvers and selected unstructured solvers" >&5 -printf "%s\n" "$as_me: It only works for structured solvers and selected unstructured solvers" >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 -printf "%s\n" "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 -printf "%s\n" "$as_me: ***********************************************************************" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 +$as_echo "$as_me: ***********************************************************************" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring with --with-cuda=yes without unified memory." >&5 +$as_echo "$as_me: Configuring with --with-cuda=yes without unified memory." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: It only works for structured solvers and selected unstructured solvers" >&5 +$as_echo "$as_me: It only works for structured solvers and selected unstructured solvers" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 +$as_echo "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 +$as_echo "$as_me: ***********************************************************************" >&6;} fi if test "$hypre_using_hip" = "yes" then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 -printf "%s\n" "$as_me: ***********************************************************************" >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring with --with-hip=yes without unified memory." >&5 -printf "%s\n" "$as_me: Configuring with --with-hip=yes without unified memory." >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: It only works for structured solvers and selected unstructured solvers" >&5 -printf "%s\n" "$as_me: It only works for structured solvers and selected unstructured solvers" >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 -printf "%s\n" "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 -printf "%s\n" "$as_me: ***********************************************************************" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 +$as_echo "$as_me: ***********************************************************************" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring with --with-hip=yes without unified memory." >&5 +$as_echo "$as_me: Configuring with --with-hip=yes without unified memory." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: It only works for structured solvers and selected unstructured solvers" >&5 +$as_echo "$as_me: It only works for structured solvers and selected unstructured solvers" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 +$as_echo "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 +$as_echo "$as_me: ***********************************************************************" >&6;} fi if test "$hypre_using_sycl" = "yes" then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************" >&5 -printf "%s\n" "$as_me: ***********************************************************" >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring with --with-sycl=yes without unified memory." >&5 -printf "%s\n" "$as_me: Configuring with --with-sycl=yes without unified memory." >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: It only works for struct interface." >&5 -printf "%s\n" "$as_me: It only works for struct interface." >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 -printf "%s\n" "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************" >&5 -printf "%s\n" "$as_me: ***********************************************************" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************" >&5 +$as_echo "$as_me: ***********************************************************" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring with --with-sycl=yes without unified memory." >&5 +$as_echo "$as_me: Configuring with --with-sycl=yes without unified memory." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: It only works for struct interface." >&5 +$as_echo "$as_me: It only works for struct interface." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 +$as_echo "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************" >&5 +$as_echo "$as_me: ***********************************************************" >&6;} fi if test "$hypre_using_device_openmp" = "yes" then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 -printf "%s\n" "$as_me: ***********************************************************************" >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring with --with-device-openmp=yes without unified memory." >&5 -printf "%s\n" "$as_me: Configuring with --with-device-openmp=yes without unified memory." >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: It only works for structured solvers and selected unstructured solvers" >&5 -printf "%s\n" "$as_me: It only works for structured solvers and selected unstructured solvers" >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 -printf "%s\n" "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 -printf "%s\n" "$as_me: ***********************************************************************" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 +$as_echo "$as_me: ***********************************************************************" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring with --with-device-openmp=yes without unified memory." >&5 +$as_echo "$as_me: Configuring with --with-device-openmp=yes without unified memory." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: It only works for structured solvers and selected unstructured solvers" >&5 +$as_echo "$as_me: It only works for structured solvers and selected unstructured solvers" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 +$as_echo "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 +$as_echo "$as_me: ***********************************************************************" >&6;} fi fi if test "$hypre_using_openmp" = "yes" then -printf "%s\n" "#define HYPRE_USING_OPENMP 1" >>confdefs.h +$as_echo "#define HYPRE_USING_OPENMP 1" >>confdefs.h fi if test "$hypre_using_device_openmp" = "yes" then -printf "%s\n" "#define HYPRE_USING_DEVICE_OPENMP 1" >>confdefs.h +$as_echo "#define HYPRE_USING_DEVICE_OPENMP 1" >>confdefs.h -printf "%s\n" "#define HYPRE_USING_GPU 1" >>confdefs.h +$as_echo "#define HYPRE_USING_GPU 1" >>confdefs.h -printf "%s\n" "#define HYPRE_DEVICE_OPENMP_ALLOC 1" >>confdefs.h +$as_echo "#define HYPRE_DEVICE_OPENMP_ALLOC 1" >>confdefs.h @@ -10912,7 +9908,7 @@ printf "%s\n" "#define HYPRE_DEVICE_OPENMP_ALLOC 1" >>confdefs.h if test "$hypre_using_debug" = "yes" then -printf "%s\n" "#define HYPRE_DEVICE_OPENMP_CHECK 1" >>confdefs.h +$as_echo "#define HYPRE_DEVICE_OPENMP_CHECK 1" >>confdefs.h fi @@ -10923,17 +9919,17 @@ printf "%s\n" "#define HYPRE_DEVICE_OPENMP_CHECK 1" >>confdefs.h if test "x$hypre_using_um" = "xyes" then -printf "%s\n" "#define HYPRE_USING_UNIFIED_MEMORY 1" >>confdefs.h +$as_echo "#define HYPRE_USING_UNIFIED_MEMORY 1" >>confdefs.h else if test "x$hypre_using_cuda" = "xyes" || test "x$hypre_using_device_openmp" = "xyes" || test "x$hypre_using_hip" = "xyes" || test "x$hypre_using_sycl" = "xyes" then -printf "%s\n" "#define HYPRE_USING_DEVICE_MEMORY 1" >>confdefs.h +$as_echo "#define HYPRE_USING_DEVICE_MEMORY 1" >>confdefs.h else -printf "%s\n" "#define HYPRE_USING_HOST_MEMORY 1" >>confdefs.h +$as_echo "#define HYPRE_USING_HOST_MEMORY 1" >>confdefs.h fi fi @@ -10941,7 +9937,7 @@ fi if test "$hypre_gpu_mpi" = "yes" then -printf "%s\n" "#define HYPRE_WITH_GPU_AWARE_MPI 1" >>confdefs.h +$as_echo "#define HYPRE_WITH_GPU_AWARE_MPI 1" >>confdefs.h fi @@ -10955,23 +9951,23 @@ HYPRE_INCINSTALL="${includedir}" if test $host_alias = $build_alias then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the hostname" >&5 -printf %s "checking the hostname... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking the hostname" >&5 +$as_echo_n "checking the hostname... " >&6; } hypre_hostname=hostname HOSTNAME="`$hypre_hostname`" if test -z "$HOSTNAME" then HOSTNAME=unknown - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: hostname is unknown" >&5 -printf "%s\n" "$as_me: WARNING: hostname is unknown" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hostname is unknown" >&5 +$as_echo "$as_me: WARNING: hostname is unknown" >&2;} else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5 -printf "%s\n" "$HOSTNAME" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5 +$as_echo "$HOSTNAME" >&6; } fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the architecture" >&5 -printf %s "checking the architecture... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking the architecture" >&5 +$as_echo_n "checking the architecture... " >&6; } if test -z "$ARCH"; then @@ -10985,8 +9981,8 @@ printf %s "checking the architecture... " >&6; } done if test -z "$hypre_tarch_dir"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find tarch" >&5 -printf "%s\n" "$as_me: WARNING: cannot find tarch" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find tarch" >&5 +$as_echo "$as_me: WARNING: cannot find tarch" >&2;} HYPRE_ARCH=$HOSTTYPE else HYPRE_ARCH="`$hypre_tarch`" @@ -10998,16 +9994,16 @@ printf "%s\n" "$as_me: WARNING: cannot find tarch" >&2;} if test -z "$HYPRE_ARCH"; then HYPRE_ARCH=unknown - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: architecture is unknown" >&5 -printf "%s\n" "$as_me: WARNING: architecture is unknown" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: architecture is unknown" >&5 +$as_echo "$as_me: WARNING: architecture is unknown" >&2;} else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HYPRE_ARCH" >&5 -printf "%s\n" "$HYPRE_ARCH" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HYPRE_ARCH" >&5 +$as_echo "$HYPRE_ARCH" >&6; } fi else HYPRE_ARCH=$ARCH - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HYPRE_ARCH" >&5 -printf "%s\n" "$HYPRE_ARCH" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HYPRE_ARCH" >&5 +$as_echo "$HYPRE_ARCH" >&6; } fi else @@ -11017,27 +10013,27 @@ printf "%s\n" "$HYPRE_ARCH" >&6; } case $HYPRE_ARCH in alpha) -printf "%s\n" "#define HYPRE_ALPHA 1" >>confdefs.h +$as_echo "#define HYPRE_ALPHA 1" >>confdefs.h ;; sun* | solaris*) -printf "%s\n" "#define HYPRE_SOLARIS 1" >>confdefs.h +$as_echo "#define HYPRE_SOLARIS 1" >>confdefs.h ;; hp* | HP*) -printf "%s\n" "#define HYPRE_HPPA 1" >>confdefs.h +$as_echo "#define HYPRE_HPPA 1" >>confdefs.h ;; rs6000 | RS6000 | *bgl* | *BGL* | ppc64*) -printf "%s\n" "#define HYPRE_RS6000 1" >>confdefs.h +$as_echo "#define HYPRE_RS6000 1" >>confdefs.h ;; IRIX64) -printf "%s\n" "#define HYPRE_IRIX64 1" >>confdefs.h +$as_echo "#define HYPRE_IRIX64 1" >>confdefs.h ;; Linux | linux | LINUX) @@ -11047,18 +10043,18 @@ printf "%s\n" "#define HYPRE_IRIX64 1" >>confdefs.h case $systemtype in chaos*) -printf "%s\n" "#define HYPRE_LINUX_CHAOS 1" >>confdefs.h +$as_echo "#define HYPRE_LINUX_CHAOS 1" >>confdefs.h ;; *) -printf "%s\n" "#define HYPRE_LINUX 1" >>confdefs.h +$as_echo "#define HYPRE_LINUX 1" >>confdefs.h ;; esac else -printf "%s\n" "#define HYPRE_LINUX 1" >>confdefs.h +$as_echo "#define HYPRE_LINUX 1" >>confdefs.h fi ;; @@ -11164,6 +10160,8 @@ printf "%s\n" "#define HYPRE_LINUX 1" >>confdefs.h + + @@ -11197,8 +10195,8 @@ _ACEOF case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { $as_echo "$as_me:${as_lineno-$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) ;; #( @@ -11228,15 +10226,15 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} /^ac_cv_env_/b end t clear :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -printf "%s\n" "$as_me: updating cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else @@ -11250,8 +10248,8 @@ printf "%s\n" "$as_me: updating cache $cache_file" >&6;} fi fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -11268,7 +10266,7 @@ U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" @@ -11284,8 +10282,8 @@ LTLIBOBJS=$ac_ltlibobjs ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL @@ -11308,16 +10306,14 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: -if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 -then : +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 $as_nop +else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -11327,46 +10323,46 @@ esac fi - -# Reset variables that may have inherited troublesome values from -# the environment. - -# IFS needs to be set, to space, tab, and newline, in precisely that order. -# (If _AS_PATH_WALK were called with IFS unset, it would have the -# side effect of setting IFS to empty, thus disabling word splitting.) -# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -IFS=" "" $as_nl" - -PS1='$ ' -PS2='> ' -PS4='+ ' - -# Ensure predictable behavior from utilities with locale-dependent output. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# We cannot yet rely on "unset" to work, but we need these variables -# to be unset--not just set to an empty or harmless value--now, to -# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct -# also avoids known problems related to "unset" and subshell syntax -# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). -for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH -do eval test \${$as_var+y} \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done - -# Ensure that fds 0, 1, and 2 are open. -if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi -if (exec 3>&2) ; then :; else exec 2>/dev/null; fi +# 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 +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (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 ${PATH_SEPARATOR+false} :; then +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 || @@ -11375,6 +10371,13 @@ if ${PATH_SEPARATOR+false} :; then 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. as_myself= case $0 in #(( @@ -11383,12 +10386,8 @@ case $0 in #(( for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - test -r "$as_dir$0" && as_myself=$as_dir$0 && break + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS @@ -11400,10 +10399,30 @@ if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then - printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] @@ -11416,14 +10435,13 @@ as_fn_error () as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - printf "%s\n" "$as_me: error: $2" >&2 + $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error - # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -11450,20 +10468,18 @@ as_fn_unset () { eval $1=; unset $1;} } as_unset=as_fn_unset - # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null -then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' -else $as_nop +else as_fn_append () { eval $1=\$$1\$2 @@ -11475,13 +10491,12 @@ fi # as_fn_append # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null -then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else $as_nop +else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` @@ -11512,7 +10527,7 @@ as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -printf "%s\n" X/"$0" | +$as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -11534,10 +10549,6 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits - -# Determine whether it's possible to make 'echo' print without a newline. -# These variables are no longer used directly by Autoconf, but are AC_SUBSTed -# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -11551,12 +10562,6 @@ case `echo -n x` in #((((( ECHO_N='-n';; esac -# For backward compatibility with old third-party macros, we provide -# the shell variables $as_echo and $as_echo_n. New code should use -# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. -as_echo='printf %s\n' -as_echo_n='printf %s' - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -11598,7 +10603,7 @@ as_fn_mkdir_p () as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -11607,7 +10612,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -printf "%s\n" X"$as_dir" | +$as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -11670,7 +10675,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # values after options handling. ac_log=" This file was extended by hypre $as_me 2.27.0, which was -generated by GNU Autoconf 2.71. Invocation command line was +generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -11728,16 +10733,14 @@ $config_headers Report bugs to the package provider." _ACEOF -ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` -ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config='$ac_cs_config_escaped' +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ hypre config.status 2.27.0 -configured by $0, generated by GNU Autoconf 2.71, +configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -11774,15 +10777,15 @@ do -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - printf "%s\n" "$ac_cs_version"; exit ;; + $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) - printf "%s\n" "$ac_cs_config"; exit ;; + $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" @@ -11790,7 +10793,7 @@ do --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; @@ -11799,7 +10802,7 @@ do as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) - printf "%s\n" "$ac_cs_usage"; exit ;; + $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; @@ -11827,7 +10830,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift - \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" @@ -11841,7 +10844,7 @@ exec 5>>config.log sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX - printf "%s\n" "$ac_log" + $as_echo "$ac_log" } >&5 _ACEOF @@ -11867,8 +10870,8 @@ done # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then - test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files - test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree @@ -12204,7 +11207,7 @@ do esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac - case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done @@ -12212,17 +11215,17 @@ do # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` - printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -printf "%s\n" "$as_me: creating $ac_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) - ac_sed_conf_input=`printf "%s\n" "$configure_input" | + ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac @@ -12239,7 +11242,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -printf "%s\n" X"$ac_file" | +$as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -12263,9 +11266,9 @@ printf "%s\n" X"$ac_file" | case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + 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/ ;; @@ -12318,8 +11321,8 @@ ac_sed_dataroot=' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' @@ -12361,9 +11364,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -12379,20 +11382,20 @@ which seems to be undefined. Please make sure it is defined" >&2;} # if test x"$ac_file" != x-; then { - printf "%s\n" "/* $configure_input */" >&1 \ + $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else - printf "%s\n" "/* $configure_input */" >&1 \ + $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi @@ -12433,12 +11436,11 @@ if test "$no_create" != yes; then $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi - mv HYPRE_config.h HYPRE_config.h.tmp sed 's/FC_FUNC/HYPRE_FC_FUNC/g' < HYPRE_config.h.tmp > HYPRE_config.h rm -f HYPRE_config.h.tmp From f641c6470767ee5676f570b5837c841b742fadf2 Mon Sep 17 00:00:00 2001 From: Daniel Osei-Kuffuor Date: Thu, 9 Mar 2023 17:12:14 -0800 Subject: [PATCH 02/11] Added multiprecision.h file to help with code transformation. --- src/utilities/HYPRE_utilities.h | 8 ++ src/utilities/multiprecision.h | 154 ++++++++++++++++++++++++++++++++ 2 files changed, 162 insertions(+) create mode 100644 src/utilities/multiprecision.h diff --git a/src/utilities/HYPRE_utilities.h b/src/utilities/HYPRE_utilities.h index 09d651e757..22a3c37efc 100644 --- a/src/utilities/HYPRE_utilities.h +++ b/src/utilities/HYPRE_utilities.h @@ -57,6 +57,9 @@ typedef int HYPRE_Int; #include +/* Include multiprecision header */ +#include "multiprecision.h" + #if defined(HYPRE_SINGLE) typedef float HYPRE_Real; #define HYPRE_REAL_MAX FLT_MAX @@ -99,6 +102,11 @@ typedef HYPRE_Real HYPRE_Complex; #define HYPRE_MPI_COMPLEX HYPRE_MPI_REAL #endif +/* This allows us to consistently avoid 'float, double and longdouble' throughout hypre */ +typedef double hypre_double; +typedef float hypre_float; +typedef long double hypre_long_double; + /*-------------------------------------------------------------------------- * Sequential MPI stuff *--------------------------------------------------------------------------*/ diff --git a/src/utilities/multiprecision.h b/src/utilities/multiprecision.h new file mode 100644 index 0000000000..6eec6abd89 --- /dev/null +++ b/src/utilities/multiprecision.h @@ -0,0 +1,154 @@ +/****************************************************************************** + * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other + * HYPRE Project Developers. See the top-level COPYRIGHT file for details. + * + * SPDX-License-Identifier: (Apache-2.0 OR MIT) + ******************************************************************************/ + +/****************************************************************************** + * + * Header file for multiprecision utilities + * + *****************************************************************************/ + +#ifndef MULTIPRECISION_UTILITIES_HEADER +#define MULTIPRECISION_UTILITIES_HEADER + +#define CONCAT2_(a, b) a ## _ ## b +#define CONCAT_(a, b) CONCAT2_(a, b) + +/* multiprecision build types */ +#define FLT_SUFFIX flt +#define DBL_SUFFIX dbl +#define LDBL_SUFFIX long_dbl + +/*-------------------------------------------------------------------------- +* For Multi-precision build. Only set when hypre +* is built with mixed-precision +*---------------------------------------------------------------------------*/ +#if defined(HYPRE_MIXED_PRECISION) +/* matrix/ solver precision options */ +typedef enum +{ + HYPRE_REAL_SINGLE, + HYPRE_REAL_DOUBLE, + HYPRE_REAL_LONGDOUBLE +} HYPRE_Precision; +/*-------------------------------------------------------------------------- +* Reset build types for Multi-precision build +*---------------------------------------------------------------------------*/ +#if defined(MP_BUILD_SINGLE) +#define HYPRE_OBJECT_PRECISION HYPRE_REAL_SINGLE +#define BUILD_MP_FUNC 1 +#undef HYPRE_LONG_DOUBLE +#ifndef HYPRE_SINGLE +#define HYPRE_SINGLE 1 +#endif +#elif defined(MP_BUILD_LONGDOUBLE) +#define HYPRE_OBJECT_PRECISION HYPRE_REAL_LONGDOUBLE +#define BUILD_MP_FUNC 1 +#undef HYPRE_SINGLE +#ifndef HYPRE_LONG_DOUBLE +#define HYPRE_LONG_DOUBLE 1 +#endif +#elif defined(MP_BUILD_DOUBLE) +#define HYPRE_OBJECT_PRECISION HYPRE_REAL_DOUBLE +#define BUILD_MP_FUNC 1 +#undef HYPRE_SINGLE +#undef HYPRE_LONG_DOUBLE +#else +#ifdef BUILD_MP_FUNC +#undef BUILD_MP_FUNC +#endif +#define BUILD_NON_MP_FUNC 1 +#endif +/*-------------------------------------------------------------------------- + * HYPRE multiprecision extensions + *--------------------------------------------------------------------------*/ +/* Macro to generate typed functions */ +#if defined(BUILD_MP_FUNC) +#if defined(HYPRE_SINGLE) +//#define FUNC_SUFFIX flt +#define HYPRE_MULTIPRECISION_FUNC(a) CONCAT_(a, FLT_SUFFIX) +#elif defined(HYPRE_LONG_DOUBLE) +//#define FUNC_SUFFIX long_dbl +#define HYPRE_MULTIPRECISION_FUNC(a) CONCAT_(a, LDBL_SUFFIX) +#else /* HYPRE_DOUBLE */ +//#define FUNC_SUFFIX dbl +#define HYPRE_MULTIPRECISION_FUNC(a) CONCAT_(a, DBL_SUFFIX) +#endif +#else +#define HYPRE_MULTIPRECISION_FUNC(a) a +#endif + +/* Apply suffix to define typed function */ +//#define HYPRE_MULTIPRECISION_FUNC(a) CONCAT_(a, FUNC_SUFFIX) + +#else +/* define no-op for typed function macro */ +//#define HYPRE_MULTIPRECISION_FUNC(a) a +#define BUILD_MP_FUNC 1 +#define BUILD_NON_MP_FUNC 1 +#endif + +/* Helper macros to generate multiprecision function declarations */ +#define DECLARE_MP_FUNC(rtype,func,fargs...)\ + rtype CONCAT_(func,FLT_SUFFIX) (fargs);\ + rtype CONCAT_(func,DBL_SUFFIX) (fargs);\ + rtype CONCAT_(func,LDBL_SUFFIX) (fargs);\ + +#define DECLARE_DP_FUNC(rtype,func,fargs...)\ + rtype CONCAT_(func,DBL_SUFFIX) (fargs);\ + +#define HYPRE_DP_FUNC(a) CONCAT_(a, DBL_SUFFIX) + +#define DECLARE_SP_FUNC(rtype,func,fargs...)\ + rtype CONCAT_(func,FLT_SUFFIX) (fargs);\ + +#define HYPRE_SP_FUNC(a) CONCAT_(a, FLT_SUFFIX) + +/* code for scalar or void return type */ +#define MP_METHOD_FUNC(precision,func,args...)\ + switch(precision) {\ + case HYPRE_REAL_SINGLE: \ + return CONCAT_(func,FLT_SUFFIX) (args);\ + case HYPRE_REAL_DOUBLE: \ + return CONCAT_(func,DBL_SUFFIX) (args);\ + case HYPRE_REAL_LONGDOUBLE: \ + return CONCAT_(func,LDBL_SUFFIX) (args);\ + default:\ + hypre_printf("Unknown solver precision" );\ + exit(0);\ + }\ + +/* code for pointer return type */ +#define MP_METHOD_FUNCPTR(rval,precision,func,args...)\ + switch(precision) {\ + case HYPRE_REAL_SINGLE: \ + rval = CONCAT_(func,FLT_SUFFIX) (args);\ + case HYPRE_REAL_DOUBLE: \ + rval = CONCAT_(func,DBL_SUFFIX) (args);\ + case HYPRE_REAL_LONGDOUBLE: \ + rval = CONCAT_(func,LDBL_SUFFIX) (args);\ + default:\ + hypre_printf("Unknown solver precision" );\ + exit(0);\ + }\ + +/* code for pointer return type */ +#define MP_METHOD_FUNCPTR_NP(rval,func,args...)\ + switch(precision) {\ + case HYPRE_REAL_SINGLE: \ + rval = CONCAT_(func,FLT_SUFFIX) (args);\ + case HYPRE_REAL_DOUBLE: \ + rval = CONCAT_(func,DBL_SUFFIX) (args);\ + case HYPRE_REAL_LONGDOUBLE: \ + rval = CONCAT_(func,LDBL_SUFFIX) (args);\ + default:\ + hypre_printf("Unknown solver precision" );\ + exit(0);\ + }\ + + +#endif + From 1d5786baca273d1165b53bcab4d7ca375e228720 Mon Sep 17 00:00:00 2001 From: Daniel Osei-Kuffuor Date: Thu, 9 Mar 2023 17:13:19 -0800 Subject: [PATCH 03/11] Updated blas directory to support multiprecision build. --- src/blas/Makefile | 55 +++++++++++++++++++++++++++++++++-- src/blas/_hypre_blas.h | 4 +++ src/blas/blas_func_header | 41 ++++++++++++++++++++++++++ src/blas/blas_functions.saved | 30 +++++++++++++++++++ src/blas/blas_mup_func.h | 50 +++++++++++++++++++++++++++++++ src/blas/hypre_blas.h | 5 ++++ 6 files changed, 182 insertions(+), 3 deletions(-) create mode 100755 src/blas/blas_func_header create mode 100644 src/blas/blas_functions.saved create mode 100644 src/blas/blas_mup_func.h diff --git a/src/blas/Makefile b/src/blas/Makefile index 76f8ac29ad..f2a0fc11df 100644 --- a/src/blas/Makefile +++ b/src/blas/Makefile @@ -45,18 +45,67 @@ OBJS = ${BLAS_FILES:.c=.o} # Targets ################################################################## -all: ${OBJS} +#all: ${OBJS} + +all: blas_OBJS install: all cp -fR $(srcdir)/_hypre_blas.h $(HYPRE_INC_INSTALL) -clean: +clean: clean_mup rm -rf *.o distclean: clean +ifeq (${MP_BUILD}, 1) +clean_mup: + rm -rf ${MuP_OBJDIR} +else +clean_mup: +endif + ################################################################## -# Rules +# Build Rules ################################################################## +ifeq (${MP_BUILD}, 1) + +MuP_OBJDIR = MuP_obj.dir +MuP_OBJDIR_single = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_flt} +MuP_OBJDIR_double = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_dbl} +MuP_OBJDIR_longdouble = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_ldbl} +# +#MKDIR_P = mkdir -p +#mkmpdir: +# ${MKDIR_P} ${MuP_OBJDIR} +# +ADD_OBJS_single = ${addprefix ${MuP_OBJDIR_single}/, ${notdir ${OBJS}}} +${ADD_OBJS_single}: CFLAGS += -DMP_BUILD_SINGLE=1 +${MuP_OBJDIR_single}/%.o: %.c ${BLAS_HEADERS} +# @echo "MuP_OBJDIR is ${ADD_OBJS_single} ... $%" + @echo "processing C object $@ ..." + @mkdir -p ${@D} + ${CC} ${CFLAGS} -c -o $@ $< +# +ADD_OBJS_double = ${addprefix ${MuP_OBJDIR_double}/, ${notdir ${OBJS}}} +${ADD_OBJS_double}: CFLAGS += -DMP_BUILD_DOUBLE=1 +${MuP_OBJDIR_double}/%.o: %.c ${BLAS_HEADERS} + @echo "processing C object $@ ..." + @mkdir -p ${@D} + ${CC} ${CFLAGS} -c -o $@ $< +# +ADD_OBJS_longdouble = ${addprefix ${MuP_OBJDIR_longdouble}/, ${notdir ${OBJS}}} +${ADD_OBJS_longdouble}: CFLAGS += -DMP_BUILD_LONGDOUBLE=1 +${MuP_OBJDIR_longdouble}/%.o: %.c ${BLAS_HEADERS} + @echo "processing C object $@ ..." + @mkdir -p ${@D} + ${CC} ${CFLAGS} -c -o $@ $< +# +# multiprecision object files +blas_OBJS: ${ADD_OBJS_single} ${ADD_OBJS_double} ${ADD_OBJS_longdouble} +# +else ${OBJS}: ${BLAS_HEADERS} +blas_OBJS: ${OBJS} +endif + diff --git a/src/blas/_hypre_blas.h b/src/blas/_hypre_blas.h index 04aa431a79..7bfd1688ae 100644 --- a/src/blas/_hypre_blas.h +++ b/src/blas/_hypre_blas.h @@ -19,6 +19,10 @@ #include +#ifdef HYPRE_MIXED_PRECISION +#include "blas_mup_func.h" +#endif + #ifdef __cplusplus extern "C" { #endif diff --git a/src/blas/blas_func_header b/src/blas/blas_func_header new file mode 100755 index 0000000000..ab82d732b5 --- /dev/null +++ b/src/blas/blas_func_header @@ -0,0 +1,41 @@ +#!/bin/sh +# Copyright (c) 1998 Lawrence Livermore National Security, LLC and other +# HYPRE Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +# generate header file for transforming multiprecision function names + +MUP_HEADER=blas_mup_func.h + +cat > $MUP_HEADER <<@ +/*** DO NOT EDIT THIS FILE DIRECTLY (use 'blas_func_header' to generate) ***/ +@ +# Generate copyright header +../../../hypre/src/scripts/writeHeader.sh $MUP_HEADER + +cat >> $MUP_HEADER <<@ + +/****************************************************************************** + * Header file for transforming multiprecision functions names + *****************************************************************************/ + +#ifndef BLAS_MUP_FUNC_HEADER +#define BLAS_MUP_FUNC_HEADER + +#include "HYPRE_utilities.h" + +@ + +FIN=blas_functions.saved +cat>> $MUP_HEADER <<@ +$( +cat "$FIN" | while read -r func_name +do +# print dressed-up function +echo "#define $func_name HYPRE_MULTIPRECISION_FUNC ( $func_name )" +done +) + +#endif +@ diff --git a/src/blas/blas_functions.saved b/src/blas/blas_functions.saved new file mode 100644 index 0000000000..fb4462f9a7 --- /dev/null +++ b/src/blas/blas_functions.saved @@ -0,0 +1,30 @@ + hypre_dasum + hypre_daxpy + hypre_dcopy + hypre_ddot + hypre_dgemm + hypre_dgemv + hypre_dger + hypre_dnrm2 + hypre_drot + hypre_dscal + hypre_dswap + hypre_dsymm + hypre_dsymv + hypre_dsyr2 + hypre_dsyr2k + hypre_dsyrk + hypre_dtrmm + hypre_dtrmv + hypre_dtrsm + hypre_dtrsv + hypre_d_lg10 + hypre_d_sign + hypre_pow_dd + hypre_pow_di + hypre_s_cat + hypre_s_cmp + hypre_s_copy + hypre_idamax + hypre_blas_lsame + hypre_blas_xerbla diff --git a/src/blas/blas_mup_func.h b/src/blas/blas_mup_func.h new file mode 100644 index 0000000000..63ba6e728e --- /dev/null +++ b/src/blas/blas_mup_func.h @@ -0,0 +1,50 @@ +/*** DO NOT EDIT THIS FILE DIRECTLY (use 'blas_func_header' to generate) ***/ + +/****************************************************************************** + * Copyright (c) 1998 Lawrence Livermore National Security, LLC and other + * HYPRE Project Developers. See the top-level COPYRIGHT file for details. + * + * SPDX-License-Identifier: (Apache-2.0 OR MIT) + ******************************************************************************/ + +/****************************************************************************** + * Header file for transforming multiprecision functions names + *****************************************************************************/ + +#ifndef BLAS_MUP_FUNC_HEADER +#define BLAS_MUP_FUNC_HEADER + +#include "HYPRE_utilities.h" + +#define hypre_dasum HYPRE_MULTIPRECISION_FUNC ( hypre_dasum ) +#define hypre_daxpy HYPRE_MULTIPRECISION_FUNC ( hypre_daxpy ) +#define hypre_dcopy HYPRE_MULTIPRECISION_FUNC ( hypre_dcopy ) +#define hypre_ddot HYPRE_MULTIPRECISION_FUNC ( hypre_ddot ) +#define hypre_dgemm HYPRE_MULTIPRECISION_FUNC ( hypre_dgemm ) +#define hypre_dgemv HYPRE_MULTIPRECISION_FUNC ( hypre_dgemv ) +#define hypre_dger HYPRE_MULTIPRECISION_FUNC ( hypre_dger ) +#define hypre_dnrm2 HYPRE_MULTIPRECISION_FUNC ( hypre_dnrm2 ) +#define hypre_drot HYPRE_MULTIPRECISION_FUNC ( hypre_drot ) +#define hypre_dscal HYPRE_MULTIPRECISION_FUNC ( hypre_dscal ) +#define hypre_dswap HYPRE_MULTIPRECISION_FUNC ( hypre_dswap ) +#define hypre_dsymm HYPRE_MULTIPRECISION_FUNC ( hypre_dsymm ) +#define hypre_dsymv HYPRE_MULTIPRECISION_FUNC ( hypre_dsymv ) +#define hypre_dsyr2 HYPRE_MULTIPRECISION_FUNC ( hypre_dsyr2 ) +#define hypre_dsyr2k HYPRE_MULTIPRECISION_FUNC ( hypre_dsyr2k ) +#define hypre_dsyrk HYPRE_MULTIPRECISION_FUNC ( hypre_dsyrk ) +#define hypre_dtrmm HYPRE_MULTIPRECISION_FUNC ( hypre_dtrmm ) +#define hypre_dtrmv HYPRE_MULTIPRECISION_FUNC ( hypre_dtrmv ) +#define hypre_dtrsm HYPRE_MULTIPRECISION_FUNC ( hypre_dtrsm ) +#define hypre_dtrsv HYPRE_MULTIPRECISION_FUNC ( hypre_dtrsv ) +#define hypre_d_lg10 HYPRE_MULTIPRECISION_FUNC ( hypre_d_lg10 ) +#define hypre_d_sign HYPRE_MULTIPRECISION_FUNC ( hypre_d_sign ) +#define hypre_pow_dd HYPRE_MULTIPRECISION_FUNC ( hypre_pow_dd ) +#define hypre_pow_di HYPRE_MULTIPRECISION_FUNC ( hypre_pow_di ) +#define hypre_s_cat HYPRE_MULTIPRECISION_FUNC ( hypre_s_cat ) +#define hypre_s_cmp HYPRE_MULTIPRECISION_FUNC ( hypre_s_cmp ) +#define hypre_s_copy HYPRE_MULTIPRECISION_FUNC ( hypre_s_copy ) +#define hypre_idamax HYPRE_MULTIPRECISION_FUNC ( hypre_idamax ) +#define hypre_blas_lsame HYPRE_MULTIPRECISION_FUNC ( hypre_blas_lsame ) +#define hypre_blas_xerbla HYPRE_MULTIPRECISION_FUNC ( hypre_blas_xerbla ) + +#endif diff --git a/src/blas/hypre_blas.h b/src/blas/hypre_blas.h index 61604c9d19..a230677d36 100644 --- a/src/blas/hypre_blas.h +++ b/src/blas/hypre_blas.h @@ -11,6 +11,11 @@ * This header renames the functions in BLAS to avoid conflicts *--------------------------------------------------------------------------*/ +#ifdef HYPRE_MIXED_PRECISION +#include "blas_mup_func.h" +#endif + + /* blas */ #define dasum_ hypre_dasum #define daxpy_ hypre_daxpy From 1493d93712e7a89ffc9fabcb3d7d65c1ad641733 Mon Sep 17 00:00:00 2001 From: Daniel Osei-Kuffuor Date: Thu, 9 Mar 2023 18:13:08 -0800 Subject: [PATCH 04/11] Update lapack directory to support multiprecision build. --- src/lapack/Makefile | 77 ++++++++++++++++++++++-- src/lapack/_hypre_lapack.h | 4 ++ src/lapack/hypre_lapack.h | 4 ++ src/lapack/lapack_func_header | 41 +++++++++++++ src/lapack/lapack_functions.saved | 78 ++++++++++++++++++++++++ src/lapack/lapack_mup_func.h | 98 +++++++++++++++++++++++++++++++ 6 files changed, 297 insertions(+), 5 deletions(-) create mode 100755 src/lapack/lapack_func_header create mode 100644 src/lapack/lapack_functions.saved create mode 100644 src/lapack/lapack_mup_func.h diff --git a/src/lapack/Makefile b/src/lapack/Makefile index 12f9c1113e..1b7450158f 100644 --- a/src/lapack/Makefile +++ b/src/lapack/Makefile @@ -90,22 +90,89 @@ OBJS = ${LAPACK_FILES:.c=.o} # Targets ################################################################# -all: ${OBJS} dlamch.o +all: lapack_OBJS dlamch_obj install: all cp -fR $(srcdir)/_hypre_lapack.h $(HYPRE_INC_INSTALL) -clean: +clean: clean_mup rm -rf *.o distclean: clean -################################################################# -# Rules -################################################################# +ifeq (${MP_BUILD}, 1) +clean_mup: + rm -rf ${MuP_OBJDIR} +else +clean_mup: +endif + +################################################################## +# Build Rules +################################################################## + +ifeq (${MP_BUILD}, 1) + +MuP_OBJDIR = MuP_obj.dir +MuP_OBJDIR_single = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_flt} +MuP_OBJDIR_double = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_dbl} +MuP_OBJDIR_longdouble = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_ldbl} +# +#MKDIR_P = mkdir -p +#mkmpdir: +# ${MKDIR_P} ${MuP_OBJDIR} +# +ADD_OBJS_single = ${addprefix ${MuP_OBJDIR_single}/, ${notdir ${OBJS}}} +${ADD_OBJS_single}: CFLAGS += -DMP_BUILD_SINGLE=1 +${MuP_OBJDIR_single}/%.o: %.c ${LAPACK_HEADERS} +# @echo "MuP_OBJDIR is ${ADD_OBJS_single} ... $%" + @echo "processing C object $@ ..." + @mkdir -p ${@D} + ${CC} ${CFLAGS} -c -o $@ $< +# +dlamch_single = ${MuP_OBJDIR_single}/dlamch.o +${dlamch_single}: dlamch.c ${LAPACK_HEADERS} + @mkdir -p ${@D} + ${CC} ${CFLAGS} -DMP_BUILD_SINGLE=1 -c -o $@ dlamch.c +# +ADD_OBJS_double = ${addprefix ${MuP_OBJDIR_double}/, ${notdir ${OBJS}}} +${ADD_OBJS_double}: CFLAGS += -DMP_BUILD_DOUBLE=1 +${MuP_OBJDIR_double}/%.o: %.c ${LAPACK_HEADERS} + @echo "processing C object $@ ..." + @mkdir -p ${@D} + ${CC} ${CFLAGS} -c -o $@ $< +# +dlamch_double = ${MuP_OBJDIR_double}/dlamch.o +${dlamch_double}: dlamch.c ${LAPACK_HEADERS} + @mkdir -p ${@D} + ${CC} ${CFLAGS} -DMP_BUILD_DOUBLE=1 -c -o $@ dlamch.c +# +ADD_OBJS_longdouble = ${addprefix ${MuP_OBJDIR_longdouble}/, ${notdir ${OBJS}}} +${ADD_OBJS_longdouble}: CFLAGS += -DMP_BUILD_LONGDOUBLE=1 +${MuP_OBJDIR_longdouble}/%.o: %.c ${LAPACK_HEADERS} + @echo "processing C object $@ ..." + @mkdir -p ${@D} + ${CC} ${CFLAGS} -c -o $@ $< +# +dlamch_longdouble = ${MuP_OBJDIR_longdouble}/dlamch.o +${dlamch_longdouble}: dlamch.c ${LAPACK_HEADERS} + @mkdir -p ${@D} + ${CC} ${CFLAGS} -DMP_BUILD_LONGDOUBLE=1 -c -o $@ dlamch.c +# +# multiprecision object files +lapack_OBJS: ${ADD_OBJS_single} ${ADD_OBJS_double} ${ADD_OBJS_longdouble} +# compile without optimization +dlamch_obj: ${dlamch_single} ${dlamch_double} ${dlamch_longdouble} + +else # compile without optimization dlamch.o : dlamch.c ${LAPACK_HEADERS} ${CC} ${CFLAGS} -c dlamch.c +dlamch_obj: dlamch.o + ${OBJS}: ${LAPACK_HEADERS} +lapack_OBJS: ${OBJS} +endif + diff --git a/src/lapack/_hypre_lapack.h b/src/lapack/_hypre_lapack.h index 12932a68e5..5bcc26e4a9 100644 --- a/src/lapack/_hypre_lapack.h +++ b/src/lapack/_hypre_lapack.h @@ -17,6 +17,10 @@ #include "_hypre_utilities.h" #include "fortran.h" +#ifdef HYPRE_MIXED_PRECISION +#include "lapack_mup_func.h" +#endif + #ifdef __cplusplus extern "C" { #endif diff --git a/src/lapack/hypre_lapack.h b/src/lapack/hypre_lapack.h index 0fec7348dd..5467ef1df3 100644 --- a/src/lapack/hypre_lapack.h +++ b/src/lapack/hypre_lapack.h @@ -11,6 +11,10 @@ * This header renames the functions in LAPACK to avoid conflicts *--------------------------------------------------------------------------*/ +#ifdef HYPRE_MIXED_PRECISION +#include "lapack_mup_func.h" +#endif + /* blas */ #define dasum_ hypre_dasum #define daxpy_ hypre_daxpy diff --git a/src/lapack/lapack_func_header b/src/lapack/lapack_func_header new file mode 100755 index 0000000000..60495ed188 --- /dev/null +++ b/src/lapack/lapack_func_header @@ -0,0 +1,41 @@ +#!/bin/sh +# Copyright (c) 1998 Lawrence Livermore National Security, LLC and other +# HYPRE Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +# generate header file for transforming multiprecision function names + +MUP_HEADER=lapack_mup_func.h + +cat > $MUP_HEADER <<@ +/*** DO NOT EDIT THIS FILE DIRECTLY (use 'lapack_func_header' to generate) ***/ +@ +# Generate copyright header +../../../hypre/src/scripts/writeHeader.sh $MUP_HEADER + +cat >> $MUP_HEADER <<@ + +/****************************************************************************** + * Header file for transforming multiprecision functions names + *****************************************************************************/ + +#ifndef LAPACK_MUP_FUNC_HEADER +#define LAPACK_MUP_FUNC_HEADER + +#include "HYPRE_utilities.h" + +@ + +FIN=lapack_functions.saved +cat>> $MUP_HEADER <<@ +$( +cat "$FIN" | while read -r func_name +do +# print dressed-up function +echo "#define $func_name HYPRE_MULTIPRECISION_FUNC ( $func_name )" +done +) + +#endif +@ diff --git a/src/lapack/lapack_functions.saved b/src/lapack/lapack_functions.saved new file mode 100644 index 0000000000..26cda7539e --- /dev/null +++ b/src/lapack/lapack_functions.saved @@ -0,0 +1,78 @@ + hypre_dbdsqr + hypre_dgebd2 + hypre_dgebrd + hypre_dgelq2 + hypre_dgelqf + hypre_dgels + hypre_dgeqr2 + hypre_dgeqrf + hypre_dgesvd + hypre_dgetf2 + hypre_dgetrf + hypre_dgetri + hypre_dgetrs + hypre_dlabad + hypre_dlabrd + hypre_dlacpy + hypre_dlae2 + hypre_dlaev2 + hypre_dlamc1 + hypre_dlamc2 + hypre_dlamc3 + hypre_dlamc4 + hypre_dlamc5 + hypre_dlamch + hypre_dlange + hypre_dlanst + hypre_dlansy + hypre_dlapy2 + hypre_dlarf + hypre_dlarfb + hypre_dlarfg + hypre_dlarft + hypre_dlartg + hypre_dlas2 + hypre_dlascl + hypre_dlaset + hypre_dlasq1 + hypre_dlasq2 + hypre_dlasq3 + hypre_dlasq4 + hypre_dlasq5 + hypre_dlasq6 + hypre_dlasr + hypre_dlasrt + hypre_dlassq + hypre_dlasv2 + hypre_dlaswp + hypre_dlatrd + hypre_dorg2l + hypre_dorg2r + hypre_dorgbr + hypre_dorgl2 + hypre_dorglq + hypre_dorgql + hypre_dorgqr + hypre_dorgtr + hypre_dorm2r + hypre_dormbr + hypre_dorml2 + hypre_dormlq + hypre_dormqr + hypre_dpotf2 + hypre_dpotrf + hypre_dpotrs + hypre_dsteqr + hypre_dsterf + hypre_dsyev + hypre_dsygs2 + hypre_dsygst + hypre_dsygv + hypre_dsytd2 + hypre_dsytrd + hypre_dtrti2 + hypre_dtrtri + hypre_ieeeck + hypre_ilaenv + hypre_lapack_lsame + hypre_lapack_xerbla diff --git a/src/lapack/lapack_mup_func.h b/src/lapack/lapack_mup_func.h new file mode 100644 index 0000000000..469c4e1031 --- /dev/null +++ b/src/lapack/lapack_mup_func.h @@ -0,0 +1,98 @@ +/*** DO NOT EDIT THIS FILE DIRECTLY (use 'lapack_func_header' to generate) ***/ + +/****************************************************************************** + * Copyright (c) 1998 Lawrence Livermore National Security, LLC and other + * HYPRE Project Developers. See the top-level COPYRIGHT file for details. + * + * SPDX-License-Identifier: (Apache-2.0 OR MIT) + ******************************************************************************/ + +/****************************************************************************** + * Header file for transforming multiprecision functions names + *****************************************************************************/ + +#ifndef LAPACK_MUP_FUNC_HEADER +#define LAPACK_MUP_FUNC_HEADER + +#include "HYPRE_utilities.h" + +#define hypre_dbdsqr HYPRE_MULTIPRECISION_FUNC ( hypre_dbdsqr ) +#define hypre_dgebd2 HYPRE_MULTIPRECISION_FUNC ( hypre_dgebd2 ) +#define hypre_dgebrd HYPRE_MULTIPRECISION_FUNC ( hypre_dgebrd ) +#define hypre_dgelq2 HYPRE_MULTIPRECISION_FUNC ( hypre_dgelq2 ) +#define hypre_dgelqf HYPRE_MULTIPRECISION_FUNC ( hypre_dgelqf ) +#define hypre_dgels HYPRE_MULTIPRECISION_FUNC ( hypre_dgels ) +#define hypre_dgeqr2 HYPRE_MULTIPRECISION_FUNC ( hypre_dgeqr2 ) +#define hypre_dgeqrf HYPRE_MULTIPRECISION_FUNC ( hypre_dgeqrf ) +#define hypre_dgesvd HYPRE_MULTIPRECISION_FUNC ( hypre_dgesvd ) +#define hypre_dgetf2 HYPRE_MULTIPRECISION_FUNC ( hypre_dgetf2 ) +#define hypre_dgetrf HYPRE_MULTIPRECISION_FUNC ( hypre_dgetrf ) +#define hypre_dgetri HYPRE_MULTIPRECISION_FUNC ( hypre_dgetri ) +#define hypre_dgetrs HYPRE_MULTIPRECISION_FUNC ( hypre_dgetrs ) +#define hypre_dlabad HYPRE_MULTIPRECISION_FUNC ( hypre_dlabad ) +#define hypre_dlabrd HYPRE_MULTIPRECISION_FUNC ( hypre_dlabrd ) +#define hypre_dlacpy HYPRE_MULTIPRECISION_FUNC ( hypre_dlacpy ) +#define hypre_dlae2 HYPRE_MULTIPRECISION_FUNC ( hypre_dlae2 ) +#define hypre_dlaev2 HYPRE_MULTIPRECISION_FUNC ( hypre_dlaev2 ) +#define hypre_dlamc1 HYPRE_MULTIPRECISION_FUNC ( hypre_dlamc1 ) +#define hypre_dlamc2 HYPRE_MULTIPRECISION_FUNC ( hypre_dlamc2 ) +#define hypre_dlamc3 HYPRE_MULTIPRECISION_FUNC ( hypre_dlamc3 ) +#define hypre_dlamc4 HYPRE_MULTIPRECISION_FUNC ( hypre_dlamc4 ) +#define hypre_dlamc5 HYPRE_MULTIPRECISION_FUNC ( hypre_dlamc5 ) +#define hypre_dlamch HYPRE_MULTIPRECISION_FUNC ( hypre_dlamch ) +#define hypre_dlange HYPRE_MULTIPRECISION_FUNC ( hypre_dlange ) +#define hypre_dlanst HYPRE_MULTIPRECISION_FUNC ( hypre_dlanst ) +#define hypre_dlansy HYPRE_MULTIPRECISION_FUNC ( hypre_dlansy ) +#define hypre_dlapy2 HYPRE_MULTIPRECISION_FUNC ( hypre_dlapy2 ) +#define hypre_dlarf HYPRE_MULTIPRECISION_FUNC ( hypre_dlarf ) +#define hypre_dlarfb HYPRE_MULTIPRECISION_FUNC ( hypre_dlarfb ) +#define hypre_dlarfg HYPRE_MULTIPRECISION_FUNC ( hypre_dlarfg ) +#define hypre_dlarft HYPRE_MULTIPRECISION_FUNC ( hypre_dlarft ) +#define hypre_dlartg HYPRE_MULTIPRECISION_FUNC ( hypre_dlartg ) +#define hypre_dlas2 HYPRE_MULTIPRECISION_FUNC ( hypre_dlas2 ) +#define hypre_dlascl HYPRE_MULTIPRECISION_FUNC ( hypre_dlascl ) +#define hypre_dlaset HYPRE_MULTIPRECISION_FUNC ( hypre_dlaset ) +#define hypre_dlasq1 HYPRE_MULTIPRECISION_FUNC ( hypre_dlasq1 ) +#define hypre_dlasq2 HYPRE_MULTIPRECISION_FUNC ( hypre_dlasq2 ) +#define hypre_dlasq3 HYPRE_MULTIPRECISION_FUNC ( hypre_dlasq3 ) +#define hypre_dlasq4 HYPRE_MULTIPRECISION_FUNC ( hypre_dlasq4 ) +#define hypre_dlasq5 HYPRE_MULTIPRECISION_FUNC ( hypre_dlasq5 ) +#define hypre_dlasq6 HYPRE_MULTIPRECISION_FUNC ( hypre_dlasq6 ) +#define hypre_dlasr HYPRE_MULTIPRECISION_FUNC ( hypre_dlasr ) +#define hypre_dlasrt HYPRE_MULTIPRECISION_FUNC ( hypre_dlasrt ) +#define hypre_dlassq HYPRE_MULTIPRECISION_FUNC ( hypre_dlassq ) +#define hypre_dlasv2 HYPRE_MULTIPRECISION_FUNC ( hypre_dlasv2 ) +#define hypre_dlaswp HYPRE_MULTIPRECISION_FUNC ( hypre_dlaswp ) +#define hypre_dlatrd HYPRE_MULTIPRECISION_FUNC ( hypre_dlatrd ) +#define hypre_dorg2l HYPRE_MULTIPRECISION_FUNC ( hypre_dorg2l ) +#define hypre_dorg2r HYPRE_MULTIPRECISION_FUNC ( hypre_dorg2r ) +#define hypre_dorgbr HYPRE_MULTIPRECISION_FUNC ( hypre_dorgbr ) +#define hypre_dorgl2 HYPRE_MULTIPRECISION_FUNC ( hypre_dorgl2 ) +#define hypre_dorglq HYPRE_MULTIPRECISION_FUNC ( hypre_dorglq ) +#define hypre_dorgql HYPRE_MULTIPRECISION_FUNC ( hypre_dorgql ) +#define hypre_dorgqr HYPRE_MULTIPRECISION_FUNC ( hypre_dorgqr ) +#define hypre_dorgtr HYPRE_MULTIPRECISION_FUNC ( hypre_dorgtr ) +#define hypre_dorm2r HYPRE_MULTIPRECISION_FUNC ( hypre_dorm2r ) +#define hypre_dormbr HYPRE_MULTIPRECISION_FUNC ( hypre_dormbr ) +#define hypre_dorml2 HYPRE_MULTIPRECISION_FUNC ( hypre_dorml2 ) +#define hypre_dormlq HYPRE_MULTIPRECISION_FUNC ( hypre_dormlq ) +#define hypre_dormqr HYPRE_MULTIPRECISION_FUNC ( hypre_dormqr ) +#define hypre_dpotf2 HYPRE_MULTIPRECISION_FUNC ( hypre_dpotf2 ) +#define hypre_dpotrf HYPRE_MULTIPRECISION_FUNC ( hypre_dpotrf ) +#define hypre_dpotrs HYPRE_MULTIPRECISION_FUNC ( hypre_dpotrs ) +#define hypre_dsteqr HYPRE_MULTIPRECISION_FUNC ( hypre_dsteqr ) +#define hypre_dsterf HYPRE_MULTIPRECISION_FUNC ( hypre_dsterf ) +#define hypre_dsyev HYPRE_MULTIPRECISION_FUNC ( hypre_dsyev ) +#define hypre_dsygs2 HYPRE_MULTIPRECISION_FUNC ( hypre_dsygs2 ) +#define hypre_dsygst HYPRE_MULTIPRECISION_FUNC ( hypre_dsygst ) +#define hypre_dsygv HYPRE_MULTIPRECISION_FUNC ( hypre_dsygv ) +#define hypre_dsytd2 HYPRE_MULTIPRECISION_FUNC ( hypre_dsytd2 ) +#define hypre_dsytrd HYPRE_MULTIPRECISION_FUNC ( hypre_dsytrd ) +#define hypre_dtrti2 HYPRE_MULTIPRECISION_FUNC ( hypre_dtrti2 ) +#define hypre_dtrtri HYPRE_MULTIPRECISION_FUNC ( hypre_dtrtri ) +#define hypre_ieeeck HYPRE_MULTIPRECISION_FUNC ( hypre_ieeeck ) +#define hypre_ilaenv HYPRE_MULTIPRECISION_FUNC ( hypre_ilaenv ) +#define hypre_lapack_lsame HYPRE_MULTIPRECISION_FUNC ( hypre_lapack_lsame ) +#define hypre_lapack_xerbla HYPRE_MULTIPRECISION_FUNC ( hypre_lapack_xerbla ) + +#endif From 047c2b32f40440f982e148ae3f0bcef70faafcfe Mon Sep 17 00:00:00 2001 From: Daniel Osei-Kuffuor Date: Thu, 9 Mar 2023 18:24:15 -0800 Subject: [PATCH 05/11] Updated utilities directory to support multiprecision build (on CPU). --- src/utilities/Makefile | 81 +++++- src/utilities/_hypre_utilities.h | 32 +-- src/utilities/_hypre_utilities.hpp | 3 + src/utilities/handle.c | 2 +- src/utilities/headers | 7 + src/utilities/mpistubs.c | 12 +- src/utilities/mpistubs.h | 4 +- src/utilities/protos.h | 2 +- src/utilities/timer.c | 14 +- src/utilities/timing.c | 32 +-- src/utilities/timing.h | 22 +- src/utilities/utilities_func_header | 81 ++++++ src/utilities/utilities_functions.saved | 275 ++++++++++++++++++++ src/utilities/utilities_mup_func.h | 321 ++++++++++++++++++++++++ 14 files changed, 829 insertions(+), 59 deletions(-) create mode 100755 src/utilities/utilities_func_header create mode 100644 src/utilities/utilities_functions.saved create mode 100644 src/utilities/utilities_mup_func.h diff --git a/src/utilities/Makefile b/src/utilities/Makefile index a1bf632cfa..d95d2037ae 100644 --- a/src/utilities/Makefile +++ b/src/utilities/Makefile @@ -98,16 +98,94 @@ install: libHYPRE_utilities${HYPRE_LIB_SUFFIX} cp -fR $(srcdir)/fortran*.h $(HYPRE_INC_INSTALL) # cp -fR libHYPRE* $(HYPRE_LIB_INSTALL) -clean: +clean: clean_mup rm -f *.o *.obj libHYPRE* rm -rf pchdir tca.map *inslog* distclean: clean +ifeq (${MP_BUILD}, 1) +clean_mup: + rm -rf ${MuP_OBJDIR} +else +clean_mup: +endif + ################################################################## # Rules ################################################################## +#libHYPRE_utilities.a: ${OBJS} +# @echo "Building $@ ... " +# ${AR} $@ ${OBJS} +# ${RANLIB} $@ + +#libHYPRE_utilities.so libHYPRE_utilities.dylib: ${OBJS} +# @echo "Building $@ ... " +# ${BUILD_CC_SHARED} -o ${SONAME} ${OBJS} ${SHARED_SET_SONAME}${SONAME} +# ln -s -f ${SONAME} $@ + +#${OBJS}: ${HEADERS} + +################################################################## +# Multiprecision build Rules +################################################################## + +ifeq (${MP_BUILD}, 1) + +MuP_OBJDIR = MuP_obj.dir +MuP_OBJDIR_single = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_flt} +MuP_OBJDIR_double = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_dbl} +MuP_OBJDIR_longdouble = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_ldbl} +# +MKDIR_P = mkdir -p +mkmpdir: + ${MKDIR_P} ${MuP_OBJDIR} +# +ADD_OBJS_single = ${addprefix ${MuP_OBJDIR_single}/, ${notdir ${OBJS}}} +${ADD_OBJS_single}: CFLAGS += -DMP_BUILD_SINGLE=1 +${MuP_OBJDIR_single}/%.o ${MuP_OBJDIR_single}/%.obj: %.c ${HEADERS} + @echo "processing C object $@ ..." + @mkdir -p ${@D} + ${CC} ${CFLAGS} -c -o $@ $< +# +ADD_OBJS_double = ${addprefix ${MuP_OBJDIR_double}/, ${notdir ${OBJS}}} +${ADD_OBJS_double}: CFLAGS += -DMP_BUILD_DOUBLE=1 +${MuP_OBJDIR_double}/%.o ${MuP_OBJDIR_double}/%.obj: %.c ${HEADERS} + @echo "processing C object $@ ..." + @mkdir -p ${@D} + ${CC} ${CFLAGS} -c -o $@ $< +# +ADD_OBJS_longdouble = ${addprefix ${MuP_OBJDIR_longdouble}/, ${notdir ${OBJS}}} +${ADD_OBJS_longdouble}: CFLAGS += -DMP_BUILD_LONGDOUBLE=1 +${MuP_OBJDIR_longdouble}/%.o ${MuP_OBJDIR_longdouble}/%.obj: %.c ${HEADERS} + @echo "processing C object $@ ..." + @mkdir -p ${@D} + ${CC} ${CFLAGS} -c -o $@ $< +# +#.SECONDEXPANSION: +#MuPlibs = libHYPRE_utilities_single.a libHYPRE_utilities_double.a libHYPRE_utilities_longdouble.a +#${MuPlibs}: libHYPRE_utilities_%.a: $${ADD_OBJS_%} +# @echo "Building $@ ... " +# ar -rcu $@ $^ +# ${RANLIB} $@ + +# multiprecision object libraries +#libHYPRE_utilities.a: ${MuPlibs} + +UTILITIESLIBS = ${ADD_OBJS_single} ${ADD_OBJS_double} ${ADD_OBJS_longdouble} + +libHYPRE_utilities.a: ${UTILITIESLIBS} + @echo "Building $@ ..." + rm -f $@ + ar -rcu $@ ${UTILITIESLIBS} + ${RANLIB} $@ + +libHYPRE_utilities.so libHYPRE_utilities.dylib: ${UTILITIESLIBS} + @echo "Building $@ ... " + ${BUILD_CC_SHARED} -o ${SONAME} ${UTILITIESLIBS} ${SHARED_SET_SONAME}${SONAME} + ln -s -f ${SONAME} $@ +else libHYPRE_utilities.a: ${OBJS} @echo "Building $@ ... " ${AR} $@ ${OBJS} @@ -119,3 +197,4 @@ libHYPRE_utilities.so libHYPRE_utilities.dylib: ${OBJS} ln -s -f ${SONAME} $@ ${OBJS}: ${HEADERS} +endif diff --git a/src/utilities/_hypre_utilities.h b/src/utilities/_hypre_utilities.h index 8db8ac2daa..c60fb7ccc5 100644 --- a/src/utilities/_hypre_utilities.h +++ b/src/utilities/_hypre_utilities.h @@ -10,6 +10,10 @@ #include #endif +#ifdef HYPRE_MIXED_PRECISION +#include "utilities_mup_func.h" +#endif + #ifdef __cplusplus extern "C" { #endif @@ -506,8 +510,8 @@ typedef MPI_User_function hypre_MPI_User_function; HYPRE_Int hypre_MPI_Init( hypre_int *argc, char ***argv ); HYPRE_Int hypre_MPI_Finalize( void ); HYPRE_Int hypre_MPI_Abort( hypre_MPI_Comm comm, HYPRE_Int errorcode ); -HYPRE_Real hypre_MPI_Wtime( void ); -HYPRE_Real hypre_MPI_Wtick( void ); +hypre_double hypre_MPI_Wtime( void ); +hypre_double hypre_MPI_Wtick( void ); HYPRE_Int hypre_MPI_Barrier( hypre_MPI_Comm comm ); HYPRE_Int hypre_MPI_Comm_create( hypre_MPI_Comm comm, hypre_MPI_Group group, hypre_MPI_Comm *newcomm ); @@ -1189,10 +1193,10 @@ extern "C" { *--------------------------------------------------------------------------*/ /* timer.c */ -HYPRE_Real time_getWallclockSeconds( void ); -HYPRE_Real time_getCPUSeconds( void ); -HYPRE_Real time_get_wallclock_seconds_( void ); -HYPRE_Real time_get_cpu_seconds_( void ); +hypre_double time_getWallclockSeconds( void ); +hypre_double time_getCPUSeconds( void ); +hypre_double time_get_wallclock_seconds_( void ); +hypre_double time_get_cpu_seconds_( void ); /*-------------------------------------------------------------------------- * With timing off @@ -1221,9 +1225,9 @@ HYPRE_Real time_get_cpu_seconds_( void ); typedef struct { - HYPRE_Real *wall_time; - HYPRE_Real *cpu_time; - HYPRE_Real *flops; + hypre_double *wall_time; + hypre_double *cpu_time; + hypre_double *flops; char **name; HYPRE_Int *state; /* boolean flag to allow for recursive timing */ HYPRE_Int *num_regs; /* count of how many times a name is registered */ @@ -1231,9 +1235,9 @@ typedef struct HYPRE_Int num_names; HYPRE_Int size; - HYPRE_Real wall_count; - HYPRE_Real CPU_count; - HYPRE_Real FLOP_count; + hypre_double wall_count; + hypre_double CPU_count; + hypre_double FLOP_count; } hypre_TimingType; @@ -1270,7 +1274,7 @@ HYPRE_Int hypre_BeginTiming( HYPRE_Int time_index ); HYPRE_Int hypre_EndTiming( HYPRE_Int time_index ); HYPRE_Int hypre_ClearTiming( void ); HYPRE_Int hypre_PrintTiming( const char *heading, MPI_Comm comm ); -HYPRE_Int hypre_GetTiming( const char *heading, HYPRE_Real *wall_time_ptr, MPI_Comm comm ); +HYPRE_Int hypre_GetTiming( const char *heading, hypre_double *wall_time_ptr, MPI_Comm comm ); #endif @@ -2039,7 +2043,7 @@ HYPRE_Int hypre_SetSpGemmAlgorithm( HYPRE_Int value ); HYPRE_Int hypre_SetSpGemmBinned( HYPRE_Int value ); HYPRE_Int hypre_SetSpGemmRownnzEstimateMethod( HYPRE_Int value ); HYPRE_Int hypre_SetSpGemmRownnzEstimateNSamples( HYPRE_Int value ); -HYPRE_Int hypre_SetSpGemmRownnzEstimateMultFactor( HYPRE_Real value ); +HYPRE_Int hypre_SetSpGemmRownnzEstimateMultFactor( hypre_float value ); HYPRE_Int hypre_SetSpGemmHashType( char value ); HYPRE_Int hypre_SetUseGpuRand( HYPRE_Int use_gpurand ); HYPRE_Int hypre_SetGaussSeidelMethod( HYPRE_Int gs_method ); diff --git a/src/utilities/_hypre_utilities.hpp b/src/utilities/_hypre_utilities.hpp index ccbca95fcb..0b531e5ddc 100644 --- a/src/utilities/_hypre_utilities.hpp +++ b/src/utilities/_hypre_utilities.hpp @@ -4,6 +4,9 @@ #ifndef hypre_UTILITIES_HPP #define hypre_UTILITIES_HPP +#ifdef HYPRE_MIXED_PRECISION +#include "utilities_mup_func.h" +#endif #ifdef __cplusplus extern "C++" { diff --git a/src/utilities/handle.c b/src/utilities/handle.c index 7e69666cb5..8f2a0a55f2 100644 --- a/src/utilities/handle.c +++ b/src/utilities/handle.c @@ -95,7 +95,7 @@ hypre_SetSpGemmRownnzEstimateNSamples( HYPRE_Int value ) } HYPRE_Int -hypre_SetSpGemmRownnzEstimateMultFactor( HYPRE_Real value ) +hypre_SetSpGemmRownnzEstimateMultFactor( hypre_float value ) { #if defined(HYPRE_USING_GPU) if (value > 0.0) diff --git a/src/utilities/headers b/src/utilities/headers index 6ac3fa5343..45f37a74b9 100755 --- a/src/utilities/headers +++ b/src/utilities/headers @@ -23,6 +23,10 @@ cat > $INTERNAL_HEADER <<@ #include #endif +#ifdef HYPRE_MIXED_PRECISION +#include "utilities_mup_func.h" +#endif + #ifdef __cplusplus extern "C" { #endif @@ -81,6 +85,9 @@ cat > $INTERNAL_HEADER <<@ #ifndef hypre_UTILITIES_HPP #define hypre_UTILITIES_HPP +#ifdef HYPRE_MIXED_PRECISION +#include "utilities_mup_func.h" +#endif #ifdef __cplusplus extern "C++" { diff --git a/src/utilities/mpistubs.c b/src/utilities/mpistubs.c index 007bd438d2..0e85725a75 100644 --- a/src/utilities/mpistubs.c +++ b/src/utilities/mpistubs.c @@ -50,13 +50,13 @@ hypre_MPI_Abort( hypre_MPI_Comm comm, return (0); } -HYPRE_Real +hypre_double hypre_MPI_Wtime( void ) { return (0.0); } -HYPRE_Real +hypre_double hypre_MPI_Wtick( void ) { return (0.0); @@ -779,16 +779,16 @@ hypre_MPI_Abort( hypre_MPI_Comm comm, return (HYPRE_Int) MPI_Abort(comm, (hypre_int)errorcode); } -HYPRE_Real +hypre_double hypre_MPI_Wtime( void ) { - return (HYPRE_Real)MPI_Wtime(); + return MPI_Wtime(); } -HYPRE_Real +hypre_double hypre_MPI_Wtick( void ) { - return (HYPRE_Real)MPI_Wtick(); + return MPI_Wtick(); } HYPRE_Int diff --git a/src/utilities/mpistubs.h b/src/utilities/mpistubs.h index 34c9b71006..57584437db 100644 --- a/src/utilities/mpistubs.h +++ b/src/utilities/mpistubs.h @@ -252,8 +252,8 @@ typedef MPI_User_function hypre_MPI_User_function; HYPRE_Int hypre_MPI_Init( hypre_int *argc, char ***argv ); HYPRE_Int hypre_MPI_Finalize( void ); HYPRE_Int hypre_MPI_Abort( hypre_MPI_Comm comm, HYPRE_Int errorcode ); -HYPRE_Real hypre_MPI_Wtime( void ); -HYPRE_Real hypre_MPI_Wtick( void ); +hypre_double hypre_MPI_Wtime( void ); +hypre_double hypre_MPI_Wtick( void ); HYPRE_Int hypre_MPI_Barrier( hypre_MPI_Comm comm ); HYPRE_Int hypre_MPI_Comm_create( hypre_MPI_Comm comm, hypre_MPI_Group group, hypre_MPI_Comm *newcomm ); diff --git a/src/utilities/protos.h b/src/utilities/protos.h index 348e4eecab..3808b1b53b 100644 --- a/src/utilities/protos.h +++ b/src/utilities/protos.h @@ -369,7 +369,7 @@ HYPRE_Int hypre_SetSpGemmAlgorithm( HYPRE_Int value ); HYPRE_Int hypre_SetSpGemmBinned( HYPRE_Int value ); HYPRE_Int hypre_SetSpGemmRownnzEstimateMethod( HYPRE_Int value ); HYPRE_Int hypre_SetSpGemmRownnzEstimateNSamples( HYPRE_Int value ); -HYPRE_Int hypre_SetSpGemmRownnzEstimateMultFactor( HYPRE_Real value ); +HYPRE_Int hypre_SetSpGemmRownnzEstimateMultFactor( hypre_float value ); HYPRE_Int hypre_SetSpGemmHashType( char value ); HYPRE_Int hypre_SetUseGpuRand( HYPRE_Int use_gpurand ); HYPRE_Int hypre_SetGaussSeidelMethod( HYPRE_Int gs_method ); diff --git a/src/utilities/timer.c b/src/utilities/timer.c index 3bdfda5cf4..c34a6498e5 100644 --- a/src/utilities/timer.c +++ b/src/utilities/timer.c @@ -21,38 +21,38 @@ #include #endif -HYPRE_Real time_getWallclockSeconds(void) +hypre_double time_getWallclockSeconds(void) { #ifndef HYPRE_SEQUENTIAL return (hypre_MPI_Wtime()); #else #ifdef WIN32 clock_t cl = clock(); - return (((HYPRE_Real) cl) / ((HYPRE_Real) CLOCKS_PER_SEC)); + return (((hypre_double) cl) / ((hypre_double) CLOCKS_PER_SEC)); #else struct tms usage; hypre_longint wallclock = times(&usage); - return (((HYPRE_Real) wallclock) / ((HYPRE_Real) sysconf(_SC_CLK_TCK))); + return (((hypre_double) wallclock) / ((hypre_double) sysconf(_SC_CLK_TCK))); #endif #endif } -HYPRE_Real time_getCPUSeconds(void) +hypre_double time_getCPUSeconds(void) { #ifndef TIMER_NO_SYS clock_t cpuclock = clock(); - return (((HYPRE_Real) (cpuclock)) / ((HYPRE_Real) CLOCKS_PER_SEC)); + return (((hypre_double) (cpuclock)) / ((hypre_double) CLOCKS_PER_SEC)); #else return (0.0); #endif } -HYPRE_Real time_get_wallclock_seconds_(void) +hypre_double time_get_wallclock_seconds_(void) { return (time_getWallclockSeconds()); } -HYPRE_Real time_get_cpu_seconds_(void) +hypre_double time_get_cpu_seconds_(void) { return (time_getCPUSeconds()); } diff --git a/src/utilities/timing.c b/src/utilities/timing.c index af64058c0a..3eb8292b3e 100644 --- a/src/utilities/timing.c +++ b/src/utilities/timing.c @@ -39,9 +39,9 @@ hypre_InitializeTiming( const char *name ) { HYPRE_Int time_index; - HYPRE_Real *old_wall_time; - HYPRE_Real *old_cpu_time; - HYPRE_Real *old_flops; + hypre_double *old_wall_time; + hypre_double *old_cpu_time; + hypre_double *old_flops; char **old_name; HYPRE_Int *old_state; HYPRE_Int *old_num_regs; @@ -105,11 +105,11 @@ hypre_InitializeTiming( const char *name ) old_num_regs = (hypre_global_timing_ref(threadid, num_regs)); (hypre_global_timing_ref(threadid, wall_time)) = - hypre_CTAlloc(HYPRE_Real, (time_index + 1), HYPRE_MEMORY_HOST); + hypre_CTAlloc(hypre_double, (time_index + 1), HYPRE_MEMORY_HOST); (hypre_global_timing_ref(threadid, cpu_time)) = - hypre_CTAlloc(HYPRE_Real, (time_index + 1), HYPRE_MEMORY_HOST); + hypre_CTAlloc(hypre_double, (time_index + 1), HYPRE_MEMORY_HOST); (hypre_global_timing_ref(threadid, flops)) = - hypre_CTAlloc(HYPRE_Real, (time_index + 1), HYPRE_MEMORY_HOST); + hypre_CTAlloc(hypre_double, (time_index + 1), HYPRE_MEMORY_HOST); (hypre_global_timing_ref(threadid, name)) = hypre_CTAlloc(char *, (time_index + 1), HYPRE_MEMORY_HOST); (hypre_global_timing_ref(threadid, state)) = @@ -228,7 +228,7 @@ hypre_IncFLOPCount( HYPRE_BigInt inc ) return ierr; } - hypre_TimingFLOPCount += (HYPRE_Real) (inc); + hypre_TimingFLOPCount += (hypre_double) (inc); return ierr; } @@ -330,12 +330,12 @@ hypre_PrintTiming( const char *heading, { HYPRE_Int ierr = 0; - HYPRE_Real local_wall_time; - HYPRE_Real local_cpu_time; - HYPRE_Real wall_time; - HYPRE_Real cpu_time; - HYPRE_Real wall_mflops; - HYPRE_Real cpu_mflops; + hypre_double local_wall_time; + hypre_double local_cpu_time; + hypre_double wall_time; + hypre_double cpu_time; + hypre_double wall_mflops; + hypre_double cpu_mflops; HYPRE_Int i; HYPRE_Int myrank; @@ -406,13 +406,13 @@ hypre_PrintTiming( const char *heading, HYPRE_Int hypre_GetTiming( const char *heading, - HYPRE_Real *wall_time_ptr, + hypre_double *wall_time_ptr, MPI_Comm comm ) { HYPRE_Int ierr = 0; - HYPRE_Real local_wall_time; - HYPRE_Real wall_time; + hypre_double local_wall_time; + hypre_double wall_time; HYPRE_Int i; HYPRE_Int myrank; diff --git a/src/utilities/timing.h b/src/utilities/timing.h index aeb049d0ac..cd00c5e3d0 100644 --- a/src/utilities/timing.h +++ b/src/utilities/timing.h @@ -27,10 +27,10 @@ extern "C" { *--------------------------------------------------------------------------*/ /* timer.c */ -HYPRE_Real time_getWallclockSeconds( void ); -HYPRE_Real time_getCPUSeconds( void ); -HYPRE_Real time_get_wallclock_seconds_( void ); -HYPRE_Real time_get_cpu_seconds_( void ); +hypre_double time_getWallclockSeconds( void ); +hypre_double time_getCPUSeconds( void ); +hypre_double time_get_wallclock_seconds_( void ); +hypre_double time_get_cpu_seconds_( void ); /*-------------------------------------------------------------------------- * With timing off @@ -59,9 +59,9 @@ HYPRE_Real time_get_cpu_seconds_( void ); typedef struct { - HYPRE_Real *wall_time; - HYPRE_Real *cpu_time; - HYPRE_Real *flops; + hypre_double *wall_time; + hypre_double *cpu_time; + hypre_double *flops; char **name; HYPRE_Int *state; /* boolean flag to allow for recursive timing */ HYPRE_Int *num_regs; /* count of how many times a name is registered */ @@ -69,9 +69,9 @@ typedef struct HYPRE_Int num_names; HYPRE_Int size; - HYPRE_Real wall_count; - HYPRE_Real CPU_count; - HYPRE_Real FLOP_count; + hypre_double wall_count; + hypre_double CPU_count; + hypre_double FLOP_count; } hypre_TimingType; @@ -108,7 +108,7 @@ HYPRE_Int hypre_BeginTiming( HYPRE_Int time_index ); HYPRE_Int hypre_EndTiming( HYPRE_Int time_index ); HYPRE_Int hypre_ClearTiming( void ); HYPRE_Int hypre_PrintTiming( const char *heading, MPI_Comm comm ); -HYPRE_Int hypre_GetTiming( const char *heading, HYPRE_Real *wall_time_ptr, MPI_Comm comm ); +HYPRE_Int hypre_GetTiming( const char *heading, hypre_double *wall_time_ptr, MPI_Comm comm ); #endif diff --git a/src/utilities/utilities_func_header b/src/utilities/utilities_func_header new file mode 100755 index 0000000000..a53cb2bd53 --- /dev/null +++ b/src/utilities/utilities_func_header @@ -0,0 +1,81 @@ +#!/bin/sh +# Copyright (c) 1998 Lawrence Livermore National Security, LLC and other +# HYPRE Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +# generate header file for transforming multiprecision function names + +MUP_HEADER=utilities_mup_func.h + +cat > $MUP_HEADER <<@ +/*** DO NOT EDIT THIS FILE DIRECTLY (use 'utilities_func_header' to generate) ***/ +@ +# Generate copyright header +../../../hypre/src/scripts/writeHeader.sh $MUP_HEADER + +cat >> $MUP_HEADER <<@ + +/****************************************************************************** + * Header file for transforming multiprecision functions names + *****************************************************************************/ + +#ifndef UTILITIES_MUP_FUNC_HEADER +#define UTILITIES_MUP_FUNC_HEADER + +#include "HYPRE_utilities.h" + +@ + +# Special functions guarded by preprocessor directives +# timing.h +cat <ftiming +hypre_BeginTiming +hypre_ClearTiming +hypre_EndTiming +hypre_FinalizeTiming +hypre_GetTiming +hypre_IncFLOPCount +hypre_InitializeTiming +hypre_PrintTiming +EOF +# complex +cat <fcomplex +hypre_cabs +hypre_cimag +hypre_conj +hypre_creal +hypre_csqrt +EOF + +FIN=utilities_functions.saved +cat>> $MUP_HEADER <<@ +$( +cat "$FIN" | while read -r func_name +do +# dressed-up function +p_string="$(echo "#define $func_name HYPRE_MULTIPRECISION_FUNC ( $func_name )")" + +# define pre-processor directives +# timing.h +p_timing_string="#if defined (HYPRE_TIMING) +#define $func_name HYPRE_MULTIPRECISION_FUNC ( $func_name ) +#endif" + +# complex.h +p_cmplx_string="#if defined (HYPRE_COMPLEX) +#define $func_name HYPRE_MULTIPRECISION_FUNC ( $func_name ) +#endif" + +# print dressed-up function with guards if needed +awk -v pat="$func_name" -v pat1="$p_timing_string" -v pat2="$p_cmplx_string" -v pat_def="$p_string" \ +'fname != FILENAME { fname = FILENAME; idx++ } \ +$0~pat && idx == 1 {print pat1; found=1; exit}; \ +$0~pat && idx == 2 {print pat2; found=1; exit}; \ +END{ if(!found) print pat_def}' "ftiming" "fcomplex" + +done +) + +#endif +@ diff --git a/src/utilities/utilities_functions.saved b/src/utilities/utilities_functions.saved new file mode 100644 index 0000000000..e3dd74c9b2 --- /dev/null +++ b/src/utilities/utilities_functions.saved @@ -0,0 +1,275 @@ +hypre_checkerror +hypre_clearallerrors +hypre_clearerror +hypre_geterror +hypre_geterrorarg +hypre_finalize +hypre_init +hypre_setexecutionpolicy +hypre_setmemorylocation +hypre_setspgemmusevendor +HYPRE_SetSpGemmUseVendor +HYPRE_SetSpMVUseVendor +HYPRE_SetSpTransUseVendor +HYPRE_SetUseGpuRand +HYPRE_Version +HYPRE_VersionNumber +hypre_create_elt +hypre_dispose_elt +hypre_enter_on_lists +hypre_remove_point +HYPRE_AssumedPartitionCheck +hypre_BigBinarySearch +hypre_BigLowerBound +hypre_BinarySearch +hypre_BinarySearch2 +hypre_LowerBound +hypre_cabs +hypre_cimag +hypre_conj +hypre_creal +hypre_csqrt +hypre_bind_device +HYPRE_CheckError +HYPRE_ClearAllErrors +HYPRE_ClearError +HYPRE_DescribeError +HYPRE_GetError +HYPRE_GetErrorArg +hypre_error_handler +hypre_CreateBinaryTree +hypre_DataExchangeList +hypre_DestroyBinaryTree +utilities_FortranMatrixAdd +utilities_FortranMatrixAllocateData +utilities_FortranMatrixClear +utilities_FortranMatrixClearL +utilities_FortranMatrixCopy +utilities_FortranMatrixCreate +utilities_FortranMatrixDMultiply +utilities_FortranMatrixDestroy +utilities_FortranMatrixFNorm +utilities_FortranMatrixGetDiagonal +utilities_FortranMatrixGlobalHeight +utilities_FortranMatrixHeight +utilities_FortranMatrixIndexCopy +utilities_FortranMatrixMaxValue +utilities_FortranMatrixMultiply +utilities_FortranMatrixMultiplyD +utilities_FortranMatrixPrint +utilities_FortranMatrixSelectBlock +utilities_FortranMatrixSetDiagonal +utilities_FortranMatrixSetToIdentity +utilities_FortranMatrixSymmetrize +utilities_FortranMatrixTransposeSquare +utilities_FortranMatrixUpperInv +utilities_FortranMatrixValue +utilities_FortranMatrixValuePtr +utilities_FortranMatrixValues +utilities_FortranMatrixWidth +utilities_FortranMatrixWrap +HYPRE_Finalize +HYPRE_GetExecutionPolicy +HYPRE_GetMemoryLocation +HYPRE_Init +HYPRE_PrintDeviceInfo +HYPRE_SetExecutionPolicy +HYPRE_SetMemoryLocation +hypre_GetDevice +hypre_GetDeviceCount +hypre_GetDeviceLastError +hypre_GetDeviceMaxShmemSize +hypre_HandleCreate +hypre_HandleDestroy +hypre_SetDevice +hypre_handle +hypre_SetGaussSeidelMethod +hypre_SetSpGemmAlgorithm +hypre_SetSpGemmBinned +hypre_SetSpGemmRownnzEstimateMethod +hypre_SetSpGemmRownnzEstimateMultFactor +hypre_SetSpGemmRownnzEstimateNSamples +hypre_SetSpGemmUseVendor +hypre_SetSpMVUseVendor +hypre_SetSpTransUseVendor +hypre_SetUseGpuRand +hypre_SetUserDeviceMalloc +hypre_SetUserDeviceMfree +hypre_UnorderedBigIntMapCreate +hypre_UnorderedBigIntMapDestroy +hypre_UnorderedBigIntSetCopyToArray +hypre_UnorderedBigIntSetCreate +hypre_UnorderedBigIntSetDestroy +hypre_UnorderedIntMapCreate +hypre_UnorderedIntMapDestroy +hypre_UnorderedIntSetCopyToArray +hypre_UnorderedIntSetCreate +hypre_UnorderedIntSetDestroy +hypre_IntArrayCloneDeep +hypre_IntArrayCloneDeep_v2 +hypre_IntArrayCopy +hypre_IntArrayCount +hypre_IntArrayCountHost +hypre_IntArrayCreate +hypre_IntArrayDestroy +hypre_IntArrayInitialize +hypre_IntArrayInitialize_v2 +hypre_IntArrayInverseMapping +hypre_IntArrayInverseMappingHost +hypre_IntArrayMigrate +hypre_IntArrayPrint +hypre_IntArrayRead +hypre_IntArraySetConstantValues +hypre_IntArraySetConstantValuesHost +hypre_Log2 +HYPRE_SetGPUMemoryPoolSize +hypre_Free +hypre_MAlloc +hypre_CAlloc +hypre_CheckMemoryLocation +hypre_Free +hypre_GetExecPolicy1 +hypre_GetExecPolicy2 +hypre_GetMemoryLocationName +hypre_GetPointerLocation +hypre_MAlloc +hypre_MemPrefetch +hypre_Memcpy +hypre_Memset +hypre_ReAlloc +hypre_ReAlloc_v2 +hypre_SetCubMemPoolSize +hypre_IntArrayMergeOrdered +hypre_big_merge_sort +hypre_big_sort_and_create_inverse_map +hypre_merge_sort +hypre_sort_and_create_inverse_map +hypre_union2 +hypre_mm_is_valid +hypre_mm_read_banner +hypre_mm_read_mtx_crd_size +hypre_MPI_Abort +hypre_MPI_Address +hypre_MPI_Allgather +hypre_MPI_Allgatherv +hypre_MPI_Allreduce +hypre_MPI_Alltoall +hypre_MPI_Barrier +hypre_MPI_Bcast +hypre_MPI_Comm_create +hypre_MPI_Comm_dup +hypre_MPI_Comm_f2c +hypre_MPI_Comm_free +hypre_MPI_Comm_group +hypre_MPI_Comm_rank +hypre_MPI_Comm_size +hypre_MPI_Comm_split +hypre_MPI_Finalize +hypre_MPI_Gather +hypre_MPI_Gatherv +hypre_MPI_Get_count +hypre_MPI_Group_free +hypre_MPI_Group_incl +hypre_MPI_Init +hypre_MPI_Iprobe +hypre_MPI_Irecv +hypre_MPI_Irsend +hypre_MPI_Isend +hypre_MPI_Op_create +hypre_MPI_Op_free +hypre_MPI_Probe +hypre_MPI_Recv +hypre_MPI_Recv_init +hypre_MPI_Reduce +hypre_MPI_Request_free +hypre_MPI_Scan +hypre_MPI_Scatter +hypre_MPI_Scatterv +hypre_MPI_Send +hypre_MPI_Send_init +hypre_MPI_Startall +hypre_MPI_Test +hypre_MPI_Testall +hypre_MPI_Type_commit +hypre_MPI_Type_contiguous +hypre_MPI_Type_free +hypre_MPI_Type_hvector +hypre_MPI_Type_struct +hypre_MPI_Type_vector +hypre_MPI_Wait +hypre_MPI_Waitall +hypre_MPI_Waitany +hypre_MPI_Wtick +hypre_MPI_Wtime +hypre_GpuProfilingPopRange +hypre_GpuProfilingPushRange +hypre_GpuProfilingPushRangeColor +hypre_prefix_sum +hypre_prefix_sum_multiple +hypre_prefix_sum_pair +hypre_prefix_sum_triple +free_format +hypre_ParPrintf +hypre_fprintf +hypre_fscanf +hypre_ndigits +hypre_printf +hypre_scanf +hypre_sprintf +hypre_sscanf +new_format +hypre_BigQsort0 +hypre_BigQsort1 +hypre_BigQsort2i +hypre_BigQsort4_abs +hypre_BigQsortb2i +hypre_BigQsortbLoc +hypre_BigQsortbi +hypre_BigSwap +hypre_BigSwap2 +hypre_BigSwap2i +hypre_BigSwap4_d +hypre_BigSwapLoc +hypre_BigSwapb2i +hypre_BigSwapbi +hypre_dense_topo_sort +hypre_qsort0 +hypre_qsort1 +hypre_qsort2 +hypre_qsort2_abs +hypre_qsort2i +hypre_qsort3 +hypre_qsort3_abs +hypre_qsort3i +hypre_qsort3ir +hypre_qsort_abs +hypre_swap +hypre_swap2 +hypre_swap2i +hypre_swap3_d +hypre_swap3_d_perm +hypre_swap3i +hypre_swap_c +hypre_swap_d +hypre_topo_sort +hypre_DoubleQuickSplit +hypre_Rand +hypre_RandI +hypre_SeedRand +hypre_GetSimpleThreadPartition +time_getCPUSeconds +time_getWallclockSeconds +time_get_cpu_seconds +time_get_wallclock_seconds +hypre_BeginTiming +hypre_ClearTiming +hypre_EndTiming +hypre_FinalizeAllTimings +hypre_FinalizeTiming +hypre_GetTiming +hypre_IncFLOPCount +hypre_InitializeTiming +hypre_PrintTiming +hypre_multmod +hypre_partition1D +hypre_strcpy diff --git a/src/utilities/utilities_mup_func.h b/src/utilities/utilities_mup_func.h new file mode 100644 index 0000000000..6ccc498234 --- /dev/null +++ b/src/utilities/utilities_mup_func.h @@ -0,0 +1,321 @@ +/*** DO NOT EDIT THIS FILE DIRECTLY (use 'utilities_func_header' to generate) ***/ + +/****************************************************************************** + * Copyright (c) 1998 Lawrence Livermore National Security, LLC and other + * HYPRE Project Developers. See the top-level COPYRIGHT file for details. + * + * SPDX-License-Identifier: (Apache-2.0 OR MIT) + ******************************************************************************/ + +/****************************************************************************** + * Header file for transforming multiprecision functions names + *****************************************************************************/ + +#ifndef UTILITIES_MUP_FUNC_HEADER +#define UTILITIES_MUP_FUNC_HEADER + +#include "HYPRE_utilities.h" + +#define hypre_checkerror HYPRE_MULTIPRECISION_FUNC ( hypre_checkerror ) +#define hypre_clearallerrors HYPRE_MULTIPRECISION_FUNC ( hypre_clearallerrors ) +#define hypre_clearerror HYPRE_MULTIPRECISION_FUNC ( hypre_clearerror ) +#define hypre_geterror HYPRE_MULTIPRECISION_FUNC ( hypre_geterror ) +#define hypre_geterrorarg HYPRE_MULTIPRECISION_FUNC ( hypre_geterrorarg ) +#define hypre_finalize HYPRE_MULTIPRECISION_FUNC ( hypre_finalize ) +#define hypre_init HYPRE_MULTIPRECISION_FUNC ( hypre_init ) +#define hypre_setexecutionpolicy HYPRE_MULTIPRECISION_FUNC ( hypre_setexecutionpolicy ) +#define hypre_setmemorylocation HYPRE_MULTIPRECISION_FUNC ( hypre_setmemorylocation ) +#define hypre_setspgemmusevendor HYPRE_MULTIPRECISION_FUNC ( hypre_setspgemmusevendor ) +#define HYPRE_SetSpGemmUseVendor HYPRE_MULTIPRECISION_FUNC ( HYPRE_SetSpGemmUseVendor ) +#define HYPRE_SetSpMVUseVendor HYPRE_MULTIPRECISION_FUNC ( HYPRE_SetSpMVUseVendor ) +#define HYPRE_SetSpTransUseVendor HYPRE_MULTIPRECISION_FUNC ( HYPRE_SetSpTransUseVendor ) +#define HYPRE_SetUseGpuRand HYPRE_MULTIPRECISION_FUNC ( HYPRE_SetUseGpuRand ) +#define HYPRE_Version HYPRE_MULTIPRECISION_FUNC ( HYPRE_Version ) +#define HYPRE_VersionNumber HYPRE_MULTIPRECISION_FUNC ( HYPRE_VersionNumber ) +#define hypre_create_elt HYPRE_MULTIPRECISION_FUNC ( hypre_create_elt ) +#define hypre_dispose_elt HYPRE_MULTIPRECISION_FUNC ( hypre_dispose_elt ) +#define hypre_enter_on_lists HYPRE_MULTIPRECISION_FUNC ( hypre_enter_on_lists ) +#define hypre_remove_point HYPRE_MULTIPRECISION_FUNC ( hypre_remove_point ) +#define HYPRE_AssumedPartitionCheck HYPRE_MULTIPRECISION_FUNC ( HYPRE_AssumedPartitionCheck ) +#define hypre_BigBinarySearch HYPRE_MULTIPRECISION_FUNC ( hypre_BigBinarySearch ) +#define hypre_BigLowerBound HYPRE_MULTIPRECISION_FUNC ( hypre_BigLowerBound ) +#define hypre_BinarySearch HYPRE_MULTIPRECISION_FUNC ( hypre_BinarySearch ) +#define hypre_BinarySearch2 HYPRE_MULTIPRECISION_FUNC ( hypre_BinarySearch2 ) +#define hypre_LowerBound HYPRE_MULTIPRECISION_FUNC ( hypre_LowerBound ) +#if defined (HYPRE_COMPLEX) +#define hypre_cabs HYPRE_MULTIPRECISION_FUNC ( hypre_cabs ) +#endif +#if defined (HYPRE_COMPLEX) +#define hypre_cimag HYPRE_MULTIPRECISION_FUNC ( hypre_cimag ) +#endif +#if defined (HYPRE_COMPLEX) +#define hypre_conj HYPRE_MULTIPRECISION_FUNC ( hypre_conj ) +#endif +#if defined (HYPRE_COMPLEX) +#define hypre_creal HYPRE_MULTIPRECISION_FUNC ( hypre_creal ) +#endif +#if defined (HYPRE_COMPLEX) +#define hypre_csqrt HYPRE_MULTIPRECISION_FUNC ( hypre_csqrt ) +#endif +#define hypre_bind_device HYPRE_MULTIPRECISION_FUNC ( hypre_bind_device ) +#define HYPRE_CheckError HYPRE_MULTIPRECISION_FUNC ( HYPRE_CheckError ) +#define HYPRE_ClearAllErrors HYPRE_MULTIPRECISION_FUNC ( HYPRE_ClearAllErrors ) +#define HYPRE_ClearError HYPRE_MULTIPRECISION_FUNC ( HYPRE_ClearError ) +#define HYPRE_DescribeError HYPRE_MULTIPRECISION_FUNC ( HYPRE_DescribeError ) +#define HYPRE_GetError HYPRE_MULTIPRECISION_FUNC ( HYPRE_GetError ) +#define HYPRE_GetErrorArg HYPRE_MULTIPRECISION_FUNC ( HYPRE_GetErrorArg ) +#define hypre_error_handler HYPRE_MULTIPRECISION_FUNC ( hypre_error_handler ) +#define hypre_CreateBinaryTree HYPRE_MULTIPRECISION_FUNC ( hypre_CreateBinaryTree ) +#define hypre_DataExchangeList HYPRE_MULTIPRECISION_FUNC ( hypre_DataExchangeList ) +#define hypre_DestroyBinaryTree HYPRE_MULTIPRECISION_FUNC ( hypre_DestroyBinaryTree ) +#define utilities_FortranMatrixAdd HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixAdd ) +#define utilities_FortranMatrixAllocateData HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixAllocateData ) +#define utilities_FortranMatrixClear HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixClear ) +#define utilities_FortranMatrixClearL HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixClearL ) +#define utilities_FortranMatrixCopy HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixCopy ) +#define utilities_FortranMatrixCreate HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixCreate ) +#define utilities_FortranMatrixDMultiply HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixDMultiply ) +#define utilities_FortranMatrixDestroy HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixDestroy ) +#define utilities_FortranMatrixFNorm HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixFNorm ) +#define utilities_FortranMatrixGetDiagonal HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixGetDiagonal ) +#define utilities_FortranMatrixGlobalHeight HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixGlobalHeight ) +#define utilities_FortranMatrixHeight HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixHeight ) +#define utilities_FortranMatrixIndexCopy HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixIndexCopy ) +#define utilities_FortranMatrixMaxValue HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixMaxValue ) +#define utilities_FortranMatrixMultiply HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixMultiply ) +#define utilities_FortranMatrixMultiplyD HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixMultiplyD ) +#define utilities_FortranMatrixPrint HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixPrint ) +#define utilities_FortranMatrixSelectBlock HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixSelectBlock ) +#define utilities_FortranMatrixSetDiagonal HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixSetDiagonal ) +#define utilities_FortranMatrixSetToIdentity HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixSetToIdentity ) +#define utilities_FortranMatrixSymmetrize HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixSymmetrize ) +#define utilities_FortranMatrixTransposeSquare HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixTransposeSquare ) +#define utilities_FortranMatrixUpperInv HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixUpperInv ) +#define utilities_FortranMatrixValue HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixValue ) +#define utilities_FortranMatrixValuePtr HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixValuePtr ) +#define utilities_FortranMatrixValues HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixValues ) +#define utilities_FortranMatrixWidth HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixWidth ) +#define utilities_FortranMatrixWrap HYPRE_MULTIPRECISION_FUNC ( utilities_FortranMatrixWrap ) +#define HYPRE_Finalize HYPRE_MULTIPRECISION_FUNC ( HYPRE_Finalize ) +#define HYPRE_GetExecutionPolicy HYPRE_MULTIPRECISION_FUNC ( HYPRE_GetExecutionPolicy ) +#define HYPRE_GetMemoryLocation HYPRE_MULTIPRECISION_FUNC ( HYPRE_GetMemoryLocation ) +#define HYPRE_Init HYPRE_MULTIPRECISION_FUNC ( HYPRE_Init ) +#define HYPRE_PrintDeviceInfo HYPRE_MULTIPRECISION_FUNC ( HYPRE_PrintDeviceInfo ) +#define HYPRE_SetExecutionPolicy HYPRE_MULTIPRECISION_FUNC ( HYPRE_SetExecutionPolicy ) +#define HYPRE_SetMemoryLocation HYPRE_MULTIPRECISION_FUNC ( HYPRE_SetMemoryLocation ) +#define hypre_GetDevice HYPRE_MULTIPRECISION_FUNC ( hypre_GetDevice ) +#define hypre_GetDeviceCount HYPRE_MULTIPRECISION_FUNC ( hypre_GetDeviceCount ) +#define hypre_GetDeviceLastError HYPRE_MULTIPRECISION_FUNC ( hypre_GetDeviceLastError ) +#define hypre_GetDeviceMaxShmemSize HYPRE_MULTIPRECISION_FUNC ( hypre_GetDeviceMaxShmemSize ) +#define hypre_HandleCreate HYPRE_MULTIPRECISION_FUNC ( hypre_HandleCreate ) +#define hypre_HandleDestroy HYPRE_MULTIPRECISION_FUNC ( hypre_HandleDestroy ) +#define hypre_SetDevice HYPRE_MULTIPRECISION_FUNC ( hypre_SetDevice ) +#define hypre_handle HYPRE_MULTIPRECISION_FUNC ( hypre_handle ) +#define hypre_SetGaussSeidelMethod HYPRE_MULTIPRECISION_FUNC ( hypre_SetGaussSeidelMethod ) +#define hypre_SetSpGemmAlgorithm HYPRE_MULTIPRECISION_FUNC ( hypre_SetSpGemmAlgorithm ) +#define hypre_SetSpGemmBinned HYPRE_MULTIPRECISION_FUNC ( hypre_SetSpGemmBinned ) +#define hypre_SetSpGemmRownnzEstimateMethod HYPRE_MULTIPRECISION_FUNC ( hypre_SetSpGemmRownnzEstimateMethod ) +#define hypre_SetSpGemmRownnzEstimateMultFactor HYPRE_MULTIPRECISION_FUNC ( hypre_SetSpGemmRownnzEstimateMultFactor ) +#define hypre_SetSpGemmRownnzEstimateNSamples HYPRE_MULTIPRECISION_FUNC ( hypre_SetSpGemmRownnzEstimateNSamples ) +#define hypre_SetSpGemmUseVendor HYPRE_MULTIPRECISION_FUNC ( hypre_SetSpGemmUseVendor ) +#define hypre_SetSpMVUseVendor HYPRE_MULTIPRECISION_FUNC ( hypre_SetSpMVUseVendor ) +#define hypre_SetSpTransUseVendor HYPRE_MULTIPRECISION_FUNC ( hypre_SetSpTransUseVendor ) +#define hypre_SetUseGpuRand HYPRE_MULTIPRECISION_FUNC ( hypre_SetUseGpuRand ) +#define hypre_SetUserDeviceMalloc HYPRE_MULTIPRECISION_FUNC ( hypre_SetUserDeviceMalloc ) +#define hypre_SetUserDeviceMfree HYPRE_MULTIPRECISION_FUNC ( hypre_SetUserDeviceMfree ) +#define hypre_UnorderedBigIntMapCreate HYPRE_MULTIPRECISION_FUNC ( hypre_UnorderedBigIntMapCreate ) +#define hypre_UnorderedBigIntMapDestroy HYPRE_MULTIPRECISION_FUNC ( hypre_UnorderedBigIntMapDestroy ) +#define hypre_UnorderedBigIntSetCopyToArray HYPRE_MULTIPRECISION_FUNC ( hypre_UnorderedBigIntSetCopyToArray ) +#define hypre_UnorderedBigIntSetCreate HYPRE_MULTIPRECISION_FUNC ( hypre_UnorderedBigIntSetCreate ) +#define hypre_UnorderedBigIntSetDestroy HYPRE_MULTIPRECISION_FUNC ( hypre_UnorderedBigIntSetDestroy ) +#define hypre_UnorderedIntMapCreate HYPRE_MULTIPRECISION_FUNC ( hypre_UnorderedIntMapCreate ) +#define hypre_UnorderedIntMapDestroy HYPRE_MULTIPRECISION_FUNC ( hypre_UnorderedIntMapDestroy ) +#define hypre_UnorderedIntSetCopyToArray HYPRE_MULTIPRECISION_FUNC ( hypre_UnorderedIntSetCopyToArray ) +#define hypre_UnorderedIntSetCreate HYPRE_MULTIPRECISION_FUNC ( hypre_UnorderedIntSetCreate ) +#define hypre_UnorderedIntSetDestroy HYPRE_MULTIPRECISION_FUNC ( hypre_UnorderedIntSetDestroy ) +#define hypre_IntArrayCloneDeep HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayCloneDeep ) +#define hypre_IntArrayCloneDeep_v2 HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayCloneDeep_v2 ) +#define hypre_IntArrayCopy HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayCopy ) +#define hypre_IntArrayCount HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayCount ) +#define hypre_IntArrayCountHost HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayCountHost ) +#define hypre_IntArrayCreate HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayCreate ) +#define hypre_IntArrayDestroy HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayDestroy ) +#define hypre_IntArrayInitialize HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayInitialize ) +#define hypre_IntArrayInitialize_v2 HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayInitialize_v2 ) +#define hypre_IntArrayInverseMapping HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayInverseMapping ) +#define hypre_IntArrayInverseMappingHost HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayInverseMappingHost ) +#define hypre_IntArrayMigrate HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayMigrate ) +#define hypre_IntArrayPrint HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayPrint ) +#define hypre_IntArrayRead HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayRead ) +#define hypre_IntArraySetConstantValues HYPRE_MULTIPRECISION_FUNC ( hypre_IntArraySetConstantValues ) +#define hypre_IntArraySetConstantValuesHost HYPRE_MULTIPRECISION_FUNC ( hypre_IntArraySetConstantValuesHost ) +#define hypre_Log2 HYPRE_MULTIPRECISION_FUNC ( hypre_Log2 ) +#define HYPRE_SetGPUMemoryPoolSize HYPRE_MULTIPRECISION_FUNC ( HYPRE_SetGPUMemoryPoolSize ) +#define hypre_Free HYPRE_MULTIPRECISION_FUNC ( hypre_Free ) +#define hypre_MAlloc HYPRE_MULTIPRECISION_FUNC ( hypre_MAlloc ) +#define hypre_CAlloc HYPRE_MULTIPRECISION_FUNC ( hypre_CAlloc ) +#define hypre_CheckMemoryLocation HYPRE_MULTIPRECISION_FUNC ( hypre_CheckMemoryLocation ) +#define hypre_Free HYPRE_MULTIPRECISION_FUNC ( hypre_Free ) +#define hypre_GetExecPolicy1 HYPRE_MULTIPRECISION_FUNC ( hypre_GetExecPolicy1 ) +#define hypre_GetExecPolicy2 HYPRE_MULTIPRECISION_FUNC ( hypre_GetExecPolicy2 ) +#define hypre_GetMemoryLocationName HYPRE_MULTIPRECISION_FUNC ( hypre_GetMemoryLocationName ) +#define hypre_GetPointerLocation HYPRE_MULTIPRECISION_FUNC ( hypre_GetPointerLocation ) +#define hypre_MAlloc HYPRE_MULTIPRECISION_FUNC ( hypre_MAlloc ) +#define hypre_MemPrefetch HYPRE_MULTIPRECISION_FUNC ( hypre_MemPrefetch ) +#define hypre_Memcpy HYPRE_MULTIPRECISION_FUNC ( hypre_Memcpy ) +#define hypre_Memset HYPRE_MULTIPRECISION_FUNC ( hypre_Memset ) +#define hypre_ReAlloc HYPRE_MULTIPRECISION_FUNC ( hypre_ReAlloc ) +#define hypre_ReAlloc_v2 HYPRE_MULTIPRECISION_FUNC ( hypre_ReAlloc_v2 ) +#define hypre_SetCubMemPoolSize HYPRE_MULTIPRECISION_FUNC ( hypre_SetCubMemPoolSize ) +#define hypre_IntArrayMergeOrdered HYPRE_MULTIPRECISION_FUNC ( hypre_IntArrayMergeOrdered ) +#define hypre_big_merge_sort HYPRE_MULTIPRECISION_FUNC ( hypre_big_merge_sort ) +#define hypre_big_sort_and_create_inverse_map HYPRE_MULTIPRECISION_FUNC ( hypre_big_sort_and_create_inverse_map ) +#define hypre_merge_sort HYPRE_MULTIPRECISION_FUNC ( hypre_merge_sort ) +#define hypre_sort_and_create_inverse_map HYPRE_MULTIPRECISION_FUNC ( hypre_sort_and_create_inverse_map ) +#define hypre_union2 HYPRE_MULTIPRECISION_FUNC ( hypre_union2 ) +#define hypre_mm_is_valid HYPRE_MULTIPRECISION_FUNC ( hypre_mm_is_valid ) +#define hypre_mm_read_banner HYPRE_MULTIPRECISION_FUNC ( hypre_mm_read_banner ) +#define hypre_mm_read_mtx_crd_size HYPRE_MULTIPRECISION_FUNC ( hypre_mm_read_mtx_crd_size ) +#define hypre_MPI_Abort HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Abort ) +#define hypre_MPI_Address HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Address ) +#define hypre_MPI_Allgather HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Allgather ) +#define hypre_MPI_Allgatherv HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Allgatherv ) +#define hypre_MPI_Allreduce HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Allreduce ) +#define hypre_MPI_Alltoall HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Alltoall ) +#define hypre_MPI_Barrier HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Barrier ) +#define hypre_MPI_Bcast HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Bcast ) +#define hypre_MPI_Comm_create HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Comm_create ) +#define hypre_MPI_Comm_dup HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Comm_dup ) +#define hypre_MPI_Comm_f2c HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Comm_f2c ) +#define hypre_MPI_Comm_free HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Comm_free ) +#define hypre_MPI_Comm_group HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Comm_group ) +#define hypre_MPI_Comm_rank HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Comm_rank ) +#define hypre_MPI_Comm_size HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Comm_size ) +#define hypre_MPI_Comm_split HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Comm_split ) +#define hypre_MPI_Finalize HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Finalize ) +#define hypre_MPI_Gather HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Gather ) +#define hypre_MPI_Gatherv HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Gatherv ) +#define hypre_MPI_Get_count HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Get_count ) +#define hypre_MPI_Group_free HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Group_free ) +#define hypre_MPI_Group_incl HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Group_incl ) +#define hypre_MPI_Init HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Init ) +#define hypre_MPI_Iprobe HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Iprobe ) +#define hypre_MPI_Irecv HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Irecv ) +#define hypre_MPI_Irsend HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Irsend ) +#define hypre_MPI_Isend HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Isend ) +#define hypre_MPI_Op_create HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Op_create ) +#define hypre_MPI_Op_free HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Op_free ) +#define hypre_MPI_Probe HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Probe ) +#define hypre_MPI_Recv HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Recv ) +#define hypre_MPI_Recv_init HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Recv_init ) +#define hypre_MPI_Reduce HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Reduce ) +#define hypre_MPI_Request_free HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Request_free ) +#define hypre_MPI_Scan HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Scan ) +#define hypre_MPI_Scatter HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Scatter ) +#define hypre_MPI_Scatterv HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Scatterv ) +#define hypre_MPI_Send HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Send ) +#define hypre_MPI_Send_init HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Send_init ) +#define hypre_MPI_Startall HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Startall ) +#define hypre_MPI_Test HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Test ) +#define hypre_MPI_Testall HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Testall ) +#define hypre_MPI_Type_commit HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Type_commit ) +#define hypre_MPI_Type_contiguous HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Type_contiguous ) +#define hypre_MPI_Type_free HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Type_free ) +#define hypre_MPI_Type_hvector HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Type_hvector ) +#define hypre_MPI_Type_struct HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Type_struct ) +#define hypre_MPI_Type_vector HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Type_vector ) +#define hypre_MPI_Wait HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Wait ) +#define hypre_MPI_Waitall HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Waitall ) +#define hypre_MPI_Waitany HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Waitany ) +#define hypre_MPI_Wtick HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Wtick ) +#define hypre_MPI_Wtime HYPRE_MULTIPRECISION_FUNC ( hypre_MPI_Wtime ) +#define hypre_GpuProfilingPopRange HYPRE_MULTIPRECISION_FUNC ( hypre_GpuProfilingPopRange ) +#define hypre_GpuProfilingPushRange HYPRE_MULTIPRECISION_FUNC ( hypre_GpuProfilingPushRange ) +#define hypre_GpuProfilingPushRangeColor HYPRE_MULTIPRECISION_FUNC ( hypre_GpuProfilingPushRangeColor ) +#define hypre_prefix_sum HYPRE_MULTIPRECISION_FUNC ( hypre_prefix_sum ) +#define hypre_prefix_sum_multiple HYPRE_MULTIPRECISION_FUNC ( hypre_prefix_sum_multiple ) +#define hypre_prefix_sum_pair HYPRE_MULTIPRECISION_FUNC ( hypre_prefix_sum_pair ) +#define hypre_prefix_sum_triple HYPRE_MULTIPRECISION_FUNC ( hypre_prefix_sum_triple ) +#define free_format HYPRE_MULTIPRECISION_FUNC ( free_format ) +#define hypre_ParPrintf HYPRE_MULTIPRECISION_FUNC ( hypre_ParPrintf ) +#define hypre_fprintf HYPRE_MULTIPRECISION_FUNC ( hypre_fprintf ) +#define hypre_fscanf HYPRE_MULTIPRECISION_FUNC ( hypre_fscanf ) +#define hypre_ndigits HYPRE_MULTIPRECISION_FUNC ( hypre_ndigits ) +#define hypre_printf HYPRE_MULTIPRECISION_FUNC ( hypre_printf ) +#define hypre_scanf HYPRE_MULTIPRECISION_FUNC ( hypre_scanf ) +#define hypre_sprintf HYPRE_MULTIPRECISION_FUNC ( hypre_sprintf ) +#define hypre_sscanf HYPRE_MULTIPRECISION_FUNC ( hypre_sscanf ) +#define new_format HYPRE_MULTIPRECISION_FUNC ( new_format ) +#define hypre_BigQsort0 HYPRE_MULTIPRECISION_FUNC ( hypre_BigQsort0 ) +#define hypre_BigQsort1 HYPRE_MULTIPRECISION_FUNC ( hypre_BigQsort1 ) +#define hypre_BigQsort2i HYPRE_MULTIPRECISION_FUNC ( hypre_BigQsort2i ) +#define hypre_BigQsort4_abs HYPRE_MULTIPRECISION_FUNC ( hypre_BigQsort4_abs ) +#define hypre_BigQsortb2i HYPRE_MULTIPRECISION_FUNC ( hypre_BigQsortb2i ) +#define hypre_BigQsortbLoc HYPRE_MULTIPRECISION_FUNC ( hypre_BigQsortbLoc ) +#define hypre_BigQsortbi HYPRE_MULTIPRECISION_FUNC ( hypre_BigQsortbi ) +#define hypre_BigSwap HYPRE_MULTIPRECISION_FUNC ( hypre_BigSwap ) +#define hypre_BigSwap2 HYPRE_MULTIPRECISION_FUNC ( hypre_BigSwap2 ) +#define hypre_BigSwap2i HYPRE_MULTIPRECISION_FUNC ( hypre_BigSwap2i ) +#define hypre_BigSwap4_d HYPRE_MULTIPRECISION_FUNC ( hypre_BigSwap4_d ) +#define hypre_BigSwapLoc HYPRE_MULTIPRECISION_FUNC ( hypre_BigSwapLoc ) +#define hypre_BigSwapb2i HYPRE_MULTIPRECISION_FUNC ( hypre_BigSwapb2i ) +#define hypre_BigSwapbi HYPRE_MULTIPRECISION_FUNC ( hypre_BigSwapbi ) +#define hypre_dense_topo_sort HYPRE_MULTIPRECISION_FUNC ( hypre_dense_topo_sort ) +#define hypre_qsort0 HYPRE_MULTIPRECISION_FUNC ( hypre_qsort0 ) +#define hypre_qsort1 HYPRE_MULTIPRECISION_FUNC ( hypre_qsort1 ) +#define hypre_qsort2 HYPRE_MULTIPRECISION_FUNC ( hypre_qsort2 ) +#define hypre_qsort2_abs HYPRE_MULTIPRECISION_FUNC ( hypre_qsort2_abs ) +#define hypre_qsort2i HYPRE_MULTIPRECISION_FUNC ( hypre_qsort2i ) +#define hypre_qsort3 HYPRE_MULTIPRECISION_FUNC ( hypre_qsort3 ) +#define hypre_qsort3_abs HYPRE_MULTIPRECISION_FUNC ( hypre_qsort3_abs ) +#define hypre_qsort3i HYPRE_MULTIPRECISION_FUNC ( hypre_qsort3i ) +#define hypre_qsort3ir HYPRE_MULTIPRECISION_FUNC ( hypre_qsort3ir ) +#define hypre_qsort_abs HYPRE_MULTIPRECISION_FUNC ( hypre_qsort_abs ) +#define hypre_swap HYPRE_MULTIPRECISION_FUNC ( hypre_swap ) +#define hypre_swap2 HYPRE_MULTIPRECISION_FUNC ( hypre_swap2 ) +#define hypre_swap2i HYPRE_MULTIPRECISION_FUNC ( hypre_swap2i ) +#define hypre_swap3_d HYPRE_MULTIPRECISION_FUNC ( hypre_swap3_d ) +#define hypre_swap3_d_perm HYPRE_MULTIPRECISION_FUNC ( hypre_swap3_d_perm ) +#define hypre_swap3i HYPRE_MULTIPRECISION_FUNC ( hypre_swap3i ) +#define hypre_swap_c HYPRE_MULTIPRECISION_FUNC ( hypre_swap_c ) +#define hypre_swap_d HYPRE_MULTIPRECISION_FUNC ( hypre_swap_d ) +#define hypre_topo_sort HYPRE_MULTIPRECISION_FUNC ( hypre_topo_sort ) +#define hypre_DoubleQuickSplit HYPRE_MULTIPRECISION_FUNC ( hypre_DoubleQuickSplit ) +#define hypre_Rand HYPRE_MULTIPRECISION_FUNC ( hypre_Rand ) +#define hypre_RandI HYPRE_MULTIPRECISION_FUNC ( hypre_RandI ) +#define hypre_SeedRand HYPRE_MULTIPRECISION_FUNC ( hypre_SeedRand ) +#define hypre_GetSimpleThreadPartition HYPRE_MULTIPRECISION_FUNC ( hypre_GetSimpleThreadPartition ) +#define time_getCPUSeconds HYPRE_MULTIPRECISION_FUNC ( time_getCPUSeconds ) +#define time_getWallclockSeconds HYPRE_MULTIPRECISION_FUNC ( time_getWallclockSeconds ) +#define time_get_cpu_seconds HYPRE_MULTIPRECISION_FUNC ( time_get_cpu_seconds ) +#define time_get_wallclock_seconds HYPRE_MULTIPRECISION_FUNC ( time_get_wallclock_seconds ) +#if defined (HYPRE_TIMING) +#define hypre_BeginTiming HYPRE_MULTIPRECISION_FUNC ( hypre_BeginTiming ) +#endif +#if defined (HYPRE_TIMING) +#define hypre_ClearTiming HYPRE_MULTIPRECISION_FUNC ( hypre_ClearTiming ) +#endif +#if defined (HYPRE_TIMING) +#define hypre_EndTiming HYPRE_MULTIPRECISION_FUNC ( hypre_EndTiming ) +#endif +#define hypre_FinalizeAllTimings HYPRE_MULTIPRECISION_FUNC ( hypre_FinalizeAllTimings ) +#if defined (HYPRE_TIMING) +#define hypre_FinalizeTiming HYPRE_MULTIPRECISION_FUNC ( hypre_FinalizeTiming ) +#endif +#if defined (HYPRE_TIMING) +#define hypre_GetTiming HYPRE_MULTIPRECISION_FUNC ( hypre_GetTiming ) +#endif +#if defined (HYPRE_TIMING) +#define hypre_IncFLOPCount HYPRE_MULTIPRECISION_FUNC ( hypre_IncFLOPCount ) +#endif +#if defined (HYPRE_TIMING) +#define hypre_InitializeTiming HYPRE_MULTIPRECISION_FUNC ( hypre_InitializeTiming ) +#endif +#if defined (HYPRE_TIMING) +#define hypre_PrintTiming HYPRE_MULTIPRECISION_FUNC ( hypre_PrintTiming ) +#endif +#define hypre_multmod HYPRE_MULTIPRECISION_FUNC ( hypre_multmod ) +#define hypre_partition1D HYPRE_MULTIPRECISION_FUNC ( hypre_partition1D ) +#define hypre_strcpy HYPRE_MULTIPRECISION_FUNC ( hypre_strcpy ) + +#endif From 9532f7b7fcad5ca0a9491f141b1a45c9014f6bc2 Mon Sep 17 00:00:00 2001 From: Daniel Osei-Kuffuor Date: Tue, 14 Mar 2023 10:29:30 -0700 Subject: [PATCH 06/11] Use correct version of autoconf to generate configure. --- src/config/HYPRE_config.h.in | 10 +- src/configure | 5369 ++++++++++++++++++++-------------- 2 files changed, 3204 insertions(+), 2175 deletions(-) diff --git a/src/config/HYPRE_config.h.in b/src/config/HYPRE_config.h.in index 7910e28679..39622a4d70 100644 --- a/src/config/HYPRE_config.h.in +++ b/src/config/HYPRE_config.h.in @@ -17,9 +17,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - /* Define to 1 if using MLI */ #undef HAVE_MLI @@ -29,6 +26,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H +/* Define to 1 if you have the header file. */ +#undef HAVE_STDIO_H + /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H @@ -304,5 +304,7 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION -/* Define to 1 if you have the ANSI C header files. */ +/* Define to 1 if all of the C90 standard headers exist (not just the ones + required in a freestanding environment). This macro is provided for + backward compatibility; new code need not use it. */ #undef STDC_HEADERS diff --git a/src/configure b/src/configure index 5c95e6c51a..edf6125547 100755 --- a/src/configure +++ b/src/configure @@ -1,10 +1,11 @@ #! /bin/sh # From configure.in Id. # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for hypre 2.27.0. +# Generated by GNU Autoconf 2.71 for hypre 2.27.0. # # -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +# Inc. # # # This configure script is free software; the Free Software Foundation @@ -18,14 +19,16 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +as_nop=: +if test ${ZSH_VERSION+y} && (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 +else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -35,46 +38,46 @@ esac fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. 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 -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (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 +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; 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 || @@ -83,13 +86,6 @@ if test "${PATH_SEPARATOR+set}" != set; then 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. as_myself= case $0 in #(( @@ -98,8 +94,12 @@ case $0 in #(( 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 + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS @@ -111,30 +111,10 @@ 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 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. @@ -156,20 +136,22 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + as_bourne_compatible="as_nop=: +if test \${ZSH_VERSION+y} && (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 +else \$as_nop case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( @@ -189,42 +171,53 @@ as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : +if ( set x; as_fn_ret_success y && test x = \"\$1\" ) +then : -else +else \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 +blah=\$(echo \$(echo blah)) +test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" - if (eval "$as_required") 2>/dev/null; then : + if (eval "$as_required") 2>/dev/null +then : as_have_required=yes -else +else $as_nop as_have_required=no fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null +then : -else +else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false 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 #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base + as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null +then : break 2 fi fi @@ -232,14 +225,21 @@ fi esac as_found=false done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } IFS=$as_save_IFS +if $as_found +then : + +else $as_nop + if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi +fi - if test "x$CONFIG_SHELL" != x; then : + if test "x$CONFIG_SHELL" != x +then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also @@ -257,18 +257,19 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." + if test x$as_have_required = xno +then : + printf "%s\n" "$0: This script requires a shell more modern than all" + printf "%s\n" "$0: the shells that I found on your system." + if test ${ZSH_VERSION+y} ; then + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else - $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." @@ -295,6 +296,7 @@ as_fn_unset () } as_unset=as_fn_unset + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -312,6 +314,14 @@ as_fn_exit () as_fn_set_status $1 exit $1 } # as_fn_exit +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop # as_fn_mkdir_p # ------------- @@ -326,7 +336,7 @@ as_fn_mkdir_p () as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -335,7 +345,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -374,12 +384,13 @@ as_fn_executable_p () # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else +else $as_nop as_fn_append () { eval $1=\$$1\$2 @@ -391,18 +402,27 @@ fi # as_fn_append # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else +else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- @@ -414,9 +434,9 @@ as_fn_error () as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error @@ -443,7 +463,7 @@ as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -487,7 +507,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits 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; as_fn_exit 1; } + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall @@ -501,6 +521,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits exit } + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -514,6 +538,13 @@ case `echo -n x` in #((((( ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -590,40 +621,36 @@ ac_unique_file="HYPRE.h" ac_default_prefix=`pwd`/hypre # Factoring default headers for most tests. ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include +#include +#ifdef HAVE_STDIO_H +# include #endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef STDC_HEADERS +#ifdef HAVE_STDLIB_H # 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_STRINGS_H +# include +#endif +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif #ifdef HAVE_UNISTD_H # include #endif" +ac_header_c_list= ac_subst_vars='LTLIBOBJS LIBOBJS AR @@ -749,6 +776,7 @@ infodir docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -928,6 +956,7 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -957,8 +986,6 @@ do *) ac_optarg=yes ;; esac - # Accept the important Cygnus configure options, so we can diagnose typos. - case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; @@ -999,9 +1026,9 @@ do 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_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1025,9 +1052,9 @@ do 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_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1180,6 +1207,15 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1229,9 +1265,9 @@ do 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_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1245,9 +1281,9 @@ do 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_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1291,9 +1327,9 @@ Try \`$0 --help' for more information" *) # FIXME: should be removed in autoconf 3.0. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + printf "%s\n" "$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 + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; @@ -1309,7 +1345,7 @@ if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi @@ -1317,7 +1353,7 @@ fi 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 + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1373,7 +1409,7 @@ $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" | +printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -1470,6 +1506,7 @@ Fine tuning of the installation directories: --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] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -1796,9 +1833,9 @@ if test "$ac_init_help" = "recursive"; then case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$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|/||'` + ac_top_builddir_sub=`printf "%s\n" "$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/ ;; @@ -1826,7 +1863,8 @@ esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. + # Check for configure.gnu first; this name is used for a wrapper for + # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive @@ -1834,7 +1872,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix echo && $SHELL "$ac_srcdir/configure" --help=recursive else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done @@ -1844,9 +1882,9 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF hypre configure 2.27.0 -generated by GNU Autoconf 2.69 +generated by GNU Autoconf 2.71 -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. @@ -1866,14 +1904,14 @@ fi ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam 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:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1881,14 +1919,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1904,14 +1943,14 @@ fi ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam 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:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1919,14 +1958,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1942,14 +1982,14 @@ fi ac_fn_fc_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam 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:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1957,14 +1997,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_fc_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1980,14 +2021,14 @@ fi ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext + rm -f conftest.$ac_objext conftest.beam 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:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1995,17 +2036,18 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2026,11 +2068,12 @@ fi ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. @@ -2038,16 +2081,9 @@ else #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif + which can conflict with char $2 (); below. */ +#include #undef $2 /* Override any GCC internal prototype to avoid an error. @@ -2073,24 +2109,25 @@ choke me #endif #endif int -main () +main (void) { return $2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func @@ -2107,7 +2144,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2115,14 +2152,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2132,135 +2170,6 @@ fi } # ac_fn_c_try_cpp -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists, giving a warning if it cannot be compiled using -# the include files in INCLUDES and setting the cache variable VAR -# accordingly. -ac_fn_c_check_header_mongrel () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if eval \${$3+:} false; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 -$as_echo_n "checking $2 usability... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_header_compiler=yes -else - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 -$as_echo_n "checking $2 presence... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <$2> -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - ac_header_preproc=yes -else - ac_header_preproc=no -fi -rm -f conftest.err conftest.i conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( - yes:no: ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; - no:yes:* ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; -esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=\$ac_header_compiler" -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_header_mongrel - -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_c_try_run () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - 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:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { 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:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -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 - - ac_retval=$ac_status -fi - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_run - # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in @@ -2268,37 +2177,59 @@ fi ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile +ac_configure_args_raw= +for ac_arg +do + case $ac_arg in + *\'*) + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_configure_args_raw " '$ac_arg'" +done + +case $ac_configure_args_raw in + *$as_nl*) + ac_safe_unquote= ;; + *) + ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. + ac_unsafe_a="$ac_unsafe_z#~" + ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" + ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; +esac + 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 hypre $as_me 2.27.0, which was -generated by GNU Autoconf 2.69. Invocation command line was +generated by GNU Autoconf 2.71. Invocation command line was - $ $0 $@ + $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log @@ -2331,8 +2262,12 @@ 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" + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS @@ -2367,7 +2302,7 @@ do | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; @@ -2402,11 +2337,13 @@ done # 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=$? + # Sanitize IFS. + IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo - $as_echo "## ---------------- ## + printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo @@ -2417,8 +2354,8 @@ trap 'exit_status=$? case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -2442,7 +2379,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ) echo - $as_echo "## ----------------- ## + printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -2450,14 +2387,14 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## + printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo @@ -2465,15 +2402,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then - $as_echo "## ----------- ## + printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo @@ -2481,8 +2418,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; echo fi test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" + printf "%s\n" "$as_me: caught signal $ac_signal" + printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && @@ -2496,63 +2433,48 @@ ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h -$as_echo "/* confdefs.h */" > confdefs.h +printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF +printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF +printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF +printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF +printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF +printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF +printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # 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 - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac + ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site + ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" + +for ac_site_file in $ac_site_files do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} + case $ac_site_file in #( + */*) : + ;; #( + *) : + ac_site_file=./$ac_site_file ;; +esac + if test -f "$ac_site_file" && test -r "$ac_site_file"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi @@ -2562,19 +2484,650 @@ if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi +# Test code for whether the C compiler supports C89 (global declarations) +ac_c_conftest_c89_globals=' +/* Does the compiler advertise C89 conformance? + Do not test the value of __STDC__, because some compilers set it to 0 + while being otherwise adequately conformant. */ +#if !defined __STDC__ +# error "Compiler does not advertise C89 conformance" +#endif + +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ +struct buf { int x; }; +struct buf * (*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 do not provoke an error unfortunately, instead are silently treated + as an "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 is necessary to write \x00 == 0 to get something + that is 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 **, int *(*)(struct buf *, struct stat *, int), + int, int);' + +# Test code for whether the C compiler supports C89 (body of main). +ac_c_conftest_c89_main=' +ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); +' + +# Test code for whether the C compiler supports C99 (global declarations) +ac_c_conftest_c99_globals=' +// Does the compiler advertise C99 conformance? +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L +# error "Compiler does not advertise C99 conformance" +#endif + +#include +extern int puts (const char *); +extern int printf (const char *, ...); +extern int dprintf (int, const char *, ...); +extern void *malloc (size_t); + +// Check varargs macros. These examples are taken from C99 6.10.3.5. +// dprintf is used instead of fprintf to avoid needing to declare +// FILE and stderr. +#define debug(...) dprintf (2, __VA_ARGS__) +#define showlist(...) puts (#__VA_ARGS__) +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) +static void +test_varargs_macros (void) +{ + int x = 1234; + int y = 5678; + debug ("Flag"); + debug ("X = %d\n", x); + showlist (The first, second, and third items.); + report (x>y, "x is %d but y is %d", x, y); +} + +// Check long long types. +#define BIG64 18446744073709551615ull +#define BIG32 4294967295ul +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) +#if !BIG_OK + #error "your preprocessor is broken" +#endif +#if BIG_OK +#else + #error "your preprocessor is broken" +#endif +static long long int bignum = -9223372036854775807LL; +static unsigned long long int ubignum = BIG64; + +struct incomplete_array +{ + int datasize; + double data[]; +}; + +struct named_init { + int number; + const wchar_t *name; + double average; +}; + +typedef const char *ccp; + +static inline int +test_restrict (ccp restrict text) +{ + // See if C++-style comments work. + // Iterate through items via the restricted pointer. + // Also check for declarations in for loops. + for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) + continue; + return 0; +} + +// Check varargs and va_copy. +static bool +test_varargs (const char *format, ...) +{ + va_list args; + va_start (args, format); + va_list args_copy; + va_copy (args_copy, args); + + const char *str = ""; + int number = 0; + float fnumber = 0; + + while (*format) + { + switch (*format++) + { + case '\''s'\'': // string + str = va_arg (args_copy, const char *); + break; + case '\''d'\'': // int + number = va_arg (args_copy, int); + break; + case '\''f'\'': // float + fnumber = va_arg (args_copy, double); + break; + default: + break; + } + } + va_end (args_copy); + va_end (args); + + return *str && number && fnumber; +} +' + +# Test code for whether the C compiler supports C99 (body of main). +ac_c_conftest_c99_main=' + // Check bool. + _Bool success = false; + success |= (argc != 0); + + // Check restrict. + if (test_restrict ("String literal") == 0) + success = true; + char *restrict newvar = "Another string"; + + // Check varargs. + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); + test_varargs_macros (); + + // Check flexible array members. + struct incomplete_array *ia = + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); + ia->datasize = 10; + for (int i = 0; i < ia->datasize; ++i) + ia->data[i] = i * 1.234; + + // Check named initializers. + struct named_init ni = { + .number = 34, + .name = L"Test wide string", + .average = 543.34343, + }; + + ni.number = 58; + + int dynamic_array[ni.number]; + dynamic_array[0] = argv[0][0]; + dynamic_array[ni.number - 1] = 543; + + // work around unused variable warnings + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' + || dynamic_array[ni.number - 1] != 543); +' + +# Test code for whether the C compiler supports C11 (global declarations) +ac_c_conftest_c11_globals=' +// Does the compiler advertise C11 conformance? +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L +# error "Compiler does not advertise C11 conformance" +#endif + +// Check _Alignas. +char _Alignas (double) aligned_as_double; +char _Alignas (0) no_special_alignment; +extern char aligned_as_int; +char _Alignas (0) _Alignas (int) aligned_as_int; + +// Check _Alignof. +enum +{ + int_alignment = _Alignof (int), + int_array_alignment = _Alignof (int[100]), + char_alignment = _Alignof (char) +}; +_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); + +// Check _Noreturn. +int _Noreturn does_not_return (void) { for (;;) continue; } + +// Check _Static_assert. +struct test_static_assert +{ + int x; + _Static_assert (sizeof (int) <= sizeof (long int), + "_Static_assert does not work in struct"); + long int y; +}; + +// Check UTF-8 literals. +#define u8 syntax error! +char const utf8_literal[] = u8"happens to be ASCII" "another string"; + +// Check duplicate typedefs. +typedef long *long_ptr; +typedef long int *long_ptr; +typedef long_ptr long_ptr; + +// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. +struct anonymous +{ + union { + struct { int i; int j; }; + struct { int k; long int l; } w; + }; + int m; +} v1; +' + +# Test code for whether the C compiler supports C11 (body of main). +ac_c_conftest_c11_main=' + _Static_assert ((offsetof (struct anonymous, i) + == offsetof (struct anonymous, w.k)), + "Anonymous union alignment botch"); + v1.i = 2; + v1.w.k = 5; + ok |= v1.i != 5; +' + +# Test code for whether the C compiler supports C11 (complete). +ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} +${ac_c_conftest_c11_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + ${ac_c_conftest_c11_main} + return ok; +} +" + +# Test code for whether the C compiler supports C99 (complete). +ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + return ok; +} +" + +# Test code for whether the C compiler supports C89 (complete). +ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + return ok; +} +" + +# Test code for whether the C++ compiler supports C++98 (global declarations) +ac_cxx_conftest_cxx98_globals=' +// Does the compiler advertise C++98 conformance? +#if !defined __cplusplus || __cplusplus < 199711L +# error "Compiler does not advertise C++98 conformance" +#endif + +// These inclusions are to reject old compilers that +// lack the unsuffixed header files. +#include +#include + +// and are *not* freestanding headers in C++98. +extern void assert (int); +namespace std { + extern int strcmp (const char *, const char *); +} + +// Namespaces, exceptions, and templates were all added after "C++ 2.0". +using std::exception; +using std::strcmp; + +namespace { + +void test_exception_syntax() +{ + try { + throw "test"; + } catch (const char *s) { + // Extra parentheses suppress a warning when building autoconf itself, + // due to lint rules shared with more typical C programs. + assert (!(strcmp) (s, "test")); + } +} + +template struct test_template +{ + T const val; + explicit test_template(T t) : val(t) {} + template T add(U u) { return static_cast(u) + val; } +}; + +} // anonymous namespace +' + +# Test code for whether the C++ compiler supports C++98 (body of main) +ac_cxx_conftest_cxx98_main=' + assert (argc); + assert (! argv[0]); +{ + test_exception_syntax (); + test_template tt (2.0); + assert (tt.add (4) == 6.0); + assert (true && !false); +} +' + +# Test code for whether the C++ compiler supports C++11 (global declarations) +ac_cxx_conftest_cxx11_globals=' +// Does the compiler advertise C++ 2011 conformance? +#if !defined __cplusplus || __cplusplus < 201103L +# error "Compiler does not advertise C++11 conformance" +#endif + +namespace cxx11test +{ + constexpr int get_val() { return 20; } + + struct testinit + { + int i; + double d; + }; + + class delegate + { + public: + delegate(int n) : n(n) {} + delegate(): delegate(2354) {} + + virtual int getval() { return this->n; }; + protected: + int n; + }; + + class overridden : public delegate + { + public: + overridden(int n): delegate(n) {} + virtual int getval() override final { return this->n * 2; } + }; + + class nocopy + { + public: + nocopy(int i): i(i) {} + nocopy() = default; + nocopy(const nocopy&) = delete; + nocopy & operator=(const nocopy&) = delete; + private: + int i; + }; + + // for testing lambda expressions + template Ret eval(Fn f, Ret v) + { + return f(v); + } + + // for testing variadic templates and trailing return types + template auto sum(V first) -> V + { + return first; + } + template auto sum(V first, Args... rest) -> V + { + return first + sum(rest...); + } +} +' + +# Test code for whether the C++ compiler supports C++11 (body of main) +ac_cxx_conftest_cxx11_main=' +{ + // Test auto and decltype + auto a1 = 6538; + auto a2 = 48573953.4; + auto a3 = "String literal"; + + int total = 0; + for (auto i = a3; *i; ++i) { total += *i; } + + decltype(a2) a4 = 34895.034; +} +{ + // Test constexpr + short sa[cxx11test::get_val()] = { 0 }; +} +{ + // Test initializer lists + cxx11test::testinit il = { 4323, 435234.23544 }; +} +{ + // Test range-based for + int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, + 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; + for (auto &x : array) { x += 23; } +} +{ + // Test lambda expressions + using cxx11test::eval; + assert (eval ([](int x) { return x*2; }, 21) == 42); + double d = 2.0; + assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); + assert (d == 5.0); + assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); + assert (d == 5.0); +} +{ + // Test use of variadic templates + using cxx11test::sum; + auto a = sum(1); + auto b = sum(1, 2); + auto c = sum(1.0, 2.0, 3.0); +} +{ + // Test constructor delegation + cxx11test::delegate d1; + cxx11test::delegate d2(); + cxx11test::delegate d3(45); +} +{ + // Test override and final + cxx11test::overridden o1(55464); +} +{ + // Test nullptr + char *c = nullptr; +} +{ + // Test template brackets + test_template<::test_template> v(test_template(12)); +} +{ + // Unicode literals + char const *utf8 = u8"UTF-8 string \u2500"; + char16_t const *utf16 = u"UTF-8 string \u2500"; + char32_t const *utf32 = U"UTF-32 string \u2500"; +} +' + +# Test code for whether the C compiler supports C++11 (complete). +ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} +${ac_cxx_conftest_cxx11_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_cxx_conftest_cxx98_main} + ${ac_cxx_conftest_cxx11_main} + return ok; +} +" + +# Test code for whether the C compiler supports C++98 (complete). +ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_cxx_conftest_cxx98_main} + return ok; +} +" + +as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" +as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" +as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" +as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" +as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" +as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" +as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" +as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" +as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" + +# Auxiliary files required by this configure script. +ac_aux_files="config.guess config.sub" + +# Locations in which to look for auxiliary files. +ac_aux_dir_candidates="${srcdir}/config" + +# Search for a directory containing all of the required auxiliary files, +# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. +# If we don't find one directory that contains all the files we need, +# we report the set of missing files from the *first* directory in +# $ac_aux_dir_candidates and give up. +ac_missing_aux_files="" +ac_first_candidate=: +printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in $ac_aux_dir_candidates +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + as_found=: + + printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 + ac_aux_dir_found=yes + ac_install_sh= + for ac_aux in $ac_aux_files + do + # As a special case, if "install-sh" is required, that requirement + # can be satisfied by any of "install-sh", "install.sh", or "shtool", + # and $ac_install_sh is set appropriately for whichever one is found. + if test x"$ac_aux" = x"install-sh" + then + if test -f "${as_dir}install-sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 + ac_install_sh="${as_dir}install-sh -c" + elif test -f "${as_dir}install.sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 + ac_install_sh="${as_dir}install.sh -c" + elif test -f "${as_dir}shtool"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 + ac_install_sh="${as_dir}shtool install -c" + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} install-sh" + else + break + fi + fi + else + if test -f "${as_dir}${ac_aux}"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" + else + break + fi + fi + fi + done + if test "$ac_aux_dir_found" = yes; then + ac_aux_dir="$as_dir" + break + fi + ac_first_candidate=false + + as_found=false +done +IFS=$as_save_IFS +if $as_found +then : + +else $as_nop + as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +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. +if test -f "${ac_aux_dir}config.guess"; then + ac_config_guess="$SHELL ${ac_aux_dir}config.guess" +fi +if test -f "${ac_aux_dir}config.sub"; then + ac_config_sub="$SHELL ${ac_aux_dir}config.sub" +fi +if test -f "$ac_aux_dir/configure"; then + ac_configure="$SHELL ${ac_aux_dir}configure" +fi + # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false @@ -2585,12 +3138,12 @@ for ac_var in $ac_precious_vars; do eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { $as_echo "$as_me:${as_lineno-$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;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { $as_echo "$as_me:${as_lineno-$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;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -2599,24 +3152,24 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 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:${as_lineno-$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;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { $as_echo "$as_me:${as_lineno-$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;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +printf "%s\n" "$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:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +printf "%s\n" "$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=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in @@ -2626,11 +3179,12 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi done if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$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_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## @@ -2647,34 +3201,6 @@ ac_config_headers="$ac_config_headers HYPRE_config.h:config/HYPRE_config.h.in" -ac_aux_dir= -for ac_dir in config "$srcdir"/config; 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_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 -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. - @@ -2689,34 +3215,22 @@ HYPRE_BUGS="https://github.com/hypre-space/hypre/issues" HYPRE_SRCDIR="`pwd`" -cat >>confdefs.h <<_ACEOF -#define HYPRE_RELEASE_NAME "$HYPRE_NAME" -_ACEOF +printf "%s\n" "#define HYPRE_RELEASE_NAME \"$HYPRE_NAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HYPRE_RELEASE_VERSION "$HYPRE_VERSION" -_ACEOF +printf "%s\n" "#define HYPRE_RELEASE_VERSION \"$HYPRE_VERSION\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HYPRE_RELEASE_NUMBER $HYPRE_NUMBER -_ACEOF +printf "%s\n" "#define HYPRE_RELEASE_NUMBER $HYPRE_NUMBER" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HYPRE_RELEASE_DATE "$HYPRE_DATE" -_ACEOF +printf "%s\n" "#define HYPRE_RELEASE_DATE \"$HYPRE_DATE\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HYPRE_RELEASE_TIME "$HYPRE_TIME" -_ACEOF +printf "%s\n" "#define HYPRE_RELEASE_TIME \"$HYPRE_TIME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HYPRE_RELEASE_BUGS "$HYPRE_BUGS" -_ACEOF +printf "%s\n" "#define HYPRE_RELEASE_BUGS \"$HYPRE_BUGS\"" >>confdefs.h @@ -2728,50 +3242,45 @@ _ACEOF -if test -d "$HYPRE_SRCDIR/../.git"; then : +if test -d "$HYPRE_SRCDIR/../.git" +then : develop_string=$(git -C $HYPRE_SRCDIR describe --match 'v*' --long --abbrev=9) develop_lastag=$(git -C $HYPRE_SRCDIR describe --match 'v*' --abbrev=0) develop_number=$(git -C $HYPRE_SRCDIR rev-list --count $develop_lastag..HEAD) develop_branch=$(git -C $HYPRE_SRCDIR rev-parse --abbrev-ref HEAD) - if test -n "$develop_string"; then : + if test -n "$develop_string" +then : -cat >>confdefs.h <<_ACEOF -#define HYPRE_DEVELOP_STRING "$develop_string" -_ACEOF +printf "%s\n" "#define HYPRE_DEVELOP_STRING \"$develop_string\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HYPRE_DEVELOP_NUMBER $develop_number -_ACEOF +printf "%s\n" "#define HYPRE_DEVELOP_NUMBER $develop_number" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HYPRE_BRANCH_NAME "$develop_branch" -_ACEOF +printf "%s\n" "#define HYPRE_BRANCH_NAME \"$develop_branch\"" >>confdefs.h - if test "x$develop_branch" = "xmaster"; then : + if test "x$develop_branch" = "xmaster" +then : -cat >>confdefs.h <<_ACEOF -#define HYPRE_DEVELOP_BRANCH "$develop_branch" -_ACEOF +printf "%s\n" "#define HYPRE_DEVELOP_BRANCH \"$develop_branch\"" >>confdefs.h -else - { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: On branch $develop_branch, not the main development branch" >&5 -$as_echo "$as_me: NOTE: On branch $develop_branch, not the main development branch" >&6;} +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: NOTE: On branch $develop_branch, not the main development branch" >&5 +printf "%s\n" "$as_me: NOTE: On branch $develop_branch, not the main development branch" >&6;} fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: Could not describe development branch" >&5 -$as_echo "$as_me: NOTE: Could not describe development branch" >&6;} +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: NOTE: Could not describe development branch" >&5 +printf "%s\n" "$as_me: NOTE: Could not describe development branch" >&6;} fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: Could not find .git directory" >&5 -$as_echo "$as_me: NOTE: Could not find .git directory" >&6;} +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: NOTE: Could not find .git directory" >&5 +printf "%s\n" "$as_me: NOTE: Could not find .git directory" >&6;} fi @@ -2861,26 +3370,30 @@ hypre_lapack_lib_dir_old_style=no if test "x$build_alias" = "x" then - # Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else + + + # Make sure we can run config.sub. +$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +printf %s "checking build system type... " >&6; } +if test ${ac_cv_build+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_build_alias=$build_alias test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 +ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +printf "%s\n" "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; @@ -2903,21 +3416,22 @@ fi if test "x$host_alias" = "x" then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +printf %s "checking host system type... " >&6; } +if test ${ac_cv_host+y} +then : + printf %s "(cached) " >&6 +else $as_nop 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_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +printf "%s\n" "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; @@ -2944,33 +3458,36 @@ then fi # Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then : +if test ${enable_debug+y} +then : enableval=$enable_debug; case "${enableval}" in yes) hypre_using_debug=yes ;; no) hypre_using_debug=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; esac -else +else $as_nop hypre_using_debug=no fi # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then : +if test ${enable_shared+y} +then : enableval=$enable_shared; case "${enableval}" in yes) hypre_using_shared=yes ;; no) hypre_using_shared=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-shared" "$LINENO" 5 ;; esac -else +else $as_nop hypre_using_shared=no fi # Check whether --enable-mixedint was given. -if test "${enable_mixedint+set}" = set; then : +if test ${enable_mixedint+y} +then : enableval=$enable_mixedint; case "${enableval}" in yes) hypre_using_fei=no hypre_using_mixedint=yes @@ -2979,7 +3496,7 @@ if test "${enable_mixedint+set}" = set; then : hypre_using_distributed_ls=yes ;; *) as_fn_error $? "Bad value ${enableval} for --enable-mixedint" "$LINENO" 5 ;; esac -else +else $as_nop hypre_using_mixedint=no fi @@ -2987,19 +3504,20 @@ fi if test "$hypre_using_mixedint" = "yes" then -$as_echo "#define HYPRE_MIXEDINT 1" >>confdefs.h +printf "%s\n" "#define HYPRE_MIXEDINT 1" >>confdefs.h fi # Check whether --enable-bigint was given. -if test "${enable_bigint+set}" = set; then : +if test ${enable_bigint+y} +then : enableval=$enable_bigint; case "${enableval}" in yes) hypre_using_fei=no hypre_using_bigint=yes ;; no) hypre_using_bigint=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-bigint" "$LINENO" 5 ;; esac -else +else $as_nop hypre_using_bigint=no fi @@ -3007,19 +3525,20 @@ fi if test "$hypre_using_bigint" = "yes" then -$as_echo "#define HYPRE_BIGINT 1" >>confdefs.h +printf "%s\n" "#define HYPRE_BIGINT 1" >>confdefs.h fi # Check whether --enable-single was given. -if test "${enable_single+set}" = set; then : +if test ${enable_single+y} +then : enableval=$enable_single; case "${enableval}" in yes) hypre_using_fei=no hypre_using_single=yes ;; no) hypre_using_single=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-single" "$LINENO" 5 ;; esac -else +else $as_nop hypre_using_single=no fi @@ -3027,19 +3546,20 @@ fi if test "$hypre_using_single" = "yes" then -$as_echo "#define HYPRE_SINGLE 1" >>confdefs.h +printf "%s\n" "#define HYPRE_SINGLE 1" >>confdefs.h fi # Check whether --enable-longdouble was given. -if test "${enable_longdouble+set}" = set; then : +if test ${enable_longdouble+y} +then : enableval=$enable_longdouble; case "${enableval}" in yes) hypre_using_fei=no hypre_using_longdouble=yes ;; no) hypre_using_longdouble=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-longdouble" "$LINENO" 5 ;; esac -else +else $as_nop hypre_using_longdouble=no fi @@ -3047,19 +3567,20 @@ fi if test "$hypre_using_longdouble" = "yes" then -$as_echo "#define HYPRE_LONG_DOUBLE 1" >>confdefs.h +printf "%s\n" "#define HYPRE_LONG_DOUBLE 1" >>confdefs.h fi # Check whether --enable-complex was given. -if test "${enable_complex+set}" = set; then : +if test ${enable_complex+y} +then : enableval=$enable_complex; case "${enableval}" in yes) hypre_using_fei=no hypre_using_complex=yes ;; no) hypre_using_complex=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-complex" "$LINENO" 5 ;; esac -else +else $as_nop hypre_using_complex=no fi @@ -3067,19 +3588,20 @@ fi if test "$hypre_using_complex" = "yes" then -$as_echo "#define HYPRE_COMPLEX 1" >>confdefs.h +printf "%s\n" "#define HYPRE_COMPLEX 1" >>confdefs.h fi # Check whether --enable-mixed-precision was given. -if test "${enable_mixed_precision+set}" = set; then : +if test ${enable_mixed_precision+y} +then : enableval=$enable_mixed_precision; case "${enableval}" in yes) hypre_using_fei=no hypre_using_mixed_precision=yes ;; no) hypre_using_mixed_precision=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-mixed-precision" "$LINENO" 5 ;; esac -else +else $as_nop hypre_using_mixed_precision=no fi @@ -3088,33 +3610,33 @@ MP_BUILD=0 if test "$hypre_using_mixed_precision" = "yes" then -$as_echo "#define HYPRE_MIXED_PRECISION 1" >>confdefs.h +printf "%s\n" "#define HYPRE_MIXED_PRECISION 1" >>confdefs.h MP_BUILD=1 fi # Check whether --enable-maxdim was given. -if test "${enable_maxdim+set}" = set; then : +if test ${enable_maxdim+y} +then : enableval=$enable_maxdim; hypre_maxdim=${enableval} -else +else $as_nop hypre_maxdim=3 fi -cat >>confdefs.h <<_ACEOF -#define HYPRE_MAXDIM $hypre_maxdim -_ACEOF +printf "%s\n" "#define HYPRE_MAXDIM $hypre_maxdim" >>confdefs.h # Check whether --enable-persistent was given. -if test "${enable_persistent+set}" = set; then : +if test ${enable_persistent+y} +then : enableval=$enable_persistent; case "${enableval}" in yes) hypre_using_persistent=yes ;; no) hypre_using_persistent=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-persistent" "$LINENO" 5 ;; esac -else +else $as_nop hypre_using_persistent=no fi @@ -3122,18 +3644,19 @@ fi if test "$hypre_using_persistent" = "yes" then -$as_echo "#define HYPRE_USING_PERSISTENT_COMM 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_PERSISTENT_COMM 1" >>confdefs.h fi # Check whether --enable-hopscotch was given. -if test "${enable_hopscotch+set}" = set; then : +if test ${enable_hopscotch+y} +then : enableval=$enable_hopscotch; case "${enableval}" in yes) hypre_using_hopscotch=yes ;; no) hypre_using_hopscotch=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-hopscotch" "$LINENO" 5 ;; esac -else +else $as_nop hypre_using_hopscotch=no fi @@ -3141,83 +3664,89 @@ fi if test "$hypre_using_hopscotch" = "yes" then -$as_echo "#define HYPRE_HOPSCOTCH 1" >>confdefs.h +printf "%s\n" "#define HYPRE_HOPSCOTCH 1" >>confdefs.h fi # Check whether --enable-fortran was given. -if test "${enable_fortran+set}" = set; then : +if test ${enable_fortran+y} +then : enableval=$enable_fortran; case "${enableval}" in yes) hypre_using_fortran=yes ;; no) hypre_using_fortran=no ;; *) hypre_using_fortran=yes ;; esac -else +else $as_nop hypre_using_fortran=yes fi # Check whether --enable-unified-memory was given. -if test "${enable_unified_memory+set}" = set; then : +if test ${enable_unified_memory+y} +then : enableval=$enable_unified_memory; case "${enableval}" in yes) hypre_using_um=yes ;; no) hypre_using_um=no ;; *) hypre_using_um=no ;; esac -else +else $as_nop hypre_using_um=no fi # Check whether --enable-device-memory-pool was given. -if test "${enable_device_memory_pool+set}" = set; then : +if test ${enable_device_memory_pool+y} +then : enableval=$enable_device_memory_pool; case "${enableval}" in yes) hypre_using_device_pool=yes ;; no) hypre_using_device_pool=no ;; *) hypre_using_device_pool=no ;; esac -else +else $as_nop hypre_using_device_pool=no fi # Check whether --enable-device-malloc-async was given. -if test "${enable_device_malloc_async+set}" = set; then : +if test ${enable_device_malloc_async+y} +then : enableval=$enable_device_malloc_async; case "${enableval}" in yes) hypre_using_device_malloc_async=yes ;; no) hypre_using_device_malloc_async=no ;; *) hypre_using_device_malloc_async=no ;; esac -else +else $as_nop hypre_using_device_malloc_async=no fi # Check whether --enable-gpu-profiling was given. -if test "${enable_gpu_profiling+set}" = set; then : +if test ${enable_gpu_profiling+y} +then : enableval=$enable_gpu_profiling; case "${enableval}" in yes) hypre_using_gpu_profiling=yes ;; no) hypre_using_gpu_profiling=no ;; *) hypre_using_gpu_profiling=no ;; esac -else +else $as_nop hypre_using_gpu_profiling=no fi # Check whether --enable-gpu-aware-mpi was given. -if test "${enable_gpu_aware_mpi+set}" = set; then : +if test ${enable_gpu_aware_mpi+y} +then : enableval=$enable_gpu_aware_mpi; case "${enableval}" in yes) hypre_gpu_mpi=yes ;; no) hypre_gpu_mpi=no ;; *) as_fn_error $? "Bad value ${enableval} for --enable-gpu-aware-mpi" "$LINENO" 5 ;; esac -else +else $as_nop hypre_gpu_mpi=no fi @@ -3309,7 +3838,8 @@ fi # Check whether --with-cxxstandard was given. -if test "${with_cxxstandard+set}" = set; then : +if test ${with_cxxstandard+y} +then : withval=$with_cxxstandard; hypre_cxxstd=$withval fi @@ -3318,7 +3848,8 @@ fi # Check whether --with-LD was given. -if test "${with_LD+set}" = set; then : +if test ${with_LD+y} +then : withval=$with_LD; LD=$withval fi @@ -3326,7 +3857,8 @@ fi # Check whether --with-LDFLAGS was given. -if test "${with_LDFLAGS+set}" = set; then : +if test ${with_LDFLAGS+y} +then : withval=$with_LDFLAGS; LDFLAGS=$withval fi @@ -3334,7 +3866,8 @@ fi # Check whether --with-extra-CFLAGS was given. -if test "${with_extra_CFLAGS+set}" = set; then : +if test ${with_extra_CFLAGS+y} +then : withval=$with_extra_CFLAGS; EXTRA_CFLAGS=$withval fi @@ -3342,7 +3875,8 @@ fi # Check whether --with-extra-CXXFLAGS was given. -if test "${with_extra_CXXFLAGS+set}" = set; then : +if test ${with_extra_CXXFLAGS+y} +then : withval=$with_extra_CXXFLAGS; EXTRA_CXXFLAGS=$withval fi @@ -3350,7 +3884,8 @@ fi # Check whether --with-extra-CUFLAGS was given. -if test "${with_extra_CUFLAGS+set}" = set; then : +if test ${with_extra_CUFLAGS+y} +then : withval=$with_extra_CUFLAGS; EXTRA_CUFLAGS=$withval fi @@ -3358,7 +3893,8 @@ fi # Check whether --with-extra-BUILDFLAGS was given. -if test "${with_extra_BUILDFLAGS+set}" = set; then : +if test ${with_extra_BUILDFLAGS+y} +then : withval=$with_extra_BUILDFLAGS; EXTRA_BUILDFLAGS=$withval fi @@ -3366,7 +3902,8 @@ fi # Check whether --with-extra-incpath was given. -if test "${with_extra_incpath+set}" = set; then : +if test ${with_extra_incpath+y} +then : withval=$with_extra_incpath; CCFLAGS="${CCFLAGS} -I`echo ${withval}|sed 's/ /\ -I/g'`" fi @@ -3374,7 +3911,8 @@ fi # Check whether --with-extra-ldpath was given. -if test "${with_extra_ldpath+set}" = set; then : +if test ${with_extra_ldpath+y} +then : withval=$with_extra_ldpath; LDFLAGS="-L`echo ${withval}|sed 's/ /\ -L/g'` ${LDFLAGS}" fi @@ -3382,7 +3920,8 @@ fi # Check whether --with-insure was given. -if test "${with_insure+set}" = set; then : +if test ${with_insure+y} +then : withval=$with_insure; case "${withval}" in yes) hypre_using_insure=yes hypre_using_debug=yes @@ -3398,7 +3937,8 @@ fi # Check whether --with-strict-checking was given. -if test "${with_strict_checking+set}" = set; then : +if test ${with_strict_checking+y} +then : withval=$with_strict_checking; case "${withval}" in yes) hypre_user_chose_ccompilers=yes @@ -3414,11 +3954,12 @@ if test "${with_strict_checking+set}" = set; then : 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -3426,11 +3967,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3441,11 +3986,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3487,11 +4032,12 @@ test -n "$CC" || CC="""" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -3499,11 +4045,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3514,11 +4064,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3537,11 +4087,12 @@ test -n "$CXX" || CXX="""" 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -3549,11 +4100,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3564,11 +4119,11 @@ fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -$as_echo "$FC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +printf "%s\n" "$FC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3584,7 +4139,7 @@ test -n "$FC" || FC="""" fi -$as_echo "#define HYPRE_SEQUENTIAL 1" >>confdefs.h +printf "%s\n" "#define HYPRE_SEQUENTIAL 1" >>confdefs.h ;; esac @@ -3595,12 +4150,13 @@ fi # Check whether --with-MPI-include was given. -if test "${with_MPI_include+set}" = set; then : +if test ${with_MPI_include+y} +then : withval=$with_MPI_include; for mpi_dir in $withval; do MPIINCLUDE="$MPIINCLUDE -I$mpi_dir" done; hypre_user_chose_mpi=yes -else +else $as_nop hypre_user_chose_mpi=no fi @@ -3608,7 +4164,8 @@ fi # Check whether --with-MPI-libs was given. -if test "${with_MPI_libs+set}" = set; then : +if test ${with_MPI_libs+y} +then : withval=$with_MPI_libs; for mpi_lib in $withval; do MPILIBS="$MPILIBS -l$mpi_lib" done; @@ -3619,7 +4176,8 @@ fi # Check whether --with-MPI-lib-dirs was given. -if test "${with_MPI_lib_dirs+set}" = set; then : +if test ${with_MPI_lib_dirs+y} +then : withval=$with_MPI_lib_dirs; for mpi_lib_dir in $withval; do MPILIBDIRS="-L$mpi_lib_dir $MPILIBDIRS" done; @@ -3630,13 +4188,14 @@ fi # Check whether --with-MPI-flags was given. -if test "${with_MPI_flags+set}" = set; then : +if test ${with_MPI_flags+y} +then : withval=$with_MPI_flags; case "${withval}" in yes) MPIFLAGS="" ;; no) MPIFLAGS="" ;; *) MPIFLAGS=$withval ;; esac -else +else $as_nop MPIFLAGS="" fi @@ -3644,13 +4203,14 @@ fi # Check whether --with-node-aware-mpi was given. -if test "${with_node_aware_mpi+set}" = set; then : +if test ${with_node_aware_mpi+y} +then : withval=$with_node_aware_mpi; case "$withval" in yes) hypre_using_node_aware_mpi=yes;; no) hypre_using_node_aware_mpi=no ;; *) hypre_using_node_aware_mpi=no ;; esac -else +else $as_nop hypre_using_node_aware_mpi=no fi @@ -3658,7 +4218,8 @@ fi # Check whether --with-node-aware-mpi-include was given. -if test "${with_node_aware_mpi_include+set}" = set; then : +if test ${with_node_aware_mpi_include+y} +then : withval=$with_node_aware_mpi_include; for nap_dir in $withval; do HYPRE_NAP_INCLUDE="$HYPRE_NAP_INCLUDE -I$nap_dir" done; @@ -3669,13 +4230,14 @@ fi # Check whether --with-memory_tracker was given. -if test "${with_memory_tracker+set}" = set; then : +if test ${with_memory_tracker+y} +then : withval=$with_memory_tracker; case "$withval" in yes) hypre_using_memory_tracker=yes;; no) hypre_using_memory_tracker=no ;; *) hypre_using_memory_tracker=no ;; esac -else +else $as_nop hypre_using_memory_tracker=no fi @@ -3683,13 +4245,14 @@ fi # Check whether --with-test_using_host was given. -if test "${with_test_using_host+set}" = set; then : +if test ${with_test_using_host+y} +then : withval=$with_test_using_host; case "$withval" in yes) hypre_test_using_host=yes;; no) hypre_test_using_host=no ;; *) hypre_test_using_host=no ;; esac -else +else $as_nop hypre_test_using_host=no fi @@ -3698,7 +4261,8 @@ fi # Check whether --with-blas-lib was given. -if test "${with_blas_lib+set}" = set; then : +if test ${with_blas_lib+y} +then : withval=$with_blas_lib; for blas_lib in $withval; do BLASLIBS="$BLASLIBS $blas_lib" done; @@ -3709,7 +4273,8 @@ fi # Check whether --with-blas-libs was given. -if test "${with_blas_libs+set}" = set; then : +if test ${with_blas_libs+y} +then : withval=$with_blas_libs; for blas_lib in $withval; do BLASLIBS="$BLASLIBS -l$blas_lib" done; @@ -3721,7 +4286,8 @@ fi # Check whether --with-blas-lib-dirs was given. -if test "${with_blas_lib_dirs+set}" = set; then : +if test ${with_blas_lib_dirs+y} +then : withval=$with_blas_lib_dirs; for blas_lib_dir in $withval; do BLASLIBDIRS="-L$blas_lib_dir $BLASLIBDIRS" done; @@ -3734,7 +4300,8 @@ fi # Check whether --with-lapack-lib was given. -if test "${with_lapack_lib+set}" = set; then : +if test ${with_lapack_lib+y} +then : withval=$with_lapack_lib; for lapack_lib in $withval; do LAPACKLIBS="$LAPACKLIBS $lapack_lib" done; @@ -3745,7 +4312,8 @@ fi # Check whether --with-lapack-libs was given. -if test "${with_lapack_libs+set}" = set; then : +if test ${with_lapack_libs+y} +then : withval=$with_lapack_libs; for lapack_lib in $withval; do LAPACKLIBS="$LAPACKLIBS -l$lapack_lib" done; @@ -3757,7 +4325,8 @@ fi # Check whether --with-lapack-lib-dirs was given. -if test "${with_lapack_lib_dirs+set}" = set; then : +if test ${with_lapack_lib_dirs+y} +then : withval=$with_lapack_lib_dirs; for lapack_lib_dir in $withval; do LAPACKLIBDIRS="-L$lapack_lib_dir $LAPACKLIBDIRS" done; @@ -3771,7 +4340,8 @@ fi # Check whether --with-fmangle was given. -if test "${with_fmangle+set}" = set; then : +if test ${with_fmangle+y} +then : withval=$with_fmangle; hypre_fmangle=0; case "$withval" in no-underscores) hypre_fmangle=1 ;; @@ -3781,22 +4351,21 @@ if test "${with_fmangle+set}" = set; then : one-before-after) hypre_fmangle=5 ;; esac -else +else $as_nop hypre_fmangle=0 fi -cat >>confdefs.h <<_ACEOF -#define HYPRE_FMANGLE $hypre_fmangle -_ACEOF +printf "%s\n" "#define HYPRE_FMANGLE $hypre_fmangle" >>confdefs.h # Check whether --with-fmangle-blas was given. -if test "${with_fmangle_blas+set}" = set; then : +if test ${with_fmangle_blas+y} +then : withval=$with_fmangle_blas; hypre_fmangle_blas=0; case "$withval" in no-underscores) hypre_fmangle_blas=1 ;; @@ -3806,22 +4375,21 @@ if test "${with_fmangle_blas+set}" = set; then : one-before-after) hypre_fmangle_blas=5 ;; esac -else +else $as_nop hypre_fmangle_blas=0 fi -cat >>confdefs.h <<_ACEOF -#define HYPRE_FMANGLE_BLAS $hypre_fmangle_blas -_ACEOF +printf "%s\n" "#define HYPRE_FMANGLE_BLAS $hypre_fmangle_blas" >>confdefs.h # Check whether --with-fmangle-lapack was given. -if test "${with_fmangle_lapack+set}" = set; then : +if test ${with_fmangle_lapack+y} +then : withval=$with_fmangle_lapack; hypre_fmangle_lapack=0; case "$withval" in no-underscores) hypre_fmangle_lapack=1 ;; @@ -3831,24 +4399,23 @@ if test "${with_fmangle_lapack+set}" = set; then : one-before-after) hypre_fmangle_lapack=5 ;; esac -else +else $as_nop hypre_fmangle_lapack=0 fi -cat >>confdefs.h <<_ACEOF -#define HYPRE_FMANGLE_LAPACK $hypre_fmangle_lapack -_ACEOF +printf "%s\n" "#define HYPRE_FMANGLE_LAPACK $hypre_fmangle_lapack" >>confdefs.h # Check whether --with-print-errors was given. -if test "${with_print_errors+set}" = set; then : +if test ${with_print_errors+y} +then : withval=$with_print_errors; if test "$withval" = "yes" then -$as_echo "#define HYPRE_PRINT_ERRORS 1" >>confdefs.h +printf "%s\n" "#define HYPRE_PRINT_ERRORS 1" >>confdefs.h fi @@ -3857,11 +4424,12 @@ fi # Check whether --with-timing was given. -if test "${with_timing+set}" = set; then : +if test ${with_timing+y} +then : withval=$with_timing; if test "$withval" = "yes" then -$as_echo "#define HYPRE_TIMING 1" >>confdefs.h +printf "%s\n" "#define HYPRE_TIMING 1" >>confdefs.h fi @@ -3870,12 +4438,13 @@ fi # Check whether --with-openmp was given. -if test "${with_openmp+set}" = set; then : +if test ${with_openmp+y} +then : withval=$with_openmp; case "${withval}" in yes) hypre_using_openmp=yes;; no) hypre_using_openmp=no ;; esac -else +else $as_nop hypre_using_openmp=no fi @@ -3883,12 +4452,13 @@ fi # Check whether --with-device-openmp was given. -if test "${with_device_openmp+set}" = set; then : +if test ${with_device_openmp+y} +then : withval=$with_device_openmp; case "${withval}" in yes) hypre_using_device_openmp=yes ;; no) hypre_using_device_openmp=no ;; esac -else +else $as_nop hypre_using_device_openmp=no fi @@ -3897,7 +4467,8 @@ fi # Check whether --with-superlu was given. -if test "${with_superlu+set}" = set; then : +if test ${with_superlu+y} +then : withval=$with_superlu; case "${withval}" in no) hypre_using_superlu=no ;; *) hypre_using_superlu=yes ;; @@ -3906,15 +4477,17 @@ if test "${with_superlu+set}" = set; then : fi -if test "x$with_superlu" = "xyes"; then : +if test "x$with_superlu" = "xyes" +then : -$as_echo "#define HAVE_SUPERLU 1" >>confdefs.h +printf "%s\n" "#define HAVE_SUPERLU 1" >>confdefs.h fi # Check whether --with-superlu-include was given. -if test "${with_superlu_include+set}" = set; then : +if test ${with_superlu_include+y} +then : withval=$with_superlu_include; for superlu_inc_dir in $withval; do SUPERLU_INCLUDE="-I$superlu_inc_dir $SUPERLU_INCLUDE" done @@ -3924,7 +4497,8 @@ fi # Check whether --with-superlu-lib was given. -if test "${with_superlu_lib+set}" = set; then : +if test ${with_superlu_lib+y} +then : withval=$with_superlu_lib; for superlu_lib in $withval; do SUPERLU_LIBS="$SUPERLU_LIBS $superlu_lib" done @@ -3935,7 +4509,8 @@ fi # Check whether --with-dsuperlu was given. -if test "${with_dsuperlu+set}" = set; then : +if test ${with_dsuperlu+y} +then : withval=$with_dsuperlu; case "${withval}" in no) hypre_using_dsuperlu=no ;; *) hypre_using_dsuperlu=yes ;; @@ -3944,15 +4519,17 @@ if test "${with_dsuperlu+set}" = set; then : fi -if test "x$with_dsuperlu" = "xyes"; then : +if test "x$with_dsuperlu" = "xyes" +then : -$as_echo "#define HYPRE_USING_DSUPERLU 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_DSUPERLU 1" >>confdefs.h fi # Check whether --with-dsuperlu-include was given. -if test "${with_dsuperlu_include+set}" = set; then : +if test ${with_dsuperlu_include+y} +then : withval=$with_dsuperlu_include; for dsuperlu_inc_dir in $withval; do DSUPERLU_INCLUDE="-I$dsuperlu_inc_dir $DSUPERLU_INCLUDE" done @@ -3962,7 +4539,8 @@ fi # Check whether --with-dsuperlu-lib was given. -if test "${with_dsuperlu_lib+set}" = set; then : +if test ${with_dsuperlu_lib+y} +then : withval=$with_dsuperlu_lib; for dsuperlu_lib in $withval; do DSUPERLU_LIBS="$DSUPERLU_LIBS $dsuperlu_lib" done @@ -3973,7 +4551,8 @@ fi # Check whether --with-fei-inc-dir was given. -if test "${with_fei_inc_dir+set}" = set; then : +if test ${with_fei_inc_dir+y} +then : withval=$with_fei_inc_dir; HYPRE_FEI_BASE_DIR="$withval"; hypre_using_fei=yes @@ -3983,7 +4562,8 @@ fi # Check whether --with-mli was given. -if test "${with_mli+set}" = set; then : +if test ${with_mli+y} +then : withval=$with_mli; case "${withval}" in no) hypre_using_mli=no ;; *) hypre_using_mli=yes ;; @@ -3995,7 +4575,8 @@ fi # Check whether --with-MPI was given. -if test "${with_MPI+set}" = set; then : +if test ${with_MPI+y} +then : withval=$with_MPI; case "$withval" in no) hypre_using_mpi=no ;; *) hypre_using_mpi=yes ;; @@ -4007,13 +4588,14 @@ fi # Check whether --with-cuda was given. -if test "${with_cuda+set}" = set; then : +if test ${with_cuda+y} +then : withval=$with_cuda; case "$withval" in yes) hypre_using_cuda=yes ;; no) hypre_using_cuda=no ;; *) hypre_using_cuda=no ;; esac -else +else $as_nop hypre_using_cuda=no fi @@ -4021,52 +4603,56 @@ fi # Check whether --with-hip was given. -if test "${with_hip+set}" = set; then : +if test ${with_hip+y} +then : withval=$with_hip; case "$withval" in yes) hypre_using_hip=yes ;; no) hypre_using_hip=no ;; *) hypre_using_hip=no ;; esac -else +else $as_nop hypre_using_hip=no fi # Check whether --enable-rocsparse was given. -if test "${enable_rocsparse+set}" = set; then : +if test ${enable_rocsparse+y} +then : enableval=$enable_rocsparse; case "${enableval}" in yes) hypre_using_rocsparse=yes ;; no) hypre_using_rocsparse=no ;; *) hypre_using_rocsparse=yes ;; esac -else +else $as_nop hypre_using_rocsparse=yes fi # Check whether --enable-rocblas was given. -if test "${enable_rocblas+set}" = set; then : +if test ${enable_rocblas+y} +then : enableval=$enable_rocblas; case "${enableval}" in yes) hypre_using_rocblas=yes ;; no) hypre_using_rocblas=no ;; *) hypre_using_rocblas=no ;; esac -else +else $as_nop hypre_using_rocblas=no fi # Check whether --enable-rocrand was given. -if test "${enable_rocrand+set}" = set; then : +if test ${enable_rocrand+y} +then : enableval=$enable_rocrand; case "${enableval}" in yes) hypre_using_rocrand=yes ;; no) hypre_using_rocrand=no ;; *) hypre_using_rocrand=yes ;; esac -else +else $as_nop hypre_using_rocrand=yes fi @@ -4074,13 +4660,14 @@ fi # Check whether --with-sycl was given. -if test "${with_sycl+set}" = set; then : +if test ${with_sycl+y} +then : withval=$with_sycl; case "$withval" in yes) hypre_using_sycl=yes ;; no) hypre_using_sycl=no ;; *) hypre_using_sycl=no ;; esac -else +else $as_nop hypre_using_sycl=no fi @@ -4089,7 +4676,8 @@ fi # Check whether --with-cuda-home was given. -if test "${with_cuda_home+set}" = set; then : +if test ${with_cuda_home+y} +then : withval=$with_cuda_home; for cuda_dir in $withval; do CUDA_HOME="$cuda_dir" done; @@ -4100,7 +4688,8 @@ fi # Check whether --with-gpu-arch was given. -if test "${with_gpu_arch+set}" = set; then : +if test ${with_gpu_arch+y} +then : withval=$with_gpu_arch; if test "x${withval}" != "x" then @@ -4115,13 +4704,14 @@ fi # Check whether --enable-cublas was given. -if test "${enable_cublas+set}" = set; then : +if test ${enable_cublas+y} +then : enableval=$enable_cublas; case "${enableval}" in yes) hypre_using_cublas=yes ;; no) hypre_using_cublas=no ;; *) hypre_using_cublas=no ;; esac -else +else $as_nop case "$hypre_using_cuda" in yes) hypre_using_cublas=yes ;; no) hypre_using_cublas=no ;; @@ -4132,13 +4722,14 @@ fi # Check whether --enable-curand was given. -if test "${enable_curand+set}" = set; then : +if test ${enable_curand+y} +then : enableval=$enable_curand; case "${enableval}" in yes) hypre_using_curand=yes ;; no) hypre_using_curand=no ;; *) hypre_using_curand=no ;; esac -else +else $as_nop case "$hypre_using_cuda" in yes) hypre_using_curand=yes ;; no) hypre_using_curand=no ;; @@ -4149,13 +4740,14 @@ fi # Check whether --enable-cuda-streams was given. -if test "${enable_cuda_streams+set}" = set; then : +if test ${enable_cuda_streams+y} +then : enableval=$enable_cuda_streams; case "${enableval}" in yes) hypre_using_cuda_streams=yes ;; no) hypre_using_cuda_streams=no ;; *) hypre_using_cuda_streams=yes ;; esac -else +else $as_nop case "$hypre_using_cuda" in yes) hypre_using_cuda_streams=yes ;; no) hypre_using_cuda_streams=no ;; @@ -4165,13 +4757,14 @@ fi # Check whether --enable-cusparse was given. -if test "${enable_cusparse+set}" = set; then : +if test ${enable_cusparse+y} +then : enableval=$enable_cusparse; case "${enableval}" in yes) hypre_using_cusparse=yes ;; no) hypre_using_cusparse=no ;; *) hypre_using_cusparse=no ;; esac -else +else $as_nop case "$hypre_using_cuda" in yes) hypre_using_cusparse=yes ;; no) hypre_using_cusparse=no ;; @@ -4181,13 +4774,14 @@ fi # Check whether --enable-cusolver was given. -if test "${enable_cusolver+set}" = set; then : +if test ${enable_cusolver+y} +then : enableval=$enable_cusolver; case "${enableval}" in yes) hypre_using_cusolver=yes ;; no) hypre_using_cusolver=no ;; *) hypre_using_cusolver=no ;; esac -else +else $as_nop hypre_using_cusolver=no fi @@ -4196,7 +4790,8 @@ fi # Check whether --with-sycl-target was given. -if test "${with_sycl_target+set}" = set; then : +if test ${with_sycl_target+y} +then : withval=$with_sycl_target; if test "x${withval}" != "x" then @@ -4212,7 +4807,8 @@ fi # Check whether --with-sycl-target-backend was given. -if test "${with_sycl_target_backend+set}" = set; then : +if test ${with_sycl_target_backend+y} +then : withval=$with_sycl_target_backend; if test "x${withval}" != "x" then @@ -4227,39 +4823,42 @@ fi # Check whether --enable-onemklsparse was given. -if test "${enable_onemklsparse+set}" = set; then : +if test ${enable_onemklsparse+y} +then : enableval=$enable_onemklsparse; case "${enableval}" in yes) hypre_using_onemklsparse=yes ;; no) hypre_using_onemklsparse=no ;; *) hypre_using_onemklsparse=yes ;; esac -else +else $as_nop hypre_using_onemklsparse=yes fi # Check whether --enable-onemklblas was given. -if test "${enable_onemklblas+set}" = set; then : +if test ${enable_onemklblas+y} +then : enableval=$enable_onemklblas; case "${enableval}" in yes) hypre_using_onemklblas=yes ;; no) hypre_using_onemklblas=no ;; *) hypre_using_onemklblas=yes ;; esac -else +else $as_nop hypre_using_onemklblas=yes fi # Check whether --enable-onemklrand was given. -if test "${enable_onemklrand+set}" = set; then : +if test ${enable_onemklrand+y} +then : enableval=$enable_onemklrand; case "${enableval}" in yes) hypre_using_onemklrand=yes ;; no) hypre_using_onemklrand=no ;; *) hypre_using_onemklrand=yes ;; esac -else +else $as_nop hypre_using_onemklrand=yes fi @@ -4268,13 +4867,14 @@ fi # Check whether --with-raja was given. -if test "${with_raja+set}" = set; then : +if test ${with_raja+y} +then : withval=$with_raja; case "$withval" in yes) hypre_using_raja=yes;; no) hypre_using_raja=no ;; *) hypre_using_raja=no ;; esac -else +else $as_nop hypre_using_raja=no fi @@ -4282,7 +4882,8 @@ fi # Check whether --with-raja-include was given. -if test "${with_raja_include+set}" = set; then : +if test ${with_raja_include+y} +then : withval=$with_raja_include; for raja_dir in $withval; do HYPRE_RAJA_INCLUDE="-I$raja_dir $HYPRE_RAJA_INCLUDE" done; @@ -4293,7 +4894,8 @@ fi # Check whether --with-raja-lib was given. -if test "${with_raja_lib+set}" = set; then : +if test ${with_raja_lib+y} +then : withval=$with_raja_lib; for raja_lib in $withval; do HYPRE_RAJA_LIB="$raja_lib $HYPRE_RAJA_LIB" done; @@ -4304,7 +4906,8 @@ fi # Check whether --with-raja-libs was given. -if test "${with_raja_libs+set}" = set; then : +if test ${with_raja_libs+y} +then : withval=$with_raja_libs; for raja_lib in $withval; do HYPRE_RAJA_LIB="-l$raja_lib $HYPRE_RAJA_LIB" done; @@ -4315,7 +4918,8 @@ fi # Check whether --with-raja-lib-dirs was given. -if test "${with_raja_lib_dirs+set}" = set; then : +if test ${with_raja_lib_dirs+y} +then : withval=$with_raja_lib_dirs; for raja_lib_dir in $withval; do HYPRE_RAJA_LIB_DIR="-L$raja_lib_dir $HYPRE_RAJA_LIB_DIR" done; @@ -4327,13 +4931,14 @@ fi # Check whether --with-kokkos was given. -if test "${with_kokkos+set}" = set; then : +if test ${with_kokkos+y} +then : withval=$with_kokkos; case "$withval" in yes) hypre_using_kokkos=yes ;; no) hypre_using_kokkos=no ;; *) hypre_using_kokkos=no ;; esac -else +else $as_nop hypre_using_kokkos=no fi @@ -4341,7 +4946,8 @@ fi # Check whether --with-kokkos-include was given. -if test "${with_kokkos_include+set}" = set; then : +if test ${with_kokkos_include+y} +then : withval=$with_kokkos_include; for kokkos_dir in $withval; do HYPRE_KOKKOS_INCLUDE="-I$kokkos_dir $HYPRE_KOKKOS_INCLUDE" done; @@ -4352,7 +4958,8 @@ fi # Check whether --with-kokkos-lib was given. -if test "${with_kokkos_lib+set}" = set; then : +if test ${with_kokkos_lib+y} +then : withval=$with_kokkos_lib; for kokkos_lib in $withval; do HYPRE_KOKKOS_LIB="$kokkos_lib $HYPRE_KOKKOS_LIB" done; @@ -4363,7 +4970,8 @@ fi # Check whether --with-kokkos-libs was given. -if test "${with_kokkos_libs+set}" = set; then : +if test ${with_kokkos_libs+y} +then : withval=$with_kokkos_libs; for kokkos_lib in $withval; do HYPRE_KOKKOS_LIB="-l$kokkos_lib $HYPRE_KOKKOS_LIB" done; @@ -4374,7 +4982,8 @@ fi # Check whether --with-kokkos-lib-dirs was given. -if test "${with_kokkos_lib_dirs+set}" = set; then : +if test ${with_kokkos_lib_dirs+y} +then : withval=$with_kokkos_lib_dirs; for kokkos_lib_dir in $withval; do HYPRE_KOKKOS_LIB_DIR="-L$kokkos_lib_dir $HYPRE_KOKKOS_LIB_DIR" done; @@ -4386,13 +4995,14 @@ fi # Check whether --with-umpire-host was given. -if test "${with_umpire_host+set}" = set; then : +if test ${with_umpire_host+y} +then : withval=$with_umpire_host; case "${withval}" in yes) hypre_using_umpire_host=yes ;; no) hypre_using_umpire_host=no ;; *) hypre_using_umpire_host=no ;; esac -else +else $as_nop hypre_using_umpire_host=no fi @@ -4400,13 +5010,14 @@ fi # Check whether --with-umpire-device was given. -if test "${with_umpire_device+set}" = set; then : +if test ${with_umpire_device+y} +then : withval=$with_umpire_device; case "${withval}" in yes) hypre_using_umpire_device=yes ;; no) hypre_using_umpire_device=no ;; *) hypre_using_umpire_device=no ;; esac -else +else $as_nop hypre_using_umpire_device=no fi @@ -4414,13 +5025,14 @@ fi # Check whether --with-umpire-um was given. -if test "${with_umpire_um+set}" = set; then : +if test ${with_umpire_um+y} +then : withval=$with_umpire_um; case "${withval}" in yes) hypre_using_umpire_um=yes ;; no) hypre_using_umpire_um=no ;; *) hypre_using_umpire_um=no ;; esac -else +else $as_nop hypre_using_umpire_um=no fi @@ -4428,13 +5040,14 @@ fi # Check whether --with-umpire-pinned was given. -if test "${with_umpire_pinned+set}" = set; then : +if test ${with_umpire_pinned+y} +then : withval=$with_umpire_pinned; case "${withval}" in yes) hypre_using_umpire_pinned=yes ;; no) hypre_using_umpire_pinned=no ;; *) hypre_using_umpire_pinned=no ;; esac -else +else $as_nop hypre_using_umpire_pinned=no fi @@ -4442,7 +5055,8 @@ fi # Check whether --with-umpire was given. -if test "${with_umpire+set}" = set; then : +if test ${with_umpire+y} +then : withval=$with_umpire; case "${withval}" in yes) hypre_using_umpire_device=yes hypre_using_umpire_um=yes ;; @@ -4454,7 +5068,8 @@ fi # Check whether --with-umpire-include was given. -if test "${with_umpire_include+set}" = set; then : +if test ${with_umpire_include+y} +then : withval=$with_umpire_include; for umpire_dir in $withval; do HYPRE_UMPIRE_INCLUDE="-I$umpire_dir $HYPRE_UMPIRE_INCLUDE" done; @@ -4465,7 +5080,8 @@ fi # Check whether --with-umpire-lib was given. -if test "${with_umpire_lib+set}" = set; then : +if test ${with_umpire_lib+y} +then : withval=$with_umpire_lib; for umpire_lib in $withval; do HYPRE_UMPIRE_LIB="$umpire_lib $HYPRE_UMPIRE_LIB" done; @@ -4476,7 +5092,8 @@ fi # Check whether --with-umpire-libs was given. -if test "${with_umpire_libs+set}" = set; then : +if test ${with_umpire_libs+y} +then : withval=$with_umpire_libs; for umpire_lib in $withval; do HYPRE_UMPIRE_LIB="-l$umpire_lib $HYPRE_UMPIRE_LIB" done; @@ -4487,7 +5104,8 @@ fi # Check whether --with-umpire-lib-dirs was given. -if test "${with_umpire_lib_dirs+set}" = set; then : +if test ${with_umpire_lib_dirs+y} +then : withval=$with_umpire_lib_dirs; for umpire_lib_dir in $withval; do HYPRE_UMPIRE_LIB_DIR="-L$umpire_lib_dir $HYPRE_UMPIRE_LIB_DIR" done; @@ -4499,25 +5117,28 @@ fi # Check whether --with-caliper was given. -if test "${with_caliper+set}" = set; then : +if test ${with_caliper+y} +then : withval=$with_caliper; case "$withval" in yes) hypre_using_caliper=yes;; *) hypre_using_caliper=no ;; esac -else +else $as_nop hypre_using_caliper=no fi -if test "x$with_caliper" = "xyes"; then : +if test "x$with_caliper" = "xyes" +then : -$as_echo "#define HYPRE_USING_CALIPER 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_CALIPER 1" >>confdefs.h fi # Check whether --with-caliper-include was given. -if test "${with_caliper_include+set}" = set; then : +if test ${with_caliper_include+y} +then : withval=$with_caliper_include; for caliper_inc_dir in $withval; do CALIPER_INCLUDE="-I$caliper_inc_dir $CALIPER_INCLUDE" done; @@ -4528,7 +5149,8 @@ fi # Check whether --with-caliper-lib was given. -if test "${with_caliper_lib+set}" = set; then : +if test ${with_caliper_lib+y} +then : withval=$with_caliper_lib; for caliper_lib in $withval; do CALIPER_LIBS="$CALIPER_LIBS $caliper_lib" done; @@ -4547,11 +5169,12 @@ then 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -4559,11 +5182,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4574,11 +5201,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4590,11 +5217,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -4602,11 +5230,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4617,11 +5249,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4636,11 +5268,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -4648,11 +5281,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4663,11 +5300,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4679,11 +5316,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -4691,11 +5329,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4706,11 +5348,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4736,11 +5378,12 @@ then 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -4748,11 +5391,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4763,11 +5410,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4779,11 +5426,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -4791,11 +5439,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4806,11 +5458,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4825,11 +5477,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -4837,11 +5490,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4852,11 +5509,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4868,11 +5525,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -4880,11 +5538,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4895,11 +5557,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4925,11 +5587,12 @@ then 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -4937,11 +5600,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4952,11 +5619,11 @@ fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -$as_echo "$FC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +printf "%s\n" "$FC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4968,11 +5635,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -4980,11 +5648,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4995,11 +5667,11 @@ fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -$as_echo "$FC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +printf "%s\n" "$FC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5014,11 +5686,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -5026,11 +5699,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5041,11 +5718,11 @@ fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -$as_echo "$FC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +printf "%s\n" "$FC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5057,11 +5734,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -5069,11 +5747,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5084,11 +5766,11 @@ fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -$as_echo "$FC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +printf "%s\n" "$FC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5132,11 +5814,12 @@ then 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CUCC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CUCC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -5144,11 +5827,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5159,11 +5846,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -$as_echo "$CUCC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +printf "%s\n" "$CUCC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5175,11 +5862,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CUCC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CUCC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -5187,11 +5875,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5202,11 +5894,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -$as_echo "$CUCC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +printf "%s\n" "$CUCC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5221,11 +5913,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CUCC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CUCC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -5233,11 +5926,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5248,11 +5945,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -$as_echo "$CUCC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +printf "%s\n" "$CUCC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5264,11 +5961,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CUCC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CUCC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -5276,11 +5974,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5291,11 +5993,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -$as_echo "$CUCC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +printf "%s\n" "$CUCC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5312,11 +6014,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CUCC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CUCC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -5324,11 +6027,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in "${CUDA_HOME}/bin" do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5339,11 +6046,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -$as_echo "$CUCC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +printf "%s\n" "$CUCC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5360,11 +6067,12 @@ test -n "$CUCC" || CUCC="""" 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CUCC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CUCC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -5372,11 +6080,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5387,11 +6099,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -$as_echo "$CUCC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +printf "%s\n" "$CUCC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5406,11 +6118,12 @@ done 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CUCC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CUCC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CUCC"; then ac_cv_prog_CUCC="$CUCC" # Let the user override the test. else @@ -5418,11 +6131,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CUCC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5433,11 +6150,11 @@ fi fi CUCC=$ac_cv_prog_CUCC if test -n "$CUCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 -$as_echo "$CUCC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUCC" >&5 +printf "%s\n" "$CUCC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5447,13 +6164,14 @@ done fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +printf %s "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 eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else +ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval test \${ac_cv_prog_make_${ac_make}_set+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @@ -5469,23 +6187,24 @@ esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } SET_MAKE= else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else @@ -5493,11 +6212,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5508,11 +6231,11 @@ fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +printf "%s\n" "$RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5521,11 +6244,12 @@ if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else @@ -5533,11 +6257,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5548,11 +6276,11 @@ fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +printf "%s\n" "$ac_ct_RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then @@ -5560,8 +6288,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB @@ -5573,7 +6301,16 @@ fi if test "$hypre_using_c" = "yes" then - ac_ext=c + + + + + + + + + +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' @@ -5581,11 +6318,12 @@ 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5593,11 +6331,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5608,11 +6350,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5621,11 +6363,12 @@ 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else @@ -5633,11 +6376,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5648,11 +6395,11 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then @@ -5660,8 +6407,8 @@ fi else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -5674,11 +6421,12 @@ 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5686,11 +6434,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5701,11 +6453,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5714,11 +6466,12 @@ 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5727,15 +6480,19 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5751,18 +6508,18 @@ if test $ac_prog_rejected = yes; then # 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+' '}$@" + 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:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5773,11 +6530,12 @@ if test -z "$CC"; then 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5785,11 +6543,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5800,11 +6562,11 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5817,11 +6579,12 @@ if test -z "$CC"; then 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else @@ -5829,11 +6592,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5844,11 +6611,11 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5860,34 +6627,138 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. +set dummy ${ac_tool_prefix}clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + 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 + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}clang" + printf "%s\n" "$as_me:${as_lineno-$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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "clang", so it can be a program name with args. +set dummy clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + 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 + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="clang" + printf "%s\n" "$as_me:${as_lineno-$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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$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 fi -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 -for ac_option in --version -v -V -qversion; do +for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -5897,7 +6768,7 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done @@ -5905,7 +6776,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -5917,9 +6788,9 @@ 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:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +printf %s "checking whether the C compiler works... " >&6; } +ac_link_default=`printf "%s\n" "$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.*" @@ -5940,11 +6811,12 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +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, @@ -5961,7 +6833,7 @@ do # certainly right. break;; *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi @@ -5977,44 +6849,46 @@ do done test "$ac_cv_exeext" = no && ac_cv_exeext= -else +else $as_nop ac_file='' fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 +if test -z "$ac_file" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +printf %s "checking for C compiler default output file name... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +printf %s "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:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +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 @@ -6028,15 +6902,15 @@ for ac_file in conftest.exe conftest conftest.*; do * ) break;; esac done -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext @@ -6045,7 +6919,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; @@ -6057,8 +6931,8 @@ _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in @@ -6066,10 +6940,10 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in @@ -6077,39 +6951,40 @@ $as_echo "$ac_try_echo"; } >&5 *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +printf %s "checking for suffix of object files... " >&6; } +if test ${ac_cv_objext+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -6123,11 +6998,12 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in @@ -6136,31 +7012,32 @@ $as_echo "$ac_try_echo"; } >&5 break;; esac done -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$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 ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 +printf %s "checking whether the compiler supports GNU C... " >&6; } +if test ${ac_cv_c_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -6170,29 +7047,33 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_c_compiler_gnu + if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi -ac_test_CFLAGS=${CFLAGS+set} +ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +printf %s "checking whether $CC accepts -g... " >&6; } +if test ${ac_cv_prog_cc_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no @@ -6201,57 +7082,60 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_g=yes -else +else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else +else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +printf "%s\n" "$ac_cv_prog_cc_g" >&6; } +if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then @@ -6266,94 +7150,144 @@ else CFLAGS= fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no +ac_prog_cc_stdc=no +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 +printf %s "checking for $CC option to enable C11 features... " >&6; } +if test ${ac_cv_prog_cc_c11+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -struct stat; -/* 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]; +$ac_c_conftest_c11_program +_ACEOF +for ac_arg in '' -std=gnu11 +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c11" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi -/* 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]; +if test "x$ac_cv_prog_cc_c11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } + CC="$CC $ac_cv_prog_cc_c11" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 + ac_prog_cc_stdc=c11 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 +printf %s "checking for $CC option to enable C99 features... " >&6; } +if test ${ac_cv_prog_cc_c99+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c99=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c99_program +_ACEOF +for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c99=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c99" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi -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; -} +if test "x$ac_cv_prog_cc_c99" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c99" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } + CC="$CC $ac_cv_prog_cc_c99" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 + ac_prog_cc_stdc=c99 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 +printf %s "checking for $CC option to enable C89 features... " >&6; } +if test ${ac_cv_prog_cc_c89+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c89_program _ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : + if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_c89=$ac_arg fi -rm -f core conftest.err conftest.$ac_objext +rm -f core conftest.err conftest.$ac_objext conftest.beam 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:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : +if test "x$ac_cv_prog_cc_c89" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c89" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } + CC="$CC $ac_cv_prog_cc_c89" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 + ac_prog_cc_stdc=c89 +fi fi ac_ext=c @@ -6366,7 +7300,13 @@ fi if test "$hypre_using_cxx" = "yes" then - ac_ext=cpp + + + + + + +ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' @@ -6376,15 +7316,16 @@ if test -z "$CXX"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -6392,11 +7333,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6407,11 +7352,11 @@ fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6420,15 +7365,16 @@ fi fi if test -z "$CXX"; then ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else @@ -6436,11 +7382,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6451,11 +7401,11 @@ fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 -$as_echo "$ac_ct_CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +printf "%s\n" "$ac_ct_CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6467,8 +7417,8 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX @@ -6478,7 +7428,7 @@ fi fi fi # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -6488,7 +7438,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -6498,20 +7448,21 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done -{ $as_echo "$as_me:${as_lineno-$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 ${ac_cv_cxx_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 +printf %s "checking whether the compiler supports GNU C++... " >&6; } +if test ${ac_cv_cxx_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -6521,29 +7472,33 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi -ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_test_CXXFLAGS=${CXXFLAGS+y} ac_save_CXXFLAGS=$CXXFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 -$as_echo_n "checking whether $CXX accepts -g... " >&6; } -if ${ac_cv_prog_cxx_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +printf %s "checking whether $CXX accepts -g... " >&6; } +if test ${ac_cv_prog_cxx_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no @@ -6552,57 +7507,60 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_prog_cxx_g=yes -else +else $as_nop CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : -else +else $as_nop ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 -$as_echo "$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } +if test $ac_test_CXXFLAGS; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then @@ -6617,6 +7575,100 @@ else CXXFLAGS= fi fi +ac_prog_cxx_stdcxx=no +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 +printf %s "checking for $CXX option to enable C++11 features... " >&6; } +if test ${ac_cv_prog_cxx_11+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cxx_11=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx11_program +_ACEOF +for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx11" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX +fi + +if test "x$ac_cv_prog_cxx_cxx11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cxx_cxx11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx11" +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 + ac_prog_cxx_stdcxx=cxx11 +fi +fi +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 +printf %s "checking for $CXX option to enable C++98 features... " >&6; } +if test ${ac_cv_prog_cxx_98+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cxx_98=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx98_program +_ACEOF +for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx98=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx98" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX +fi + +if test "x$ac_cv_prog_cxx_cxx98" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cxx_cxx98" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx98" +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 + ac_prog_cxx_stdcxx=cxx98 +fi +fi + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6636,11 +7688,12 @@ if test -n "$ac_tool_prefix"; then 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -6648,11 +7701,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6663,11 +7720,11 @@ fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -$as_echo "$FC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +printf "%s\n" "$FC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6680,11 +7737,12 @@ if test -z "$FC"; then 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:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_FC"; then ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. else @@ -6692,11 +7750,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_FC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6707,11 +7769,11 @@ fi fi ac_ct_FC=$ac_cv_prog_ac_ct_FC if test -n "$ac_ct_FC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 -$as_echo "$ac_ct_FC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 +printf "%s\n" "$ac_ct_FC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6723,8 +7785,8 @@ done else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac FC=$ac_ct_FC @@ -6733,7 +7795,7 @@ fi # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -6743,7 +7805,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -6753,7 +7815,7 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done rm -f a.out @@ -6762,11 +7824,12 @@ rm -f a.out # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 -$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } -if ${ac_cv_fc_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran" >&5 +printf %s "checking whether the compiler supports GNU Fortran... " >&6; } +if test ${ac_cv_fc_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ @@ -6775,43 +7838,48 @@ else end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_fc_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 -$as_echo "$ac_cv_fc_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_fc_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_fc_compiler_gnu + ac_ext=$ac_save_ext -ac_test_FCFLAGS=${FCFLAGS+set} +ac_test_FCFLAGS=${FCFLAGS+y} ac_save_FCFLAGS=$FCFLAGS FCFLAGS= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 -$as_echo_n "checking whether $FC accepts -g... " >&6; } -if ${ac_cv_prog_fc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 +printf %s "checking whether $FC accepts -g... " >&6; } +if test ${ac_cv_prog_fc_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop FCFLAGS=-g cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : ac_cv_prog_fc_g=yes -else +else $as_nop ac_cv_prog_fc_g=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 -$as_echo "$ac_cv_prog_fc_g" >&6; } -if test "$ac_test_FCFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 +printf "%s\n" "$ac_cv_prog_fc_g" >&6; } +if test $ac_test_FCFLAGS; then FCFLAGS=$ac_save_FCFLAGS elif test $ac_cv_prog_fc_g = yes; then if test "x$ac_cv_fc_compiler_gnu" = xyes; then @@ -6843,17 +7911,19 @@ ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 -$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } -if ${ac_cv_prog_fc_v+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 +printf %s "checking how to get verbose linking output from $FC... " >&6; } +if test ${ac_cv_prog_fc_v+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : ac_cv_prog_fc_v= # Try some options frequently used verbose output for ac_verb in -v -verbose --verbose -V -\#\#\#; do @@ -6871,13 +7941,13 @@ ac_save_FCFLAGS=$FCFLAGS FCFLAGS="$FCFLAGS $ac_verb" eval "set x $ac_link" shift -$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | sed '/^Driving:/d; /^Configured with:/d; '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` -$as_echo "$ac_fc_v_output" >&5 +printf "%s\n" "$ac_fc_v_output" >&5 FCFLAGS=$ac_save_FCFLAGS rm -rf conftest* @@ -6944,23 +8014,24 @@ esac done done if test -z "$ac_cv_prog_fc_v"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 -$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 +printf "%s\n" "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 -$as_echo "$as_me: WARNING: compilation failed" >&2;} +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 +printf "%s\n" "$as_me: WARNING: compilation failed" >&2;} fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 -$as_echo "$ac_cv_prog_fc_v" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 -$as_echo_n "checking for Fortran libraries of $FC... " >&6; } -if ${ac_cv_fc_libs+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 +printf "%s\n" "$ac_cv_prog_fc_v" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 +printf %s "checking for Fortran libraries of $FC... " >&6; } +if test ${ac_cv_fc_libs+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test "x$FCLIBS" != "x"; then ac_cv_fc_libs="$FCLIBS" # Let the user override the test. else @@ -6979,13 +8050,13 @@ ac_save_FCFLAGS=$FCFLAGS FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" eval "set x $ac_link" shift -$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | sed '/^Driving:/d; /^Configured with:/d; '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` -$as_echo "$ac_fc_v_output" >&5 +printf "%s\n" "$ac_fc_v_output" >&5 FCFLAGS=$ac_save_FCFLAGS rm -rf conftest* @@ -7062,9 +8133,10 @@ while test $# != 1; do fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi ;; @@ -7077,9 +8149,10 @@ fi fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_arg; do ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" @@ -7094,9 +8167,24 @@ fi |-LANG:=* | -LIST:* | -LNO:* | -link) ;; -lkernel32) + # Ignore this library only on Windows-like systems. case $host_os in - *cygwin*) ;; - *) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" + cygwin* | msys* ) ;; + *) + ac_exists=false + for ac_i in $ac_cv_fc_libs; do + if test x"$ac_arg" = x"$ac_i"; then + ac_exists=true + break + fi + done + + if test x"$ac_exists" = xtrue +then : + +else $as_nop + ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" +fi ;; esac ;; @@ -7114,7 +8202,7 @@ fi esac ;; -YP,*) - for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do + for ac_j in `printf "%s\n" "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_j" = x"$ac_i"; then @@ -7123,9 +8211,10 @@ fi fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop ac_arg="$ac_arg $ac_j" ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" fi @@ -7140,15 +8229,17 @@ fi fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi ;; -zallextract*| -zdefaultextract) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" ;; + -mllvm) ${2+shift};; # Defend against 'clang -mllvm -loopopt=0'. # Ignore everything else. esac done @@ -7160,7 +8251,7 @@ set X $ac_save_positional; shift # must begin with a "/"). case `(uname -sr) 2>/dev/null` in "SunOS 5"*) - ac_ld_run_path=`$as_echo "$ac_fc_v_output" | + ac_ld_run_path=`printf "%s\n" "$ac_fc_v_output" | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` test "x$ac_ld_run_path" != x && if test "$ac_compiler_gnu" = yes; then @@ -7175,8 +8266,8 @@ esac fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 -$as_echo "$ac_cv_fc_libs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 +printf "%s\n" "$ac_cv_fc_libs" >&6; } FCLIBS="$ac_cv_fc_libs" @@ -7192,11 +8283,12 @@ ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 -$as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; } -if ${ac_cv_fc_dummy_main+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 +printf %s "checking for dummy main to link with Fortran libraries... " >&6; } +if test ${ac_cv_fc_dummy_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_fc_dm_save_LIBS=$LIBS LIBS="$LIBS $FCLIBS" ac_fortran_dm_var=FC_DUMMY_MAIN @@ -7219,19 +8311,20 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_fortran_dummy_main=none -else +else $as_nop ac_cv_fortran_dummy_main=unknown fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test $ac_cv_fortran_dummy_main = unknown; then @@ -7248,17 +8341,18 @@ rm -f core conftest.err conftest.$ac_objext \ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_fortran_dummy_main=$ac_func; break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done fi @@ -7271,25 +8365,24 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu LIBS=$ac_fc_dm_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5 -$as_echo "$ac_cv_fc_dummy_main" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5 +printf "%s\n" "$ac_cv_fc_dummy_main" >&6; } FC_DUMMY_MAIN=$ac_cv_fc_dummy_main -if test "$FC_DUMMY_MAIN" != unknown; then : +if test "$FC_DUMMY_MAIN" != unknown +then : if test $FC_DUMMY_MAIN != none; then -cat >>confdefs.h <<_ACEOF -#define FC_DUMMY_MAIN $FC_DUMMY_MAIN -_ACEOF +printf "%s\n" "#define FC_DUMMY_MAIN $FC_DUMMY_MAIN" >>confdefs.h if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then -$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h +printf "%s\n" "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h fi fi -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "linking to Fortran libraries from C fails See \`config.log' for more details" "$LINENO" 5; } fi @@ -7304,11 +8397,12 @@ ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 -$as_echo_n "checking for Fortran name-mangling scheme... " >&6; } -if ${ac_cv_fc_mangling+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 +printf %s "checking for Fortran name-mangling scheme... " >&6; } +if test ${ac_cv_fc_mangling+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF subroutine foobar() return @@ -7317,7 +8411,8 @@ else return end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : mv conftest.$ac_objext cfortran_test.$ac_objext ac_save_LIBS=$LIBS @@ -7338,9 +8433,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char $ac_func (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -7351,17 +8443,18 @@ char $ac_func (); #endif #endif int -main () +main (void) { return $ac_func (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_success=yes; break 2 fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done done @@ -7396,9 +8489,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char $ac_func (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -7409,17 +8499,18 @@ char $ac_func (); #endif #endif int -main () +main (void) { return $ac_func (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_success_extra=yes; break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done ac_ext=${ac_fc_srcext-f} @@ -7449,17 +8540,17 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu LIBS=$ac_save_LIBS rm -rf conftest* rm -f cfortran_test* -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compile a simple Fortran program See \`config.log' for more details" "$LINENO" 5; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5 -$as_echo "$ac_cv_fc_mangling" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5 +printf "%s\n" "$ac_cv_fc_mangling" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -7473,48 +8564,48 @@ ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest ac_compiler_gnu=$ac_cv_fc_compiler_gnu case $ac_cv_fc_mangling in "lower case, no underscore, no extra underscore") - $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) name" >>confdefs.h ;; "lower case, no underscore, extra underscore") - $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h ;; "lower case, underscore, no extra underscore") - $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h ;; "lower case, underscore, extra underscore") - $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h ;; "upper case, no underscore, no extra underscore") - $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h ;; "upper case, no underscore, extra underscore") - $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h ;; "upper case, underscore, no extra underscore") - $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h ;; "upper case, underscore, extra underscore") - $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 -$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 +printf "%s\n" "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} ;; esac @@ -7529,24 +8620,26 @@ fi if test "$hypre_using_mpi" = "no" then -$as_echo "#define HYPRE_SEQUENTIAL 1" >>confdefs.h +printf "%s\n" "#define HYPRE_SEQUENTIAL 1" >>confdefs.h else if test x = x"$MPILIBS"; then ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" -if test "x$ac_cv_func_MPI_Init" = xyes; then : +if test "x$ac_cv_func_MPI_Init" = xyes +then : MPILIBS=" " fi fi if test x = x"$MPILIBS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 -$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } -if ${ac_cv_lib_mpi_MPI_Init+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 +printf %s "checking for MPI_Init in -lmpi... " >&6; } +if test ${ac_cv_lib_mpi_MPI_Init+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lmpi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -7555,9 +8648,6 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char MPI_Init (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -7568,36 +8658,39 @@ char MPI_Init (); #endif #endif int -main () +main (void) { return MPI_Init (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_mpi_MPI_Init=yes -else +else $as_nop ac_cv_lib_mpi_MPI_Init=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 -$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } -if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 +printf "%s\n" "$ac_cv_lib_mpi_MPI_Init" >&6; } +if test "x$ac_cv_lib_mpi_MPI_Init" = xyes +then : MPILIBS="-lmpi" fi fi if test x = x"$MPILIBS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 -$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } -if ${ac_cv_lib_mpich_MPI_Init+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 +printf %s "checking for MPI_Init in -lmpich... " >&6; } +if test ${ac_cv_lib_mpich_MPI_Init+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lmpich $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -7606,9 +8699,6 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char MPI_Init (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -7619,33 +8709,35 @@ char MPI_Init (); #endif #endif int -main () +main (void) { return MPI_Init (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_mpich_MPI_Init=yes -else +else $as_nop ac_cv_lib_mpich_MPI_Init=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 -$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } -if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 +printf "%s\n" "$ac_cv_lib_mpich_MPI_Init" >&6; } +if test "x$ac_cv_lib_mpich_MPI_Init" = xyes +then : MPILIBS="-lmpich" fi fi if test x != x"$MPILIBS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 -$as_echo_n "checking for mpi.h... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 +printf %s "checking for mpi.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -7658,22 +8750,23 @@ $as_echo_n "checking for mpi.h... " >&6; } #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else +if ac_fn_c_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else $as_nop MPILIBS="" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi @@ -7684,62 +8777,54 @@ if test x = x"$MPILIBS"; then : else -$as_echo "#define HYPRE_HAVE_MPI 1" >>confdefs.h +printf "%s\n" "#define HYPRE_HAVE_MPI 1" >>confdefs.h LIBS="$LIBS $MPILIBS" : fi - for ac_func in MPI_Comm_f2c -do : - ac_fn_c_check_func "$LINENO" "MPI_Comm_f2c" "ac_cv_func_MPI_Comm_f2c" -if test "x$ac_cv_func_MPI_Comm_f2c" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MPI_COMM_F2C 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "MPI_Comm_f2c" "ac_cv_func_MPI_Comm_f2c" +if test "x$ac_cv_func_MPI_Comm_f2c" = xyes +then : + printf "%s\n" "#define HAVE_MPI_COMM_F2C 1" >>confdefs.h fi -done 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:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +printf %s "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 ${ac_cv_prog_CPP+:} false; 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" + if test ${ac_cv_prog_CPP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + # Double quotes because $CC needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" 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 confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -7751,10 +8836,11 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -7764,7 +8850,8 @@ rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi @@ -7776,29 +8863,24 @@ fi else ac_cv_prog_CPP=$CPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +printf "%s\n" "$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 confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -7810,10 +8892,11 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -7823,11 +8906,12 @@ rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi @@ -7839,11 +8923,12 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$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 ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST @@ -7851,10 +8936,15 @@ else 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 + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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" + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP @@ -7863,13 +8953,13 @@ case `"$ac_path_GREP" --version 2>&1` in ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 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" + printf "%s\n" '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 as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -7897,16 +8987,17 @@ else fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else @@ -7917,10 +9008,15 @@ else 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 + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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" + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP @@ -7929,13 +9025,13 @@ case `"$ac_path_EGREP" --version 2>&1` in ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 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" + printf "%s\n" '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 as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -7964,16 +9060,17 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MPI_Comm_f2c is a macro" >&5 -$as_echo_n "checking whether MPI_Comm_f2c is a macro... " >&6; } -if ${hypre_cv_func_MPI_Comm_f2c_macro+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MPI_Comm_f2c is a macro" >&5 +printf %s "checking whether MPI_Comm_f2c is a macro... " >&6; } +if test ${hypre_cv_func_MPI_Comm_f2c_macro+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7983,20 +9080,21 @@ else #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "mpi_header_defines_MPI_Comm_f2c" >/dev/null 2>&1; then : + $EGREP "mpi_header_defines_MPI_Comm_f2c" >/dev/null 2>&1 +then : hypre_cv_func_MPI_Comm_f2c_macro=yes -else +else $as_nop hypre_cv_func_MPI_Comm_f2c_macro=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hypre_cv_func_MPI_Comm_f2c_macro" >&5 -$as_echo "$hypre_cv_func_MPI_Comm_f2c_macro" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hypre_cv_func_MPI_Comm_f2c_macro" >&5 +printf "%s\n" "$hypre_cv_func_MPI_Comm_f2c_macro" >&6; } if test $ac_cv_func_MPI_Comm_f2c = yes \ || test $hypre_cv_func_MPI_Comm_f2c_macro = yes; then -$as_echo "#define HYPRE_HAVE_MPI_COMM_F2C 1" >>confdefs.h +printf "%s\n" "#define HYPRE_HAVE_MPI_COMM_F2C 1" >>confdefs.h fi fi @@ -8004,21 +9102,21 @@ fi if test "$hypre_using_node_aware_mpi" = "yes" then -$as_echo "#define HYPRE_USING_NODE_AWARE_MPI 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_NODE_AWARE_MPI 1" >>confdefs.h fi if test "$hypre_using_memory_tracker" = "yes" then -$as_echo "#define HYPRE_USING_MEMORY_TRACKER 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_MEMORY_TRACKER 1" >>confdefs.h fi if test "$hypre_test_using_host" = "yes" then -$as_echo "#define HYPRE_TEST_USING_HOST 1" >>confdefs.h +printf "%s\n" "#define HYPRE_TEST_USING_HOST 1" >>confdefs.h fi @@ -8028,14 +9126,14 @@ then if test $blas_lib = "-ldxml" then -$as_echo "#define HYPRE_USING_DXML 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_DXML 1" >>confdefs.h fi if test $blas_lib = "-lessl" then -$as_echo "#define HYPRE_USING_ESSL 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_ESSL 1" >>confdefs.h fi done @@ -8057,7 +9155,8 @@ then # Check whether --with-blas was given. -if test "${with_blas+set}" = set; then : +if test ${with_blas+y} +then : withval=$with_blas; fi @@ -8109,12 +9208,13 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu for lib in $BLAS_LIB_NAMES; do - as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_$dgemm" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dgemm in -l$lib" >&5 -$as_echo_n "checking for $dgemm in -l$lib... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$lib""_$dgemm" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $dgemm in -l$lib" >&5 +printf %s "checking for $dgemm in -l$lib... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-l$lib $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -8123,9 +9223,6 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char $dgemm (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -8136,26 +9233,28 @@ char $dgemm (); #endif #endif int -main () +main (void) { return $dgemm (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else +else $as_nop eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : BLASLIBS=$lib fi @@ -8184,13 +9283,13 @@ fi #*************************************************************** if test "$BLASLIBS" = "dxml"; then -$as_echo "#define HYPRE_USING_DXML 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_DXML 1" >>confdefs.h fi if test "$BLASLIBS" = "essl"; then -$as_echo "#define HYPRE_USING_ESSL 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_ESSL 1" >>confdefs.h fi @@ -8214,14 +9313,14 @@ $as_echo "#define HYPRE_USING_ESSL 1" >>confdefs.h if test "$BLASLIBS" = "null" then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 -$as_echo "$as_me: WARNING: ***************************************" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find BLAS library" >&5 -$as_echo "$as_me: WARNING: Cannot find BLAS library" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuring --without-blas" >&5 -$as_echo "$as_me: WARNING: configuring --without-blas" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 -$as_echo "$as_me: WARNING: ***************************************" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 +printf "%s\n" "$as_me: WARNING: ***************************************" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find BLAS library" >&5 +printf "%s\n" "$as_me: WARNING: Cannot find BLAS library" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configuring --without-blas" >&5 +printf "%s\n" "$as_me: WARNING: configuring --without-blas" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 +printf "%s\n" "$as_me: WARNING: ***************************************" >&2;} elif test "$BLASLIBS" != "internal" then hypre_using_hypre_blas=no @@ -8232,7 +9331,7 @@ $as_echo "$as_me: WARNING: ***************************************" >&2;} BLASLIBDIRS="" BLASLIBS="" -$as_echo "#define HYPRE_USING_HYPRE_BLAS 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_HYPRE_BLAS 1" >>confdefs.h fi fi @@ -8243,7 +9342,7 @@ then if test $lapack_lib = "-lessl" then -$as_echo "#define HYPRE_USING_ESSL 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_ESSL 1" >>confdefs.h fi done @@ -8265,7 +9364,8 @@ then # Check whether --with-lapack was given. -if test "${with_lapack+set}" = set; then : +if test ${with_lapack+y} +then : withval=$with_lapack; fi @@ -8317,12 +9417,13 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu for lib in $LAPACK_LIB_NAMES; do - as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_$dsygv" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dsygv in -l$lib" >&5 -$as_echo_n "checking for $dsygv in -l$lib... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$lib""_$dsygv" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $dsygv in -l$lib" >&5 +printf %s "checking for $dsygv in -l$lib... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-l$lib -lblas $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -8331,9 +9432,6 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char $dsygv (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -8344,26 +9442,28 @@ char $dsygv (); #endif #endif int -main () +main (void) { return $dsygv (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else +else $as_nop eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : LAPACKLIBS=$lib fi @@ -8407,14 +9507,14 @@ fi if test "$LAPACKLIBS" = "null" then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 -$as_echo "$as_me: WARNING: ***************************************" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LAPACK library" >&5 -$as_echo "$as_me: WARNING: Cannot find LAPACK library" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuring --without-lapack" >&5 -$as_echo "$as_me: WARNING: configuring --without-lapack" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 -$as_echo "$as_me: WARNING: ***************************************" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 +printf "%s\n" "$as_me: WARNING: ***************************************" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LAPACK library" >&5 +printf "%s\n" "$as_me: WARNING: Cannot find LAPACK library" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configuring --without-lapack" >&5 +printf "%s\n" "$as_me: WARNING: configuring --without-lapack" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************" >&5 +printf "%s\n" "$as_me: WARNING: ***************************************" >&2;} elif test "$LAPACKLIBS" != "internal" then hypre_using_hypre_lapack=no @@ -8425,7 +9525,7 @@ $as_echo "$as_me: WARNING: ***************************************" >&2;} LAPACKLIBDIRS="" LAPACKLIBS="" -$as_echo "#define HYPRE_USING_HYPRE_LAPACK 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_HYPRE_LAPACK 1" >>confdefs.h fi fi @@ -8443,15 +9543,16 @@ then HYPRE_FEI_SUBDIRS="femli $HYPRE_FEI_SUBDIRS" HYPRE_FEI_FEMLI_FILES="$HYPRE_SRCDIR/FEI_mv/femli/*.o" -$as_echo "#define HAVE_MLI 1" >>confdefs.h +printf "%s\n" "#define HAVE_MLI 1" >>confdefs.h fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gxx_personality_v0 in -lstdc++" >&5 -$as_echo_n "checking for __gxx_personality_v0 in -lstdc++... " >&6; } -if ${ac_cv_lib_stdcpp___gxx_personality_v0+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gxx_personality_v0 in -lstdc++" >&5 +printf %s "checking for __gxx_personality_v0 in -lstdc++... " >&6; } +if test ${ac_cv_lib_stdcpp___gxx_personality_v0+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lstdc++ $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -8460,9 +9561,6 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char __gxx_personality_v0 (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -8473,25 +9571,27 @@ char __gxx_personality_v0 (); #endif #endif int -main () +main (void) { return __gxx_personality_v0 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_stdcpp___gxx_personality_v0=yes -else +else $as_nop ac_cv_lib_stdcpp___gxx_personality_v0=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp___gxx_personality_v0" >&5 -$as_echo "$ac_cv_lib_stdcpp___gxx_personality_v0" >&6; } -if test "x$ac_cv_lib_stdcpp___gxx_personality_v0" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp___gxx_personality_v0" >&5 +printf "%s\n" "$ac_cv_lib_stdcpp___gxx_personality_v0" >&6; } +if test "x$ac_cv_lib_stdcpp___gxx_personality_v0" = xyes +then : LIBS="$LIBS -lstdc++" fi @@ -8630,7 +9730,7 @@ then esac fi -$as_echo "#define HYPRE_DEBUG 1" >>confdefs.h +printf "%s\n" "#define HYPRE_DEBUG 1" >>confdefs.h else @@ -8793,11 +9893,12 @@ then CXXFLAGS="`mpicc -link-info | awk '{$1=""; print}'` $CXXFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs in -lm" >&5 -$as_echo_n "checking for cabs in -lm... " >&6; } -if ${ac_cv_lib_m_cabs+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cabs in -lm" >&5 +printf %s "checking for cabs in -lm... " >&6; } +if test ${ac_cv_lib_m_cabs+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -8806,9 +9907,6 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char cabs (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -8819,25 +9917,27 @@ char cabs (); #endif #endif int -main () +main (void) { return cabs (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_m_cabs=yes -else +else $as_nop ac_cv_lib_m_cabs=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabs" >&5 -$as_echo "$ac_cv_lib_m_cabs" >&6; } -if test "x$ac_cv_lib_m_cabs" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabs" >&5 +printf "%s\n" "$ac_cv_lib_m_cabs" >&6; } +if test "x$ac_cv_lib_m_cabs" = xyes +then : LIBS="$LIBS -lm" fi @@ -8931,33 +10031,33 @@ if test "$hypre_using_caliper" = "yes" then if test "$hypre_user_gave_caliper_inc" != "yes" then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 -$as_echo "$as_me: WARNING: *******************************************************" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring with --with-caliper=yes without providing" >&5 -$as_echo "$as_me: WARNING: Configuring with --with-caliper=yes without providing" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-caliper-include=." >&5 -$as_echo "$as_me: WARNING: --with-caliper-include=." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using default user include path." >&5 -$as_echo "$as_me: WARNING: Using default user include path." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NOTE: Caliper annotations may not work." >&5 -$as_echo "$as_me: WARNING: NOTE: Caliper annotations may not work." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 -$as_echo "$as_me: WARNING: *******************************************************" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 +printf "%s\n" "$as_me: WARNING: *******************************************************" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Configuring with --with-caliper=yes without providing" >&5 +printf "%s\n" "$as_me: WARNING: Configuring with --with-caliper=yes without providing" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-caliper-include=." >&5 +printf "%s\n" "$as_me: WARNING: --with-caliper-include=." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using default user include path." >&5 +printf "%s\n" "$as_me: WARNING: Using default user include path." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: NOTE: Caliper annotations may not work." >&5 +printf "%s\n" "$as_me: WARNING: NOTE: Caliper annotations may not work." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 +printf "%s\n" "$as_me: WARNING: *******************************************************" >&2;} fi if test "$hypre_user_gave_caliper_lib" != "yes" then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 -$as_echo "$as_me: WARNING: *******************************************************" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring with --with-caliper=yes without providing" >&5 -$as_echo "$as_me: WARNING: Configuring with --with-caliper=yes without providing" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-caliper-lib=." >&5 -$as_echo "$as_me: WARNING: --with-caliper-lib=." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using default user library path." >&5 -$as_echo "$as_me: WARNING: Using default user library path." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NOTE: Caliper annotations may not work." >&5 -$as_echo "$as_me: WARNING: NOTE: Caliper annotations may not work." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 -$as_echo "$as_me: WARNING: *******************************************************" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 +printf "%s\n" "$as_me: WARNING: *******************************************************" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Configuring with --with-caliper=yes without providing" >&5 +printf "%s\n" "$as_me: WARNING: Configuring with --with-caliper=yes without providing" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-caliper-lib=." >&5 +printf "%s\n" "$as_me: WARNING: --with-caliper-lib=." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using default user library path." >&5 +printf "%s\n" "$as_me: WARNING: Using default user library path." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: NOTE: Caliper annotations may not work." >&5 +printf "%s\n" "$as_me: WARNING: NOTE: Caliper annotations may not work." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *******************************************************" >&5 +printf "%s\n" "$as_me: WARNING: *******************************************************" >&2;} fi fi @@ -8971,160 +10071,52 @@ fi if test "$hypre_using_cuda" = "yes" then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include - -#ifdef FC_DUMMY_MAIN -#ifndef FC_DUMMY_MAIN_EQ_F77 -# ifdef __cplusplus - extern "C" -# endif - int FC_DUMMY_MAIN() { return 1; } -#endif -#endif -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - 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 confdefs.h - <<_ACEOF >conftest.$ac_ext -/* 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 confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : + ac_header= ac_cache= +for ac_item in $ac_header_c_list +do + if test $ac_cache; then + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then + printf "%s\n" "#define $ac_item 1" >> confdefs.h + fi + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item + fi +done -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 confdefs.h - <<_ACEOF >conftest.$ac_ext -/* 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 -if ac_fn_c_try_run "$LINENO"; then : -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then -$as_echo "#define STDC_HEADERS 1" >>confdefs.h -fi +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes +then : -# 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` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h fi - -done - - -as_ac_Header=`$as_echo "ac_cv_header_"${CUDA_HOME}/include/cuda.h"" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" ""${CUDA_HOME}/include/cuda.h"" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +as_ac_Header=`printf "%s\n" "ac_cv_header_"${CUDA_HOME}/include/cuda.h"" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" ""${CUDA_HOME}/include/cuda.h"" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes" +then : hypre_found_cuda=yes; HYPRE_CUDA_PATH=${CUDA_HOME} fi - if test "x$hypre_found_cuda" != "xyes" then - as_ac_Header=`$as_echo "ac_cv_header_"${CUDA_PATH}/include/cuda.h"" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" ""${CUDA_PATH}/include/cuda.h"" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + as_ac_Header=`printf "%s\n" "ac_cv_header_"${CUDA_PATH}/include/cuda.h"" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" ""${CUDA_PATH}/include/cuda.h"" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes" +then : hypre_found_cuda=yes; HYPRE_CUDA_PATH=${CUDA_PATH} fi - fi if test "x$hypre_found_cuda" != "xyes" @@ -9136,12 +10128,13 @@ fi if test "$hypre_using_cusparse" = "yes" then - as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/include/cusparse.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/include/cusparse.h" >&5 -$as_echo_n "checking for ${HYPRE_CUDA_PATH}/include/cusparse.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/include/cusparse.h" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/include/cusparse.h" >&5 +printf %s "checking for ${HYPRE_CUDA_PATH}/include/cusparse.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/include/cusparse.h"; then @@ -9151,21 +10144,23 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : hypre_found_cusparse=yes; HYPRE_VENDOR_MATH_PATH=${HYPRE_CUDA_PATH} fi if test "x$hypre_found_cusparse" != "xyes" then - as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h" >&5 -$as_echo_n "checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h" >&5 +printf %s "checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/../math_libs/include/cusparse.h"; then @@ -9175,23 +10170,25 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : - hypre_found_cusparse=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../math_libs); { $as_echo "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 -$as_echo "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : + hypre_found_cusparse=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../math_libs); { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 +printf "%s\n" "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} fi fi if test "x$hypre_found_cusparse" != "xyes" then - as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h" >&5 -$as_echo_n "checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h" >&5 +printf %s "checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/../../math_libs/include/cusparse.h"; then @@ -9201,11 +10198,12 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : - hypre_found_cusparse=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../../math_libs); { $as_echo "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 -$as_echo "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : + hypre_found_cusparse=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../../math_libs); { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 +printf "%s\n" "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} fi fi @@ -9219,12 +10217,13 @@ fi if test "$hypre_using_cublas" = "yes" then - as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/include/cublas.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/include/cublas.h" >&5 -$as_echo_n "checking for ${HYPRE_CUDA_PATH}/include/cublas.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/include/cublas.h" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/include/cublas.h" >&5 +printf %s "checking for ${HYPRE_CUDA_PATH}/include/cublas.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/include/cublas.h"; then @@ -9234,21 +10233,23 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : hypre_found_cublas=yes; HYPRE_VENDOR_MATH_PATH=${HYPRE_CUDA_PATH} fi if test "x$hypre_found_cublas" != "xyes" && test "x${HYPRE_VENDOR_MATH_PATH}" != "x" then - as_ac_File=`$as_echo "ac_cv_file_${HYPRE_VENDOR_MATH_PATH}/include/cublas.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_VENDOR_MATH_PATH}/include/cublas.h" >&5 -$as_echo_n "checking for ${HYPRE_VENDOR_MATH_PATH}/include/cublas.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_VENDOR_MATH_PATH}/include/cublas.h" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_VENDOR_MATH_PATH}/include/cublas.h" >&5 +printf %s "checking for ${HYPRE_VENDOR_MATH_PATH}/include/cublas.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_VENDOR_MATH_PATH}/include/cublas.h"; then @@ -9258,9 +10259,10 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : hypre_found_cublas=yes; fi @@ -9268,12 +10270,13 @@ fi if test "x$hypre_found_cublas" != "xyes" then - as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h" >&5 -$as_echo_n "checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h" >&5 +printf %s "checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/../math_libs/include/cublas.h"; then @@ -9283,23 +10286,25 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : - hypre_found_cublas=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../math_libs); { $as_echo "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 -$as_echo "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : + hypre_found_cublas=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../math_libs); { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 +printf "%s\n" "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} fi fi if test "x$hypre_found_cublas" != "xyes" then - as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h" >&5 -$as_echo_n "checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h" >&5 +printf %s "checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/../../math_libs/include/cublas.h"; then @@ -9309,11 +10314,12 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : - hypre_found_cublas=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../../math_libs); { $as_echo "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 -$as_echo "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : + hypre_found_cublas=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../../math_libs); { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 +printf "%s\n" "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} fi fi @@ -9327,12 +10333,13 @@ fi if test "$hypre_using_cusolver" = "yes" then - as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/include/cusolverDn.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/include/cusolverDn.h" >&5 -$as_echo_n "checking for ${HYPRE_CUDA_PATH}/include/cusolverDn.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/include/cusolverDn.h" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/include/cusolverDn.h" >&5 +printf %s "checking for ${HYPRE_CUDA_PATH}/include/cusolverDn.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/include/cusolverDn.h"; then @@ -9342,21 +10349,23 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : hypre_found_cusolver=yes; HYPRE_VENDOR_MATH_PATH=${HYPRE_CUDA_PATH} fi if test "x$hypre_found_cusolver" != "xyes" && test "x${HYPRE_VENDOR_MATH_PATH}" != "x" then - as_ac_File=`$as_echo "ac_cv_file_${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h" >&5 -$as_echo_n "checking for ${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h" >&5 +printf %s "checking for ${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_VENDOR_MATH_PATH}/include/cusolverDn.h"; then @@ -9366,9 +10375,10 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : hypre_found_cusolver=yes; fi @@ -9376,12 +10386,13 @@ fi if test "x$hypre_found_cusolver" != "xyes" then - as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h" >&5 -$as_echo_n "checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h" >&5 +printf %s "checking for ${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/../math_libs/include/cusolverDn.h"; then @@ -9391,23 +10402,25 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : - hypre_found_cusolver=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../math_libs); { $as_echo "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 -$as_echo "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : + hypre_found_cusolver=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../math_libs); { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 +printf "%s\n" "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} fi fi if test "x$hypre_found_cusolver" != "xyes" then - as_ac_File=`$as_echo "ac_cv_file_${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h" >&5 -$as_echo_n "checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h" >&5 +printf %s "checking for ${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h... " >&6; } +if eval test \${$as_ac_File+y} +then : + printf %s "(cached) " >&6 +else $as_nop test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "${HYPRE_CUDA_PATH}/../../math_libs/include/cusolverDn.h"; then @@ -9417,11 +10430,12 @@ else fi fi eval ac_res=\$$as_ac_File - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_File"\" = x"yes"; then : - hypre_found_cusolver=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../../math_libs); { $as_echo "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 -$as_echo "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_File"\" = x"yes" +then : + hypre_found_cusolver=yes; HYPRE_VENDOR_MATH_PATH=$(readlink -f ${HYPRE_CUDA_PATH}/../../math_libs); { printf "%s\n" "$as_me:${as_lineno-$LINENO}: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&5 +printf "%s\n" "$as_me: setting vendor math path to ${HYPRE_VENDOR_MATH_PATH}" >&6;} fi fi @@ -9433,29 +10447,31 @@ fi fi -if test x"$hypre_using_hip" == x"yes" ; then : - if test -n "$ROCM_PATH"; then : +if test x"$hypre_using_hip" == x"yes" +then : + if test -n "$ROCM_PATH" +then : HYPRE_ROCM_PREFIX=$ROCM_PATH -else +else $as_nop HYPRE_ROCM_PREFIX=/opt/rocm fi - as_ac_Header=`$as_echo "ac_cv_header_"${HYPRE_ROCM_PREFIX}/include/hip/hip_common.h"" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" ""${HYPRE_ROCM_PREFIX}/include/hip/hip_common.h"" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + as_ac_Header=`printf "%s\n" "ac_cv_header_"${HYPRE_ROCM_PREFIX}/include/hip/hip_common.h"" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" ""${HYPRE_ROCM_PREFIX}/include/hip/hip_common.h"" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes" +then : hypre_found_hip=yes -else +else $as_nop as_fn_error $? "unable to find ${HYPRE_ROCM_PREFIX}/include/hip/hip_common.h ... Ensure ROCm is installed and set ROCM_PATH environment variable to ROCm installation path." "$LINENO" 5 fi - fi if test "x$hypre_using_raja" = "xyes" then -$as_echo "#define HYPRE_USING_RAJA 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_RAJA 1" >>confdefs.h if test "$hypre_user_chose_cxxflags" = "no" @@ -9477,7 +10493,7 @@ fi if test "x$hypre_using_kokkos" = "xyes" then -$as_echo "#define HYPRE_USING_KOKKOS 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_KOKKOS 1" >>confdefs.h if test "$hypre_user_chose_cxxflags" = "no" @@ -9502,7 +10518,7 @@ if test "x$hypre_using_umpire_host" = "xyes" then hypre_using_umpire=yes -$as_echo "#define HYPRE_USING_UMPIRE_HOST 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_UMPIRE_HOST 1" >>confdefs.h fi @@ -9510,7 +10526,7 @@ if test "x$hypre_using_umpire_device" = "xyes" then hypre_using_umpire=yes -$as_echo "#define HYPRE_USING_UMPIRE_DEVICE 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_UMPIRE_DEVICE 1" >>confdefs.h fi @@ -9518,7 +10534,7 @@ if test "x$hypre_using_umpire_um" = "xyes" then hypre_using_umpire=yes -$as_echo "#define HYPRE_USING_UMPIRE_UM 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_UMPIRE_UM 1" >>confdefs.h fi @@ -9526,25 +10542,25 @@ if test "x$hypre_using_umpire_pinned" = "xyes" then hypre_using_umpire=yes -$as_echo "#define HYPRE_USING_UMPIRE_PINNED 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_UMPIRE_PINNED 1" >>confdefs.h fi if test "x$hypre_using_umpire" = "xyes" then -$as_echo "#define HYPRE_USING_UMPIRE 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_UMPIRE 1" >>confdefs.h fi if test "$hypre_using_cuda" = "yes" then -$as_echo "#define HYPRE_USING_GPU 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_GPU 1" >>confdefs.h -$as_echo "#define HYPRE_USING_CUDA 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_CUDA 1" >>confdefs.h @@ -9578,8 +10594,10 @@ $as_echo "#define HYPRE_USING_CUDA 1" >>confdefs.h HYPRE_CUDA_INCLUDE='-I${HYPRE_CUDA_PATH}/include' HYPRE_CUDA_LIBS='-L${HYPRE_CUDA_PATH}/lib64 -lcudart' - if test x"$hypre_using_cusparse" == x"yes" || test x"$hypre_using_cublas" == x"yes" || test x"$hypre_using_cusolver" == x"yes"; then : - if test "x$HYPRE_CUDA_PATH" != "x$HYPRE_VENDOR_MATH_PATH"; then : + if test x"$hypre_using_cusparse" == x"yes" || test x"$hypre_using_cublas" == x"yes" || test x"$hypre_using_cusolver" == x"yes" +then : + if test "x$HYPRE_CUDA_PATH" != "x$HYPRE_VENDOR_MATH_PATH" +then : HYPRE_CUDA_INCLUDE+=" -I${HYPRE_VENDOR_MATH_PATH}/include" HYPRE_CUDA_LIBS+=" -L${HYPRE_VENDOR_MATH_PATH}/lib64" fi @@ -9588,7 +10606,7 @@ fi if test "$hypre_using_gpu_profiling" = "yes" then -$as_echo "#define HYPRE_USING_NVTX 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_NVTX 1" >>confdefs.h HYPRE_CUDA_LIBS+=" -lnvToolsExt" fi @@ -9596,7 +10614,7 @@ $as_echo "#define HYPRE_USING_NVTX 1" >>confdefs.h if test "$hypre_using_cusparse" = "yes" then -$as_echo "#define HYPRE_USING_CUSPARSE 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_CUSPARSE 1" >>confdefs.h HYPRE_CUDA_LIBS+=" -lcusparse" fi @@ -9604,7 +10622,7 @@ $as_echo "#define HYPRE_USING_CUSPARSE 1" >>confdefs.h if test "$hypre_using_cublas" = "yes" then -$as_echo "#define HYPRE_USING_CUBLAS 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_CUBLAS 1" >>confdefs.h HYPRE_CUDA_LIBS+=" -lcublas" fi @@ -9612,7 +10630,7 @@ $as_echo "#define HYPRE_USING_CUBLAS 1" >>confdefs.h if test "$hypre_using_curand" = "yes" then -$as_echo "#define HYPRE_USING_CURAND 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_CURAND 1" >>confdefs.h HYPRE_CUDA_LIBS+=" -lcurand" fi @@ -9620,7 +10638,7 @@ $as_echo "#define HYPRE_USING_CURAND 1" >>confdefs.h if test "$hypre_using_cusolver" = "yes" then -$as_echo "#define HYPRE_USING_CUSOLVER 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_CUSOLVER 1" >>confdefs.h HYPRE_CUDA_LIBS+=" -lcusolver" fi @@ -9628,32 +10646,33 @@ $as_echo "#define HYPRE_USING_CUSOLVER 1" >>confdefs.h if test "$hypre_using_device_pool" = "yes" then -$as_echo "#define HYPRE_USING_DEVICE_POOL 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_DEVICE_POOL 1" >>confdefs.h fi if test "$hypre_using_device_malloc_async" = "yes" then -$as_echo "#define HYPRE_USING_DEVICE_MALLOC_ASYNC 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_DEVICE_MALLOC_ASYNC 1" >>confdefs.h fi if test "x$hypre_using_cuda_streams" = "xyes" then -$as_echo "#define HYPRE_USING_CUDA_STREAMS 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_CUDA_STREAMS 1" >>confdefs.h fi fi -if test x"$hypre_using_hip" == x"yes"; then : +if test x"$hypre_using_hip" == x"yes" +then : -$as_echo "#define HYPRE_USING_GPU 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_GPU 1" >>confdefs.h -$as_echo "#define HYPRE_USING_HIP 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_HIP 1" >>confdefs.h @@ -9671,9 +10690,11 @@ $as_echo "#define HYPRE_USING_HIP 1" >>confdefs.h HIPCXXFLAGS="-x hip -std=c++14 ${HIPCXXFLAGS}" - if test x"$hypre_using_debug" == x"yes"; then : + if test x"$hypre_using_debug" == x"yes" +then : HIPCXXFLAGS="-O1 -Wall -g -ggdb ${HIPCXXFLAGS}" -elif HIPCXXFLAGS="-O2 ${HIPCXXFLAGS}"; then : +elif HIPCXXFLAGS="-O2 ${HIPCXXFLAGS}" +then : fi @@ -9692,40 +10713,45 @@ fi HYPRE_HIP_LIBS="-L${HYPRE_ROCM_PREFIX}/lib -lamdhip64" - if test x"$hypre_using_rocsparse" == x"yes"; then : + if test x"$hypre_using_rocsparse" == x"yes" +then : -$as_echo "#define HYPRE_USING_ROCSPARSE 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_ROCSPARSE 1" >>confdefs.h HYPRE_HIP_LIBS="${HYPRE_HIP_LIBS} -lrocsparse" fi - if test x"$hypre_using_rocblas" == x"yes"; then : + if test x"$hypre_using_rocblas" == x"yes" +then : -$as_echo "#define HYPRE_USING_ROCBLAS 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_ROCBLAS 1" >>confdefs.h fi - if test x"$hypre_using_rocrand" == x"yes"; then : + if test x"$hypre_using_rocrand" == x"yes" +then : -$as_echo "#define HYPRE_USING_ROCRAND 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_ROCRAND 1" >>confdefs.h HYPRE_HIP_LIBS="${HYPRE_HIP_LIBS} -lrocrand" fi - if test x"$hypre_using_gpu_profiling" == x"yes"; then : + if test x"$hypre_using_gpu_profiling" == x"yes" +then : -$as_echo "#define HYPRE_USING_ROCTX 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_ROCTX 1" >>confdefs.h HYPRE_HIP_LIBS="${HYPRE_HIP_LIBS} -lroctx64" fi - if test x"$hypre_using_cuda_streams" == x"yes"; then : + if test x"$hypre_using_cuda_streams" == x"yes" +then : -$as_echo "#define HYPRE_USING_CUDA_STREAMS 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_CUDA_STREAMS 1" >>confdefs.h fi @@ -9733,13 +10759,14 @@ fi fi -if test x"$hypre_using_sycl" == x"yes"; then : +if test x"$hypre_using_sycl" == x"yes" +then : -$as_echo "#define HYPRE_USING_GPU 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_GPU 1" >>confdefs.h -$as_echo "#define HYPRE_USING_SYCL 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_SYCL 1" >>confdefs.h LINK_CC=${CUCC} @@ -9768,41 +10795,45 @@ $as_echo "#define HYPRE_USING_SYCL 1" >>confdefs.h CUFLAGS="${SYCLFLAGS}" fi - if test x"$hypre_using_onemklsparse" == x"yes" || test x"$hypre_using_onemklblas" == x"yes" || test x"$hypre_using_onemklrand" == x"yes"; then : - as_ac_Header=`$as_echo "ac_cv_header_"${MKLROOT}/include/mkl.h"" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" ""${MKLROOT}/include/mkl.h"" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + if test x"$hypre_using_onemklsparse" == x"yes" || test x"$hypre_using_onemklblas" == x"yes" || test x"$hypre_using_onemklrand" == x"yes" +then : + as_ac_Header=`printf "%s\n" "ac_cv_header_"${MKLROOT}/include/mkl.h"" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" ""${MKLROOT}/include/mkl.h"" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes" +then : hypre_found_mkl=yes -else +else $as_nop as_fn_error $? "unable to find oneMKL ... Ensure that MKLROOT is set" "$LINENO" 5 fi - HYPRE_SYCL_LIBS="${HYPRE_SYCL_LIBS} -qmkl -Wl,-export-dynamic -Wl,--start-group -Wl,--end-group -lsycl -lOpenCL -lpthread -lm -ldl" HYPRE_SYCL_INCL="${HYPRE_SYCL_INCL} -qmkl -I${DPLROOT}/include -DMKL_ILP64 -I${MKLROOT}/include" fi - if test x"$hypre_using_onemklsparse" == x"yes"; then : + if test x"$hypre_using_onemklsparse" == x"yes" +then : -$as_echo "#define HYPRE_USING_ONEMKLSPARSE 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_ONEMKLSPARSE 1" >>confdefs.h fi - if test x"$hypre_using_onemklblas" == x"yes"; then : + if test x"$hypre_using_onemklblas" == x"yes" +then : -$as_echo "#define HYPRE_USING_ONEMKLBLAS 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_ONEMKLBLAS 1" >>confdefs.h fi - if test x"$hypre_using_onemklrand" == x"yes"; then : + if test x"$hypre_using_onemklrand" == x"yes" +then : -$as_echo "#define HYPRE_USING_ONEMKLRAND 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_ONEMKLRAND 1" >>confdefs.h fi -$as_echo "#define HYPRE_USING_CUDA_STREAMS 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_CUDA_STREAMS 1" >>confdefs.h @@ -9812,77 +10843,77 @@ if test "$hypre_using_um" != "yes" then if test "$hypre_using_cuda" = "yes" then - { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 -$as_echo "$as_me: ***********************************************************************" >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring with --with-cuda=yes without unified memory." >&5 -$as_echo "$as_me: Configuring with --with-cuda=yes without unified memory." >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: It only works for structured solvers and selected unstructured solvers" >&5 -$as_echo "$as_me: It only works for structured solvers and selected unstructured solvers" >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 -$as_echo "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 -$as_echo "$as_me: ***********************************************************************" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 +printf "%s\n" "$as_me: ***********************************************************************" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring with --with-cuda=yes without unified memory." >&5 +printf "%s\n" "$as_me: Configuring with --with-cuda=yes without unified memory." >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: It only works for structured solvers and selected unstructured solvers" >&5 +printf "%s\n" "$as_me: It only works for structured solvers and selected unstructured solvers" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 +printf "%s\n" "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 +printf "%s\n" "$as_me: ***********************************************************************" >&6;} fi if test "$hypre_using_hip" = "yes" then - { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 -$as_echo "$as_me: ***********************************************************************" >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring with --with-hip=yes without unified memory." >&5 -$as_echo "$as_me: Configuring with --with-hip=yes without unified memory." >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: It only works for structured solvers and selected unstructured solvers" >&5 -$as_echo "$as_me: It only works for structured solvers and selected unstructured solvers" >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 -$as_echo "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 -$as_echo "$as_me: ***********************************************************************" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 +printf "%s\n" "$as_me: ***********************************************************************" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring with --with-hip=yes without unified memory." >&5 +printf "%s\n" "$as_me: Configuring with --with-hip=yes without unified memory." >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: It only works for structured solvers and selected unstructured solvers" >&5 +printf "%s\n" "$as_me: It only works for structured solvers and selected unstructured solvers" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 +printf "%s\n" "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 +printf "%s\n" "$as_me: ***********************************************************************" >&6;} fi if test "$hypre_using_sycl" = "yes" then - { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************" >&5 -$as_echo "$as_me: ***********************************************************" >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring with --with-sycl=yes without unified memory." >&5 -$as_echo "$as_me: Configuring with --with-sycl=yes without unified memory." >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: It only works for struct interface." >&5 -$as_echo "$as_me: It only works for struct interface." >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 -$as_echo "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************" >&5 -$as_echo "$as_me: ***********************************************************" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************" >&5 +printf "%s\n" "$as_me: ***********************************************************" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring with --with-sycl=yes without unified memory." >&5 +printf "%s\n" "$as_me: Configuring with --with-sycl=yes without unified memory." >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: It only works for struct interface." >&5 +printf "%s\n" "$as_me: It only works for struct interface." >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 +printf "%s\n" "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************" >&5 +printf "%s\n" "$as_me: ***********************************************************" >&6;} fi if test "$hypre_using_device_openmp" = "yes" then - { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 -$as_echo "$as_me: ***********************************************************************" >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring with --with-device-openmp=yes without unified memory." >&5 -$as_echo "$as_me: Configuring with --with-device-openmp=yes without unified memory." >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: It only works for structured solvers and selected unstructured solvers" >&5 -$as_echo "$as_me: It only works for structured solvers and selected unstructured solvers" >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 -$as_echo "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 -$as_echo "$as_me: ***********************************************************************" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 +printf "%s\n" "$as_me: ***********************************************************************" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring with --with-device-openmp=yes without unified memory." >&5 +printf "%s\n" "$as_me: Configuring with --with-device-openmp=yes without unified memory." >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: It only works for structured solvers and selected unstructured solvers" >&5 +printf "%s\n" "$as_me: It only works for structured solvers and selected unstructured solvers" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use --enable-unified-memory to compile with unified memory." >&5 +printf "%s\n" "$as_me: Use --enable-unified-memory to compile with unified memory." >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***********************************************************************" >&5 +printf "%s\n" "$as_me: ***********************************************************************" >&6;} fi fi if test "$hypre_using_openmp" = "yes" then -$as_echo "#define HYPRE_USING_OPENMP 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_OPENMP 1" >>confdefs.h fi if test "$hypre_using_device_openmp" = "yes" then -$as_echo "#define HYPRE_USING_DEVICE_OPENMP 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_DEVICE_OPENMP 1" >>confdefs.h -$as_echo "#define HYPRE_USING_GPU 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_GPU 1" >>confdefs.h -$as_echo "#define HYPRE_DEVICE_OPENMP_ALLOC 1" >>confdefs.h +printf "%s\n" "#define HYPRE_DEVICE_OPENMP_ALLOC 1" >>confdefs.h @@ -9908,7 +10939,7 @@ $as_echo "#define HYPRE_DEVICE_OPENMP_ALLOC 1" >>confdefs.h if test "$hypre_using_debug" = "yes" then -$as_echo "#define HYPRE_DEVICE_OPENMP_CHECK 1" >>confdefs.h +printf "%s\n" "#define HYPRE_DEVICE_OPENMP_CHECK 1" >>confdefs.h fi @@ -9919,17 +10950,17 @@ $as_echo "#define HYPRE_DEVICE_OPENMP_CHECK 1" >>confdefs.h if test "x$hypre_using_um" = "xyes" then -$as_echo "#define HYPRE_USING_UNIFIED_MEMORY 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_UNIFIED_MEMORY 1" >>confdefs.h else if test "x$hypre_using_cuda" = "xyes" || test "x$hypre_using_device_openmp" = "xyes" || test "x$hypre_using_hip" = "xyes" || test "x$hypre_using_sycl" = "xyes" then -$as_echo "#define HYPRE_USING_DEVICE_MEMORY 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_DEVICE_MEMORY 1" >>confdefs.h else -$as_echo "#define HYPRE_USING_HOST_MEMORY 1" >>confdefs.h +printf "%s\n" "#define HYPRE_USING_HOST_MEMORY 1" >>confdefs.h fi fi @@ -9937,7 +10968,7 @@ fi if test "$hypre_gpu_mpi" = "yes" then -$as_echo "#define HYPRE_WITH_GPU_AWARE_MPI 1" >>confdefs.h +printf "%s\n" "#define HYPRE_WITH_GPU_AWARE_MPI 1" >>confdefs.h fi @@ -9951,23 +10982,23 @@ HYPRE_INCINSTALL="${includedir}" if test $host_alias = $build_alias then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking the hostname" >&5 -$as_echo_n "checking the hostname... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the hostname" >&5 +printf %s "checking the hostname... " >&6; } hypre_hostname=hostname HOSTNAME="`$hypre_hostname`" if test -z "$HOSTNAME" then HOSTNAME=unknown - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hostname is unknown" >&5 -$as_echo "$as_me: WARNING: hostname is unknown" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: hostname is unknown" >&5 +printf "%s\n" "$as_me: WARNING: hostname is unknown" >&2;} else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5 -$as_echo "$HOSTNAME" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5 +printf "%s\n" "$HOSTNAME" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking the architecture" >&5 -$as_echo_n "checking the architecture... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the architecture" >&5 +printf %s "checking the architecture... " >&6; } if test -z "$ARCH"; then @@ -9981,8 +11012,8 @@ $as_echo_n "checking the architecture... " >&6; } done if test -z "$hypre_tarch_dir"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find tarch" >&5 -$as_echo "$as_me: WARNING: cannot find tarch" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find tarch" >&5 +printf "%s\n" "$as_me: WARNING: cannot find tarch" >&2;} HYPRE_ARCH=$HOSTTYPE else HYPRE_ARCH="`$hypre_tarch`" @@ -9994,16 +11025,16 @@ $as_echo "$as_me: WARNING: cannot find tarch" >&2;} if test -z "$HYPRE_ARCH"; then HYPRE_ARCH=unknown - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: architecture is unknown" >&5 -$as_echo "$as_me: WARNING: architecture is unknown" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: architecture is unknown" >&5 +printf "%s\n" "$as_me: WARNING: architecture is unknown" >&2;} else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HYPRE_ARCH" >&5 -$as_echo "$HYPRE_ARCH" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HYPRE_ARCH" >&5 +printf "%s\n" "$HYPRE_ARCH" >&6; } fi else HYPRE_ARCH=$ARCH - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HYPRE_ARCH" >&5 -$as_echo "$HYPRE_ARCH" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HYPRE_ARCH" >&5 +printf "%s\n" "$HYPRE_ARCH" >&6; } fi else @@ -10013,27 +11044,27 @@ $as_echo "$HYPRE_ARCH" >&6; } case $HYPRE_ARCH in alpha) -$as_echo "#define HYPRE_ALPHA 1" >>confdefs.h +printf "%s\n" "#define HYPRE_ALPHA 1" >>confdefs.h ;; sun* | solaris*) -$as_echo "#define HYPRE_SOLARIS 1" >>confdefs.h +printf "%s\n" "#define HYPRE_SOLARIS 1" >>confdefs.h ;; hp* | HP*) -$as_echo "#define HYPRE_HPPA 1" >>confdefs.h +printf "%s\n" "#define HYPRE_HPPA 1" >>confdefs.h ;; rs6000 | RS6000 | *bgl* | *BGL* | ppc64*) -$as_echo "#define HYPRE_RS6000 1" >>confdefs.h +printf "%s\n" "#define HYPRE_RS6000 1" >>confdefs.h ;; IRIX64) -$as_echo "#define HYPRE_IRIX64 1" >>confdefs.h +printf "%s\n" "#define HYPRE_IRIX64 1" >>confdefs.h ;; Linux | linux | LINUX) @@ -10043,18 +11074,18 @@ $as_echo "#define HYPRE_IRIX64 1" >>confdefs.h case $systemtype in chaos*) -$as_echo "#define HYPRE_LINUX_CHAOS 1" >>confdefs.h +printf "%s\n" "#define HYPRE_LINUX_CHAOS 1" >>confdefs.h ;; *) -$as_echo "#define HYPRE_LINUX 1" >>confdefs.h +printf "%s\n" "#define HYPRE_LINUX 1" >>confdefs.h ;; esac else -$as_echo "#define HYPRE_LINUX 1" >>confdefs.h +printf "%s\n" "#define HYPRE_LINUX 1" >>confdefs.h fi ;; @@ -10195,8 +11226,8 @@ _ACEOF case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -10226,15 +11257,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; /^ac_cv_env_/b end t clear :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else @@ -10248,8 +11279,8 @@ $as_echo "$as_me: updating cache $cache_file" >&6;} fi fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -10266,7 +11297,7 @@ U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" @@ -10282,8 +11313,8 @@ LTLIBOBJS=$ac_ltlibobjs ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL @@ -10306,14 +11337,16 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +as_nop=: +if test ${ZSH_VERSION+y} && (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 +else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -10323,46 +11356,46 @@ esac fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. 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 -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (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 +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; 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 || @@ -10371,13 +11404,6 @@ if test "${PATH_SEPARATOR+set}" != set; then 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. as_myself= case $0 in #(( @@ -10386,8 +11412,12 @@ case $0 in #(( 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 + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS @@ -10399,30 +11429,10 @@ 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 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] @@ -10435,13 +11445,14 @@ as_fn_error () as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -10468,18 +11479,20 @@ as_fn_unset () { eval $1=; unset $1;} } as_unset=as_fn_unset + # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else +else $as_nop as_fn_append () { eval $1=\$$1\$2 @@ -10491,12 +11504,13 @@ fi # as_fn_append # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else +else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` @@ -10527,7 +11541,7 @@ as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -10549,6 +11563,10 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -10562,6 +11580,12 @@ case `echo -n x` in #((((( ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -10603,7 +11627,7 @@ as_fn_mkdir_p () as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -10612,7 +11636,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -10675,7 +11699,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # values after options handling. ac_log=" This file was extended by hypre $as_me 2.27.0, which was -generated by GNU Autoconf 2.69. Invocation command line was +generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -10733,14 +11757,16 @@ $config_headers Report bugs to the package provider." _ACEOF +ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` +ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ hypre config.status 2.27.0 -configured by $0, generated by GNU Autoconf 2.69, +configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -10777,15 +11803,15 @@ do -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; + printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; + printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" @@ -10793,7 +11819,7 @@ do --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; @@ -10802,7 +11828,7 @@ do as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; + printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; @@ -10830,7 +11856,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" @@ -10844,7 +11870,7 @@ exec 5>>config.log sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX - $as_echo "$ac_log" + printf "%s\n" "$ac_log" } >&5 _ACEOF @@ -10870,8 +11896,8 @@ done # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files + test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree @@ -11207,7 +12233,7 @@ do esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done @@ -11215,17 +12241,17 @@ do # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | + ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac @@ -11242,7 +12268,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | +printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -11266,9 +12292,9 @@ $as_echo X"$ac_file" | case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$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|/||'` + ac_top_builddir_sub=`printf "%s\n" "$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/ ;; @@ -11321,8 +12347,8 @@ ac_sed_dataroot=' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' @@ -11364,9 +12390,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -11382,20 +12408,20 @@ which seems to be undefined. Please make sure it is defined" >&2;} # if test x"$ac_file" != x-; then { - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -$as_echo "$as_me: $ac_file is unchanged" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi @@ -11436,11 +12462,12 @@ if test "$no_create" != yes; then $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi + mv HYPRE_config.h HYPRE_config.h.tmp sed 's/FC_FUNC/HYPRE_FC_FUNC/g' < HYPRE_config.h.tmp > HYPRE_config.h rm -f HYPRE_config.h.tmp From eab756cf2b70586e07cf01ccb0ffaf2dd9dc39b8 Mon Sep 17 00:00:00 2001 From: Daniel Osei-Kuffuor Date: Tue, 14 Mar 2023 10:30:47 -0700 Subject: [PATCH 07/11] Add missing header file to include directory. --- src/utilities/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utilities/Makefile b/src/utilities/Makefile index d95d2037ae..bcf9386b67 100644 --- a/src/utilities/Makefile +++ b/src/utilities/Makefile @@ -27,6 +27,7 @@ HEADERS =\ int_array.h\ memory.h\ memory_tracker.h\ + multiprecision.h\ HYPRE_utilities.h\ mpistubs.h\ threading.h\ @@ -90,12 +91,14 @@ all: libHYPRE_utilities${HYPRE_LIB_SUFFIX} cp -fR $(srcdir)/_hypre_utilities.h $(HYPRE_BUILD_DIR)/include cp -fR $(srcdir)/_hypre_utilities.hpp $(HYPRE_BUILD_DIR)/include cp -fR $(srcdir)/fortran*.h $(HYPRE_BUILD_DIR)/include + cp -fR $(srcdir)/multiprecision.h $(HYPRE_BUILD_DIR)/include # cp -fR libHYPRE* $(HYPRE_BUILD_DIR)/lib install: libHYPRE_utilities${HYPRE_LIB_SUFFIX} cp -fR $(srcdir)/HYPRE_*.h $(HYPRE_INC_INSTALL) cp -fR $(srcdir)/_hypre_utilities.h $(HYPRE_INC_INSTALL) cp -fR $(srcdir)/fortran*.h $(HYPRE_INC_INSTALL) + cp -fR $(srcdir)/multiprecision.h $(HYPRE_INC_INSTALL) # cp -fR libHYPRE* $(HYPRE_LIB_INSTALL) clean: clean_mup From 02f4b1401beb7d2714d6e5977891f4bae42cf6b4 Mon Sep 17 00:00:00 2001 From: Daniel Osei-Kuffuor Date: Thu, 16 Mar 2023 14:16:34 -0700 Subject: [PATCH 08/11] Updates to fix some compile issues with --enable-mixed-precision. --- src/blas/blas_mup_func.h | 2 +- src/lapack/lapack_mup_func.h | 2 +- src/lib/Makefile | 10 ++++++++++ src/utilities/HYPRE_utilities.h | 8 +++++++- src/utilities/Makefile | 8 +++++--- src/utilities/_hypre_utilities.h | 4 ---- src/utilities/headers | 4 ---- src/utilities/utilities_mup_func.h | 2 +- 8 files changed, 25 insertions(+), 15 deletions(-) diff --git a/src/blas/blas_mup_func.h b/src/blas/blas_mup_func.h index 63ba6e728e..0f8b357482 100644 --- a/src/blas/blas_mup_func.h +++ b/src/blas/blas_mup_func.h @@ -14,7 +14,7 @@ #ifndef BLAS_MUP_FUNC_HEADER #define BLAS_MUP_FUNC_HEADER -#include "HYPRE_utilities.h" +#include "multiprecision.h" #define hypre_dasum HYPRE_MULTIPRECISION_FUNC ( hypre_dasum ) #define hypre_daxpy HYPRE_MULTIPRECISION_FUNC ( hypre_daxpy ) diff --git a/src/lapack/lapack_mup_func.h b/src/lapack/lapack_mup_func.h index 469c4e1031..d103bbcd88 100644 --- a/src/lapack/lapack_mup_func.h +++ b/src/lapack/lapack_mup_func.h @@ -14,7 +14,7 @@ #ifndef LAPACK_MUP_FUNC_HEADER #define LAPACK_MUP_FUNC_HEADER -#include "HYPRE_utilities.h" +#include "multiprecision.h" #define hypre_dbdsqr HYPRE_MULTIPRECISION_FUNC ( hypre_dbdsqr ) #define hypre_dgebd2 HYPRE_MULTIPRECISION_FUNC ( hypre_dgebd2 ) diff --git a/src/lib/Makefile b/src/lib/Makefile index 139cc9a57a..a8371425c5 100644 --- a/src/lib/Makefile +++ b/src/lib/Makefile @@ -23,9 +23,15 @@ SSTRUCTLSFILES = ${HYPRE_SRC_TOP_DIR}/sstruct_ls/*.o SSTRUCTMVFILES = ${HYPRE_SRC_TOP_DIR}/sstruct_mv/*.o STRUCTLSFILES = ${HYPRE_SRC_TOP_DIR}/struct_ls/*.o STRUCTMVFILES = ${HYPRE_SRC_TOP_DIR}/struct_mv/*.o +ifeq (${MP_BUILD}, 1) +UTILITIESFILES = ${HYPRE_SRC_TOP_DIR}/utilities/MuP_obj.dir/utilities_*/*.o +BLASFILES = ${HYPRE_SRC_TOP_DIR}/blas/MuP_obj.dir/blas_*/*.o +LAPACKFILES = ${HYPRE_SRC_TOP_DIR}/lapack/MuP_obj.dir/lapack_*/*.o +else UTILITIESFILES = ${HYPRE_SRC_TOP_DIR}/utilities/*.o BLASFILES = ${HYPRE_SRC_TOP_DIR}/blas/*.o LAPACKFILES = ${HYPRE_SRC_TOP_DIR}/lapack/*.o +endif IJMVOBJFILES = ${HYPRE_SRC_TOP_DIR}/IJ_mv/*.obj PARCSRLSOBJFILES = ${HYPRE_SRC_TOP_DIR}/parcsr_ls/*.obj @@ -35,7 +41,11 @@ SSTRUCTLSOBJFILES = ${HYPRE_SRC_TOP_DIR}/sstruct_ls/*.obj SSTRUCTMVOBJFILES = ${HYPRE_SRC_TOP_DIR}/sstruct_mv/*.obj STRUCTLSOBJFILES = ${HYPRE_SRC_TOP_DIR}/struct_ls/*.obj STRUCTMVOBJFILES = ${HYPRE_SRC_TOP_DIR}/struct_mv/*.obj +ifeq (${MP_BUILD}, 1) +UTILITIESOBJFILES = ${HYPRE_SRC_TOP_DIR}/utilities/MuP_obj.dir/utilities_*/*.obj +else UTILITIESOBJFILES = ${HYPRE_SRC_TOP_DIR}/utilities/*.obj +endif FILES_HYPRE = \ $(FEIHYPREFILES)\ diff --git a/src/utilities/HYPRE_utilities.h b/src/utilities/HYPRE_utilities.h index 22a3c37efc..76083dd293 100644 --- a/src/utilities/HYPRE_utilities.h +++ b/src/utilities/HYPRE_utilities.h @@ -24,6 +24,10 @@ #include #endif +#ifdef HYPRE_MIXED_PRECISION +#include "utilities_mup_func.h" +#endif + #ifdef __cplusplus extern "C" { #endif @@ -58,7 +62,7 @@ typedef int HYPRE_Int; #include /* Include multiprecision header */ -#include "multiprecision.h" +//#include "multiprecision.h" #if defined(HYPRE_SINGLE) typedef float HYPRE_Real; @@ -126,6 +130,8 @@ typedef HYPRE_Int MPI_Comm; #define HYPRE_ERROR_CONV 256 /* method did not converge as expected */ #define HYPRE_MAX_FILE_NAME_LEN 1024 /* longest filename length used in hypre */ + + /*-------------------------------------------------------------------------- * HYPRE init/finalize *--------------------------------------------------------------------------*/ diff --git a/src/utilities/Makefile b/src/utilities/Makefile index bcf9386b67..0a50ca6278 100644 --- a/src/utilities/Makefile +++ b/src/utilities/Makefile @@ -92,6 +92,7 @@ all: libHYPRE_utilities${HYPRE_LIB_SUFFIX} cp -fR $(srcdir)/_hypre_utilities.hpp $(HYPRE_BUILD_DIR)/include cp -fR $(srcdir)/fortran*.h $(HYPRE_BUILD_DIR)/include cp -fR $(srcdir)/multiprecision.h $(HYPRE_BUILD_DIR)/include + cp -fR $(srcdir)/utilities_mup_func.h $(HYPRE_BUILD_DIR)/include # cp -fR libHYPRE* $(HYPRE_BUILD_DIR)/lib install: libHYPRE_utilities${HYPRE_LIB_SUFFIX} @@ -99,6 +100,7 @@ install: libHYPRE_utilities${HYPRE_LIB_SUFFIX} cp -fR $(srcdir)/_hypre_utilities.h $(HYPRE_INC_INSTALL) cp -fR $(srcdir)/fortran*.h $(HYPRE_INC_INSTALL) cp -fR $(srcdir)/multiprecision.h $(HYPRE_INC_INSTALL) + cp -fR $(srcdir)/utilities_mup_func.h $(HYPRE_INC_INSTALL) # cp -fR libHYPRE* $(HYPRE_LIB_INSTALL) clean: clean_mup @@ -141,9 +143,9 @@ MuP_OBJDIR_single = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_flt} MuP_OBJDIR_double = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_dbl} MuP_OBJDIR_longdouble = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_ldbl} # -MKDIR_P = mkdir -p -mkmpdir: - ${MKDIR_P} ${MuP_OBJDIR} +#MKDIR_P = mkdir -p +#mkmpdir: +# ${MKDIR_P} ${MuP_OBJDIR} # ADD_OBJS_single = ${addprefix ${MuP_OBJDIR_single}/, ${notdir ${OBJS}}} ${ADD_OBJS_single}: CFLAGS += -DMP_BUILD_SINGLE=1 diff --git a/src/utilities/_hypre_utilities.h b/src/utilities/_hypre_utilities.h index c60fb7ccc5..38dccde2f1 100644 --- a/src/utilities/_hypre_utilities.h +++ b/src/utilities/_hypre_utilities.h @@ -10,10 +10,6 @@ #include #endif -#ifdef HYPRE_MIXED_PRECISION -#include "utilities_mup_func.h" -#endif - #ifdef __cplusplus extern "C" { #endif diff --git a/src/utilities/headers b/src/utilities/headers index 45f37a74b9..94228cc5cc 100755 --- a/src/utilities/headers +++ b/src/utilities/headers @@ -23,10 +23,6 @@ cat > $INTERNAL_HEADER <<@ #include #endif -#ifdef HYPRE_MIXED_PRECISION -#include "utilities_mup_func.h" -#endif - #ifdef __cplusplus extern "C" { #endif diff --git a/src/utilities/utilities_mup_func.h b/src/utilities/utilities_mup_func.h index 6ccc498234..5021c668b1 100644 --- a/src/utilities/utilities_mup_func.h +++ b/src/utilities/utilities_mup_func.h @@ -14,7 +14,7 @@ #ifndef UTILITIES_MUP_FUNC_HEADER #define UTILITIES_MUP_FUNC_HEADER -#include "HYPRE_utilities.h" +#include "multiprecision.h" #define hypre_checkerror HYPRE_MULTIPRECISION_FUNC ( hypre_checkerror ) #define hypre_clearallerrors HYPRE_MULTIPRECISION_FUNC ( hypre_clearallerrors ) From 69a2e5b8869dce25a7aa598d0716a88bbfd99440 Mon Sep 17 00:00:00 2001 From: Daniel Osei-Kuffuor Date: Fri, 17 Mar 2023 14:22:14 -0700 Subject: [PATCH 09/11] Minor updates to include multiprecision.h header instead of HYPRE_utilities header. --- src/blas/blas_func_header | 4 ++-- src/lapack/lapack_func_header | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blas/blas_func_header b/src/blas/blas_func_header index ab82d732b5..683628d6b8 100755 --- a/src/blas/blas_func_header +++ b/src/blas/blas_func_header @@ -12,7 +12,7 @@ cat > $MUP_HEADER <<@ /*** DO NOT EDIT THIS FILE DIRECTLY (use 'blas_func_header' to generate) ***/ @ # Generate copyright header -../../../hypre/src/scripts/writeHeader.sh $MUP_HEADER +../config/writeHeader.sh $MUP_HEADER cat >> $MUP_HEADER <<@ @@ -23,7 +23,7 @@ cat >> $MUP_HEADER <<@ #ifndef BLAS_MUP_FUNC_HEADER #define BLAS_MUP_FUNC_HEADER -#include "HYPRE_utilities.h" +#include "multiprecision.h" @ diff --git a/src/lapack/lapack_func_header b/src/lapack/lapack_func_header index 60495ed188..2d12971126 100755 --- a/src/lapack/lapack_func_header +++ b/src/lapack/lapack_func_header @@ -12,7 +12,7 @@ cat > $MUP_HEADER <<@ /*** DO NOT EDIT THIS FILE DIRECTLY (use 'lapack_func_header' to generate) ***/ @ # Generate copyright header -../../../hypre/src/scripts/writeHeader.sh $MUP_HEADER +../config/writeHeader.sh $MUP_HEADER cat >> $MUP_HEADER <<@ @@ -23,7 +23,7 @@ cat >> $MUP_HEADER <<@ #ifndef LAPACK_MUP_FUNC_HEADER #define LAPACK_MUP_FUNC_HEADER -#include "HYPRE_utilities.h" +#include "multiprecision.h" @ From 30cfbd175ebd1eaa5fa6d1ad8620ecd90da4ab5a Mon Sep 17 00:00:00 2001 From: Daniel Osei-Kuffuor Date: Fri, 17 Mar 2023 14:23:22 -0700 Subject: [PATCH 10/11] Added scripts to generate multiprecision function list and write copyright header. --- src/config/generate_function_list.sh | 21 +++++++++++++++++++++ src/config/writeHeader.sh | 17 +++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100755 src/config/generate_function_list.sh create mode 100755 src/config/writeHeader.sh diff --git a/src/config/generate_function_list.sh b/src/config/generate_function_list.sh new file mode 100755 index 0000000000..661f594d06 --- /dev/null +++ b/src/config/generate_function_list.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# Copyright (c) 1998 Lawrence Livermore National Security, LLC and other +# HYPRE Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +# generate file containing function names in current folder. +# This will be used to generate a header file for transforming +# multiprecision function names. It will also be useful for +# regression testing for the multiprecision build. +# +# NOTE: It must be run on symbols generated from the +# non-multiprecision build of hypre. + +rootdir=$PWD +rootdir="${rootdir%/}" +rootname="${rootdir##*/}" + +## extract function names and remove leading and trailing underscores, if any +## To include local functions (static functions) test on $2=="t" as well +nm -A --defined-only *.o* | awk -F'[ ]' '$2=="T"{print $3}' | sed 's/_*//;s/_*$//' > ${rootname}_functions.out diff --git a/src/config/writeHeader.sh b/src/config/writeHeader.sh new file mode 100755 index 0000000000..a50caff1fd --- /dev/null +++ b/src/config/writeHeader.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# Copyright (c) 1998 Lawrence Livermore National Security, LLC and other +# HYPRE Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +FNAME=$1 +cat >> $FNAME <<@ + +/****************************************************************************** + * Copyright (c) 1998 Lawrence Livermore National Security, LLC and other + * HYPRE Project Developers. See the top-level COPYRIGHT file for details. + * + * SPDX-License-Identifier: (Apache-2.0 OR MIT) + ******************************************************************************/ +@ + From 953499c59b50a18443eddeacaa0869ebbd9b9ce4 Mon Sep 17 00:00:00 2001 From: Daniel Osei-Kuffuor Date: Fri, 17 Mar 2023 14:25:50 -0700 Subject: [PATCH 11/11] Update multivector folder to support multiprecision build. --- src/lib/Makefile | 3 +- src/multivector/Makefile | 57 ++++++++++++++++++++- src/multivector/interpreter.h | 4 ++ src/multivector/multivector_func_header | 41 +++++++++++++++ src/multivector/multivector_functions.saved | 34 ++++++++++++ src/multivector/multivector_mup_func.h | 54 +++++++++++++++++++ 6 files changed, 190 insertions(+), 3 deletions(-) create mode 100755 src/multivector/multivector_func_header create mode 100644 src/multivector/multivector_functions.saved create mode 100644 src/multivector/multivector_mup_func.h diff --git a/src/lib/Makefile b/src/lib/Makefile index a8371425c5..76f53603d5 100644 --- a/src/lib/Makefile +++ b/src/lib/Makefile @@ -14,7 +14,6 @@ PILUTFILES = ${HYPRE_PILUT_FILES} DISTMATRIXFILES = ${HYPRE_SRC_TOP_DIR}/distributed_matrix/*.o KRYLOVFILES = ${HYPRE_SRC_TOP_DIR}/krylov/*.o MATMATFILES = ${HYPRE_SRC_TOP_DIR}/matrix_matrix/*.o -MULTIVECFILES = ${HYPRE_SRC_TOP_DIR}/multivector/*.o PARCSRLSFILES = ${HYPRE_SRC_TOP_DIR}/parcsr_ls/*.o PARCSRMVFILES = ${HYPRE_SRC_TOP_DIR}/parcsr_mv/*.o PARCSRBLOCKMVFILES = ${HYPRE_SRC_TOP_DIR}/parcsr_block_mv/*.o @@ -24,10 +23,12 @@ SSTRUCTMVFILES = ${HYPRE_SRC_TOP_DIR}/sstruct_mv/*.o STRUCTLSFILES = ${HYPRE_SRC_TOP_DIR}/struct_ls/*.o STRUCTMVFILES = ${HYPRE_SRC_TOP_DIR}/struct_mv/*.o ifeq (${MP_BUILD}, 1) +MULTIVECFILES = ${HYPRE_SRC_TOP_DIR}/multivector/MuP_obj.dir/multivector_*/*.o UTILITIESFILES = ${HYPRE_SRC_TOP_DIR}/utilities/MuP_obj.dir/utilities_*/*.o BLASFILES = ${HYPRE_SRC_TOP_DIR}/blas/MuP_obj.dir/blas_*/*.o LAPACKFILES = ${HYPRE_SRC_TOP_DIR}/lapack/MuP_obj.dir/lapack_*/*.o else +MULTIVECFILES = ${HYPRE_SRC_TOP_DIR}/multivector/*.o UTILITIESFILES = ${HYPRE_SRC_TOP_DIR}/utilities/*.o BLASFILES = ${HYPRE_SRC_TOP_DIR}/blas/*.o LAPACKFILES = ${HYPRE_SRC_TOP_DIR}/lapack/*.o diff --git a/src/multivector/Makefile b/src/multivector/Makefile index 2811c2fd38..f8997a8672 100644 --- a/src/multivector/Makefile +++ b/src/multivector/Makefile @@ -37,16 +37,68 @@ install: libHYPRE_multivector${HYPRE_LIB_SUFFIX} cp -fR *.h $(HYPRE_INC_INSTALL) # cp -fR libHYPRE* $(HYPRE_LIB_INSTALL) -clean: +clean: clean_mup rm -f *.o libHYPRE* rm -rf pchdir tca.map *inslog* distclean: clean +ifeq (${MP_BUILD}, 1) +clean_mup: + rm -rf ${MuP_OBJDIR} +else +clean_mup: +endif + ################################################################## -# Rules +# Build Rules ################################################################## +ifeq (${MP_BUILD}, 1) + +MuP_OBJDIR = MuP_obj.dir +MuP_OBJDIR_single = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_flt} +MuP_OBJDIR_double = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_dbl} +MuP_OBJDIR_longdouble = ${MuP_OBJDIR}/${join ${shell basename ${CURDIR}},_ldbl} +# +#MKDIR_P = mkdir -p +#mkmpdir: +# ${MKDIR_P} ${MuP_OBJDIR} +# +ADD_OBJS_single = ${addprefix ${MuP_OBJDIR_single}/, ${notdir ${OBJS}}} +${ADD_OBJS_single}: CFLAGS += -DMP_BUILD_SINGLE=1 +${MuP_OBJDIR_single}/%.o: %.c + @echo "processing C object $@ ..." + @mkdir -p ${@D} + ${CC} ${CFLAGS} -c -o $@ $< +# +ADD_OBJS_double = ${addprefix ${MuP_OBJDIR_double}/, ${notdir ${OBJS}}} +${ADD_OBJS_double}: CFLAGS += -DMP_BUILD_DOUBLE=1 +${MuP_OBJDIR_double}/%.o: %.c + @echo "processing C object $@ ..." + @mkdir -p ${@D} + ${CC} ${CFLAGS} -c -o $@ $< +# +ADD_OBJS_longdouble = ${addprefix ${MuP_OBJDIR_longdouble}/, ${notdir ${OBJS}}} +${ADD_OBJS_longdouble}: CFLAGS += -DMP_BUILD_LONGDOUBLE=1 +${MuP_OBJDIR_longdouble}/%.o: %.c + @echo "processing C object $@ ..." + @mkdir -p ${@D} + ${CC} ${CFLAGS} -c -o $@ $< +# +# multiprecision object libraries +MULTIVECTORLIBS = ${ADD_OBJS_single} ${ADD_OBJS_double} ${ADD_OBJS_longdouble} + +libHYPRE_multivector.a: ${MULTIVECTORLIBS} + @echo "Building $@ ... " + ${AR} $@ ${MULTIVECTORLIBS} + ${RANLIB} $@ + +libHYPRE_multivector.so libHYPRE_multivector.dylib: ${MULTIVECTORLIBS} + @echo "Building $@ ... " + ${BUILD_CC_SHARED} -o ${SONAME} ${MULTIVECTORLIBS} ${SHARED_SET_SONAME}${SONAME} + ln -s -f ${SONAME} $@ +else libHYPRE_multivector.a: ${OBJS} @echo "Building $@ ... " ${AR} $@ ${OBJS} @@ -58,3 +110,4 @@ libHYPRE_multivector.so libHYPRE_multivector.dylib: ${OBJS} ln -s -f ${SONAME} $@ ${OBJS}: ${HEADERS} +endif diff --git a/src/multivector/interpreter.h b/src/multivector/interpreter.h index c59627fd7c..5db17a14a6 100644 --- a/src/multivector/interpreter.h +++ b/src/multivector/interpreter.h @@ -10,6 +10,10 @@ #include "HYPRE_utilities.h" +#ifdef HYPRE_MIXED_PRECISION +#include "multivector_mup_func.h" +#endif + typedef struct { /* vector operations */ diff --git a/src/multivector/multivector_func_header b/src/multivector/multivector_func_header new file mode 100755 index 0000000000..06d9fc80ea --- /dev/null +++ b/src/multivector/multivector_func_header @@ -0,0 +1,41 @@ +#!/bin/sh +# Copyright (c) 1998 Lawrence Livermore National Security, LLC and other +# HYPRE Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +# generate header file for transforming multiprecision function names + +MUP_HEADER=multivector_mup_func.h + +cat > $MUP_HEADER <<@ +/*** DO NOT EDIT THIS FILE DIRECTLY (use 'blas_func_header' to generate) ***/ +@ +# Generate copyright header +/usr/WS1/osei/soft/hypre/features/unity_build/all-build/hypre/src/scripts/writeHeader.sh $MUP_HEADER + +cat >> $MUP_HEADER <<@ + +/****************************************************************************** + * Header file for transforming multiprecision functions names + *****************************************************************************/ + +#ifndef MULTIVECTOR_MUP_FUNC_HEADER +#define MULTIVECTOR_MUP_FUNC_HEADER + +#include "multiprecision.h" + +@ + +FIN=multivector_functions.saved +cat>> $MUP_HEADER <<@ +$( +cat "$FIN" | while read -r func_name +do +# print dressed-up function +echo "#define $func_name HYPRE_MULTIPRECISION_FUNC ( $func_name )" +done +) + +#endif +@ diff --git a/src/multivector/multivector_functions.saved b/src/multivector/multivector_functions.saved new file mode 100644 index 0000000000..2735870b93 --- /dev/null +++ b/src/multivector/multivector_functions.saved @@ -0,0 +1,34 @@ +mv_MultiVectorAxpy +mv_MultiVectorByDiagonal +mv_MultiVectorByMatrix +mv_MultiVectorByMultiVector +mv_MultiVectorByMultiVectorDiag +mv_MultiVectorClear +mv_MultiVectorCopy +mv_MultiVectorCreateCopy +mv_MultiVectorCreateFromSampleVector +mv_MultiVectorDestroy +mv_MultiVectorEval +mv_MultiVectorGetData +mv_MultiVectorHeight +mv_MultiVectorSetMask +mv_MultiVectorSetRandom +mv_MultiVectorWidth +mv_MultiVectorWrap +mv_MultiVectorXapy +mv_TempMultiVectorAxpy +mv_TempMultiVectorByDiagonal +mv_TempMultiVectorByMatrix +mv_TempMultiVectorByMultiVector +mv_TempMultiVectorByMultiVectorDiag +mv_TempMultiVectorClear +mv_TempMultiVectorCopy +mv_TempMultiVectorCreateCopy +mv_TempMultiVectorCreateFromSampleVector +mv_TempMultiVectorDestroy +mv_TempMultiVectorEval +mv_TempMultiVectorHeight +mv_TempMultiVectorSetMask +mv_TempMultiVectorSetRandom +mv_TempMultiVectorWidth +mv_TempMultiVectorXapy diff --git a/src/multivector/multivector_mup_func.h b/src/multivector/multivector_mup_func.h new file mode 100644 index 0000000000..e906e7bd3e --- /dev/null +++ b/src/multivector/multivector_mup_func.h @@ -0,0 +1,54 @@ +/*** DO NOT EDIT THIS FILE DIRECTLY (use 'blas_func_header' to generate) ***/ + +/****************************************************************************** + * Copyright (c) 1998 Lawrence Livermore National Security, LLC and other + * HYPRE Project Developers. See the top-level COPYRIGHT file for details. + * + * SPDX-License-Identifier: (Apache-2.0 OR MIT) + ******************************************************************************/ + +/****************************************************************************** + * Header file for transforming multiprecision functions names + *****************************************************************************/ + +#ifndef MULTIVECTOR_MUP_FUNC_HEADER +#define MULTIVECTOR_MUP_FUNC_HEADER + +#include "multiprecision.h" + +#define mv_MultiVectorAxpy HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorAxpy ) +#define mv_MultiVectorByDiagonal HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorByDiagonal ) +#define mv_MultiVectorByMatrix HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorByMatrix ) +#define mv_MultiVectorByMultiVector HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorByMultiVector ) +#define mv_MultiVectorByMultiVectorDiag HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorByMultiVectorDiag ) +#define mv_MultiVectorClear HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorClear ) +#define mv_MultiVectorCopy HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorCopy ) +#define mv_MultiVectorCreateCopy HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorCreateCopy ) +#define mv_MultiVectorCreateFromSampleVector HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorCreateFromSampleVector ) +#define mv_MultiVectorDestroy HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorDestroy ) +#define mv_MultiVectorEval HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorEval ) +#define mv_MultiVectorGetData HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorGetData ) +#define mv_MultiVectorHeight HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorHeight ) +#define mv_MultiVectorSetMask HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorSetMask ) +#define mv_MultiVectorSetRandom HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorSetRandom ) +#define mv_MultiVectorWidth HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorWidth ) +#define mv_MultiVectorWrap HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorWrap ) +#define mv_MultiVectorXapy HYPRE_MULTIPRECISION_FUNC ( mv_MultiVectorXapy ) +#define mv_TempMultiVectorAxpy HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorAxpy ) +#define mv_TempMultiVectorByDiagonal HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorByDiagonal ) +#define mv_TempMultiVectorByMatrix HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorByMatrix ) +#define mv_TempMultiVectorByMultiVector HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorByMultiVector ) +#define mv_TempMultiVectorByMultiVectorDiag HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorByMultiVectorDiag ) +#define mv_TempMultiVectorClear HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorClear ) +#define mv_TempMultiVectorCopy HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorCopy ) +#define mv_TempMultiVectorCreateCopy HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorCreateCopy ) +#define mv_TempMultiVectorCreateFromSampleVector HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorCreateFromSampleVector ) +#define mv_TempMultiVectorDestroy HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorDestroy ) +#define mv_TempMultiVectorEval HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorEval ) +#define mv_TempMultiVectorHeight HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorHeight ) +#define mv_TempMultiVectorSetMask HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorSetMask ) +#define mv_TempMultiVectorSetRandom HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorSetRandom ) +#define mv_TempMultiVectorWidth HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorWidth ) +#define mv_TempMultiVectorXapy HYPRE_MULTIPRECISION_FUNC ( mv_TempMultiVectorXapy ) + +#endif