From 55d2c93eebd5122a0a2688e3cce6111b5f1b00c1 Mon Sep 17 00:00:00 2001 From: Nicola Spallanzani Date: Wed, 22 Mar 2023 10:28:13 +0100 Subject: [PATCH 01/36] added configure support for magma libraries. support for internal library compilation not yet available. --- config/configure.ac | 4 + config/m4/acx_report.m4 | 9 + config/m4/magma.m4 | 164 + config/mk/global/defs.mk.in | 3 +- config/report.in | 6 +- config/setup.in | 2 + configure | 8233 ++++++++++++++++------------------- 7 files changed, 3990 insertions(+), 4431 deletions(-) create mode 100644 config/m4/magma.m4 diff --git a/config/configure.ac b/config/configure.ac index c09d9b4a59..1afa0125d1 100644 --- a/config/configure.ac +++ b/config/configure.ac @@ -247,6 +247,7 @@ m4_include([config/m4/iotk.m4]) m4_include([config/m4/etsf_io.m4]) m4_include([config/m4/scalapack.m4]) m4_include([config/m4/petsc_slepc.m4]) +m4_include([config/m4/magma.m4]) # AC_LANG_PUSH(Fortran) # ============================================================================ @@ -293,6 +294,9 @@ ACX_LIBXC # CUDA AC_HAVE_CUDA # ============================================================================ +# MAGMA +AC_MAGMA_SETUP +# ============================================================================ # Prepare the REPORT file variables ACX_REPORT() # ============================================================================ diff --git a/config/m4/acx_report.m4 b/config/m4/acx_report.m4 index 804050e5d0..3402a1ca65 100644 --- a/config/m4/acx_report.m4 +++ b/config/m4/acx_report.m4 @@ -149,6 +149,14 @@ if test "$internal_libxc" = "yes" ; then if test "$compile_libxc" = "no" ; then LIBXC_check="I"; fi fi # +MAGMA_check="-" +if test "$internal_magma" = "yes" ; then + if test "$compile_magma" = "yes" ; then SLEPC_check="C"; fi + if test "$compile_magma" = "no" ; then SLEPC_check="I"; fi +elif test "$enable_magma" = "yes" ; then + MAGMA_check="E" +fi +# YDB_check="-"; if test "$enable_ydb" = "yes" ; then YDB_check="X"; fi YPY_check="-"; @@ -240,6 +248,7 @@ AC_SUBST(YDB_check) AC_SUBST(YPY_check) # AC_SUBST(LIBXC_check) +AC_SUBST(MAGMA_check) AC_SUBST(MPI_check) AC_SUBST(MPI_info) ]) diff --git a/config/m4/magma.m4 b/config/m4/magma.m4 new file mode 100644 index 0000000000..a95275e23b --- /dev/null +++ b/config/m4/magma.m4 @@ -0,0 +1,164 @@ +# +# Copyright (C) 2000-2022 the YAMBO team +# http://www.yambo-code.org +# +# Authors (see AUTHORS file for details): AM +# +# This file is distributed under the terms of the GNU +# General Public License. You can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; +# either version 2, or (at your option) any later version. +# +# This program is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place - Suite 330,Boston, +# MA 02111-1307, USA or visit http://www.gnu.org/copyleft/gpl.txt. +# +AC_DEFUN([AC_MAGMA_SETUP],[ +# +AC_ARG_ENABLE(magma_linalg, AS_HELP_STRING([--enable-magma-linalg],[Enable suport for the diagonalization of BSE using MAGMA. Default is no])) +# +AC_ARG_WITH(magma_libs,AS_HELP_STRING([--with-magma-libs=],[Use Magma libraries ],[32])) +AC_ARG_WITH(magma_incs,AS_HELP_STRING([--with-magma-incs=],[Use Magma includes ],[32])) +AC_ARG_WITH(magma_path, AS_HELP_STRING([--with-magma-path=],[Path to the Magma install directory],[32]),[],[]) +AC_ARG_WITH(magma_libdir,AS_HELP_STRING([--with-magma-libdir=],[Path to the Magma lib directory],[32])) +AC_ARG_WITH(magma_includedir,AS_HELP_STRING([--with-magma-includedir=],[Path to the Magma include directory],[32])) + +# +def_magma="" +magma="no" +enable_magma="no" +internal_magma="no" +compile_magma="no" +# +if test x"$enable_magma_linalg" = "xyes"; then + enable_magma="yes"; +fi +# +# MAGMA global options +# +if test x"$with_magma_libs" = "xyes" ; then + enable_magma="yes" ; + with_magma_libs=""; +elif test x"$with_magma_libs" = "xno" ; then + enable_magma="no" ; + with_magma_libs=""; +fi +# +if test x"$with_magma_libdir" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_path" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_libs" != "x" ; then enable_magma="yes" ; fi +# +# Set MAGMA LIBS and FLAGS from INPUT +# +if test -d "$with_magma_path" || test -d "$with_magma_libdir" || test x"$with_magma_libs" != "x" ; then + # + # external magma + # + if test x"$with_magma_libs" != "x" ; then AC_MSG_CHECKING([for Magma using $with_magma_libs]) ; + elif test -d "$with_magma_libdir" ; then AC_MSG_CHECKING([for Magma in $with_magma_libdir]) ; + elif test -d "$with_magma_path" ; then AC_MSG_CHECKING([for Magma in $with_magma_path]) ; + fi + # + if test -d "$with_magma_path" ; then + try_magma_libdir="$with_magma_path/lib" ; + try_magma_incdir="$with_magma_path/include" ; + fi + # + if test -d "$with_magma_libdir" ; then try_magma_libdir="$with_magma_libdir" ; fi + if test -d "$with_magma_includedir" ; then try_magma_incdir="$with_magma_includedir" ; fi + # + try_MAGMA_INCS="$IFLAG$try_magma_incdir" ; + try_MAGMA_LIBS="-L$try_magma_libdir -lmagma" ; + # + if test x"$with_magma_libs" != "x" ; then try_MAGMA_LIBS="$with_magma_libs" ; fi + if test x"$with_magma_incs" != "x" ; then try_MAGMA_INCS="$with_magma_incs" ; fi + # + if test -z "$try_MAGMA_LIBS" ; then AC_MSG_ERROR([No libs specified]) ; fi + if test -z "$try_MAGMA_INCS" ; then AC_MSG_ERROR([No include-dir specified]) ; fi + # + AC_LANG([Fortran]) + # + save_fcflags="$FCFLAGS" ; + save_libs="$LIBS" ; + # + FCFLAGS="$try_MAGMA_INCS $save_fcflags"; + LIBS="$try_MAGMA_LIBS $save_libs"; + # + AC_COMPILE_IFELSE(AC_LANG_PROGRAM([], [ +use magma +implicit none +integer :: lda +!magma_devptr_t :: dA]), + [magma=yes], [magma=no]); + # + if test "x$magma" = "xyes"; then + AC_MSG_RESULT([yes]) ; + MAGMA_INCS="$try_MAGMA_INCS" ; + MAGMA_LIBS="$try_MAGMA_LIBS" ; + compile_magma="no"; + internal_magma="no"; + def_magma="-D_MAGMA" + else + AC_MSG_RESULT([no]) ; + # + fi + # + FCFLAGS="$save_fcflags" ; + LIBS="$save_libs" ; + # +fi +# +# TO BE FIXED: needs internal compilation support and paths have to be corrected with GPU_SUPPORT folder +if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then + # + # internal magma + # + AC_MSG_CHECKING([for internal Magma library]) + # + internal_magma="yes" + # + if test "x$lapack_shared" = "x1" ; then + #MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; + MAGMA_LIBS="" ; + else + #MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; + MAGMA_LIBS="" ; + fi + #MAGMA_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ; + MAGMA_INCS="" ; + # + magma=yes + def_magma="-D_MAGMA" + if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; then + compile_magma="no" ; + AC_MSG_RESULT([already compiled]) ; + elif test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; then + compile_magma="no" ; + AC_MSG_RESULT([already compiled]) ; + else + #compile_magma="yes" ; + #AC_MSG_RESULT([to be compiled]) ; + AC_MSG_RESULT([Compatible external Magma not found/specified. Internal compilation not available yet.]) ; + compile_magma="no" + def_magma="" + enable_magma="no" + fi + # +fi +# +AC_SUBST(MAGMA_LIBS) +AC_SUBST(MAGMA_INCS) +AC_SUBST(def_magma) +AC_SUBST(enable_magma) +AC_SUBST(compile_magma) +AC_SUBST(internal_magma) +# +]) diff --git a/config/mk/global/defs.mk.in b/config/mk/global/defs.mk.in index 1d4cd47b66..15e0967012 100644 --- a/config/mk/global/defs.mk.in +++ b/config/mk/global/defs.mk.in @@ -29,7 +29,8 @@ netcdf = @def_netcdf@ scalapack = @def_scalapack@ slepc = @def_slepc@ fft = @def_fft@ -xcpp = @def_netcdf@ @def_mpi@ @def_fft@ @def_slepc@ @def_scalapack@ @def_compiler@ @def_dp@ @def_openmp@ @def_time_profile@ @def_memory_profile@ @def_uspp@ @def_cuda@ @def_yaml@ +magma = @def_magma@ +xcpp = @def_netcdf@ @def_mpi@ @def_fft@ @def_slepc@ @def_scalapack@ @def_compiler@ @def_dp@ @def_openmp@ @def_time_profile@ @def_memory_profile@ @def_uspp@ @def_cuda@ @def_yaml@ @def_magma@ p2ycpp = @PW_CPP@ keep_objs = @enable_keep_objects@ do_blacs = @compile_blacs@ diff --git a/config/report.in b/config/report.in index cedba40370..14209e4f20 100644 --- a/config/report.in +++ b/config/report.in @@ -68,6 +68,8 @@ # @PETSC_INCS@ # [@SLEPC_check@] SLEPC : @SLEPC_LIBS@ # @SLEPC_INCS@ +# [@MAGMA_check@] MAGMA : @MAGMA_LIBS@ +# @MAGMA_INCS@ # # > OTHERs # @@ -81,8 +83,8 @@ # FC kind = @FCKIND@ @FCVERSION@ # MPI kind= @MPIKIND@ # -# [ CPP ] @CPP@ @CPPFLAGS_yambo@ @def_netcdf@ @def_mpi@ @def_fft@ @def_slepc@ @def_scalapack@ @def_compiler@ @def_dp@ @def_openmp@ @def_time_profile@ @def_uspp@ @def_cuda@ @def_yaml@ @PW_CPP@ -# [ FPP ] @FPP@ @def_netcdf@ @def_mpi@ @def_fft@ @def_slepc@ @def_scalapack@ @def_compiler@ @def_dp@ @def_openmp@ @def_time_profile@ @def_uspp@ @def_cuda@ @def_yaml@ +# [ CPP ] @CPP@ @CPPFLAGS_yambo@ @def_netcdf@ @def_mpi@ @def_fft@ @def_slepc@ @def_scalapack@ @def_compiler@ @def_dp@ @def_openmp@ @def_time_profile@ @def_uspp@ @def_cuda@ @def_yaml@ @PW_CPP@ @def_magma@ +# [ FPP ] @FPP@ @def_netcdf@ @def_mpi@ @def_fft@ @def_slepc@ @def_scalapack@ @def_compiler@ @def_dp@ @def_openmp@ @def_time_profile@ @def_uspp@ @def_cuda@ @def_yaml@ @def_magma@ # [ CC ] @CC@ @CFLAGS@ # [ FC ] @FC@ @FCFLAGS@ @OPENMPLIBS@ @CUDA_FLAGS@ # [ FCUF] @FCUFLAGS@ @CUDA_FLAGS@ diff --git a/config/setup.in b/config/setup.in index bfbc4344b2..b6f48877cb 100644 --- a/config/setup.in +++ b/config/setup.in @@ -83,6 +83,8 @@ lfutile = @FUTILE_LIBS@ ifutile = @FUTILE_INCS@ letsf = @ETSF_LIBS@ ietsf = @ETSF_INCS@ +lmagma = @MAGMA_LIBS@ +imagma = @MAGMA_INCS@ idriver = @DRIVER_INCS@ # # VPATH diff --git a/configure b/configure index c0727c247c..7d86fe4606 100755 --- a/configure +++ b/configure @@ -1,12 +1,11 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.1.0 r.21876 h.7fe3130aa. +# Generated by GNU Autoconf 2.69 for Yambo 5.1.0 r.21879 h.7d3ae819b. # # Report bugs to . # # -# 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 @@ -17,16 +16,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 ;; #( @@ -36,46 +33,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 || @@ -84,6 +81,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 #(( @@ -92,12 +96,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 @@ -109,10 +109,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. @@ -134,22 +154,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 ;; #( @@ -169,52 +187,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" - if (eval "$as_required") 2>/dev/null -then : + 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 : 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 @@ -222,21 +230,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 @@ -254,19 +255,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 and + $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: yambo@yambo-code.org about your system, including any $0: error possibly output before this message. Then install $0: a modern shell, or manually run the script under such a @@ -294,7 +294,6 @@ as_fn_unset () } as_unset=as_fn_unset - # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -312,14 +311,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 # ------------- @@ -334,7 +325,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" @@ -343,7 +334,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 @@ -382,13 +373,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 @@ -400,27 +390,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] # ---------------------------------------- @@ -432,9 +413,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 @@ -461,7 +442,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 @@ -505,7 +486,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 @@ -519,10 +500,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*) @@ -536,13 +513,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 @@ -610,8 +580,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.1.0 r.21876 h.7fe3130aa' -PACKAGE_STRING='Yambo 5.1.0 r.21876 h.7fe3130aa' +PACKAGE_VERSION='5.1.0 r.21879 h.7d3ae819b' +PACKAGE_STRING='Yambo 5.1.0 r.21879 h.7d3ae819b' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -619,40 +589,45 @@ ac_default_prefix=$PWD ac_unique_file="driver/yambo.F" # 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_SYS_STAT_H +# include #endif -#ifdef HAVE_STDLIB_H +#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 compdir MPI_info MPI_check +MAGMA_check LIBXC_check YPY_check YDB_check @@ -681,6 +656,12 @@ MEM_profile_check TIME_profile_check KEEP_OBJS_check DP_check +internal_magma +compile_magma +enable_magma +def_magma +MAGMA_INCS +MAGMA_LIBS CUDA_FLAGS def_cuda internal_libxc @@ -803,7 +784,6 @@ FFLAGS F77 FPP CPPFLAGS_yambo -CPP IFLAG FCLIBS OPENMPLIBS @@ -833,9 +813,6 @@ AR MAKE ifGNUmake hostname -SIZEOF_INT_P -SET_MAKE -LIBOBJS host_os host_vendor host_cpu @@ -844,9 +821,15 @@ build_os build_vendor build_cpu build +SIZEOF_INT_P +SET_MAKE +LIBOBJS ALLOCA Y_BRANCH GIT_CHECK +EGREP +GREP +CPP OBJEXT EXEEXT ac_ct_CC @@ -891,7 +874,6 @@ infodir docdir oldincludedir includedir -runstatedir localstatedir sharedstatedir sysconfdir @@ -1004,6 +986,12 @@ with_libxc_libdir with_libxc_includedir enable_cuda enable_nvtx +enable_magma_linalg +with_magma_libs +with_magma_incs +with_magma_path +with_magma_libdir +with_magma_includedir ' ac_precious_vars='build_alias host_alias @@ -1013,10 +1001,10 @@ CFLAGS LDFLAGS LIBS CPPFLAGS +CPP FC FCFLAGS UFLAGS -CPP FPP F77 FFLAGS @@ -1061,7 +1049,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}' @@ -1091,6 +1078,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 ;; @@ -1131,9 +1120,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" @@ -1157,9 +1146,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" @@ -1312,15 +1301,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=* \ @@ -1370,9 +1350,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" @@ -1386,9 +1366,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" @@ -1432,9 +1412,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}" ;; @@ -1450,7 +1430,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 @@ -1458,7 +1438,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. @@ -1514,7 +1494,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 @@ -1571,7 +1551,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.1.0 r.21876 h.7fe3130aa to adapt to many kinds of systems. +\`configure' configures Yambo 5.1.0 r.21879 h.7d3ae819b to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1611,7 +1591,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] @@ -1637,7 +1616,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.1.0 r.21876 h.7fe3130aa:";; + short | recursive ) echo "Configuration of Yambo 5.1.0 r.21879 h.7d3ae819b:";; esac cat <<\_ACEOF @@ -1688,6 +1667,8 @@ Optional Features: --enable-etsf-io Activate the ETSF_IO support --enable-cuda= Enable CUDA support --enable-nvtx= Enable NVTX support + --enable-magma-linalg Enable suport for the diagonalization of BSE using + MAGMA. Default is no Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1760,6 +1741,12 @@ Optional Packages: --with-libxc-libdir= Path to the libxc lib directory --with-libxc-includedir= Path to the libxc include directory + --with-magma-libs= Use Magma libraries + --with-magma-incs= Use Magma includes + --with-magma-path= Path to the Magma install directory + --with-magma-libdir= Path to the Magma lib directory + --with-magma-includedir= + Path to the Magma include directory Some influential environment variables: CC C compiler command @@ -1769,10 +1756,10 @@ Some influential environment variables: LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory + CPP C preprocessor FC Fortran compiler command FCFLAGS Fortran compiler flags UFLAGS Unoptimized Fortran flags - CPP C preprocessor FPP Fortran preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags @@ -1799,9 +1786,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/ ;; @@ -1829,8 +1816,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 @@ -1838,7 +1824,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 @@ -1847,10 +1833,10 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.1.0 r.21876 h.7fe3130aa -generated by GNU Autoconf 2.71 +Yambo configure 5.1.0 r.21879 h.7d3ae819b +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. _ACEOF @@ -1867,14 +1853,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 @@ -1882,15 +1868,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 @@ -1900,6 +1885,176 @@ fi } # ac_fn_c_try_compile +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $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 : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # 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;} +( $as_echo "## ----------------------------------- ## +## Report this to yambo@yambo-code.org ## +## ----------------------------------- ##" + ) | sed "s/^/$as_me: WARNING: /" >&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 @@ -1907,28 +2062,26 @@ 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 @@ -1940,17 +2093,16 @@ printf "%s\n" "$ac_res" >&6; } ac_fn_c_check_member () { 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.$3" >&5 -printf %s "checking for $2.$3... " >&6; } -if eval test \${$4+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +$as_echo_n "checking for $2.$3... " >&6; } +if eval \${$4+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int -main (void) +main () { static $2 ac_aggr; if (ac_aggr.$3) @@ -1959,15 +2111,14 @@ return 0; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : eval "$4=yes" -else $as_nop +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int -main (void) +main () { static $2 ac_aggr; if (sizeof ac_aggr.$3) @@ -1976,19 +2127,18 @@ return 0; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : eval "$4=yes" -else $as_nop +else eval "$4=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 -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=\$$4 - { 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_member @@ -2000,18 +2150,17 @@ printf "%s\n" "$ac_res" >&6; } ac_fn_c_check_type () { 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 eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main (void) +main () { if (sizeof ($2)) return 0; @@ -2019,13 +2168,12 @@ if (sizeof ($2)) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main (void) +main () { if (sizeof (($2))) return 0; @@ -2033,19 +2181,18 @@ if (sizeof (($2))) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : -else $as_nop +else eval "$3=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 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_type @@ -2056,14 +2203,14 @@ printf "%s\n" "$ac_res" >&6; } 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 @@ -2071,18 +2218,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 @@ -2097,79 +2243,102 @@ fi } # ac_fn_c_try_link -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that -# executables *can* be run. -ac_fn_c_try_run () +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () { 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\"" -printf "%s\n" "$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; } && { 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\"" -printf "%s\n" "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } -then : - ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: program exited with status $ac_status" >&5 - printf "%s\n" "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + { $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. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 - 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 +/* 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. */ -} # ac_fn_c_try_run +#ifdef __STDC__ +# include +#else +# include +#endif -# ac_fn_fc_try_compile LINENO -# --------------------------- -# Try to compile conftest.$ac_ext, and return whether this succeeded. -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 - 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 - (eval "$ac_compile") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +#undef $2 + +/* 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 $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + 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; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_fc_try_compile LINENO +# --------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_fc_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + 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\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $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 @@ -2185,14 +2354,14 @@ fi ac_fn_fc_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 @@ -2200,18 +2369,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_fc_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 @@ -2226,58 +2394,20 @@ fi } # ac_fn_fc_try_link -# ac_fn_c_try_cpp LINENO -# ---------------------- -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_cpp () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - 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 : - ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_cpp - # ac_fn_f77_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_f77_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 @@ -2285,15 +2415,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_f77_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 @@ -2309,14 +2438,14 @@ fi ac_fn_f77_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 @@ -2324,18 +2453,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_f77_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 @@ -2350,136 +2478,44 @@ fi } # ac_fn_f77_try_link -# ac_fn_c_check_func LINENO FUNC VAR -# ---------------------------------- -# Tests whether FUNC exists, setting the cache variable VAR accordingly -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 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -/* Define $2 to an innocuous variant, in case declares $2. - For example, HP-UX 11i declares gettimeofday. */ -#define $2 innocuous_$2 - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. */ - -#include -#undef $2 - -/* 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 $2 (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$2 || defined __stub___$2 -choke me -#endif - -#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 (void) -{ -return $2 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - eval "$3=yes" -else $as_nop - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - 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; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_func - # ac_fn_fc_check_func LINENO FUNC VAR # ----------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_fc_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 > conftest.$ac_ext <<_ACEOF program main call $2 end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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_fc_check_func -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 Yambo $as_me 5.1.0 r.21876 h.7fe3130aa, which was -generated by GNU Autoconf 2.71. Invocation command line was +It was created by Yambo $as_me 5.1.0 r.21879 h.7d3ae819b, which was +generated by GNU Autoconf 2.69. Invocation command line was - $ $0$ac_configure_args_raw + $ $0 $@ _ACEOF exec 5>>config.log @@ -2512,12 +2548,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 @@ -2552,7 +2584,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'" ;; @@ -2587,13 +2619,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 @@ -2604,8 +2634,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) ;; #( @@ -2629,7 +2659,7 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ) echo - printf "%s\n" "## ----------------- ## + $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -2637,14 +2667,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 @@ -2652,15 +2682,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 @@ -2668,8 +2698,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 && @@ -2683,48 +2713,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 @@ -2734,508 +2779,92 @@ 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; -} +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${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) + { $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=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${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 + { $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 + { $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=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + 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 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## -/* 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]; +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 -/* 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; -} -" - -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 -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { 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) - { 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=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { 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 - { 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 - { 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=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - 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 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## - -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 - - -SVERSION="5" -SSUBVERSION="1" -SPATCHLEVEL="0" -SREVISION="21876" -SHASH="7fe3130aa" +SVERSION="5" +SSUBVERSION="1" +SPATCHLEVEL="0" +SREVISION="21879" +SHASH="7d3ae819b" @@ -3254,6 +2883,34 @@ compdir=`echo "$PWD"` if test "$prefix" = "NONE" ; then prefix="$PWD" ; fi if test "$exec_prefix" = "NONE" ; then exec_prefix="$prefix" ; fi # +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. + # @@ -3348,10 +3005,9 @@ fi # PATH FOR EXT LIBS # Check whether --with-extlibs_path was given. -if test ${with_extlibs_path+y} -then : +if test "${with_extlibs_path+set}" = set; then : withval=$with_extlibs_path; extlibs_path="$with_extlibs_path" -else $as_nop +else extlibs_path="${PWD}/lib/external" fi @@ -3362,8 +3018,7 @@ if test x"$extlibs_path" = "x"; then extlibs_path="${PWD}/lib/external"; fi # ============================================================================ # DEBUG # Check whether --enable-keep-objects was given. -if test ${enable_keep_objects+y} -then : +if test "${enable_keep_objects+set}" = set; then : enableval=$enable_keep_objects; fi @@ -3374,8 +3029,7 @@ if test x"$enable_keep_objects" = "x"; then enable_keep_objects="yes"; fi # ============================================================================= # KEEP SOURCE FILES # Check whether --enable-keep-src was given. -if test ${enable_keep_src+y} -then : +if test "${enable_keep_src+set}" = set; then : enableval=$enable_keep_src; fi @@ -3386,8 +3040,7 @@ if test x"$enable_keep_src" = "xyes"; then enable_keep_src="yes"; fi # ============================================================================ # KEEP EXT LIBS # Check whether --enable-keep-extlibs was given. -if test ${enable_keep_extlibs+y} -then : +if test "${enable_keep_extlibs+set}" = set; then : enableval=$enable_keep_extlibs; fi @@ -3405,8 +3058,7 @@ fi # ============================================================================ # DP # Check whether --enable-dp was given. -if test ${enable_dp+y} -then : +if test "${enable_dp+set}" = set; then : enableval=$enable_dp; fi @@ -3422,8 +3074,7 @@ if test x"$enable_dp" = "xyes"; then def_dp="-D_DOUBLE"; build_precision="double # Time Profiling (mod_timing) # # Check whether --enable-time-profile was given. -if test ${enable_time_profile+y} -then : +if test "${enable_time_profile+set}" = set; then : enableval=$enable_time_profile; fi @@ -3439,8 +3090,7 @@ fi # USPP # # Check whether --enable-uspp was given. -if test ${enable_uspp+y} -then : +if test "${enable_uspp+set}" = set; then : enableval=$enable_uspp; fi @@ -3457,8 +3107,7 @@ fi # Memory Profiling # # Check whether --enable-memory-profile was given. -if test ${enable_memory_profile+y} -then : +if test "${enable_memory_profile+set}" = set; then : enableval=$enable_memory_profile; fi @@ -3474,8 +3123,7 @@ fi # Verbose compilation # # Check whether --enable-msgs-comps was given. -if test ${enable_msgs_comps+y} -then : +if test "${enable_msgs_comps+set}" = set; then : enableval=$enable_msgs_comps; fi @@ -3492,10 +3140,9 @@ fi # # Check whether --with-editor was given. -if test ${with_editor+y} -then : +if test "${with_editor+set}" = set; then : withval=$with_editor; -else $as_nop +else with_editor="vim vi pico" fi @@ -3503,12 +3150,11 @@ for ac_prog in $with_editor 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_editor+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_editor+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$editor"; then ac_cv_prog_editor="$editor" # Let the user override the test. else @@ -3516,15 +3162,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_editor="$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 @@ -3535,11 +3177,11 @@ fi fi editor=$ac_cv_prog_editor if test -n "$editor"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $editor" >&5 -printf "%s\n" "$editor" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5 +$as_echo "$editor" >&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 @@ -3554,10 +3196,9 @@ test -n "$editor" || editor="none" # # Check whether --with-echo was given. -if test ${with_echo+y} -then : +if test "${with_echo+set}" = set; then : withval=$with_echo; -else $as_nop +else with_echo="echo" fi @@ -3570,15 +3211,6 @@ ECHO=$with_echo # # check if the structure mallinfo is present in malloc.h SAVE=$CFLAGS - - - - - - - - - ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -3587,12 +3219,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 @@ -3600,15 +3231,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 @@ -3619,11 +3246,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 @@ -3632,12 +3259,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 @@ -3645,15 +3271,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 @@ -3664,11 +3286,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 @@ -3676,8 +3298,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 @@ -3690,12 +3312,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 @@ -3703,15 +3324,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 @@ -3722,11 +3339,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 @@ -3735,12 +3352,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 @@ -3749,19 +3365,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 @@ -3777,18 +3389,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 @@ -3799,12 +3411,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 @@ -3812,15 +3423,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 @@ -3831,11 +3438,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 @@ -3848,12 +3455,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 @@ -3861,15 +3467,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 @@ -3880,11 +3482,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 @@ -3896,138 +3498,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 @@ -4037,7 +3535,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 @@ -4045,7 +3543,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main (void) +main () { ; @@ -4057,9 +3555,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.*" @@ -4080,12 +3578,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, @@ -4102,7 +3599,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 @@ -4118,46 +3615,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 @@ -4171,15 +3666,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 @@ -4188,7 +3683,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; @@ -4200,8 +3695,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 @@ -4209,10 +3704,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 @@ -4220,397 +3715,704 @@ 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 +{ $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 () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$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 : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${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 +{ $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 +{ $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 () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${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+set} +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 + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +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 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${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 + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + 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_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]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${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 + + +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; } +# 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" + 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 + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +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 : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${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. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +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 : + +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 + +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 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 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + 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 +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $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" + + +{ $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 + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + 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 +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi -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 + fi +fi +{ $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" + + +{ $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 int -main (void) +main () { ; return 0; } _ACEOF -rm -f conftest.o conftest.obj -if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$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 : - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else $as_nop - printf "%s\n" "$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_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 +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no fi -{ 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 -{ 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 +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 -int -main (void) -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : +else + ac_cv_header_stdc=no 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 +rm -f conftest* -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= fi -ac_test_CFLAGS=${CFLAGS+y} -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 - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int -main (void) -{ +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 - ; - return 0; -} _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_g=yes -else $as_nop - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : -int -main (void) -{ +else + ac_cv_header_stdc=no +fi +rm -f conftest* - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +fi -else $as_nop - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +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 (void) +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_compile "$LINENO" -then : - ac_cv_prog_cc_g=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam 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 - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi +if ac_fn_c_try_run "$LINENO"; then : + else - if test "$GCC" = yes; then - CFLAGS="-O2" - 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 -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 + ac_cv_header_stdc=no 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 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -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 +{ $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 -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__" -do - CC="$ac_save_CC $ac_arg" - 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 - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC -fi +$as_echo "#define STDC_HEADERS 1" >>confdefs.h -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 -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 +# 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 -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 - - - - - - -if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes -then : - -printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" -if test "x$ac_cv_header_malloc_h" = xyes -then : +ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" +if test "x$ac_cv_header_malloc_h" = xyes; then : have_malloc_h=1 -else $as_nop +else have_malloc_h=0 fi + CFLAGS=$SAVE if test "$have_malloc_h" -ne 0 then ac_fn_c_check_member "$LINENO" "struct mallinfo" "arena" "ac_cv_member_struct_mallinfo_arena" "#include " -if test "x$ac_cv_member_struct_mallinfo_arena" = xyes -then : - printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h +if test "x$ac_cv_member_struct_mallinfo_arena" = xyes; then : + $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h fi @@ -5037,12 +4839,11 @@ fi Y_BRANCH="unknown" # Extract the first word of "git", so it can be a program name with args. set dummy git; 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_GIT_CHECK+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_GIT_CHECK+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$GIT_CHECK"; then ac_cv_prog_GIT_CHECK="$GIT_CHECK" # Let the user override the test. else @@ -5050,15 +4851,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_GIT_CHECK="yes" - 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 @@ -5069,11 +4866,11 @@ fi fi GIT_CHECK=$ac_cv_prog_GIT_CHECK if test -n "$GIT_CHECK"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIT_CHECK" >&5 -printf "%s\n" "$GIT_CHECK" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_CHECK" >&5 +$as_echo "$GIT_CHECK" >&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 @@ -5087,60 +4884,42 @@ fi # # Checks for library functions. # ============================================================================ -ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" -if test "x$ac_cv_header_malloc_h" = xyes -then : - printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" -if test "x$ac_cv_header_stdlib_h" = xyes -then : - printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" -if test "x$ac_cv_header_unistd_h" = xyes -then : - printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" -if test "x$ac_cv_header_string_h" = xyes -then : - printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h +for ac_header in malloc.h stdlib.h unistd.h string.h sys/time.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$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 -ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_time_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h -fi +done ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes -then : +if test "x$ac_cv_type_size_t" = xyes; then : -else $as_nop +else -printf "%s\n" "#define size_t unsigned int" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 -printf %s "checking for working alloca.h... " >&6; } -if test ${ac_cv_working_alloca_h+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if ${ac_cv_working_alloca_h+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main (void) +main () { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; @@ -5148,52 +4927,52 @@ char *p = (char *) alloca (2 * sizeof (int)); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_working_alloca_h=yes -else $as_nop +else ac_cv_working_alloca_h=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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 -printf "%s\n" "$ac_cv_working_alloca_h" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then -printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 -printf %s "checking for alloca... " >&6; } -if test ${ac_cv_func_alloca_works+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test $ac_cv_working_alloca_h = yes; then - ac_cv_func_alloca_works=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if ${ac_cv_func_alloca_works+:} false; then : + $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#ifndef alloca -# ifdef __GNUC__ -# define alloca __builtin_alloca -# elif defined _MSC_VER +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER # include # define alloca _alloca # else -# ifdef __cplusplus -extern "C" -# endif +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ void *alloca (size_t); +# endif +# endif +# endif # endif #endif int -main (void) +main () { char *p = (char *) alloca (1); if (p) return 0; @@ -5201,22 +4980,20 @@ char *p = (char *) alloca (1); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_func_alloca_works=yes -else $as_nop +else ac_cv_func_alloca_works=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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 -printf "%s\n" "$ac_cv_func_alloca_works" >&6; } -fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then -printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions @@ -5226,19 +5003,58 @@ else ALLOCA=\${LIBOBJDIR}alloca.$ac_objext -printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h +$as_echo "#define C_ALLOCA 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if ${ac_cv_os_cray+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + + break +fi + done +fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 -printf %s "checking stack direction for C alloca... " >&6; } -if test ${ac_cv_c_stack_direction+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if ${ac_cv_c_stack_direction+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : ac_cv_c_stack_direction=0 -else $as_nop +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -5259,10 +5075,9 @@ main (int argc, char **argv) return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" -then : +if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_stack_direction=1 -else $as_nop +else ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5270,24 +5085,25 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 -printf "%s\n" "$ac_cv_c_stack_direction" >&6; } -printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 -printf %s "checking for an ANSI C-conforming const... " >&6; } -if test ${ac_cv_c_const+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main (void) +main () { #ifndef __cplusplus @@ -5300,7 +5116,7 @@ main (void) /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; - /* IBM XL C 1.02.0.0 rejects this. + /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ @@ -5328,7 +5144,7 @@ main (void) iptr p = 0; ++p; } - { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; @@ -5344,50 +5160,47 @@ main (void) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes -else $as_nop +else ac_cv_c_const=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_c_const" >&5 -printf "%s\n" "$ac_cv_c_const" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then -printf "%s\n" "#define const /**/" >>confdefs.h +$as_echo "#define const /**/" >>confdefs.h fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 -printf %s "checking for inline... " >&6; } -if test ${ac_cv_c_inline+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; -static $ac_kw foo_t static_foo (void) {return 0; } -$ac_kw foo_t foo (void) {return 0; } +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } #endif _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw 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 test "$ac_cv_c_inline" != no && break done fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 -printf "%s\n" "$ac_cv_c_inline" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; @@ -5401,121 +5214,48 @@ case $ac_cv_c_inline in #define inline $ac_val #endif _ACEOF - ;; -esac - - - - - # 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"` -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 - -fi -{ 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;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - + ;; +esac -{ 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 -fi +for ac_header in stdlib.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDLIB_H 1 +_ACEOF fi -{ 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;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac +done -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 -printf %s "checking for GNU libc compatible malloc... " >&6; } -if test ${ac_cv_func_malloc_0_nonnull+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes -then : - case "$host_os" in # (( - # Guess yes on platforms where we know the result. - *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ - | hpux* | solaris* | cygwin* | mingw* | msys* ) - ac_cv_func_malloc_0_nonnull=yes ;; - # If we don't know, assume the worst. - *) ac_cv_func_malloc_0_nonnull=no ;; - esac -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 +$as_echo_n "checking for GNU libc compatible malloc... " >&6; } +if ${ac_cv_func_malloc_0_nonnull+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_malloc_0_nonnull=no +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#if defined STDC_HEADERS || defined HAVE_STDLIB_H +# include +#else +char *malloc (); +#endif int -main (void) +main () { -void *p = malloc (0); - int result = !p; - free (p); - return result; +return ! malloc (0); ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" -then : +if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_malloc_0_nonnull=yes -else $as_nop +else ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5523,15 +5263,14 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 -printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } -if test $ac_cv_func_malloc_0_nonnull = yes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } +if test $ac_cv_func_malloc_0_nonnull = yes; then : -printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h +$as_echo "#define HAVE_MALLOC 1" >>confdefs.h -else $as_nop - printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h +else + $as_echo "#define HAVE_MALLOC 0" >>confdefs.h case " $LIBOBJS " in *" malloc.$ac_objext "* ) ;; @@ -5540,47 +5279,50 @@ else $as_nop esac -printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h +$as_echo "#define malloc rpl_malloc" >>confdefs.h fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 -printf %s "checking for GNU libc compatible realloc... " >&6; } -if test ${ac_cv_func_realloc_0_nonnull+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes -then : - case "$host_os" in # (( - # Guess yes on platforms where we know the result. - *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ - | hpux* | solaris* | cygwin* | mingw* | msys* ) - ac_cv_func_realloc_0_nonnull=yes ;; - # If we don't know, assume the worst. - *) ac_cv_func_realloc_0_nonnull=no ;; - esac -else $as_nop +for ac_header in stdlib.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDLIB_H 1 +_ACEOF + +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 +$as_echo_n "checking for GNU libc compatible realloc... " >&6; } +if ${ac_cv_func_realloc_0_nonnull+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_realloc_0_nonnull=no +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#if defined STDC_HEADERS || defined HAVE_STDLIB_H +# include +#else +char *realloc (); +#endif int -main (void) +main () { -void *p = realloc (0, 0); - int result = !p; - free (p); - return result; +return ! realloc (0, 0); ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" -then : +if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_realloc_0_nonnull=yes -else $as_nop +else ac_cv_func_realloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5588,15 +5330,14 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 -printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; } -if test $ac_cv_func_realloc_0_nonnull = yes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 +$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } +if test $ac_cv_func_realloc_0_nonnull = yes; then : -printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h +$as_echo "#define HAVE_REALLOC 1" >>confdefs.h -else $as_nop - printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h +else + $as_echo "#define HAVE_REALLOC 0" >>confdefs.h case " $LIBOBJS " in *" realloc.$ac_objext "* ) ;; @@ -5605,35 +5346,28 @@ else $as_nop esac -printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h +$as_echo "#define realloc rpl_realloc" >>confdefs.h fi # AC_FUNC_SETVBUF_REVERSE # This is reported as obsolete -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 -printf %s "checking whether lstat correctly handles trailing slash... " >&6; } -if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 +$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } +if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : + $as_echo_n "(cached) " >&6 +else rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then - if test "$cross_compiling" = yes -then : - case "$host_os" in # (( - # Guess yes on glibc systems. - *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;; - # If we don't know, assume the worst. - *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;; - esac -else $as_nop + if test "$cross_compiling" = yes; then : + ac_cv_func_lstat_dereferences_slashed_symlink=no +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int -main (void) +main () { struct stat sbuf; /* Linux will dereference the symlink and fail, as required by POSIX. @@ -5644,10 +5378,9 @@ struct stat sbuf; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" -then : +if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_lstat_dereferences_slashed_symlink=yes -else $as_nop +else ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5662,12 +5395,14 @@ fi rm -f conftest.sym conftest.file fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 -printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 +$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && -printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +_ACEOF if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then @@ -5679,21 +5414,19 @@ esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 -printf %s "checking whether stat accepts an empty string... " >&6; } -if test ${ac_cv_func_stat_empty_string_bug+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 +$as_echo_n "checking whether stat accepts an empty string... " >&6; } +if ${ac_cv_func_stat_empty_string_bug+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : ac_cv_func_stat_empty_string_bug=yes -else $as_nop +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int -main (void) +main () { struct stat sbuf; return stat ("", &sbuf) == 0; @@ -5701,10 +5434,9 @@ struct stat sbuf; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" -then : +if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_stat_empty_string_bug=no -else $as_nop +else ac_cv_func_stat_empty_string_bug=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5712,8 +5444,8 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 -printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 +$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } if test $ac_cv_func_stat_empty_string_bug = yes; then case " $LIBOBJS " in *" stat.$ac_objext "* ) ;; @@ -5722,18 +5454,19 @@ if test $ac_cv_func_stat_empty_string_bug = yes; then esac -printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HAVE_STAT_EMPTY_STRING_BUG 1 +_ACEOF 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: @@ -5749,20 +5482,20 @@ 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 # ============================================================================ # check size of pointers to int - needed to decide the size of integer # arrays in fortran holding C pointers for FFTW -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the size of a pointer" >&5 -printf %s "checking for the size of a pointer... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of a pointer" >&5 +$as_echo_n "checking for the size of a pointer... " >&6; } if test -z "$POINTER_SIZE"; then cat >pointertest.c <&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 ac_try="" else @@ -5788,10 +5521,12 @@ EOF ac_pointersize=`./pointertest.x`; rm -rf pointertest* -printf "%s\n" "#define POINTER_SIZE ${ac_pointersize}" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define POINTER_SIZE ${ac_pointersize} +_ACEOF - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_pointersize} bytes" >&5 -printf "%s\n" "${ac_pointersize} bytes" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_pointersize} bytes" >&5 +$as_echo "${ac_pointersize} bytes" >&6; } fi SIZEOF_INT_P=$ac_pointersize @@ -5807,12 +5542,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 @@ -5820,15 +5554,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 @@ -5839,11 +5569,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 @@ -5852,12 +5582,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 @@ -5865,15 +5594,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 @@ -5884,11 +5609,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 @@ -5896,8 +5621,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 @@ -5910,12 +5635,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 @@ -5923,15 +5647,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 @@ -5942,11 +5662,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 @@ -5955,12 +5675,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 @@ -5969,19 +5688,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 @@ -5997,18 +5712,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 @@ -6019,12 +5734,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 @@ -6032,15 +5746,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 @@ -6051,11 +5761,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 @@ -6068,12 +5778,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 @@ -6081,15 +5790,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 @@ -6100,11 +5805,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 @@ -6116,138 +5821,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 @@ -6257,21 +5858,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_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 @@ -6281,33 +5881,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 @@ -6316,60 +5912,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 @@ -6384,144 +5977,94 @@ 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 @@ -6530,19 +6073,88 @@ 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 -# +# +# 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 + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_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 + +fi +{ $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;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${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 +fi + +fi +{ $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;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + hostname=`uname -n` # ============================================================================ # GNU Make MAKE="make" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 -printf %s "checking for GNU make... " >&6; } -if test ${_cv_gnu_make_command+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 +$as_echo_n "checking for GNU make... " >&6; } +if ${_cv_gnu_make_command+:} false; then : + $as_echo_n "(cached) " >&6 +else _cv_gnu_make_command='' ; for a in "$MAKE" make gmake gnumake ; do if test -z "$a" ; then continue ; fi ; @@ -6553,14 +6165,14 @@ else $as_nop done ; fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 -printf "%s\n" "$_cv_gnu_make_command" >&6; } ; +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 +$as_echo "$_cv_gnu_make_command" >&6; } ; if test "x$_cv_gnu_make_command" != "x" ; then ifGNUmake='' ; else ifGNUmake='#' ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 -printf "%s\n" "\"Not found\"" >&6; }; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 +$as_echo "\"Not found\"" >&6; }; fi @@ -6582,12 +6194,11 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; 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_AR+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_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else @@ -6595,15 +6206,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_AR="${ac_tool_prefix}ar" - 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 @@ -6614,11 +6221,11 @@ fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -printf "%s\n" "$AR" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&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 @@ -6627,12 +6234,11 @@ if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; 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_AR+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_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else @@ -6640,15 +6246,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_AR="ar" - 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 @@ -6659,11 +6261,11 @@ fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -printf "%s\n" "$ac_ct_AR" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&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_AR" = x; then @@ -6671,8 +6273,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 AR=$ac_ct_AR @@ -6690,8 +6292,7 @@ test -z "$AR_FLAGS" && AR_FLAGS="-r" # C options specific for driver.c # # Check whether --enable-options_check was given. -if test ${enable_options_check+y} -then : +if test "${enable_options_check+set}" = set; then : enableval=$enable_options_check; fi @@ -6715,12 +6316,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 @@ -6728,15 +6328,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 @@ -6747,11 +6343,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 @@ -6764,12 +6360,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 @@ -6777,15 +6372,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 @@ -6796,11 +6387,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 @@ -6812,8 +6403,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 @@ -6822,7 +6413,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 @@ -6832,7 +6423,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 @@ -6842,7 +6433,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 @@ -6851,12 +6442,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__ @@ -6865,48 +6455,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 @@ -6940,8 +6525,8 @@ fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the current OS is supported" >&5 -printf %s "checking if the current OS is supported... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the current OS is supported" >&5 +$as_echo_n "checking if the current OS is supported... " >&6; } #TIMER="ct_cclock.o" TIMER="ct_cptimer.o" case "${host}" in @@ -6975,31 +6560,31 @@ case "${host}" in if test -z "$F90SUFFIX"; then F90SUFFIX=".f90"; fi ;; *) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Platform <${host}> is not supported." >&5 -printf "%s\n" "$as_me: Platform <${host}> is not supported." >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Please contact the $PACKAGE_NAME team at $PACKAGE_BUGREPORT" >&5 -printf "%s\n" "$as_me: Please contact the $PACKAGE_NAME team at $PACKAGE_BUGREPORT" >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: providing either a list of compilers and options or" >&5 -printf "%s\n" "$as_me: providing either a list of compilers and options or" >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: a guest account on this machine." >&5 -printf "%s\n" "$as_me: a guest account on this machine." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: Platform <${host}> is not supported." >&5 +$as_echo "$as_me: Platform <${host}> is not supported." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Please contact the $PACKAGE_NAME team at $PACKAGE_BUGREPORT" >&5 +$as_echo "$as_me: Please contact the $PACKAGE_NAME team at $PACKAGE_BUGREPORT" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: providing either a list of compilers and options or" >&5 +$as_echo "$as_me: providing either a list of compilers and options or" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: a guest account on this machine." >&5 +$as_echo "$as_me: a guest account on this machine." >&6;} as_fn_error $? "stopping" "$LINENO" 5 ;; *) esac -{ 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; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WIDESETUP: using build_os=\"$build_os\"" >&5 -printf "%s\n" "$as_me: WIDESETUP: using build_os=\"$build_os\"" >&6;} -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WIDESETUP: using F90SUFFIX=\"$F90SUFFIX\"" >&5 -printf "%s\n" "$as_me: WIDESETUP: using F90SUFFIX=\"$F90SUFFIX\"" >&6;} -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WIDESETUP: using AR=\"$AR\"" >&5 -printf "%s\n" "$as_me: WIDESETUP: using AR=\"$AR\"" >&6;} -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WIDESETUP: using AR_FLAGS=\"$AR_FLAGS\"" >&5 -printf "%s\n" "$as_me: WIDESETUP: using AR_FLAGS=\"$AR_FLAGS\"" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WIDESETUP: using build_os=\"$build_os\"" >&5 +$as_echo "$as_me: WIDESETUP: using build_os=\"$build_os\"" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WIDESETUP: using F90SUFFIX=\"$F90SUFFIX\"" >&5 +$as_echo "$as_me: WIDESETUP: using F90SUFFIX=\"$F90SUFFIX\"" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WIDESETUP: using AR=\"$AR\"" >&5 +$as_echo "$as_me: WIDESETUP: using AR=\"$AR\"" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WIDESETUP: using AR_FLAGS=\"$AR_FLAGS\"" >&5 +$as_echo "$as_me: WIDESETUP: using AR_FLAGS=\"$AR_FLAGS\"" >&6;} @@ -7015,8 +6600,7 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu # # Check whether --with-f90ext was given. -if test ${with_f90ext+y} -then : +if test "${with_f90ext+set}" = set; then : withval=$with_f90ext; fi @@ -7028,12 +6612,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 flag to compile .f90 files" >&5 -printf %s "checking for Fortran flag to compile .f90 files... " >&6; } -if test ${ac_cv_fc_srcext_f90+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5 +$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } +if ${ac_cv_fc_srcext_f90+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_ext=f90 ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= @@ -7049,18 +6632,17 @@ for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_fc_srcext_f90=$ac_flag; break 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 done rm -f conftest.$ac_objext conftest.f90 ac_fcflags_srcext=$ac_fcflags_srcext_save fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 -printf "%s\n" "$ac_cv_fc_srcext_f90" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 +$as_echo "$ac_cv_fc_srcext_f90" >&6; } if test "x$ac_cv_fc_srcext_f90" = xunknown; then as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 else @@ -7086,12 +6668,11 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu 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 flag to compile .f files" >&5 -printf %s "checking for Fortran flag to compile .f files... " >&6; } -if test ${ac_cv_fc_srcext_f+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f files" >&5 +$as_echo_n "checking for Fortran flag to compile .f files... " >&6; } +if ${ac_cv_fc_srcext_f+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_ext=f ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= @@ -7107,18 +6688,17 @@ for ac_flag in none -qsuffix=f=f -Tf "-x $ac_try"; do end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_fc_srcext_f=$ac_flag; break 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 done rm -f conftest.$ac_objext conftest.f ac_fcflags_srcext=$ac_fcflags_srcext_save fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f" >&5 -printf "%s\n" "$ac_cv_fc_srcext_f" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f" >&5 +$as_echo "$ac_cv_fc_srcext_f" >&6; } if test "x$ac_cv_fc_srcext_f" = xunknown; then as_fn_error $? "Fortran could not compile .f files" "$LINENO" 5 else @@ -7209,10 +6789,10 @@ esac # FCVERSION=`echo "$FCVERSION" | sed "/^\s*$/d" | head -n 1` # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $FC kind and version" >&5 -printf %s "checking for $FC kind and version... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FCKIND $FCVERSION $INTELVERSION" >&5 -printf "%s\n" "$FCKIND $FCVERSION $INTELVERSION" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $FC kind and version" >&5 +$as_echo_n "checking for $FC kind and version... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCKIND $FCVERSION $INTELVERSION" >&5 +$as_echo "$FCKIND $FCVERSION $INTELVERSION" >&6; } @@ -7229,8 +6809,7 @@ printf "%s\n" "$FCKIND $FCVERSION $INTELVERSION" >&6; } if test -z "${CFLAGS}"; then CFLAGS="-O2"; fi # # Check whether --enable-debug-flags was given. -if test ${enable_debug_flags+y} -then : +if test "${enable_debug_flags+set}" = set; then : enableval=$enable_debug_flags; fi @@ -7622,35 +7201,35 @@ esac # if test "x$build_os" = "xaix" ; then NETCDFFLAGS="$NETCDFFLAGS -DIBMR2Fortran" ; fi # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific $FC flags" >&5 -printf %s "checking for specific $FC flags... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific $FC flags" >&5 +$as_echo_n "checking for specific $FC flags... " >&6; } if test -z "${FCFLAGS}"; then FCFLAGS="$SYSFLAGS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FCFLAGS" >&5 -printf "%s\n" "$FCFLAGS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCFLAGS" >&5 +$as_echo "$FCFLAGS" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (User-defined) $FCFLAGS" >&5 -printf "%s\n" "(User-defined) $FCFLAGS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: (User-defined) $FCFLAGS" >&5 +$as_echo "(User-defined) $FCFLAGS" >&6; } fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific Open-MP flags" >&5 -printf %s "checking for specific Open-MP flags... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OMPFLAGS" >&5 -printf "%s\n" "$OMPFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific Open-MP flags" >&5 +$as_echo_n "checking for specific Open-MP flags... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPFLAGS" >&5 +$as_echo "$OMPFLAGS" >&6; } # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific $CC flags" >&5 -printf %s "checking for specific $CC flags... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5 -printf "%s\n" "$CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific $CC flags" >&5 +$as_echo_n "checking for specific $CC flags... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5 +$as_echo "$CFLAGS" >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific unoptimized flags" >&5 -printf %s "checking for specific unoptimized flags... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific unoptimized flags" >&5 +$as_echo_n "checking for specific unoptimized flags... " >&6; } if test -z "${UFLAGS}"; then FCUFLAGS="$FUFLAGS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FCUFLAGS" >&5 -printf "%s\n" "$FCUFLAGS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCUFLAGS" >&5 +$as_echo "$FCUFLAGS" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (User-defined) $UFLAGS" >&5 -printf "%s\n" "(User-defined) $UFLAGS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: (User-defined) $UFLAGS" >&5 +$as_echo "(User-defined) $UFLAGS" >&6; } FCUFLAGS="$UFLAGS" FUFLAGS="$UFLAGS" fi @@ -7661,10 +7240,10 @@ if test x"$enable_debug_flags" = "xyes"; then HDF5_MODE="debug"; fi # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific NETCDF flags" >&5 -printf %s "checking for specific NETCDF flags... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NETCDFFLAGS" >&5 -printf "%s\n" "$NETCDFFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific NETCDF flags" >&5 +$as_echo_n "checking for specific NETCDF flags... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETCDFFLAGS" >&5 +$as_echo "$NETCDFFLAGS" >&6; } # @@ -7687,8 +7266,7 @@ FCFLAGS="$acx_save_fcflags $F90EXTFLAGS" # OpenMP # # Check whether --enable-open-mp was given. -if test ${enable_open_mp+y} -then : +if test "${enable_open_mp+set}" = set; then : enableval=$enable_open_mp; fi @@ -7710,19 +7288,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 @@ -7740,13 +7316,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* @@ -7813,24 +7389,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 @@ -7849,13 +7424,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* @@ -7932,10 +7507,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 ;; @@ -7948,10 +7522,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" @@ -7966,24 +7539,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 ;; @@ -8001,7 +7559,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 @@ -8010,10 +7568,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 @@ -8028,17 +7585,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 @@ -8050,7 +7605,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 @@ -8065,8 +7620,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" @@ -8081,12 +7636,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 @@ -8109,20 +7663,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 @@ -8139,18 +7692,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 @@ -8163,24 +7715,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 @@ -8195,12 +7748,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 @@ -8209,8 +7761,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 @@ -8231,6 +7782,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 @@ -8241,18 +7795,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 @@ -8287,6 +7840,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 @@ -8297,18 +7853,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} @@ -8338,17 +7893,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' @@ -8371,8 +7926,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #define F90_FUNC_(name,NAME) name ## _ void F90_FUNC_(ftest, FTEST)(){} _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : mv conftest.$ac_objext ftest.$ac_objext ac_ext=${ac_fc_srcext-f} @@ -8387,11 +7941,10 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu call ftest end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : c_success="yes"; msg="test_"; save="$CFLAGS"; CFLAGS="$save -D_C_US" 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="$save_LIBS" ac_ext=c @@ -8402,7 +7955,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu rm -f ftest.$ac_objext 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 if test "$c_success" = "no" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8410,8 +7963,7 @@ if test "$c_success" = "no" ; then #define F90_FUNC_(name,NAME) name void F90_FUNC_(ftest, FTEST)(){} _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : mv conftest.$ac_objext ftest.$ac_objext ac_ext=${ac_fc_srcext-f} @@ -8426,11 +7978,10 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu call ftest end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : c_success="yes"; msg="test" 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="$save" ac_ext=c @@ -8441,12 +7992,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu rm -f ftest.$ac_objext 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}: checking for external C routine (test) naming scheme" >&5 -printf %s "checking for external C routine (test) naming scheme... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 -printf "%s\n" "$msg" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external C routine (test) naming scheme" >&5 +$as_echo_n "checking for external C routine (test) naming scheme... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' @@ -8454,48 +8005,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 @@ -8554,12 +8105,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 flag needed to accept free-form source" >&5 -printf %s "checking for Fortran flag needed to accept free-form source... " >&6; } -if test ${ac_cv_fc_freeform+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag needed to accept free-form source" >&5 +$as_echo_n "checking for Fortran flag needed to accept free-form source... " >&6; } +if ${ac_cv_fc_freeform+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_cv_fc_freeform=unknown ac_fc_freeform_FCFLAGS_save=$FCFLAGS for ac_flag in none -ffree-form -FR -free -qfree -Mfree -Mfreeform \ @@ -8574,18 +8124,17 @@ do 'world.' end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_fc_freeform=$ac_flag; break 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 done rm -f conftest.err conftest.$ac_objext conftest.$ac_ext FCFLAGS=$ac_fc_freeform_FCFLAGS_save fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_freeform" >&5 -printf "%s\n" "$ac_cv_fc_freeform" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_freeform" >&5 +$as_echo "$ac_cv_fc_freeform" >&6; } if test "x$ac_cv_fc_freeform" = xunknown; then as_fn_error 77 "Fortran does not accept free-form source" "$LINENO" 5 else @@ -8610,12 +8159,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu #============================================================================= # FLAGS TO INCLUDE MODULE -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion flag" >&5 -printf %s "checking fortran 90 modules inclusion flag... " >&6; } -if test ${ax_cv_f90_modflag+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion flag" >&5 +$as_echo_n "checking fortran 90 modules inclusion flag... " >&6; } +if ${ax_cv_f90_modflag+:} false; then : + $as_echo_n "(cached) " >&6 +else 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' @@ -8638,11 +8186,10 @@ cat > conftest.$ac_ext <<_ACEOF end module conftest_module _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : 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 cd .. ax_cv_f90_modflag="not found" for ax_flag in "-I" "-M" "-p"; do @@ -8658,11 +8205,10 @@ for ax_flag in "-I" "-M" "-p"; do end program conftest_program _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : ax_cv_f90_modflag="$ax_flag" 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 FCFLAGS="$ax_save_FCFLAGS" fi done @@ -8678,153 +8224,23 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5 -printf "%s\n" "$ax_cv_f90_modflag" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5 +$as_echo "$ax_cv_f90_modflag" >&6; } IFLAG="$ax_cv_f90_modflag" if test -z "$IFLAG" ; then IFLAG="-I" ; fi # # ============================================================================ # CPP check & flags -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; } -# 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 - 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. - # 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 - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - -else $as_nop - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break -fi -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 : - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ 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. - # 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 - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - -else $as_nop - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break -fi -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 : - -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 - -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 - - # case "${CPP}" in *icc* ) if test -z "$CPPFLAGS"; then CPPFLAGS="-ansi"; fi ;; + *icx* ) + if test -z "$CPPFLAGS"; then CPPFLAGS="-ansi"; fi + ;; *gcc* ) case "${host}" in *86*apple* ) @@ -8867,8 +8283,8 @@ case "${CPP}" in esac # # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: testing C-preprocessor $CPP $CPPFLAGS" >&5 -printf "%s\n" "$as_me: testing C-preprocessor $CPP $CPPFLAGS" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: testing C-preprocessor $CPP $CPPFLAGS" >&5 +$as_echo "$as_me: testing C-preprocessor $CPP $CPPFLAGS" >&6;} # # TESTS #======= @@ -8885,8 +8301,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu # acx_C_ok=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C precompiler works on C source" >&5 -printf %s "checking if C precompiler works on C source... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C precompiler works on C source" >&5 +$as_echo_n "checking if C precompiler works on C source... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8898,15 +8314,14 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #endif _ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : +if ac_fn_c_try_cpp "$LINENO"; then : acx_C_ok=yes -else $as_nop +else CPP_TESTS_PASSED=no fi rm -f conftest.err conftest.i conftest.$ac_ext -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_C_ok" >&5 -printf "%s\n" "$acx_C_ok" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_C_ok" >&5 +$as_echo "$acx_C_ok" >&6; } # if test "x$CPP_TESTS_PASSED" = xno ; then as_fn_error $? "Found C precompiler problems in processing C source." "$LINENO" 5; @@ -8954,8 +8369,8 @@ esac # if test -z "$FPP" ; then FPP="cpp -E -P -ansi"; fi # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: testing FC-preprocessor $FPP" >&5 -printf "%s\n" "$as_me: testing FC-preprocessor $FPP" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: testing FC-preprocessor $FPP" >&5 +$as_echo "$as_me: testing FC-preprocessor $FPP" >&6;} # # TESTS #======= @@ -8964,8 +8379,8 @@ printf "%s\n" "$as_me: testing FC-preprocessor $FPP" >&6;} # acx_FC_ok=yes FPP_TESTS_PASSED=yes -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if FC precompiler works on FC source" >&5 -printf %s "checking if FC precompiler works on FC source... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if FC precompiler works on FC source" >&5 +$as_echo_n "checking if FC precompiler works on FC source... " >&6; } cat > conftest.F << EOF_ program conftest character (1) :: a @@ -8992,8 +8407,8 @@ else acx_FC_ok=no ; FPP_TESTS_PASSED=no fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_FC_ok" >&5 -printf "%s\n" "$acx_FC_ok" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_FC_ok" >&5 +$as_echo "$acx_FC_ok" >&6; } # if test "x$FPP_TESTS_PASSED" = xno ; then as_fn_error $? "Found FC precompiler problems in processing FC source." "$LINENO" 5; @@ -9022,12 +8437,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_F77+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_F77+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else @@ -9035,15 +8449,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_F77="$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 @@ -9054,11 +8464,11 @@ fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 -printf "%s\n" "$F77" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 +$as_echo "$F77" >&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 @@ -9071,12 +8481,11 @@ if test -z "$F77"; 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_F77+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_F77+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else @@ -9084,15 +8493,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_F77="$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 @@ -9103,11 +8508,11 @@ fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 -printf "%s\n" "$ac_ct_F77" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 +$as_echo "$ac_ct_F77" >&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 @@ -9119,8 +8524,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 F77=$ac_ct_F77 @@ -9129,7 +8534,7 @@ fi # Provide some information about the compiler. -printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -9139,7 +8544,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 @@ -9149,7 +8554,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 @@ -9158,12 +8563,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 77" >&5 -printf %s "checking whether the compiler supports GNU Fortran 77... " >&6; } -if test ${ac_cv_f77_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 77 compiler" >&5 +$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } +if ${ac_cv_f77_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else cat > conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ @@ -9172,48 +8576,43 @@ else $as_nop end _ACEOF -if ac_fn_f77_try_compile "$LINENO" -then : +if ac_fn_f77_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_f77_compiler_gnu=$ac_compiler_gnu fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 -printf "%s\n" "$ac_cv_f77_compiler_gnu" >&6; } -ac_compiler_gnu=$ac_cv_f77_compiler_gnu - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 +$as_echo "$ac_cv_f77_compiler_gnu" >&6; } ac_ext=$ac_save_ext -ac_test_FFLAGS=${FFLAGS+y} +ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 -printf %s "checking whether $F77 accepts -g... " >&6; } -if test ${ac_cv_prog_f77_g+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 +$as_echo_n "checking whether $F77 accepts -g... " >&6; } +if ${ac_cv_prog_f77_g+:} false; then : + $as_echo_n "(cached) " >&6 +else FFLAGS=-g cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_f77_try_compile "$LINENO" -then : +if ac_fn_f77_try_compile "$LINENO"; then : ac_cv_prog_f77_g=yes -else $as_nop +else ac_cv_prog_f77_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_f77_g" >&5 -printf "%s\n" "$ac_cv_prog_f77_g" >&6; } -if test $ac_test_FFLAGS; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 +$as_echo "$ac_cv_prog_f77_g" >&6; } +if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then @@ -9239,24 +8638,23 @@ ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler $F77 works" >&5 -printf %s "checking if Fortran 77 compiler $F77 works... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler $F77 works" >&5 +$as_echo_n "checking if Fortran 77 compiler $F77 works... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main integer ierr end _ACEOF -if ac_fn_f77_try_compile "$LINENO" -then : - acx_f77_ok="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - acx_f77_ok="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; }; +if ac_fn_f77_try_compile "$LINENO"; then : + acx_f77_ok="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + acx_f77_ok="no"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; }; as_fn_error $? "Fortran 77 compiler does not work. Impossible to continue." "$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 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9324,8 +8722,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu mpibuild="yes" # Check whether --enable-mpi was given. -if test ${enable_mpi+y} -then : +if test "${enable_mpi+set}" = set; then : enableval=$enable_mpi; fi @@ -9356,12 +8753,11 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu 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_MPIFC_test+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_MPIFC_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPIFC_test"; then ac_cv_prog_MPIFC_test="$MPIFC_test" # Let the user override the test. else @@ -9369,15 +8765,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_MPIFC_test="$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 @@ -9388,11 +8780,11 @@ fi fi MPIFC_test=$ac_cv_prog_MPIFC_test if test -n "$MPIFC_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIFC_test" >&5 -printf "%s\n" "$MPIFC_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC_test" >&5 +$as_echo "$MPIFC_test" >&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 @@ -9401,13 +8793,12 @@ done test -n "$MPIFC_test" || MPIFC_test="$FC" else - as_ac_File=`printf "%s\n" "ac_cv_file_$MPIFC" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPIFC" >&5 -printf %s "checking for $MPIFC... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_$MPIFC" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPIFC" >&5 +$as_echo_n "checking for $MPIFC... " >&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 "$MPIFC"; then @@ -9417,22 +8808,20 @@ 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 : MPIFC_test=$MPIFC -else $as_nop +else for ac_prog in $MPIFC mpipgifort mpiifort mpifort mpif90 mpxlf90 mpxlf mpf90 mpxlf95 mpxlf_r 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_MPIFC_test+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_MPIFC_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPIFC_test"; then ac_cv_prog_MPIFC_test="$MPIFC_test" # Let the user override the test. else @@ -9440,15 +8829,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_MPIFC_test="$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 @@ -9459,11 +8844,11 @@ fi fi MPIFC_test=$ac_cv_prog_MPIFC_test if test -n "$MPIFC_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIFC_test" >&5 -printf "%s\n" "$MPIFC_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC_test" >&5 +$as_echo "$MPIFC_test" >&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 @@ -9479,23 +8864,22 @@ fi if test "$acx_mpi_ok" = "yes"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 -printf %s "checking for MPI_Init... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 +$as_echo_n "checking for MPI_Init... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call MPI_init end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_mpi_ok="yes" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $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 \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi @@ -9515,11 +8899,10 @@ fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working mpif.h" >&5 -printf %s "checking for a working mpif.h... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working mpif.h" >&5 +$as_echo_n "checking for a working mpif.h... " >&6; } save_ldflags="$LDFLAGS" - if test "$LIB_MPI" -then : + if test "$LIB_MPI"; then : LDFLAGS="${LDFLAGS} -L${LIB_MPI}" fi cat > conftest.$ac_ext <<_ACEOF @@ -9530,23 +8913,21 @@ fi call MPI_Init(ierr) end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : - HAVE_MPIF_H=1; acx_mpi_ok="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - HAVE_MPIF_H=0; acx_mpi_ok="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } +if ac_fn_fc_try_compile "$LINENO"; then : + HAVE_MPIF_H=1; acx_mpi_ok="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + HAVE_MPIF_H=0; acx_mpi_ok="no" ; { $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 if test "$acx_mpi_ok" = "no"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working mpi.h" >&5 -printf %s "checking for a working mpi.h... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working mpi.h" >&5 +$as_echo_n "checking for a working mpi.h... " >&6; } save_ldflags="$LDFLAGS" - if test "$LIB_MPI" -then : + if test "$LIB_MPI"; then : LDFLAGS="${LDFLAGS} -L${LIB_MPI}" fi cat > conftest.$ac_ext <<_ACEOF @@ -9557,22 +8938,20 @@ fi call MPI_Init(ierr) end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : - HAVE_MPI_H=1; acx_mpi_ok="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - HAVE_MPI_H=0; acx_mpi_ok="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } +if ac_fn_fc_try_compile "$LINENO"; then : + HAVE_MPI_H=1; acx_mpi_ok="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + HAVE_MPI_H=0; acx_mpi_ok="no" ; { $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;fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;fi if test "$acx_mpi_ok" = "no"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working mpi module" >&5 -printf %s "checking for a working mpi module... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working mpi module" >&5 +$as_echo_n "checking for a working mpi module... " >&6; } save_ldflags="$LDFLAGS" - if test "$LIB_MPI" -then : + if test "$LIB_MPI"; then : LDFLAGS="${LDFLAGS} -L${LIB_MPI}" fi cat > conftest.$ac_ext <<_ACEOF @@ -9583,15 +8962,14 @@ fi call MPI_Init(ierr) end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : - HAVE_MPI_MOD=1; acx_mpi_ok="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - HAVE_MPI_MOD=0; acx_mpi_ok="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } +if ac_fn_fc_try_compile "$LINENO"; then : + HAVE_MPI_MOD=1; acx_mpi_ok="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + HAVE_MPI_MOD=0; acx_mpi_ok="no"; { $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;fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;fi # # @@ -9603,12 +8981,12 @@ fi # # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test "$acx_mpi_ok" = "no"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a FORTRAN mpi test program. YAMBO serial only." >&5 -printf "%s\n" "$as_me: WARNING: could not compile a FORTRAN mpi test program. YAMBO serial only." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a FORTRAN mpi test program. YAMBO serial only." >&5 +$as_echo "$as_me: WARNING: could not compile a FORTRAN mpi test program. YAMBO serial only." >&2;} : else -printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h +$as_echo "#define HAVE_MPI 1" >>confdefs.h : fi @@ -9639,13 +9017,12 @@ ac_compiler_gnu=$ac_cv_f77_compiler_gnu if ! test x"$MPIF77" = "x" ; then - as_ac_File=`printf "%s\n" "ac_cv_file_$MPIF77" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPIF77" >&5 -printf %s "checking for $MPIF77... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_$MPIF77" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPIF77" >&5 +$as_echo_n "checking for $MPIF77... " >&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 "$MPIF77"; then @@ -9655,22 +9032,20 @@ 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 : MPIF77_test=$MPIF77 -else $as_nop +else for ac_prog in $MPIF77 $MPIFC mpipgifort mpiifort mpifort mpif77 hf77 mpxlf mpf77 mpif90 mpf90 mpxlf90 mpxlf95 mpxlf_r cmpifc cmpif90c 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_MPIF77_test+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_MPIF77_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPIF77_test"; then ac_cv_prog_MPIF77_test="$MPIF77_test" # Let the user override the test. else @@ -9678,15 +9053,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_MPIF77_test="$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 @@ -9697,11 +9068,11 @@ fi fi MPIF77_test=$ac_cv_prog_MPIF77_test if test -n "$MPIF77_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 -printf "%s\n" "$MPIF77_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 +$as_echo "$MPIF77_test" >&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 @@ -9712,13 +9083,12 @@ test -n "$MPIF77_test" || MPIF77_test="$F77" fi elif ! test x"$MPIFC" = "x" ; then - as_ac_File=`printf "%s\n" "ac_cv_file_$MPIFC" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPIFC" >&5 -printf %s "checking for $MPIFC... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_$MPIFC" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPIFC" >&5 +$as_echo_n "checking for $MPIFC... " >&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 "$MPIFC"; then @@ -9728,22 +9098,20 @@ 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 : MPIF77_test=$MPIFC -else $as_nop +else for ac_prog in $MPIF77 $MPIFC mpipgifort mpiifort mpifort mpif77 hf77 mpxlf mpf77 mpif90 mpf90 mpxlf90 mpxlf95 mpxlf_r cmpifc cmpif90c 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_MPIF77_test+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_MPIF77_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPIF77_test"; then ac_cv_prog_MPIF77_test="$MPIF77_test" # Let the user override the test. else @@ -9751,15 +9119,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_MPIF77_test="$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 @@ -9770,11 +9134,11 @@ fi fi MPIF77_test=$ac_cv_prog_MPIF77_test if test -n "$MPIF77_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 -printf "%s\n" "$MPIF77_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 +$as_echo "$MPIF77_test" >&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 @@ -9789,12 +9153,11 @@ fi 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_MPIF77_test+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_MPIF77_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPIF77_test"; then ac_cv_prog_MPIF77_test="$MPIF77_test" # Let the user override the test. else @@ -9802,15 +9165,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_MPIF77_test="$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 @@ -9821,11 +9180,11 @@ fi fi MPIF77_test=$ac_cv_prog_MPIF77_test if test -n "$MPIF77_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 -printf "%s\n" "$MPIF77_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 +$as_echo "$MPIF77_test" >&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 @@ -9839,23 +9198,22 @@ test -n "$MPIF77_test" || MPIF77_test="$F77" if test "$acx_mpi_ok" = "yes"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 -printf %s "checking for MPI_Init... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 +$as_echo_n "checking for MPI_Init... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call MPI_Init end _ACEOF -if ac_fn_f77_try_link "$LINENO" -then : +if ac_fn_f77_try_link "$LINENO"; then : ac_mpi_ok="yes" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $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 \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi @@ -9891,12 +9249,12 @@ fi # # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test "$acx_mpi_ok" = "no"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a FORTRAN 77 mpi test program. YAMBO serial only." >&5 -printf "%s\n" "$as_me: WARNING: could not compile a FORTRAN 77 mpi test program. YAMBO serial only." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a FORTRAN 77 mpi test program. YAMBO serial only." >&5 +$as_echo "$as_me: WARNING: could not compile a FORTRAN 77 mpi test program. YAMBO serial only." >&2;} : else -printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h +$as_echo "#define HAVE_MPI 1" >>confdefs.h : fi @@ -9932,12 +9290,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu 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_MPICC_test+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_MPICC_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPICC_test"; then ac_cv_prog_MPICC_test="$MPICC_test" # Let the user override the test. else @@ -9945,15 +9302,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_MPICC_test="$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 @@ -9964,11 +9317,11 @@ fi fi MPICC_test=$ac_cv_prog_MPICC_test if test -n "$MPICC_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPICC_test" >&5 -printf "%s\n" "$MPICC_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC_test" >&5 +$as_echo "$MPICC_test" >&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 @@ -9977,13 +9330,12 @@ done test -n "$MPICC_test" || MPICC_test="$CC" else - as_ac_File=`printf "%s\n" "ac_cv_file_$MPICC" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPICC" >&5 -printf %s "checking for $MPICC... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_$MPICC" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPICC" >&5 +$as_echo_n "checking for $MPICC... " >&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 "$MPICC"; then @@ -9993,26 +9345,24 @@ 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 : cat >>confdefs.h <<_ACEOF -#define `printf "%s\n" "HAVE_$MPICC" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_$MPICC" | $as_tr_cpp` 1 _ACEOF MPICC_test=$MPICC -else $as_nop +else for ac_prog in $MPICC mpipgicc mpiicc mpicc hcc mpcc mpcc_r mpxlc cmpicc 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_MPICC_test+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_MPICC_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPICC_test"; then ac_cv_prog_MPICC_test="$MPICC_test" # Let the user override the test. else @@ -10020,15 +9370,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_MPICC_test="$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 @@ -10039,11 +9385,11 @@ fi fi MPICC_test=$ac_cv_prog_MPICC_test if test -n "$MPICC_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPICC_test" >&5 -printf "%s\n" "$MPICC_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC_test" >&5 +$as_echo "$MPICC_test" >&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 @@ -10060,8 +9406,7 @@ fi if test "$acx_mpi_ok" = "yes"; 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 : acx_mpi_ok="yes" fi @@ -10076,8 +9421,8 @@ fi if test x"$MPICC" != x"mpipgicc" ; then echo > /dev/null if test "$acx_mpi_ok" = "no"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working mpi.h" >&5 -printf %s "checking for a working mpi.h... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working mpi.h" >&5 +$as_echo_n "checking for a working mpi.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -10090,22 +9435,21 @@ printf %s "checking for a working mpi.h... " >&6; } #endif #endif int -main (void) +main () { #include ; 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; };acx_mpi_ok="yes" -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ;acx_mpi_ok="no" +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; };acx_mpi_ok="yes" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } ;acx_mpi_ok="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 else acx_mpi_ok="yes" @@ -10130,12 +9474,12 @@ fi # # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test "$acx_mpi_ok" = "no"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a C mpi test program. YAMBO serial only." >&5 -printf "%s\n" "$as_me: WARNING: could not compile a C mpi test program. YAMBO serial only." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a C mpi test program. YAMBO serial only." >&5 +$as_echo "$as_me: WARNING: could not compile a C mpi test program. YAMBO serial only." >&2;} : else -printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h +$as_echo "#define HAVE_MPI 1" >>confdefs.h : fi @@ -10174,10 +9518,10 @@ if test -e "conftest.x"; then else MPIKIND="undefined" fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI version" >&5 -printf %s "checking for MPI version... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIKIND" >&5 -printf "%s\n" "$MPIKIND" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI version" >&5 +$as_echo_n "checking for MPI version... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIKIND" >&5 +$as_echo "$MPIKIND" >&6; } # @@ -10197,29 +9541,25 @@ 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; fi # Check whether --with-mpi_path was given. -if test ${with_mpi_path+y} -then : +if test "${with_mpi_path+set}" = set; then : withval=$with_mpi_path; fi # Check whether --with-mpi_libdir was given. -if test ${with_mpi_libdir+y} -then : +if test "${with_mpi_libdir+set}" = set; then : withval=$with_mpi_libdir; fi # Check whether --with-mpi_includedir was given. -if test ${with_mpi_includedir+y} -then : +if test "${with_mpi_includedir+set}" = set; then : withval=$with_mpi_includedir; fi @@ -10295,13 +9635,12 @@ if test "$mpibuild" = "yes"; then if test x"$MPI_INC_DIR" = "x" ; then for MPI_INC_DIR in $MPI_INC_DIRS_LIST; do if ! test -e "$MPI_INC_DIR"; then continue; fi - as_ac_File=`printf "%s\n" "ac_cv_file_$MPI_INC_DIR/mpif.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPI_INC_DIR/mpif.h" >&5 -printf %s "checking for $MPI_INC_DIR/mpif.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_$MPI_INC_DIR/mpif.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPI_INC_DIR/mpif.h" >&5 +$as_echo_n "checking for $MPI_INC_DIR/mpif.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 "$MPI_INC_DIR/mpif.h"; then @@ -10311,12 +9650,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 : + { $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 : mpif_found_tmp="yes" -else $as_nop +else mpif_found_tmp="no" fi @@ -10597,6 +9935,31 @@ url_ydb=https://github.com/yambo-code/ydb.git # +# +# Copyright (C) 2000-2022 the YAMBO team +# http://www.yambo-code.org +# +# Authors (see AUTHORS file for details): AM +# +# This file is distributed under the terms of the GNU +# General Public License. You can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; +# either version 2, or (at your option) any later version. +# +# This program is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place - Suite 330,Boston, +# MA 02111-1307, USA or visit http://www.gnu.org/copyleft/gpl.txt. +# + + # ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' @@ -10611,10 +9974,9 @@ DRIVER_INCS="-I$PWD/lib/yambo/Ydriver/include/ -I$PWD/include/driver" # # Check whether --with-ydriver-branch was given. -if test ${with_ydriver_branch+y} -then : +if test "${with_ydriver_branch+set}" = set; then : withval=$with_ydriver_branch; -else $as_nop +else with_ydriver_branch=none fi @@ -10636,8 +9998,7 @@ fi # # Check whether --enable-ydb was given. -if test ${enable_ydb+y} -then : +if test "${enable_ydb+set}" = set; then : enableval=$enable_ydb; fi @@ -10651,12 +10012,11 @@ if test "x$enable_ydb" = "xyes"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}git", so it can be a program name with args. set dummy ${ac_tool_prefix}git; 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_GIT+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_GIT+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$GIT"; then ac_cv_prog_GIT="$GIT" # Let the user override the test. else @@ -10664,15 +10024,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_GIT="${ac_tool_prefix}git" - 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 @@ -10683,11 +10039,11 @@ fi fi GIT=$ac_cv_prog_GIT if test -n "$GIT"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 -printf "%s\n" "$GIT" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 +$as_echo "$GIT" >&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 @@ -10696,12 +10052,11 @@ if test -z "$ac_cv_prog_GIT"; then ac_ct_GIT=$GIT # Extract the first word of "git", so it can be a program name with args. set dummy git; 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_GIT+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_GIT+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$ac_ct_GIT"; then ac_cv_prog_ac_ct_GIT="$ac_ct_GIT" # Let the user override the test. else @@ -10709,15 +10064,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_GIT="git" - 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 @@ -10728,11 +10079,11 @@ fi fi ac_ct_GIT=$ac_cv_prog_ac_ct_GIT if test -n "$ac_ct_GIT"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GIT" >&5 -printf "%s\n" "$ac_ct_GIT" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GIT" >&5 +$as_echo "$ac_ct_GIT" >&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_GIT" = x; then @@ -10740,8 +10091,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 GIT=$ac_ct_GIT @@ -10753,14 +10104,14 @@ fi # if test "$GIT" = "false"; then enable_ydb="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Git not found. Impossible to install YDB." >&5 -printf "%s\n" "$as_me: WARNING: Git not found. Impossible to install YDB." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Git not found. Impossible to install YDB." >&5 +$as_echo "$as_me: WARNING: Git not found. Impossible to install YDB." >&2;} fi # if test "x$enable_ydb" = "xyes" && ! test -d "scripts/ydb"; then # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking YDB from $url_ydb" >&5 -printf %s "checking YDB from $url_ydb... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking YDB from $url_ydb" >&5 +$as_echo_n "checking YDB from $url_ydb... " >&6; } mkdir -p scripts git clone $url_ydb scripts/ydb # @@ -10770,8 +10121,8 @@ printf %s "checking YDB from $url_ydb... " >&6; } cd $srcdir else enable_ydb="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to install YDB." >&5 -printf "%s\n" "$as_me: WARNING: Impossible to install YDB." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to install YDB." >&5 +$as_echo "$as_me: WARNING: Impossible to install YDB." >&2;} fi fi # @@ -10785,19 +10136,17 @@ ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 -printf %s "checking how to get verbose linking output from $F77... " >&6; } -if test ${ac_cv_prog_f77_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 $F77" >&5 +$as_echo_n "checking how to get verbose linking output from $F77... " >&6; } +if ${ac_cv_prog_f77_v+:} false; then : + $as_echo_n "(cached) " >&6 +else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_f77_try_compile "$LINENO" -then : +if ac_fn_f77_try_compile "$LINENO"; then : ac_cv_prog_f77_v= # Try some options frequently used verbose output for ac_verb in -v -verbose --verbose -V -\#\#\#; do @@ -10815,13 +10164,13 @@ ac_save_FFLAGS=$FFLAGS FFLAGS="$FFLAGS $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_f77_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_f77_v_output" >&5 +$as_echo "$ac_f77_v_output" >&5 FFLAGS=$ac_save_FFLAGS rm -rf conftest* @@ -10888,24 +10237,23 @@ esac done done if test -z "$ac_cv_prog_f77_v"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 -printf "%s\n" "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 +$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&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_f77_v" >&5 -printf "%s\n" "$ac_cv_prog_f77_v" >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 -printf %s "checking for Fortran 77 libraries of $F77... " >&6; } -if test ${ac_cv_f77_libs+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 +$as_echo "$ac_cv_prog_f77_v" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 +$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } +if ${ac_cv_f77_libs+:} false; then : + $as_echo_n "(cached) " >&6 +else if test "x$FLIBS" != "x"; then ac_cv_f77_libs="$FLIBS" # Let the user override the test. else @@ -10924,13 +10272,13 @@ ac_save_FFLAGS=$FFLAGS FFLAGS="$FFLAGS $ac_cv_prog_f77_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_f77_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_f77_v_output" >&5 +$as_echo "$ac_f77_v_output" >&5 FFLAGS=$ac_save_FFLAGS rm -rf conftest* @@ -11007,10 +10355,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_f77_libs="$ac_cv_f77_libs $ac_arg" fi ;; @@ -11023,42 +10370,26 @@ 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_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" done -else - ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" -fi -fi - ;; - # Ignore these flags. - -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ - |-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_f77_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 +else ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" fi +fi + ;; + # Ignore these flags. + -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ + |-LANG:=* | -LIST:* | -LNO:* | -link) + ;; + -lkernel32) + case $host_os in + *cygwin*) ;; + *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ;; esac ;; @@ -11076,7 +10407,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_f77_libs; do if test x"$ac_j" = x"$ac_i"; then @@ -11085,10 +10416,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_f77_libs="$ac_cv_f77_libs $ac_j" fi @@ -11103,17 +10433,15 @@ fi fi done - if test x"$ac_exists" = xtrue -then : + if test x"$ac_exists" = xtrue; then : -else $as_nop +else ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" fi ;; -zallextract*| -zdefaultextract) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ;; - -mllvm) ${2+shift};; # Defend against 'clang -mllvm -loopopt=0'. # Ignore everything else. esac done @@ -11125,7 +10453,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_f77_v_output" | + ac_ld_run_path=`$as_echo "$ac_f77_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 @@ -11140,8 +10468,8 @@ esac fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 -printf "%s\n" "$ac_cv_f77_libs" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 +$as_echo "$ac_cv_f77_libs" >&6; } FLIBS="$ac_cv_f77_libs" @@ -11157,20 +10485,17 @@ acx_blas_ok=no # 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; fi # Check whether --enable-int_linalg was given. -if test ${enable_int_linalg+y} -then : +if test "${enable_int_linalg+set}" = set; then : enableval=$enable_int_linalg; fi # Check whether --enable-openmp_int_linalg was given. -if test ${enable_openmp_int_linalg+y} -then : +if test "${enable_openmp_int_linalg+set}" = set; then : enableval=$enable_openmp_int_linalg; fi @@ -11178,8 +10503,7 @@ fi BLAS_LIBS="" # 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; fi @@ -11204,23 +10528,22 @@ internal_blas="no" if test $acx_blas_ok = no; then if test "x$BLAS_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in $BLAS_LIBS" >&5 -printf %s "checking for $caxpy in $BLAS_LIBS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in $BLAS_LIBS" >&5 +$as_echo_n "checking for $caxpy in $BLAS_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_blas_ok=yes -else $as_nop +else BLAS_LIBS="" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_blas_ok" >&5 -printf "%s\n" "$acx_blas_ok" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_ok" >&5 +$as_echo "$acx_blas_ok" >&6; } LIBS="$save_LIBS" fi fi @@ -11229,10 +10552,9 @@ fi # BLAS linked to by default? (happens on some supercomputers) if test $acx_blas_ok = no; then save_LIBS="$LIBS"; LIBS="$LIBS" - as_ac_var=`printf "%s\n" "ac_cv_func_$caxpy" | $as_tr_sh` + as_ac_var=`$as_echo "ac_cv_func_$caxpy" | $as_tr_sh` ac_fn_fc_check_func "$LINENO" "$caxpy" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes" -then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : acx_blas_ok=yes fi @@ -11241,12 +10563,11 @@ fi # BLAS in ATLAS library? (http://math-atlas.sourceforge.net/) if test $acx_blas_ok = no; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5 -printf %s "checking for ATL_xerbla in -latlas... " >&6; } -if test ${ac_cv_lib_atlas_ATL_xerbla+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5 +$as_echo_n "checking for ATL_xerbla in -latlas... " >&6; } +if ${ac_cv_lib_atlas_ATL_xerbla+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-latlas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11254,27 +10575,24 @@ cat > conftest.$ac_ext <<_ACEOF call ATL_xerbla end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : ac_cv_lib_atlas_ATL_xerbla=yes -else $as_nop +else ac_cv_lib_atlas_ATL_xerbla=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_atlas_ATL_xerbla" >&5 -printf "%s\n" "$ac_cv_lib_atlas_ATL_xerbla" >&6; } -if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes -then : - as_ac_Lib=`printf "%s\n" "ac_cv_lib_f77blas_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lf77blas" >&5 -printf %s "checking for $caxpy in -lf77blas... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5 +$as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; } +if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes; then : + as_ac_Lib=`$as_echo "ac_cv_lib_f77blas_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lf77blas" >&5 +$as_echo_n "checking for $caxpy in -lf77blas... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lf77blas -latlas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11282,27 +10600,24 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cblas_daxpy in -lcblas" >&5 -printf %s "checking for cblas_daxpy in -lcblas... " >&6; } -if test ${ac_cv_lib_cblas_cblas_daxpy+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $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 : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_daxpy in -lcblas" >&5 +$as_echo_n "checking for cblas_daxpy in -lcblas... " >&6; } +if ${ac_cv_lib_cblas_cblas_daxpy+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lcblas -lf77blas -latlas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11310,20 +10625,18 @@ cat > conftest.$ac_ext <<_ACEOF call cblas_daxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : ac_cv_lib_cblas_cblas_daxpy=yes -else $as_nop +else ac_cv_lib_cblas_cblas_daxpy=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_cblas_cblas_daxpy" >&5 -printf "%s\n" "$ac_cv_lib_cblas_cblas_daxpy" >&6; } -if test "x$ac_cv_lib_cblas_cblas_daxpy" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_daxpy" >&5 +$as_echo "$ac_cv_lib_cblas_cblas_daxpy" >&6; } +if test "x$ac_cv_lib_cblas_cblas_daxpy" = xyes; then : acx_blas_ok=yes BLAS_LIBS="-lcblas -lf77blas -latlas" fi @@ -11336,13 +10649,12 @@ fi # BLAS in PhiPACK libraries? (requires generic BLAS lib, too) if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_blas_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 -printf %s "checking for $caxpy in -lblas... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_blas_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 +$as_echo_n "checking for $caxpy in -lblas... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11350,28 +10662,25 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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_ac_Lib=`printf "%s\n" "ac_cv_lib_daxpy_$daxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $daxpy in -ldaxpy" >&5 -printf %s "checking for $daxpy in -ldaxpy... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $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 : + as_ac_Lib=`$as_echo "ac_cv_lib_daxpy_$daxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $daxpy in -ldaxpy" >&5 +$as_echo_n "checking for $daxpy in -ldaxpy... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-ldaxpy -lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11379,28 +10688,25 @@ cat > conftest.$ac_ext <<_ACEOF call $daxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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_ac_Lib=`printf "%s\n" "ac_cv_lib_caxpy_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcaxpy" >&5 -printf %s "checking for $caxpy in -lcaxpy... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $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 : + as_ac_Lib=`$as_echo "ac_cv_lib_caxpy_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcaxpy" >&5 +$as_echo_n "checking for $caxpy in -lcaxpy... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaxpy -lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11408,21 +10714,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lcaxpy -ldaxpy -lblas" fi @@ -11434,13 +10738,12 @@ fi # BLAS in Alpha CXML library? if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_cxml_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcxml" >&5 -printf %s "checking for $caxpy in -lcxml... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_cxml_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcxml" >&5 +$as_echo_n "checking for $caxpy in -lcxml... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lcxml $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11448,21 +10751,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-lcxml" fi @@ -11470,13 +10771,12 @@ fi # BLAS in Alpha DXML library? (now called CXML, see above) if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_dxml_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -ldxml" >&5 -printf %s "checking for $caxpy in -ldxml... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_dxml_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -ldxml" >&5 +$as_echo_n "checking for $caxpy in -ldxml... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-ldxml $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11484,21 +10784,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-ldxml" fi @@ -11507,12 +10805,11 @@ fi # BLAS in Sun Performance library? if test $acx_blas_ok = no; then if test "x$GCC" != xyes; then # only works with Sun CC - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5 -printf %s "checking for acosp in -lsunmath... " >&6; } -if test ${ac_cv_lib_sunmath_acosp+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5 +$as_echo_n "checking for acosp in -lsunmath... " >&6; } +if ${ac_cv_lib_sunmath_acosp+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lsunmath $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11520,27 +10817,24 @@ cat > conftest.$ac_ext <<_ACEOF call acosp end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : ac_cv_lib_sunmath_acosp=yes -else $as_nop +else ac_cv_lib_sunmath_acosp=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_sunmath_acosp" >&5 -printf "%s\n" "$ac_cv_lib_sunmath_acosp" >&6; } -if test "x$ac_cv_lib_sunmath_acosp" = xyes -then : - as_ac_Lib=`printf "%s\n" "ac_cv_lib_sunperf_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lsunperf" >&5 -printf %s "checking for $caxpy in -lsunperf... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5 +$as_echo "$ac_cv_lib_sunmath_acosp" >&6; } +if test "x$ac_cv_lib_sunmath_acosp" = xyes; then : + as_ac_Lib=`$as_echo "ac_cv_lib_sunperf_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lsunperf" >&5 +$as_echo_n "checking for $caxpy in -lsunperf... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lsunperf -lsunmath $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11548,21 +10842,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : BLAS_LIBS="-xlic_lib=sunperf -lsunmath" acx_blas_ok=yes fi @@ -11574,13 +10866,12 @@ fi # BLAS in SCSL library? (SGI/Cray Scientific Library) if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_scs_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lscs" >&5 -printf %s "checking for $caxpy in -lscs... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_scs_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lscs" >&5 +$as_echo_n "checking for $caxpy in -lscs... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lscs $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11588,21 +10879,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lscs" fi @@ -11610,13 +10899,12 @@ fi # BLAS in SGIMATH library? if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_complib.sgimath_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcomplib.sgimath" >&5 -printf %s "checking for $caxpy in -lcomplib.sgimath... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_complib.sgimath_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcomplib.sgimath" >&5 +$as_echo_n "checking for $caxpy in -lcomplib.sgimath... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lcomplib.sgimath $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11624,21 +10912,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath" fi @@ -11646,13 +10932,12 @@ fi # BLAS in IBM ESSL library? (requires generic BLAS lib, too) if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_blas_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 -printf %s "checking for $caxpy in -lblas... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_blas_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 +$as_echo_n "checking for $caxpy in -lblas... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11660,28 +10945,25 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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_ac_Lib=`printf "%s\n" "ac_cv_lib_essl_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lessl" >&5 -printf %s "checking for $caxpy in -lessl... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $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 : + as_ac_Lib=`$as_echo "ac_cv_lib_essl_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lessl" >&5 +$as_echo_n "checking for $caxpy in -lessl... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lessl -lblas $FLIBS $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11689,21 +10971,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lessl -lblas" fi @@ -11719,13 +10999,12 @@ if test $acx_blas_ok = no && test -d "${MKLROOT}" ; then *gfortran* ) case "${host}" in *x86*64*) - as_ac_Lib=`printf "%s\n" "ac_cv_lib_mkl_gf_lp64_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_gf_lp64" >&5 -printf %s "checking for $caxpy in -lmkl_gf_lp64... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_mkl_gf_lp64_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_gf_lp64" >&5 +$as_echo_n "checking for $caxpy in -lmkl_gf_lp64... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lmkl_gf_lp64 -L${mkl_libdir} -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11733,33 +11012,30 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-L${mkl_libdir} -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm" fi ;; i?86*linux*) - as_ac_Lib=`printf "%s\n" "ac_cv_lib_mkl_gf_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_gf" >&5 -printf %s "checking for $caxpy in -lmkl_gf... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_mkl_gf_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_gf" >&5 +$as_echo_n "checking for $caxpy in -lmkl_gf... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lmkl_gf -L${mkl_libdir} -lmkl_gf -lmkl_sequential -lmkl_core -lpthread $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11767,21 +11043,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-L${mkl_libdir} -lmkl_gf -lmkl_sequential -lmkl_core -lpthread" fi @@ -11793,13 +11067,12 @@ fi # 64 bit case "${host}" in *x86*64*) - as_ac_Lib=`printf "%s\n" "ac_cv_lib_mkl_intel_lp64_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_intel_lp64" >&5 -printf %s "checking for $caxpy in -lmkl_intel_lp64... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_mkl_intel_lp64_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_intel_lp64" >&5 +$as_echo_n "checking for $caxpy in -lmkl_intel_lp64... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lmkl_intel_lp64 -L${mkl_libdir} -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread -lm $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11807,33 +11080,30 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-L${mkl_libdir} -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread -lm" fi ;; i?86*linux*) - as_ac_Lib=`printf "%s\n" "ac_cv_lib_mkl_intel_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_intel" >&5 -printf %s "checking for $caxpy in -lmkl_intel... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_mkl_intel_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_intel" >&5 +$as_echo_n "checking for $caxpy in -lmkl_intel... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lmkl_intel -L${mkl_libdir} -lmkl_intel -lmkl_sequential -lmkl_core -lpthread $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11841,21 +11111,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-L${mkl_libdir} -lmkl_intel -lmkl_sequential -lmkl_core -lpthread" fi @@ -11866,13 +11134,12 @@ fi # Generic BLAS library? if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_blas_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 -printf %s "checking for $caxpy in -lblas... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_blas_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 +$as_echo_n "checking for $caxpy in -lblas... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11880,21 +11147,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lblas" fi @@ -11905,7 +11170,7 @@ LIBS="$acx_blas_save_LIBS" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$acx_blas_ok" = xyes; then -printf "%s\n" "#define HAVE_BLAS 1" >>confdefs.h +$as_echo "#define HAVE_BLAS 1" >>confdefs.h : else @@ -11915,12 +11180,12 @@ fi if test $acx_blas_ok = "no"; then internal_blas="yes"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Could not find blas. Using the built-in library" >&5 -printf "%s\n" "$as_me: Could not find blas. Using the built-in library" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find blas. Using the built-in library" >&5 +$as_echo "$as_me: Could not find blas. Using the built-in library" >&6;} elif (test -d "$with_blas_libs" && test "$with_blas_libs" = "") || test x"$enable_int_linalg" = "xyes" ; then internal_blas="yes" - if test $acx_blas_ok = "yes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Blas found in ${BLAS_LIBS} but imposing built-in library" >&5 -printf "%s\n" "$as_me: Blas found in ${BLAS_LIBS} but imposing built-in library" >&6;}; fi + if test $acx_blas_ok = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Blas found in ${BLAS_LIBS} but imposing built-in library" >&5 +$as_echo "$as_me: Blas found in ${BLAS_LIBS} but imposing built-in library" >&6;}; fi fi if test "$internal_blas" = "yes"; then @@ -11979,12 +11244,11 @@ ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5 -printf %s "checking for dummy main to link with Fortran 77 libraries... " >&6; } -if test ${ac_cv_f77_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 77 libraries" >&5 +$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; } +if ${ac_cv_f77_dummy_main+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_f77_dm_save_LIBS=$LIBS LIBS="$LIBS $FLIBS" ac_fortran_dm_var=F77_DUMMY_MAIN @@ -12015,20 +11279,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 @@ -12053,18 +11316,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 @@ -12077,24 +11339,25 @@ ac_compiler_gnu=$ac_cv_f77_compiler_gnu LIBS=$ac_f77_dm_save_LIBS fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 -printf "%s\n" "$ac_cv_f77_dummy_main" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 +$as_echo "$ac_cv_f77_dummy_main" >&6; } F77_DUMMY_MAIN=$ac_cv_f77_dummy_main -if test "$F77_DUMMY_MAIN" != unknown -then : +if test "$F77_DUMMY_MAIN" != unknown; then : if test $F77_DUMMY_MAIN != none; then -printf "%s\n" "#define F77_DUMMY_MAIN $F77_DUMMY_MAIN" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define F77_DUMMY_MAIN $F77_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 @@ -12108,12 +11371,11 @@ ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 -printf %s "checking for Fortran 77 name-mangling scheme... " >&6; } -if test ${ac_cv_f77_mangling+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 +$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; } +if ${ac_cv_f77_mangling+:} false; then : + $as_echo_n "(cached) " >&6 +else cat > conftest.$ac_ext <<_ACEOF subroutine foobar() return @@ -12122,8 +11384,7 @@ else $as_nop return end _ACEOF -if ac_fn_f77_try_compile "$LINENO" -then : +if ac_fn_f77_try_compile "$LINENO"; then : mv conftest.$ac_objext cfortran_test.$ac_objext ac_save_LIBS=$LIBS @@ -12144,6 +11405,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 F77_DUMMY_MAIN @@ -12162,18 +11426,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 @@ -12208,6 +11471,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 F77_DUMMY_MAIN @@ -12226,18 +11492,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=f @@ -12267,17 +11532,17 @@ ac_compiler_gnu=$ac_cv_f77_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_f77_mangling" >&5 -printf "%s\n" "$ac_cv_f77_mangling" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5 +$as_echo "$ac_cv_f77_mangling" >&6; } ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' @@ -12291,8 +11556,7 @@ acx_lapack_ok=no LAPACK_LIBS="" # 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; fi @@ -12318,23 +11582,22 @@ fi # First, check LAPACK_LIBS environment variable if test "x$LAPACK_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $cheev in $LAPACK_LIBS" >&5 -printf %s "checking for $cheev in $LAPACK_LIBS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in $LAPACK_LIBS" >&5 +$as_echo_n "checking for $cheev in $LAPACK_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $cheev end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_lapack_ok=yes -else $as_nop +else LAPACK_LIBS="" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_lapack_ok" >&5 -printf "%s\n" "$acx_lapack_ok" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_lapack_ok" >&5 +$as_echo "$acx_lapack_ok" >&6; } LIBS="$save_LIBS" if test acx_lapack_ok = no; then LAPACK_LIBS="" @@ -12344,10 +11607,9 @@ fi # LAPACK linked to by default? (is sometimes included in BLAS lib) if test $acx_lapack_ok = no; then save_LIBS="$LIBS"; LIBS="$LIBS $BLAS_LIBS $FLIBS" - as_ac_var=`printf "%s\n" "ac_cv_func_$cheev" | $as_tr_sh` + as_ac_var=`$as_echo "ac_cv_func_$cheev" | $as_tr_sh` ac_fn_fc_check_func "$LINENO" "$cheev" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes" -then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : acx_lapack_ok=yes fi @@ -12358,13 +11620,12 @@ fi for lapack in lapack lapack_rs6k; do if test $acx_lapack_ok = no; then save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" - as_ac_Lib=`printf "%s\n" "ac_cv_lib_$lapack""_$cheev" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $cheev in -l$lapack" >&5 -printf %s "checking for $cheev in -l$lapack... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in -l$lapack" >&5 +$as_echo_n "checking for $cheev in -l$lapack... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-l$lapack $FLIBS $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -12372,21 +11633,19 @@ cat > conftest.$ac_ext <<_ACEOF call $cheev end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_lapack_ok=yes; LAPACK_LIBS="-l$lapack" fi @@ -12418,23 +11677,22 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "x$LAPACK_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $dlaran in $LAPACK_LIBS" >&5 -printf %s "checking for $dlaran in $LAPACK_LIBS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dlaran in $LAPACK_LIBS" >&5 +$as_echo_n "checking for $dlaran in $LAPACK_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $dlaran end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_dlaran_ok=yes -else $as_nop +else acx_dlaran_ok=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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_dlaran_ok" >&5 -printf "%s\n" "$acx_dlaran_ok" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_dlaran_ok" >&5 +$as_echo "$acx_dlaran_ok" >&6; } LIBS="$save_LIBS" fi fi @@ -12442,7 +11700,7 @@ fi # Execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$acx_lapack_ok" = xyes; then -printf "%s\n" "#define HAVE_LAPACK 1" >>confdefs.h +$as_echo "#define HAVE_LAPACK 1" >>confdefs.h : else @@ -12452,12 +11710,12 @@ fi if test $acx_lapack_ok = "no"; then internal_lapack="yes"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Could not find lapack. Using the built-in library" >&5 -printf "%s\n" "$as_me: Could not find lapack. Using the built-in library" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find lapack. Using the built-in library" >&5 +$as_echo "$as_me: Could not find lapack. Using the built-in library" >&6;} elif (test -d "$with_lapack_libs" && test "$with_lapack_libs" = "") || test x"$enable_int_linalg" = "xyes" ; then internal_lapack="yes" - if test "$acx_lalpack_ok" = "yes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Lapack found in ${LAPACK_LIBS} but imposing built-in library" >&5 -printf "%s\n" "$as_me: Lapack found in ${LAPACK_LIBS} but imposing built-in library" >&6;}; fi + if test "$acx_lalpack_ok" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Lapack found in ${LAPACK_LIBS} but imposing built-in library" >&5 +$as_echo "$as_me: Lapack found in ${LAPACK_LIBS} but imposing built-in library" >&6;}; fi fi if test "$internal_lapack" = "yes"; then @@ -12502,60 +11760,52 @@ fi # Check whether --with-fft_libs was given. -if test ${with_fft_libs+y} -then : +if test "${with_fft_libs+set}" = set; then : withval=$with_fft_libs; fi # Check whether --with-fft_path was given. -if test ${with_fft_path+y} -then : +if test "${with_fft_path+set}" = set; then : withval=$with_fft_path; fi # Check whether --with-fft_libdir was given. -if test ${with_fft_libdir+y} -then : +if test "${with_fft_libdir+set}" = set; then : withval=$with_fft_libdir; fi # Check whether --with-fft_includedir was given. -if test ${with_fft_includedir+y} -then : +if test "${with_fft_includedir+set}" = set; then : withval=$with_fft_includedir; fi # # Check whether --enable-internal_fftqe was given. -if test ${enable_internal_fftqe+y} -then : +if test "${enable_internal_fftqe+set}" = set; then : enableval=$enable_internal_fftqe; -else $as_nop +else enable_internal_fftqe=no fi # Check whether --enable-internal_fftsg was given. -if test ${enable_internal_fftsg+y} -then : +if test "${enable_internal_fftsg+set}" = set; then : enableval=$enable_internal_fftsg; -else $as_nop +else enable_internal_fftsg=no fi # Check whether --enable-3d_fft was given. -if test ${enable_3d_fft+y} -then : +if test "${enable_3d_fft+set}" = set; then : enableval=$enable_3d_fft; fi # # Check whether --with-fftsg_fac was given. -if test ${with_fftsg_fac+y} -then : +if test "${with_fftsg_fac+set}" = set; then : withval=$with_fftsg_fac; fi @@ -12580,10 +11830,10 @@ if test -d "$with_fft_path" || test -d "$with_fft_libdir" ; then # # external FFT # - if test -d "$with_fft_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT in $with_fft_path" >&5 -printf %s "checking for FFT in $with_fft_path... " >&6; } ; fi - if test -d "$with_fft_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT in $with_fft_libdir" >&5 -printf %s "checking for FFT in $with_fft_libdir... " >&6; } ; fi + if test -d "$with_fft_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT in $with_fft_path" >&5 +$as_echo_n "checking for FFT in $with_fft_path... " >&6; } ; fi + if test -d "$with_fft_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT in $with_fft_libdir" >&5 +$as_echo_n "checking for FFT in $with_fft_libdir... " >&6; } ; fi # if test -d "$with_fft_path" ; then try_fft_libdir=$with_fft_path/lib @@ -12599,16 +11849,16 @@ elif test x"$with_fft_libs" != "x" ; then # # directly provided lib # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT Library using $with_fft_libs" >&5 -printf %s "checking for FFT Library using $with_fft_libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT Library using $with_fft_libs" >&5 +$as_echo_n "checking for FFT Library using $with_fft_libs... " >&6; } try_fft_libs=$with_fft_libs # if test -d "$with_fft_includedir" ; then try_fft_incdir=$with_fft_includedir ; fi if test -z "$try_fft_incdir" ; then include_warn="yes" ; fi # else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 -printf %s "checking for FFT... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 +$as_echo_n "checking for FFT... " >&6; } fi # # check for FFTW @@ -12671,24 +11921,22 @@ if ! test x"$try_fft_libs" = "x" ; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : HAVE_FFTW="yes"; -else $as_nop +else HAVE_FFTW="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 cat > conftest.$ac_ext <<_ACEOF $testprog_omp _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : HAVE_FFTW_OMP="yes"; -else $as_nop +else HAVE_FFTW_OMP="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=$save_libs @@ -12700,18 +11948,18 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ # if test "$try_fft_libs" = "-lfftw3" ; then FFT_info="(FFTW v3)"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTW3" >&5 -printf "%s\n" "FFTW3" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTW3" >&5 +$as_echo "FFTW3" >&6; } elif test "$try_fft_libs" = "-lfftw3 -lfftw3_omp" && test "$HAVE_FFTW_OMP" = "yes" ; then FFT_info="(FFTW_OMP v3)"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTW3_OMP" >&5 -printf "%s\n" "FFTW3_OMP" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTW3_OMP" >&5 +$as_echo "FFTW3_OMP" >&6; } else desc=Other if ! test -z "`echo $try_fft_libs | grep -i mkl`" ; then desc="MKL" ; fi FFT_info="(FFTW $desc)"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTW ($desc) " >&5 -printf "%s\n" "FFTW ($desc) " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTW ($desc) " >&5 +$as_echo "FFTW ($desc) " >&6; } fi else def_fft="" @@ -12726,8 +11974,8 @@ else fi if test "$HAVE_FFT" = "yes" && test "$include_warn" = "yes" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No include-dir specified for fft library" >&5 -printf "%s\n" "$as_me: WARNING: No include-dir specified for fft library" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No include-dir specified for fft library" >&5 +$as_echo "$as_me: WARNING: No include-dir specified for fft library" >&2;} fi # # check for ESSL FFT @@ -12737,8 +11985,8 @@ if test -d "$try_fft_libdir" && test -d "$try_fft_incdir" ; then fi # if ! test x"$try_fft_libs" = "x" && ! test "$HAVE_FFT" = "yes" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTW no" >&5 -printf "%s\n" "FFTW no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTW no" >&5 +$as_echo "FFTW no" >&6; } # if ! test x"$try_fft_libdir" = "x" ; then FFT_PATH="-L$try_fft_libdir" ; fi # @@ -12748,31 +11996,30 @@ printf "%s\n" "FFTW no" >&6; } LIBS="$FFT_PATH $try_fft_libs" if test x"$try_fft_incdir" != "x" ; then FCFLAGS="$FCFLAGS $IFLAG$try_fft_incdir" ; fi # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dcft in $LIBS" >&5 -printf %s "checking for dcft in $LIBS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcft in $LIBS" >&5 +$as_echo_n "checking for dcft in $LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call dcft end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : HAVE_ESSL=yes -else $as_nop +else HAVE_ESSL=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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_ESSL" >&5 -printf "%s\n" "$HAVE_ESSL" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ESSL" >&5 +$as_echo "$HAVE_ESSL" >&6; } # LIBS=$save_libs LDFLAGS=$save_ldflags FCFLAGS=$save_fcflags # if test "$HAVE_ESSL" = "yes" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 -printf %s "checking for FFT... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 +$as_echo_n "checking for FFT... " >&6; } if ! test x"$enable_3d_fft" = "xno" ; then FFT3D_CPP="-D_USE_3D_FFT" FFT_info="(FFT ESSL (FFTQE) with 3D support)"; @@ -12784,8 +12031,8 @@ printf %s "checking for FFT... " >&6; } FFT_INCS="$IFLAG$try_fft_incdir" HAVE_FFT=yes compile_fftqe=yes - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ESSL FFT" >&5 -printf "%s\n" "ESSL FFT" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ESSL FFT" >&5 +$as_echo "ESSL FFT" >&6; } fi fi # @@ -12794,8 +12041,8 @@ fi if ! test x"$HAVE_FFT" = "xyes" ; then # # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 -printf %s "checking for FFT... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 +$as_echo_n "checking for FFT... " >&6; } if test x"$enable_internal_fftqe" = "xyes" ; then use_internal_fftqe=yes use_internal_fftsg=no @@ -12832,8 +12079,8 @@ if test "$use_internal_fftqe" = "yes" ; then else compile_fftqe=yes fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Internal FFTQE (FFTW2)" >&5 -printf "%s\n" "Internal FFTQE (FFTW2)" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Internal FFTQE (FFTW2)" >&5 +$as_echo "Internal FFTQE (FFTW2)" >&6; } fi if test "$HAVE_FFTQE" = "yes" ; then HAVE_FFT=yes ; fi @@ -12859,8 +12106,8 @@ if test "$use_internal_fftsg" = "yes" ; then FFT_LIBS="" HAVE_FFTSG=yes; internal_fft="yes"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTSG" >&5 -printf "%s\n" "FFTSG" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTSG" >&5 +$as_echo "FFTSG" >&6; } fi if test "$HAVE_FFTSG" = "yes" ; then HAVE_FFT=yes ; fi @@ -12881,8 +12128,8 @@ if test "$use_internal_fftw" = "yes" ; then else compile_fftw=yes fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Internal FFTW3" >&5 -printf "%s\n" "Internal FFTW3" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Internal FFTW3" >&5 +$as_echo "Internal FFTW3" >&6; } fi if test "$HAVE_FFTW" = "yes" ; then HAVE_FFT=yes ; fi @@ -12896,48 +12143,48 @@ ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu case $ac_cv_f77_mangling in "lower case, no underscore, no extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) name" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) name" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h ;; "lower case, no underscore, extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) name" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h ;; "lower case, underscore, no extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h ;; "lower case, underscore, extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h ;; "upper case, no underscore, no extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) NAME" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h ;; "upper case, no underscore, extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) NAME" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h ;; "upper case, underscore, no extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h ;; "upper case, underscore, extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h + $as_echo "#define F77_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 @@ -12946,7 +12193,7 @@ 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" "#define _FFTQE 1" >>confdefs.h + $as_echo "#define _FFTQE 1" >>confdefs.h ac_config_headers="$ac_config_headers lib/fftqe/c_defs.h:lib/fftqe/c_defs.h.in" @@ -12968,80 +12215,69 @@ fi # # Check whether --enable-slepc_linalg was given. -if test ${enable_slepc_linalg+y} -then : +if test "${enable_slepc_linalg+set}" = set; then : enableval=$enable_slepc_linalg; fi # # Check whether --with-slepc_libs was given. -if test ${with_slepc_libs+y} -then : +if test "${with_slepc_libs+set}" = set; then : withval=$with_slepc_libs; fi # Check whether --with-slepc_incs was given. -if test ${with_slepc_incs+y} -then : +if test "${with_slepc_incs+set}" = set; then : withval=$with_slepc_incs; fi # Check whether --with-slepc_path was given. -if test ${with_slepc_path+y} -then : +if test "${with_slepc_path+set}" = set; then : withval=$with_slepc_path; fi # Check whether --with-slepc_libdir was given. -if test ${with_slepc_libdir+y} -then : +if test "${with_slepc_libdir+set}" = set; then : withval=$with_slepc_libdir; fi # Check whether --with-slepc_includedir was given. -if test ${with_slepc_includedir+y} -then : +if test "${with_slepc_includedir+set}" = set; then : withval=$with_slepc_includedir; fi # # Check whether --with-petsc_libs was given. -if test ${with_petsc_libs+y} -then : +if test "${with_petsc_libs+set}" = set; then : withval=$with_petsc_libs; fi # Check whether --with-petsc_incs was given. -if test ${with_petsc_incs+y} -then : +if test "${with_petsc_incs+set}" = set; then : withval=$with_petsc_incs; fi # Check whether --with-petsc_path was given. -if test ${with_petsc_path+y} -then : +if test "${with_petsc_path+set}" = set; then : withval=$with_petsc_path; fi # Check whether --with-petsc_libdir was given. -if test ${with_petsc_libdir+y} -then : +if test "${with_petsc_libdir+set}" = set; then : withval=$with_petsc_libdir; fi # Check whether --with-petsc_includedir was given. -if test ${with_petsc_includedir+y} -then : +if test "${with_petsc_includedir+set}" = set; then : withval=$with_petsc_includedir; fi @@ -13065,12 +12301,11 @@ 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 for dlopen in -ldl" >&5 -printf %s "checking for dlopen in -ldl... " >&6; } -if test ${ac_cv_lib_dl_dlopen+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13079,6 +12314,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 dlopen (); #ifdef F77_DUMMY_MAIN @@ -13097,29 +12335,27 @@ char dlopen (); #endif #endif int -main (void) +main () { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes -else $as_nop +else ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5 -printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : use_libdl="yes"; -else $as_nop +else use_libdl="no"; fi @@ -13154,12 +12390,12 @@ if test -d "$with_petsc_path" || test -d "$with_petsc_libdir" || test x"$with_pe # # external petsc # - if test x"$with_petsc_libs" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Petsc using $with_petsc_libs" >&5 -printf %s "checking for Petsc using $with_petsc_libs... " >&6; } ; - elif test -d "$with_petsc_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Petsc in $with_petsc_libdir" >&5 -printf %s "checking for Petsc in $with_petsc_libdir... " >&6; } ; - elif test -d "$with_petsc_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Petsc in $with_petsc_path" >&5 -printf %s "checking for Petsc in $with_petsc_path... " >&6; } ; + if test x"$with_petsc_libs" != "x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Petsc using $with_petsc_libs" >&5 +$as_echo_n "checking for Petsc using $with_petsc_libs... " >&6; } ; + elif test -d "$with_petsc_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Petsc in $with_petsc_libdir" >&5 +$as_echo_n "checking for Petsc in $with_petsc_libdir... " >&6; } ; + elif test -d "$with_petsc_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Petsc in $with_petsc_path" >&5 +$as_echo_n "checking for Petsc in $with_petsc_path... " >&6; } ; fi # if test -d "$with_petsc_path" ; then @@ -13202,24 +12438,23 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu #include end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : petsc=yes -else $as_nop +else petsc=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; # if test "x$petsc" = "xyes"; 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; } ; PETSC_INCS="$try_PETSC_INCS" ; PETSC_LIBS="$try_PETSC_LIBS" ; compile_petsc="no"; internal_petsc="no"; 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 # @@ -13232,8 +12467,8 @@ if test "x$enable_petsc" = "xyes" && test "x$petsc" = "xno" ; then # # internal petsc # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal Petsc library" >&5 -printf %s "checking for internal Petsc library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal Petsc library" >&5 +$as_echo_n "checking for internal Petsc library... " >&6; } # internal_petsc="yes" # @@ -13249,16 +12484,16 @@ printf %s "checking for internal Petsc library... " >&6; } petsc=yes if test -e "${extlibs_path}/${FCKIND}/${FC}/${build_precision}/lib/libpetsc.a" ; then compile_petsc="no" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; elif test -e "${extlibs_path}/${FCKIND}/${FC}/${build_precision}/lib/libpetsc.so" ; then compile_petsc="no" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; else compile_petsc="yes" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ; fi # fi @@ -13285,12 +12520,12 @@ if test -d "$with_slepc_path" || test -d "$with_slec_libdir" || test x"$with_sle # # external slepc # - if test x"$with_slepc_libs" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Slepc using $with_slepc_libs" >&5 -printf %s "checking for Slepc using $with_slepc_libs... " >&6; } ; - elif test -d "$with_slepc_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Slepc in $with_slepc_libdir" >&5 -printf %s "checking for Slepc in $with_slepc_libdir... " >&6; } ; - elif test -d "$with_slepc_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Slepc in $with_slepc_path" >&5 -printf %s "checking for Slepc in $with_slepc_path... " >&6; } ; + if test x"$with_slepc_libs" != "x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Slepc using $with_slepc_libs" >&5 +$as_echo_n "checking for Slepc using $with_slepc_libs... " >&6; } ; + elif test -d "$with_slepc_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Slepc in $with_slepc_libdir" >&5 +$as_echo_n "checking for Slepc in $with_slepc_libdir... " >&6; } ; + elif test -d "$with_slepc_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Slepc in $with_slepc_path" >&5 +$as_echo_n "checking for Slepc in $with_slepc_path... " >&6; } ; fi # if test -d "$with_slepc_path" ; then @@ -13329,25 +12564,24 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu #include end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : slepc=yes -else $as_nop +else slepc=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; # if test "x$slepc" = "xyes"; 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; } ; SLEPC_INCS="$try_SLEPC_INCS" ; SLEPC_LIBS="$try_SLEPC_LIBS" ; compile_slepc="no"; internal_slepc="no"; def_slepc="-D_SLEPC"; 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 # @@ -13361,8 +12595,8 @@ if test "x$enable_slepc" = "xyes" && test "x$slepc" = "xno" && test "x$enable_pe # # internal slepc # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal Slepc library" >&5 -printf %s "checking for internal Slepc library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal Slepc library" >&5 +$as_echo_n "checking for internal Slepc library... " >&6; } # internal_slepc="yes"; # @@ -13376,16 +12610,16 @@ printf %s "checking for internal Slepc library... " >&6; } slepc=yes if test -e "${extlibs_path}/${FCKIND}/${FC}/${build_precision}/lib/libslepc.a" ; then compile_slepc="no" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; elif test -e "${extlibs_path}/${FCKIND}/${FC}/${build_precision}/lib/libslepc.so" ; then compile_slepc="no" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; else compile_slepc="yes" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ; fi def_slepc="-D_SLEPC"; # @@ -13409,22 +12643,19 @@ fi # Check whether --enable-par_linalg was given. -if test ${enable_par_linalg+y} -then : +if test "${enable_par_linalg+set}" = set; then : enableval=$enable_par_linalg; fi # Check whether --with-blacs_libs was given. -if test ${with_blacs_libs+y} -then : +if test "${with_blacs_libs+set}" = set; then : withval=$with_blacs_libs; fi # Check whether --with-scalapack_libs was given. -if test ${with_scalapack_libs+y} -then : +if test "${with_scalapack_libs+set}" = set; then : withval=$with_scalapack_libs; fi @@ -13506,23 +12737,22 @@ if test "$mpibuild" = "yes"; then # First, check BLACS_LIBS environment variable if test "x$BLACS_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$BLACS_LIBS $LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $blacs_routine in $BLACS_LIBS" >&5 -printf %s "checking for $blacs_routine in $BLACS_LIBS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $blacs_routine in $BLACS_LIBS" >&5 +$as_echo_n "checking for $blacs_routine in $BLACS_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $blacs_routine end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : enable_blacs="yes" -else $as_nop +else enable_blacs="internal"; BLACS_LIBS="" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_blacs" >&5 -printf "%s\n" "$enable_blacs" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_blacs" >&5 +$as_echo "$enable_blacs" >&6; } BLACS_LIBS="$acx_blacs_save_LIBS" LIBS="$save_LIBS" else @@ -13537,23 +12767,22 @@ printf "%s\n" "$enable_blacs" >&6; } # First, check SCALAPACK_LIBS environment variable if test "x$SCALAPACK_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$SCALAPACK_LIBS $LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $scalapack_routine in $SCALAPACK_LIBS" >&5 -printf %s "checking for $scalapack_routine in $SCALAPACK_LIBS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $scalapack_routine in $SCALAPACK_LIBS" >&5 +$as_echo_n "checking for $scalapack_routine in $SCALAPACK_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $scalapack_routine end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : enable_scalapack="yes" -else $as_nop +else enable_scalapack="internal"; SCALAPACK_LIBS="" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_scalapack" >&5 -printf "%s\n" "$enable_scalapack" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_scalapack" >&5 +$as_echo "$enable_scalapack" >&6; } SCALAPACK_LIBS="$acx_scalapack_save_LIBS" LIBS="$save_LIBS" else @@ -13627,29 +12856,25 @@ LIBS="$reset_LIBS" # # Check whether --with-hdf5_libs was given. -if test ${with_hdf5_libs+y} -then : +if test "${with_hdf5_libs+set}" = set; then : withval=$with_hdf5_libs; fi # Check whether --with-hdf5_path was given. -if test ${with_hdf5_path+y} -then : +if test "${with_hdf5_path+set}" = set; then : withval=$with_hdf5_path; fi # Check whether --with-hdf5_libdir was given. -if test ${with_hdf5_libdir+y} -then : +if test "${with_hdf5_libdir+set}" = set; then : withval=$with_hdf5_libdir; fi # Check whether --with-hdf5_includedir was given. -if test ${with_hdf5_includedir+y} -then : +if test "${with_hdf5_includedir+set}" = set; then : withval=$with_hdf5_includedir; fi @@ -13657,8 +12882,7 @@ fi # HDF5 data compression # # Check whether --enable-hdf5_compression was given. -if test ${enable_hdf5_compression+y} -then : +if test "${enable_hdf5_compression+set}" = set; then : enableval=$enable_hdf5_compression; fi @@ -13666,10 +12890,9 @@ fi # HDF5 PAR IO # # Check whether --enable-hdf5_par_io was given. -if test ${enable_hdf5_par_io+y} -then : +if test "${enable_hdf5_par_io+set}" = set; then : enableval=$enable_hdf5_par_io; -else $as_nop +else enable_hdf5_par_io="yes" fi @@ -13677,8 +12900,7 @@ fi # HDF5 FOR P2Y (also requires parallel HDF5) # # Check whether --enable-hdf5_p2y_support was given. -if test ${enable_hdf5_p2y_support+y} -then : +if test "${enable_hdf5_p2y_support+set}" = set; then : enableval=$enable_hdf5_p2y_support; fi @@ -13709,13 +12931,12 @@ 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_ac_Lib=`printf "%s\n" "ac_cv_lib_z ""_deflate" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz " >&5 -printf %s "checking for deflate in -lz ... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop +as_ac_Lib=`$as_echo "ac_cv_lib_z ''_deflate" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz " >&5 +$as_echo_n "checking for deflate in -lz ... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13724,6 +12945,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 deflate (); #ifdef F77_DUMMY_MAIN @@ -13742,39 +12966,36 @@ char deflate (); #endif #endif int -main (void) +main () { return deflate (); ; 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 : use_libz="yes"; -else $as_nop +else use_libz="no"; fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lsz" >&5 -printf %s "checking for deflate in -lsz... " >&6; } -if test ${ac_cv_lib_sz_deflate+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lsz" >&5 +$as_echo_n "checking for deflate in -lsz... " >&6; } +if ${ac_cv_lib_sz_deflate+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lsz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13783,6 +13004,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 deflate (); #ifdef F77_DUMMY_MAIN @@ -13801,38 +13025,35 @@ char deflate (); #endif #endif int -main (void) +main () { return deflate (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_sz_deflate=yes -else $as_nop +else ac_cv_lib_sz_deflate=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_sz_deflate" >&5 -printf "%s\n" "$ac_cv_lib_sz_deflate" >&6; } -if test "x$ac_cv_lib_sz_deflate" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_deflate" >&5 +$as_echo "$ac_cv_lib_sz_deflate" >&6; } +if test "x$ac_cv_lib_sz_deflate" = xyes; then : use_libsz="yes"; -else $as_nop +else use_libsz="no"; fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -printf %s "checking for dlopen in -ldl... " >&6; } -if test ${ac_cv_lib_dl_dlopen+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13841,6 +13062,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 dlopen (); #ifdef F77_DUMMY_MAIN @@ -13859,38 +13083,35 @@ char dlopen (); #endif #endif int -main (void) +main () { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes -else $as_nop +else ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5 -printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : use_libdl="yes"; -else $as_nop +else use_libdl="no"; fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curl_version in -lcurl" >&5 -printf %s "checking for curl_version in -lcurl... " >&6; } -if test ${ac_cv_lib_curl_curl_version+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_version in -lcurl" >&5 +$as_echo_n "checking for curl_version in -lcurl... " >&6; } +if ${ac_cv_lib_curl_curl_version+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lcurl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13899,6 +13120,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 curl_version (); #ifdef F77_DUMMY_MAIN @@ -13917,38 +13141,35 @@ char curl_version (); #endif #endif int -main (void) +main () { return curl_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_curl_curl_version=yes -else $as_nop +else ac_cv_lib_curl_curl_version=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_curl_curl_version" >&5 -printf "%s\n" "$ac_cv_lib_curl_curl_version" >&6; } -if test "x$ac_cv_lib_curl_curl_version" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_version" >&5 +$as_echo "$ac_cv_lib_curl_curl_version" >&6; } +if test "x$ac_cv_lib_curl_curl_version" = xyes; then : use_libcurl="yes"; -else $as_nop +else use_libcurl="no"; fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 -printf %s "checking for cos in -lm... " >&6; } -if test ${ac_cv_lib_m_cos+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 +$as_echo_n "checking for cos in -lm... " >&6; } +if ${ac_cv_lib_m_cos+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13957,6 +13178,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 cos (); #ifdef F77_DUMMY_MAIN @@ -13975,29 +13199,27 @@ char cos (); #endif #endif int -main (void) +main () { return cos (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_cos=yes -else $as_nop +else ac_cv_lib_m_cos=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_cos" >&5 -printf "%s\n" "$ac_cv_lib_m_cos" >&6; } -if test "x$ac_cv_lib_m_cos" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 +$as_echo "$ac_cv_lib_m_cos" >&6; } +if test "x$ac_cv_lib_m_cos" = xyes; then : use_libm="yes"; -else $as_nop +else use_libm="no"; fi @@ -14041,8 +13263,8 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu # if test x"$with_hdf5_libs" != "x" ; then # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HDF5 using $with_hdf5_libs" >&5 -printf %s "checking for HDF5 using $with_hdf5_libs... " >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HDF5 using $with_hdf5_libs" >&5 +$as_echo_n "checking for HDF5 using $with_hdf5_libs... " >&6; } ; try_HDF5_LIBS="$with_hdf5_libs" ; if test -d "$try_hdf5_incdir" ; then try_HDF5_INCS="$IFLAG$try_hdf5_incdir" ; fi # @@ -14063,13 +13285,12 @@ printf %s "checking for HDF5 using $with_hdf5_libs... " >&6; } ; end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : hdf5=yes -else $as_nop +else hdf5=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; # FCFLAGS="$save_fcflags" ; @@ -14079,8 +13300,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ # # Automatic detection of hdf5 libs copied from QE # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HDF5 using h5pfc/h5fc system compilers" >&5 -printf %s "checking for HDF5 using h5pfc/h5fc system compilers... " >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HDF5 using h5pfc/h5fc system compilers" >&5 +$as_echo_n "checking for HDF5 using h5pfc/h5fc system compilers... " >&6; } ; # h5pfc="none" if test -e $with_hdf5_path/bin/h5pfc; then @@ -14126,23 +13347,22 @@ printf %s "checking for HDF5 using h5pfc/h5fc system compilers... " >&6; } ; end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : hdf5=yes -else $as_nop +else hdf5=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; # FCFLAGS="$save_fcflags" ; LIBS="$save_libs" ; # if test "x$hdf5" = xno; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HDF5 using automatic library list" >&5 -printf %s "checking for HDF5 using automatic library list... " >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HDF5 using automatic library list" >&5 +$as_echo_n "checking for HDF5 using automatic library list... " >&6; } ; # # re-define lib and inc dirs # @@ -14182,13 +13402,12 @@ printf %s "checking for HDF5 using automatic library list... " >&6; } ; end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : hdf5=yes -else $as_nop +else hdf5=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; # FCFLAGS="$save_fcflags" ; @@ -14200,13 +13419,13 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ HDF5_LIBS="$try_HDF5_LIBS" ; HDF5_INCS="$try_HDF5_INCS" ; if test $IO_LIB_VER = "parallel"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - parallel lib found" >&5 -printf "%s\n" "yes - parallel lib found" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - parallel lib found" >&5 +$as_echo "yes - parallel lib found" >&6; } ; HDF5_OPT="--enable-parallel" ; fi if test $IO_LIB_VER = "serial"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - serial lib found" >&5 -printf "%s\n" "yes - serial lib found" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - serial lib found" >&5 +$as_echo "yes - serial lib found" >&6; } ; HDF5_OPT="--disable-parallel" ; fi # AC_MSG_RESULT([yes]) ; @@ -14214,13 +13433,13 @@ printf "%s\n" "yes - serial lib found" >&6; } ; fi # if test "x$hdf5" = xno; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ; - if test -d "$with_hdf5_libdir" || test -d "$with_hdf5_path"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ; fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } ; + if test -d "$with_hdf5_libdir" || test -d "$with_hdf5_path"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } ; fi # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal HDF5 library" >&5 -printf %s "checking for internal HDF5 library... " >&6; }; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal HDF5 library" >&5 +$as_echo_n "checking for internal HDF5 library... " >&6; }; internal_hdf5="yes" ; # NETCDF_VER="v4"; @@ -14236,8 +13455,8 @@ printf %s "checking for internal HDF5 library... " >&6; }; if test -e "${NETCDF_HDF5_PATH}/lib/libhdf5.a"; then # compile_hdf5="no" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; # elif test "$IO_LIB_VER" = "serial" && test -e "${NETCDF_HDF5_PAR_PATH}/lib/libhdf5.a"; then # @@ -14245,8 +13464,8 @@ printf "%s\n" "already compiled" >&6; } ; IO_LIB_VER="parallel"; HDF5_LIBS="${NETCDF_HDF5_PAR_PATH}/lib/libhdf5_hl_fortran.a ${NETCDF_HDF5_PAR_PATH}/lib/libhdf5_fortran.a ${NETCDF_HDF5_PAR_PATH}/lib/libhdf5_hl.a ${NETCDF_HDF5_PAR_PATH}/lib/libhdf5.a" ; HDF5_INCS="${IFLAG}${NETCDF_HDF5_PAR_PATH}/include" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled (using parallel version)" >&5 -printf "%s\n" "already compiled (using parallel version)" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled (using parallel version)" >&5 +$as_echo "already compiled (using parallel version)" >&6; } ; # else # @@ -14255,8 +13474,8 @@ printf "%s\n" "already compiled (using parallel version)" >&6; } ; if test "$IO_LIB_VER" = "serial"; then HDF5_OPT="--disable-parallel" ; fi if test "$IO_LIB_VER" = "parallel"; then HDF5_OPT="--enable-parallel" ; fi # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ; # fi # @@ -14313,58 +13532,50 @@ fi # Check whether --with-netcdf_libs was given. -if test ${with_netcdf_libs+y} -then : +if test "${with_netcdf_libs+set}" = set; then : withval=$with_netcdf_libs; fi # Check whether --with-netcdf_path was given. -if test ${with_netcdf_path+y} -then : +if test "${with_netcdf_path+set}" = set; then : withval=$with_netcdf_path; fi # Check whether --with-netcdf_libdir was given. -if test ${with_netcdf_libdir+y} -then : +if test "${with_netcdf_libdir+set}" = set; then : withval=$with_netcdf_libdir; fi # Check whether --with-netcdf_includedir was given. -if test ${with_netcdf_includedir+y} -then : +if test "${with_netcdf_includedir+set}" = set; then : withval=$with_netcdf_includedir; fi # # Check whether --with-netcdff_libs was given. -if test ${with_netcdff_libs+y} -then : +if test "${with_netcdff_libs+set}" = set; then : withval=$with_netcdff_libs; fi # Check whether --with-netcdff_path was given. -if test ${with_netcdff_path+y} -then : +if test "${with_netcdff_path+set}" = set; then : withval=$with_netcdff_path; fi # Check whether --with-netcdff_libdir was given. -if test ${with_netcdff_libdir+y} -then : +if test "${with_netcdff_libdir+set}" = set; then : withval=$with_netcdff_libdir; fi # Check whether --with-netcdff_includedir was given. -if test ${with_netcdff_includedir+y} -then : +if test "${with_netcdff_includedir+set}" = set; then : withval=$with_netcdff_includedir; fi @@ -14372,8 +13583,7 @@ fi # Large Databases Support (LFS) # # Check whether --enable-netcdf_classic was given. -if test ${enable_netcdf_classic+y} -then : +if test "${enable_netcdf_classic+set}" = set; then : enableval=$enable_netcdf_classic; fi @@ -14381,8 +13591,7 @@ fi # NETCDF PAR IO # # Check whether --enable-netcdf_par_io was given. -if test ${enable_netcdf_par_io+y} -then : +if test "${enable_netcdf_par_io+set}" = set; then : enableval=$enable_netcdf_par_io; fi @@ -14390,8 +13599,7 @@ fi # HDF5 support # # Check whether --enable-netcdf_v3 was given. -if test ${enable_netcdf_v3+y} -then : +if test "${enable_netcdf_v3+set}" = set; then : enableval=$enable_netcdf_v3; fi @@ -14399,8 +13607,7 @@ fi # HDF5 data compression # # Check whether --enable-hdf5_compression was given. -if test ${enable_hdf5_compression+y} -then : +if test "${enable_hdf5_compression+set}" = set; then : enableval=$enable_hdf5_compression; fi @@ -14408,8 +13615,7 @@ fi # NETCDF SHODOW FOR OUTPUT FILES # # Check whether --enable-netcdf_output was given. -if test ${enable_netcdf_output+y} -then : +if test "${enable_netcdf_output+set}" = set; then : enableval=$enable_netcdf_output; fi @@ -14447,10 +13653,10 @@ if test -d "$with_netcdf_path" || test -d "$with_netcdf_libdir" ; then # # external netcdf # - if test -d "$with_netcdf_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetCDF in $with_netcdf_libdir" >&5 -printf %s "checking for NetCDF in $with_netcdf_libdir... " >&6; } ; - elif test -d "$with_netcdf_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetCDF in $with_netcdf_path" >&5 -printf %s "checking for NetCDF in $with_netcdf_path... " >&6; } ; + if test -d "$with_netcdf_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetCDF in $with_netcdf_libdir" >&5 +$as_echo_n "checking for NetCDF in $with_netcdf_libdir... " >&6; } ; + elif test -d "$with_netcdf_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetCDF in $with_netcdf_path" >&5 +$as_echo_n "checking for NetCDF in $with_netcdf_path... " >&6; } ; fi # if test -d "$with_netcdf_path" ; then @@ -14513,8 +13719,8 @@ elif test x"$with_netcdf_libs" != "x" ; then # # directly provided lib # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetCDF Library using $with_netcdf_libs" >&5 -printf %s "checking for NetCDF Library using $with_netcdf_libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetCDF Library using $with_netcdf_libs" >&5 +$as_echo_n "checking for NetCDF Library using $with_netcdf_libs... " >&6; } if test -d "$with_netcdf_includedir" ; then try_NETCDF_INCS="$IFLAG$with_netcdf_includedir" ; fi if test -d "$with_netcdff_includedir" ; then try_NETCDFF_INCS="$IFLAG$with_netcdff_includedir" ; fi if test -d "$with_pnetcdf_includedir" ; then try_PNETCDF_INCS="$IFLAG$with_pnetcdf_includedir" ; fi @@ -14522,8 +13728,8 @@ printf %s "checking for NetCDF Library using $with_netcdf_libs... " >&6; } try_NETCDF_LIBS="$with_netcdf_libs" ; try_NETCDFF_LIBS="$with_netcdff_libs" ; try_PNETCDF_LIBS="$with_pnetcdf_libs" ; - { 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; } # fi # @@ -14548,17 +13754,16 @@ if test x"$enable_hdf5" = "xno"; then nf_err = nf90_create('netcdf_test',nf90_share,ID) end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : netcdf=yes -else $as_nop +else netcdf=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; # if test "x$netcdf" = "xyes"; 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; } ; NETCDF_INCS="$try_NETCDF_INCS" ; NETCDF_LIBS="$try_NETCDF_LIBS" ; NETCDFF_INCS="$try_NETCDFF_INCS" ; @@ -14566,8 +13771,8 @@ printf "%s\n" "yes" >&6; } ; PNETCDF_INCS="$try_PNETCDF_INCS" ; PNETCDF_LIBS="$try_PNETCDF_LIBS" ; 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 # FCFLAGS="$save_fcflags" ; @@ -14578,8 +13783,8 @@ printf "%s\n" "no" >&6; } ; # # internal netcdf # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal NetCDF library" >&5 -printf %s "checking for internal NetCDF library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal NetCDF library" >&5 +$as_echo_n "checking for internal NetCDF library... " >&6; } # internal_netcdf="yes" # @@ -14613,22 +13818,22 @@ printf %s "checking for internal NetCDF library... " >&6; } if test x"$enable_pnecdf" = "xyes"; then if test -e "${NETCDF_HDF5_PATH}/lib/libnetcdf.a" && test -e "${NETCDF_HDF5_PATH}/lib/libnetcdff.a" && test -e "${NETCDF_HDF5_PATH}/lib/libpnetcdf.a"; then compile_netcdf="no" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; else compile_netcdf="yes" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ; fi else if test -e "${NETCDF_HDF5_PATH}/lib/libnetcdf.a" && test -e "${NETCDF_HDF5_PATH}/lib/libnetcdff.a"; then compile_netcdf="no" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; else compile_netcdf="yes" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ; fi fi # @@ -14663,13 +13868,12 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : netcdf=yes -else $as_nop +else netcdf=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; # if test "x$netcdf" = "xyes"; then @@ -14677,8 +13881,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ NETCDF_INCS="$try_NETCDF_INCS" ; NETCDFF_LIBS="$try_NETCDFF_LIBS" ; NETCDFF_INCS="$try_NETCDFF_INCS" ; - { 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; } ; # fi # @@ -14686,11 +13890,11 @@ printf "%s\n" "yes" >&6; } ; LIBS="$save_libs" ; # if test "x$netcdf" = "xno"; then - if test -d "$with_netcdf_libdir" || test -d "$with_netcdf_path" || test -d "$with_netcdff_libdir" || test -d "$with_netcdff_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ; fi + if test -d "$with_netcdf_libdir" || test -d "$with_netcdf_path" || test -d "$with_netcdff_libdir" || test -d "$with_netcdff_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } ; fi # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal NETCDF library" >&5 -printf %s "checking for internal NETCDF library... " >&6; }; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal NETCDF library" >&5 +$as_echo_n "checking for internal NETCDF library... " >&6; }; internal_netcdf="yes" ; # NETCDF_OPT="--enable-netcdf-4"; @@ -14709,8 +13913,8 @@ printf %s "checking for internal NETCDF library... " >&6; }; if test -e "${NETCDF_HDF5_PATH}/lib/libnetcdf.a" && test -e "${NETCDF_HDF5_PATH}/lib/libnetcdff.a" ; then # compile_netcdf="no" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; # elif test "$IO_LIB_VER" = "serial" && test -e "${NETCDF_HDF5_PAR_PATH}/lib/libnetcdf.a" && test -e "${NETCDF_HDF5_PAR_PATH}/lib/libnetcdff.a" && test -e "${NETCDF_HDF5_PAR_PATH}/lib/libhdf5.a"; then # @@ -14720,8 +13924,8 @@ printf "%s\n" "already compiled" >&6; } ; NETCDF_INCS="${IFLAG}${NETCDF_HDF5_PAR_PATH}/include" ; NETCDFF_LIBS="${NETCDF_HDF5_PAR_PATH}/lib/libnetcdff.a" ; NETCDFF_INCS="${IFLAG}${NETCDF_HDF5_PAR_PATH}/include" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled (using parallel version)" >&5 -printf "%s\n" "already compiled (using parallel version)" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled (using parallel version)" >&5 +$as_echo "already compiled (using parallel version)" >&6; } ; # else # @@ -14730,8 +13934,8 @@ printf "%s\n" "already compiled (using parallel version)" >&6; } ; if test "$IO_LIB_VER" = "serial"; then HDF5_OPT="--disable-parallel" ; fi if test "$IO_LIB_VER" = "parallel"; then HDF5_OPT="--enable-parallel" ; fi # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ; # fi # @@ -14823,37 +14027,32 @@ fi # Check whether --enable-yaml_output was given. -if test ${enable_yaml_output+y} -then : +if test "${enable_yaml_output+set}" = set; then : enableval=$enable_yaml_output; fi # Check whether --with-yaml_libs was given. -if test ${with_yaml_libs+y} -then : +if test "${with_yaml_libs+set}" = set; then : withval=$with_yaml_libs; fi # Check whether --with-yaml_libdir was given. -if test ${with_yaml_libdir+y} -then : +if test "${with_yaml_libdir+set}" = set; then : withval=$with_yaml_libdir; fi # Check whether --with-yaml_libdir was given. -if test ${with_yaml_libdir+y} -then : +if test "${with_yaml_libdir+set}" = set; then : withval=$with_yaml_libdir; fi # Check whether --with-yaml_includedir was given. -if test ${with_yaml_includedir+y} -then : +if test "${with_yaml_includedir+set}" = set; then : withval=$with_yaml_includedir; fi @@ -14862,29 +14061,25 @@ fi # Check whether --with-futile_libs was given. -if test ${with_futile_libs+y} -then : +if test "${with_futile_libs+set}" = set; then : withval=$with_futile_libs; fi # Check whether --with-futile_libdir was given. -if test ${with_futile_libdir+y} -then : +if test "${with_futile_libdir+set}" = set; then : withval=$with_futile_libdir; fi # Check whether --with-futile_libdir was given. -if test ${with_futile_libdir+y} -then : +if test "${with_futile_libdir+set}" = set; then : withval=$with_futile_libdir; fi # Check whether --with-futile_includedir was given. -if test ${with_futile_includedir+y} -then : +if test "${with_futile_includedir+set}" = set; then : withval=$with_futile_includedir; fi @@ -14907,10 +14102,10 @@ if test "x$enable_yaml" = "xyes" ; then # # external YAML # - if test -d "$with_yaml_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAML in $with_yaml_path" >&5 -printf %s "checking for YAML in $with_yaml_path... " >&6; } ; fi - if test -d "$with_yaml_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAML in $with_yaml_libdir" >&5 -printf %s "checking for YAML in $with_yaml_libdir... " >&6; } ; fi + if test -d "$with_yaml_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAML in $with_yaml_path" >&5 +$as_echo_n "checking for YAML in $with_yaml_path... " >&6; } ; fi + if test -d "$with_yaml_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAML in $with_yaml_libdir" >&5 +$as_echo_n "checking for YAML in $with_yaml_libdir... " >&6; } ; fi # if test -d "$with_yaml_path" ; then try_yaml_libdir_src=$with_yaml_path/src @@ -14929,55 +14124,55 @@ printf %s "checking for YAML in $with_yaml_libdir... " >&6; } ; fi compile_yaml="no" YAML_INCS="$IFLAG$try_yaml_incdir_src" YAML_LIBS="$try_yaml_libdir_src/libyaml.a" - { 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; } elif test -r $try_yaml_libdir/libyaml.a && test -e $try_yaml_incdir/yaml_module.mod ; then compile_yaml="no" YAML_INCS="$IFLAG$try_yaml_incdir" YAML_LIBS="$try_yaml_libdir/libyaml.a" - { 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; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 -printf "%s\n" "no. Fallback to internal library." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 +$as_echo "no. Fallback to internal library." >&6; } fi elif test x"$with_yaml_libs" != "x" ; then # # directly provided lib # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAML Library using $with_yaml_libs" >&5 -printf %s "checking for YAML Library using $with_yaml_libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAML Library using $with_yaml_libs" >&5 +$as_echo_n "checking for YAML Library using $with_yaml_libs... " >&6; } compile_yaml="no" if test -d "$with_yaml_includedir" ; then YAML_INCS="$IFLAG$with_yaml_includedir" ; fi YAML_LIBS="$with_yaml_libs" - { 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; } fi if test "$YAML_LIBS" = " "; then # # internal YAML # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal YAML library" >&5 -printf %s "checking for internal YAML library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal YAML library" >&5 +$as_echo_n "checking for internal YAML library... " >&6; } internal_yaml="yes" YAML_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include/" YAML_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libyaml.a" if ! test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libyaml.a" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/yaml_parse.mod" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/yaml.h"; then compile_yaml="yes" if test ! -d lib ; then mkdir lib ; fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } else compile_yaml="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } fi fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAML library" >&5 -printf %s "checking for YAML library... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAML library" >&5 +$as_echo_n "checking for YAML library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -15001,10 +14196,10 @@ if test "x$enable_futile" = "xyes" ; then # # external FUTILE # - if test -d "$with_futile_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUTILE in $with_futile_path" >&5 -printf %s "checking for FUTILE in $with_futile_path... " >&6; } ; fi - if test -d "$with_futile_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUTILE in $with_futile_libdir" >&5 -printf %s "checking for FUTILE in $with_futile_libdir... " >&6; } ; fi + if test -d "$with_futile_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUTILE in $with_futile_path" >&5 +$as_echo_n "checking for FUTILE in $with_futile_path... " >&6; } ; fi + if test -d "$with_futile_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUTILE in $with_futile_libdir" >&5 +$as_echo_n "checking for FUTILE in $with_futile_libdir... " >&6; } ; fi # if test -d "$with_futile_path" ; then try_futile_libdir_src=$with_futile_path/src @@ -15023,55 +14218,55 @@ printf %s "checking for FUTILE in $with_futile_libdir... " >&6; } ; fi compile_futile="no" FUTILE_INCS="$IFLAG$try_futile_incdir_src" FUTILE_LIBS="$try_futile_libdir_src/libfutile-1.a" - { 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; } elif test -r $try_futile_libdir/libfutile-1.a && test -e $try_futile_incdir/futile_module.mod ; then compile_futile="no" FUTILE_INCS="$IFLAG$try_futile_incdir" FUTILE_LIBS="$try_futile_libdir/libfutile-1.a" - { 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; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 -printf "%s\n" "no. Fallback to internal library." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 +$as_echo "no. Fallback to internal library." >&6; } fi elif test x"$with_futile_libs" != "x" ; then # # directly provided lib # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUTILE Library using $with_futile_libs" >&5 -printf %s "checking for FUTILE Library using $with_futile_libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUTILE Library using $with_futile_libs" >&5 +$as_echo_n "checking for FUTILE Library using $with_futile_libs... " >&6; } compile_futile="no" if test -d "$with_futile_includedir" ; then FUTILE_INCS="$IFLAG$with_futile_includedir" ; fi FUTILE_LIBS="$with_futile_libs" - { 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; } fi if test "$FUTILE_LIBS" = " "; then # # internal FUTILE # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal FUTILE library" >&5 -printf %s "checking for internal FUTILE library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal FUTILE library" >&5 +$as_echo_n "checking for internal FUTILE library... " >&6; } internal_futile="yes" FUTILE_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include/" FUTILE_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libfutile-1.a" if ! test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libfutile-1.a" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/futile.mod" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/futile.h"; then compile_futile="yes" if test ! -d lib ; then mkdir lib ; fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } else compile_futile="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } fi fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUTILE library" >&5 -printf %s "checking for FUTILE library... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUTILE library" >&5 +$as_echo_n "checking for FUTILE library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi # if test $enable_yaml = "yes" && test $enable_futile = "yes" ; then @@ -15097,38 +14292,33 @@ fi # Check whether --enable-iotk was given. -if test ${enable_iotk+y} -then : +if test "${enable_iotk+set}" = set; then : enableval=$enable_iotk; -else $as_nop +else enable_iotk="yes" fi # Check whether --with-iotk_libs was given. -if test ${with_iotk_libs+y} -then : +if test "${with_iotk_libs+set}" = set; then : withval=$with_iotk_libs; fi # Check whether --with-iotk_path was given. -if test ${with_iotk_path+y} -then : +if test "${with_iotk_path+set}" = set; then : withval=$with_iotk_path; fi # Check whether --with-iotk_libdir was given. -if test ${with_iotk_libdir+y} -then : +if test "${with_iotk_libdir+set}" = set; then : withval=$with_iotk_libdir; fi # Check whether --with-iotk_includedir was given. -if test ${with_iotk_includedir+y} -then : +if test "${with_iotk_includedir+set}" = set; then : withval=$with_iotk_includedir; fi @@ -15149,10 +14339,10 @@ if test "x$enable_iotk" = "xyes" ; then # # external IOTK # - if test -d "$with_iotk_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IOTK in $with_iotk_path" >&5 -printf %s "checking for IOTK in $with_iotk_path... " >&6; } ; fi - if test -d "$with_iotk_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IOTK in $with_iotk_libdir" >&5 -printf %s "checking for IOTK in $with_iotk_libdir... " >&6; } ; fi + if test -d "$with_iotk_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOTK in $with_iotk_path" >&5 +$as_echo_n "checking for IOTK in $with_iotk_path... " >&6; } ; fi + if test -d "$with_iotk_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOTK in $with_iotk_libdir" >&5 +$as_echo_n "checking for IOTK in $with_iotk_libdir... " >&6; } ; fi # if test -d "$with_iotk_path" ; then try_iotk_libdir_src=$with_iotk_path/src @@ -15172,38 +14362,38 @@ printf %s "checking for IOTK in $with_iotk_libdir... " >&6; } ; fi compile_iotk="no" IOTK_INCS="$IFLAG$try_iotk_incdir_src" IOTK_LIBS="$try_iotk_libdir_src/libiotk.a" - { 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; } elif test -r $try_iotk_libdir/libiotk.a && test -e $try_iotk_incdir/iotk_module.mod ; then compile_p2y="yes" compile_iotk="no" IOTK_INCS="$IFLAG$try_iotk_incdir" IOTK_LIBS="$try_iotk_libdir/libiotk.a" - { 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; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 -printf "%s\n" "no. Fallback to internal library." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 +$as_echo "no. Fallback to internal library." >&6; } fi elif test x"$with_iotk_libs" != "x" ; then # # directly provided lib # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IOTK Library using $with_iotk_libs" >&5 -printf %s "checking for IOTK Library using $with_iotk_libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOTK Library using $with_iotk_libs" >&5 +$as_echo_n "checking for IOTK Library using $with_iotk_libs... " >&6; } compile_p2y="yes" compile_iotk="no" if test -d "$with_iotk_includedir" ; then IOTK_INCS="$IFLAG$with_iotk_includedir" ; fi IOTK_LIBS="$with_iotk_libs" - { 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; } fi if test "$IOTK_LIBS" = " "; then # # internal IOTK # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal IOTK library" >&5 -printf %s "checking for internal IOTK library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal IOTK library" >&5 +$as_echo_n "checking for internal IOTK library... " >&6; } internal_iotk="yes" compile_p2y="yes" IOTK_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include/" @@ -15211,21 +14401,21 @@ printf %s "checking for internal IOTK library... " >&6; } if ! test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libiotk.a" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/iotk_base.mod" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/iotk_specials.h"; then compile_iotk="yes" if test ! -d lib ; then mkdir lib ; fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ac_config_files="$ac_config_files lib/iotk/make_iotk.inc:lib/iotk/make_iotk.inc.in" else compile_iotk="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } fi fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IOTK library" >&5 -printf %s "checking for IOTK library... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOTK library" >&5 +$as_echo_n "checking for IOTK library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi # PW_VER="no-hdf5-support" @@ -15253,38 +14443,33 @@ fi # Check whether --enable-etsf_io was given. -if test ${enable_etsf_io+y} -then : +if test "${enable_etsf_io+set}" = set; then : enableval=$enable_etsf_io; -else $as_nop +else enable_etsf_io="no" fi # Check whether --with-etsf_io_libs was given. -if test ${with_etsf_io_libs+y} -then : +if test "${with_etsf_io_libs+set}" = set; then : withval=$with_etsf_io_libs; fi # Check whether --with-etsf_io_path was given. -if test ${with_etsf_io_path+y} -then : +if test "${with_etsf_io_path+set}" = set; then : withval=$with_etsf_io_path; fi # Check whether --with-etsf_io_libdir was given. -if test ${with_etsf_io_libdir+y} -then : +if test "${with_etsf_io_libdir+set}" = set; then : withval=$with_etsf_io_libdir; fi # Check whether --with-etsf_io_includedir was given. -if test ${with_etsf_io_includedir+y} -then : +if test "${with_etsf_io_includedir+set}" = set; then : withval=$with_etsf_io_includedir; fi @@ -15311,10 +14496,10 @@ if test "x$enable_etsf_io" = "xyes" ; then # # external ETSF_IO # - if test -d "$with_etsf_io_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO in $with_etsf_io_path" >&5 -printf %s "checking for ETSF_IO in $with_etsf_io_path... " >&6; } ; fi - if test -d "$with_etsf_io_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO in $with_etsf_io_libdir" >&5 -printf %s "checking for ETSF_IO in $with_etsf_io_libdir... " >&6; } ; fi + if test -d "$with_etsf_io_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO in $with_etsf_io_path" >&5 +$as_echo_n "checking for ETSF_IO in $with_etsf_io_path... " >&6; } ; fi + if test -d "$with_etsf_io_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO in $with_etsf_io_libdir" >&5 +$as_echo_n "checking for ETSF_IO in $with_etsf_io_libdir... " >&6; } ; fi # if test -d "$with_etsf_io_path" ; then try_etsf_libdir=$with_etsf_io_path/lib @@ -15333,50 +14518,50 @@ printf %s "checking for ETSF_IO in $with_etsf_io_libdir... " >&6; } ; fi ETSF_LIBS="$try_etsf_libdir/libetsf_io.a" ETSF_INCS="$IFLAG$try_etsf_incdir" # - { 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; } 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 elif test x"$with_etsf_io_libs" != "x" ; then # # directly provided lib # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO Library using $with_etsf_io_libs" >&5 -printf %s "checking for ETSF_IO Library using $with_etsf_io_libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO Library using $with_etsf_io_libs" >&5 +$as_echo_n "checking for ETSF_IO Library using $with_etsf_io_libs... " >&6; } internal_etsf="no" compile_e2y="yes" if test -d "$with_etsf_io_includedir" ; then ETSF_INCS="$IFLAG$with_etsf_io_includedir" ; fi ETSF_LIBS="$with_etsf_io_libs" - { 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; } else # # internal ETSF_IO # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal ETSF_IO Library" >&5 -printf %s "checking for internal ETSF_IO Library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal ETSF_IO Library" >&5 +$as_echo_n "checking for internal ETSF_IO Library... " >&6; } internal_etsf="yes" compile_e2y="yes" ETSF_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ETSF_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libetsf_io.a" if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libetsf_io.a"; then compile_etsf="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found already compiled" >&5 -printf "%s\n" "found already compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found already compiled" >&5 +$as_echo "found already compiled" >&6; } else compile_etsf="yes" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } fi fi # else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO Library" >&5 -printf %s "checking for ETSF_IO Library... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO Library" >&5 +$as_echo_n "checking for ETSF_IO Library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi # @@ -15394,29 +14579,25 @@ compile_libxc=yes # Check whether --with-libxc_libs was given. -if test ${with_libxc_libs+y} -then : +if test "${with_libxc_libs+set}" = set; then : withval=$with_libxc_libs; fi # Check whether --with-libxc_path was given. -if test ${with_libxc_path+y} -then : +if test "${with_libxc_path+set}" = set; then : withval=$with_libxc_path; fi # Check whether --with-libxc_libdir was given. -if test ${with_libxc_libdir+y} -then : +if test "${with_libxc_libdir+set}" = set; then : withval=$with_libxc_libdir; fi # Check whether --with-libxc_includedir was given. -if test ${with_libxc_includedir+y} -then : +if test "${with_libxc_includedir+set}" = set; then : withval=$with_libxc_includedir; fi @@ -15437,8 +14618,8 @@ LIBXC_INCS="$IFLAG$libxc_incdir" acx_libxc_save_LIBS="$LIBS" acx_libxc_save_FCFLAGS="$FCFLAGS" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxc" >&5 -printf %s "checking for libxc... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxc" >&5 +$as_echo_n "checking for libxc... " >&6; } testprog=" program main @@ -15458,11 +14639,10 @@ if test ! -z "$LIBXC_LIBS"; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_ok=yes 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 @@ -15473,11 +14653,10 @@ if test x"$acx_libxc_ok" = xno && test ! -z "$with_libxc_libs" ; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_ok=yes 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 @@ -15488,11 +14667,10 @@ if test x"$acx_libxc_ok" = xno; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_ok=yes 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 @@ -15503,11 +14681,10 @@ if test x"$acx_libxc_ok" = xno; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_ok=yes 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 @@ -15583,71 +14760,66 @@ if test x"$acx_libxc_ok" = xyes; then cat > conftest.$ac_ext <<_ACEOF $testprog_11 _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=110, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_12 _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=120, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_20 _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=200, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_203 _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=203, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_21 _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=210, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_4x _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=400, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_5x _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=5, acx_libxc_ok=yes 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 -printf "%s\n" "#define LIBXC_VERSION $acx_libxc_version" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define LIBXC_VERSION $acx_libxc_version +_ACEOF -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Found external LibXC version=$acx_libxc_version (should be 5)" >&5 -printf "%s\n" "Found external LibXC version=$acx_libxc_version (should be 5)" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Found external LibXC version=$acx_libxc_version (should be 5)" >&5 +$as_echo "Found external LibXC version=$acx_libxc_version (should be 5)" >&6; } fi if test x"$acx_libxc_ok" = xyes; then @@ -15655,7 +14827,7 @@ if test x"$acx_libxc_ok" = xyes; then internal_libxc=no # -printf "%s\n" "#define HAVE_LIBXC 1" >>confdefs.h +$as_echo "#define HAVE_LIBXC 1" >>confdefs.h fi @@ -15667,12 +14839,12 @@ if test x"$acx_libxc_ok" = xno; then LIBXC_INCS="$IFLAG${extlibs_path}/${FCKIND}/${FC}/include" if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libxc.a" && test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libxcf90.a" && test -e ${extlibs_path}/${FCKIND}/${FC}/lib/libxcf03.a; then compile_libxc="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external LibXC not found/specified. Found internal already compiled." >&5 -printf "%s\n" "Compatible external LibXC not found/specified. Found internal already compiled." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external LibXC not found/specified. Found internal already compiled." >&5 +$as_echo "Compatible external LibXC not found/specified. Found internal already compiled." >&6; } else compile_libxc="yes" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external LibXC not found/specified. Internal to be compiled." >&5 -printf "%s\n" "Compatible external LibXC not found/specified. Internal to be compiled." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external LibXC not found/specified. Internal to be compiled." >&5 +$as_echo "Compatible external LibXC not found/specified. Internal to be compiled." >&6; } fi fi @@ -15688,15 +14860,13 @@ LIBS="$acx_libxc_save_LIBS" # # Check whether --enable-cuda was given. -if test ${enable_cuda+y} -then : +if test "${enable_cuda+set}" = set; then : enableval=$enable_cuda; fi # # Check whether --enable-nvtx was given. -if test ${enable_nvtx+y} -then : +if test "${enable_nvtx+set}" = set; then : enableval=$enable_nvtx; fi @@ -15722,46 +14892,240 @@ CUDA_LIBS="-Mcudalib=cufft,cublas,cusolver" # cc60 for Pascal cards (eg P100) # cc70 for Volta cards (eg V100) # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CUDA support" >&5 -printf %s "checking for CUDA support... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA support" >&5 +$as_echo_n "checking for CUDA support... " >&6; } if test x"$enable_cuda" = "xyes" ; then def_cuda="-D_CUDA" CUDA_FLAGS="-Mcuda=cuda9.0,cc70,nollvm $CUDA_LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUDA_FLAGS" >&5 -printf "%s\n" "$CUDA_FLAGS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUDA_FLAGS" >&5 +$as_echo "$CUDA_FLAGS" >&6; } elif ! test x"$enable_cuda" = "x" ; then def_cuda="-D_CUDA" CUDA_FLAGS="-Mcuda=$enable_cuda $CUDA_LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUDA_FLAGS" >&5 -printf "%s\n" "$CUDA_FLAGS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUDA_FLAGS" >&5 +$as_echo "$CUDA_FLAGS" >&6; } fi # if test x"$enable_cuda" = "x" -o x"$enable_cuda" = "xno" ; then enable_nvtx=no def_cuda="" CUDA_FLAGS="" - { 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 # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NVTX support" >&5 -printf %s "checking for NVTX support... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NVTX support" >&5 +$as_echo_n "checking for NVTX support... " >&6; } if ! test x"$enable_nvtx" = "xno" ; then if test x"$enable_nvtx" = "xyes" ; then def_cuda="$def_cuda -D_NVTX" CUDA_FLAGS="$CUDA_FLAGS -lnvToolsExt" - { 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; } elif ! test x"$enable_nvtx" = "x" ; then def_cuda="$def_cuda -D_NVTX" CUDA_FLAGS="$CUDA_FLAGS -L$enable_nvtx/lib64 -lnvToolsExt" - { 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 +fi +# + + +# + +# ============================================================================ +# MAGMA + +# +# Check whether --enable-magma_linalg was given. +if test "${enable_magma_linalg+set}" = set; then : + enableval=$enable_magma_linalg; +fi + +# + +# Check whether --with-magma_libs was given. +if test "${with_magma_libs+set}" = set; then : + withval=$with_magma_libs; +fi + + +# Check whether --with-magma_incs was given. +if test "${with_magma_incs+set}" = set; then : + withval=$with_magma_incs; +fi + + +# Check whether --with-magma_path was given. +if test "${with_magma_path+set}" = set; then : + withval=$with_magma_path; +fi + + +# Check whether --with-magma_libdir was given. +if test "${with_magma_libdir+set}" = set; then : + withval=$with_magma_libdir; +fi + + +# Check whether --with-magma_includedir was given. +if test "${with_magma_includedir+set}" = set; then : + withval=$with_magma_includedir; +fi + + +# +def_magma="" +magma="no" +enable_magma="no" +internal_magma="no" +compile_magma="no" +# +if test x"$enable_magma_linalg" = "xyes"; then + enable_magma="yes"; +fi +# +# MAGMA global options +# +if test x"$with_magma_libs" = "xyes" ; then + enable_magma="yes" ; + with_magma_libs=""; +elif test x"$with_magma_libs" = "xno" ; then + enable_magma="no" ; + with_magma_libs=""; +fi +# +if test x"$with_magma_libdir" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_path" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_libs" != "x" ; then enable_magma="yes" ; fi +# +# Set MAGMA LIBS and FLAGS from INPUT +# +if test -d "$with_magma_path" || test -d "$with_magma_libdir" || test x"$with_magma_libs" != "x" ; then + # + # external magma + # + if test x"$with_magma_libs" != "x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Magma using $with_magma_libs" >&5 +$as_echo_n "checking for Magma using $with_magma_libs... " >&6; } ; + elif test -d "$with_magma_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_libdir" >&5 +$as_echo_n "checking for Magma in $with_magma_libdir... " >&6; } ; + elif test -d "$with_magma_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_path" >&5 +$as_echo_n "checking for Magma in $with_magma_path... " >&6; } ; + fi + # + if test -d "$with_magma_path" ; then + try_magma_libdir="$with_magma_path/lib" ; + try_magma_incdir="$with_magma_path/include" ; + fi + # + if test -d "$with_magma_libdir" ; then try_magma_libdir="$with_magma_libdir" ; fi + if test -d "$with_magma_includedir" ; then try_magma_incdir="$with_magma_includedir" ; fi + # + try_MAGMA_INCS="$IFLAG$try_magma_incdir" ; + try_MAGMA_LIBS="-L$try_magma_libdir -lmagma" ; + # + if test x"$with_magma_libs" != "x" ; then try_MAGMA_LIBS="$with_magma_libs" ; fi + if test x"$with_magma_incs" != "x" ; then try_MAGMA_INCS="$with_magma_incs" ; fi + # + if test -z "$try_MAGMA_LIBS" ; then as_fn_error $? "No libs specified" "$LINENO" 5 ; fi + if test -z "$try_MAGMA_INCS" ; then as_fn_error $? "No include-dir specified" "$LINENO" 5 ; fi + # + 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 + + # + save_fcflags="$FCFLAGS" ; + save_libs="$LIBS" ; + # + FCFLAGS="$try_MAGMA_INCS $save_fcflags"; + LIBS="$try_MAGMA_LIBS $save_libs"; + # + cat > conftest.$ac_ext <<_ACEOF + program main + +use magma +implicit none +integer :: lda +!magma_devptr_t :: dA + end +_ACEOF +if ac_fn_fc_try_compile "$LINENO"; then : + magma=yes +else + magma=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; + # + if test "x$magma" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } ; + MAGMA_INCS="$try_MAGMA_INCS" ; + MAGMA_LIBS="$try_MAGMA_LIBS" ; + compile_magma="no"; + internal_magma="no"; + def_magma="-D_MAGMA" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } ; + # + fi + # + FCFLAGS="$save_fcflags" ; + LIBS="$save_libs" ; + # +fi +# +# TO BE FIXED: needs internal compilation support and paths have to be corrected with GPU_SUPPORT folder +if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then + # + # internal magma + # + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal Magma library" >&5 +$as_echo_n "checking for internal Magma library... " >&6; } + # + internal_magma="yes" + # + if test "x$lapack_shared" = "x1" ; then + #MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; + MAGMA_LIBS="" ; + else + #MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; + MAGMA_LIBS="" ; + fi + #MAGMA_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ; + MAGMA_INCS="" ; + # + magma=yes + def_magma="-D_MAGMA" + if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; then + compile_magma="no" ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; + elif test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; then + compile_magma="no" ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; + else + #compile_magma="yes" ; + #AC_MSG_RESULT([to be compiled]) ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external Magma not found/specified. Internal compilation not available yet." >&5 +$as_echo "Compatible external Magma not found/specified. Internal compilation not available yet." >&6; } ; + compile_magma="no" + def_magma="" + enable_magma="no" fi + # fi # + + + + # # ============================================================================ @@ -15893,6 +15257,14 @@ if test "$internal_libxc" = "yes" ; then if test "$compile_libxc" = "no" ; then LIBXC_check="I"; fi fi # +MAGMA_check="-" +if test "$internal_magma" = "yes" ; then + if test "$compile_magma" = "yes" ; then SLEPC_check="C"; fi + if test "$compile_magma" = "no" ; then SLEPC_check="I"; fi +elif test "$enable_magma" = "yes" ; then + MAGMA_check="E" +fi +# YDB_check="-"; if test "$enable_ydb" = "yes" ; then YDB_check="X"; fi YPY_check="-"; @@ -15987,6 +15359,7 @@ fi + # ============================================================================ # Compilation dir @@ -16023,8 +15396,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) ;; #( @@ -16054,15 +15427,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 @@ -16076,8 +15449,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 @@ -16094,7 +15467,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" @@ -16110,8 +15483,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 @@ -16134,16 +15507,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 ;; #( @@ -16153,46 +15524,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 || @@ -16201,6 +15572,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 #(( @@ -16209,12 +15587,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 @@ -16226,10 +15600,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] @@ -16242,14 +15636,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. @@ -16276,20 +15669,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 @@ -16301,13 +15692,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` @@ -16338,7 +15728,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 @@ -16360,10 +15750,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*) @@ -16377,12 +15763,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 @@ -16424,7 +15804,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" @@ -16433,7 +15813,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 @@ -16495,8 +15875,8 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.1.0 r.21876 h.7fe3130aa, which was -generated by GNU Autoconf 2.71. Invocation command line was +This file was extended by Yambo $as_me 5.1.0 r.21879 h.7d3ae819b, which was +generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -16554,16 +15934,14 @@ $config_headers Report bugs to ." _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="\\ -Yambo config.status 5.1.0 r.21876 h.7fe3130aa -configured by $0, generated by GNU Autoconf 2.71, +Yambo config.status 5.1.0 r.21879 h.7d3ae819b +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." @@ -16600,15 +15978,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'" @@ -16616,7 +15994,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;; @@ -16625,7 +16003,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=: ;; @@ -16653,7 +16031,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 "\$@" @@ -16667,7 +16045,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 @@ -16707,8 +16085,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 @@ -17044,7 +16422,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 @@ -17052,17 +16430,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 @@ -17079,7 +16457,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 @@ -17103,9 +16481,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/ ;; @@ -17158,8 +16536,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=' @@ -17201,9 +16579,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" @@ -17219,20 +16597,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 @@ -17273,8 +16651,8 @@ 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 # @@ -17432,4 +16810,3 @@ cat config/report if test "x$enable_ydb" = "xyes"; then cat config/msg_ydb fi - From ffc7c5e0042c795848745d86c3ee1645b4087df9 Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Mon, 24 Apr 2023 08:45:31 +0200 Subject: [PATCH 02/36] cuda compilation fixed --- src/dipoles/DIPOLE_overlaps.F | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dipoles/DIPOLE_overlaps.F b/src/dipoles/DIPOLE_overlaps.F index 253fd13986..b8b6d04ef9 100644 --- a/src/dipoles/DIPOLE_overlaps.F +++ b/src/dipoles/DIPOLE_overlaps.F @@ -34,7 +34,7 @@ subroutine DIPOLE_overlaps(Xk,Dip) use vec_operate, ONLY:k_periodic_idx use DIPOLES, ONLY:DIPOLE_t,DIP_S use electrons, ONLY:n_spinor,n_sp_pol - use wrapper_omp, ONLY:Vstar_dot_V_omp + use wrapper_omp, ONLY:Vstar_dot_V_omp,Vstar_dot_V use wave_func, ONLY:wf_ng_1st_BZ,wf_ng_overlaps,wf_ng use parallel_m, ONLY:PAR_IND_DIPk_bz,PAR_IND_DIPk_bz_ID,PAR_COM_DIPk_ibz_A2A, & & PAR_IND_CON_BANDS_OVLP,PAR_IND_VAL_BANDS_OVLP, & @@ -159,7 +159,11 @@ subroutine DIPOLE_overlaps(Xk,Dip) do ibp=1,Dip%ib(2) if(.not.PAR_IND_CON_BANDS_OVLP%element_1D(ibp)) cycle DIP_S(ib,ibp,id+(istep-1)*3,ikbz,i_sp_pol)= & +#if defined _CUDA + & Vstar_dot_V(wf_ng_overlaps*n_spinor,WF_ik(:,:,ib,i_sp_pol),WF_ikp(:,:,ibp,i_sp_pol)) +#else & Vstar_dot_V_omp(wf_ng_overlaps*n_spinor,WF_ik(:,:,ib,i_sp_pol),WF_ikp(:,:,ibp,i_sp_pol)) +#endif enddo ! ibp enddo ! ib ! From 44a8287cf62fc6e2f814c245c5e1ebdeb0f481e1 Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Mon, 24 Apr 2023 09:58:28 +0200 Subject: [PATCH 03/36] Revert "cuda compilation fixed" This reverts commit ffc7c5e0042c795848745d86c3ee1645b4087df9. --- src/dipoles/DIPOLE_overlaps.F | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/dipoles/DIPOLE_overlaps.F b/src/dipoles/DIPOLE_overlaps.F index b8b6d04ef9..253fd13986 100644 --- a/src/dipoles/DIPOLE_overlaps.F +++ b/src/dipoles/DIPOLE_overlaps.F @@ -34,7 +34,7 @@ subroutine DIPOLE_overlaps(Xk,Dip) use vec_operate, ONLY:k_periodic_idx use DIPOLES, ONLY:DIPOLE_t,DIP_S use electrons, ONLY:n_spinor,n_sp_pol - use wrapper_omp, ONLY:Vstar_dot_V_omp,Vstar_dot_V + use wrapper_omp, ONLY:Vstar_dot_V_omp use wave_func, ONLY:wf_ng_1st_BZ,wf_ng_overlaps,wf_ng use parallel_m, ONLY:PAR_IND_DIPk_bz,PAR_IND_DIPk_bz_ID,PAR_COM_DIPk_ibz_A2A, & & PAR_IND_CON_BANDS_OVLP,PAR_IND_VAL_BANDS_OVLP, & @@ -159,11 +159,7 @@ subroutine DIPOLE_overlaps(Xk,Dip) do ibp=1,Dip%ib(2) if(.not.PAR_IND_CON_BANDS_OVLP%element_1D(ibp)) cycle DIP_S(ib,ibp,id+(istep-1)*3,ikbz,i_sp_pol)= & -#if defined _CUDA - & Vstar_dot_V(wf_ng_overlaps*n_spinor,WF_ik(:,:,ib,i_sp_pol),WF_ikp(:,:,ibp,i_sp_pol)) -#else & Vstar_dot_V_omp(wf_ng_overlaps*n_spinor,WF_ik(:,:,ib,i_sp_pol),WF_ikp(:,:,ibp,i_sp_pol)) -#endif enddo ! ibp enddo ! ib ! From 0c0b01e5d88271124f33f88728bc3bd57b1c70bb Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Mon, 24 Apr 2023 15:29:49 +0200 Subject: [PATCH 04/36] Version 5.1.0, Revision 22124, Hash 407f3a474 MODIFIED * include/driver/version.h dipoles/DIPOLE_overlaps.F NEW * Bugs: - workaround for issue #729 to fix compilation Patch sent by: Davide Sangalli --- include/driver/version.h | 4 ++-- src/dipoles/DIPOLE_overlaps.F | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/include/driver/version.h b/include/driver/version.h index 951d208485..6a7fb9fa46 100644 --- a/include/driver/version.h +++ b/include/driver/version.h @@ -25,6 +25,6 @@ #define YAMBO_VERSION 5 #define YAMBO_SUBVERSION 1 #define YAMBO_PATCHLEVEL 0 -#define YAMBO_REVISION 22080 -#define YAMBO_HASH "195023b9a" +#define YAMBO_REVISION 22124 +#define YAMBO_HASH "407f3a474" diff --git a/src/dipoles/DIPOLE_overlaps.F b/src/dipoles/DIPOLE_overlaps.F index 253fd13986..a2e4e01a6d 100644 --- a/src/dipoles/DIPOLE_overlaps.F +++ b/src/dipoles/DIPOLE_overlaps.F @@ -25,6 +25,8 @@ ! !! @param[out] DIP_S Overlap matrices ! +#include +! subroutine DIPOLE_overlaps(Xk,Dip) ! use pars, ONLY:SP,cZERO,pi @@ -34,7 +36,7 @@ subroutine DIPOLE_overlaps(Xk,Dip) use vec_operate, ONLY:k_periodic_idx use DIPOLES, ONLY:DIPOLE_t,DIP_S use electrons, ONLY:n_spinor,n_sp_pol - use wrapper_omp, ONLY:Vstar_dot_V_omp + use wrapper, ONLY:Vstar_dot_V use wave_func, ONLY:wf_ng_1st_BZ,wf_ng_overlaps,wf_ng use parallel_m, ONLY:PAR_IND_DIPk_bz,PAR_IND_DIPk_bz_ID,PAR_COM_DIPk_ibz_A2A, & & PAR_IND_CON_BANDS_OVLP,PAR_IND_VAL_BANDS_OVLP, & @@ -42,8 +44,6 @@ subroutine DIPOLE_overlaps(Xk,Dip) use parallel_int, ONLY:PP_redux_wait,PARALLEL_WF_index,PARALLEL_WF_distribute use interfaces, ONLY:WF_shift_kpoint,WF_symm_kpoint,eval_G_minus_G,WF_load,WF_free use timing_m, ONLY:timing - ! -#include #include ! type(bz_samp), intent(in) :: Xk @@ -55,10 +55,12 @@ subroutine DIPOLE_overlaps(Xk,Dip) integer :: iG0,ng_tmp,wf_ng_save,wf_ng_1st_BZ_save integer :: id,idx_kp(3),idx_k(3),shift(3),g0_idx(3,2) real(SP) :: g0_length(3) - complex(SP), allocatable :: WF_symm(:,:,:,:),WF_shifted(:,:,:,:),WF_ik(:,:,:,:),WF_ikp(:,:,:,:) -#ifdef _CUDA - attributes(device):: WF_symm,WF_shifted,WF_ik,WF_ikp -#endif + ! + complex(SP), allocatable DEV_ATTR :: WF_symm(:,:,:,:) + complex(SP), allocatable DEV_ATTR :: WF_shifted(:,:,:,:) + complex(SP), allocatable DEV_ATTR :: WF_ik(:,:,:,:) + complex(SP), allocatable DEV_ATTR :: WF_ikp(:,:,:,:) + ! logical :: USE_shifted_wf ! call timing("DIPOLE_overlaps",OPR="start") @@ -159,7 +161,7 @@ subroutine DIPOLE_overlaps(Xk,Dip) do ibp=1,Dip%ib(2) if(.not.PAR_IND_CON_BANDS_OVLP%element_1D(ibp)) cycle DIP_S(ib,ibp,id+(istep-1)*3,ikbz,i_sp_pol)= & - & Vstar_dot_V_omp(wf_ng_overlaps*n_spinor,WF_ik(:,:,ib,i_sp_pol),WF_ikp(:,:,ibp,i_sp_pol)) + & Vstar_dot_V(wf_ng_overlaps*n_spinor,WF_ik(:,:,ib,i_sp_pol),WF_ikp(:,:,ibp,i_sp_pol)) enddo ! ibp enddo ! ib ! From 71a1f067605e6fcd5833b364f6785b50048a6ba8 Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Mon, 24 Apr 2023 15:30:56 +0200 Subject: [PATCH 05/36] tentative implementation of interface to magma_Xgeev_m (X=z,c) --- config/mk/global/defs.mk.in | 1 + sbin/compilation/libraries.sh | 2 +- src/modules/.objects | 12 +- src/modules/mod_linear_algebra.F | 52 +++- src/modules/mod_magma2.F | 279 ++++++++++++++++++++++ src/modules/mod_magma2_cfortran.F | 230 ++++++++++++++++++ src/modules/mod_magma2_common.F | 378 ++++++++++++++++++++++++++++++ src/modules/mod_magma2_dfortran.F | 230 ++++++++++++++++++ src/modules/mod_magma2_sfortran.F | 230 ++++++++++++++++++ src/modules/mod_magma2_zfortran.F | 230 ++++++++++++++++++ 10 files changed, 1633 insertions(+), 11 deletions(-) create mode 100644 src/modules/mod_magma2.F create mode 100644 src/modules/mod_magma2_cfortran.F create mode 100644 src/modules/mod_magma2_common.F create mode 100644 src/modules/mod_magma2_dfortran.F create mode 100644 src/modules/mod_magma2_sfortran.F create mode 100644 src/modules/mod_magma2_zfortran.F diff --git a/config/mk/global/defs.mk.in b/config/mk/global/defs.mk.in index 15e0967012..fdd6a54f37 100644 --- a/config/mk/global/defs.mk.in +++ b/config/mk/global/defs.mk.in @@ -50,6 +50,7 @@ do_e2y = @compile_e2y@ do_libxc = @compile_libxc@ do_petsc = @compile_petsc@ do_slepc = @compile_slepc@ +do_magma = @compile_magma@ shell = @SHELL@ package_bugreport = @PACKAGE_BUGREPORT@ prefix = @prefix@ diff --git a/sbin/compilation/libraries.sh b/sbin/compilation/libraries.sh index 5371724801..6e74955d04 100755 --- a/sbin/compilation/libraries.sh +++ b/sbin/compilation/libraries.sh @@ -34,7 +34,7 @@ done # # llocal="-lqe_pseudo -lmath77 -lslatec -llocal" -lPLA="\$(lscalapack) \$(lblacs) \$(llapack) \$(lblas)" +lPLA="\$(lscalapack) \$(lblacs) \$(lmagma) \$(llapack) \$(lblas)" lSL="\$(lslepc) \$(lpetsc)" lIO="\$(liotk) \$(lpnetcdf) \$(lnetcdff) \$(lnetcdf) \$(lhdf5)" lextlibs="\$(llibxc) \$(lfft) \$(lfutile) \$(lyaml)" diff --git a/src/modules/.objects b/src/modules/.objects index a8fc2f172d..2e8aaf57ad 100644 --- a/src/modules/.objects +++ b/src/modules/.objects @@ -16,15 +16,18 @@ RT_objects_pre = mod_RT_lifetimes.o mod_RT_occupations.o mod_real_time.o #if defined _NL NL_objects = mod_fields.o mod_electric.o mod_nl_optics.o mod_NL_interfaces.o #endif +#if defined _MAGMA +MAGMA_objects = mod_magma2_common.o mod_magma2_sfortran.o mod_magma2_dfortran.o \ + mod_magma2_cfortran.o mod_magma2_zfortran.o mod_magma2.o #if defined _io_lib objs = mod_pars.o mod_stderr.o mod_parallel.o mod_parallel_interface.o \ mod_com_interfcs.o mod_descriptors.o mod_com.o mod_IO.o mod_IO_interfaces.o #else ELPH_objects = mod_ELPH.o mod_PHEL.o DEV_objects = mod_cusolverdn_y.o mod_cuda.o -objs = mod_pars.o mod_units.o mod_lexical_sort.o mod_stderr.o mod_memory.o mod_openmp.o mod_parallel.o mod_parallel_interface.o mod_matrix.o mod_SLK.o \ - mod_linear_algebra.o mod_wrapper.o mod_wrapper_omp.o mod_drivers.o mod_FFT.o\ - mod_LIVE_t.o mod_logo.o mod_cutoff_ws.o \ +objs = mod_pars.o mod_units.o mod_lexical_sort.o mod_stderr.o mod_memory.o mod_openmp.o mod_parallel.o mod_parallel_interface.o \ + mod_matrix.o mod_SLK.o $(MAGMA_objects) mod_linear_algebra.o mod_wrapper.o mod_wrapper_omp.o \ + mod_drivers.o mod_FFT.o mod_LIVE_t.o mod_logo.o mod_cutoff_ws.o \ mod_descriptors.o mod_com.o mod_com_interfcs.o mod_timing.o mod_R_lattice.o mod_electrons.o mod_wave_func.o mod_OUTPUT.o \ mod_xc_functionals.o mod_global_XC.o \ mod_matrix_operate.o mod_D_lattice.o mod_frequency.o \ @@ -33,6 +36,7 @@ objs = mod_pars.o mod_units.o mod_lexical_sort.o mod_stderr.o mod_memory.o mod_o mod_QP.o mod_MPA.o mod_collision_el.o \ mod_BS.o mod_BS_solvers.o mod_QP_CTL.o mod_TDDFT.o mod_ACFDT.o mod_MAGNONS.o mod_DICHROISM.o mod_PHOTOLUM.o \ mod_IO.o mod_IO_interfaces.o $(ELPH_objects) mod_POL_FIT.o $(RT_objects_pre) \ - mod_hamiltonian.o $(COMMON_objects) $(SC_objects) $(RT_objects_post) $(RT_objects_iterative) $(MAGNETIC_objects) $(NL_objects) $(ELECTRIC_objects) \ + mod_hamiltonian.o $(COMMON_objects) $(SC_objects) $(RT_objects_post) $(RT_objects_iterative) $(MAGNETIC_objects) \ + $(NL_objects) $(ELECTRIC_objects) \ mod_debug.o mod_interfaces.o mod_interpolate_tools.o mod_interpolate.o SET_logicals.o SET_defaults.o $(DEV_objects) #endif diff --git a/src/modules/mod_linear_algebra.F b/src/modules/mod_linear_algebra.F index a078d7f3ef..2ab1a523e8 100644 --- a/src/modules/mod_linear_algebra.F +++ b/src/modules/mod_linear_algebra.F @@ -23,7 +23,12 @@ ! module linear_algebra ! - use pars, ONLY:SP,schlen + use iso_c_binding + use pars, ONLY: SP,schlen +#ifdef _MAGMA + use magma2, ONLY: magma_init,magma_queue_create, & +& magma_cgeev_m,magma_zgeev_m,MagmaVec +#endif ! #include #include @@ -39,6 +44,11 @@ module linear_algebra integer, parameter :: MAT_MUL=9 integer, parameter :: min_cpu_block_size=50 ! + ! magma vars + ! + type(c_ptr) :: magma_queue !! magma_queue_t + logical :: magma_init_done = .false. + ! ! Common Work Space ! type LALGEBRA_WS @@ -125,6 +135,15 @@ subroutine LINEAR_ALGEBRA_error(calling_subr,message_) call error( trim( STRING_pack('LINEAR ALGEBRA driver [',trim(calling_subr),']',trim(message_)) )) end subroutine ! + subroutine magma_setup() +#ifdef _MAGMA + call magma_init() + call magma_queue_create( 0, magma_queue ) + magma_init_done=.true. +#endif + return + end subroutine + ! !============================ ! SINGLE VALUE DECOMPOSITION !============================ @@ -192,9 +211,9 @@ subroutine heev(msize,M,E_real,work,lwork,rwk,ifail) complex(SP),intent(inout) :: M(msize,*) ! #if defined _DOUBLE - call ZHEEV('V','U',msize,M,msize,E_real,work,lwork,rwk,ifail) + call ZHEEV('V','U',msize,M,msize,E_real,work,lwork,rwk,ifail) #else - call CHEEV('V','U',msize,M,msize,E_real,work,lwork,rwk,ifail) + call CHEEV('V','U',msize,M,msize,E_real,work,lwork,rwk,ifail) #endif ! end subroutine heev @@ -207,10 +226,31 @@ subroutine geev(msize,M,E_cmpl,V_left,V_right,work,lwork,rwk,ifail) complex(SP),intent(out) :: E_cmpl(*),V_left(msize,*),V_right(msize,*),work(*) complex(SP),intent(inout) :: M(msize,*) ! -#if defined _DOUBLE - call ZGEEV('V','V',msize,M,msize,E_cmpl,V_left,msize,V_right,msize,work,lwork,rwk,ifail) + ! +#if defined _MAGMA + ! + ! use magma (if available) + ! + if (.not.magma_init_done) call magma_setup() + ! +# if defined _DOUBLE + call magma_zgeev_m(MagmaVec,MagmaVec, msize,M,msize,E_cmpl,V_left,msize,V_right,msize,& +& work,lwork,rwk,ifail) +# else + call magma_cgeev_m(MagmaVec,MagmaVec, msize,M,msize,E_cmpl,V_left,msize,V_right,msize,& +& work,lwork,rwk,ifail) +# endif + ! #else - call CGEEV('V','V',msize,M,msize,E_cmpl,V_left,msize,V_right,msize,work,lwork,rwk,ifail) + ! + ! use lapack + ! +# if defined _DOUBLE + call ZGEEV('V','V',msize,M,msize,E_cmpl,V_left,msize,V_right,msize,work,lwork,rwk,ifail) +# else + call CGEEV('V','V',msize,M,msize,E_cmpl,V_left,msize,V_right,msize,work,lwork,rwk,ifail) +# endif + ! #endif ! end subroutine geev diff --git a/src/modules/mod_magma2.F b/src/modules/mod_magma2.F new file mode 100644 index 0000000000..bcf771ab29 --- /dev/null +++ b/src/modules/mod_magma2.F @@ -0,0 +1,279 @@ +! +! -- MAGMA (version 2.7.1) -- +! Univ. of Tennessee, Knoxville +! Univ. of California, Berkeley +! Univ. of Colorado, Denver +! @date February 2023 +! + +module magma2 + +use iso_c_binding + +use magma2_common +use magma2_sfortran +use magma2_dfortran +use magma2_cfortran +use magma2_zfortran + +implicit none + +!! ============================================================================= +!! Parameter constants from magma_types.h +integer(c_int), parameter :: & + MagmaFalse = 0, & + MagmaTrue = 1, & + + MagmaRowMajor = 101, & + MagmaColMajor = 102, & + + MagmaNoTrans = 111, & + MagmaTrans = 112, & + MagmaConjTrans = 113, & + + MagmaUpper = 121, & + MagmaLower = 122, & + MagmaGeneral = 123, & + MagmaFull = 123, & !! deprecated, use MagmaGeneral + + MagmaNonUnit = 131, & + MagmaUnit = 132, & + + MagmaLeft = 141, & + MagmaRight = 142, & + MagmaBothSides = 143, & + + MagmaNoVec = 301, & !/* geev, syev, gesvd */ + MagmaVec = 302, & !/* geev, syev */ + MagmaIVec = 303, & !/* stedc */ + MagmaAllVec = 304, & !/* gesvd, trevc */ + MagmaSomeVec = 305, & !/* gesvd, trevc */ + MagmaOverwriteVec = 306, & !/* gesvd */ + MagmaBacktransVec = 307 !/* trevc */ +!! todo all the rest + + +!! ============================================================================= +!! Fortran interfaces to C functions +interface + + !! ------------------------------------------------------------------------- + !! initialize + subroutine magma_init() & + bind(C, name="magma_init") + use iso_c_binding + end subroutine + + subroutine magma_finalize() & + bind(C, name="magma_finalize") + use iso_c_binding + end subroutine + + !! ------------------------------------------------------------------------- + !! version + subroutine magma_version( major, minor, micro ) & + bind(C, name="magma_version") + use iso_c_binding + integer(c_int), target :: major, minor, micro + end subroutine + + subroutine magma_print_environment() & + bind(C, name="magma_print_environment") + use iso_c_binding + end subroutine + + !! ------------------------------------------------------------------------- + !! timing + real(c_double) function magma_wtime() & + bind(C, name="magma_wtime") + use iso_c_binding + end function + + real(c_double) function magma_sync_wtime( queue ) & + bind(C, name="magma_wtime") + use iso_c_binding + type(c_ptr), value :: queue + end function + + !! ------------------------------------------------------------------------- + !! device support + integer(c_int) function magma_num_gpus() & + bind(C, name="magma_num_gpus") + use iso_c_binding + end function + + integer(c_int) function magma_get_device_arch() & + bind(C, name="magma_getdevice_arch") + use iso_c_binding + end function + + subroutine magma_get_device( dev ) & + bind(C, name="magma_getdevice") + use iso_c_binding + integer(c_int), target :: dev + end subroutine + + subroutine magma_set_device( dev ) & + bind(C, name="magma_setdevice") + use iso_c_binding + integer(c_int), value :: dev + end subroutine + + integer(c_size_t) function magma_mem_size( queue ) & + bind(C, name="magma_mem_size") + use iso_c_binding + type(c_ptr), value :: queue + end function + + !! ------------------------------------------------------------------------- + !! queue support + subroutine magma_queue_create_internal( dev, queue_ptr, func, file, line ) & + bind(C, name="magma_queue_create_internal") + use iso_c_binding + integer(c_int), value :: dev + type(c_ptr), target :: queue_ptr !! queue_t* + character(c_char) :: func, file + integer(c_int), value :: line + end subroutine + + subroutine magma_queue_destroy_internal( queue, func, file, line ) & + bind(C, name="magma_queue_destroy_internal") + use iso_c_binding + type(c_ptr), value :: queue !! queue_t + character(c_char) :: func, file + integer(c_int), value :: line + end subroutine + + subroutine magma_queue_sync_internal( queue, func, file, line ) & + bind(C, name="magma_queue_sync_internal") + use iso_c_binding + type(c_ptr), value :: queue !! queue_t + character(c_char) :: func, file + integer(c_int), value :: line + end subroutine + + integer(c_int) function magma_queue_get_device( queue ) & + bind(C, name="magma_queue_get_device") + use iso_c_binding + type(c_ptr), value :: queue !! queue_t + end function + + !! ------------------------------------------------------------------------- + !! offsets pointers -- 1D vectors with inc + !! see offset.c + type(c_ptr) function magma_soffset_1d( ptr, inc, i ) & + bind(C, name="magma_soffset_1d") + use iso_c_binding + type(c_ptr), value :: ptr + integer(c_int), value :: inc, i + end function + + type(c_ptr) function magma_doffset_1d( ptr, inc, i ) & + bind(C, name="magma_doffset_1d") + use iso_c_binding + type(c_ptr), value :: ptr + integer(c_int), value :: inc, i + end function + + type(c_ptr) function magma_coffset_1d( ptr, inc, i ) & + bind(C, name="magma_coffset_1d") + use iso_c_binding + type(c_ptr), value :: ptr + integer(c_int), value :: inc, i + end function + + type(c_ptr) function magma_zoffset_1d( ptr, inc, i ) & + bind(C, name="magma_zoffset_1d") + use iso_c_binding + type(c_ptr), value :: ptr + integer(c_int), value :: inc, i + end function + + type(c_ptr) function magma_ioffset_1d( ptr, inc, i ) & + bind(C, name="magma_ioffset_1d") + use iso_c_binding + type(c_ptr), value :: ptr + integer(c_int), value :: inc, i + end function + + !! ------------------------------------------------------------------------- + !! offsets pointers -- 2D matrices with lda + !! see offset.c + type(c_ptr) function magma_soffset_2d( ptr, lda, i, j ) & + bind(C, name="magma_soffset_2d") + use iso_c_binding + type(c_ptr), value:: ptr + integer(c_int), value :: lda, i, j + end function + + type(c_ptr) function magma_doffset_2d( ptr, lda, i, j ) & + bind(C, name="magma_doffset_2d") + use iso_c_binding + type(c_ptr), value:: ptr + integer(c_int), value :: lda, i, j + end function + + type(c_ptr) function magma_coffset_2d( ptr, lda, i, j ) & + bind(C, name="magma_coffset_2d") + use iso_c_binding + type(c_ptr), value:: ptr + integer(c_int), value :: lda, i, j + end function + + type(c_ptr) function magma_zoffset_2d( ptr, lda, i, j ) & + bind(C, name="magma_zoffset_2d") + use iso_c_binding + type(c_ptr), value:: ptr + integer(c_int), value :: lda, i, j + end function + + type(c_ptr) function magma_ioffset_2d( ptr, lda, i, j ) & + bind(C, name="magma_ioffset_2d") + use iso_c_binding + type(c_ptr), value:: ptr + integer(c_int), value :: lda, i, j + end function + +end interface + +!! ============================================================================= +!! Fortran routines & functions +contains + + !! ------------------------------------------------------------------------- + !! queue support + subroutine magma_queue_create( dev, queue_ptr ) + use iso_c_binding + integer(c_int), value :: dev + type(c_ptr), target :: queue_ptr !! queue_t* + + call magma_queue_create_internal( & + dev, queue_ptr, & + "magma_queue_create" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_queue_destroy( queue ) + use iso_c_binding + type(c_ptr), value :: queue !! queue_t + + call magma_queue_destroy_internal( & + queue, & + "magma_queue_destroy" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_queue_sync( queue ) + use iso_c_binding + type(c_ptr), value :: queue !! queue_t + + call magma_queue_sync_internal( & + queue, & + "magma_queue_sync" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + +end module diff --git a/src/modules/mod_magma2_cfortran.F b/src/modules/mod_magma2_cfortran.F new file mode 100644 index 0000000000..4d61c9bc83 --- /dev/null +++ b/src/modules/mod_magma2_cfortran.F @@ -0,0 +1,230 @@ +!! @generated from magma2_zfortran.F90, fortran z -> c, Sat Apr 22 18:54:26 2023 + +module magma2_cfortran + +use magma2_common +implicit none + +!! ============================================================================= +!! Fortran interfaces to C functions +interface + + !! ------------------------------------------------------------------------- + !! CPU interfaces (matrix in CPU memory) + subroutine magma_cgetrf( m, n, A, lda, ipiv, info ) & + bind(C, name="magma_cgetrf") + use iso_c_binding + integer(c_int), value :: m, n, lda + complex(c_float_complex), target :: A(lda,*) + integer(c_int), target :: ipiv(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_cpotrf( uplo, n, A, lda, info ) & + bind(C, name="magma_cpotrf") + use iso_c_binding + integer(c_int), value :: uplo + integer(c_int), value :: n, lda + complex(c_float_complex), target :: A(lda,*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_cgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + work, lwork, rwork, info) & + bind(C, name="magma_cgeev") + use iso_c_binding + integer(c_int), value :: jobvl, jobvr + integer(c_int), value :: n, lda, ldvl, ldvr, lwork + complex(c_float_complex), target :: A(lda,*) + complex(c_float_complex), target :: w(*) + complex(c_float_complex), target :: VR(ldvr,*), VL(ldvl,*) + complex(c_float_complex), target :: work(*) + real(c_float), target :: rwork(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_cgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + work, lwork, rwork, info) & + bind(C, name="magma_cgeev_m") + use iso_c_binding + integer(c_int), value :: jobvl, jobvr + integer(c_int), value :: n, lda, ldvl, ldvr, lwork + complex(c_float_complex), target :: A(lda,*) + complex(c_float_complex), target :: w(*) + complex(c_float_complex), target :: VR(ldvr,*), VL(ldvl,*) + complex(c_float_complex), target :: work(*) + real(c_float), target :: rwork(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_cheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & + rwork, lrwork, iwork, liwork, info) & + bind(C, name="magma_cheevd_m") + use iso_c_binding + integer(c_int), value :: ngpu + integer(c_int), value :: jobz, uplo + integer(c_int), value :: n, lda, lwork, lrwork, liwork + complex(c_float_complex), target :: A(lda,*) + real(c_double), target :: w(*) + complex(c_float_complex), target :: work(*) + real(c_double), target :: rwork(*) + integer(c_int), target :: iwork(*) + integer(c_int), target :: info !! int* + end subroutine + + !! ------------------------------------------------------------------------- + !! ------------------------------------------------------------------------- + !! GPU interfaces (matrix in GPU memory) + subroutine magma_cgetrf_gpu( m, n, dA, lda, ipiv, info ) & + bind(C, name="magma_cgetrf_gpu") + use iso_c_binding + integer(c_int), value :: m, n, lda + type(c_ptr), value :: dA + integer(c_int), target :: ipiv(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_cpotrf_gpu( uplo, n, dA, lda, info ) & + bind(C, name="magma_cpotrf_gpu") + use iso_c_binding + integer(c_int), value :: uplo, n, lda + type(c_ptr), value :: dA + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_cheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & + rwork, lrwork, iwork, liwork, info) & + bind(C, name="magma_cheevd_gpu") + use iso_c_binding + integer(c_int), value :: jobz, uplo + integer(c_int), value :: n, ldda, ldwa, lwork, lrwork, liwork + type(c_ptr), value :: dA !! double complex** + real(c_double), target :: w(*) + complex(c_float_complex), target :: wA(*) + complex(c_float_complex), target :: work(*) + real(c_double), target :: rwork(*) + integer(c_int), target :: iwork(*) + integer(c_int), target :: info !! int* + end subroutine + + !! ------------------------------------------------------------------------- + !! batched GPU interfaces (all arrays in GPU memory) + subroutine magma_cgetrf_batched( & + m, n, dA_array, lda, ipiv_array, info_array, batchcount, queue ) & + bind(C, name="magma_cgetrf_batched") + use iso_c_binding + integer(c_int), value :: m, n, lda, batchcount + type(c_ptr), value :: dA_array !! double_complex** + type(c_ptr), value :: ipiv_array !! int** + type(c_ptr), value :: info_array !! int* + type(c_ptr), value :: queue + end subroutine + + !! ------------------------------------------------------------------------- + !! BLAS (matrices in GPU memory) + subroutine magma_caxpy( & + n, & + alpha, dx, incx, & + dy, incy, & + queue ) & + bind(C, name="magma_caxpy") + use iso_c_binding + integer(c_int), value :: n, incx, incy + complex(c_float_complex), value :: alpha + type(c_ptr), value :: dx, dy + type(c_ptr), value :: queue !! queue_t + end subroutine + + subroutine magma_cgemv( & + transA, m, n, & + alpha, dA, lda, & + dx, incx, & + beta, dy, incy, & + queue ) & + bind(C, name="magma_cgemv") + use iso_c_binding + integer(c_int), value :: transA, m, n, lda, incx, incy + complex(c_float_complex), value :: alpha, beta + type(c_ptr), value :: dA, dx, dy + type(c_ptr), value :: queue !! queue_t + end subroutine + + subroutine magma_cgemm( & + transA, transB, m, n, k, & + alpha, dA, lda, & + dB, ldb, & + beta, dC, ldc, & + queue ) & + bind(C, name="magma_cgemm") + use iso_c_binding + integer(c_int), value :: transA, transB, m, n, k, lda, ldb, ldc + complex(c_float_complex), value :: alpha, beta + type(c_ptr), value :: dA, dB, dC + type(c_ptr), value :: queue !! queue_t + end subroutine + +end interface + +!! ============================================================================= +!! Fortran routines & functions +contains + + !! ------------------------------------------------------------------------- + !! malloc wrappers + integer(c_int) function magma_cmalloc( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_cmalloc = magma_malloc( ptr, n*sizeof_complex ) + end function + + integer(c_int) function magma_cmalloc_cpu( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_cmalloc_cpu = magma_malloc_cpu( ptr, n*sizeof_complex ) + end function + + integer(c_int) function magma_cmalloc_pinned( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_cmalloc_pinned = magma_malloc_pinned( ptr, n*sizeof_complex ) + end function + + !! ------------------------------------------------------------------------- + !! set/get wrappers + subroutine magma_csetmatrix( & + m, n, hA_src, lda, dB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, lda, ldb + complex(c_float_complex), target :: hA_src(lda,*) + type(c_ptr), value :: dB_dst + type(c_ptr), value :: queue + + call magma_setmatrix_internal( & + m, n, int(sizeof_complex), c_loc(hA_src), lda, dB_dst, ldb, queue, & + "magma_csetmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_cgetmatrix( & + m, n, dA_src, lda, hB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, lda, ldb + type(c_ptr), value :: dA_src + complex(c_float_complex), target :: hB_dst(ldb,*) + type(c_ptr), value :: queue + + call magma_getmatrix_internal( & + m, n, int(sizeof_complex), dA_src, lda, c_loc(hB_dst), ldb, queue, & + "magma_cgetmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + +end module diff --git a/src/modules/mod_magma2_common.F b/src/modules/mod_magma2_common.F new file mode 100644 index 0000000000..ac18317b87 --- /dev/null +++ b/src/modules/mod_magma2_common.F @@ -0,0 +1,378 @@ +module magma2_common + +use iso_c_binding +implicit none + +!! ===================================================================== +!! Parameter constants +real(c_float), parameter :: sdummy = 0 +real(c_double), parameter :: ddummy = 0 +complex(c_float_complex), parameter :: cdummy = 0 +complex(c_double_complex), parameter :: zdummy = 0 +integer(c_int), parameter :: idummy = 0 +type(c_ptr), parameter :: ptr_dummy = c_null_ptr + +!! Intel ifort chokes on c_sizeof here, so use extension sizeof +!! see https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/495001 +integer(c_size_t), parameter :: & + sizeof_real = sizeof(sdummy), & + sizeof_double = sizeof(ddummy), & + sizeof_complex = sizeof(cdummy), & + sizeof_complex16 = sizeof(zdummy), & + sizeof_int = sizeof(idummy), & + sizeof_ptr = sizeof(ptr_dummy) + + +!! ============================================================================= +!! Fortran interfaces to C functions +interface + + !! ------------------------------------------------------------------------- + !! magma_malloc (GPU memory) + integer(c_int) function magma_malloc( ptr, bytes ) & + bind(C, name="magma_malloc") + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: bytes + end function + + !! todo imalloc + + integer(c_int) function magma_free_internal( ptr, func, file, line ) & + bind(C, name="magma_free_internal") + use iso_c_binding + type(c_ptr), value :: ptr !! void* + character(c_char) :: func, file + integer(c_int), value :: line + end function + + !! ------------------------------------------------------------------------- + !! magma_malloc_cpu (CPU main memory) + !! these are aligned to 32-byte boundary + integer(c_int) function magma_malloc_cpu( ptr, bytes ) & + bind(C, name="magma_malloc_cpu") + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: bytes + end function + + !! todo imalloc_cpu + + integer(c_int) function magma_free_cpu( ptr ) & + bind(C, name="magma_free_cpu") + use iso_c_binding + type(c_ptr), value :: ptr !! void* + end function + + !! ------------------------------------------------------------------------- + !! magma_malloc_pinned (pinned CPU main memory) + integer(c_int) function magma_malloc_pinned( ptr, bytes ) & + bind(C, name="magma_malloc_pinned") + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: bytes + end function + + !! todo imalloc_pinned + + integer(c_int) function magma_free_pinned_internal( ptr, func, file, line ) & + bind(C, name="magma_free_pinned_internal") + use iso_c_binding + type(c_ptr), value :: ptr !! void* + character(c_char), value :: func, file + integer(c_int), value :: line + end function + + !! ------------------------------------------------------------------------- + !! set/get + subroutine magma_setmatrix_internal( & + m, n, elemsize, hA_src, lda, dB_dst, ldb, queue, func, file, line ) & + bind(C, name="magma_setmatrix_internal") + use iso_c_binding + integer(c_int), value :: m, n, elemsize, lda, ldb + type(c_ptr), value :: hA_src + type(c_ptr), value :: dB_dst + type(c_ptr), value :: queue + character(c_char), value :: func, file + integer(c_int), value :: line + end subroutine + + subroutine magma_getmatrix_internal( & + m, n, elemsize, dA_src, lda, hB_dst, ldb, queue, func, file, line ) & + bind(C, name="magma_getmatrix_internal") + use iso_c_binding + integer(c_int), value :: m, n, elemsize, lda, ldb + type(c_ptr), value :: dA_src + type(c_ptr), value :: hB_dst + type(c_ptr), value :: queue + character(c_char), value :: func, file + integer(c_int), value :: line + end subroutine + + subroutine magma_setvector_internal( & + n, elemsize, hx_src, incx, dy_dst, incy, queue, func, file, line ) & + bind(C, name="magma_setvector_internal") + use iso_c_binding + integer(c_int), value :: n, elemsize, incx, incy + type(c_ptr), value :: hx_src + type(c_ptr), value :: dy_dst + type(c_ptr), value :: queue + character(c_char), value :: func, file + integer(c_int), value :: line + end subroutine + + subroutine magma_getvector_internal( & + n, elemsize, dx_src, incx, hy_dst, incy, queue, func, file, line ) & + bind(C, name="magma_getvector_internal") + use iso_c_binding + integer(c_int), value :: n, elemsize, incx, incy + type(c_ptr), value :: dx_src + type(c_ptr), value :: hy_dst + type(c_ptr), value :: queue + character(c_char), value :: func, file + integer(c_int), value :: line + end subroutine + +end interface + +!! ============================================================================= +!! Fortran routines & functions +contains + + !! ------------------------------------------------------------------------- + !! malloc wrappers + integer(c_int) function magma_imalloc( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_imalloc = magma_malloc( ptr, n*sizeof_int ) + end function + + integer(c_int) function magma_imalloc_cpu( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_imalloc_cpu = magma_malloc_cpu( ptr, n*sizeof_int ) + end function + + integer(c_int) function magma_imalloc_pinned( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_imalloc_pinned = magma_malloc_pinned( ptr, n*sizeof_int ) + end function + + !! ------------------------------------------------------------------------- + !! magma_free wrappers + integer(c_int) function magma_free( ptr ) + type(c_ptr) :: ptr + + magma_free = magma_free_internal( & + ptr, & + "magma_free" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end function + + integer(c_int) function magma_free_pinned( ptr ) + type(c_ptr) :: ptr + + magma_free_pinned = magma_free_internal( & + ptr, & + "magma_free_pinned" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end function + + !! ------------------------------------------------------------------------- + !! set/get wrappers + subroutine magma_setmatrix( & + m, n, elemsize, hA_src, lda, dB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, elemsize, lda, ldb + type(c_ptr), value :: hA_src + type(c_ptr), value :: dB_dst + type(c_ptr), value :: queue + + call magma_setmatrix_internal( & + m, n, elemsize, hA_src, lda, dB_dst, ldb, queue, & + "magma_setmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_getmatrix( & + m, n, elemsize, dA_src, lda, hB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, elemsize, lda, ldb + type(c_ptr), value :: dA_src + type(c_ptr), value :: hB_dst + type(c_ptr), value :: queue + + call magma_getmatrix_internal( & + m, n, elemsize, dA_src, lda, hB_dst, ldb, queue, & + "magma_getmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_setvector( & + n, elemsize, hx_src, incx, dy_dst, incy, queue ) + use iso_c_binding + integer(c_int), value :: n, elemsize, incx, incy + type(c_ptr), value :: hx_src + type(c_ptr), value :: dy_dst + type(c_ptr), value :: queue + + call magma_setvector_internal( & + n, elemsize, hx_src, incx, dy_dst, incy, queue, & + "magma_setvector" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_getvector( & + n, elemsize, dx_src, incx, hy_dst, incy, queue ) + use iso_c_binding + integer(c_int), value :: n, elemsize, incx, incy + type(c_ptr), value :: dx_src + type(c_ptr), value :: hy_dst + type(c_ptr), value :: queue + + call magma_getvector_internal( & + n, elemsize, dx_src, incx, hy_dst, incy, queue, & + "magma_getvector" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + !! ------------------------------------------------------------------------- + !! set/get wrappers + !! matrices & vectors of integers + subroutine magma_isetmatrix( & + m, n, hA_src, lda, dB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, lda, ldb + integer(c_int), target :: hA_src(lda,*) + type(c_ptr), value :: dB_dst + type(c_ptr), value :: queue + + call magma_setmatrix_internal( & + m, n, int(sizeof_int), c_loc(hA_src), lda, dB_dst, ldb, queue, & + "magma_isetmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_igetmatrix( & + m, n, dA_src, lda, hB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, lda, ldb + type(c_ptr), value :: dA_src + integer(c_int), target :: hB_dst(ldb,*) + type(c_ptr), value :: queue + + call magma_getmatrix_internal( & + m, n, int(sizeof_int), dA_src, lda, c_loc(hB_dst), ldb, queue, & + "magma_igetmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_isetvector( & + n, hx_src, incx, dy_dst, incy, queue ) + use iso_c_binding + integer(c_int), value :: n, incx, incy + integer(c_int), target :: hx_src(*) + type(c_ptr), value :: dy_dst + type(c_ptr), value :: queue + + call magma_setvector_internal( & + n, int(sizeof_int), c_loc(hx_src), incx, dy_dst, incy, queue, & + "magma_isetvector" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_igetvector( & + n, dx_src, incx, hy_dst, incy, queue ) + use iso_c_binding + integer(c_int), value :: n, incx, incy + type(c_ptr), value :: dx_src + integer(c_int), target :: hy_dst(*) + type(c_ptr), value :: queue + + call magma_getvector_internal( & + n, int(sizeof_int), dx_src, incx, c_loc(hy_dst), incy, queue, & + "magma_igetvector" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + !! ------------------------------------------------------------------------- + !! set/get wrappers + !! matrices & vectors of c_ptr pointers + subroutine magma_psetmatrix( & + m, n, hA_src, lda, dB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, lda, ldb + type(c_ptr), target :: hA_src(lda,*) + type(c_ptr), value :: dB_dst + type(c_ptr), value :: queue + + call magma_setmatrix_internal( & + m, n, int(sizeof_ptr), c_loc(hA_src), lda, dB_dst, ldb, queue, & + "magma_psetmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_pgetmatrix( & + m, n, dA_src, lda, hB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, lda, ldb + type(c_ptr), value :: dA_src + type(c_ptr), target :: hB_dst(ldb,*) + type(c_ptr), value :: queue + + call magma_getmatrix_internal( & + m, n, int(sizeof_ptr), dA_src, lda, c_loc(hB_dst), ldb, queue, & + "magma_pgetmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_psetvector( & + n, hx_src, incx, dy_dst, incy, queue ) + use iso_c_binding + integer(c_int), value :: n, incx, incy + type(c_ptr), target :: hx_src(*) + type(c_ptr), value :: dy_dst + type(c_ptr), value :: queue + + call magma_setvector_internal( & + n, int(sizeof_ptr), c_loc(hx_src), incx, dy_dst, incy, queue, & + "magma_psetvector" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_pgetvector( & + n, dx_src, incx, hy_dst, incy, queue ) + use iso_c_binding + integer(c_int), value :: n, incx, incy + type(c_ptr), value :: dx_src + type(c_ptr), target :: hy_dst(*) + type(c_ptr), value :: queue + + call magma_getvector_internal( & + n, int(sizeof_ptr), dx_src, incx, c_loc(hy_dst), incy, queue, & + "magma_pgetvector" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + +end module diff --git a/src/modules/mod_magma2_dfortran.F b/src/modules/mod_magma2_dfortran.F new file mode 100644 index 0000000000..e85b83b368 --- /dev/null +++ b/src/modules/mod_magma2_dfortran.F @@ -0,0 +1,230 @@ +!! @generated from magma2_zfortran.F90, fortran z -> d, Sat Apr 22 18:54:26 2023 + +module magma2_dfortran + +use magma2_common +implicit none + +!! ============================================================================= +!! Fortran interfaces to C functions +interface + + !! ------------------------------------------------------------------------- + !! CPU interfaces (matrix in CPU memory) + subroutine magma_dgetrf( m, n, A, lda, ipiv, info ) & + bind(C, name="magma_dgetrf") + use iso_c_binding + integer(c_int), value :: m, n, lda + real(c_double), target :: A(lda,*) + integer(c_int), target :: ipiv(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_dpotrf( uplo, n, A, lda, info ) & + bind(C, name="magma_dpotrf") + use iso_c_binding + integer(c_int), value :: uplo + integer(c_int), value :: n, lda + real(c_double), target :: A(lda,*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_dgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + work, lwork, rwork, info) & + bind(C, name="magma_dgeev") + use iso_c_binding + integer(c_int), value :: jobvl, jobvr + integer(c_int), value :: n, lda, ldvl, ldvr, lwork + real(c_double), target :: A(lda,*) + real(c_double), target :: w(*) + real(c_double), target :: VR(ldvr,*), VL(ldvl,*) + real(c_double), target :: work(*) + real(c_double), target :: rwork(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_dgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + work, lwork, rwork, info) & + bind(C, name="magma_dgeev_m") + use iso_c_binding + integer(c_int), value :: jobvl, jobvr + integer(c_int), value :: n, lda, ldvl, ldvr, lwork + real(c_double), target :: A(lda,*) + real(c_double), target :: w(*) + real(c_double), target :: VR(ldvr,*), VL(ldvl,*) + real(c_double), target :: work(*) + real(c_double), target :: rwork(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_dsyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & + rwork, lrwork, iwork, liwork, info) & + bind(C, name="magma_dsyevd_m") + use iso_c_binding + integer(c_int), value :: ngpu + integer(c_int), value :: jobz, uplo + integer(c_int), value :: n, lda, lwork, lrwork, liwork + real(c_double), target :: A(lda,*) + real(c_double), target :: w(*) + real(c_double), target :: work(*) + real(c_double), target :: rwork(*) + integer(c_int), target :: iwork(*) + integer(c_int), target :: info !! int* + end subroutine + + !! ------------------------------------------------------------------------- + !! ------------------------------------------------------------------------- + !! GPU interfaces (matrix in GPU memory) + subroutine magma_dgetrf_gpu( m, n, dA, lda, ipiv, info ) & + bind(C, name="magma_dgetrf_gpu") + use iso_c_binding + integer(c_int), value :: m, n, lda + type(c_ptr), value :: dA + integer(c_int), target :: ipiv(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_dpotrf_gpu( uplo, n, dA, lda, info ) & + bind(C, name="magma_dpotrf_gpu") + use iso_c_binding + integer(c_int), value :: uplo, n, lda + type(c_ptr), value :: dA + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_dsyevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & + rwork, lrwork, iwork, liwork, info) & + bind(C, name="magma_dsyevd_gpu") + use iso_c_binding + integer(c_int), value :: jobz, uplo + integer(c_int), value :: n, ldda, ldwa, lwork, lrwork, liwork + type(c_ptr), value :: dA !! double real** + real(c_double), target :: w(*) + real(c_double), target :: wA(*) + real(c_double), target :: work(*) + real(c_double), target :: rwork(*) + integer(c_int), target :: iwork(*) + integer(c_int), target :: info !! int* + end subroutine + + !! ------------------------------------------------------------------------- + !! batched GPU interfaces (all arrays in GPU memory) + subroutine magma_dgetrf_batched( & + m, n, dA_array, lda, ipiv_array, info_array, batchcount, queue ) & + bind(C, name="magma_dgetrf_batched") + use iso_c_binding + integer(c_int), value :: m, n, lda, batchcount + type(c_ptr), value :: dA_array !! double_real** + type(c_ptr), value :: ipiv_array !! int** + type(c_ptr), value :: info_array !! int* + type(c_ptr), value :: queue + end subroutine + + !! ------------------------------------------------------------------------- + !! BLAS (matrices in GPU memory) + subroutine magma_daxpy( & + n, & + alpha, dx, incx, & + dy, incy, & + queue ) & + bind(C, name="magma_daxpy") + use iso_c_binding + integer(c_int), value :: n, incx, incy + real(c_double), value :: alpha + type(c_ptr), value :: dx, dy + type(c_ptr), value :: queue !! queue_t + end subroutine + + subroutine magma_dgemv( & + transA, m, n, & + alpha, dA, lda, & + dx, incx, & + beta, dy, incy, & + queue ) & + bind(C, name="magma_dgemv") + use iso_c_binding + integer(c_int), value :: transA, m, n, lda, incx, incy + real(c_double), value :: alpha, beta + type(c_ptr), value :: dA, dx, dy + type(c_ptr), value :: queue !! queue_t + end subroutine + + subroutine magma_dgemm( & + transA, transB, m, n, k, & + alpha, dA, lda, & + dB, ldb, & + beta, dC, ldc, & + queue ) & + bind(C, name="magma_dgemm") + use iso_c_binding + integer(c_int), value :: transA, transB, m, n, k, lda, ldb, ldc + real(c_double), value :: alpha, beta + type(c_ptr), value :: dA, dB, dC + type(c_ptr), value :: queue !! queue_t + end subroutine + +end interface + +!! ============================================================================= +!! Fortran routines & functions +contains + + !! ------------------------------------------------------------------------- + !! malloc wrappers + integer(c_int) function magma_dmalloc( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_dmalloc = magma_malloc( ptr, n*sizeof_double ) + end function + + integer(c_int) function magma_dmalloc_cpu( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_dmalloc_cpu = magma_malloc_cpu( ptr, n*sizeof_double ) + end function + + integer(c_int) function magma_dmalloc_pinned( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_dmalloc_pinned = magma_malloc_pinned( ptr, n*sizeof_double ) + end function + + !! ------------------------------------------------------------------------- + !! set/get wrappers + subroutine magma_dsetmatrix( & + m, n, hA_src, lda, dB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, lda, ldb + real(c_double), target :: hA_src(lda,*) + type(c_ptr), value :: dB_dst + type(c_ptr), value :: queue + + call magma_setmatrix_internal( & + m, n, int(sizeof_double), c_loc(hA_src), lda, dB_dst, ldb, queue, & + "magma_dsetmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_dgetmatrix( & + m, n, dA_src, lda, hB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, lda, ldb + type(c_ptr), value :: dA_src + real(c_double), target :: hB_dst(ldb,*) + type(c_ptr), value :: queue + + call magma_getmatrix_internal( & + m, n, int(sizeof_double), dA_src, lda, c_loc(hB_dst), ldb, queue, & + "magma_dgetmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + +end module diff --git a/src/modules/mod_magma2_sfortran.F b/src/modules/mod_magma2_sfortran.F new file mode 100644 index 0000000000..0d11469b02 --- /dev/null +++ b/src/modules/mod_magma2_sfortran.F @@ -0,0 +1,230 @@ +!! @generated from magma2_zfortran.F90, fortran z -> s, Sat Apr 22 18:54:26 2023 + +module magma2_sfortran + +use magma2_common +implicit none + +!! ============================================================================= +!! Fortran interfaces to C functions +interface + + !! ------------------------------------------------------------------------- + !! CPU interfaces (matrix in CPU memory) + subroutine magma_sgetrf( m, n, A, lda, ipiv, info ) & + bind(C, name="magma_sgetrf") + use iso_c_binding + integer(c_int), value :: m, n, lda + real(c_float), target :: A(lda,*) + integer(c_int), target :: ipiv(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_spotrf( uplo, n, A, lda, info ) & + bind(C, name="magma_spotrf") + use iso_c_binding + integer(c_int), value :: uplo + integer(c_int), value :: n, lda + real(c_float), target :: A(lda,*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_sgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + work, lwork, rwork, info) & + bind(C, name="magma_sgeev") + use iso_c_binding + integer(c_int), value :: jobvl, jobvr + integer(c_int), value :: n, lda, ldvl, ldvr, lwork + real(c_float), target :: A(lda,*) + real(c_float), target :: w(*) + real(c_float), target :: VR(ldvr,*), VL(ldvl,*) + real(c_float), target :: work(*) + real(c_float), target :: rwork(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_sgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + work, lwork, rwork, info) & + bind(C, name="magma_sgeev_m") + use iso_c_binding + integer(c_int), value :: jobvl, jobvr + integer(c_int), value :: n, lda, ldvl, ldvr, lwork + real(c_float), target :: A(lda,*) + real(c_float), target :: w(*) + real(c_float), target :: VR(ldvr,*), VL(ldvl,*) + real(c_float), target :: work(*) + real(c_float), target :: rwork(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_ssyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & + rwork, lrwork, iwork, liwork, info) & + bind(C, name="magma_ssyevd_m") + use iso_c_binding + integer(c_int), value :: ngpu + integer(c_int), value :: jobz, uplo + integer(c_int), value :: n, lda, lwork, lrwork, liwork + real(c_float), target :: A(lda,*) + real(c_double), target :: w(*) + real(c_float), target :: work(*) + real(c_double), target :: rwork(*) + integer(c_int), target :: iwork(*) + integer(c_int), target :: info !! int* + end subroutine + + !! ------------------------------------------------------------------------- + !! ------------------------------------------------------------------------- + !! GPU interfaces (matrix in GPU memory) + subroutine magma_sgetrf_gpu( m, n, dA, lda, ipiv, info ) & + bind(C, name="magma_sgetrf_gpu") + use iso_c_binding + integer(c_int), value :: m, n, lda + type(c_ptr), value :: dA + integer(c_int), target :: ipiv(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_spotrf_gpu( uplo, n, dA, lda, info ) & + bind(C, name="magma_spotrf_gpu") + use iso_c_binding + integer(c_int), value :: uplo, n, lda + type(c_ptr), value :: dA + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_ssyevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & + rwork, lrwork, iwork, liwork, info) & + bind(C, name="magma_ssyevd_gpu") + use iso_c_binding + integer(c_int), value :: jobz, uplo + integer(c_int), value :: n, ldda, ldwa, lwork, lrwork, liwork + type(c_ptr), value :: dA !! double real** + real(c_double), target :: w(*) + real(c_float), target :: wA(*) + real(c_float), target :: work(*) + real(c_double), target :: rwork(*) + integer(c_int), target :: iwork(*) + integer(c_int), target :: info !! int* + end subroutine + + !! ------------------------------------------------------------------------- + !! batched GPU interfaces (all arrays in GPU memory) + subroutine magma_sgetrf_batched( & + m, n, dA_array, lda, ipiv_array, info_array, batchcount, queue ) & + bind(C, name="magma_sgetrf_batched") + use iso_c_binding + integer(c_int), value :: m, n, lda, batchcount + type(c_ptr), value :: dA_array !! double_real** + type(c_ptr), value :: ipiv_array !! int** + type(c_ptr), value :: info_array !! int* + type(c_ptr), value :: queue + end subroutine + + !! ------------------------------------------------------------------------- + !! BLAS (matrices in GPU memory) + subroutine magma_saxpy( & + n, & + alpha, dx, incx, & + dy, incy, & + queue ) & + bind(C, name="magma_saxpy") + use iso_c_binding + integer(c_int), value :: n, incx, incy + real(c_float), value :: alpha + type(c_ptr), value :: dx, dy + type(c_ptr), value :: queue !! queue_t + end subroutine + + subroutine magma_sgemv( & + transA, m, n, & + alpha, dA, lda, & + dx, incx, & + beta, dy, incy, & + queue ) & + bind(C, name="magma_sgemv") + use iso_c_binding + integer(c_int), value :: transA, m, n, lda, incx, incy + real(c_float), value :: alpha, beta + type(c_ptr), value :: dA, dx, dy + type(c_ptr), value :: queue !! queue_t + end subroutine + + subroutine magma_sgemm( & + transA, transB, m, n, k, & + alpha, dA, lda, & + dB, ldb, & + beta, dC, ldc, & + queue ) & + bind(C, name="magma_sgemm") + use iso_c_binding + integer(c_int), value :: transA, transB, m, n, k, lda, ldb, ldc + real(c_float), value :: alpha, beta + type(c_ptr), value :: dA, dB, dC + type(c_ptr), value :: queue !! queue_t + end subroutine + +end interface + +!! ============================================================================= +!! Fortran routines & functions +contains + + !! ------------------------------------------------------------------------- + !! malloc wrappers + integer(c_int) function magma_smalloc( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_smalloc = magma_malloc( ptr, n*sizeof_real ) + end function + + integer(c_int) function magma_smalloc_cpu( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_smalloc_cpu = magma_malloc_cpu( ptr, n*sizeof_real ) + end function + + integer(c_int) function magma_smalloc_pinned( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_smalloc_pinned = magma_malloc_pinned( ptr, n*sizeof_real ) + end function + + !! ------------------------------------------------------------------------- + !! set/get wrappers + subroutine magma_ssetmatrix( & + m, n, hA_src, lda, dB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, lda, ldb + real(c_float), target :: hA_src(lda,*) + type(c_ptr), value :: dB_dst + type(c_ptr), value :: queue + + call magma_setmatrix_internal( & + m, n, int(sizeof_real), c_loc(hA_src), lda, dB_dst, ldb, queue, & + "magma_ssetmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_sgetmatrix( & + m, n, dA_src, lda, hB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, lda, ldb + type(c_ptr), value :: dA_src + real(c_float), target :: hB_dst(ldb,*) + type(c_ptr), value :: queue + + call magma_getmatrix_internal( & + m, n, int(sizeof_real), dA_src, lda, c_loc(hB_dst), ldb, queue, & + "magma_sgetmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + +end module diff --git a/src/modules/mod_magma2_zfortran.F b/src/modules/mod_magma2_zfortran.F new file mode 100644 index 0000000000..8066052bee --- /dev/null +++ b/src/modules/mod_magma2_zfortran.F @@ -0,0 +1,230 @@ +!! @precisions fortran z -> s d c + +module magma2_zfortran + +use magma2_common +implicit none + +!! ============================================================================= +!! Fortran interfaces to C functions +interface + + !! ------------------------------------------------------------------------- + !! CPU interfaces (matrix in CPU memory) + subroutine magma_zgetrf( m, n, A, lda, ipiv, info ) & + bind(C, name="magma_zgetrf") + use iso_c_binding + integer(c_int), value :: m, n, lda + complex(c_double_complex), target :: A(lda,*) + integer(c_int), target :: ipiv(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_zpotrf( uplo, n, A, lda, info ) & + bind(C, name="magma_zpotrf") + use iso_c_binding + integer(c_int), value :: uplo + integer(c_int), value :: n, lda + complex(c_double_complex), target :: A(lda,*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_zgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + work, lwork, rwork, info) & + bind(C, name="magma_zgeev") + use iso_c_binding + integer(c_int), value :: jobvl, jobvr + integer(c_int), value :: n, lda, ldvl, ldvr, lwork + complex(c_double_complex), target :: A(lda,*) + complex(c_double_complex), target :: w(*) + complex(c_double_complex), target :: VR(ldvr,*), VL(ldvl,*) + complex(c_double_complex), target :: work(*) + real(c_double), target :: rwork(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_zgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + work, lwork, rwork, info) & + bind(C, name="magma_zgeev_m") + use iso_c_binding + integer(c_int), value :: jobvl, jobvr + integer(c_int), value :: n, lda, ldvl, ldvr, lwork + complex(c_double_complex), target :: A(lda,*) + complex(c_double_complex), target :: w(*) + complex(c_double_complex), target :: VR(ldvr,*), VL(ldvl,*) + complex(c_double_complex), target :: work(*) + real(c_double), target :: rwork(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_zheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & + rwork, lrwork, iwork, liwork, info) & + bind(C, name="magma_zheevd_m") + use iso_c_binding + integer(c_int), value :: ngpu + integer(c_int), value :: jobz, uplo + integer(c_int), value :: n, lda, lwork, lrwork, liwork + complex(c_double_complex), target :: A(lda,*) + real(c_double), target :: w(*) + complex(c_double_complex), target :: work(*) + real(c_double), target :: rwork(*) + integer(c_int), target :: iwork(*) + integer(c_int), target :: info !! int* + end subroutine + + !! ------------------------------------------------------------------------- + !! ------------------------------------------------------------------------- + !! GPU interfaces (matrix in GPU memory) + subroutine magma_zgetrf_gpu( m, n, dA, lda, ipiv, info ) & + bind(C, name="magma_zgetrf_gpu") + use iso_c_binding + integer(c_int), value :: m, n, lda + type(c_ptr), value :: dA + integer(c_int), target :: ipiv(*) + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_zpotrf_gpu( uplo, n, dA, lda, info ) & + bind(C, name="magma_zpotrf_gpu") + use iso_c_binding + integer(c_int), value :: uplo, n, lda + type(c_ptr), value :: dA + integer(c_int), target :: info !! int* + end subroutine + + subroutine magma_zheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & + rwork, lrwork, iwork, liwork, info) & + bind(C, name="magma_zheevd_gpu") + use iso_c_binding + integer(c_int), value :: jobz, uplo + integer(c_int), value :: n, ldda, ldwa, lwork, lrwork, liwork + type(c_ptr), value :: dA !! double complex** + real(c_double), target :: w(*) + complex(c_double_complex), target :: wA(*) + complex(c_double_complex), target :: work(*) + real(c_double), target :: rwork(*) + integer(c_int), target :: iwork(*) + integer(c_int), target :: info !! int* + end subroutine + + !! ------------------------------------------------------------------------- + !! batched GPU interfaces (all arrays in GPU memory) + subroutine magma_zgetrf_batched( & + m, n, dA_array, lda, ipiv_array, info_array, batchcount, queue ) & + bind(C, name="magma_zgetrf_batched") + use iso_c_binding + integer(c_int), value :: m, n, lda, batchcount + type(c_ptr), value :: dA_array !! double_complex** + type(c_ptr), value :: ipiv_array !! int** + type(c_ptr), value :: info_array !! int* + type(c_ptr), value :: queue + end subroutine + + !! ------------------------------------------------------------------------- + !! BLAS (matrices in GPU memory) + subroutine magma_zaxpy( & + n, & + alpha, dx, incx, & + dy, incy, & + queue ) & + bind(C, name="magma_zaxpy") + use iso_c_binding + integer(c_int), value :: n, incx, incy + complex(c_double_complex), value :: alpha + type(c_ptr), value :: dx, dy + type(c_ptr), value :: queue !! queue_t + end subroutine + + subroutine magma_zgemv( & + transA, m, n, & + alpha, dA, lda, & + dx, incx, & + beta, dy, incy, & + queue ) & + bind(C, name="magma_zgemv") + use iso_c_binding + integer(c_int), value :: transA, m, n, lda, incx, incy + complex(c_double_complex), value :: alpha, beta + type(c_ptr), value :: dA, dx, dy + type(c_ptr), value :: queue !! queue_t + end subroutine + + subroutine magma_zgemm( & + transA, transB, m, n, k, & + alpha, dA, lda, & + dB, ldb, & + beta, dC, ldc, & + queue ) & + bind(C, name="magma_zgemm") + use iso_c_binding + integer(c_int), value :: transA, transB, m, n, k, lda, ldb, ldc + complex(c_double_complex), value :: alpha, beta + type(c_ptr), value :: dA, dB, dC + type(c_ptr), value :: queue !! queue_t + end subroutine + +end interface + +!! ============================================================================= +!! Fortran routines & functions +contains + + !! ------------------------------------------------------------------------- + !! malloc wrappers + integer(c_int) function magma_zmalloc( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_zmalloc = magma_malloc( ptr, n*sizeof_complex16 ) + end function + + integer(c_int) function magma_zmalloc_cpu( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_zmalloc_cpu = magma_malloc_cpu( ptr, n*sizeof_complex16 ) + end function + + integer(c_int) function magma_zmalloc_pinned( ptr, n ) + use iso_c_binding + type(c_ptr), target :: ptr !! void** + integer(c_size_t), value :: n + + magma_zmalloc_pinned = magma_malloc_pinned( ptr, n*sizeof_complex16 ) + end function + + !! ------------------------------------------------------------------------- + !! set/get wrappers + subroutine magma_zsetmatrix( & + m, n, hA_src, lda, dB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, lda, ldb + complex(c_double_complex), target :: hA_src(lda,*) + type(c_ptr), value :: dB_dst + type(c_ptr), value :: queue + + call magma_setmatrix_internal( & + m, n, int(sizeof_complex16), c_loc(hA_src), lda, dB_dst, ldb, queue, & + "magma_zsetmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + + subroutine magma_zgetmatrix( & + m, n, dA_src, lda, hB_dst, ldb, queue ) + use iso_c_binding + integer(c_int), value :: m, n, lda, ldb + type(c_ptr), value :: dA_src + complex(c_double_complex), target :: hB_dst(ldb,*) + type(c_ptr), value :: queue + + call magma_getmatrix_internal( & + m, n, int(sizeof_complex16), dA_src, lda, c_loc(hB_dst), ldb, queue, & + "magma_zgetmatrix" // c_null_char, & + __FILE__ // c_null_char, & + __LINE__ ) + end subroutine + +end module From 6191ff3ef182872809bb3c01470dd8c85d09963d Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Mon, 24 Apr 2023 15:59:09 +0200 Subject: [PATCH 06/36] compilation without magma fixed --- src/modules/.objects | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/.objects b/src/modules/.objects index 2e8aaf57ad..c023690e3d 100644 --- a/src/modules/.objects +++ b/src/modules/.objects @@ -19,6 +19,7 @@ NL_objects = mod_fields.o mod_electric.o mod_nl_optics.o mod_NL_interfaces #if defined _MAGMA MAGMA_objects = mod_magma2_common.o mod_magma2_sfortran.o mod_magma2_dfortran.o \ mod_magma2_cfortran.o mod_magma2_zfortran.o mod_magma2.o +#endif #if defined _io_lib objs = mod_pars.o mod_stderr.o mod_parallel.o mod_parallel_interface.o \ mod_com_interfcs.o mod_descriptors.o mod_com.o mod_IO.o mod_IO_interfaces.o From 31b3b055919a776cb31d723929c2a4da33940ec3 Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Mon, 24 Apr 2023 19:19:45 +0200 Subject: [PATCH 07/36] thread safeness added to magma interfaces --- src/modules/mod_linear_algebra.F | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/modules/mod_linear_algebra.F b/src/modules/mod_linear_algebra.F index 2ab1a523e8..93d9eb3878 100644 --- a/src/modules/mod_linear_algebra.F +++ b/src/modules/mod_linear_algebra.F @@ -28,6 +28,9 @@ module linear_algebra #ifdef _MAGMA use magma2, ONLY: magma_init,magma_queue_create, & & magma_cgeev_m,magma_zgeev_m,MagmaVec +#endif +#ifdef _OPENMP + use omp_lib #endif ! #include @@ -226,19 +229,31 @@ subroutine geev(msize,M,E_cmpl,V_left,V_right,work,lwork,rwk,ifail) complex(SP),intent(out) :: E_cmpl(*),V_left(msize,*),V_right(msize,*),work(*) complex(SP),intent(inout) :: M(msize,*) ! + integer :: nthreads ! -#if defined _MAGMA ! ! use magma (if available) ! +#if defined _MAGMA + ! if (.not.magma_init_done) call magma_setup() ! +# if defined _OPENMP + ! thread safety + nthreads=omp_get_max_threads() + call omp_set_num_threads(1) +# endif + ! # if defined _DOUBLE call magma_zgeev_m(MagmaVec,MagmaVec, msize,M,msize,E_cmpl,V_left,msize,V_right,msize,& & work,lwork,rwk,ifail) # else call magma_cgeev_m(MagmaVec,MagmaVec, msize,M,msize,E_cmpl,V_left,msize,V_right,msize,& & work,lwork,rwk,ifail) +# endif + ! +# if defined _OPENMP + call omp_set_num_threads(nthreads) # endif ! #else From c0c20166e9a9034285298b522e6b7a14b3748f37 Mon Sep 17 00:00:00 2001 From: Blanca Mellado Date: Thu, 6 Jul 2023 16:21:43 +0200 Subject: [PATCH 08/36] Magma implementation for diagonalization (overwrites serial implementation) --- src/linear_algebra/LINEAR_ALGEBRA_driver.F | 2 +- .../SERIAL_HERMITIAN_diagonalization.F | 32 +++++++++++++++---- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/src/linear_algebra/LINEAR_ALGEBRA_driver.F b/src/linear_algebra/LINEAR_ALGEBRA_driver.F index fc004e95e5..1178744cc4 100644 --- a/src/linear_algebra/LINEAR_ALGEBRA_driver.F +++ b/src/linear_algebra/LINEAR_ALGEBRA_driver.F @@ -80,7 +80,7 @@ subroutine LINEAR_ALGEBRA_driver(idriver,lib_in,& ! lib_in_use=USE_LK #if defined _SCALAPACK - lib_in_use=USE_SLK + !lib_in_use=USE_SLK #endif if (present(lib_in)) then lib_in_use=lib_in diff --git a/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F b/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F index 7f2ed10f66..f3d9b0edf6 100644 --- a/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F +++ b/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F @@ -7,6 +7,7 @@ ! subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) ! + use magma use pars, ONLY:SP use drivers, ONLY:l_nl_optics,l_real_time use linear_algebra, ONLY:LINEAR_ALGEBRA_error,& @@ -19,39 +20,57 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) real(SP) :: E(n) ! character(64) :: subname="SERIAL_HERMITIAN_diagonalization" - integer :: lwork + integer :: lwork, lrwork, liwork type(LALGEBRA_WS) :: WS ! + ! MAGMA + call magmaf_init() + ! lwork=-1 + lrwork=-1 + liwork=-1 allocate(WS%v_cmplx(1)) + allocate(WS%v_real(1)) + allocate(WS%v_int(1)) ! if(.not.(l_nl_optics.or.l_real_time)) then call timing('SERIAL_HERMITIAN_diagonalization',OPR='start') - YAMBO_ALLOC(WS%v_real,(max(1,3*n-2))) - else - allocate(WS%v_real(max(1,3*n-2))) endif ! + ! Query lwork, lrwork, liwork + ! #if defined _DOUBLE call ZHEEV('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) #else - call CHEEV('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) + call magmaf_cheevd('v','u',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,lrwork,WS%v_int,liwork,WS%i_fail) #endif + ! + ! Allocate v_cmplx, v_real, v_int ! lwork=nint(real(WS%v_cmplx(1))) + lrwork=nint(WS%v_real(1)) + liwork=WS%v_int(1) deallocate(WS%v_cmplx) + deallocate(WS%v_real) + deallocate(WS%v_int) ! if(.not.(l_nl_optics.or.l_real_time)) then YAMBO_ALLOC(WS%v_cmplx,(lwork)) + YAMBO_ALLOC(WS%v_real,(lrwork)) + YAMBO_ALLOC(WS%v_int,(liwork)) else allocate(WS%v_cmplx(lwork)) + allocate(WS%v_real(lrwork)) + allocate(WS%v_int(liwork)) endif ! + ! Compute eigenvalues + ! #if defined _DOUBLE call ZHEEV('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) if(WS%i_fail.ne.0) call LINEAR_ALGEBRA_error(subname,'performing ZHEEV') #else - call CHEEV('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) + call magmaf_cheevd('v','u',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,lrwork,WS%v_int,liwork,WS%i_fail) if(WS%i_fail.ne.0) call LINEAR_ALGEBRA_error(subname,'performing CHEEV') #endif ! @@ -61,4 +80,5 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) call timing('SERIAL_HERMITIAN_diagonalization',OPR='stop') endif ! + call magmaf_finalize() end subroutine From fa88a5d76314ebdb38bc91641b1244e83f4d9bce Mon Sep 17 00:00:00 2001 From: Blanca Mellado Date: Mon, 4 Dec 2023 15:10:42 +0100 Subject: [PATCH 09/36] Changed magma functions to multiple gpu version (with 2 gpus hardcoded) --- src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F b/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F index f3d9b0edf6..cf90985b35 100644 --- a/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F +++ b/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F @@ -42,7 +42,7 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) #if defined _DOUBLE call ZHEEV('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) #else - call magmaf_cheevd('v','u',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,lrwork,WS%v_int,liwork,WS%i_fail) + call magmaf_cheevd_m(2,'v','u',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,lrwork,WS%v_int,liwork,WS%i_fail) #endif ! ! Allocate v_cmplx, v_real, v_int @@ -70,7 +70,7 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) call ZHEEV('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) if(WS%i_fail.ne.0) call LINEAR_ALGEBRA_error(subname,'performing ZHEEV') #else - call magmaf_cheevd('v','u',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,lrwork,WS%v_int,liwork,WS%i_fail) + call magmaf_cheevd_m(2,'v','u',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,lrwork,WS%v_int,liwork,WS%i_fail) if(WS%i_fail.ne.0) call LINEAR_ALGEBRA_error(subname,'performing CHEEV') #endif ! From 20369f33b04a8a2c8fbc18bda64fe394ccbe08cf Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Tue, 6 Feb 2024 18:34:14 +0100 Subject: [PATCH 10/36] tentaitve fix to magma interfaces (see comments by blmelp, Blanca Mellado Pinto) --- src/modules/mod_magma2_cfortran.F | 16 ++++++++-------- src/modules/mod_magma2_sfortran.F | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/modules/mod_magma2_cfortran.F b/src/modules/mod_magma2_cfortran.F index 4d61c9bc83..8a25568acf 100644 --- a/src/modules/mod_magma2_cfortran.F +++ b/src/modules/mod_magma2_cfortran.F @@ -64,10 +64,10 @@ subroutine magma_cheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & integer(c_int), value :: ngpu integer(c_int), value :: jobz, uplo integer(c_int), value :: n, lda, lwork, lrwork, liwork - complex(c_float_complex), target :: A(lda,*) - real(c_double), target :: w(*) - complex(c_float_complex), target :: work(*) - real(c_double), target :: rwork(*) + complex(c_float_complex), target :: A(lda,*) + real(c_float), target :: w(*) + complex(c_float_complex), target :: work(*) + real(c_float), target :: rwork(*) integer(c_int), target :: iwork(*) integer(c_int), target :: info !! int* end subroutine @@ -99,10 +99,10 @@ subroutine magma_cheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, integer(c_int), value :: jobz, uplo integer(c_int), value :: n, ldda, ldwa, lwork, lrwork, liwork type(c_ptr), value :: dA !! double complex** - real(c_double), target :: w(*) - complex(c_float_complex), target :: wA(*) - complex(c_float_complex), target :: work(*) - real(c_double), target :: rwork(*) + real(c_float), target :: w(*) + complex(c_float_complex), target :: wA(*) + complex(c_float_complex), target :: work(*) + real(c_float), target :: rwork(*) integer(c_int), target :: iwork(*) integer(c_int), target :: info !! int* end subroutine diff --git a/src/modules/mod_magma2_sfortran.F b/src/modules/mod_magma2_sfortran.F index 0d11469b02..b5c45a41c3 100644 --- a/src/modules/mod_magma2_sfortran.F +++ b/src/modules/mod_magma2_sfortran.F @@ -65,9 +65,9 @@ subroutine magma_ssyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & integer(c_int), value :: jobz, uplo integer(c_int), value :: n, lda, lwork, lrwork, liwork real(c_float), target :: A(lda,*) - real(c_double), target :: w(*) + real(c_float), target :: w(*) real(c_float), target :: work(*) - real(c_double), target :: rwork(*) + real(c_float), target :: rwork(*) integer(c_int), target :: iwork(*) integer(c_int), target :: info !! int* end subroutine From e37be73e7622a91328096b10d325b2f8630a0657 Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Fri, 21 Jun 2024 11:33:16 +0200 Subject: [PATCH 11/36] Version 5.2.0, Revision 23239, Hash b626a0b2cb MODIFIED * configure include/version/version.m4 DELETED * include/driver/version.h Changes: - deleted old version.h file (not needed anymore) Patch sent by: Davide Sangalli --- configure | 22 +++++++++++----------- include/driver/version.h | 30 ------------------------------ include/version/version.m4 | 6 +++--- 3 files changed, 14 insertions(+), 44 deletions(-) delete mode 100644 include/driver/version.h diff --git a/configure b/configure index 32999844c6..b716c67a52 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23202 h.d35fae3f4e. +# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23239 h.b626a0b2cb. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.2.0 r.23202 h.d35fae3f4e' -PACKAGE_STRING='Yambo 5.2.0 r.23202 h.d35fae3f4e' +PACKAGE_VERSION='5.2.0 r.23239 h.b626a0b2cb' +PACKAGE_STRING='Yambo 5.2.0 r.23239 h.b626a0b2cb' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -1600,7 +1600,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.2.0 r.23202 h.d35fae3f4e to adapt to many kinds of systems. +\`configure' configures Yambo 5.2.0 r.23239 h.b626a0b2cb to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1666,7 +1666,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.2.0 r.23202 h.d35fae3f4e:";; + short | recursive ) echo "Configuration of Yambo 5.2.0 r.23239 h.b626a0b2cb:";; esac cat <<\_ACEOF @@ -1876,7 +1876,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.2.0 r.23202 h.d35fae3f4e +Yambo configure 5.2.0 r.23239 h.b626a0b2cb generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2505,7 +2505,7 @@ 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 Yambo $as_me 5.2.0 r.23202 h.d35fae3f4e, which was +It was created by Yambo $as_me 5.2.0 r.23239 h.b626a0b2cb, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3263,8 +3263,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23202" -SHASH="d35fae3f4e" +SREVISION="23239" +SHASH="b626a0b2cb" @@ -16578,7 +16578,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.2.0 r.23202 h.d35fae3f4e, which was +This file was extended by Yambo $as_me 5.2.0 r.23239 h.b626a0b2cb, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16642,7 +16642,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Yambo config.status 5.2.0 r.23202 h.d35fae3f4e +Yambo config.status 5.2.0 r.23239 h.b626a0b2cb configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/include/driver/version.h b/include/driver/version.h deleted file mode 100644 index 6a7fb9fa46..0000000000 --- a/include/driver/version.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - Copyright (C) 2000-2022 the YAMBO team - http://www.yambo-code.org - - Authors (see AUTHORS file for details): AM - - This file is distributed under the terms of the GNU - General Public License. You can redistribute it and/or - modify it under the terms of the GNU General Public - License as published by the Free Software Foundation; - either version 2, or (at your option) any later version. - - This program is distributed in the hope that it will - be useful, but WITHOUT ANY WARRANTY; without even the - implied warranty of MERCHANTABILITY or FITNESS FOR A - PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public - License along with this program; if not, write to the Free - Software Foundation, Inc., 59 Temple Place - Suite 330,Boston, - MA 02111-1307, USA or visit http://www.gnu.org/copyleft/gpl.txt. -*/ - -#define YAMBO_VERSION 5 -#define YAMBO_SUBVERSION 1 -#define YAMBO_PATCHLEVEL 0 -#define YAMBO_REVISION 22124 -#define YAMBO_HASH "407f3a474" - diff --git a/include/version/version.m4 b/include/version/version.m4 index dd88d5e7e5..7696a1ba3c 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.2.0 r.23202 h.d35fae3f4e, yambo@yambo-code.org) +AC_INIT(Yambo, 5.2.0 r.23239 h.b626a0b2cb, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23202" -SHASH="d35fae3f4e" +SREVISION="23239" +SHASH="b626a0b2cb" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) From b086bd6a9998e6fa7efa686e1d5b4933ea8a10bc Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Thu, 27 Jun 2024 12:42:07 +0200 Subject: [PATCH 12/36] Version 5.2.0, Revision 23256, Hash b06be9e3ad MODIFIED * configure include/version/version.m4 Changes: - [yambo]: configure re-generated after merge Patch sent by: Davide Sangalli --- configure | 56 ++++++++++++++++++++++++++++---------- include/version/version.m4 | 6 ++-- 2 files changed, 45 insertions(+), 17 deletions(-) diff --git a/configure b/configure index 32999844c6..078d70a574 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23202 h.d35fae3f4e. +# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23256 h.b06be9e3ad. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.2.0 r.23202 h.d35fae3f4e' -PACKAGE_STRING='Yambo 5.2.0 r.23202 h.d35fae3f4e' +PACKAGE_VERSION='5.2.0 r.23256 h.b06be9e3ad' +PACKAGE_STRING='Yambo 5.2.0 r.23256 h.b06be9e3ad' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -772,6 +772,8 @@ def_scalapack enable_scalapack SCALAPACK_LIBS BLACS_LIBS +with_petsc_branch +with_slepc_branch internal_slepc internal_petsc compile_slepc @@ -988,6 +990,8 @@ with_petsc_incs with_petsc_path with_petsc_libdir with_petsc_includedir +with_slepc_branch +with_petsc_branch enable_par_linalg with_blacs_libs with_scalapack_libs @@ -1600,7 +1604,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.2.0 r.23202 h.d35fae3f4e to adapt to many kinds of systems. +\`configure' configures Yambo 5.2.0 r.23256 h.b06be9e3ad to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1666,7 +1670,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.2.0 r.23202 h.d35fae3f4e:";; + short | recursive ) echo "Configuration of Yambo 5.2.0 r.23256 h.b06be9e3ad:";; esac cat <<\_ACEOF @@ -1751,6 +1755,8 @@ Optional Packages: --with-petsc-libdir= Path to the Petsc lib directory --with-petsc-includedir= Path to the Petsc include directory + --with-slepc-branch= Use the of the slepc repository. + --with-petsc-branch= Use the of the petsc repository. --with-blacs-libs=(libs|mkl) Use BLACS libraries or setup MKL --with-scalapack-libs=(libs|mkl) Use SCALAPACK libraries or setup MKL @@ -1876,7 +1882,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.2.0 r.23202 h.d35fae3f4e +Yambo configure 5.2.0 r.23256 h.b06be9e3ad generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2505,7 +2511,7 @@ 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 Yambo $as_me 5.2.0 r.23202 h.d35fae3f4e, which was +It was created by Yambo $as_me 5.2.0 r.23256 h.b06be9e3ad, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3263,8 +3269,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23202" -SHASH="d35fae3f4e" +SREVISION="23256" +SHASH="b06be9e3ad" @@ -12737,6 +12743,24 @@ then : fi + +# Check whether --with-slepc-branch was given. +if test ${with_slepc_branch+y} +then : + withval=$with_slepc_branch; +else $as_nop + with_slepc_branch=none +fi + + +# Check whether --with-petsc-branch was given. +if test ${with_petsc_branch+y} +then : + withval=$with_petsc_branch; +else $as_nop + with_petsc_branch=none +fi + # def_slepc="" petsc="no" @@ -13129,6 +13153,8 @@ fi + + # # ============================================================================ @@ -15410,7 +15436,7 @@ if test x"$enable_nvtx" = "x"; then enable_nvtx="no" ; fi # def_cuda="" CUDA_FLAGS="" -CUDA_LIBS="-Mcudalib=cufft,cublas,cusolver" +CUDA_LIBS="-cudalib=cufft,cublas,cusolver" # Available cc options: # cc20 Compile for compute capability 2.0 @@ -15432,12 +15458,12 @@ CUDA_LIBS="-Mcudalib=cufft,cublas,cusolver" printf %s "checking for CUDA support... " >&6; } if test x"$enable_cuda" = "xyes" ; then def_cuda="-D_CUDA" - CUDA_FLAGS="-Mcuda=cuda9.0,cc70,nollvm $CUDA_LIBS" + CUDA_FLAGS="-cuda -gpu=cuda9.0,cc70,nollvm $CUDA_LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUDA_FLAGS" >&5 printf "%s\n" "$CUDA_FLAGS" >&6; } elif ! test x"$enable_cuda" = "x" ; then def_cuda="-D_CUDA" - CUDA_FLAGS="-Mcuda=$enable_cuda $CUDA_LIBS" + CUDA_FLAGS="-cuda -gpu=$enable_cuda $CUDA_LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUDA_FLAGS" >&5 printf "%s\n" "$CUDA_FLAGS" >&6; } fi @@ -15581,6 +15607,7 @@ PETSC_check="-" if test "$internal_petsc" = "yes" ; then if test "$compile_petsc" = "yes" ; then PETSC_check="C"; fi if test "$compile_petsc" = "no" ; then PETSC_check="I"; fi + if ! test "$with_petsc_branch" = "none"; then PETSC_LIBS="$PETSC_LIBS (git branch $with_petsc_branch)"; fi elif test "$enable_petsc" = "yes" ; then PETSC_check="E" fi @@ -15589,6 +15616,7 @@ SLEPC_check="-" if test "$internal_slepc" = "yes" ; then if test "$compile_slepc" = "yes" ; then SLEPC_check="C"; fi if test "$compile_slepc" = "no" ; then SLEPC_check="I"; fi + if ! test "$with_slepc_branch" = "none"; then SLEPC_LIBS="$SLEPC_LIBS (git branch $with_slepc_branch)"; fi elif test "$enable_slepc" = "yes" ; then SLEPC_check="E" fi @@ -16578,7 +16606,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.2.0 r.23202 h.d35fae3f4e, which was +This file was extended by Yambo $as_me 5.2.0 r.23256 h.b06be9e3ad, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16642,7 +16670,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Yambo config.status 5.2.0 r.23202 h.d35fae3f4e +Yambo config.status 5.2.0 r.23256 h.b06be9e3ad configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/include/version/version.m4 b/include/version/version.m4 index 4970e907be..e2feb3b490 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.2.0 r.23255 h.94511a32c9, yambo@yambo-code.org) +AC_INIT(Yambo, 5.2.0 r.23256 h.b06be9e3ad, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23255" -SHASH="94511a32c9" +SREVISION="23256" +SHASH="b06be9e3ad" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) From 6b225c7c311d8eed744ee875fc60b2cbd2963b6c Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Thu, 18 Jul 2024 13:11:27 +0200 Subject: [PATCH 13/36] Version 5.2.0, Revision 23297, Hash 8a9239ac3d MODIFIED * config/m4/acx_report.m4 config/report.in configure include/version/version.m4 Bugs: - Few small fixes in the configure Additions: - Changes: - Patch sent by: Davide Sangalli --- config/m4/acx_report.m4 | 4 +- config/report.in | 2 +- configure | 312 +++++++++++++++++++++++++++++++++++-- include/version/version.m4 | 6 +- 4 files changed, 304 insertions(+), 20 deletions(-) diff --git a/config/m4/acx_report.m4 b/config/m4/acx_report.m4 index 012599b82a..f96dbbd9c7 100644 --- a/config/m4/acx_report.m4 +++ b/config/m4/acx_report.m4 @@ -137,8 +137,8 @@ fi # MAGMA_check="-" if test "$internal_magma" = "yes" ; then - if test "$compile_magma" = "yes" ; then SLEPC_check="C"; fi - if test "$compile_magma" = "no" ; then SLEPC_check="I"; fi + if test "$compile_magma" = "yes" ; then MAGMA_check="C"; fi + if test "$compile_magma" = "no" ; then MAGMA_check="I"; fi elif test "$enable_magma" = "yes" ; then MAGMA_check="E" fi diff --git a/config/report.in b/config/report.in index 2a73f1cc1d..f99d64f46c 100644 --- a/config/report.in +++ b/config/report.in @@ -58,7 +58,7 @@ # @FFT_INCS_R@ # [@PETSC_check@] PETSC : @PETSC_LIBS_R@ # @PETSC_INCS_R@ -# [@SLEPC_check@] SLEPC : @SLEPC_LIBS_R@ +# [@SLEPC_check@] SLEPC : @SLEPC_LIBS_R@ # @SLEPC_INCS_R@ # [@MAGMA_check@] MAGMA : @MAGMA_LIBS@ # @MAGMA_INCS@ diff --git a/configure b/configure index 5a5265486a..2359a0c8aa 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23238 h.d491dbdf56. +# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23297 h.8a9239ac3d. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.2.0 r.23238 h.d491dbdf56' -PACKAGE_STRING='Yambo 5.2.0 r.23238 h.d491dbdf56' +PACKAGE_VERSION='5.2.0 r.23297 h.8a9239ac3d' +PACKAGE_STRING='Yambo 5.2.0 r.23297 h.8a9239ac3d' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -687,6 +687,7 @@ IOTK_INCS_R IOTK_LIBS_R MPI_info MPI_check +MAGMA_check LIBXC_check YPY_check YDB_check @@ -712,6 +713,12 @@ MEM_profile_check TIME_profile_check KEEP_OBJS_check DP_check +internal_magma +compile_magma +enable_magma +def_magma +MAGMA_INCS +MAGMA_LIBS CUDA_FLAGS def_cuda internal_libxc @@ -772,6 +779,8 @@ def_scalapack enable_scalapack SCALAPACK_LIBS BLACS_LIBS +with_petsc_branch +with_slepc_branch internal_slepc internal_petsc compile_slepc @@ -988,6 +997,8 @@ with_petsc_incs with_petsc_path with_petsc_libdir with_petsc_includedir +with_slepc_branch +with_petsc_branch enable_par_linalg with_blacs_libs with_scalapack_libs @@ -1033,6 +1044,12 @@ with_libxc_libdir with_libxc_includedir enable_cuda enable_nvtx +enable_magma_linalg +with_magma_libs +with_magma_incs +with_magma_path +with_magma_libdir +with_magma_includedir ' ac_precious_vars='build_alias host_alias @@ -1600,7 +1617,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.2.0 r.23238 h.d491dbdf56 to adapt to many kinds of systems. +\`configure' configures Yambo 5.2.0 r.23297 h.8a9239ac3d to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1666,7 +1683,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.2.0 r.23238 h.d491dbdf56:";; + short | recursive ) echo "Configuration of Yambo 5.2.0 r.23297 h.8a9239ac3d:";; esac cat <<\_ACEOF @@ -1717,6 +1734,8 @@ Optional Features: --enable-etsf-io Activate the ETSF_IO support --enable-cuda= Enable CUDA support --enable-nvtx= Enable NVTX support + --enable-magma-linalg Enable suport for the diagonalization of BSE using + MAGMA. Default is no Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1751,6 +1770,8 @@ Optional Packages: --with-petsc-libdir= Path to the Petsc lib directory --with-petsc-includedir= Path to the Petsc include directory + --with-slepc-branch= Use the of the slepc repository. + --with-petsc-branch= Use the of the petsc repository. --with-blacs-libs=(libs|mkl) Use BLACS libraries or setup MKL --with-scalapack-libs=(libs|mkl) Use SCALAPACK libraries or setup MKL @@ -1789,6 +1810,12 @@ Optional Packages: --with-libxc-libdir= Path to the libxc lib directory --with-libxc-includedir= Path to the libxc include directory + --with-magma-libs= Use Magma libraries + --with-magma-incs= Use Magma includes + --with-magma-path= Path to the Magma install directory + --with-magma-libdir= Path to the Magma lib directory + --with-magma-includedir= + Path to the Magma include directory Some influential environment variables: CC C compiler command @@ -1876,7 +1903,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.2.0 r.23238 h.d491dbdf56 +Yambo configure 5.2.0 r.23297 h.8a9239ac3d generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2505,7 +2532,7 @@ 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 Yambo $as_me 5.2.0 r.23238 h.d491dbdf56, which was +It was created by Yambo $as_me 5.2.0 r.23297 h.8a9239ac3d, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3263,8 +3290,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23238" -SHASH="d491dbdf56" +SREVISION="23297" +SHASH="8a9239ac3d" @@ -10275,6 +10302,31 @@ url_ydb=https://github.com/yambo-code/ydb.git # +# +# Copyright (C) 2000-2022 the YAMBO team +# http://www.yambo-code.org +# +# Authors (see AUTHORS file for details): AM +# +# This file is distributed under the terms of the GNU +# General Public License. You can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; +# either version 2, or (at your option) any later version. +# +# This program is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place - Suite 330,Boston, +# MA 02111-1307, USA or visit http://www.gnu.org/copyleft/gpl.txt. +# + + # ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' @@ -12737,6 +12789,24 @@ then : fi + +# Check whether --with-slepc-branch was given. +if test ${with_slepc_branch+y} +then : + withval=$with_slepc_branch; +else $as_nop + with_slepc_branch=none +fi + + +# Check whether --with-petsc-branch was given. +if test ${with_petsc_branch+y} +then : + withval=$with_petsc_branch; +else $as_nop + with_petsc_branch=none +fi + # def_slepc="" petsc="no" @@ -13129,6 +13199,8 @@ fi + + # # ============================================================================ @@ -15410,7 +15482,7 @@ if test x"$enable_nvtx" = "x"; then enable_nvtx="no" ; fi # def_cuda="" CUDA_FLAGS="" -CUDA_LIBS="-Mcudalib=cufft,cublas,cusolver" +CUDA_LIBS="-cudalib=cufft,cublas,cusolver" # Available cc options: # cc20 Compile for compute capability 2.0 @@ -15432,12 +15504,12 @@ CUDA_LIBS="-Mcudalib=cufft,cublas,cusolver" printf %s "checking for CUDA support... " >&6; } if test x"$enable_cuda" = "xyes" ; then def_cuda="-D_CUDA" - CUDA_FLAGS="-Mcuda=cuda9.0,cc70,nollvm $CUDA_LIBS" + CUDA_FLAGS="-cuda -gpu=cuda9.0,cc70,nollvm $CUDA_LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUDA_FLAGS" >&5 printf "%s\n" "$CUDA_FLAGS" >&6; } elif ! test x"$enable_cuda" = "x" ; then def_cuda="-D_CUDA" - CUDA_FLAGS="-Mcuda=$enable_cuda $CUDA_LIBS" + CUDA_FLAGS="-cuda -gpu=$enable_cuda $CUDA_LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUDA_FLAGS" >&5 printf "%s\n" "$CUDA_FLAGS" >&6; } fi @@ -15468,6 +15540,207 @@ fi # +# + +# ============================================================================ +# MAGMA + +# +# Check whether --enable-magma_linalg was given. +if test ${enable_magma_linalg+y} +then : + enableval=$enable_magma_linalg; +fi + +# + +# Check whether --with-magma_libs was given. +if test ${with_magma_libs+y} +then : + withval=$with_magma_libs; +fi + + +# Check whether --with-magma_incs was given. +if test ${with_magma_incs+y} +then : + withval=$with_magma_incs; +fi + + +# Check whether --with-magma_path was given. +if test ${with_magma_path+y} +then : + withval=$with_magma_path; +fi + + +# Check whether --with-magma_libdir was given. +if test ${with_magma_libdir+y} +then : + withval=$with_magma_libdir; +fi + + +# Check whether --with-magma_includedir was given. +if test ${with_magma_includedir+y} +then : + withval=$with_magma_includedir; +fi + + +# +def_magma="" +magma="no" +enable_magma="no" +internal_magma="no" +compile_magma="no" +# +if test x"$enable_magma_linalg" = "xyes"; then + enable_magma="yes"; +fi +# +# MAGMA global options +# +if test x"$with_magma_libs" = "xyes" ; then + enable_magma="yes" ; + with_magma_libs=""; +elif test x"$with_magma_libs" = "xno" ; then + enable_magma="no" ; + with_magma_libs=""; +fi +# +if test x"$with_magma_libdir" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_path" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_libs" != "x" ; then enable_magma="yes" ; fi +# +# Set MAGMA LIBS and FLAGS from INPUT +# +if test -d "$with_magma_path" || test -d "$with_magma_libdir" || test x"$with_magma_libs" != "x" ; then + # + # external magma + # + if test x"$with_magma_libs" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Magma using $with_magma_libs" >&5 +printf %s "checking for Magma using $with_magma_libs... " >&6; } ; + elif test -d "$with_magma_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_libdir" >&5 +printf %s "checking for Magma in $with_magma_libdir... " >&6; } ; + elif test -d "$with_magma_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_path" >&5 +printf %s "checking for Magma in $with_magma_path... " >&6; } ; + fi + # + if test -d "$with_magma_path" ; then + try_magma_libdir="$with_magma_path/lib" ; + try_magma_incdir="$with_magma_path/include" ; + fi + # + if test -d "$with_magma_libdir" ; then try_magma_libdir="$with_magma_libdir" ; fi + if test -d "$with_magma_includedir" ; then try_magma_incdir="$with_magma_includedir" ; fi + # + try_MAGMA_INCS="$IFLAG$try_magma_incdir" ; + try_MAGMA_LIBS="-L$try_magma_libdir -lmagma" ; + # + if test x"$with_magma_libs" != "x" ; then try_MAGMA_LIBS="$with_magma_libs" ; fi + if test x"$with_magma_incs" != "x" ; then try_MAGMA_INCS="$with_magma_incs" ; fi + # + if test -z "$try_MAGMA_LIBS" ; then as_fn_error $? "No libs specified" "$LINENO" 5 ; fi + if test -z "$try_MAGMA_INCS" ; then as_fn_error $? "No include-dir specified" "$LINENO" 5 ; fi + # + 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 + + # + save_fcflags="$FCFLAGS" ; + save_libs="$LIBS" ; + # + FCFLAGS="$try_MAGMA_INCS $save_fcflags"; + LIBS="$try_MAGMA_LIBS $save_libs"; + # + cat > conftest.$ac_ext <<_ACEOF + program main + +use magma +implicit none +integer :: lda +!magma_devptr_t :: dA + end +_ACEOF +if ac_fn_fc_try_compile "$LINENO" +then : + magma=yes +else $as_nop + magma=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext; + # + if test "x$magma" = "xyes"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ; + MAGMA_INCS="$try_MAGMA_INCS" ; + MAGMA_LIBS="$try_MAGMA_LIBS" ; + compile_magma="no"; + internal_magma="no"; + def_magma="-D_MAGMA" + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ; + # + fi + # + FCFLAGS="$save_fcflags" ; + LIBS="$save_libs" ; + # +fi +# +# TO BE FIXED: needs internal compilation support and paths have to be corrected with GPU_SUPPORT folder +if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then + # + # internal magma + # + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal Magma library" >&5 +printf %s "checking for internal Magma library... " >&6; } + # + internal_magma="yes" + # + if test "x$lapack_shared" = "x1" ; then + #MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; + MAGMA_LIBS="" ; + else + #MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; + MAGMA_LIBS="" ; + fi + #MAGMA_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ; + MAGMA_INCS="" ; + # + magma=yes + def_magma="-D_MAGMA" + if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; then + compile_magma="no" ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } ; + elif test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; then + compile_magma="no" ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } ; + else + #compile_magma="yes" ; + #AC_MSG_RESULT([to be compiled]) ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external Magma not found/specified. Internal compilation not available yet." >&5 +printf "%s\n" "Compatible external Magma not found/specified. Internal compilation not available yet." >&6; } ; + compile_magma="no" + def_magma="" + enable_magma="no" + fi + # +fi +# + + + + + + # # ============================================================================ @@ -15581,6 +15854,7 @@ PETSC_check="-" if test "$internal_petsc" = "yes" ; then if test "$compile_petsc" = "yes" ; then PETSC_check="C"; fi if test "$compile_petsc" = "no" ; then PETSC_check="I"; fi + if ! test "$with_petsc_branch" = "none"; then PETSC_LIBS="$PETSC_LIBS (git branch $with_petsc_branch)"; fi elif test "$enable_petsc" = "yes" ; then PETSC_check="E" fi @@ -15589,6 +15863,7 @@ SLEPC_check="-" if test "$internal_slepc" = "yes" ; then if test "$compile_slepc" = "yes" ; then SLEPC_check="C"; fi if test "$compile_slepc" = "no" ; then SLEPC_check="I"; fi + if ! test "$with_slepc_branch" = "none"; then SLEPC_LIBS="$SLEPC_LIBS (git branch $with_slepc_branch)"; fi elif test "$enable_slepc" = "yes" ; then SLEPC_check="E" fi @@ -15599,6 +15874,14 @@ if test "$internal_libxc" = "yes" ; then if test "$compile_libxc" = "no" ; then LIBXC_check="I"; fi fi # +MAGMA_check="-" +if test "$internal_magma" = "yes" ; then + if test "$compile_magma" = "yes" ; then MAGMA_check="C"; fi + if test "$compile_magma" = "no" ; then MAGMA_check="I"; fi +elif test "$enable_magma" = "yes" ; then + MAGMA_check="E" +fi +# YDB_check="-"; if test "$enable_ydb" = "yes" ; then YDB_check="X"; fi YPY_check="-"; @@ -15675,6 +15958,7 @@ fi + # # STRIPE [LIB] from paths # @@ -16578,7 +16862,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.2.0 r.23238 h.d491dbdf56, which was +This file was extended by Yambo $as_me 5.2.0 r.23297 h.8a9239ac3d, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16642,7 +16926,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Yambo config.status 5.2.0 r.23238 h.d491dbdf56 +Yambo config.status 5.2.0 r.23297 h.8a9239ac3d configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/include/version/version.m4 b/include/version/version.m4 index f467de3b6a..b41f042baf 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.2.0 r.23279 h.6ac3a88014, yambo@yambo-code.org) +AC_INIT(Yambo, 5.2.0 r.23297 h.8a9239ac3d, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23279" -SHASH="6ac3a88014" +SREVISION="23297" +SHASH="8a9239ac3d" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) From 2e17f6a970b6f0692fbc865894ccb3994c2356da Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Thu, 1 Aug 2024 16:51:40 +0200 Subject: [PATCH 14/36] Version 5.2.0, Revision 23307, Hash 7175ddda6a MODIFIED * include/version/version.m4 modules/mod_linear_algebra.F Changes: - [yambo] Added few messages Patch sent by: Davide Sangalli --- include/version/version.m4 | 6 +++--- src/modules/mod_linear_algebra.F | 10 +++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/include/version/version.m4 b/include/version/version.m4 index 194e9ef5d4..894b6d1cf8 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.2.0 r.23289 h.172eddb42b, yambo@yambo-code.org) +AC_INIT(Yambo, 5.2.0 r.23307 h.7175ddda6a, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23289" -SHASH="172eddb42b" +SREVISION="23307" +SHASH="7175ddda6a" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) diff --git a/src/modules/mod_linear_algebra.F b/src/modules/mod_linear_algebra.F index f2db9b22ea..90299c83f8 100644 --- a/src/modules/mod_linear_algebra.F +++ b/src/modules/mod_linear_algebra.F @@ -206,6 +206,8 @@ subroutine heev(msize,M,E_real,work,lwork,rwk,ifail) end subroutine heev ! subroutine geev(msize,M,E_cmpl,V_left,V_right,work,lwork,rwk,ifail) + ! + use com, ONLY:msg ! integer, intent(in) :: msize,lwork integer, intent(out) :: ifail @@ -220,7 +222,11 @@ subroutine geev(msize,M,E_cmpl,V_left,V_right,work,lwork,rwk,ifail) ! #if defined _MAGMA ! - if (.not.magma_init_done) call magma_setup() + if (.not.magma_init_done) then + call msg('sr','Initializing magma library in geev') + call magma_setup() + endif + call msg('sr','SERIAL diagonalization with magma') ! # if defined _OPENMP ! thread safety @@ -241,6 +247,8 @@ subroutine geev(msize,M,E_cmpl,V_left,V_right,work,lwork,rwk,ifail) # endif ! #else + ! + call msg('sr','SERIAL diagonalization with lapack') ! ! use lapack ! From fdc73fcf397de8db24be7a254e7defe86ad78a6d Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Thu, 1 Aug 2024 17:22:59 +0200 Subject: [PATCH 15/36] Version 5.2.0, Revision 23308, Hash 2e17f6a970 MODIFIED * config/m4/acx_report.m4 config/m4/magma.m4 config/mk/global/actions/compile_external_libraries.mk config/mk/global/actions/download_external_libraries.mk configure include/version/version.m4 lib/archive/Makefile.loc lib/archive/package.list NEW * lib/magma/Makefile.loc Changes: - [yambo] few more steps to prepare internal magma compilation Patch sent by: Davide Sangalli --- config/m4/acx_report.m4 | 7 + config/m4/magma.m4 | 37 ++- .../actions/compile_external_libraries.mk | 2 + .../actions/download_external_libraries.mk | 2 + configure | 311 +++++++++++++++++- include/version/version.m4 | 6 +- lib/archive/Makefile.loc | 3 + lib/archive/package.list | 5 + lib/magma/Makefile.loc | 42 +++ 9 files changed, 386 insertions(+), 29 deletions(-) create mode 100644 lib/magma/Makefile.loc diff --git a/config/m4/acx_report.m4 b/config/m4/acx_report.m4 index f96dbbd9c7..b583690063 100644 --- a/config/m4/acx_report.m4 +++ b/config/m4/acx_report.m4 @@ -300,6 +300,13 @@ SCALAPACK_INCS_R=$STRIPE AC_SUBST(SCALAPACK_LIBS_R) AC_SUBST(SCALAPACK_INCS_R) # +ACX_STRIPE_SUBPATH($MAGMA_LIBS,"LIB") +MAGMA_LIBS_R=$STRIPE +ACX_STRIPE_SUBPATH($MAGMA_INCS,"INC") +MAGMA_INCS_R=$STRIPE +AC_SUBST(MAGMA_LIBS_R) +AC_SUBST(MAGMA_INCS_R) +# ACX_STRIPE_SUBPATH($BLACS_LIBS,"LIB") BLACS_LIBS_R=$STRIPE ACX_STRIPE_SUBPATH($BLACS_INCS,"INC") diff --git a/config/m4/magma.m4 b/config/m4/magma.m4 index a95275e23b..ddf361df49 100644 --- a/config/m4/magma.m4 +++ b/config/m4/magma.m4 @@ -117,6 +117,7 @@ integer :: lda fi # # TO BE FIXED: needs internal compilation support and paths have to be corrected with GPU_SUPPORT folder +# if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then # # internal magma @@ -125,15 +126,13 @@ if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then # internal_magma="yes" # - if test "x$lapack_shared" = "x1" ; then - #MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; - MAGMA_LIBS="" ; - else - #MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; - MAGMA_LIBS="" ; - fi - #MAGMA_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ; - MAGMA_INCS="" ; + #if test "x$lapack_shared" = "x1" ; then + # MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; + # #MAGMA_LIBS="" ; + #else + MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; + #fi + MAGMA_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ; # magma=yes def_magma="-D_MAGMA" @@ -144,16 +143,24 @@ if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then compile_magma="no" ; AC_MSG_RESULT([already compiled]) ; else - #compile_magma="yes" ; - #AC_MSG_RESULT([to be compiled]) ; - AC_MSG_RESULT([Compatible external Magma not found/specified. Internal compilation not available yet.]) ; - compile_magma="no" - def_magma="" - enable_magma="no" + compile_magma="yes" ; + AC_MSG_RESULT([Compatible external Magma not found/specified. To be compiled.]) ; fi # fi # +# switch off internal magma compilation +# +deactivate_internal=yes +if test "x$compile_magma" = "xyes" && test "x$internal_magma" = "xyes" && test "x$deactivate_internal" = "xyes" ; then + AC_MSG_RESULT([Internal Magma compilation not available yet. Deactivating it.]) ; + compile_magma="no" + def_magma="" + enable_magma="no" + MAGMA_INCS="" ; + MAGMA_LIBS="" ; +fi +# AC_SUBST(MAGMA_LIBS) AC_SUBST(MAGMA_INCS) AC_SUBST(def_magma) diff --git a/config/mk/global/actions/compile_external_libraries.mk b/config/mk/global/actions/compile_external_libraries.mk index 58c8c44b3a..06ed787c0b 100644 --- a/config/mk/global/actions/compile_external_libraries.mk +++ b/config/mk/global/actions/compile_external_libraries.mk @@ -36,6 +36,8 @@ blacs: scalapack @if test "$(do_blacs)" = yes ; then LIBS="blacs" ; BASE="lib"; $(MAKE) $(MAKEFLAGS) blacs-dl; $(mk_external_lib); fi scalapack: lapack @if test "$(do_slk)" = yes ; then LIBS="scalapack" ; BASE="lib"; $(MAKE) $(MAKEFLAGS) scalapack-dl ; $(mk_external_lib); fi +magma: lapack + @if test "$(do_magma)" = yes ; then LIBS="magma" ; BASE="lib"; $(MAKE) $(MAKEFLAGS) magma-dl ; $(mk_external_lib); fi petsc: @if test "$(do_petsc)" = yes ; then LIBS="petsc" ; BASE="lib"; $(MAKE) $(MAKEFLAGS) petsc-dl; $(mk_external_lib); fi slepc: petsc diff --git a/config/mk/global/actions/download_external_libraries.mk b/config/mk/global/actions/download_external_libraries.mk index d75d996707..e3435a6f74 100644 --- a/config/mk/global/actions/download_external_libraries.mk +++ b/config/mk/global/actions/download_external_libraries.mk @@ -33,6 +33,8 @@ blacs-dl: @LIB2DO="blacs"; $(get_external_libraries) scalapack-dl: @LIB2DO="scalapack"; $(get_external_libraries) +magma-dl: + @LIB2DO="magma"; $(get_external_libraries) petsc-dl: @LIB2DO="petsc"; $(get_external_libraries) slepc-dl: diff --git a/configure b/configure index 194399327d..940236d5db 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23287 h.e9ab2f86a2. +# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23308 h.2e17f6a970. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.2.0 r.23287 h.e9ab2f86a2' -PACKAGE_STRING='Yambo 5.2.0 r.23287 h.e9ab2f86a2' +PACKAGE_VERSION='5.2.0 r.23308 h.2e17f6a970' +PACKAGE_STRING='Yambo 5.2.0 r.23308 h.2e17f6a970' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -663,6 +663,8 @@ PETSC_INCS_R PETSC_LIBS_R BLACS_INCS_R BLACS_LIBS_R +MAGMA_INCS_R +MAGMA_LIBS_R SCALAPACK_INCS_R SCALAPACK_LIBS_R LAPACK_INCS_R @@ -687,6 +689,7 @@ IOTK_INCS_R IOTK_LIBS_R MPI_info MPI_check +MAGMA_check LIBXC_check YPY_check YDB_check @@ -712,6 +715,12 @@ MEM_profile_check TIME_profile_check KEEP_OBJS_check DP_check +internal_magma +compile_magma +enable_magma +def_magma +MAGMA_INCS +MAGMA_LIBS CUDA_FLAGS def_cuda internal_libxc @@ -1037,6 +1046,12 @@ with_libxc_libdir with_libxc_includedir enable_cuda enable_nvtx +enable_magma_linalg +with_magma_libs +with_magma_incs +with_magma_path +with_magma_libdir +with_magma_includedir ' ac_precious_vars='build_alias host_alias @@ -1604,7 +1619,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.2.0 r.23287 h.e9ab2f86a2 to adapt to many kinds of systems. +\`configure' configures Yambo 5.2.0 r.23308 h.2e17f6a970 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1670,7 +1685,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.2.0 r.23287 h.e9ab2f86a2:";; + short | recursive ) echo "Configuration of Yambo 5.2.0 r.23308 h.2e17f6a970:";; esac cat <<\_ACEOF @@ -1721,6 +1736,8 @@ Optional Features: --enable-etsf-io Activate the ETSF_IO support --enable-cuda= Enable CUDA support --enable-nvtx= Enable NVTX support + --enable-magma-linalg Enable suport for the diagonalization of BSE using + MAGMA. Default is no Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1795,6 +1812,12 @@ Optional Packages: --with-libxc-libdir= Path to the libxc lib directory --with-libxc-includedir= Path to the libxc include directory + --with-magma-libs= Use Magma libraries + --with-magma-incs= Use Magma includes + --with-magma-path= Path to the Magma install directory + --with-magma-libdir= Path to the Magma lib directory + --with-magma-includedir= + Path to the Magma include directory Some influential environment variables: CC C compiler command @@ -1882,7 +1905,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.2.0 r.23287 h.e9ab2f86a2 +Yambo configure 5.2.0 r.23308 h.2e17f6a970 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2511,7 +2534,7 @@ 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 Yambo $as_me 5.2.0 r.23287 h.e9ab2f86a2, which was +It was created by Yambo $as_me 5.2.0 r.23308 h.2e17f6a970, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3269,8 +3292,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23287" -SHASH="e9ab2f86a2" +SREVISION="23308" +SHASH="2e17f6a970" @@ -10281,6 +10304,31 @@ url_ydb=https://github.com/yambo-code/ydb.git # +# +# Copyright (C) 2000-2022 the YAMBO team +# http://www.yambo-code.org +# +# Authors (see AUTHORS file for details): AM +# +# This file is distributed under the terms of the GNU +# General Public License. You can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; +# either version 2, or (at your option) any later version. +# +# This program is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place - Suite 330,Boston, +# MA 02111-1307, USA or visit http://www.gnu.org/copyleft/gpl.txt. +# + + # ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' @@ -15494,6 +15542,215 @@ fi # +# + +# ============================================================================ +# MAGMA + +# +# Check whether --enable-magma_linalg was given. +if test ${enable_magma_linalg+y} +then : + enableval=$enable_magma_linalg; +fi + +# + +# Check whether --with-magma_libs was given. +if test ${with_magma_libs+y} +then : + withval=$with_magma_libs; +fi + + +# Check whether --with-magma_incs was given. +if test ${with_magma_incs+y} +then : + withval=$with_magma_incs; +fi + + +# Check whether --with-magma_path was given. +if test ${with_magma_path+y} +then : + withval=$with_magma_path; +fi + + +# Check whether --with-magma_libdir was given. +if test ${with_magma_libdir+y} +then : + withval=$with_magma_libdir; +fi + + +# Check whether --with-magma_includedir was given. +if test ${with_magma_includedir+y} +then : + withval=$with_magma_includedir; +fi + + +# +def_magma="" +magma="no" +enable_magma="no" +internal_magma="no" +compile_magma="no" +# +if test x"$enable_magma_linalg" = "xyes"; then + enable_magma="yes"; +fi +# +# MAGMA global options +# +if test x"$with_magma_libs" = "xyes" ; then + enable_magma="yes" ; + with_magma_libs=""; +elif test x"$with_magma_libs" = "xno" ; then + enable_magma="no" ; + with_magma_libs=""; +fi +# +if test x"$with_magma_libdir" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_path" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_libs" != "x" ; then enable_magma="yes" ; fi +# +# Set MAGMA LIBS and FLAGS from INPUT +# +if test -d "$with_magma_path" || test -d "$with_magma_libdir" || test x"$with_magma_libs" != "x" ; then + # + # external magma + # + if test x"$with_magma_libs" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Magma using $with_magma_libs" >&5 +printf %s "checking for Magma using $with_magma_libs... " >&6; } ; + elif test -d "$with_magma_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_libdir" >&5 +printf %s "checking for Magma in $with_magma_libdir... " >&6; } ; + elif test -d "$with_magma_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_path" >&5 +printf %s "checking for Magma in $with_magma_path... " >&6; } ; + fi + # + if test -d "$with_magma_path" ; then + try_magma_libdir="$with_magma_path/lib" ; + try_magma_incdir="$with_magma_path/include" ; + fi + # + if test -d "$with_magma_libdir" ; then try_magma_libdir="$with_magma_libdir" ; fi + if test -d "$with_magma_includedir" ; then try_magma_incdir="$with_magma_includedir" ; fi + # + try_MAGMA_INCS="$IFLAG$try_magma_incdir" ; + try_MAGMA_LIBS="-L$try_magma_libdir -lmagma" ; + # + if test x"$with_magma_libs" != "x" ; then try_MAGMA_LIBS="$with_magma_libs" ; fi + if test x"$with_magma_incs" != "x" ; then try_MAGMA_INCS="$with_magma_incs" ; fi + # + if test -z "$try_MAGMA_LIBS" ; then as_fn_error $? "No libs specified" "$LINENO" 5 ; fi + if test -z "$try_MAGMA_INCS" ; then as_fn_error $? "No include-dir specified" "$LINENO" 5 ; fi + # + 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 + + # + save_fcflags="$FCFLAGS" ; + save_libs="$LIBS" ; + # + FCFLAGS="$try_MAGMA_INCS $save_fcflags"; + LIBS="$try_MAGMA_LIBS $save_libs"; + # + cat > conftest.$ac_ext <<_ACEOF + program main + +use magma +implicit none +integer :: lda +!magma_devptr_t :: dA + end +_ACEOF +if ac_fn_fc_try_compile "$LINENO" +then : + magma=yes +else $as_nop + magma=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext; + # + if test "x$magma" = "xyes"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ; + MAGMA_INCS="$try_MAGMA_INCS" ; + MAGMA_LIBS="$try_MAGMA_LIBS" ; + compile_magma="no"; + internal_magma="no"; + def_magma="-D_MAGMA" + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ; + # + fi + # + FCFLAGS="$save_fcflags" ; + LIBS="$save_libs" ; + # +fi +# +# TO BE FIXED: needs internal compilation support and paths have to be corrected with GPU_SUPPORT folder +# +if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then + # + # internal magma + # + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal Magma library" >&5 +printf %s "checking for internal Magma library... " >&6; } + # + internal_magma="yes" + # + #if test "x$lapack_shared" = "x1" ; then + # MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; + # #MAGMA_LIBS="" ; + #else + MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; + #fi + MAGMA_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ; + # + magma=yes + def_magma="-D_MAGMA" + if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; then + compile_magma="no" ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } ; + elif test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; then + compile_magma="no" ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } ; + else + compile_magma="yes" ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external Magma not found/specified. To be compiled." >&5 +printf "%s\n" "Compatible external Magma not found/specified. To be compiled." >&6; } ; + fi + # +fi +# +# switch off internal magma compilation +# +deactivate_internal=yes +if test "x$compile_magma" = "xyes" && test "x$internal_magma" = "xyes" && test "x$deactivate_internal" = "xyes" ; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Internal Magma compilation not available yet. Deactivating it." >&5 +printf "%s\n" "Internal Magma compilation not available yet. Deactivating it." >&6; } ; + compile_magma="no" + def_magma="" + enable_magma="no" + MAGMA_INCS="" ; + MAGMA_LIBS="" ; +fi +# + + + + + + # # ============================================================================ @@ -15627,6 +15884,14 @@ if test "$internal_libxc" = "yes" ; then if test "$compile_libxc" = "no" ; then LIBXC_check="I"; fi fi # +MAGMA_check="-" +if test "$internal_magma" = "yes" ; then + if test "$compile_magma" = "yes" ; then MAGMA_check="C"; fi + if test "$compile_magma" = "no" ; then MAGMA_check="I"; fi +elif test "$enable_magma" = "yes" ; then + MAGMA_check="E" +fi +# YDB_check="-"; if test "$enable_ydb" = "yes" ; then YDB_check="X"; fi YPY_check="-"; @@ -15703,6 +15968,7 @@ fi + # # STRIPE [LIB] from paths # @@ -15958,6 +16224,29 @@ fi SCALAPACK_INCS_R=$STRIPE +# + +TMP1=`echo $MAGMA_LIBS | sed 's/\//+/g'` +TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` +TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` +STRIPE=`echo $TMP3 | sed 's/+/\//g'` +if [ -z "${1// }" ]; then + STRIPE="$STRIPE ("LIB")" +fi + +MAGMA_LIBS_R=$STRIPE + +TMP1=`echo $MAGMA_INCS | sed 's/\//+/g'` +TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` +TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` +STRIPE=`echo $TMP3 | sed 's/+/\//g'` +if [ -z "${1// }" ]; then + STRIPE="$STRIPE ("INC")" +fi + +MAGMA_INCS_R=$STRIPE + + # TMP1=`echo $BLACS_LIBS | sed 's/\//+/g'` @@ -16606,7 +16895,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.2.0 r.23287 h.e9ab2f86a2, which was +This file was extended by Yambo $as_me 5.2.0 r.23308 h.2e17f6a970, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16670,7 +16959,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Yambo config.status 5.2.0 r.23287 h.e9ab2f86a2 +Yambo config.status 5.2.0 r.23308 h.2e17f6a970 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/include/version/version.m4 b/include/version/version.m4 index 894b6d1cf8..af52da50c5 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.2.0 r.23307 h.7175ddda6a, yambo@yambo-code.org) +AC_INIT(Yambo, 5.2.0 r.23308 h.2e17f6a970, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23307" -SHASH="7175ddda6a" +SREVISION="23308" +SHASH="2e17f6a970" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) diff --git a/lib/archive/Makefile.loc b/lib/archive/Makefile.loc index e4e7908b7b..7206c1ed79 100644 --- a/lib/archive/Makefile.loc +++ b/lib/archive/Makefile.loc @@ -41,6 +41,8 @@ blacs: @+URL="$(url_blacs)" ; LIB="$(pkgname_blacs)"; $(getsrc) scalapack: @+URL="$(url_scalapack)"; LIB="$(pkgname_scalapack)"; $(getsrc) +magma: + @+URL="$(url_magma)" ; LIB="$(pkgname_magma)"; $(getsrc) petsc: @+URL="$(url_petsc)" ; LIB="$(pkgname_petsc)"; GBRANCH="$(branch_petsc)" ; GIT="$(git_petsc)" ; $(call getsrc_git,"petsc"); slepc: @@ -73,6 +75,7 @@ clean_tgz: if test -s $(tarball_etsf_io) && test "$(keep_etsf_io)" != "yes" ; then rm $(tarball_etsf_io) ; fi ; \ if test -s $(tarball_lapack) && test "$(keep_lapack)" != "yes" ; then rm $(tarball_lapack) ; fi ; \ if test -s $(tarball_scalapack)&& test "$(keep_scalapack)" != "yes" ; then rm $(tarball_scalapack) ; fi ; \ + if test -s $(tarball_magma) && test "$(keep_magma)" != "yes" ; then rm $(tarball_magma) ; fi ; \ if test -s $(tarball_blacs) && test "$(keep_blacs)" != "yes" ; then rm $(tarball_blacs) ; fi ; \ if test -s $(tarball_petsc) && test "$(keep_petsc)" != "yes" ; then rm $(tarball_petsc) ; fi ; \ if test -s $(tarball_slepc) && test "$(keep_slepc)" != "yes" ; then rm $(tarball_slepc) ; fi ; \ diff --git a/lib/archive/package.list b/lib/archive/package.list index 8ed6c766f5..0573a3806f 100644 --- a/lib/archive/package.list +++ b/lib/archive/package.list @@ -14,6 +14,7 @@ keep_libxc=no keep_lapack=no keep_blacs=no keep_scalapack=no +keep_magma=no keep_petsc=no keep_slepc=no keep_fftw=no @@ -34,6 +35,7 @@ version_libxc=5.2.3 version_lapack=3.12.0 version_blacs=missing version_scalapack=2.2.1 +version_magma=2.8.0 version_slepc=3.20.2 version_petsc=3.20.5 version_fftw=3.3.10 @@ -53,6 +55,7 @@ pkgname_libxc=libxc-$(version_libxc) pkgname_lapack=lapack-$(version_lapack) pkgname_blacs=blacs pkgname_scalapack=scalapack-$(version_scalapack) +pkgname_magma=magma-$(version_magma) pkgname_slepc=slepc-$(version_slepc) pkgname_petsc=petsc-$(version_petsc) pkgname_fftw=fftw-$(version_fftw) @@ -71,6 +74,7 @@ tarball_etsf_io=$(pkgname_etsf_io).tar.gz tarball_libxc=$(pkgname_libxc).tar.gz tarball_lapack=v$(version_lapack).tar.gz tarball_scalapack=v$(version_scalapack).tar.gz +tarball_magma=$(pkgname_magma).tar.gz tarball_blacs=$(pkgname_blacs).tar.gz tarball_slepc=slepc-v$(version_slepc).tar.gz tarball_petsc=petsc-v$(version_petsc).tar.gz @@ -97,6 +101,7 @@ url_libxc=https://gitlab.com/libxc/libxc/-/archive/$(version_libxc)/$(tarball_li # External URL's More # url_fftw=https://fftw.org/$(tarball_fftw) +url_magma=https://icl.utk.edu/projectsfiles/magma/downloads/$(tarball_magma) # # Internal URL's # diff --git a/lib/magma/Makefile.loc b/lib/magma/Makefile.loc new file mode 100644 index 0000000000..5296d0b3e0 --- /dev/null +++ b/lib/magma/Makefile.loc @@ -0,0 +1,42 @@ +# +#=============================== +# Yambo package +#=============================== +# +include ../../config/setup +include ../archive/package.list +# +LIBNAME=libmagma.a +LIBPATH=$(libs_prefix)/$(fc_kind)/${fc}/ +LIBRARY=$(LIBPATH)/lib/$(LIBNAME) +# +PACKAGE=$(pkgname_magma) +# +include ../config/external_libs_commons.mk +include ../config/external_libs_defs.mk +# +# +all: $(LIBRARY) +# +uncompress: + @$(uncompress) + +configure: uncompress + @$(configure) + +compile: uncompress configure + @$(call compile) + +install: uncompress configure compile + @$(call install_via_make,magma) + +$(LIBRARY): uncompress configure compile install +# +# cleaning +# +clean: + @$(call clean_the_lib,clean) + +clean_all: clean + @$(rm_the_lib) +# From f156c7a35ee263112c4c26b5efb1e3cc625d9064 Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Mon, 14 Oct 2024 23:45:17 +0200 Subject: [PATCH 16/36] Version 5.2.0, Revision 23323, Hash 57187815cf MODIFIED * configure include/version/version.m4 DELETED * config/stamps_and_lists/project_dependencies.stamp Changes: - [yambo] Configure re-generated after merge Patch sent by: Davide Sangalli --- configure | 311 +++++++++++++++++++++++++++++++++++-- include/version/version.m4 | 6 +- 2 files changed, 303 insertions(+), 14 deletions(-) diff --git a/configure b/configure index 117b95129a..4c259c433d 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23298 h.a65667c3c5. +# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23323 h.57187815cf. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.2.0 r.23298 h.a65667c3c5' -PACKAGE_STRING='Yambo 5.2.0 r.23298 h.a65667c3c5' +PACKAGE_VERSION='5.2.0 r.23323 h.57187815cf' +PACKAGE_STRING='Yambo 5.2.0 r.23323 h.57187815cf' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -663,6 +663,8 @@ PETSC_INCS_R PETSC_LIBS_R BLACS_INCS_R BLACS_LIBS_R +MAGMA_INCS_R +MAGMA_LIBS_R SCALAPACK_INCS_R SCALAPACK_LIBS_R LAPACK_INCS_R @@ -687,6 +689,7 @@ IOTK_INCS_R IOTK_LIBS_R MPI_info MPI_check +MAGMA_check LIBXC_check YPY_check YDB_check @@ -712,6 +715,12 @@ MEM_profile_check TIME_profile_check KEEP_OBJS_check DP_check +internal_magma +compile_magma +enable_magma +def_magma +MAGMA_INCS +MAGMA_LIBS CUDA_FLAGS def_cuda internal_libxc @@ -1037,6 +1046,12 @@ with_libxc_libdir with_libxc_includedir enable_cuda enable_nvtx +enable_magma_linalg +with_magma_libs +with_magma_incs +with_magma_path +with_magma_libdir +with_magma_includedir ' ac_precious_vars='build_alias host_alias @@ -1604,7 +1619,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.2.0 r.23298 h.a65667c3c5 to adapt to many kinds of systems. +\`configure' configures Yambo 5.2.0 r.23323 h.57187815cf to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1670,7 +1685,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.2.0 r.23298 h.a65667c3c5:";; + short | recursive ) echo "Configuration of Yambo 5.2.0 r.23323 h.57187815cf:";; esac cat <<\_ACEOF @@ -1721,6 +1736,8 @@ Optional Features: --enable-etsf-io Activate the ETSF_IO support --enable-cuda= Enable CUDA support --enable-nvtx= Enable NVTX support + --enable-magma-linalg Enable suport for the diagonalization of BSE using + MAGMA. Default is no Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1795,6 +1812,12 @@ Optional Packages: --with-libxc-libdir= Path to the libxc lib directory --with-libxc-includedir= Path to the libxc include directory + --with-magma-libs= Use Magma libraries + --with-magma-incs= Use Magma includes + --with-magma-path= Path to the Magma install directory + --with-magma-libdir= Path to the Magma lib directory + --with-magma-includedir= + Path to the Magma include directory Some influential environment variables: CC C compiler command @@ -1882,7 +1905,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.2.0 r.23298 h.a65667c3c5 +Yambo configure 5.2.0 r.23323 h.57187815cf generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2511,7 +2534,7 @@ 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 Yambo $as_me 5.2.0 r.23298 h.a65667c3c5, which was +It was created by Yambo $as_me 5.2.0 r.23323 h.57187815cf, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3269,8 +3292,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23298" -SHASH="a65667c3c5" +SREVISION="23323" +SHASH="57187815cf" @@ -10281,6 +10304,31 @@ url_ydb=https://github.com/yambo-code/ydb.git # +# +# Copyright (C) 2000-2022 the YAMBO team +# http://www.yambo-code.org +# +# Authors (see AUTHORS file for details): AM +# +# This file is distributed under the terms of the GNU +# General Public License. You can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; +# either version 2, or (at your option) any later version. +# +# This program is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place - Suite 330,Boston, +# MA 02111-1307, USA or visit http://www.gnu.org/copyleft/gpl.txt. +# + + # ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' @@ -15494,6 +15542,215 @@ fi # +# + +# ============================================================================ +# MAGMA + +# +# Check whether --enable-magma_linalg was given. +if test ${enable_magma_linalg+y} +then : + enableval=$enable_magma_linalg; +fi + +# + +# Check whether --with-magma_libs was given. +if test ${with_magma_libs+y} +then : + withval=$with_magma_libs; +fi + + +# Check whether --with-magma_incs was given. +if test ${with_magma_incs+y} +then : + withval=$with_magma_incs; +fi + + +# Check whether --with-magma_path was given. +if test ${with_magma_path+y} +then : + withval=$with_magma_path; +fi + + +# Check whether --with-magma_libdir was given. +if test ${with_magma_libdir+y} +then : + withval=$with_magma_libdir; +fi + + +# Check whether --with-magma_includedir was given. +if test ${with_magma_includedir+y} +then : + withval=$with_magma_includedir; +fi + + +# +def_magma="" +magma="no" +enable_magma="no" +internal_magma="no" +compile_magma="no" +# +if test x"$enable_magma_linalg" = "xyes"; then + enable_magma="yes"; +fi +# +# MAGMA global options +# +if test x"$with_magma_libs" = "xyes" ; then + enable_magma="yes" ; + with_magma_libs=""; +elif test x"$with_magma_libs" = "xno" ; then + enable_magma="no" ; + with_magma_libs=""; +fi +# +if test x"$with_magma_libdir" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_path" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_libs" != "x" ; then enable_magma="yes" ; fi +# +# Set MAGMA LIBS and FLAGS from INPUT +# +if test -d "$with_magma_path" || test -d "$with_magma_libdir" || test x"$with_magma_libs" != "x" ; then + # + # external magma + # + if test x"$with_magma_libs" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Magma using $with_magma_libs" >&5 +printf %s "checking for Magma using $with_magma_libs... " >&6; } ; + elif test -d "$with_magma_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_libdir" >&5 +printf %s "checking for Magma in $with_magma_libdir... " >&6; } ; + elif test -d "$with_magma_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_path" >&5 +printf %s "checking for Magma in $with_magma_path... " >&6; } ; + fi + # + if test -d "$with_magma_path" ; then + try_magma_libdir="$with_magma_path/lib" ; + try_magma_incdir="$with_magma_path/include" ; + fi + # + if test -d "$with_magma_libdir" ; then try_magma_libdir="$with_magma_libdir" ; fi + if test -d "$with_magma_includedir" ; then try_magma_incdir="$with_magma_includedir" ; fi + # + try_MAGMA_INCS="$IFLAG$try_magma_incdir" ; + try_MAGMA_LIBS="-L$try_magma_libdir -lmagma" ; + # + if test x"$with_magma_libs" != "x" ; then try_MAGMA_LIBS="$with_magma_libs" ; fi + if test x"$with_magma_incs" != "x" ; then try_MAGMA_INCS="$with_magma_incs" ; fi + # + if test -z "$try_MAGMA_LIBS" ; then as_fn_error $? "No libs specified" "$LINENO" 5 ; fi + if test -z "$try_MAGMA_INCS" ; then as_fn_error $? "No include-dir specified" "$LINENO" 5 ; fi + # + 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 + + # + save_fcflags="$FCFLAGS" ; + save_libs="$LIBS" ; + # + FCFLAGS="$try_MAGMA_INCS $save_fcflags"; + LIBS="$try_MAGMA_LIBS $save_libs"; + # + cat > conftest.$ac_ext <<_ACEOF + program main + +use magma +implicit none +integer :: lda +!magma_devptr_t :: dA + end +_ACEOF +if ac_fn_fc_try_compile "$LINENO" +then : + magma=yes +else $as_nop + magma=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext; + # + if test "x$magma" = "xyes"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ; + MAGMA_INCS="$try_MAGMA_INCS" ; + MAGMA_LIBS="$try_MAGMA_LIBS" ; + compile_magma="no"; + internal_magma="no"; + def_magma="-D_MAGMA" + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ; + # + fi + # + FCFLAGS="$save_fcflags" ; + LIBS="$save_libs" ; + # +fi +# +# TO BE FIXED: needs internal compilation support and paths have to be corrected with GPU_SUPPORT folder +# +if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then + # + # internal magma + # + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal Magma library" >&5 +printf %s "checking for internal Magma library... " >&6; } + # + internal_magma="yes" + # + #if test "x$lapack_shared" = "x1" ; then + # MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; + # #MAGMA_LIBS="" ; + #else + MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; + #fi + MAGMA_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ; + # + magma=yes + def_magma="-D_MAGMA" + if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; then + compile_magma="no" ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } ; + elif test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; then + compile_magma="no" ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } ; + else + compile_magma="yes" ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external Magma not found/specified. To be compiled." >&5 +printf "%s\n" "Compatible external Magma not found/specified. To be compiled." >&6; } ; + fi + # +fi +# +# switch off internal magma compilation +# +deactivate_internal=yes +if test "x$compile_magma" = "xyes" && test "x$internal_magma" = "xyes" && test "x$deactivate_internal" = "xyes" ; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Internal Magma compilation not available yet. Deactivating it." >&5 +printf "%s\n" "Internal Magma compilation not available yet. Deactivating it." >&6; } ; + compile_magma="no" + def_magma="" + enable_magma="no" + MAGMA_INCS="" ; + MAGMA_LIBS="" ; +fi +# + + + + + + # # ============================================================================ @@ -15627,6 +15884,14 @@ if test "$internal_libxc" = "yes" ; then if test "$compile_libxc" = "no" ; then LIBXC_check="I"; fi fi # +MAGMA_check="-" +if test "$internal_magma" = "yes" ; then + if test "$compile_magma" = "yes" ; then MAGMA_check="C"; fi + if test "$compile_magma" = "no" ; then MAGMA_check="I"; fi +elif test "$enable_magma" = "yes" ; then + MAGMA_check="E" +fi +# YDB_check="-"; if test "$enable_ydb" = "yes" ; then YDB_check="X"; fi YPY_check="-"; @@ -15703,6 +15968,7 @@ fi + # # STRIPE [LIB] from paths # @@ -15958,6 +16224,29 @@ fi SCALAPACK_INCS_R=$STRIPE +# + +TMP1=`echo $MAGMA_LIBS | sed 's/\//+/g'` +TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` +TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` +STRIPE=`echo $TMP3 | sed 's/+/\//g'` +if [ -z "${1// }" ]; then + STRIPE="$STRIPE ("LIB")" +fi + +MAGMA_LIBS_R=$STRIPE + +TMP1=`echo $MAGMA_INCS | sed 's/\//+/g'` +TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` +TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` +STRIPE=`echo $TMP3 | sed 's/+/\//g'` +if [ -z "${1// }" ]; then + STRIPE="$STRIPE ("INC")" +fi + +MAGMA_INCS_R=$STRIPE + + # TMP1=`echo $BLACS_LIBS | sed 's/\//+/g'` @@ -16606,7 +16895,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.2.0 r.23298 h.a65667c3c5, which was +This file was extended by Yambo $as_me 5.2.0 r.23323 h.57187815cf, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16670,7 +16959,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Yambo config.status 5.2.0 r.23298 h.a65667c3c5 +Yambo config.status 5.2.0 r.23323 h.57187815cf configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/include/version/version.m4 b/include/version/version.m4 index 0e30a6db51..c7274de3fc 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.2.0 r.23298 h.a65667c3c5, yambo@yambo-code.org) +AC_INIT(Yambo, 5.2.0 r.23323 h.57187815cf, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23298" -SHASH="a65667c3c5" +SREVISION="23323" +SHASH="57187815cf" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) From cbf592b6b76c82b8b8931fd765794ca7cf23d549 Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Mon, 14 Oct 2024 23:46:26 +0200 Subject: [PATCH 17/36] Version 5.2.0, Revision 23469, Hash fde0c4f549 MODIFIED * configure include/version/version.m4 DELETED * config/stamps_and_lists/project_dependencies.stamp Changes: - configure re-generated Patch sent by: Davide Sangalli --- configure | 315 +++++++++++++++++++++++++++++++++++-- include/version/version.m4 | 6 +- 2 files changed, 307 insertions(+), 14 deletions(-) diff --git a/configure b/configure index 2684439414..43f66da8ab 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23441 h.8e49ace8b0. +# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23470 h.fde0c4f549. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.2.0 r.23441 h.8e49ace8b0' -PACKAGE_STRING='Yambo 5.2.0 r.23441 h.8e49ace8b0' +PACKAGE_VERSION='5.2.0 r.23470 h.fde0c4f549' +PACKAGE_STRING='Yambo 5.2.0 r.23470 h.fde0c4f549' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -663,6 +663,8 @@ PETSC_INCS_R PETSC_LIBS_R BLACS_INCS_R BLACS_LIBS_R +MAGMA_INCS_R +MAGMA_LIBS_R SCALAPACK_INCS_R SCALAPACK_LIBS_R LAPACK_INCS_R @@ -687,6 +689,7 @@ IOTK_INCS_R IOTK_LIBS_R MPI_info MPI_check +MAGMA_check LIBXC_check YPY_check YDB_check @@ -712,6 +715,12 @@ MEM_profile_check TIME_profile_check KEEP_OBJS_check DP_check +internal_magma +compile_magma +enable_magma +def_magma +MAGMA_INCS +MAGMA_LIBS CUDA_FLAGS def_cuda internal_libxc @@ -1037,6 +1046,12 @@ with_libxc_libdir with_libxc_includedir enable_cuda enable_nvtx +enable_magma_linalg +with_magma_libs +with_magma_incs +with_magma_path +with_magma_libdir +with_magma_includedir ' ac_precious_vars='build_alias host_alias @@ -1604,7 +1619,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.2.0 r.23441 h.8e49ace8b0 to adapt to many kinds of systems. +\`configure' configures Yambo 5.2.0 r.23470 h.fde0c4f549 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1670,7 +1685,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.2.0 r.23441 h.8e49ace8b0:";; + short | recursive ) echo "Configuration of Yambo 5.2.0 r.23470 h.fde0c4f549:";; esac cat <<\_ACEOF @@ -1721,6 +1736,8 @@ Optional Features: --enable-etsf-io Activate the ETSF_IO support --enable-cuda= Enable CUDA support --enable-nvtx= Enable NVTX support + --enable-magma-linalg Enable suport for the diagonalization of BSE using + MAGMA. Default is no Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1795,6 +1812,12 @@ Optional Packages: --with-libxc-libdir= Path to the libxc lib directory --with-libxc-includedir= Path to the libxc include directory + --with-magma-libs= Use Magma libraries + --with-magma-incs= Use Magma includes + --with-magma-path= Path to the Magma install directory + --with-magma-libdir= Path to the Magma lib directory + --with-magma-includedir= + Path to the Magma include directory Some influential environment variables: CC C compiler command @@ -1882,7 +1905,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.2.0 r.23441 h.8e49ace8b0 +Yambo configure 5.2.0 r.23470 h.fde0c4f549 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2511,7 +2534,7 @@ 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 Yambo $as_me 5.2.0 r.23441 h.8e49ace8b0, which was +It was created by Yambo $as_me 5.2.0 r.23470 h.fde0c4f549, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3269,8 +3292,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23441" -SHASH="8e49ace8b0" +SREVISION="23470" +SHASH="fde0c4f549" @@ -9991,6 +10014,10 @@ printf "%s\n" "$MPIKIND" >&6; } MPI_PATH=`which $CC |sed "s/bin\/$CC//g"` + if ! test -d "$MPI_PATH/include"; then + MPI_PATH=`$CC -show | sed "s/.*-I//g"` ; + MPI_PATH=`echo ${MPI_PATH} | sed "s/\/include.*//g"` ; + fi # else # @@ -10281,6 +10308,31 @@ url_ydb=https://github.com/yambo-code/ydb.git # +# +# Copyright (C) 2000-2022 the YAMBO team +# http://www.yambo-code.org +# +# Authors (see AUTHORS file for details): AM +# +# This file is distributed under the terms of the GNU +# General Public License. You can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; +# either version 2, or (at your option) any later version. +# +# This program is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place - Suite 330,Boston, +# MA 02111-1307, USA or visit http://www.gnu.org/copyleft/gpl.txt. +# + + # ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' @@ -15494,6 +15546,215 @@ fi # +# + +# ============================================================================ +# MAGMA + +# +# Check whether --enable-magma_linalg was given. +if test ${enable_magma_linalg+y} +then : + enableval=$enable_magma_linalg; +fi + +# + +# Check whether --with-magma_libs was given. +if test ${with_magma_libs+y} +then : + withval=$with_magma_libs; +fi + + +# Check whether --with-magma_incs was given. +if test ${with_magma_incs+y} +then : + withval=$with_magma_incs; +fi + + +# Check whether --with-magma_path was given. +if test ${with_magma_path+y} +then : + withval=$with_magma_path; +fi + + +# Check whether --with-magma_libdir was given. +if test ${with_magma_libdir+y} +then : + withval=$with_magma_libdir; +fi + + +# Check whether --with-magma_includedir was given. +if test ${with_magma_includedir+y} +then : + withval=$with_magma_includedir; +fi + + +# +def_magma="" +magma="no" +enable_magma="no" +internal_magma="no" +compile_magma="no" +# +if test x"$enable_magma_linalg" = "xyes"; then + enable_magma="yes"; +fi +# +# MAGMA global options +# +if test x"$with_magma_libs" = "xyes" ; then + enable_magma="yes" ; + with_magma_libs=""; +elif test x"$with_magma_libs" = "xno" ; then + enable_magma="no" ; + with_magma_libs=""; +fi +# +if test x"$with_magma_libdir" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_path" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_libs" != "x" ; then enable_magma="yes" ; fi +# +# Set MAGMA LIBS and FLAGS from INPUT +# +if test -d "$with_magma_path" || test -d "$with_magma_libdir" || test x"$with_magma_libs" != "x" ; then + # + # external magma + # + if test x"$with_magma_libs" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Magma using $with_magma_libs" >&5 +printf %s "checking for Magma using $with_magma_libs... " >&6; } ; + elif test -d "$with_magma_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_libdir" >&5 +printf %s "checking for Magma in $with_magma_libdir... " >&6; } ; + elif test -d "$with_magma_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_path" >&5 +printf %s "checking for Magma in $with_magma_path... " >&6; } ; + fi + # + if test -d "$with_magma_path" ; then + try_magma_libdir="$with_magma_path/lib" ; + try_magma_incdir="$with_magma_path/include" ; + fi + # + if test -d "$with_magma_libdir" ; then try_magma_libdir="$with_magma_libdir" ; fi + if test -d "$with_magma_includedir" ; then try_magma_incdir="$with_magma_includedir" ; fi + # + try_MAGMA_INCS="$IFLAG$try_magma_incdir" ; + try_MAGMA_LIBS="-L$try_magma_libdir -lmagma" ; + # + if test x"$with_magma_libs" != "x" ; then try_MAGMA_LIBS="$with_magma_libs" ; fi + if test x"$with_magma_incs" != "x" ; then try_MAGMA_INCS="$with_magma_incs" ; fi + # + if test -z "$try_MAGMA_LIBS" ; then as_fn_error $? "No libs specified" "$LINENO" 5 ; fi + if test -z "$try_MAGMA_INCS" ; then as_fn_error $? "No include-dir specified" "$LINENO" 5 ; fi + # + 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 + + # + save_fcflags="$FCFLAGS" ; + save_libs="$LIBS" ; + # + FCFLAGS="$try_MAGMA_INCS $save_fcflags"; + LIBS="$try_MAGMA_LIBS $save_libs"; + # + cat > conftest.$ac_ext <<_ACEOF + program main + +use magma +implicit none +integer :: lda +!magma_devptr_t :: dA + end +_ACEOF +if ac_fn_fc_try_compile "$LINENO" +then : + magma=yes +else $as_nop + magma=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext; + # + if test "x$magma" = "xyes"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ; + MAGMA_INCS="$try_MAGMA_INCS" ; + MAGMA_LIBS="$try_MAGMA_LIBS" ; + compile_magma="no"; + internal_magma="no"; + def_magma="-D_MAGMA" + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ; + # + fi + # + FCFLAGS="$save_fcflags" ; + LIBS="$save_libs" ; + # +fi +# +# TO BE FIXED: needs internal compilation support and paths have to be corrected with GPU_SUPPORT folder +# +if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then + # + # internal magma + # + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal Magma library" >&5 +printf %s "checking for internal Magma library... " >&6; } + # + internal_magma="yes" + # + #if test "x$lapack_shared" = "x1" ; then + # MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; + # #MAGMA_LIBS="" ; + #else + MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; + #fi + MAGMA_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ; + # + magma=yes + def_magma="-D_MAGMA" + if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; then + compile_magma="no" ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } ; + elif test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; then + compile_magma="no" ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } ; + else + compile_magma="yes" ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external Magma not found/specified. To be compiled." >&5 +printf "%s\n" "Compatible external Magma not found/specified. To be compiled." >&6; } ; + fi + # +fi +# +# switch off internal magma compilation +# +deactivate_internal=yes +if test "x$compile_magma" = "xyes" && test "x$internal_magma" = "xyes" && test "x$deactivate_internal" = "xyes" ; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Internal Magma compilation not available yet. Deactivating it." >&5 +printf "%s\n" "Internal Magma compilation not available yet. Deactivating it." >&6; } ; + compile_magma="no" + def_magma="" + enable_magma="no" + MAGMA_INCS="" ; + MAGMA_LIBS="" ; +fi +# + + + + + + # # ============================================================================ @@ -15627,6 +15888,14 @@ if test "$internal_libxc" = "yes" ; then if test "$compile_libxc" = "no" ; then LIBXC_check="I"; fi fi # +MAGMA_check="-" +if test "$internal_magma" = "yes" ; then + if test "$compile_magma" = "yes" ; then MAGMA_check="C"; fi + if test "$compile_magma" = "no" ; then MAGMA_check="I"; fi +elif test "$enable_magma" = "yes" ; then + MAGMA_check="E" +fi +# YDB_check="-"; if test "$enable_ydb" = "yes" ; then YDB_check="X"; fi YPY_check="-"; @@ -15703,6 +15972,7 @@ fi + # # STRIPE [LIB] from paths # @@ -15958,6 +16228,29 @@ fi SCALAPACK_INCS_R=$STRIPE +# + +TMP1=`echo $MAGMA_LIBS | sed 's/\//+/g'` +TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` +TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` +STRIPE=`echo $TMP3 | sed 's/+/\//g'` +if [ -z "${1// }" ]; then + STRIPE="$STRIPE ("LIB")" +fi + +MAGMA_LIBS_R=$STRIPE + +TMP1=`echo $MAGMA_INCS | sed 's/\//+/g'` +TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` +TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` +STRIPE=`echo $TMP3 | sed 's/+/\//g'` +if [ -z "${1// }" ]; then + STRIPE="$STRIPE ("INC")" +fi + +MAGMA_INCS_R=$STRIPE + + # TMP1=`echo $BLACS_LIBS | sed 's/\//+/g'` @@ -16606,7 +16899,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.2.0 r.23441 h.8e49ace8b0, which was +This file was extended by Yambo $as_me 5.2.0 r.23470 h.fde0c4f549, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16670,7 +16963,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Yambo config.status 5.2.0 r.23441 h.8e49ace8b0 +Yambo config.status 5.2.0 r.23470 h.fde0c4f549 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/include/version/version.m4 b/include/version/version.m4 index 7ebd0f43c7..91f1525216 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.2.0 r.23441 h.8e49ace8b0, yambo@yambo-code.org) +AC_INIT(Yambo, 5.2.0 r.23470 h.fde0c4f549, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23441" -SHASH="8e49ace8b0" +SREVISION="23470" +SHASH="fde0c4f549" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) From 27b3538f80087c006ffae82178a0433ed4ad4648 Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Tue, 15 Oct 2024 00:54:37 +0200 Subject: [PATCH 18/36] Version 5.2.0, Revision 23470, Hash cbf592b6b7 MODIFIED * config/m4/magma.m4 configure include/version/version.m4 lib/magma/Makefile.loc NEW * lib/magma/MGmake.inc_lib DELETED * config/stamps_and_lists/project_dependencies.stamp Changes: - [magma] created first version of magma Makefile / make.inc Patch sent by: Davide Sangalli --- config/m4/magma.m4 | 2 +- configure | 24 +++---- include/version/version.m4 | 6 +- lib/magma/MGmake.inc_lib | 126 +++++++++++++++++++++++++++++++++++++ lib/magma/Makefile.loc | 16 ++++- 5 files changed, 156 insertions(+), 18 deletions(-) create mode 100644 lib/magma/MGmake.inc_lib diff --git a/config/m4/magma.m4 b/config/m4/magma.m4 index ddf361df49..c87c65a734 100644 --- a/config/m4/magma.m4 +++ b/config/m4/magma.m4 @@ -151,7 +151,7 @@ fi # # switch off internal magma compilation # -deactivate_internal=yes +deactivate_internal=no if test "x$compile_magma" = "xyes" && test "x$internal_magma" = "xyes" && test "x$deactivate_internal" = "xyes" ; then AC_MSG_RESULT([Internal Magma compilation not available yet. Deactivating it.]) ; compile_magma="no" diff --git a/configure b/configure index 43f66da8ab..def036b674 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23470 h.fde0c4f549. +# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23471 h.cbf592b6b7. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.2.0 r.23470 h.fde0c4f549' -PACKAGE_STRING='Yambo 5.2.0 r.23470 h.fde0c4f549' +PACKAGE_VERSION='5.2.0 r.23471 h.cbf592b6b7' +PACKAGE_STRING='Yambo 5.2.0 r.23471 h.cbf592b6b7' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -1619,7 +1619,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.2.0 r.23470 h.fde0c4f549 to adapt to many kinds of systems. +\`configure' configures Yambo 5.2.0 r.23471 h.cbf592b6b7 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1685,7 +1685,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.2.0 r.23470 h.fde0c4f549:";; + short | recursive ) echo "Configuration of Yambo 5.2.0 r.23471 h.cbf592b6b7:";; esac cat <<\_ACEOF @@ -1905,7 +1905,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.2.0 r.23470 h.fde0c4f549 +Yambo configure 5.2.0 r.23471 h.cbf592b6b7 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2534,7 +2534,7 @@ 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 Yambo $as_me 5.2.0 r.23470 h.fde0c4f549, which was +It was created by Yambo $as_me 5.2.0 r.23471 h.cbf592b6b7, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3292,8 +3292,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23470" -SHASH="fde0c4f549" +SREVISION="23471" +SHASH="cbf592b6b7" @@ -15738,7 +15738,7 @@ fi # # switch off internal magma compilation # -deactivate_internal=yes +deactivate_internal=no if test "x$compile_magma" = "xyes" && test "x$internal_magma" = "xyes" && test "x$deactivate_internal" = "xyes" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Internal Magma compilation not available yet. Deactivating it." >&5 printf "%s\n" "Internal Magma compilation not available yet. Deactivating it." >&6; } ; @@ -16899,7 +16899,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.2.0 r.23470 h.fde0c4f549, which was +This file was extended by Yambo $as_me 5.2.0 r.23471 h.cbf592b6b7, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16963,7 +16963,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Yambo config.status 5.2.0 r.23470 h.fde0c4f549 +Yambo config.status 5.2.0 r.23471 h.cbf592b6b7 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/include/version/version.m4 b/include/version/version.m4 index 91f1525216..c44ce0493a 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.2.0 r.23470 h.fde0c4f549, yambo@yambo-code.org) +AC_INIT(Yambo, 5.2.0 r.23471 h.cbf592b6b7, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23470" -SHASH="fde0c4f549" +SREVISION="23471" +SHASH="cbf592b6b7" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) diff --git a/lib/magma/MGmake.inc_lib b/lib/magma/MGmake.inc_lib new file mode 100644 index 0000000000..d1f0d64804 --- /dev/null +++ b/lib/magma/MGmake.inc_lib @@ -0,0 +1,126 @@ +#////////////////////////////////////////////////////////////////////////////// +# -- MAGMA (version 2.8.0) -- +# Univ. of Tennessee, Knoxville +# Univ. of California, Berkeley +# Univ. of Colorado, Denver +# @date March 2024 +#////////////////////////////////////////////////////////////////////////////// + + + +# -------------------- +# configuration + +# should MAGMA be built on CUDA (NVIDIA only) or ROCM (AMD or NVIDIA) +# enter 'cuda' or 'hip' respectively +BACKEND ?= cuda + +# set these to their real paths +CUDADIR ?= $(NVHPC_ROOT)/cuda +ROCM_PATH ?= /opt/rocm + +USE_FORTRAN ?=yes + +# require either hip or cuda +ifeq (,$(findstring $(BACKEND),hip cuda)) + $(error "'BACKEND' should be either 'cuda' or 'hip' (got $(BACKEND))") +endif + +# -------------------- +# programs + +# set compilers +CC ?= gcc +CXX ?= g++ +FORT ?= gfortran +HIPCC ?= hipcc +NVCC ?= nvcc +DEVCC ?= NONE + +# set from 'BACKEND' +ifeq ($(BACKEND),cuda) + DEVCC = $(NVCC) +else ifeq ($(BACKEND),hip) + DEVCC = $(HIPCC) +endif + +# and utilities +ARCH = ar +ARCHFLAGS = cr +RANLIB = ranlib + + +# -------------------- +# flags/settings + +# set our GPU targets +ifeq ($(BACKEND),cuda) + GPU_TARGET = Volta Turing Ampere +else ifeq ($(BACKEND),hip) + GPU_TARGET = gfx900 gfx906 gfx908 +endif + +# Use -fPIC to make shared (.so) and static (.a) library; +# can be commented out if making only static library. +FPIC = -fPIC + +# now, generate our flags +CFLAGS = -O3 $(FPIC) -DNDEBUG -DADD_ -Wall -fopenmp -std=c99 +CXXFLAGS = -O3 $(FPIC) -DNDEBUG -DADD_ -Wall -fopenmp -std=c++11 +FFLAGS = -O3 $(FPIC) -DNDEBUG -DADD_ -Wall -Wno-unused-dummy-argument +F90FLAGS = -O3 $(FPIC) -DNDEBUG -DADD_ -Wall -Wno-unused-dummy-argument -x f95-cpp-input +LDFLAGS = $(FPIC) -fopenmp + +DEVCCFLAGS = -O3 -DNDEBUG -DADD_ + +# DEVCCFLAGS are populated later in `backend-specific` + + +# -------------------- +# libraries + +# gcc with OpenBLAS (includes LAPACK) +LIB += $(lblas) $(llapack) + +# -------------------- +# directories + +# define library directories preferably in your environment, or here. +LIBDIR += -L$(libs_prefix)/$(fc_kind)/${fc}/lib +INC += -I$(libs_prefix)/$(fc_kind)/${fc}/include + + +# -------------------- +# checks + +# check for openblas +#-include make.check-openblas + + +# -------------------- +# backend-specific + +# add appropriate cuda flags +ifeq ($(BACKEND),cuda) + -include make.check-cuda + + DEVCCFLAGS += -Xcompiler "$(FPIC)" -std=c++11 + + # link with cuda specific libraries + INC += -I$(CUDADIR)/include + LIBDIR += -L$(CUDADIR)/lib64 + LIB += -lcublas -lcusparse -lcudart -lcudadevrt +endif + +# add appropriate ROCM flags +ifeq ($(BACKEND),hip) + -include make.check-hip + + DEVCCFLAGS += $(FPIC) -std=c++11 + + INC += -I$(ROCM_PATH)/include + LIBDIR += -L$(ROCM_PATH)/lib + LIB += -lhipblas -lhipsparse +endif + + diff --git a/lib/magma/Makefile.loc b/lib/magma/Makefile.loc index 5296d0b3e0..78aecaa99d 100644 --- a/lib/magma/Makefile.loc +++ b/lib/magma/Makefile.loc @@ -22,13 +22,25 @@ uncompress: @$(uncompress) configure: uncompress - @$(configure) + @if test -d $(PACKAGE) && ! test -f configured.stamp ; then \ + echo "\t[$(PACKAGE)] configuration"; \ + cd $(PACKAGE); \ + cat $(compdir)/config/setup $(srcdir)/lib/magma/MGmake.inc_lib > make.inc ; \ + cp $(srcdir)/lib/magma/Makefile.lib Makefile ; \ + touch ../configured.stamp;\ + fi compile: uncompress configure @$(call compile) install: uncompress configure compile - @$(call install_via_make,magma) + @if ! test -e installed.stamp ; then \ + echo "\t[$(PACKAGE)] installation"; \ + cd $(PACKAGE); cp *.a $(LIBPATH)/lib ; \ + cp include/*.h $(LIBPATH)/include ; \ + cp include/*.mod $(LIBPATH)/include ; \ + touch ../installed.stamp;\ + fi $(LIBRARY): uncompress configure compile install # From 54856361370d85022aa975ab82a495477edbb977 Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Tue, 15 Oct 2024 14:04:59 +0200 Subject: [PATCH 19/36] Version 5.2.0, Revision 23471, Hash 27b3538f80 MODIFIED * config/m4/acx_report.m4 config/m4/magma.m4 config/mk/global/actions/compile_internal_libraries.mk config/mk/global/libraries.mk config/report.in configure include/version/version.m4 modules/.objects NEW * lib/magma_fmodules/.objects RENAMED * modules/mod_magma2.F -> lib/magma_fmodules/mod_magma2.F modules/mod_magma2_cfortran.F -> lib/magma_fmodules/mod_magma2_cfortran.F modules/mod_magma2_common.F -> lib/magma_fmodules/mod_magma2_common.F modules/mod_magma2_dfortran.F -> lib/magma_fmodules/mod_magma2_dfortran.F modules/mod_magma2_sfortran.F -> lib/magma_fmodules/mod_magma2_sfortran.F modules/mod_magma2_zfortran.F -> lib/magma_fmodules/mod_magma2_zfortran.F Changes: - [magma] fmodules coved inside lib/magma_fmodules folder as discussed during last meeting Patch sent by: Davide Sangalli --- config/m4/acx_report.m4 | 7 +++ config/m4/magma.m4 | 9 +++ .../actions/compile_internal_libraries.mk | 4 +- config/mk/global/libraries.mk | 3 + config/report.in | 4 +- configure | 55 +++++++++++++++---- include/version/version.m4 | 6 +- lib/magma_fmodules/.objects | 5 ++ .../magma_fmodules}/mod_magma2.F | 0 .../magma_fmodules}/mod_magma2_cfortran.F | 0 .../magma_fmodules}/mod_magma2_common.F | 0 .../magma_fmodules}/mod_magma2_dfortran.F | 0 .../magma_fmodules}/mod_magma2_sfortran.F | 0 .../magma_fmodules}/mod_magma2_zfortran.F | 0 src/modules/.objects | 6 +- 15 files changed, 77 insertions(+), 22 deletions(-) create mode 100644 lib/magma_fmodules/.objects rename {src/modules => lib/magma_fmodules}/mod_magma2.F (100%) rename {src/modules => lib/magma_fmodules}/mod_magma2_cfortran.F (100%) rename {src/modules => lib/magma_fmodules}/mod_magma2_common.F (100%) rename {src/modules => lib/magma_fmodules}/mod_magma2_dfortran.F (100%) rename {src/modules => lib/magma_fmodules}/mod_magma2_sfortran.F (100%) rename {src/modules => lib/magma_fmodules}/mod_magma2_zfortran.F (100%) diff --git a/config/m4/acx_report.m4 b/config/m4/acx_report.m4 index b583690063..4a19fcccf4 100644 --- a/config/m4/acx_report.m4 +++ b/config/m4/acx_report.m4 @@ -328,6 +328,13 @@ SLEPC_INCS_R=$STRIPE AC_SUBST(SLEPC_LIBS_R) AC_SUBST(SLEPC_INCS_R) # +ACX_STRIPE_SUBPATH($MAGMA_LIBS,"LIB") +MAGMA_LIBS_R=$STRIPE +ACX_STRIPE_SUBPATH($MAGMA_INCS,"INC") +MAGMA_INCS_R=$STRIPE +AC_SUBST(MAGMA_LIBS_R) +AC_SUBST(MAGMA_INCS_R) +# ACX_STRIPE_SUBPATH($LIBXC_LIBS,"LIB") LIBXC_LIBS_R=$STRIPE ACX_STRIPE_SUBPATH($LIBXC_INCS,"INC") diff --git a/config/m4/magma.m4 b/config/m4/magma.m4 index c87c65a734..b2a078e89a 100644 --- a/config/m4/magma.m4 +++ b/config/m4/magma.m4 @@ -35,6 +35,7 @@ AC_ARG_WITH(magma_includedir,AS_HELP_STRING([--with-magma-includedir=],[Pa def_magma="" magma="no" enable_magma="no" +do_magma_fmodules="no" internal_magma="no" compile_magma="no" # @@ -46,9 +47,11 @@ fi # if test x"$with_magma_libs" = "xyes" ; then enable_magma="yes" ; + do_magma_fmodules="no" ; with_magma_libs=""; elif test x"$with_magma_libs" = "xno" ; then enable_magma="no" ; + do_magma_fmodules="no" ; with_magma_libs=""; fi # @@ -144,11 +147,16 @@ if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then AC_MSG_RESULT([already compiled]) ; else compile_magma="yes" ; + do_magma_fmodules="no" ; AC_MSG_RESULT([Compatible external Magma not found/specified. To be compiled.]) ; fi # fi # +# Check if fortran modules are available +# +if test -e "$MAGMA_INCS/mod_magma2_common.F" ; then do_magma_fmodules="no" ; fi +# # switch off internal magma compilation # deactivate_internal=no @@ -165,6 +173,7 @@ AC_SUBST(MAGMA_LIBS) AC_SUBST(MAGMA_INCS) AC_SUBST(def_magma) AC_SUBST(enable_magma) +AC_SUBST(do_magma_fmodules) AC_SUBST(compile_magma) AC_SUBST(internal_magma) # diff --git a/config/mk/global/actions/compile_internal_libraries.mk b/config/mk/global/actions/compile_internal_libraries.mk index 7a6e35f5a4..7b7276411a 100644 --- a/config/mk/global/actions/compile_internal_libraries.mk +++ b/config/mk/global/actions/compile_internal_libraries.mk @@ -3,7 +3,7 @@ # # Copyright (C) 2020 The Yambo Team # -# Authors (see AUTHORS file for details): AM +# Authors (see AUTHORS file for details): AM DS # qe_pseudo: @+LIBS="qe_pseudo"; BASE="lib" ; ADF="$(STAMP_DBLE)"; LAB=""; $(todo_lib); $(mk_lib) @@ -13,3 +13,5 @@ math77: @+LIBS="math77"; BASE="lib" ; ADF="$(STAMP_DBLE)"; LAB=""; $(todo_lib); $(mk_lib) local: @+LIBS="local" ; BASE="lib" ; ADF="$(STAMP_DBLE)"; LAB=""; $(todo_lib); $(mk_lib) +magma_fmodules: + @+LIBS="magma_fmodules"; BASE="lib" ; ADF="$(STAMP_DBLE)"; LAB=""; $(todo_lib); $(mk_lib) diff --git a/config/mk/global/libraries.mk b/config/mk/global/libraries.mk index 8312313f31..35d7826f59 100644 --- a/config/mk/global/libraries.mk +++ b/config/mk/global/libraries.mk @@ -13,6 +13,9 @@ endif include lib/archive/package.list # INT_LIBS = qe_pseudo slatec math77 local +ifeq ($(do_magma_fmodules),yes) + INT_LIBS = $(INT_LIBS) magma_fmodules +endif YAMBO_INT_LIBS= Yio YLIBDRIVER = interface main options YLIBDRIVER_LD = _Ydriver_options _Ydriver_interface _Ydriver_main diff --git a/config/report.in b/config/report.in index f99d64f46c..ae9f0fc1a8 100644 --- a/config/report.in +++ b/config/report.in @@ -60,8 +60,8 @@ # @PETSC_INCS_R@ # [@SLEPC_check@] SLEPC : @SLEPC_LIBS_R@ # @SLEPC_INCS_R@ -# [@MAGMA_check@] MAGMA : @MAGMA_LIBS@ -# @MAGMA_INCS@ +# [@MAGMA_check@] MAGMA : @MAGMA_LIBS_R@ +# @MAGMA_INCS_R@ (fortran modules to be compiled: @do_magma_fmodules@) # # > OTHERs # diff --git a/configure b/configure index def036b674..f0ba881684 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23471 h.cbf592b6b7. +# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23472 h.27b3538f80. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.2.0 r.23471 h.cbf592b6b7' -PACKAGE_STRING='Yambo 5.2.0 r.23471 h.cbf592b6b7' +PACKAGE_VERSION='5.2.0 r.23472 h.27b3538f80' +PACKAGE_STRING='Yambo 5.2.0 r.23472 h.27b3538f80' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -717,6 +717,7 @@ KEEP_OBJS_check DP_check internal_magma compile_magma +do_magma_fmodules enable_magma def_magma MAGMA_INCS @@ -1619,7 +1620,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.2.0 r.23471 h.cbf592b6b7 to adapt to many kinds of systems. +\`configure' configures Yambo 5.2.0 r.23472 h.27b3538f80 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1685,7 +1686,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.2.0 r.23471 h.cbf592b6b7:";; + short | recursive ) echo "Configuration of Yambo 5.2.0 r.23472 h.27b3538f80:";; esac cat <<\_ACEOF @@ -1905,7 +1906,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.2.0 r.23471 h.cbf592b6b7 +Yambo configure 5.2.0 r.23472 h.27b3538f80 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2534,7 +2535,7 @@ 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 Yambo $as_me 5.2.0 r.23471 h.cbf592b6b7, which was +It was created by Yambo $as_me 5.2.0 r.23472 h.27b3538f80, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3292,8 +3293,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23471" -SHASH="cbf592b6b7" +SREVISION="23472" +SHASH="27b3538f80" @@ -15599,6 +15600,7 @@ fi def_magma="" magma="no" enable_magma="no" +do_magma_fmodules="no" internal_magma="no" compile_magma="no" # @@ -15610,9 +15612,11 @@ fi # if test x"$with_magma_libs" = "xyes" ; then enable_magma="yes" ; + do_magma_fmodules="no" ; with_magma_libs=""; elif test x"$with_magma_libs" = "xno" ; then enable_magma="no" ; + do_magma_fmodules="no" ; with_magma_libs=""; fi # @@ -15730,12 +15734,17 @@ printf "%s\n" "already compiled" >&6; } ; printf "%s\n" "already compiled" >&6; } ; else compile_magma="yes" ; + do_magma_fmodules="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external Magma not found/specified. To be compiled." >&5 printf "%s\n" "Compatible external Magma not found/specified. To be compiled." >&6; } ; fi # fi # +# Check if fortran modules are available +# +if test -e "$MAGMA_INCS/mod_magma2_common.F" ; then do_magma_fmodules="no" ; fi +# # switch off internal magma compilation # deactivate_internal=no @@ -15755,6 +15764,7 @@ fi + # # ============================================================================ @@ -16320,6 +16330,29 @@ fi SLEPC_INCS_R=$STRIPE +# + +TMP1=`echo $MAGMA_LIBS | sed 's/\//+/g'` +TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` +TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` +STRIPE=`echo $TMP3 | sed 's/+/\//g'` +if [ -z "${1// }" ]; then + STRIPE="$STRIPE ("LIB")" +fi + +MAGMA_LIBS_R=$STRIPE + +TMP1=`echo $MAGMA_INCS | sed 's/\//+/g'` +TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` +TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` +STRIPE=`echo $TMP3 | sed 's/+/\//g'` +if [ -z "${1// }" ]; then + STRIPE="$STRIPE ("INC")" +fi + +MAGMA_INCS_R=$STRIPE + + # TMP1=`echo $LIBXC_LIBS | sed 's/\//+/g'` @@ -16899,7 +16932,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.2.0 r.23471 h.cbf592b6b7, which was +This file was extended by Yambo $as_me 5.2.0 r.23472 h.27b3538f80, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16963,7 +16996,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Yambo config.status 5.2.0 r.23471 h.cbf592b6b7 +Yambo config.status 5.2.0 r.23472 h.27b3538f80 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/include/version/version.m4 b/include/version/version.m4 index c44ce0493a..7bf575246c 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.2.0 r.23471 h.cbf592b6b7, yambo@yambo-code.org) +AC_INIT(Yambo, 5.2.0 r.23472 h.27b3538f80, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23471" -SHASH="cbf592b6b7" +SREVISION="23472" +SHASH="27b3538f80" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) diff --git a/lib/magma_fmodules/.objects b/lib/magma_fmodules/.objects new file mode 100644 index 0000000000..839feb4a6b --- /dev/null +++ b/lib/magma_fmodules/.objects @@ -0,0 +1,5 @@ +#if defined _MAGMA +MAGMA_objects = mod_magma2_common.o mod_magma2_sfortran.o mod_magma2_dfortran.o \ + mod_magma2_cfortran.o mod_magma2_zfortran.o mod_magma2.o +#endif +objects = $(MAGMA_objects) diff --git a/src/modules/mod_magma2.F b/lib/magma_fmodules/mod_magma2.F similarity index 100% rename from src/modules/mod_magma2.F rename to lib/magma_fmodules/mod_magma2.F diff --git a/src/modules/mod_magma2_cfortran.F b/lib/magma_fmodules/mod_magma2_cfortran.F similarity index 100% rename from src/modules/mod_magma2_cfortran.F rename to lib/magma_fmodules/mod_magma2_cfortran.F diff --git a/src/modules/mod_magma2_common.F b/lib/magma_fmodules/mod_magma2_common.F similarity index 100% rename from src/modules/mod_magma2_common.F rename to lib/magma_fmodules/mod_magma2_common.F diff --git a/src/modules/mod_magma2_dfortran.F b/lib/magma_fmodules/mod_magma2_dfortran.F similarity index 100% rename from src/modules/mod_magma2_dfortran.F rename to lib/magma_fmodules/mod_magma2_dfortran.F diff --git a/src/modules/mod_magma2_sfortran.F b/lib/magma_fmodules/mod_magma2_sfortran.F similarity index 100% rename from src/modules/mod_magma2_sfortran.F rename to lib/magma_fmodules/mod_magma2_sfortran.F diff --git a/src/modules/mod_magma2_zfortran.F b/lib/magma_fmodules/mod_magma2_zfortran.F similarity index 100% rename from src/modules/mod_magma2_zfortran.F rename to lib/magma_fmodules/mod_magma2_zfortran.F diff --git a/src/modules/.objects b/src/modules/.objects index 45cdac2089..e615332a87 100644 --- a/src/modules/.objects +++ b/src/modules/.objects @@ -19,17 +19,13 @@ NL_objects = mod_fields.o mod_electric.o mod_nl_optics.o mod_NL_interfaces #if defined _ELPH ELPH_objects = mod_ELPH_intfcs.o mod_ELPH.o #endif -#if defined _MAGMA -MAGMA_objects = mod_magma2_common.o mod_magma2_sfortran.o mod_magma2_dfortran.o \ - mod_magma2_cfortran.o mod_magma2_zfortran.o mod_magma2.o -#endif #if defined _io_lib objs = mod_pars.o mod_stderr.o mod_parallel.o mod_parallel_interface.o \ mod_com_interfcs.o mod_descriptors.o mod_com.o mod_IO.o mod_IO_interfaces.o #else DEV_objects = mod_cusolverdn_y.o mod_cuda.o objs = mod_pars.o mod_units.o mod_lexical_sort.o mod_stderr.o mod_memory.o mod_openmp.o mod_parallel.o mod_parallel_interface.o \ - mod_matrix.o mod_SLK.o $(MAGMA_objects) mod_linear_algebra.o mod_wrapper.o mod_wrapper_omp.o \ + mod_matrix.o mod_SLK.o mod_linear_algebra.o mod_wrapper.o mod_wrapper_omp.o \ mod_drivers.o mod_FFT.o mod_LIVE_t.o mod_logo.o mod_cutoff_ws.o \ mod_descriptors.o mod_com.o mod_com_interfcs.o mod_timing.o mod_R_lattice.o mod_electrons.o mod_wave_func.o mod_OUTPUT.o \ mod_xc_functionals.o mod_global_XC.o \ From 0d6c6f242277d296d040f2612d4440f2156c73ce Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Tue, 15 Oct 2024 14:25:13 +0200 Subject: [PATCH 20/36] Version 5.2.0, Revision 23472, Hash 5485636137 MODIFIED * config/m4/magma.m4 config/mk/global/defs.mk.in config/mk/global/libraries.mk config/report.in configure include/version/version.m4 lib/magma_fmodules/.objects Changes: - [magma_fmodules] Check for modules refined Patch sent by: Davide Sangalli --- config/m4/magma.m4 | 14 ++++++++------ config/mk/global/defs.mk.in | 1 + config/mk/global/libraries.mk | 5 +++-- config/report.in | 2 +- configure | 36 ++++++++++++++++++----------------- include/version/version.m4 | 6 +++--- lib/magma_fmodules/.objects | 2 +- 7 files changed, 36 insertions(+), 30 deletions(-) diff --git a/config/m4/magma.m4 b/config/m4/magma.m4 index b2a078e89a..b7b02b413e 100644 --- a/config/m4/magma.m4 +++ b/config/m4/magma.m4 @@ -35,9 +35,9 @@ AC_ARG_WITH(magma_includedir,AS_HELP_STRING([--with-magma-includedir=],[Pa def_magma="" magma="no" enable_magma="no" -do_magma_fmodules="no" internal_magma="no" compile_magma="no" +compile_magma_fmodules="no" # if test x"$enable_magma_linalg" = "xyes"; then enable_magma="yes"; @@ -47,11 +47,11 @@ fi # if test x"$with_magma_libs" = "xyes" ; then enable_magma="yes" ; - do_magma_fmodules="no" ; + compile_magma_fmodules="yes" ; with_magma_libs=""; elif test x"$with_magma_libs" = "xno" ; then enable_magma="no" ; - do_magma_fmodules="no" ; + compile_magma_fmodules="no" ; with_magma_libs=""; fi # @@ -141,13 +141,15 @@ if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then def_magma="-D_MAGMA" if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; then compile_magma="no" ; + compile_magma_fmodules="no" ; AC_MSG_RESULT([already compiled]) ; elif test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; then compile_magma="no" ; + compile_magma_fmodules="no" ; AC_MSG_RESULT([already compiled]) ; else compile_magma="yes" ; - do_magma_fmodules="no" ; + compile_magma_fmodules="no" ; AC_MSG_RESULT([Compatible external Magma not found/specified. To be compiled.]) ; fi # @@ -155,7 +157,7 @@ fi # # Check if fortran modules are available # -if test -e "$MAGMA_INCS/mod_magma2_common.F" ; then do_magma_fmodules="no" ; fi +if test -e "$MAGMA_INCS/mod_magma2_common.F" ; then compile_magma_fmodules="no" ; fi # # switch off internal magma compilation # @@ -173,8 +175,8 @@ AC_SUBST(MAGMA_LIBS) AC_SUBST(MAGMA_INCS) AC_SUBST(def_magma) AC_SUBST(enable_magma) -AC_SUBST(do_magma_fmodules) AC_SUBST(compile_magma) +AC_SUBST(compile_magma_fmodules) AC_SUBST(internal_magma) # ]) diff --git a/config/mk/global/defs.mk.in b/config/mk/global/defs.mk.in index 4811b25174..3048a2bdf2 100644 --- a/config/mk/global/defs.mk.in +++ b/config/mk/global/defs.mk.in @@ -34,6 +34,7 @@ do_libxc = @compile_libxc@ do_petsc = @compile_petsc@ do_slepc = @compile_slepc@ do_magma = @compile_magma@ +do_magma_fmodules = @compile_magma_fmodules@ shell = @SHELL@ package_bugreport = @PACKAGE_BUGREPORT@ prefix = @prefix@ diff --git a/config/mk/global/libraries.mk b/config/mk/global/libraries.mk index 35d7826f59..94da4a7e9f 100644 --- a/config/mk/global/libraries.mk +++ b/config/mk/global/libraries.mk @@ -12,9 +12,10 @@ ifeq ($(wildcard config/mk/global/defs.mk),config/mk/global/defs.mk) endif include lib/archive/package.list # -INT_LIBS = qe_pseudo slatec math77 local ifeq ($(do_magma_fmodules),yes) - INT_LIBS = $(INT_LIBS) magma_fmodules + INT_LIBS = qe_pseudo slatec math77 local magma_fmodules +else + INT_LIBS = qe_pseudo slatec math77 local endif YAMBO_INT_LIBS= Yio YLIBDRIVER = interface main options diff --git a/config/report.in b/config/report.in index ae9f0fc1a8..82acc80611 100644 --- a/config/report.in +++ b/config/report.in @@ -61,7 +61,7 @@ # [@SLEPC_check@] SLEPC : @SLEPC_LIBS_R@ # @SLEPC_INCS_R@ # [@MAGMA_check@] MAGMA : @MAGMA_LIBS_R@ -# @MAGMA_INCS_R@ (fortran modules to be compiled: @do_magma_fmodules@) +# @MAGMA_INCS_R@ (fortran modules to be compiled: @compile_magma_fmodules@) # # > OTHERs # diff --git a/configure b/configure index f0ba881684..2e9d348bee 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23472 h.27b3538f80. +# Generated by GNU Autoconf 2.71 for Yambo 5.2.0 r.23473 h.5485636137. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.2.0 r.23472 h.27b3538f80' -PACKAGE_STRING='Yambo 5.2.0 r.23472 h.27b3538f80' +PACKAGE_VERSION='5.2.0 r.23473 h.5485636137' +PACKAGE_STRING='Yambo 5.2.0 r.23473 h.5485636137' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -716,8 +716,8 @@ TIME_profile_check KEEP_OBJS_check DP_check internal_magma +compile_magma_fmodules compile_magma -do_magma_fmodules enable_magma def_magma MAGMA_INCS @@ -1620,7 +1620,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.2.0 r.23472 h.27b3538f80 to adapt to many kinds of systems. +\`configure' configures Yambo 5.2.0 r.23473 h.5485636137 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1686,7 +1686,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.2.0 r.23472 h.27b3538f80:";; + short | recursive ) echo "Configuration of Yambo 5.2.0 r.23473 h.5485636137:";; esac cat <<\_ACEOF @@ -1906,7 +1906,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.2.0 r.23472 h.27b3538f80 +Yambo configure 5.2.0 r.23473 h.5485636137 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2535,7 +2535,7 @@ 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 Yambo $as_me 5.2.0 r.23472 h.27b3538f80, which was +It was created by Yambo $as_me 5.2.0 r.23473 h.5485636137, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3293,8 +3293,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23472" -SHASH="27b3538f80" +SREVISION="23473" +SHASH="5485636137" @@ -15600,9 +15600,9 @@ fi def_magma="" magma="no" enable_magma="no" -do_magma_fmodules="no" internal_magma="no" compile_magma="no" +compile_magma_fmodules="no" # if test x"$enable_magma_linalg" = "xyes"; then enable_magma="yes"; @@ -15612,11 +15612,11 @@ fi # if test x"$with_magma_libs" = "xyes" ; then enable_magma="yes" ; - do_magma_fmodules="no" ; + compile_magma_fmodules="yes" ; with_magma_libs=""; elif test x"$with_magma_libs" = "xno" ; then enable_magma="no" ; - do_magma_fmodules="no" ; + compile_magma_fmodules="no" ; with_magma_libs=""; fi # @@ -15726,15 +15726,17 @@ printf %s "checking for internal Magma library... " >&6; } def_magma="-D_MAGMA" if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; then compile_magma="no" ; + compile_magma_fmodules="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 printf "%s\n" "already compiled" >&6; } ; elif test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; then compile_magma="no" ; + compile_magma_fmodules="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 printf "%s\n" "already compiled" >&6; } ; else compile_magma="yes" ; - do_magma_fmodules="no" ; + compile_magma_fmodules="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external Magma not found/specified. To be compiled." >&5 printf "%s\n" "Compatible external Magma not found/specified. To be compiled." >&6; } ; fi @@ -15743,7 +15745,7 @@ fi # # Check if fortran modules are available # -if test -e "$MAGMA_INCS/mod_magma2_common.F" ; then do_magma_fmodules="no" ; fi +if test -e "$MAGMA_INCS/mod_magma2_common.F" ; then compile_magma_fmodules="no" ; fi # # switch off internal magma compilation # @@ -16932,7 +16934,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.2.0 r.23472 h.27b3538f80, which was +This file was extended by Yambo $as_me 5.2.0 r.23473 h.5485636137, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16996,7 +16998,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Yambo config.status 5.2.0 r.23472 h.27b3538f80 +Yambo config.status 5.2.0 r.23473 h.5485636137 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/include/version/version.m4 b/include/version/version.m4 index 7bf575246c..f3175ec6d0 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.2.0 r.23472 h.27b3538f80, yambo@yambo-code.org) +AC_INIT(Yambo, 5.2.0 r.23473 h.5485636137, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="2" SPATCHLEVEL="0" -SREVISION="23472" -SHASH="27b3538f80" +SREVISION="23473" +SHASH="5485636137" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) diff --git a/lib/magma_fmodules/.objects b/lib/magma_fmodules/.objects index 839feb4a6b..cfae042a34 100644 --- a/lib/magma_fmodules/.objects +++ b/lib/magma_fmodules/.objects @@ -2,4 +2,4 @@ MAGMA_objects = mod_magma2_common.o mod_magma2_sfortran.o mod_magma2_dfortran.o \ mod_magma2_cfortran.o mod_magma2_zfortran.o mod_magma2.o #endif -objects = $(MAGMA_objects) +objs = $(MAGMA_objects) From d94c5f717d340ab588b848d2fee24e50d09bbfb7 Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Thu, 7 Nov 2024 15:28:56 +0100 Subject: [PATCH 21/36] Version 5.3.0, Revision 23811, Hash 5e711996fd MODIFIED * configure include/version/version.m4 Changes: - configure re-generated Patch sent by: Davide Sangalli --- configure | 7987 ++++++++++++++++++++---------------- include/version/version.m4 | 4 +- 2 files changed, 4453 insertions(+), 3538 deletions(-) diff --git a/configure b/configure index 45cb628db7..99fff277a3 100755 --- a/configure +++ b/configure @@ -1,11 +1,12 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for Yambo 5.3.0 r.23795 h.87d0217fe1. +# Generated by GNU Autoconf 2.71 for Yambo 5.3.0 r.23795 h.87d0217fe1. # # Report bugs to . # # -# 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 @@ -16,14 +17,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 ;; #( @@ -33,46 +36,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 || @@ -81,13 +84,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 #(( @@ -96,8 +92,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 @@ -109,30 +109,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. @@ -154,20 +134,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 ;; #( @@ -187,42 +169,52 @@ 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 : + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" + 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 @@ -230,14 +222,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 @@ -255,18 +254,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 and + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and $0: yambo@yambo-code.org about your system, including any $0: error possibly output before this message. Then install $0: a modern shell, or manually run the script under such a @@ -294,6 +294,7 @@ as_fn_unset () } as_unset=as_fn_unset + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -311,6 +312,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 # ------------- @@ -325,7 +334,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" @@ -334,7 +343,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 @@ -373,12 +382,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 @@ -390,18 +400,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] # ---------------------------------------- @@ -413,9 +432,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 @@ -442,7 +461,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 @@ -486,7 +505,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 @@ -500,6 +519,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*) @@ -513,6 +536,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 @@ -589,40 +619,36 @@ ac_default_prefix=$PWD ac_unique_file="driver/yambo.F" # Factoring default headers for most tests. ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include +#include +#ifdef HAVE_STDIO_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 compdir LAPACK_PETSC_INCS_R @@ -840,6 +866,7 @@ FFLAGS F77 FPP CPPFLAGS_yambo +CPP IFLAG FCLIBS OPENMPLIBS @@ -873,6 +900,9 @@ AR MAKE ifGNUmake hostname +SIZEOF_INT_P +SET_MAKE +LIBOBJS host_os host_vendor host_cpu @@ -881,15 +911,9 @@ build_os build_vendor build_cpu build -SIZEOF_INT_P -SET_MAKE -LIBOBJS ALLOCA Y_BRANCH GIT_CHECK -EGREP -GREP -CPP OBJEXT EXEEXT ac_ct_CC @@ -934,6 +958,7 @@ infodir docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -1081,10 +1106,10 @@ CFLAGS LDFLAGS LIBS CPPFLAGS -CPP FC FCFLAGS UFLAGS +CPP FPP F77 FFLAGS @@ -1129,6 +1154,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}' @@ -1158,8 +1184,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 ;; @@ -1200,9 +1224,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" @@ -1226,9 +1250,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" @@ -1381,6 +1405,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=* \ @@ -1430,9 +1463,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" @@ -1446,9 +1479,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" @@ -1492,9 +1525,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}" ;; @@ -1510,7 +1543,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 @@ -1518,7 +1551,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. @@ -1574,7 +1607,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 @@ -1671,6 +1704,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] @@ -1862,10 +1896,10 @@ Some influential environment variables: LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory - CPP C preprocessor FC Fortran compiler command FCFLAGS Fortran compiler flags UFLAGS Unoptimized Fortran flags + CPP C preprocessor FPP Fortran preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags @@ -1892,9 +1926,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/ ;; @@ -1922,7 +1956,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 @@ -1930,7 +1965,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 @@ -1940,9 +1975,9 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF Yambo configure 5.3.0 r.23795 h.87d0217fe1 -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. _ACEOF @@ -1959,14 +1994,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 @@ -1974,14 +2009,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 @@ -1991,176 +2027,6 @@ fi } # ac_fn_c_try_compile -# ac_fn_c_try_cpp LINENO -# ---------------------- -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_cpp () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $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 : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # 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;} -( $as_echo "## ----------------------------------- ## -## Report this to yambo@yambo-code.org ## -## ----------------------------------- ##" - ) | sed "s/^/$as_me: WARNING: /" >&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 @@ -2168,26 +2034,28 @@ 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 @@ -2199,16 +2067,17 @@ $as_echo "$ac_res" >&6; } ac_fn_c_check_member () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 -$as_echo_n "checking for $2.$3... " >&6; } -if eval \${$4+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +printf %s "checking for $2.$3... " >&6; } +if eval test \${$4+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int -main () +main (void) { static $2 ac_aggr; if (ac_aggr.$3) @@ -2217,14 +2086,15 @@ return 0; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$4=yes" -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int -main () +main (void) { static $2 ac_aggr; if (sizeof ac_aggr.$3) @@ -2233,18 +2103,19 @@ return 0; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$4=yes" -else +else $as_nop eval "$4=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 -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=\$$4 - { $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_member @@ -2256,17 +2127,18 @@ $as_echo "$ac_res" >&6; } ac_fn_c_check_type () { 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 eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { if (sizeof ($2)) return 0; @@ -2274,12 +2146,13 @@ if (sizeof ($2)) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { if (sizeof (($2))) return 0; @@ -2287,18 +2160,19 @@ if (sizeof (($2))) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else +else $as_nop eval "$3=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 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_type @@ -2309,14 +2183,14 @@ $as_echo "$ac_res" >&6; } 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 @@ -2324,17 +2198,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 @@ -2349,72 +2224,48 @@ fi } # ac_fn_c_try_link -# ac_fn_c_check_func LINENO FUNC VAR -# ---------------------------------- -# Tests whether FUNC exists, setting the cache variable VAR accordingly -ac_fn_c_check_func () +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to run 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 - { $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. - For example, HP-UX 11i declares gettimeofday. */ -#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 + 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 + (eval "$ac_link") 2>&5 + ac_status=$? + printf "%s\n" "$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\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } +then : + ac_retval=0 +else $as_nop + printf "%s\n" "$as_me: program exited with status $ac_status" >&5 + printf "%s\n" "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -#undef $2 + 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 -/* 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 $2 (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$2 || defined __stub___$2 -choke me -#endif - -int -main () -{ -return $2 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext \ - 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; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_func +} # ac_fn_c_try_run # ac_fn_fc_try_compile LINENO # --------------------------- @@ -2422,14 +2273,14 @@ $as_echo "$ac_res" >&6; } 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 @@ -2437,14 +2288,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 @@ -2460,14 +2312,14 @@ fi ac_fn_fc_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 @@ -2475,17 +2327,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_fc_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 @@ -2500,20 +2353,58 @@ fi } # ac_fn_fc_try_link +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + 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 : + ac_retval=0 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + # ac_fn_f77_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_f77_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 @@ -2521,14 +2412,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_f77_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 @@ -2544,14 +2436,14 @@ fi ac_fn_f77_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 @@ -2559,17 +2451,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_f77_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 @@ -2584,44 +2477,136 @@ fi } # ac_fn_f77_try_link +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +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 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. */ + +#include +#undef $2 + +/* 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 $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +#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 (void) +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + eval "$3=yes" +else $as_nop + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + 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; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + # ac_fn_fc_check_func LINENO FUNC VAR # ----------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_fc_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 > conftest.$ac_ext <<_ACEOF program main call $2 end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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_fc_check_func +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 Yambo $as_me 5.3.0 r.23795 h.87d0217fe1, 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 @@ -2654,8 +2639,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 @@ -2690,7 +2679,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'" ;; @@ -2725,11 +2714,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 @@ -2740,8 +2731,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) ;; #( @@ -2765,7 +2756,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ) echo - $as_echo "## ----------------- ## + printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -2773,14 +2764,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 @@ -2788,15 +2779,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 @@ -2804,8 +2795,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 && @@ -2819,63 +2810,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 @@ -2885,154 +2861,542 @@ 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 -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { $as_echo "$as_me:${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) - { $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=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${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 - { $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 - { $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=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - 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 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## +# 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 -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 +#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]; -SVERSION="5" -SSUBVERSION="3" -SPATCHLEVEL="0" -SREVISION="23796" -SHASH="b00c133c8b" +/* 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; -# -CURRENT_DIR=`echo "$PWD" | sed -e "s/ /X/g"` -if ! test -d $CURRENT_DIR ; then - as_fn_error $? "Make cannot work using paths which include spaces" "$LINENO" 5 -fi -# -compdir=`echo "$PWD"` -# +struct incomplete_array +{ + int datasize; + double data[]; +}; -if test "$prefix" = "NONE" ; then prefix="$PWD" ; fi -if test "$exec_prefix" = "NONE" ; then exec_prefix="$prefix" ; fi -# -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 +struct named_init { + int number; + const wchar_t *name; + double average; +}; -# 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. +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); -# -# YAMBO SPECIFIC -# -# -# License-Identifier: GPL -# -# Copyright (C) 2021 The Yambo Team -# -# Authors (see AUTHORS file for details): DS AM -# -# Folders -# -if ! test -d log ; then mkdir log ; fi -if ! test -d bin ; then mkdir bin ; fi + 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; +} +" + +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 +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { 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) + { 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=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { 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 + { 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 + { 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=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + 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 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +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 + + +SVERSION="5" +SSUBVERSION="3" +SPATCHLEVEL="0" +SREVISION="23811" +SHASH="5e711996fd" + + + + + + +# +CURRENT_DIR=`echo "$PWD" | sed -e "s/ /X/g"` +if ! test -d $CURRENT_DIR ; then + as_fn_error $? "Make cannot work using paths which include spaces" "$LINENO" 5 +fi +# +compdir=`echo "$PWD"` +# + +if test "$prefix" = "NONE" ; then prefix="$PWD" ; fi +if test "$exec_prefix" = "NONE" ; then exec_prefix="$prefix" ; fi +# + + +# +# YAMBO SPECIFIC +# +# +# License-Identifier: GPL +# +# Copyright (C) 2021 The Yambo Team +# +# Authors (see AUTHORS file for details): DS AM +# +# Folders +# +if ! test -d log ; then mkdir log ; fi +if ! test -d bin ; then mkdir bin ; fi if ! test -d include ; then mkdir include ; fi if ! test -d include/headers ; then mkdir include/headers ; fi if ! test -d lib ; then mkdir lib ; fi @@ -3079,9 +3443,10 @@ fi # PATH FOR EXT LIBS # Check whether --with-extlibs_path was given. -if test "${with_extlibs_path+set}" = set; then : +if test ${with_extlibs_path+y} +then : withval=$with_extlibs_path; extlibs_path="$with_extlibs_path" -else +else $as_nop extlibs_path="${PWD}/lib/external" fi @@ -3092,7 +3457,8 @@ if test x"$extlibs_path" = "x"; then extlibs_path="${PWD}/lib/external"; fi # ============================================================================ # DEBUG # Check whether --enable-keep-objects was given. -if test "${enable_keep_objects+set}" = set; then : +if test ${enable_keep_objects+y} +then : enableval=$enable_keep_objects; fi @@ -3103,7 +3469,8 @@ if test x"$enable_keep_objects" = "x"; then enable_keep_objects="yes"; fi # ============================================================================= # KEEP SOURCE FILES # Check whether --enable-keep-src was given. -if test "${enable_keep_src+set}" = set; then : +if test ${enable_keep_src+y} +then : enableval=$enable_keep_src; fi @@ -3114,7 +3481,8 @@ if test x"$enable_keep_src" = "xyes"; then enable_keep_src="yes"; fi # ============================================================================ # KEEP EXT LIBS # Check whether --enable-keep-extlibs was given. -if test "${enable_keep_extlibs+set}" = set; then : +if test ${enable_keep_extlibs+y} +then : enableval=$enable_keep_extlibs; fi @@ -3132,7 +3500,8 @@ fi # ============================================================================ # DP # Check whether --enable-dp was given. -if test "${enable_dp+set}" = set; then : +if test ${enable_dp+y} +then : enableval=$enable_dp; fi @@ -3151,7 +3520,8 @@ if test x"$build_precision" = "x"; then as_fn_error $? "Non correct specificatio # Time Profiling (mod_timing) # # Check whether --enable-time-profile was given. -if test "${enable_time_profile+set}" = set; then : +if test ${enable_time_profile+y} +then : enableval=$enable_time_profile; fi @@ -3167,7 +3537,8 @@ fi # USPP # # Check whether --enable-uspp was given. -if test "${enable_uspp+set}" = set; then : +if test ${enable_uspp+y} +then : enableval=$enable_uspp; fi @@ -3184,7 +3555,8 @@ fi # Memory Profiling # # Check whether --enable-memory-profile was given. -if test "${enable_memory_profile+set}" = set; then : +if test ${enable_memory_profile+y} +then : enableval=$enable_memory_profile; fi @@ -3200,7 +3572,8 @@ fi # Verbose compilation # # Check whether --enable-msgs-comps was given. -if test "${enable_msgs_comps+set}" = set; then : +if test ${enable_msgs_comps+y} +then : enableval=$enable_msgs_comps; fi @@ -3217,9 +3590,10 @@ fi # # Check whether --with-editor was given. -if test "${with_editor+set}" = set; then : +if test ${with_editor+y} +then : withval=$with_editor; -else +else $as_nop with_editor="vim vi pico" fi @@ -3227,11 +3601,12 @@ for ac_prog in $with_editor 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_editor+:} 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_editor+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$editor"; then ac_cv_prog_editor="$editor" # Let the user override the test. else @@ -3239,11 +3614,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_editor="$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 @@ -3254,11 +3633,11 @@ fi fi editor=$ac_cv_prog_editor if test -n "$editor"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5 -$as_echo "$editor" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $editor" >&5 +printf "%s\n" "$editor" >&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 @@ -3273,9 +3652,10 @@ test -n "$editor" || editor="none" # # Check whether --with-echo was given. -if test "${with_echo+set}" = set; then : +if test ${with_echo+y} +then : withval=$with_echo; -else +else $as_nop with_echo="echo" fi @@ -3288,6 +3668,15 @@ ECHO=$with_echo # # check if the structure mallinfo is present in malloc.h SAVE=$CFLAGS + + + + + + + + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -3296,11 +3685,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 @@ -3308,11 +3698,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 @@ -3323,11 +3717,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 @@ -3336,11 +3730,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 @@ -3348,11 +3743,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 @@ -3363,11 +3762,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 @@ -3375,8 +3774,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 @@ -3389,11 +3788,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 @@ -3401,11 +3801,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 @@ -3416,11 +3820,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 @@ -3429,11 +3833,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 @@ -3442,15 +3847,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 @@ -3466,18 +3875,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 @@ -3488,11 +3897,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 @@ -3500,11 +3910,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 @@ -3515,11 +3929,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 @@ -3532,11 +3946,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 @@ -3544,11 +3959,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 @@ -3559,11 +3978,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 @@ -3575,34 +3994,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 @@ -3612,7 +4135,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 @@ -3620,7 +4143,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -3632,9 +4155,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.*" @@ -3655,11 +4178,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, @@ -3676,7 +4200,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 @@ -3692,44 +4216,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 @@ -3743,15 +4269,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 @@ -3760,7 +4286,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; @@ -3772,8 +4298,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 @@ -3781,10 +4307,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 @@ -3792,39 +4318,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) { ; @@ -3838,11 +4365,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 @@ -3851,31 +4379,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 @@ -3885,29 +4414,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 @@ -3916,57 +4449,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 @@ -3981,232 +4517,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]; - -/* 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; -} +$ac_c_conftest_c11_program _ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +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_c89=$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 - test "x$ac_cv_prog_cc_c89" != "xno" && break +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 -# 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 - - -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; } -# 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" - 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 +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. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error +$ac_c_conftest_c99_program _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue +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 -rm -f conftest.err conftest.i conftest.$ac_ext - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +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. */ -#include +$ac_c_conftest_c89_program _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break +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 : + ac_cv_prog_cc_c89=$ac_arg fi -rm -f conftest.err conftest.i conftest.$ac_ext - +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c89" != "xno" && break 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 : - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP +rm -f conftest.$ac_ext +CC=$ac_save_CC fi -{ $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. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : -else - # Broken: fails on valid input. -continue +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 -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 + ac_prog_cc_stdc=c89 fi -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 : - -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 ac_ext=c @@ -4216,280 +4664,51 @@ 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 - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +ac_header= ac_cache= +for ac_item in $ac_header_c_list do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - 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 -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ $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" - - -{ $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 - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - 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 -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + 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 - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ $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" - - -{ $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 - -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 : + 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 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 -# 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 -done +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes +then : -ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" -if test "x$ac_cv_header_malloc_h" = xyes; then : +printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" +if test "x$ac_cv_header_malloc_h" = xyes +then : have_malloc_h=1 -else +else $as_nop have_malloc_h=0 fi - CFLAGS=$SAVE if test "$have_malloc_h" -ne 0 then ac_fn_c_check_member "$LINENO" "struct mallinfo" "arena" "ac_cv_member_struct_mallinfo_arena" "#include " -if test "x$ac_cv_member_struct_mallinfo_arena" = xyes; then : - $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h +if test "x$ac_cv_member_struct_mallinfo_arena" = xyes +then : + printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h fi @@ -4829,11 +5048,12 @@ EOF Y_BRANCH="unknown" # Extract the first word of "git", so it can be a program name with args. set dummy git; 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_GIT_CHECK+:} 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_GIT_CHECK+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$GIT_CHECK"; then ac_cv_prog_GIT_CHECK="$GIT_CHECK" # Let the user override the test. else @@ -4841,11 +5061,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_GIT_CHECK="yes" - $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 @@ -4856,11 +5080,11 @@ fi fi GIT_CHECK=$ac_cv_prog_GIT_CHECK if test -n "$GIT_CHECK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_CHECK" >&5 -$as_echo "$GIT_CHECK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIT_CHECK" >&5 +printf "%s\n" "$GIT_CHECK" >&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 @@ -4874,42 +5098,60 @@ fi # # Checks for library functions. # ============================================================================ -for ac_header in malloc.h stdlib.h unistd.h string.h sys/time.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$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 +ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" +if test "x$ac_cv_header_malloc_h" = xyes +then : + printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes +then : + printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" +if test "x$ac_cv_header_unistd_h" = xyes +then : + printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" +if test "x$ac_cv_header_string_h" = xyes +then : + printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_time_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h + +fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : +if test "x$ac_cv_type_size_t" = xyes +then : -else +else $as_nop -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF +printf "%s\n" "#define size_t unsigned int" >>confdefs.h fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 -$as_echo_n "checking for working alloca.h... " >&6; } -if ${ac_cv_working_alloca_h+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +printf %s "checking for working alloca.h... " >&6; } +if test ${ac_cv_working_alloca_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; @@ -4917,52 +5159,52 @@ char *p = (char *) alloca (2 * sizeof (int)); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_working_alloca_h=yes -else +else $as_nop ac_cv_working_alloca_h=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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 -$as_echo "$ac_cv_working_alloca_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +printf "%s\n" "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then -$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 -$as_echo_n "checking for alloca... " >&6; } -if ${ac_cv_func_alloca_works+:} false; then : - $as_echo_n "(cached) " >&6 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +printf %s "checking for alloca... " >&6; } +if test ${ac_cv_func_alloca_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test $ac_cv_working_alloca_h = yes; then + ac_cv_func_alloca_works=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER +#include +#include +#ifndef alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca +# elif defined _MSC_VER # include # define alloca _alloca # else -# ifdef HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -void *alloca (size_t); -# endif -# endif +# ifdef __cplusplus +extern "C" # endif +void *alloca (size_t); # endif #endif int -main () +main (void) { char *p = (char *) alloca (1); if (p) return 0; @@ -4970,20 +5212,22 @@ char *p = (char *) alloca (1); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_func_alloca_works=yes -else +else $as_nop ac_cv_func_alloca_works=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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 -$as_echo "$ac_cv_func_alloca_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +printf "%s\n" "$ac_cv_func_alloca_works" >&6; } +fi if test $ac_cv_func_alloca_works = yes; then -$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions @@ -4993,58 +5237,19 @@ else ALLOCA=\${LIBOBJDIR}alloca.$ac_objext -$as_echo "#define C_ALLOCA 1" >>confdefs.h - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 -$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } -if ${ac_cv_os_cray+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if defined CRAY && ! defined CRAY2 -webecray -#else -wenotbecray -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "webecray" >/dev/null 2>&1; then : - ac_cv_os_cray=yes -else - ac_cv_os_cray=no -fi -rm -f conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 -$as_echo "$ac_cv_os_cray" >&6; } -if test $ac_cv_os_cray = yes; then - for ac_func in _getb67 GETB67 getb67; do - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - -cat >>confdefs.h <<_ACEOF -#define CRAY_STACKSEG_END $ac_func -_ACEOF - - break -fi +printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h - done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 -$as_echo_n "checking stack direction for C alloca... " >&6; } -if ${ac_cv_c_stack_direction+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +printf %s "checking stack direction for C alloca... " >&6; } +if test ${ac_cv_c_stack_direction+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : ac_cv_c_stack_direction=0 -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -5065,9 +5270,10 @@ main (int argc, char **argv) return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_c_stack_direction=1 -else +else $as_nop ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5075,25 +5281,24 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 -$as_echo "$ac_cv_c_stack_direction" >&6; } -cat >>confdefs.h <<_ACEOF -#define STACK_DIRECTION $ac_cv_c_stack_direction -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +printf "%s\n" "$ac_cv_c_stack_direction" >&6; } +printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 -$as_echo_n "checking for an ANSI C-conforming const... " >&6; } -if ${ac_cv_c_const+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +printf %s "checking for an ANSI C-conforming const... " >&6; } +if test ${ac_cv_c_const+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __cplusplus @@ -5106,7 +5311,7 @@ main () /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; - /* AIX XL C 1.02.0.0 rejects this. + /* IBM XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ @@ -5134,7 +5339,7 @@ main () iptr p = 0; ++p; } - { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; @@ -5150,47 +5355,50 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_const=yes -else +else $as_nop ac_cv_c_const=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_c_const" >&5 -$as_echo "$ac_cv_c_const" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +printf "%s\n" "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then -$as_echo "#define const /**/" >>confdefs.h +printf "%s\n" "#define const /**/" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 -$as_echo_n "checking for inline... " >&6; } -if ${ac_cv_c_inline+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +printf %s "checking for inline... " >&6; } +if test ${ac_cv_c_inline+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } +static $ac_kw foo_t static_foo (void) {return 0; } +$ac_kw foo_t foo (void) {return 0; } #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_inline=$ac_kw 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 test "$ac_cv_c_inline" != no && break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 -$as_echo "$ac_cv_c_inline" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +printf "%s\n" "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; @@ -5207,45 +5415,118 @@ _ACEOF ;; esac -for ac_header in stdlib.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" -if test "x$ac_cv_header_stdlib_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STDLIB_H 1 -_ACEOF + + + + # 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"` +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 fi +{ 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;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 -$as_echo_n "checking for GNU libc compatible malloc... " >&6; } -if ${ac_cv_func_malloc_0_nonnull+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_malloc_0_nonnull=no +{ 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 +fi + +fi +{ 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;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 +printf %s "checking for GNU libc compatible malloc... " >&6; } +if test ${ac_cv_func_malloc_0_nonnull+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : + case "$host_os" in # (( + # Guess yes on platforms where we know the result. + *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ + | hpux* | solaris* | cygwin* | mingw* | msys* ) + ac_cv_func_malloc_0_nonnull=yes ;; + # If we don't know, assume the worst. + *) ac_cv_func_malloc_0_nonnull=no ;; + esac +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#if defined STDC_HEADERS || defined HAVE_STDLIB_H -# include -#else -char *malloc (); -#endif +#include int -main () +main (void) { -return ! malloc (0); +void *p = malloc (0); + int result = !p; + free (p); + return result; ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_func_malloc_0_nonnull=yes -else +else $as_nop ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5253,14 +5534,15 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 -$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } -if test $ac_cv_func_malloc_0_nonnull = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } +if test $ac_cv_func_malloc_0_nonnull = yes +then : -$as_echo "#define HAVE_MALLOC 1" >>confdefs.h +printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h -else - $as_echo "#define HAVE_MALLOC 0" >>confdefs.h +else $as_nop + printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h case " $LIBOBJS " in *" malloc.$ac_objext "* ) ;; @@ -5269,50 +5551,47 @@ else esac -$as_echo "#define malloc rpl_malloc" >>confdefs.h - -fi - - -for ac_header in stdlib.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" -if test "x$ac_cv_header_stdlib_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STDLIB_H 1 -_ACEOF +printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h fi -done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 -$as_echo_n "checking for GNU libc compatible realloc... " >&6; } -if ${ac_cv_func_realloc_0_nonnull+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_realloc_0_nonnull=no -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 +printf %s "checking for GNU libc compatible realloc... " >&6; } +if test ${ac_cv_func_realloc_0_nonnull+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : + case "$host_os" in # (( + # Guess yes on platforms where we know the result. + *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ + | hpux* | solaris* | cygwin* | mingw* | msys* ) + ac_cv_func_realloc_0_nonnull=yes ;; + # If we don't know, assume the worst. + *) ac_cv_func_realloc_0_nonnull=no ;; + esac +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#if defined STDC_HEADERS || defined HAVE_STDLIB_H -# include -#else -char *realloc (); -#endif +#include int -main () +main (void) { -return ! realloc (0, 0); +void *p = realloc (0, 0); + int result = !p; + free (p); + return result; ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_func_realloc_0_nonnull=yes -else +else $as_nop ac_cv_func_realloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5320,14 +5599,15 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 -$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } -if test $ac_cv_func_realloc_0_nonnull = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 +printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; } +if test $ac_cv_func_realloc_0_nonnull = yes +then : -$as_echo "#define HAVE_REALLOC 1" >>confdefs.h +printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h -else - $as_echo "#define HAVE_REALLOC 0" >>confdefs.h +else $as_nop + printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h case " $LIBOBJS " in *" realloc.$ac_objext "* ) ;; @@ -5336,27 +5616,34 @@ else esac -$as_echo "#define realloc rpl_realloc" >>confdefs.h +printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 -$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } -if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 +printf %s "checking whether lstat correctly handles trailing slash... " >&6; } +if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y} +then : + printf %s "(cached) " >&6 +else $as_nop rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then - if test "$cross_compiling" = yes; then : - ac_cv_func_lstat_dereferences_slashed_symlink=no -else + if test "$cross_compiling" = yes +then : + case "$host_os" in # (( + # Guess yes on glibc systems. + *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;; + # If we don't know, assume the worst. + *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;; + esac +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int -main () +main (void) { struct stat sbuf; /* Linux will dereference the symlink and fail, as required by POSIX. @@ -5367,9 +5654,10 @@ struct stat sbuf; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_func_lstat_dereferences_slashed_symlink=yes -else +else $as_nop ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5384,14 +5672,12 @@ fi rm -f conftest.sym conftest.file fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 -$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 +printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && -cat >>confdefs.h <<_ACEOF -#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 -_ACEOF +printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then @@ -5403,19 +5689,21 @@ esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 -$as_echo_n "checking whether stat accepts an empty string... " >&6; } -if ${ac_cv_func_stat_empty_string_bug+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 +printf %s "checking whether stat accepts an empty string... " >&6; } +if test ${ac_cv_func_stat_empty_string_bug+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : ac_cv_func_stat_empty_string_bug=yes -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int -main () +main (void) { struct stat sbuf; return stat ("", &sbuf) == 0; @@ -5423,9 +5711,10 @@ struct stat sbuf; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_func_stat_empty_string_bug=no -else +else $as_nop ac_cv_func_stat_empty_string_bug=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5433,8 +5722,8 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 -$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 +printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; } if test $ac_cv_func_stat_empty_string_bug = yes; then case " $LIBOBJS " in *" stat.$ac_objext "* ) ;; @@ -5443,19 +5732,18 @@ if test $ac_cv_func_stat_empty_string_bug = yes; then esac -cat >>confdefs.h <<_ACEOF -#define HAVE_STAT_EMPTY_STRING_BUG 1 -_ACEOF +printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h 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: @@ -5471,20 +5759,20 @@ 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 # ============================================================================ # check size of pointers to int - needed to decide the size of integer # arrays in fortran holding C pointers for FFTW -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of a pointer" >&5 -$as_echo_n "checking for the size of a pointer... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the size of a pointer" >&5 +printf %s "checking for the size of a pointer... " >&6; } if test -z "$POINTER_SIZE"; then cat >pointertest.c <&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 ac_try="" else @@ -5510,12 +5798,10 @@ EOF ac_pointersize=`./pointertest.x`; rm -rf pointertest* -cat >>confdefs.h <<_ACEOF -#define POINTER_SIZE ${ac_pointersize} -_ACEOF +printf "%s\n" "#define POINTER_SIZE ${ac_pointersize}" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_pointersize} bytes" >&5 -$as_echo "${ac_pointersize} bytes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_pointersize} bytes" >&5 +printf "%s\n" "${ac_pointersize} bytes" >&6; } fi SIZEOF_INT_P=$ac_pointersize @@ -5531,11 +5817,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 @@ -5543,11 +5830,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 @@ -5558,11 +5849,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 @@ -5571,11 +5862,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 @@ -5583,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_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 @@ -5598,11 +5894,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 @@ -5610,8 +5906,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 @@ -5624,11 +5920,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 @@ -5636,11 +5933,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 @@ -5651,11 +5952,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 @@ -5664,11 +5965,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 @@ -5677,15 +5979,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 @@ -5701,18 +6007,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 @@ -5723,11 +6029,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 @@ -5735,11 +6042,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 @@ -5750,11 +6061,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 @@ -5767,11 +6078,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 @@ -5779,11 +6091,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 @@ -5794,11 +6110,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 @@ -5810,34 +6126,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 @@ -5847,20 +6267,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_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 @@ -5870,29 +6291,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 @@ -5901,57 +6326,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 @@ -5966,94 +6394,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_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. */ +$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 + +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 + +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. */ -#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]; - -/* 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; -} +$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 @@ -6063,87 +6541,18 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu # -# 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 - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - as_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 - -fi -{ $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;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ $as_echo "$as_me:${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 -fi - -fi -{ $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;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - hostname=`uname -n` # ============================================================================ # GNU Make MAKE="make" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 -$as_echo_n "checking for GNU make... " >&6; } -if ${_cv_gnu_make_command+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 +printf %s "checking for GNU make... " >&6; } +if test ${_cv_gnu_make_command+y} +then : + printf %s "(cached) " >&6 +else $as_nop _cv_gnu_make_command='' ; for a in "$MAKE" make gmake gnumake ; do if test -z "$a" ; then continue ; fi ; @@ -6154,14 +6563,14 @@ else done ; fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 -$as_echo "$_cv_gnu_make_command" >&6; } ; +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 +printf "%s\n" "$_cv_gnu_make_command" >&6; } ; if test "x$_cv_gnu_make_command" != "x" ; then ifGNUmake='' ; else ifGNUmake='#' ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 -$as_echo "\"Not found\"" >&6; }; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 +printf "%s\n" "\"Not found\"" >&6; }; fi @@ -6183,11 +6592,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; 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_AR+:} 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_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else @@ -6195,11 +6605,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_AR="${ac_tool_prefix}ar" - $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 @@ -6210,11 +6624,11 @@ fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +printf "%s\n" "$AR" >&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 @@ -6223,11 +6637,12 @@ if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; 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_AR+:} 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_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else @@ -6235,11 +6650,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_AR="ar" - $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 @@ -6250,11 +6669,11 @@ fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +printf "%s\n" "$ac_ct_AR" >&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_AR" = x; then @@ -6262,8 +6681,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 AR=$ac_ct_AR @@ -6281,7 +6700,8 @@ test -z "$AR_FLAGS" && AR_FLAGS="-r" # C options specific for driver.c # # Check whether --enable-options_check was given. -if test "${enable_options_check+set}" = set; then : +if test ${enable_options_check+y} +then : enableval=$enable_options_check; fi @@ -6305,11 +6725,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 @@ -6317,11 +6738,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 @@ -6332,11 +6757,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 @@ -6349,11 +6774,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 @@ -6361,11 +6787,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 @@ -6376,11 +6806,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 @@ -6392,8 +6822,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 @@ -6402,7 +6832,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 @@ -6412,7 +6842,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 @@ -6422,7 +6852,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 @@ -6431,11 +6861,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__ @@ -6444,43 +6875,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 @@ -6514,8 +6950,8 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the current OS is supported" >&5 -$as_echo_n "checking if the current OS is supported... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the current OS is supported" >&5 +printf %s "checking if the current OS is supported... " >&6; } #TIMER="ct_cclock.o" TIMER="ct_cptimer.o" case "${host}" in @@ -6549,31 +6985,31 @@ case "${host}" in if test -z "$F90SUFFIX"; then F90SUFFIX=".f90"; fi ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: Platform <${host}> is not supported." >&5 -$as_echo "$as_me: Platform <${host}> is not supported." >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: Please contact the $PACKAGE_NAME team at $PACKAGE_BUGREPORT" >&5 -$as_echo "$as_me: Please contact the $PACKAGE_NAME team at $PACKAGE_BUGREPORT" >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: providing either a list of compilers and options or" >&5 -$as_echo "$as_me: providing either a list of compilers and options or" >&6;} - { $as_echo "$as_me:${as_lineno-$LINENO}: a guest account on this machine." >&5 -$as_echo "$as_me: a guest account on this machine." >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Platform <${host}> is not supported." >&5 +printf "%s\n" "$as_me: Platform <${host}> is not supported." >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Please contact the $PACKAGE_NAME team at $PACKAGE_BUGREPORT" >&5 +printf "%s\n" "$as_me: Please contact the $PACKAGE_NAME team at $PACKAGE_BUGREPORT" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: providing either a list of compilers and options or" >&5 +printf "%s\n" "$as_me: providing either a list of compilers and options or" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: a guest account on this machine." >&5 +printf "%s\n" "$as_me: a guest account on this machine." >&6;} as_fn_error $? "stopping" "$LINENO" 5 ;; *) esac -{ $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; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: WIDESETUP: using build_os=\"$build_os\"" >&5 -$as_echo "$as_me: WIDESETUP: using build_os=\"$build_os\"" >&6;} -{ $as_echo "$as_me:${as_lineno-$LINENO}: WIDESETUP: using F90SUFFIX=\"$F90SUFFIX\"" >&5 -$as_echo "$as_me: WIDESETUP: using F90SUFFIX=\"$F90SUFFIX\"" >&6;} -{ $as_echo "$as_me:${as_lineno-$LINENO}: WIDESETUP: using AR=\"$AR\"" >&5 -$as_echo "$as_me: WIDESETUP: using AR=\"$AR\"" >&6;} -{ $as_echo "$as_me:${as_lineno-$LINENO}: WIDESETUP: using AR_FLAGS=\"$AR_FLAGS\"" >&5 -$as_echo "$as_me: WIDESETUP: using AR_FLAGS=\"$AR_FLAGS\"" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WIDESETUP: using build_os=\"$build_os\"" >&5 +printf "%s\n" "$as_me: WIDESETUP: using build_os=\"$build_os\"" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WIDESETUP: using F90SUFFIX=\"$F90SUFFIX\"" >&5 +printf "%s\n" "$as_me: WIDESETUP: using F90SUFFIX=\"$F90SUFFIX\"" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WIDESETUP: using AR=\"$AR\"" >&5 +printf "%s\n" "$as_me: WIDESETUP: using AR=\"$AR\"" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WIDESETUP: using AR_FLAGS=\"$AR_FLAGS\"" >&5 +printf "%s\n" "$as_me: WIDESETUP: using AR_FLAGS=\"$AR_FLAGS\"" >&6;} @@ -6589,7 +7025,8 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu # # Check whether --with-f90ext was given. -if test "${with_f90ext+set}" = set; then : +if test ${with_f90ext+y} +then : withval=$with_f90ext; fi @@ -6601,11 +7038,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 flag to compile .f90 files" >&5 -$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } -if ${ac_cv_fc_srcext_f90+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5 +printf %s "checking for Fortran flag to compile .f90 files... " >&6; } +if test ${ac_cv_fc_srcext_f90+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=f90 ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= @@ -6621,17 +7059,18 @@ for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : ac_cv_fc_srcext_f90=$ac_flag; break 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 done rm -f conftest.$ac_objext conftest.f90 ac_fcflags_srcext=$ac_fcflags_srcext_save fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 -$as_echo "$ac_cv_fc_srcext_f90" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 +printf "%s\n" "$ac_cv_fc_srcext_f90" >&6; } if test "x$ac_cv_fc_srcext_f90" = xunknown; then as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 else @@ -6657,11 +7096,12 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu 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 flag to compile .f files" >&5 -$as_echo_n "checking for Fortran flag to compile .f files... " >&6; } -if ${ac_cv_fc_srcext_f+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f files" >&5 +printf %s "checking for Fortran flag to compile .f files... " >&6; } +if test ${ac_cv_fc_srcext_f+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=f ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= @@ -6677,17 +7117,18 @@ for ac_flag in none -qsuffix=f=f -Tf "-x $ac_try"; do end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : ac_cv_fc_srcext_f=$ac_flag; break 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 done rm -f conftest.$ac_objext conftest.f ac_fcflags_srcext=$ac_fcflags_srcext_save fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f" >&5 -$as_echo "$ac_cv_fc_srcext_f" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f" >&5 +printf "%s\n" "$ac_cv_fc_srcext_f" >&6; } if test "x$ac_cv_fc_srcext_f" = xunknown; then as_fn_error $? "Fortran could not compile .f files" "$LINENO" 5 else @@ -6782,10 +7223,10 @@ esac # FCVERSION=`echo "$FCVERSION" | sed "/^\s*$/d" | head -n 1` # -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $FC kind and version" >&5 -$as_echo_n "checking for $FC kind and version... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCKIND $FCVERSION $INTELVERSION" >&5 -$as_echo "$FCKIND $FCVERSION $INTELVERSION" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $FC kind and version" >&5 +printf %s "checking for $FC kind and version... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FCKIND $FCVERSION $INTELVERSION" >&5 +printf "%s\n" "$FCKIND $FCVERSION $INTELVERSION" >&6; } @@ -6802,7 +7243,8 @@ $as_echo "$FCKIND $FCVERSION $INTELVERSION" >&6; } if test -z "${CFLAGS}"; then CFLAGS="-O2"; fi # # Check whether --enable-debug-flags was given. -if test "${enable_debug_flags+set}" = set; then : +if test ${enable_debug_flags+y} +then : enableval=$enable_debug_flags; fi @@ -7224,35 +7666,35 @@ esac # if test "x$build_os" = "xaix" ; then NETCDFFLAGS="$NETCDFFLAGS -DIBMR2Fortran" ; fi # -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific $FC flags" >&5 -$as_echo_n "checking for specific $FC flags... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific $FC flags" >&5 +printf %s "checking for specific $FC flags... " >&6; } if test -z "${FCFLAGS}"; then FCFLAGS="$SYSFLAGS" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCFLAGS" >&5 -$as_echo "$FCFLAGS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FCFLAGS" >&5 +printf "%s\n" "$FCFLAGS" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: (User-defined) $FCFLAGS" >&5 -$as_echo "(User-defined) $FCFLAGS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (User-defined) $FCFLAGS" >&5 +printf "%s\n" "(User-defined) $FCFLAGS" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific Open-MP flags" >&5 -$as_echo_n "checking for specific Open-MP flags... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPFLAGS" >&5 -$as_echo "$OMPFLAGS" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific Open-MP flags" >&5 +printf %s "checking for specific Open-MP flags... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OMPFLAGS" >&5 +printf "%s\n" "$OMPFLAGS" >&6; } # -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific $CC flags" >&5 -$as_echo_n "checking for specific $CC flags... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5 -$as_echo "$CFLAGS" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific $CC flags" >&5 +printf %s "checking for specific $CC flags... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5 +printf "%s\n" "$CFLAGS" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific unoptimized flags" >&5 -$as_echo_n "checking for specific unoptimized flags... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific unoptimized flags" >&5 +printf %s "checking for specific unoptimized flags... " >&6; } if test -z "${UFLAGS}"; then FCUFLAGS="$FUFLAGS" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCUFLAGS" >&5 -$as_echo "$FCUFLAGS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FCUFLAGS" >&5 +printf "%s\n" "$FCUFLAGS" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: (User-defined) $UFLAGS" >&5 -$as_echo "(User-defined) $UFLAGS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (User-defined) $UFLAGS" >&5 +printf "%s\n" "(User-defined) $UFLAGS" >&6; } FCUFLAGS="$UFLAGS" FUFLAGS="$UFLAGS" fi @@ -7263,10 +7705,10 @@ if test x"$enable_debug_flags" = "xyes"; then HDF5_MODE="debug"; fi # -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific NETCDF flags" >&5 -$as_echo_n "checking for specific NETCDF flags... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETCDFFLAGS" >&5 -$as_echo "$NETCDFFLAGS" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific NETCDF flags" >&5 +printf %s "checking for specific NETCDF flags... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NETCDFFLAGS" >&5 +printf "%s\n" "$NETCDFFLAGS" >&6; } # @@ -7291,23 +7733,26 @@ FCFLAGS="$acx_save_fcflags $F90EXTFLAGS" GPU_SUPPORT="no_gpu" # # Check whether --enable-cuda_fortran was given. -if test "${enable_cuda_fortran+set}" = set; then : +if test ${enable_cuda_fortran+y} +then : enableval=$enable_cuda_fortran; -else +else $as_nop enable_cuda_fortran="no" fi # Check whether --enable-openacc was given. -if test "${enable_openacc+set}" = set; then : +if test ${enable_openacc+y} +then : enableval=$enable_openacc; -else +else $as_nop enable_openacc="no" fi # Check whether --enable-openmp5 was given. -if test "${enable_openmp5+set}" = set; then : +if test ${enable_openmp5+y} +then : enableval=$enable_openmp5; -else +else $as_nop enable_openmp5="no" fi @@ -7326,7 +7771,8 @@ if test x"$enable_openmp5" != "xno" ; then GPU_SUPPORT="openmp5" ; fi # OpenMP # # Check whether --enable-open-mp was given. -if test "${enable_open_mp+set}" = set; then : +if test ${enable_open_mp+y} +then : enableval=$enable_open_mp; fi @@ -7348,17 +7794,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 @@ -7376,13 +7824,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* @@ -7449,23 +7897,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 @@ -7484,13 +7933,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* @@ -7567,9 +8016,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 ;; @@ -7582,9 +8032,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" @@ -7599,9 +8050,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 ;; @@ -7619,7 +8085,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 @@ -7628,9 +8094,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 @@ -7645,15 +8112,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 @@ -7665,7 +8134,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 @@ -7680,8 +8149,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" @@ -7696,11 +8165,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 @@ -7723,19 +8193,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 @@ -7752,17 +8223,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 @@ -7775,25 +8247,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 @@ -7808,11 +8279,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 @@ -7821,7 +8293,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 @@ -7842,9 +8315,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 @@ -7855,17 +8325,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 @@ -7900,9 +8371,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 @@ -7913,17 +8381,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} @@ -7953,17 +8422,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' @@ -7986,7 +8455,8 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #define F90_FUNC_(name,NAME) name ## _ void F90_FUNC_(ftest, FTEST)(){} _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : mv conftest.$ac_objext ftest.$ac_objext ac_ext=${ac_fc_srcext-f} @@ -8001,10 +8471,11 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu call ftest end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : c_success="yes"; msg="test_"; save="$CFLAGS"; CFLAGS="$save -D_C_US" 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="$save_LIBS" ac_ext=c @@ -8015,7 +8486,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu rm -f ftest.$ac_objext 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 if test "$c_success" = "no" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8023,7 +8494,8 @@ if test "$c_success" = "no" ; then #define F90_FUNC_(name,NAME) name void F90_FUNC_(ftest, FTEST)(){} _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : mv conftest.$ac_objext ftest.$ac_objext ac_ext=${ac_fc_srcext-f} @@ -8038,10 +8510,11 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu call ftest end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : c_success="yes"; msg="test" 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="$save" ac_ext=c @@ -8052,12 +8525,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu rm -f ftest.$ac_objext 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}: checking for external C routine (test) naming scheme" >&5 -$as_echo_n "checking for external C routine (test) naming scheme... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 -$as_echo "$msg" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for external C routine (test) naming scheme" >&5 +printf %s "checking for external C routine (test) naming scheme... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +printf "%s\n" "$msg" >&6; } ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' @@ -8065,48 +8538,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 @@ -8165,11 +8638,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 flag needed to accept free-form source" >&5 -$as_echo_n "checking for Fortran flag needed to accept free-form source... " >&6; } -if ${ac_cv_fc_freeform+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran flag needed to accept free-form source" >&5 +printf %s "checking for Fortran flag needed to accept free-form source... " >&6; } +if test ${ac_cv_fc_freeform+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_fc_freeform=unknown ac_fc_freeform_FCFLAGS_save=$FCFLAGS for ac_flag in none -ffree-form -FR -free -qfree -Mfree -Mfreeform \ @@ -8184,17 +8658,18 @@ do 'world.' end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : ac_cv_fc_freeform=$ac_flag; break 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 done rm -f conftest.err conftest.$ac_objext conftest.$ac_ext FCFLAGS=$ac_fc_freeform_FCFLAGS_save fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_freeform" >&5 -$as_echo "$ac_cv_fc_freeform" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_freeform" >&5 +printf "%s\n" "$ac_cv_fc_freeform" >&6; } if test "x$ac_cv_fc_freeform" = xunknown; then as_fn_error 77 "Fortran does not accept free-form source" "$LINENO" 5 else @@ -8219,11 +8694,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu #============================================================================= # FLAGS TO INCLUDE MODULE -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion flag" >&5 -$as_echo_n "checking fortran 90 modules inclusion flag... " >&6; } -if ${ax_cv_f90_modflag+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion flag" >&5 +printf %s "checking fortran 90 modules inclusion flag... " >&6; } +if test ${ax_cv_f90_modflag+y} +then : + printf %s "(cached) " >&6 +else $as_nop 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' @@ -8246,10 +8722,11 @@ cat > conftest.$ac_ext <<_ACEOF end module conftest_module _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : 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 cd .. ax_cv_f90_modflag="not found" for ax_flag in "-I" "-M" "-p"; do @@ -8265,17 +8742,160 @@ for ax_flag in "-I" "-M" "-p"; do end program conftest_program _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : - ax_cv_f90_modflag="$ax_flag" +if ac_fn_fc_try_compile "$LINENO" +then : + ax_cv_f90_modflag="$ax_flag" +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + FCFLAGS="$ax_save_FCFLAGS" + fi +done +rm -fr tmpdir_$i +if test "$ax_cv_f90_modflag" = "not found" ; then + as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" 5 +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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5 +printf "%s\n" "$ax_cv_f90_modflag" >&6; } +IFLAG="$ax_cv_f90_modflag" +if test -z "$IFLAG" ; then IFLAG="-I" ; fi + +# +# ============================================================================ +# CPP check & flags +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; } +# 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 + 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. + # 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 + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO" +then : + +else $as_nop + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO" +then : + # Broken: success on invalid input. +continue +else $as_nop + # Passes both tests. +ac_preproc_ok=: +break +fi +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 : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ 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. + # 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 + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO" +then : + +else $as_nop + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO" +then : + # Broken: success on invalid input. +continue +else $as_nop + # Passes both tests. +ac_preproc_ok=: +break fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - FCFLAGS="$ax_save_FCFLAGS" - fi +rm -f conftest.err conftest.i conftest.$ac_ext + done -rm -fr tmpdir_$i -if test "$ax_cv_f90_modflag" = "not found" ; then - as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" 5 +# 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 : + +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 + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8283,15 +8903,6 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5 -$as_echo "$ax_cv_f90_modflag" >&6; } -IFLAG="$ax_cv_f90_modflag" -if test -z "$IFLAG" ; then IFLAG="-I" ; fi - -# -# ============================================================================ -# CPP check & flags # case "${CPP}" in @@ -8343,8 +8954,8 @@ case "${CPP}" in esac # # -{ $as_echo "$as_me:${as_lineno-$LINENO}: testing C-preprocessor $CPP $CPPFLAGS" >&5 -$as_echo "$as_me: testing C-preprocessor $CPP $CPPFLAGS" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: testing C-preprocessor $CPP $CPPFLAGS" >&5 +printf "%s\n" "$as_me: testing C-preprocessor $CPP $CPPFLAGS" >&6;} # # TESTS #======= @@ -8361,8 +8972,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu # acx_C_ok=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C precompiler works on C source" >&5 -$as_echo_n "checking if C precompiler works on C source... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C precompiler works on C source" >&5 +printf %s "checking if C precompiler works on C source... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8374,14 +8985,15 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #endif _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : acx_C_ok=yes -else +else $as_nop CPP_TESTS_PASSED=no fi rm -f conftest.err conftest.i conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_C_ok" >&5 -$as_echo "$acx_C_ok" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_C_ok" >&5 +printf "%s\n" "$acx_C_ok" >&6; } # if test "x$CPP_TESTS_PASSED" = xno ; then as_fn_error $? "Found C precompiler problems in processing C source." "$LINENO" 5; @@ -8432,8 +9044,8 @@ esac # if test -z "$FPP" ; then FPP="cpp -E -P -ansi"; fi # -{ $as_echo "$as_me:${as_lineno-$LINENO}: testing FC-preprocessor $FPP" >&5 -$as_echo "$as_me: testing FC-preprocessor $FPP" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: testing FC-preprocessor $FPP" >&5 +printf "%s\n" "$as_me: testing FC-preprocessor $FPP" >&6;} # # TESTS #======= @@ -8442,8 +9054,8 @@ $as_echo "$as_me: testing FC-preprocessor $FPP" >&6;} # acx_FC_ok=yes FPP_TESTS_PASSED=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if FC precompiler works on FC source" >&5 -$as_echo_n "checking if FC precompiler works on FC source... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if FC precompiler works on FC source" >&5 +printf %s "checking if FC precompiler works on FC source... " >&6; } cat > conftest.F << EOF_ program conftest character (1) :: a @@ -8470,8 +9082,8 @@ else acx_FC_ok=no ; FPP_TESTS_PASSED=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_FC_ok" >&5 -$as_echo "$acx_FC_ok" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_FC_ok" >&5 +printf "%s\n" "$acx_FC_ok" >&6; } # if test "x$FPP_TESTS_PASSED" = xno ; then as_fn_error $? "Found FC precompiler problems in processing FC source." "$LINENO" 5; @@ -8500,11 +9112,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_F77+:} 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_F77+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else @@ -8512,11 +9125,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_F77="$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 @@ -8527,11 +9144,11 @@ fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 -$as_echo "$F77" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 +printf "%s\n" "$F77" >&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 @@ -8544,11 +9161,12 @@ if test -z "$F77"; 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_F77+:} 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_F77+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else @@ -8556,11 +9174,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_F77="$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 @@ -8571,11 +9193,11 @@ fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 -$as_echo "$ac_ct_F77" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 +printf "%s\n" "$ac_ct_F77" >&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 @@ -8587,8 +9209,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 F77=$ac_ct_F77 @@ -8597,7 +9219,7 @@ fi # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -8607,7 +9229,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 @@ -8617,7 +9239,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 @@ -8626,11 +9248,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 77 compiler" >&5 -$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } -if ${ac_cv_f77_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 77" >&5 +printf %s "checking whether the compiler supports GNU Fortran 77... " >&6; } +if test ${ac_cv_f77_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ @@ -8639,43 +9262,48 @@ else end _ACEOF -if ac_fn_f77_try_compile "$LINENO"; then : +if ac_fn_f77_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_f77_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 -$as_echo "$ac_cv_f77_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_f77_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_f77_compiler_gnu + ac_ext=$ac_save_ext -ac_test_FFLAGS=${FFLAGS+set} +ac_test_FFLAGS=${FFLAGS+y} ac_save_FFLAGS=$FFLAGS FFLAGS= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 -$as_echo_n "checking whether $F77 accepts -g... " >&6; } -if ${ac_cv_prog_f77_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 +printf %s "checking whether $F77 accepts -g... " >&6; } +if test ${ac_cv_prog_f77_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop FFLAGS=-g cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_f77_try_compile "$LINENO"; then : +if ac_fn_f77_try_compile "$LINENO" +then : ac_cv_prog_f77_g=yes -else +else $as_nop ac_cv_prog_f77_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_f77_g" >&5 -$as_echo "$ac_cv_prog_f77_g" >&6; } -if test "$ac_test_FFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 +printf "%s\n" "$ac_cv_prog_f77_g" >&6; } +if test $ac_test_FFLAGS; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then @@ -8701,23 +9329,24 @@ ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler $F77 works" >&5 -$as_echo_n "checking if Fortran 77 compiler $F77 works... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler $F77 works" >&5 +printf %s "checking if Fortran 77 compiler $F77 works... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main integer ierr end _ACEOF -if ac_fn_f77_try_compile "$LINENO"; then : - acx_f77_ok="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - acx_f77_ok="no"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; }; +if ac_fn_f77_try_compile "$LINENO" +then : + acx_f77_ok="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else $as_nop + acx_f77_ok="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; }; as_fn_error $? "Fortran 77 compiler does not work. Impossible to continue." "$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 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8753,7 +9382,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu mpibuild="yes" # Check whether --enable-mpi was given. -if test "${enable_mpi+set}" = set; then : +if test ${enable_mpi+y} +then : enableval=$enable_mpi; fi @@ -8783,11 +9413,12 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu 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_MPIFC_test+:} 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_MPIFC_test+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$MPIFC_test"; then ac_cv_prog_MPIFC_test="$MPIFC_test" # Let the user override the test. else @@ -8795,11 +9426,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_MPIFC_test="$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 @@ -8810,11 +9445,11 @@ fi fi MPIFC_test=$ac_cv_prog_MPIFC_test if test -n "$MPIFC_test"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC_test" >&5 -$as_echo "$MPIFC_test" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIFC_test" >&5 +printf "%s\n" "$MPIFC_test" >&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 @@ -8823,12 +9458,13 @@ done test -n "$MPIFC_test" || MPIFC_test="$FC" else - as_ac_File=`$as_echo "ac_cv_file_$MPIFC" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPIFC" >&5 -$as_echo_n "checking for $MPIFC... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_$MPIFC" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPIFC" >&5 +printf %s "checking for $MPIFC... " >&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 "$MPIFC"; then @@ -8838,20 +9474,22 @@ 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 : MPIFC_test=$MPIFC -else +else $as_nop for ac_prog in $MPIFC mpipgifort mpiifort mpifort mpif90 mpxlf90 mpxlf mpf90 mpxlf95 mpxlf_r 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_MPIFC_test+:} 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_MPIFC_test+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$MPIFC_test"; then ac_cv_prog_MPIFC_test="$MPIFC_test" # Let the user override the test. else @@ -8859,11 +9497,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_MPIFC_test="$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 @@ -8874,11 +9516,11 @@ fi fi MPIFC_test=$ac_cv_prog_MPIFC_test if test -n "$MPIFC_test"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC_test" >&5 -$as_echo "$MPIFC_test" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIFC_test" >&5 +printf "%s\n" "$MPIFC_test" >&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 @@ -8894,22 +9536,23 @@ fi if test "$acx_mpi_ok" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 -$as_echo_n "checking for MPI_Init... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 +printf %s "checking for MPI_Init... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call MPI_init end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_mpi_ok="yes" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&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: yes" >&5 +printf "%s\n" "yes" >&6; } +else $as_nop + { 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 \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi @@ -8929,10 +9572,11 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working mpif.h" >&5 -$as_echo_n "checking for a working mpif.h... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working mpif.h" >&5 +printf %s "checking for a working mpif.h... " >&6; } save_ldflags="$LDFLAGS" - if test "$LIB_MPI"; then : + if test "$LIB_MPI" +then : LDFLAGS="${LDFLAGS} -L${LIB_MPI}" fi cat > conftest.$ac_ext <<_ACEOF @@ -8943,21 +9587,23 @@ fi call MPI_Init(ierr) end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : - HAVE_MPIF_H=1; acx_mpi_ok="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - HAVE_MPIF_H=0; acx_mpi_ok="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +if ac_fn_fc_try_compile "$LINENO" +then : + HAVE_MPIF_H=1; acx_mpi_ok="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else $as_nop + HAVE_MPIF_H=0; acx_mpi_ok="no" ; { 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 if test "$acx_mpi_ok" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working mpi.h" >&5 -$as_echo_n "checking for a working mpi.h... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working mpi.h" >&5 +printf %s "checking for a working mpi.h... " >&6; } save_ldflags="$LDFLAGS" - if test "$LIB_MPI"; then : + if test "$LIB_MPI" +then : LDFLAGS="${LDFLAGS} -L${LIB_MPI}" fi cat > conftest.$ac_ext <<_ACEOF @@ -8968,20 +9614,22 @@ fi call MPI_Init(ierr) end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : - HAVE_MPI_H=1; acx_mpi_ok="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - HAVE_MPI_H=0; acx_mpi_ok="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +if ac_fn_fc_try_compile "$LINENO" +then : + HAVE_MPI_H=1; acx_mpi_ok="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else $as_nop + HAVE_MPI_H=0; acx_mpi_ok="no" ; { 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;fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext;fi if test "$acx_mpi_ok" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working mpi module" >&5 -$as_echo_n "checking for a working mpi module... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working mpi module" >&5 +printf %s "checking for a working mpi module... " >&6; } save_ldflags="$LDFLAGS" - if test "$LIB_MPI"; then : + if test "$LIB_MPI" +then : LDFLAGS="${LDFLAGS} -L${LIB_MPI}" fi cat > conftest.$ac_ext <<_ACEOF @@ -8992,14 +9640,15 @@ fi call MPI_Init(ierr) end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : - HAVE_MPI_MOD=1; acx_mpi_ok="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - HAVE_MPI_MOD=0; acx_mpi_ok="no"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +if ac_fn_fc_try_compile "$LINENO" +then : + HAVE_MPI_MOD=1; acx_mpi_ok="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else $as_nop + HAVE_MPI_MOD=0; acx_mpi_ok="no"; { 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;fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext;fi # # @@ -9011,12 +9660,12 @@ fi # # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test "$acx_mpi_ok" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a FORTRAN mpi test program. YAMBO serial only." >&5 -$as_echo "$as_me: WARNING: could not compile a FORTRAN mpi test program. YAMBO serial only." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a FORTRAN mpi test program. YAMBO serial only." >&5 +printf "%s\n" "$as_me: WARNING: could not compile a FORTRAN mpi test program. YAMBO serial only." >&2;} : else -$as_echo "#define HAVE_MPI 1" >>confdefs.h +printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h : fi @@ -9047,12 +9696,13 @@ ac_compiler_gnu=$ac_cv_f77_compiler_gnu if ! test x"$MPIF77" = "x" ; then - as_ac_File=`$as_echo "ac_cv_file_$MPIF77" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPIF77" >&5 -$as_echo_n "checking for $MPIF77... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_$MPIF77" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPIF77" >&5 +printf %s "checking for $MPIF77... " >&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 "$MPIF77"; then @@ -9062,20 +9712,22 @@ 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 : MPIF77_test=$MPIF77 -else +else $as_nop for ac_prog in $MPIF77 $MPIFC mpipgifort mpiifort mpifort mpif77 hf77 mpxlf mpf77 mpif90 mpf90 mpxlf90 mpxlf95 mpxlf_r cmpifc cmpif90c 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_MPIF77_test+:} 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_MPIF77_test+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$MPIF77_test"; then ac_cv_prog_MPIF77_test="$MPIF77_test" # Let the user override the test. else @@ -9083,11 +9735,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_MPIF77_test="$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 @@ -9098,11 +9754,11 @@ fi fi MPIF77_test=$ac_cv_prog_MPIF77_test if test -n "$MPIF77_test"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 -$as_echo "$MPIF77_test" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 +printf "%s\n" "$MPIF77_test" >&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 @@ -9113,12 +9769,13 @@ test -n "$MPIF77_test" || MPIF77_test="$F77" fi elif ! test x"$MPIFC" = "x" ; then - as_ac_File=`$as_echo "ac_cv_file_$MPIFC" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPIFC" >&5 -$as_echo_n "checking for $MPIFC... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_$MPIFC" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPIFC" >&5 +printf %s "checking for $MPIFC... " >&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 "$MPIFC"; then @@ -9128,20 +9785,22 @@ 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 : MPIF77_test=$MPIFC -else +else $as_nop for ac_prog in $MPIF77 $MPIFC mpipgifort mpiifort mpifort mpif77 hf77 mpxlf mpf77 mpif90 mpf90 mpxlf90 mpxlf95 mpxlf_r cmpifc cmpif90c 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_MPIF77_test+:} 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_MPIF77_test+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$MPIF77_test"; then ac_cv_prog_MPIF77_test="$MPIF77_test" # Let the user override the test. else @@ -9149,11 +9808,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_MPIF77_test="$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 @@ -9164,11 +9827,11 @@ fi fi MPIF77_test=$ac_cv_prog_MPIF77_test if test -n "$MPIF77_test"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 -$as_echo "$MPIF77_test" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 +printf "%s\n" "$MPIF77_test" >&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 @@ -9183,11 +9846,12 @@ fi 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_MPIF77_test+:} 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_MPIF77_test+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$MPIF77_test"; then ac_cv_prog_MPIF77_test="$MPIF77_test" # Let the user override the test. else @@ -9195,11 +9859,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_MPIF77_test="$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 @@ -9210,11 +9878,11 @@ fi fi MPIF77_test=$ac_cv_prog_MPIF77_test if test -n "$MPIF77_test"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 -$as_echo "$MPIF77_test" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 +printf "%s\n" "$MPIF77_test" >&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 @@ -9228,22 +9896,23 @@ test -n "$MPIF77_test" || MPIF77_test="$F77" if test "$acx_mpi_ok" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 -$as_echo_n "checking for MPI_Init... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 +printf %s "checking for MPI_Init... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call MPI_Init end _ACEOF -if ac_fn_f77_try_link "$LINENO"; then : +if ac_fn_f77_try_link "$LINENO" +then : ac_mpi_ok="yes" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&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: yes" >&5 +printf "%s\n" "yes" >&6; } +else $as_nop + { 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 \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi @@ -9279,12 +9948,12 @@ fi # # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test "$acx_mpi_ok" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a FORTRAN 77 mpi test program. YAMBO serial only." >&5 -$as_echo "$as_me: WARNING: could not compile a FORTRAN 77 mpi test program. YAMBO serial only." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a FORTRAN 77 mpi test program. YAMBO serial only." >&5 +printf "%s\n" "$as_me: WARNING: could not compile a FORTRAN 77 mpi test program. YAMBO serial only." >&2;} : else -$as_echo "#define HAVE_MPI 1" >>confdefs.h +printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h : fi @@ -9320,11 +9989,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu 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_MPICC_test+:} 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_MPICC_test+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$MPICC_test"; then ac_cv_prog_MPICC_test="$MPICC_test" # Let the user override the test. else @@ -9332,11 +10002,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_MPICC_test="$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 @@ -9347,11 +10021,11 @@ fi fi MPICC_test=$ac_cv_prog_MPICC_test if test -n "$MPICC_test"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC_test" >&5 -$as_echo "$MPICC_test" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPICC_test" >&5 +printf "%s\n" "$MPICC_test" >&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 @@ -9360,12 +10034,13 @@ done test -n "$MPICC_test" || MPICC_test="$CC" else - as_ac_File=`$as_echo "ac_cv_file_$MPICC" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPICC" >&5 -$as_echo_n "checking for $MPICC... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_$MPICC" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPICC" >&5 +printf %s "checking for $MPICC... " >&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 "$MPICC"; then @@ -9375,24 +10050,26 @@ 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 : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$MPICC" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$MPICC" | $as_tr_cpp` 1 _ACEOF MPICC_test=$MPICC -else +else $as_nop for ac_prog in $MPICC mpipgicc mpiicc mpicc hcc mpcc mpcc_r mpxlc cmpicc 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_MPICC_test+:} 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_MPICC_test+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$MPICC_test"; then ac_cv_prog_MPICC_test="$MPICC_test" # Let the user override the test. else @@ -9400,11 +10077,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_MPICC_test="$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 @@ -9415,11 +10096,11 @@ fi fi MPICC_test=$ac_cv_prog_MPICC_test if test -n "$MPICC_test"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC_test" >&5 -$as_echo "$MPICC_test" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPICC_test" >&5 +printf "%s\n" "$MPICC_test" >&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 @@ -9436,7 +10117,8 @@ fi if test "$acx_mpi_ok" = "yes"; 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 : acx_mpi_ok="yes" fi @@ -9451,8 +10133,8 @@ fi if test x"$MPICC" != x"mpipgicc" ; then echo > /dev/null if test "$acx_mpi_ok" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working mpi.h" >&5 -$as_echo_n "checking for a working mpi.h... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working mpi.h" >&5 +printf %s "checking for a working mpi.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -9465,21 +10147,22 @@ $as_echo_n "checking for a working mpi.h... " >&6; } #endif #endif int -main () +main (void) { #include ; 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; };acx_mpi_ok="yes" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } ;acx_mpi_ok="no" +if ac_fn_c_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; };acx_mpi_ok="yes" +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;acx_mpi_ok="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 else acx_mpi_ok="yes" @@ -9504,12 +10187,12 @@ fi # # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test "$acx_mpi_ok" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a C mpi test program. YAMBO serial only." >&5 -$as_echo "$as_me: WARNING: could not compile a C mpi test program. YAMBO serial only." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a C mpi test program. YAMBO serial only." >&5 +printf "%s\n" "$as_me: WARNING: could not compile a C mpi test program. YAMBO serial only." >&2;} : else -$as_echo "#define HAVE_MPI 1" >>confdefs.h +printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h : fi @@ -9548,10 +10231,10 @@ if test -e "conftest.x"; then else MPIKIND="undefined" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI version" >&5 -$as_echo_n "checking for MPI version... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIKIND" >&5 -$as_echo "$MPIKIND" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI version" >&5 +printf %s "checking for MPI version... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIKIND" >&5 +printf "%s\n" "$MPIKIND" >&6; } MPI_PATH=`which $CC |sed "s/bin\/$CC//g"` @@ -9577,25 +10260,29 @@ 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; fi # Check whether --with-mpi_path was given. -if test "${with_mpi_path+set}" = set; then : +if test ${with_mpi_path+y} +then : withval=$with_mpi_path; fi # Check whether --with-mpi_libdir was given. -if test "${with_mpi_libdir+set}" = set; then : +if test ${with_mpi_libdir+y} +then : withval=$with_mpi_libdir; fi # Check whether --with-mpi_includedir was given. -if test "${with_mpi_includedir+set}" = set; then : +if test ${with_mpi_includedir+y} +then : withval=$with_mpi_includedir; fi @@ -9671,12 +10358,13 @@ if test "$mpibuild" = "yes"; then if test x"$MPI_INC_DIR" = "x" ; then for MPI_INC_DIR in $MPI_INC_DIRS_LIST; do if ! test -e "$MPI_INC_DIR"; then continue; fi - as_ac_File=`$as_echo "ac_cv_file_$MPI_INC_DIR/mpif.h" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPI_INC_DIR/mpif.h" >&5 -$as_echo_n "checking for $MPI_INC_DIR/mpif.h... " >&6; } -if eval \${$as_ac_File+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_File=`printf "%s\n" "ac_cv_file_$MPI_INC_DIR/mpif.h" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPI_INC_DIR/mpif.h" >&5 +printf %s "checking for $MPI_INC_DIR/mpif.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 "$MPI_INC_DIR/mpif.h"; then @@ -9686,11 +10374,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 : + { 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 : mpif_found_tmp="yes" -else +else $as_nop mpif_found_tmp="no" fi @@ -9909,9 +10598,10 @@ DRIVER_INCS="-I$PWD/lib/yambo/Ydriver/include/ -I$PWD/include/driver" # # Check whether --with-ydriver-branch was given. -if test "${with_ydriver_branch+set}" = set; then : +if test ${with_ydriver_branch+y} +then : withval=$with_ydriver_branch; -else +else $as_nop with_ydriver_branch=none fi @@ -9933,7 +10623,8 @@ fi # # Check whether --enable-ydb was given. -if test "${enable_ydb+set}" = set; then : +if test ${enable_ydb+y} +then : enableval=$enable_ydb; fi @@ -9947,11 +10638,12 @@ if test "x$enable_ydb" = "xyes"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}git", so it can be a program name with args. set dummy ${ac_tool_prefix}git; 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_GIT+:} 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_GIT+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$GIT"; then ac_cv_prog_GIT="$GIT" # Let the user override the test. else @@ -9959,11 +10651,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_GIT="${ac_tool_prefix}git" - $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 @@ -9974,11 +10670,11 @@ fi fi GIT=$ac_cv_prog_GIT if test -n "$GIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 -$as_echo "$GIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 +printf "%s\n" "$GIT" >&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 @@ -9987,11 +10683,12 @@ if test -z "$ac_cv_prog_GIT"; then ac_ct_GIT=$GIT # Extract the first word of "git", so it can be a program name with args. set dummy git; 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_GIT+:} 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_GIT+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_GIT"; then ac_cv_prog_ac_ct_GIT="$ac_ct_GIT" # Let the user override the test. else @@ -9999,11 +10696,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_GIT="git" - $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 @@ -10014,11 +10715,11 @@ fi fi ac_ct_GIT=$ac_cv_prog_ac_ct_GIT if test -n "$ac_ct_GIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GIT" >&5 -$as_echo "$ac_ct_GIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GIT" >&5 +printf "%s\n" "$ac_ct_GIT" >&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_GIT" = x; then @@ -10026,8 +10727,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 GIT=$ac_ct_GIT @@ -10039,14 +10740,14 @@ fi # if test "$GIT" = "false"; then enable_ydb="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Git not found. Impossible to install YDB." >&5 -$as_echo "$as_me: WARNING: Git not found. Impossible to install YDB." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Git not found. Impossible to install YDB." >&5 +printf "%s\n" "$as_me: WARNING: Git not found. Impossible to install YDB." >&2;} fi # if test "x$enable_ydb" = "xyes" && ! test -d "scripts/ydb"; then # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking YDB from $url_ydb" >&5 -$as_echo_n "checking YDB from $url_ydb... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking YDB from $url_ydb" >&5 +printf %s "checking YDB from $url_ydb... " >&6; } mkdir -p scripts git clone $url_ydb scripts/ydb # @@ -10056,8 +10757,8 @@ $as_echo_n "checking YDB from $url_ydb... " >&6; } cd $srcdir else enable_ydb="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to install YDB." >&5 -$as_echo "$as_me: WARNING: Impossible to install YDB." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to install YDB." >&5 +printf "%s\n" "$as_me: WARNING: Impossible to install YDB." >&2;} fi fi # @@ -10071,17 +10772,19 @@ ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 -$as_echo_n "checking how to get verbose linking output from $F77... " >&6; } -if ${ac_cv_prog_f77_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 $F77" >&5 +printf %s "checking how to get verbose linking output from $F77... " >&6; } +if test ${ac_cv_prog_f77_v+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_f77_try_compile "$LINENO"; then : +if ac_fn_f77_try_compile "$LINENO" +then : ac_cv_prog_f77_v= # Try some options frequently used verbose output for ac_verb in -v -verbose --verbose -V -\#\#\#; do @@ -10099,13 +10802,13 @@ ac_save_FFLAGS=$FFLAGS FFLAGS="$FFLAGS $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_f77_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_f77_v_output" >&5 +printf "%s\n" "$ac_f77_v_output" >&5 FFLAGS=$ac_save_FFLAGS rm -rf conftest* @@ -10172,23 +10875,24 @@ esac done done if test -z "$ac_cv_prog_f77_v"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 -$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 +printf "%s\n" "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&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_f77_v" >&5 -$as_echo "$ac_cv_prog_f77_v" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 -$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } -if ${ac_cv_f77_libs+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 +printf "%s\n" "$ac_cv_prog_f77_v" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 +printf %s "checking for Fortran 77 libraries of $F77... " >&6; } +if test ${ac_cv_f77_libs+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test "x$FLIBS" != "x"; then ac_cv_f77_libs="$FLIBS" # Let the user override the test. else @@ -10207,13 +10911,13 @@ ac_save_FFLAGS=$FFLAGS FFLAGS="$FFLAGS $ac_cv_prog_f77_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_f77_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_f77_v_output" >&5 +printf "%s\n" "$ac_f77_v_output" >&5 FFLAGS=$ac_save_FFLAGS rm -rf conftest* @@ -10290,9 +10994,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_f77_libs="$ac_cv_f77_libs $ac_arg" fi ;; @@ -10305,9 +11010,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_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" @@ -10322,9 +11028,24 @@ fi |-LANG:=* | -LIST:* | -LNO:* | -link) ;; -lkernel32) + # Ignore this library only on Windows-like systems. case $host_os in - *cygwin*) ;; - *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" + cygwin* | msys* ) ;; + *) + ac_exists=false + for ac_i in $ac_cv_f77_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_f77_libs="$ac_cv_f77_libs $ac_arg" +fi ;; esac ;; @@ -10342,7 +11063,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_f77_libs; do if test x"$ac_j" = x"$ac_i"; then @@ -10351,9 +11072,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_f77_libs="$ac_cv_f77_libs $ac_j" fi @@ -10368,15 +11090,17 @@ fi fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" fi ;; -zallextract*| -zdefaultextract) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ;; + -mllvm) ${2+shift};; # Defend against 'clang -mllvm -loopopt=0'. # Ignore everything else. esac done @@ -10388,7 +11112,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_f77_v_output" | + ac_ld_run_path=`printf "%s\n" "$ac_f77_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 @@ -10403,8 +11127,8 @@ esac fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 -$as_echo "$ac_cv_f77_libs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 +printf "%s\n" "$ac_cv_f77_libs" >&6; } FLIBS="$ac_cv_f77_libs" @@ -10420,17 +11144,20 @@ acx_blas_ok=no # 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; fi # Check whether --enable-int_linalg was given. -if test "${enable_int_linalg+set}" = set; then : +if test ${enable_int_linalg+y} +then : enableval=$enable_int_linalg; fi # Check whether --enable-openmp_int_linalg was given. -if test "${enable_openmp_int_linalg+set}" = set; then : +if test ${enable_openmp_int_linalg+y} +then : enableval=$enable_openmp_int_linalg; fi @@ -10438,7 +11165,8 @@ fi BLAS_LIBS="" # 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; fi @@ -10463,22 +11191,23 @@ internal_blas="no" if test $acx_blas_ok = no; then if test "x$BLAS_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in $BLAS_LIBS" >&5 -$as_echo_n "checking for $caxpy in $BLAS_LIBS... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in $BLAS_LIBS" >&5 +printf %s "checking for $caxpy in $BLAS_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_blas_ok=yes -else +else $as_nop BLAS_LIBS="" 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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_ok" >&5 -$as_echo "$acx_blas_ok" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_blas_ok" >&5 +printf "%s\n" "$acx_blas_ok" >&6; } LIBS="$save_LIBS" fi fi @@ -10487,9 +11216,10 @@ fi # BLAS linked to by default? (happens on some supercomputers) if test $acx_blas_ok = no; then save_LIBS="$LIBS"; LIBS="$LIBS" - as_ac_var=`$as_echo "ac_cv_func_$caxpy" | $as_tr_sh` + as_ac_var=`printf "%s\n" "ac_cv_func_$caxpy" | $as_tr_sh` ac_fn_fc_check_func "$LINENO" "$caxpy" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : +if eval test \"x\$"$as_ac_var"\" = x"yes" +then : acx_blas_ok=yes fi @@ -10498,11 +11228,12 @@ fi # BLAS in ATLAS library? (http://math-atlas.sourceforge.net/) if test $acx_blas_ok = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5 -$as_echo_n "checking for ATL_xerbla in -latlas... " >&6; } -if ${ac_cv_lib_atlas_ATL_xerbla+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5 +printf %s "checking for ATL_xerbla in -latlas... " >&6; } +if test ${ac_cv_lib_atlas_ATL_xerbla+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-latlas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10510,24 +11241,27 @@ cat > conftest.$ac_ext <<_ACEOF call ATL_xerbla end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : ac_cv_lib_atlas_ATL_xerbla=yes -else +else $as_nop ac_cv_lib_atlas_ATL_xerbla=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_atlas_ATL_xerbla" >&5 -$as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; } -if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes; then : - as_ac_Lib=`$as_echo "ac_cv_lib_f77blas_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lf77blas" >&5 -$as_echo_n "checking for $caxpy in -lf77blas... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5 +printf "%s\n" "$ac_cv_lib_atlas_ATL_xerbla" >&6; } +if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes +then : + as_ac_Lib=`printf "%s\n" "ac_cv_lib_f77blas_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lf77blas" >&5 +printf %s "checking for $caxpy in -lf77blas... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lf77blas -latlas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10535,24 +11269,27 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_daxpy in -lcblas" >&5 -$as_echo_n "checking for cblas_daxpy in -lcblas... " >&6; } -if ${ac_cv_lib_cblas_cblas_daxpy+:} false; then : - $as_echo_n "(cached) " >&6 -else + { 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 : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cblas_daxpy in -lcblas" >&5 +printf %s "checking for cblas_daxpy in -lcblas... " >&6; } +if test ${ac_cv_lib_cblas_cblas_daxpy+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcblas -lf77blas -latlas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10560,18 +11297,20 @@ cat > conftest.$ac_ext <<_ACEOF call cblas_daxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : ac_cv_lib_cblas_cblas_daxpy=yes -else +else $as_nop ac_cv_lib_cblas_cblas_daxpy=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_cblas_cblas_daxpy" >&5 -$as_echo "$ac_cv_lib_cblas_cblas_daxpy" >&6; } -if test "x$ac_cv_lib_cblas_cblas_daxpy" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_daxpy" >&5 +printf "%s\n" "$ac_cv_lib_cblas_cblas_daxpy" >&6; } +if test "x$ac_cv_lib_cblas_cblas_daxpy" = xyes +then : acx_blas_ok=yes BLAS_LIBS="-lcblas -lf77blas -latlas" fi @@ -10584,12 +11323,13 @@ fi # BLAS in PhiPACK libraries? (requires generic BLAS lib, too) if test $acx_blas_ok = no; then - as_ac_Lib=`$as_echo "ac_cv_lib_blas_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 -$as_echo_n "checking for $caxpy in -lblas... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_blas_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 +printf %s "checking for $caxpy in -lblas... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10597,25 +11337,28 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : - as_ac_Lib=`$as_echo "ac_cv_lib_daxpy_$daxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $daxpy in -ldaxpy" >&5 -$as_echo_n "checking for $daxpy in -ldaxpy... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + { 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_ac_Lib=`printf "%s\n" "ac_cv_lib_daxpy_$daxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $daxpy in -ldaxpy" >&5 +printf %s "checking for $daxpy in -ldaxpy... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldaxpy -lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10623,25 +11366,28 @@ cat > conftest.$ac_ext <<_ACEOF call $daxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : - as_ac_Lib=`$as_echo "ac_cv_lib_caxpy_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcaxpy" >&5 -$as_echo_n "checking for $caxpy in -lcaxpy... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + { 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_ac_Lib=`printf "%s\n" "ac_cv_lib_caxpy_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcaxpy" >&5 +printf %s "checking for $caxpy in -lcaxpy... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcaxpy -lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10649,19 +11395,21 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lcaxpy -ldaxpy -lblas" fi @@ -10673,12 +11421,13 @@ fi # BLAS in Alpha CXML library? if test $acx_blas_ok = no; then - as_ac_Lib=`$as_echo "ac_cv_lib_cxml_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcxml" >&5 -$as_echo_n "checking for $caxpy in -lcxml... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_cxml_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcxml" >&5 +printf %s "checking for $caxpy in -lcxml... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcxml $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10686,19 +11435,21 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-lcxml" fi @@ -10706,12 +11457,13 @@ fi # BLAS in Alpha DXML library? (now called CXML, see above) if test $acx_blas_ok = no; then - as_ac_Lib=`$as_echo "ac_cv_lib_dxml_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -ldxml" >&5 -$as_echo_n "checking for $caxpy in -ldxml... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_dxml_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -ldxml" >&5 +printf %s "checking for $caxpy in -ldxml... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldxml $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10719,19 +11471,21 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-ldxml" fi @@ -10740,11 +11494,12 @@ fi # BLAS in Sun Performance library? if test $acx_blas_ok = no; then if test "x$GCC" != xyes; then # only works with Sun CC - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5 -$as_echo_n "checking for acosp in -lsunmath... " >&6; } -if ${ac_cv_lib_sunmath_acosp+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5 +printf %s "checking for acosp in -lsunmath... " >&6; } +if test ${ac_cv_lib_sunmath_acosp+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsunmath $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10752,24 +11507,27 @@ cat > conftest.$ac_ext <<_ACEOF call acosp end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : ac_cv_lib_sunmath_acosp=yes -else +else $as_nop ac_cv_lib_sunmath_acosp=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_sunmath_acosp" >&5 -$as_echo "$ac_cv_lib_sunmath_acosp" >&6; } -if test "x$ac_cv_lib_sunmath_acosp" = xyes; then : - as_ac_Lib=`$as_echo "ac_cv_lib_sunperf_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lsunperf" >&5 -$as_echo_n "checking for $caxpy in -lsunperf... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5 +printf "%s\n" "$ac_cv_lib_sunmath_acosp" >&6; } +if test "x$ac_cv_lib_sunmath_acosp" = xyes +then : + as_ac_Lib=`printf "%s\n" "ac_cv_lib_sunperf_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lsunperf" >&5 +printf %s "checking for $caxpy in -lsunperf... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsunperf -lsunmath $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10777,19 +11535,21 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : BLAS_LIBS="-xlic_lib=sunperf -lsunmath" acx_blas_ok=yes fi @@ -10801,12 +11561,13 @@ fi # BLAS in SCSL library? (SGI/Cray Scientific Library) if test $acx_blas_ok = no; then - as_ac_Lib=`$as_echo "ac_cv_lib_scs_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lscs" >&5 -$as_echo_n "checking for $caxpy in -lscs... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_scs_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lscs" >&5 +printf %s "checking for $caxpy in -lscs... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lscs $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10814,19 +11575,21 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lscs" fi @@ -10834,12 +11597,13 @@ fi # BLAS in SGIMATH library? if test $acx_blas_ok = no; then - as_ac_Lib=`$as_echo "ac_cv_lib_complib.sgimath_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcomplib.sgimath" >&5 -$as_echo_n "checking for $caxpy in -lcomplib.sgimath... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_complib.sgimath_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcomplib.sgimath" >&5 +printf %s "checking for $caxpy in -lcomplib.sgimath... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcomplib.sgimath $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10847,19 +11611,21 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath" fi @@ -10867,12 +11633,13 @@ fi # BLAS in IBM ESSL library? (requires generic BLAS lib, too) if test $acx_blas_ok = no; then - as_ac_Lib=`$as_echo "ac_cv_lib_blas_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 -$as_echo_n "checking for $caxpy in -lblas... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_blas_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 +printf %s "checking for $caxpy in -lblas... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10880,25 +11647,28 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : - as_ac_Lib=`$as_echo "ac_cv_lib_essl_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lessl" >&5 -$as_echo_n "checking for $caxpy in -lessl... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + { 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_ac_Lib=`printf "%s\n" "ac_cv_lib_essl_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lessl" >&5 +printf %s "checking for $caxpy in -lessl... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lessl -lblas $FLIBS $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10906,19 +11676,21 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lessl -lblas" fi @@ -10934,12 +11706,13 @@ if test $acx_blas_ok = no && test -d "${MKLROOT}" ; then *gfortran* ) case "${host}" in *x86*64*) - as_ac_Lib=`$as_echo "ac_cv_lib_mkl_gf_lp64_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_gf_lp64" >&5 -$as_echo_n "checking for $caxpy in -lmkl_gf_lp64... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_mkl_gf_lp64_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_gf_lp64" >&5 +printf %s "checking for $caxpy in -lmkl_gf_lp64... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lmkl_gf_lp64 -L${mkl_libdir} -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10947,30 +11720,33 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-L${mkl_libdir} -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm" fi ;; i?86*linux*) - as_ac_Lib=`$as_echo "ac_cv_lib_mkl_gf_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_gf" >&5 -$as_echo_n "checking for $caxpy in -lmkl_gf... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_mkl_gf_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_gf" >&5 +printf %s "checking for $caxpy in -lmkl_gf... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lmkl_gf -L${mkl_libdir} -lmkl_gf -lmkl_sequential -lmkl_core -lpthread $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -10978,19 +11754,21 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-L${mkl_libdir} -lmkl_gf -lmkl_sequential -lmkl_core -lpthread" fi @@ -11002,12 +11780,13 @@ fi # 64 bit case "${host}" in *x86*64*) - as_ac_Lib=`$as_echo "ac_cv_lib_mkl_intel_lp64_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_intel_lp64" >&5 -$as_echo_n "checking for $caxpy in -lmkl_intel_lp64... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_mkl_intel_lp64_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_intel_lp64" >&5 +printf %s "checking for $caxpy in -lmkl_intel_lp64... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lmkl_intel_lp64 -L${mkl_libdir} -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread -lm $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11015,30 +11794,33 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-L${mkl_libdir} -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread -lm" fi ;; i?86*linux*) - as_ac_Lib=`$as_echo "ac_cv_lib_mkl_intel_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_intel" >&5 -$as_echo_n "checking for $caxpy in -lmkl_intel... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_mkl_intel_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_intel" >&5 +printf %s "checking for $caxpy in -lmkl_intel... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lmkl_intel -L${mkl_libdir} -lmkl_intel -lmkl_sequential -lmkl_core -lpthread $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11046,19 +11828,21 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-L${mkl_libdir} -lmkl_intel -lmkl_sequential -lmkl_core -lpthread" fi @@ -11069,12 +11853,13 @@ fi # Generic BLAS library? if test $acx_blas_ok = no; then - as_ac_Lib=`$as_echo "ac_cv_lib_blas_$caxpy" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 -$as_echo_n "checking for $caxpy in -lblas... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_blas_$caxpy" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 +printf %s "checking for $caxpy in -lblas... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11082,19 +11867,21 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lblas" fi @@ -11105,7 +11892,7 @@ LIBS="$acx_blas_save_LIBS" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$acx_blas_ok" = xyes; then -$as_echo "#define HAVE_BLAS 1" >>confdefs.h +printf "%s\n" "#define HAVE_BLAS 1" >>confdefs.h : else @@ -11115,12 +11902,12 @@ fi if test $acx_blas_ok = "no"; then internal_blas="yes"; - { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find blas. Using the built-in library" >&5 -$as_echo "$as_me: Could not find blas. Using the built-in library" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Could not find blas. Using the built-in library" >&5 +printf "%s\n" "$as_me: Could not find blas. Using the built-in library" >&6;} elif (test -d "$with_blas_libs" && test "$with_blas_libs" = "") || test x"$enable_int_linalg" = "xyes" ; then internal_blas="yes" - if test $acx_blas_ok = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Blas found in ${BLAS_LIBS} but imposing built-in library" >&5 -$as_echo "$as_me: Blas found in ${BLAS_LIBS} but imposing built-in library" >&6;}; fi + if test $acx_blas_ok = "yes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Blas found in ${BLAS_LIBS} but imposing built-in library" >&5 +printf "%s\n" "$as_me: Blas found in ${BLAS_LIBS} but imposing built-in library" >&6;}; fi fi if test "$internal_blas" = "yes"; then @@ -11185,11 +11972,12 @@ ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5 -$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; } -if ${ac_cv_f77_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 77 libraries" >&5 +printf %s "checking for dummy main to link with Fortran 77 libraries... " >&6; } +if test ${ac_cv_f77_dummy_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_f77_dm_save_LIBS=$LIBS LIBS="$LIBS $FLIBS" ac_fortran_dm_var=F77_DUMMY_MAIN @@ -11220,19 +12008,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 @@ -11257,17 +12046,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 @@ -11280,25 +12070,24 @@ ac_compiler_gnu=$ac_cv_f77_compiler_gnu LIBS=$ac_f77_dm_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 -$as_echo "$ac_cv_f77_dummy_main" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 +printf "%s\n" "$ac_cv_f77_dummy_main" >&6; } F77_DUMMY_MAIN=$ac_cv_f77_dummy_main -if test "$F77_DUMMY_MAIN" != unknown; then : +if test "$F77_DUMMY_MAIN" != unknown +then : if test $F77_DUMMY_MAIN != none; then -cat >>confdefs.h <<_ACEOF -#define F77_DUMMY_MAIN $F77_DUMMY_MAIN -_ACEOF +printf "%s\n" "#define F77_DUMMY_MAIN $F77_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 @@ -11312,11 +12101,12 @@ ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 -$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; } -if ${ac_cv_f77_mangling+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 +printf %s "checking for Fortran 77 name-mangling scheme... " >&6; } +if test ${ac_cv_f77_mangling+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF subroutine foobar() return @@ -11325,7 +12115,8 @@ else return end _ACEOF -if ac_fn_f77_try_compile "$LINENO"; then : +if ac_fn_f77_try_compile "$LINENO" +then : mv conftest.$ac_objext cfortran_test.$ac_objext ac_save_LIBS=$LIBS @@ -11346,9 +12137,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 F77_DUMMY_MAIN @@ -11367,17 +12155,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 @@ -11412,9 +12201,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 F77_DUMMY_MAIN @@ -11433,17 +12219,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=f @@ -11473,17 +12260,17 @@ ac_compiler_gnu=$ac_cv_f77_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_f77_mangling" >&5 -$as_echo "$ac_cv_f77_mangling" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5 +printf "%s\n" "$ac_cv_f77_mangling" >&6; } ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' @@ -11497,7 +12284,8 @@ acx_lapack_ok=no LAPACK_LIBS="" # 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; fi @@ -11523,22 +12311,23 @@ fi # First, check LAPACK_LIBS environment variable if test "x$LAPACK_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in $LAPACK_LIBS" >&5 -$as_echo_n "checking for $cheev in $LAPACK_LIBS... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $cheev in $LAPACK_LIBS" >&5 +printf %s "checking for $cheev in $LAPACK_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $cheev end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_lapack_ok=yes -else +else $as_nop LAPACK_LIBS="" 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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_lapack_ok" >&5 -$as_echo "$acx_lapack_ok" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_lapack_ok" >&5 +printf "%s\n" "$acx_lapack_ok" >&6; } LIBS="$save_LIBS" if test acx_lapack_ok = no; then LAPACK_LIBS="" @@ -11548,9 +12337,10 @@ fi # LAPACK linked to by default? (is sometimes included in BLAS lib) if test $acx_lapack_ok = no; then save_LIBS="$LIBS"; LIBS="$LIBS $BLAS_LIBS $FLIBS" - as_ac_var=`$as_echo "ac_cv_func_$cheev" | $as_tr_sh` + as_ac_var=`printf "%s\n" "ac_cv_func_$cheev" | $as_tr_sh` ac_fn_fc_check_func "$LINENO" "$cheev" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : +if eval test \"x\$"$as_ac_var"\" = x"yes" +then : acx_lapack_ok=yes fi @@ -11561,12 +12351,13 @@ fi for lapack in lapack lapack_rs6k; do if test $acx_lapack_ok = no; then save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" - as_ac_Lib=`$as_echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in -l$lapack" >&5 -$as_echo_n "checking for $cheev in -l$lapack... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_$lapack""_$cheev" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $cheev in -l$lapack" >&5 +printf %s "checking for $cheev in -l$lapack... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-l$lapack $FLIBS $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11574,19 +12365,21 @@ cat > conftest.$ac_ext <<_ACEOF call $cheev end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_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 : acx_lapack_ok=yes; LAPACK_LIBS="-l$lapack" fi @@ -11618,22 +12411,23 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "x$LAPACK_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dlaran in $LAPACK_LIBS" >&5 -$as_echo_n "checking for $dlaran in $LAPACK_LIBS... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $dlaran in $LAPACK_LIBS" >&5 +printf %s "checking for $dlaran in $LAPACK_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $dlaran end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_dlaran_ok=yes -else +else $as_nop acx_dlaran_ok=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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_dlaran_ok" >&5 -$as_echo "$acx_dlaran_ok" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_dlaran_ok" >&5 +printf "%s\n" "$acx_dlaran_ok" >&6; } LIBS="$save_LIBS" fi fi @@ -11641,7 +12435,7 @@ fi # Execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$acx_lapack_ok" = xyes; then -$as_echo "#define HAVE_LAPACK 1" >>confdefs.h +printf "%s\n" "#define HAVE_LAPACK 1" >>confdefs.h : else @@ -11651,12 +12445,12 @@ fi if test $acx_lapack_ok = "no"; then internal_lapack="yes"; - { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find lapack. Using the built-in library" >&5 -$as_echo "$as_me: Could not find lapack. Using the built-in library" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Could not find lapack. Using the built-in library" >&5 +printf "%s\n" "$as_me: Could not find lapack. Using the built-in library" >&6;} elif (test -d "$with_lapack_libs" && test "$with_lapack_libs" = "") || test x"$enable_int_linalg" = "xyes" ; then internal_lapack="yes" - if test "$acx_lalpack_ok" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Lapack found in ${LAPACK_LIBS} but imposing built-in library" >&5 -$as_echo "$as_me: Lapack found in ${LAPACK_LIBS} but imposing built-in library" >&6;}; fi + if test "$acx_lalpack_ok" = "yes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Lapack found in ${LAPACK_LIBS} but imposing built-in library" >&5 +printf "%s\n" "$as_me: Lapack found in ${LAPACK_LIBS} but imposing built-in library" >&6;}; fi fi if test "$internal_lapack" = "yes"; then @@ -11708,52 +12502,60 @@ fi # Check whether --with-fft_libs was given. -if test "${with_fft_libs+set}" = set; then : +if test ${with_fft_libs+y} +then : withval=$with_fft_libs; fi # Check whether --with-fft_path was given. -if test "${with_fft_path+set}" = set; then : +if test ${with_fft_path+y} +then : withval=$with_fft_path; fi # Check whether --with-fft_libdir was given. -if test "${with_fft_libdir+set}" = set; then : +if test ${with_fft_libdir+y} +then : withval=$with_fft_libdir; fi # Check whether --with-fft_includedir was given. -if test "${with_fft_includedir+set}" = set; then : +if test ${with_fft_includedir+y} +then : withval=$with_fft_includedir; fi # # Check whether --enable-internal_fftqe was given. -if test "${enable_internal_fftqe+set}" = set; then : +if test ${enable_internal_fftqe+y} +then : enableval=$enable_internal_fftqe; -else +else $as_nop enable_internal_fftqe=no fi # Check whether --enable-internal_fftsg was given. -if test "${enable_internal_fftsg+set}" = set; then : +if test ${enable_internal_fftsg+y} +then : enableval=$enable_internal_fftsg; -else +else $as_nop enable_internal_fftsg=no fi # Check whether --enable-3d_fft was given. -if test "${enable_3d_fft+set}" = set; then : +if test ${enable_3d_fft+y} +then : enableval=$enable_3d_fft; fi # # Check whether --with-fftsg_fac was given. -if test "${with_fftsg_fac+set}" = set; then : +if test ${with_fftsg_fac+y} +then : withval=$with_fftsg_fac; fi @@ -11778,10 +12580,10 @@ if test -d "$with_fft_path" || test -d "$with_fft_libdir" ; then # # external FFT # - if test -d "$with_fft_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT in $with_fft_path" >&5 -$as_echo_n "checking for FFT in $with_fft_path... " >&6; } ; fi - if test -d "$with_fft_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT in $with_fft_libdir" >&5 -$as_echo_n "checking for FFT in $with_fft_libdir... " >&6; } ; fi + if test -d "$with_fft_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT in $with_fft_path" >&5 +printf %s "checking for FFT in $with_fft_path... " >&6; } ; fi + if test -d "$with_fft_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT in $with_fft_libdir" >&5 +printf %s "checking for FFT in $with_fft_libdir... " >&6; } ; fi # if test -d "$with_fft_path" ; then try_fft_libdir=$with_fft_path/lib @@ -11797,16 +12599,16 @@ elif test x"$with_fft_libs" != "x" ; then # # directly provided lib # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT Library using $with_fft_libs" >&5 -$as_echo_n "checking for FFT Library using $with_fft_libs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT Library using $with_fft_libs" >&5 +printf %s "checking for FFT Library using $with_fft_libs... " >&6; } try_fft_libs=$with_fft_libs # if test -d "$with_fft_includedir" ; then try_fft_incdir=$with_fft_includedir ; fi if test -z "$try_fft_incdir" ; then include_warn="yes" ; fi # else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 -$as_echo_n "checking for FFT... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 +printf %s "checking for FFT... " >&6; } fi # # check for FFTW @@ -11869,22 +12671,24 @@ if ! test x"$try_fft_libs" = "x" ; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : HAVE_FFTW="yes"; -else +else $as_nop HAVE_FFTW="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 cat > conftest.$ac_ext <<_ACEOF $testprog_omp _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : HAVE_FFTW_OMP="yes"; -else +else $as_nop HAVE_FFTW_OMP="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=$save_libs @@ -11896,18 +12700,18 @@ rm -f core conftest.err conftest.$ac_objext \ # if test "$try_fft_libs" = "-lfftw3" ; then FFT_info="(FFTW v3)"; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTW3" >&5 -$as_echo "FFTW3" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTW3" >&5 +printf "%s\n" "FFTW3" >&6; } elif test "$try_fft_libs" = "-lfftw3 -lfftw3_omp" && test "$HAVE_FFTW_OMP" = "yes" ; then FFT_info="(FFTW_OMP v3)"; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTW3_OMP" >&5 -$as_echo "FFTW3_OMP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTW3_OMP" >&5 +printf "%s\n" "FFTW3_OMP" >&6; } else desc=Other if ! test -z "`echo $try_fft_libs | grep -i mkl`" ; then desc="MKL" ; fi FFT_info="(FFTW $desc)"; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTW ($desc) " >&5 -$as_echo "FFTW ($desc) " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTW ($desc) " >&5 +printf "%s\n" "FFTW ($desc) " >&6; } fi else def_fft="" @@ -11922,8 +12726,8 @@ else fi if test "$HAVE_FFT" = "yes" && test "$include_warn" = "yes" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No include-dir specified for fft library" >&5 -$as_echo "$as_me: WARNING: No include-dir specified for fft library" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No include-dir specified for fft library" >&5 +printf "%s\n" "$as_me: WARNING: No include-dir specified for fft library" >&2;} fi # # check for ESSL FFT @@ -11933,8 +12737,8 @@ if test -d "$try_fft_libdir" && test -d "$try_fft_incdir" ; then fi # if ! test x"$try_fft_libs" = "x" && ! test "$HAVE_FFT" = "yes" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTW no" >&5 -$as_echo "FFTW no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTW no" >&5 +printf "%s\n" "FFTW no" >&6; } # if ! test x"$try_fft_libdir" = "x" ; then FFT_PATH="-L$try_fft_libdir" ; fi # @@ -11944,30 +12748,31 @@ $as_echo "FFTW no" >&6; } LIBS="$FFT_PATH $try_fft_libs" if test x"$try_fft_incdir" != "x" ; then FCFLAGS="$FCFLAGS $IFLAG$try_fft_incdir" ; fi # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcft in $LIBS" >&5 -$as_echo_n "checking for dcft in $LIBS... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dcft in $LIBS" >&5 +printf %s "checking for dcft in $LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call dcft end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : HAVE_ESSL=yes -else +else $as_nop HAVE_ESSL=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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ESSL" >&5 -$as_echo "$HAVE_ESSL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_ESSL" >&5 +printf "%s\n" "$HAVE_ESSL" >&6; } # LIBS=$save_libs LDFLAGS=$save_ldflags FCFLAGS=$save_fcflags # if test "$HAVE_ESSL" = "yes" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 -$as_echo_n "checking for FFT... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 +printf %s "checking for FFT... " >&6; } if ! test x"$enable_3d_fft" = "xno" ; then FFT3D_CPP="-D_USE_3D_FFT" FFT_info="(FFT ESSL (FFTQE) with 3D support)"; @@ -11979,8 +12784,8 @@ $as_echo_n "checking for FFT... " >&6; } FFT_INCS="$IFLAG$try_fft_incdir" HAVE_FFT=yes compile_fftqe=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ESSL FFT" >&5 -$as_echo "ESSL FFT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ESSL FFT" >&5 +printf "%s\n" "ESSL FFT" >&6; } fi fi # @@ -11989,8 +12794,8 @@ fi if ! test x"$HAVE_FFT" = "xyes" ; then # # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 -$as_echo_n "checking for FFT... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 +printf %s "checking for FFT... " >&6; } if test x"$enable_internal_fftqe" = "xyes" ; then use_internal_fftqe=yes use_internal_fftsg=no @@ -12027,8 +12832,8 @@ if test "$use_internal_fftqe" = "yes" ; then else compile_fftqe=yes fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Internal FFTQE (FFTW2)" >&5 -$as_echo "Internal FFTQE (FFTW2)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Internal FFTQE (FFTW2)" >&5 +printf "%s\n" "Internal FFTQE (FFTW2)" >&6; } fi if test "$HAVE_FFTQE" = "yes" ; then HAVE_FFT=yes ; fi @@ -12054,8 +12859,8 @@ if test "$use_internal_fftsg" = "yes" ; then FFT_LIBS="" HAVE_FFTSG=yes; internal_fft="yes"; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTSG" >&5 -$as_echo "FFTSG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTSG" >&5 +printf "%s\n" "FFTSG" >&6; } fi if test "$HAVE_FFTSG" = "yes" ; then HAVE_FFT=yes ; fi @@ -12076,8 +12881,8 @@ if test "$use_internal_fftw" = "yes" ; then else compile_fftw=yes fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Internal FFTW3" >&5 -$as_echo "Internal FFTW3" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Internal FFTW3" >&5 +printf "%s\n" "Internal FFTW3" >&6; } fi if test "$HAVE_FFTW" = "yes" ; then HAVE_FFT=yes ; fi @@ -12091,48 +12896,48 @@ ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu case $ac_cv_f77_mangling in "lower case, no underscore, no extra underscore") - $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h + printf "%s\n" "#define F77_FUNC(name,NAME) name" >>confdefs.h - $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h + printf "%s\n" "#define F77_FUNC_(name,NAME) name" >>confdefs.h ;; "lower case, no underscore, extra underscore") - $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h + printf "%s\n" "#define F77_FUNC(name,NAME) name" >>confdefs.h - $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h + printf "%s\n" "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h ;; "lower case, underscore, no extra underscore") - $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h + printf "%s\n" "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h - $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h + printf "%s\n" "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h ;; "lower case, underscore, extra underscore") - $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h + printf "%s\n" "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h - $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h + printf "%s\n" "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h ;; "upper case, no underscore, no extra underscore") - $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h + printf "%s\n" "#define F77_FUNC(name,NAME) NAME" >>confdefs.h - $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h + printf "%s\n" "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h ;; "upper case, no underscore, extra underscore") - $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h + printf "%s\n" "#define F77_FUNC(name,NAME) NAME" >>confdefs.h - $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h + printf "%s\n" "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h ;; "upper case, underscore, no extra underscore") - $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h + printf "%s\n" "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h - $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h + printf "%s\n" "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h ;; "upper case, underscore, extra underscore") - $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h + printf "%s\n" "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h - $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h + printf "%s\n" "#define F77_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 @@ -12141,7 +12946,7 @@ 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 "#define _FFTQE 1" >>confdefs.h + printf "%s\n" "#define _FFTQE 1" >>confdefs.h ac_config_headers="$ac_config_headers lib/fftqe/c_defs.h:lib/fftqe/c_defs.h.in" @@ -12163,86 +12968,99 @@ fi # # Check whether --enable-slepc_linalg was given. -if test "${enable_slepc_linalg+set}" = set; then : +if test ${enable_slepc_linalg+y} +then : enableval=$enable_slepc_linalg; fi # # Check whether --with-slepc_libs was given. -if test "${with_slepc_libs+set}" = set; then : +if test ${with_slepc_libs+y} +then : withval=$with_slepc_libs; fi # Check whether --with-slepc_incs was given. -if test "${with_slepc_incs+set}" = set; then : +if test ${with_slepc_incs+y} +then : withval=$with_slepc_incs; fi # Check whether --with-slepc_path was given. -if test "${with_slepc_path+set}" = set; then : +if test ${with_slepc_path+y} +then : withval=$with_slepc_path; fi # Check whether --with-slepc_libdir was given. -if test "${with_slepc_libdir+set}" = set; then : +if test ${with_slepc_libdir+y} +then : withval=$with_slepc_libdir; fi # Check whether --with-slepc_includedir was given. -if test "${with_slepc_includedir+set}" = set; then : +if test ${with_slepc_includedir+y} +then : withval=$with_slepc_includedir; fi # # Check whether --with-petsc_libs was given. -if test "${with_petsc_libs+set}" = set; then : +if test ${with_petsc_libs+y} +then : withval=$with_petsc_libs; fi # Check whether --with-petsc_incs was given. -if test "${with_petsc_incs+set}" = set; then : +if test ${with_petsc_incs+y} +then : withval=$with_petsc_incs; fi # Check whether --with-petsc_path was given. -if test "${with_petsc_path+set}" = set; then : +if test ${with_petsc_path+y} +then : withval=$with_petsc_path; fi # Check whether --with-petsc_libdir was given. -if test "${with_petsc_libdir+set}" = set; then : +if test ${with_petsc_libdir+y} +then : withval=$with_petsc_libdir; fi # Check whether --with-petsc_includedir was given. -if test "${with_petsc_includedir+set}" = set; then : +if test ${with_petsc_includedir+y} +then : withval=$with_petsc_includedir; fi # Check whether --with-slepc-branch was given. -if test "${with_slepc_branch+set}" = set; then : +if test ${with_slepc_branch+y} +then : withval=$with_slepc_branch; -else +else $as_nop with_slepc_branch=none fi # Check whether --with-petsc-branch was given. -if test "${with_petsc_branch+set}" = set; then : +if test ${with_petsc_branch+y} +then : withval=$with_petsc_branch; -else +else $as_nop with_petsc_branch=none fi @@ -12265,11 +13083,12 @@ 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 for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -12278,9 +13097,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 dlopen (); #ifdef F77_DUMMY_MAIN @@ -12299,27 +13115,29 @@ char dlopen (); #endif #endif int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : use_libdl="yes"; -else +else $as_nop use_libdl="no"; fi @@ -12354,12 +13172,12 @@ if test -d "$with_petsc_path" || test -d "$with_petsc_libdir" || test x"$with_pe # # external petsc # - if test x"$with_petsc_libs" != "x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Petsc using $with_petsc_libs" >&5 -$as_echo_n "checking for Petsc using $with_petsc_libs... " >&6; } ; - elif test -d "$with_petsc_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Petsc in $with_petsc_libdir" >&5 -$as_echo_n "checking for Petsc in $with_petsc_libdir... " >&6; } ; - elif test -d "$with_petsc_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Petsc in $with_petsc_path" >&5 -$as_echo_n "checking for Petsc in $with_petsc_path... " >&6; } ; + if test x"$with_petsc_libs" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Petsc using $with_petsc_libs" >&5 +printf %s "checking for Petsc using $with_petsc_libs... " >&6; } ; + elif test -d "$with_petsc_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Petsc in $with_petsc_libdir" >&5 +printf %s "checking for Petsc in $with_petsc_libdir... " >&6; } ; + elif test -d "$with_petsc_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Petsc in $with_petsc_path" >&5 +printf %s "checking for Petsc in $with_petsc_path... " >&6; } ; fi # if test -d "$with_petsc_path" ; then @@ -12402,23 +13220,24 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu #include end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : petsc=yes -else +else $as_nop petsc=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; # if test "x$petsc" = "xyes"; 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; } ; PETSC_INCS="$try_PETSC_INCS" ; PETSC_LIBS="$try_PETSC_LIBS" ; compile_petsc="no"; internal_petsc="no"; 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 # @@ -12431,8 +13250,8 @@ if test "x$enable_petsc" = "xyes" && test "x$petsc" = "xno" ; then # # internal petsc # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal Petsc library" >&5 -$as_echo_n "checking for internal Petsc library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal Petsc library" >&5 +printf %s "checking for internal Petsc library... " >&6; } # internal_petsc="yes" # @@ -12452,30 +13271,30 @@ $as_echo_n "checking for internal Petsc library... " >&6; } PETSC_LIBS="$PETSC_LIBS_DN" ; compile_petsc="no" ; if test "x$lapack_shared" = "x1" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic already compiled" >&5 -$as_echo "dynamic already compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: dynamic already compiled" >&5 +printf "%s\n" "dynamic already compiled" >&6; } ; else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic found, despite no dynamic lapack detected." >&5 -$as_echo "dynamic found, despite no dynamic lapack detected." >&6; } ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: The compilation may fail. In case remove the dynamic petsc libs." >&5 -$as_echo "The compilation may fail. In case remove the dynamic petsc libs." >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: dynamic found, despite no dynamic lapack detected." >&5 +printf "%s\n" "dynamic found, despite no dynamic lapack detected." >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: The compilation may fail. In case remove the dynamic petsc libs." >&5 +printf "%s\n" "The compilation may fail. In case remove the dynamic petsc libs." >&6; } ; fi elif test -e "$PETSC_LIBS_ST" ; then PETSC_LIBS="$PETSC_LIBS_ST" ; compile_petsc="no" ; if test "x$lapack_shared" = "x1" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: static found, despite dynamic lapack." >&5 -$as_echo "static found, despite dynamic lapack." >&6; } ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: You may delete the static petsc and re-run the configure to get smaller executables" >&5 -$as_echo "You may delete the static petsc and re-run the configure to get smaller executables" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static found, despite dynamic lapack." >&5 +printf "%s\n" "static found, despite dynamic lapack." >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: You may delete the static petsc and re-run the configure to get smaller executables" >&5 +printf "%s\n" "You may delete the static petsc and re-run the configure to get smaller executables" >&6; } ; else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: static already compiled" >&5 -$as_echo "static already compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static already compiled" >&5 +printf "%s\n" "static already compiled" >&6; } ; fi else compile_petsc="yes" ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -$as_echo "to be compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +printf "%s\n" "to be compiled" >&6; } ; fi # fi @@ -12502,12 +13321,12 @@ if test -d "$with_slepc_path" || test -d "$with_slec_libdir" || test x"$with_sle # # external slepc # - if test x"$with_slepc_libs" != "x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Slepc using $with_slepc_libs" >&5 -$as_echo_n "checking for Slepc using $with_slepc_libs... " >&6; } ; - elif test -d "$with_slepc_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Slepc in $with_slepc_libdir" >&5 -$as_echo_n "checking for Slepc in $with_slepc_libdir... " >&6; } ; - elif test -d "$with_slepc_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Slepc in $with_slepc_path" >&5 -$as_echo_n "checking for Slepc in $with_slepc_path... " >&6; } ; + if test x"$with_slepc_libs" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Slepc using $with_slepc_libs" >&5 +printf %s "checking for Slepc using $with_slepc_libs... " >&6; } ; + elif test -d "$with_slepc_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Slepc in $with_slepc_libdir" >&5 +printf %s "checking for Slepc in $with_slepc_libdir... " >&6; } ; + elif test -d "$with_slepc_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Slepc in $with_slepc_path" >&5 +printf %s "checking for Slepc in $with_slepc_path... " >&6; } ; fi # if test -d "$with_slepc_path" ; then @@ -12546,24 +13365,25 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu #include end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : slepc=yes -else +else $as_nop slepc=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; # if test "x$slepc" = "xyes"; 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; } ; SLEPC_INCS="$try_SLEPC_INCS" ; SLEPC_LIBS="$try_SLEPC_LIBS" ; compile_slepc="no"; internal_slepc="no"; def_slepc="-D_SLEPC"; 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 # @@ -12577,8 +13397,8 @@ if test "x$enable_slepc" = "xyes" && test "x$slepc" = "xno" && test "x$enable_pe # # internal slepc # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal Slepc library" >&5 -$as_echo_n "checking for internal Slepc library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal Slepc library" >&5 +printf %s "checking for internal Slepc library... " >&6; } # internal_slepc="yes"; # @@ -12596,30 +13416,30 @@ $as_echo_n "checking for internal Slepc library... " >&6; } SLEPC_LIBS="$SLEPC_LIBS_DN -Wl,-rpath=${extlibs_path}/${FCKIND}/${FC}/${build_precision}/lib" ; compile_slepc="no" ; if test "x$lapack_shared" = "x1" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic already compiled" >&5 -$as_echo "dynamic already compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: dynamic already compiled" >&5 +printf "%s\n" "dynamic already compiled" >&6; } ; else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic found, despite no dynamic lapack detected." >&5 -$as_echo "dynamic found, despite no dynamic lapack detected." >&6; } ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: The compilation may fail. In case remove the dynamic slepc libs." >&5 -$as_echo "The compilation may fail. In case remove the dynamic slepc libs." >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: dynamic found, despite no dynamic lapack detected." >&5 +printf "%s\n" "dynamic found, despite no dynamic lapack detected." >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: The compilation may fail. In case remove the dynamic slepc libs." >&5 +printf "%s\n" "The compilation may fail. In case remove the dynamic slepc libs." >&6; } ; fi elif test -e "$SLEPC_LIBS_ST" ; then SLEPC_LIBS="$SLEPC_LIBS_ST" ; compile_slepc="no" ; if test "x$lapack_shared" = "x1" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: static found, despite dynamic lapack." >&5 -$as_echo "static found, despite dynamic lapack." >&6; } ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: You may delete the static slepc and re-run the configure to get smaller executables" >&5 -$as_echo "You may delete the static slepc and re-run the configure to get smaller executables" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static found, despite dynamic lapack." >&5 +printf "%s\n" "static found, despite dynamic lapack." >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: You may delete the static slepc and re-run the configure to get smaller executables" >&5 +printf "%s\n" "You may delete the static slepc and re-run the configure to get smaller executables" >&6; } ; else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: static already compiled" >&5 -$as_echo "static already compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static already compiled" >&5 +printf "%s\n" "static already compiled" >&6; } ; fi else compile_slepc="yes" ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -$as_echo "to be compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +printf "%s\n" "to be compiled" >&6; } ; fi def_slepc="-D_SLEPC"; # @@ -12645,19 +13465,22 @@ fi # Check whether --enable-par_linalg was given. -if test "${enable_par_linalg+set}" = set; then : +if test ${enable_par_linalg+y} +then : enableval=$enable_par_linalg; fi # Check whether --with-blacs_libs was given. -if test "${with_blacs_libs+set}" = set; then : +if test ${with_blacs_libs+y} +then : withval=$with_blacs_libs; fi # Check whether --with-scalapack_libs was given. -if test "${with_scalapack_libs+set}" = set; then : +if test ${with_scalapack_libs+y} +then : withval=$with_scalapack_libs; fi @@ -12739,22 +13562,23 @@ if test "$mpibuild" = "yes"; then # First, check BLACS_LIBS environment variable if test "x$BLACS_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$BLACS_LIBS $LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $blacs_routine in $BLACS_LIBS" >&5 -$as_echo_n "checking for $blacs_routine in $BLACS_LIBS... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $blacs_routine in $BLACS_LIBS" >&5 +printf %s "checking for $blacs_routine in $BLACS_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $blacs_routine end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : enable_blacs="yes" -else +else $as_nop enable_blacs="internal"; BLACS_LIBS="" 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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_blacs" >&5 -$as_echo "$enable_blacs" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_blacs" >&5 +printf "%s\n" "$enable_blacs" >&6; } BLACS_LIBS="$acx_blacs_save_LIBS" LIBS="$save_LIBS" else @@ -12769,22 +13593,23 @@ $as_echo "$enable_blacs" >&6; } # First, check SCALAPACK_LIBS environment variable if test "x$SCALAPACK_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$SCALAPACK_LIBS $LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $scalapack_routine in $SCALAPACK_LIBS" >&5 -$as_echo_n "checking for $scalapack_routine in $SCALAPACK_LIBS... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $scalapack_routine in $SCALAPACK_LIBS" >&5 +printf %s "checking for $scalapack_routine in $SCALAPACK_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $scalapack_routine end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : enable_scalapack="yes" -else +else $as_nop enable_scalapack="internal"; SCALAPACK_LIBS="" 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 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_scalapack" >&5 -$as_echo "$enable_scalapack" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_scalapack" >&5 +printf "%s\n" "$enable_scalapack" >&6; } SCALAPACK_LIBS="$acx_scalapack_save_LIBS" LIBS="$save_LIBS" else @@ -12858,25 +13683,29 @@ LIBS="$reset_LIBS" # # Check whether --with-hdf5_libs was given. -if test "${with_hdf5_libs+set}" = set; then : +if test ${with_hdf5_libs+y} +then : withval=$with_hdf5_libs; fi # Check whether --with-hdf5_path was given. -if test "${with_hdf5_path+set}" = set; then : +if test ${with_hdf5_path+y} +then : withval=$with_hdf5_path; fi # Check whether --with-hdf5_libdir was given. -if test "${with_hdf5_libdir+set}" = set; then : +if test ${with_hdf5_libdir+y} +then : withval=$with_hdf5_libdir; fi # Check whether --with-hdf5_includedir was given. -if test "${with_hdf5_includedir+set}" = set; then : +if test ${with_hdf5_includedir+y} +then : withval=$with_hdf5_includedir; fi @@ -12884,7 +13713,8 @@ fi # HDF5 data compression # # Check whether --enable-hdf5_compression was given. -if test "${enable_hdf5_compression+set}" = set; then : +if test ${enable_hdf5_compression+y} +then : enableval=$enable_hdf5_compression; fi @@ -12892,9 +13722,10 @@ fi # HDF5 PAR IO # # Check whether --enable-hdf5_par_io was given. -if test "${enable_hdf5_par_io+set}" = set; then : +if test ${enable_hdf5_par_io+y} +then : enableval=$enable_hdf5_par_io; -else +else $as_nop enable_hdf5_par_io="yes" fi @@ -12902,7 +13733,8 @@ fi # HDF5 FOR P2Y (also requires parallel HDF5) # # Check whether --enable-hdf5_p2y_support was given. -if test "${enable_hdf5_p2y_support+set}" = set; then : +if test ${enable_hdf5_p2y_support+y} +then : enableval=$enable_hdf5_p2y_support; fi @@ -12933,12 +13765,13 @@ 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_ac_Lib=`$as_echo "ac_cv_lib_z ''_deflate" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz " >&5 -$as_echo_n "checking for deflate in -lz ... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Lib=`printf "%s\n" "ac_cv_lib_z ""_deflate" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz " >&5 +printf %s "checking for deflate in -lz ... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -12947,9 +13780,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 deflate (); #ifdef F77_DUMMY_MAIN @@ -12968,36 +13798,39 @@ char deflate (); #endif #endif int -main () +main (void) { return deflate (); ; 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 : use_libz="yes"; -else +else $as_nop use_libz="no"; fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lsz" >&5 -$as_echo_n "checking for deflate in -lsz... " >&6; } -if ${ac_cv_lib_sz_deflate+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lsz" >&5 +printf %s "checking for deflate in -lsz... " >&6; } +if test ${ac_cv_lib_sz_deflate+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13006,9 +13839,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 deflate (); #ifdef F77_DUMMY_MAIN @@ -13027,35 +13857,38 @@ char deflate (); #endif #endif int -main () +main (void) { return deflate (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_sz_deflate=yes -else +else $as_nop ac_cv_lib_sz_deflate=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_sz_deflate" >&5 -$as_echo "$ac_cv_lib_sz_deflate" >&6; } -if test "x$ac_cv_lib_sz_deflate" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_deflate" >&5 +printf "%s\n" "$ac_cv_lib_sz_deflate" >&6; } +if test "x$ac_cv_lib_sz_deflate" = xyes +then : use_libsz="yes"; -else +else $as_nop use_libsz="no"; fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13064,9 +13897,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 dlopen (); #ifdef F77_DUMMY_MAIN @@ -13085,35 +13915,38 @@ char dlopen (); #endif #endif int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : use_libdl="yes"; -else +else $as_nop use_libdl="no"; fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_version in -lcurl" >&5 -$as_echo_n "checking for curl_version in -lcurl... " >&6; } -if ${ac_cv_lib_curl_curl_version+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curl_version in -lcurl" >&5 +printf %s "checking for curl_version in -lcurl... " >&6; } +if test ${ac_cv_lib_curl_curl_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcurl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13122,9 +13955,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 curl_version (); #ifdef F77_DUMMY_MAIN @@ -13143,35 +13973,38 @@ char curl_version (); #endif #endif int -main () +main (void) { return curl_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_curl_curl_version=yes -else +else $as_nop ac_cv_lib_curl_curl_version=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_curl_curl_version" >&5 -$as_echo "$ac_cv_lib_curl_curl_version" >&6; } -if test "x$ac_cv_lib_curl_curl_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_version" >&5 +printf "%s\n" "$ac_cv_lib_curl_curl_version" >&6; } +if test "x$ac_cv_lib_curl_curl_version" = xyes +then : use_libcurl="yes"; -else +else $as_nop use_libcurl="no"; fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 -$as_echo_n "checking for cos in -lm... " >&6; } -if ${ac_cv_lib_m_cos+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 +printf %s "checking for cos in -lm... " >&6; } +if test ${ac_cv_lib_m_cos+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 @@ -13180,9 +14013,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 cos (); #ifdef F77_DUMMY_MAIN @@ -13201,27 +14031,29 @@ char cos (); #endif #endif int -main () +main (void) { return cos (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_m_cos=yes -else +else $as_nop ac_cv_lib_m_cos=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_cos" >&5 -$as_echo "$ac_cv_lib_m_cos" >&6; } -if test "x$ac_cv_lib_m_cos" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 +printf "%s\n" "$ac_cv_lib_m_cos" >&6; } +if test "x$ac_cv_lib_m_cos" = xyes +then : use_libm="yes"; -else +else $as_nop use_libm="no"; fi @@ -13250,14 +14082,14 @@ if test x"$enable_hdf5" = "xyes"; then # if ! test "$with_hdf5_libs" = "internal" ; then # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HDF5" >&5 -$as_echo_n "checking for HDF5... " >&6; } ; - if test -d "$with_hdf5_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: in libdir $with_hdf5_libdir" >&5 -$as_echo "in libdir $with_hdf5_libdir" >&6; } ; - elif test -d "$with_hdf5_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: in path $with_hdf5_path" >&5 -$as_echo "in path $with_hdf5_path" >&6; } ; - elif test x"$with_hdf5_libs" != "x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $with_hdf5_libs" >&5 -$as_echo "using $with_hdf5_libs" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HDF5" >&5 +printf %s "checking for HDF5... " >&6; } ; + if test -d "$with_hdf5_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in libdir $with_hdf5_libdir" >&5 +printf "%s\n" "in libdir $with_hdf5_libdir" >&6; } ; + elif test -d "$with_hdf5_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in path $with_hdf5_path" >&5 +printf "%s\n" "in path $with_hdf5_path" >&6; } ; + elif test x"$with_hdf5_libs" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $with_hdf5_libs" >&5 +printf "%s\n" "using $with_hdf5_libs" >&6; } ; fi # ac_ext=${ac_fc_srcext-f} @@ -13298,25 +14130,26 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : hdf5=yes -else +else $as_nop hdf5=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; # FCFLAGS="$save_fcflags" ; LIBS="$save_libs" ; # if test "x$hdf5" = "xno" ; then - { $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; } ; # # Automatic detection of hdf5 libs copied from QE # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HDF5 using h5pfc/h5fc system compilers" >&5 -$as_echo_n "checking for HDF5 using h5pfc/h5fc system compilers... " >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HDF5 using h5pfc/h5fc system compilers" >&5 +printf %s "checking for HDF5 using h5pfc/h5fc system compilers... " >&6; } ; # h5pfc="none" if test -e $with_hdf5_path/bin/h5pfc; then @@ -13364,12 +14197,13 @@ $as_echo_n "checking for HDF5 using h5pfc/h5fc system compilers... " >&6; } ; end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : hdf5=yes -else +else $as_nop hdf5=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; # FCFLAGS="$save_fcflags" ; @@ -13378,10 +14212,10 @@ rm -f core conftest.err conftest.$ac_objext \ fi # if test "x$hdf5" = xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } ; - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HDF5 using automatic library list" >&5 -$as_echo_n "checking for HDF5 using automatic library list... " >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HDF5 using automatic library list" >&5 +printf %s "checking for HDF5 using automatic library list... " >&6; } ; # # re-define lib and inc dirs # @@ -13421,12 +14255,13 @@ $as_echo_n "checking for HDF5 using automatic library list... " >&6; } ; end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : hdf5=yes -else +else $as_nop hdf5=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; # FCFLAGS="$save_fcflags" ; @@ -13440,13 +14275,13 @@ rm -f core conftest.err conftest.$ac_objext \ HDF5_LIBS="$try_HDF5_LIBS" ; HDF5_INCS="$try_HDF5_INCS" ; if test $IO_LIB_VER = "parallel"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - parallel lib found" >&5 -$as_echo "yes - parallel lib found" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - parallel lib found" >&5 +printf "%s\n" "yes - parallel lib found" >&6; } ; HDF5_OPT="--enable-parallel" ; fi if test $IO_LIB_VER = "serial"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - serial lib found" >&5 -$as_echo "yes - serial lib found" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - serial lib found" >&5 +printf "%s\n" "yes - serial lib found" >&6; } ; HDF5_OPT="--disable-parallel" ; fi # AC_MSG_RESULT([yes]) ; @@ -13455,12 +14290,12 @@ $as_echo "yes - serial lib found" >&6; } ; # if test "x$hdf5" = xno; then if ! test "$with_hdf5_libs" = "internal" ; then - { $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 # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal HDF5 library" >&5 -$as_echo_n "checking for internal HDF5 library... " >&6; }; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal HDF5 library" >&5 +printf %s "checking for internal HDF5 library... " >&6; }; internal_hdf5="yes" ; # NETCDF_VER="v4"; @@ -13480,8 +14315,8 @@ $as_echo_n "checking for internal HDF5 library... " >&6; }; if test -e "${NETCDF_HDF5_PATH}/lib/libhdf5.a"; then # compile_hdf5="no" ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -$as_echo "already compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } ; # elif test "$IO_LIB_VER" = "serial" && test -e "${NETCDF_HDF5_PAR_PATH}/lib/libhdf5.a"; then # @@ -13490,8 +14325,8 @@ $as_echo "already compiled" >&6; } ; #HDF5_LIBS="${NETCDF_HDF5_PAR_PATH}/lib/libhdf5_hl_fortran.a ${NETCDF_HDF5_PAR_PATH}/lib/libhdf5_fortran.a ${NETCDF_HDF5_PAR_PATH}/lib/libhdf5_hl.a ${NETCDF_HDF5_PAR_PATH}/lib/libhdf5.a" ; HDF5_LIBS="-L${NETCDF_HDF5_PAR_PATH}/lib/ -lhdf5_hl_fortran -lhdf5_fortran -lhdf5_hl -lhdf5" ; HDF5_INCS="${IFLAG}${NETCDF_HDF5_PAR_PATH}/include" ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled (using parallel version)" >&5 -$as_echo "already compiled (using parallel version)" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled (using parallel version)" >&5 +printf "%s\n" "already compiled (using parallel version)" >&6; } ; # else # @@ -13500,8 +14335,8 @@ $as_echo "already compiled (using parallel version)" >&6; } ; if test "$IO_LIB_VER" = "serial"; then HDF5_OPT="--disable-parallel" ; fi if test "$IO_LIB_VER" = "parallel"; then HDF5_OPT="--enable-parallel" ; fi # - { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -$as_echo "to be compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +printf "%s\n" "to be compiled" >&6; } ; # fi # @@ -13558,50 +14393,58 @@ fi # Check whether --with-netcdf_libs was given. -if test "${with_netcdf_libs+set}" = set; then : +if test ${with_netcdf_libs+y} +then : withval=$with_netcdf_libs; fi # Check whether --with-netcdf_path was given. -if test "${with_netcdf_path+set}" = set; then : +if test ${with_netcdf_path+y} +then : withval=$with_netcdf_path; fi # Check whether --with-netcdf_libdir was given. -if test "${with_netcdf_libdir+set}" = set; then : +if test ${with_netcdf_libdir+y} +then : withval=$with_netcdf_libdir; fi # Check whether --with-netcdf_includedir was given. -if test "${with_netcdf_includedir+set}" = set; then : +if test ${with_netcdf_includedir+y} +then : withval=$with_netcdf_includedir; fi # # Check whether --with-netcdff_libs was given. -if test "${with_netcdff_libs+set}" = set; then : +if test ${with_netcdff_libs+y} +then : withval=$with_netcdff_libs; fi # Check whether --with-netcdff_path was given. -if test "${with_netcdff_path+set}" = set; then : +if test ${with_netcdff_path+y} +then : withval=$with_netcdff_path; fi # Check whether --with-netcdff_libdir was given. -if test "${with_netcdff_libdir+set}" = set; then : +if test ${with_netcdff_libdir+y} +then : withval=$with_netcdff_libdir; fi # Check whether --with-netcdff_includedir was given. -if test "${with_netcdff_includedir+set}" = set; then : +if test ${with_netcdff_includedir+y} +then : withval=$with_netcdff_includedir; fi @@ -13609,7 +14452,8 @@ fi # Large Databases Support (LFS) # # Check whether --enable-netcdf_classic was given. -if test "${enable_netcdf_classic+set}" = set; then : +if test ${enable_netcdf_classic+y} +then : enableval=$enable_netcdf_classic; fi @@ -13617,7 +14461,8 @@ fi # NETCDF PAR IO # # Check whether --enable-netcdf_par_io was given. -if test "${enable_netcdf_par_io+set}" = set; then : +if test ${enable_netcdf_par_io+y} +then : enableval=$enable_netcdf_par_io; fi @@ -13625,7 +14470,8 @@ fi # HDF5 support # # Check whether --enable-netcdf_v3 was given. -if test "${enable_netcdf_v3+set}" = set; then : +if test ${enable_netcdf_v3+y} +then : enableval=$enable_netcdf_v3; fi @@ -13633,7 +14479,8 @@ fi # HDF5 data compression # # Check whether --enable-hdf5_compression was given. -if test "${enable_hdf5_compression+set}" = set; then : +if test ${enable_hdf5_compression+y} +then : enableval=$enable_hdf5_compression; fi @@ -13641,7 +14488,8 @@ fi # NETCDF SHODOW FOR OUTPUT FILES # # Check whether --enable-netcdf_output was given. -if test "${enable_netcdf_output+set}" = set; then : +if test ${enable_netcdf_output+y} +then : enableval=$enable_netcdf_output; fi @@ -13677,10 +14525,10 @@ if test -d "$with_netcdf_path" || test -d "$with_netcdf_libdir" ; then # # external netcdf # - if test -d "$with_netcdf_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetCDF in $with_netcdf_libdir" >&5 -$as_echo_n "checking for NetCDF in $with_netcdf_libdir... " >&6; } ; - elif test -d "$with_netcdf_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetCDF in $with_netcdf_path" >&5 -$as_echo_n "checking for NetCDF in $with_netcdf_path... " >&6; } ; + if test -d "$with_netcdf_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetCDF in $with_netcdf_libdir" >&5 +printf %s "checking for NetCDF in $with_netcdf_libdir... " >&6; } ; + elif test -d "$with_netcdf_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetCDF in $with_netcdf_path" >&5 +printf %s "checking for NetCDF in $with_netcdf_path... " >&6; } ; fi # if test -d "$with_netcdf_path" ; then @@ -13725,15 +14573,15 @@ elif test x"$with_netcdf_libs" != "x" ; then # # directly provided lib # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetCDF Library using $with_netcdf_libs" >&5 -$as_echo_n "checking for NetCDF Library using $with_netcdf_libs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetCDF Library using $with_netcdf_libs" >&5 +printf %s "checking for NetCDF Library using $with_netcdf_libs... " >&6; } if test -d "$with_netcdf_includedir" ; then try_NETCDF_INCS="$IFLAG$with_netcdf_includedir" ; fi if test -d "$with_netcdff_includedir" ; then try_NETCDFF_INCS="$IFLAG$with_netcdff_includedir" ; fi netcdf="yes"; try_NETCDF_LIBS="$with_netcdf_libs" ; try_NETCDFF_LIBS="$with_netcdff_libs" ; - { $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; } # fi # @@ -13758,23 +14606,24 @@ if test x"$enable_hdf5" = "xno"; then nf_err = nf90_create('netcdf_test',nf90_share,ID) end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : netcdf=yes -else +else $as_nop netcdf=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; # if test "x$netcdf" = "xyes"; 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; } ; NETCDF_INCS="$try_NETCDF_INCS" ; NETCDF_LIBS="$try_NETCDF_LIBS" ; NETCDFF_INCS="$try_NETCDFF_INCS" ; NETCDFF_LIBS="$try_NETCDFF_LIBS" ; 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 # FCFLAGS="$save_fcflags" ; @@ -13785,8 +14634,8 @@ $as_echo "no" >&6; } ; # # internal netcdf # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal NetCDF library" >&5 -$as_echo_n "checking for internal NetCDF library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal NetCDF library" >&5 +printf %s "checking for internal NetCDF library... " >&6; } # internal_netcdf="yes" # @@ -13812,22 +14661,22 @@ $as_echo_n "checking for internal NetCDF library... " >&6; } if test x"$enable_pnecdf" = "xyes"; then if test -e "${NETCDF_HDF5_PATH}/lib/libnetcdf.a" && test -e "${NETCDF_HDF5_PATH}/lib/libnetcdff.a"; then compile_netcdf="no" ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -$as_echo "already compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } ; else compile_netcdf="yes" ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -$as_echo "to be compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +printf "%s\n" "to be compiled" >&6; } ; fi else if test -e "${NETCDF_HDF5_PATH}/lib/libnetcdf.a" && test -e "${NETCDF_HDF5_PATH}/lib/libnetcdff.a"; then compile_netcdf="no" ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -$as_echo "already compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } ; else compile_netcdf="yes" ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -$as_echo "to be compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +printf "%s\n" "to be compiled" >&6; } ; fi fi # @@ -13862,12 +14711,13 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : netcdf=yes -else +else $as_nop netcdf=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; # if test "x$netcdf" = "xyes"; then @@ -13875,8 +14725,8 @@ rm -f core conftest.err conftest.$ac_objext \ NETCDF_INCS="$try_NETCDF_INCS" ; NETCDFF_LIBS="$try_NETCDFF_LIBS" ; NETCDFF_INCS="$try_NETCDFF_INCS" ; - { $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; } ; # fi # @@ -13884,11 +14734,11 @@ $as_echo "yes" >&6; } ; LIBS="$save_libs" ; # if test "x$netcdf" = "xno"; then - if test -d "$with_netcdf_libdir" || test -d "$with_netcdf_path" || test -d "$with_netcdff_libdir" || test -d "$with_netcdff_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } ; fi + if test -d "$with_netcdf_libdir" || test -d "$with_netcdf_path" || test -d "$with_netcdff_libdir" || test -d "$with_netcdff_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ; fi # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal NETCDF library" >&5 -$as_echo_n "checking for internal NETCDF library... " >&6; }; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal NETCDF library" >&5 +printf %s "checking for internal NETCDF library... " >&6; }; internal_netcdf="yes" ; # NETCDF_OPT="--enable-netcdf-4"; @@ -13909,8 +14759,8 @@ $as_echo_n "checking for internal NETCDF library... " >&6; }; if test -e "${NETCDF_HDF5_PATH}/lib/libnetcdf.a" && test -e "${NETCDF_HDF5_PATH}/lib/libnetcdff.a" ; then # compile_netcdf="no" ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -$as_echo "already compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } ; # elif test "$IO_LIB_VER" = "serial" && test -e "${NETCDF_HDF5_PAR_PATH}/lib/libnetcdf.a" && test -e "${NETCDF_HDF5_PAR_PATH}/lib/libnetcdff.a" && test -e "${NETCDF_HDF5_PAR_PATH}/lib/libhdf5.a"; then # @@ -13922,8 +14772,8 @@ $as_echo "already compiled" >&6; } ; #NETCDFF_LIBS="${NETCDF_HDF5_PAR_PATH}/lib/libnetcdff.a" ; NETCDFF_LIBS="-L${NETCDF_HDF5_PAR_PATH}/lib/ -lnetcdff" ; NETCDFF_INCS="${IFLAG}${NETCDF_HDF5_PAR_PATH}/include" ; - { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled (using parallel version)" >&5 -$as_echo "already compiled (using parallel version)" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled (using parallel version)" >&5 +printf "%s\n" "already compiled (using parallel version)" >&6; } ; # else # @@ -13932,8 +14782,8 @@ $as_echo "already compiled (using parallel version)" >&6; } ; if test "$IO_LIB_VER" = "serial"; then HDF5_OPT="--disable-parallel" ; fi if test "$IO_LIB_VER" = "parallel"; then HDF5_OPT="--enable-parallel" ; fi # - { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -$as_echo "to be compiled" >&6; } ; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +printf "%s\n" "to be compiled" >&6; } ; # fi # @@ -14015,32 +14865,37 @@ fi # Check whether --enable-yaml_output was given. -if test "${enable_yaml_output+set}" = set; then : +if test ${enable_yaml_output+y} +then : enableval=$enable_yaml_output; fi # Check whether --with-yaml_libs was given. -if test "${with_yaml_libs+set}" = set; then : +if test ${with_yaml_libs+y} +then : withval=$with_yaml_libs; fi # Check whether --with-yaml_libdir was given. -if test "${with_yaml_libdir+set}" = set; then : +if test ${with_yaml_libdir+y} +then : withval=$with_yaml_libdir; fi # Check whether --with-yaml_libdir was given. -if test "${with_yaml_libdir+set}" = set; then : +if test ${with_yaml_libdir+y} +then : withval=$with_yaml_libdir; fi # Check whether --with-yaml_includedir was given. -if test "${with_yaml_includedir+set}" = set; then : +if test ${with_yaml_includedir+y} +then : withval=$with_yaml_includedir; fi @@ -14048,25 +14903,29 @@ fi # Check whether --with-futile_libs was given. -if test "${with_futile_libs+set}" = set; then : +if test ${with_futile_libs+y} +then : withval=$with_futile_libs; fi # Check whether --with-futile_libdir was given. -if test "${with_futile_libdir+set}" = set; then : +if test ${with_futile_libdir+y} +then : withval=$with_futile_libdir; fi # Check whether --with-futile_libdir was given. -if test "${with_futile_libdir+set}" = set; then : +if test ${with_futile_libdir+y} +then : withval=$with_futile_libdir; fi # Check whether --with-futile_includedir was given. -if test "${with_futile_includedir+set}" = set; then : +if test ${with_futile_includedir+y} +then : withval=$with_futile_includedir; fi @@ -14089,10 +14948,10 @@ if test "x$enable_yaml" = "xyes" ; then # # external YAML # - if test -d "$with_yaml_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAML in $with_yaml_path" >&5 -$as_echo_n "checking for YAML in $with_yaml_path... " >&6; } ; fi - if test -d "$with_yaml_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAML in $with_yaml_libdir" >&5 -$as_echo_n "checking for YAML in $with_yaml_libdir... " >&6; } ; fi + if test -d "$with_yaml_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAML in $with_yaml_path" >&5 +printf %s "checking for YAML in $with_yaml_path... " >&6; } ; fi + if test -d "$with_yaml_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAML in $with_yaml_libdir" >&5 +printf %s "checking for YAML in $with_yaml_libdir... " >&6; } ; fi # if test -d "$with_yaml_path" ; then try_yaml_libdir_src=$with_yaml_path/src @@ -14111,55 +14970,55 @@ $as_echo_n "checking for YAML in $with_yaml_libdir... " >&6; } ; fi compile_yaml="no" YAML_INCS="$IFLAG$try_yaml_incdir_src" YAML_LIBS="$try_yaml_libdir_src/libyaml.a" - { $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; } elif test -r $try_yaml_libdir/libyaml.a && test -e $try_yaml_incdir/yaml_module.mod ; then compile_yaml="no" YAML_INCS="$IFLAG$try_yaml_incdir" YAML_LIBS="$try_yaml_libdir/libyaml.a" - { $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; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 -$as_echo "no. Fallback to internal library." >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 +printf "%s\n" "no. Fallback to internal library." >&6; } fi elif test x"$with_yaml_libs" != "x" ; then # # directly provided lib # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAML Library using $with_yaml_libs" >&5 -$as_echo_n "checking for YAML Library using $with_yaml_libs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAML Library using $with_yaml_libs" >&5 +printf %s "checking for YAML Library using $with_yaml_libs... " >&6; } compile_yaml="no" if test -d "$with_yaml_includedir" ; then YAML_INCS="$IFLAG$with_yaml_includedir" ; fi YAML_LIBS="$with_yaml_libs" - { $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; } fi if test "$YAML_LIBS" = " "; then # # internal YAML # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal YAML library" >&5 -$as_echo_n "checking for internal YAML library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal YAML library" >&5 +printf %s "checking for internal YAML library... " >&6; } internal_yaml="yes" YAML_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include/" YAML_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libyaml.a" if ! test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libyaml.a" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/yaml_parse.mod" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/yaml.h"; then compile_yaml="yes" if test ! -d lib ; then mkdir lib ; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -$as_echo "to be compiled" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +printf "%s\n" "to be compiled" >&6; } else compile_yaml="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -$as_echo "already compiled" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } fi fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAML library" >&5 -$as_echo_n "checking for YAML library... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAML library" >&5 +printf %s "checking for YAML library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -14183,10 +15042,10 @@ if test "x$enable_futile" = "xyes" ; then # # external FUTILE # - if test -d "$with_futile_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUTILE in $with_futile_path" >&5 -$as_echo_n "checking for FUTILE in $with_futile_path... " >&6; } ; fi - if test -d "$with_futile_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUTILE in $with_futile_libdir" >&5 -$as_echo_n "checking for FUTILE in $with_futile_libdir... " >&6; } ; fi + if test -d "$with_futile_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUTILE in $with_futile_path" >&5 +printf %s "checking for FUTILE in $with_futile_path... " >&6; } ; fi + if test -d "$with_futile_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUTILE in $with_futile_libdir" >&5 +printf %s "checking for FUTILE in $with_futile_libdir... " >&6; } ; fi # if test -d "$with_futile_path" ; then try_futile_libdir_src=$with_futile_path/src @@ -14205,55 +15064,55 @@ $as_echo_n "checking for FUTILE in $with_futile_libdir... " >&6; } ; fi compile_futile="no" FUTILE_INCS="$IFLAG$try_futile_incdir_src" FUTILE_LIBS="$try_futile_libdir_src/libfutile-1.a" - { $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; } elif test -r $try_futile_libdir/libfutile-1.a && test -e $try_futile_incdir/futile_module.mod ; then compile_futile="no" FUTILE_INCS="$IFLAG$try_futile_incdir" FUTILE_LIBS="$try_futile_libdir/libfutile-1.a" - { $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; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 -$as_echo "no. Fallback to internal library." >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 +printf "%s\n" "no. Fallback to internal library." >&6; } fi elif test x"$with_futile_libs" != "x" ; then # # directly provided lib # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUTILE Library using $with_futile_libs" >&5 -$as_echo_n "checking for FUTILE Library using $with_futile_libs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUTILE Library using $with_futile_libs" >&5 +printf %s "checking for FUTILE Library using $with_futile_libs... " >&6; } compile_futile="no" if test -d "$with_futile_includedir" ; then FUTILE_INCS="$IFLAG$with_futile_includedir" ; fi FUTILE_LIBS="$with_futile_libs" - { $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; } fi if test "$FUTILE_LIBS" = " "; then # # internal FUTILE # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal FUTILE library" >&5 -$as_echo_n "checking for internal FUTILE library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal FUTILE library" >&5 +printf %s "checking for internal FUTILE library... " >&6; } internal_futile="yes" FUTILE_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include/" FUTILE_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libfutile-1.a" if ! test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libfutile-1.a" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/futile.mod" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/futile.h"; then compile_futile="yes" if test ! -d lib ; then mkdir lib ; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -$as_echo "to be compiled" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +printf "%s\n" "to be compiled" >&6; } else compile_futile="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -$as_echo "already compiled" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } fi fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUTILE library" >&5 -$as_echo_n "checking for FUTILE library... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUTILE library" >&5 +printf %s "checking for FUTILE library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # if test $enable_yaml = "yes" && test $enable_futile = "yes" ; then @@ -14279,33 +15138,38 @@ fi # # Check whether --enable-iotk was given. -if test "${enable_iotk+set}" = set; then : +if test ${enable_iotk+y} +then : enableval=$enable_iotk; -else +else $as_nop enable_iotk="yes" fi # Check whether --with-iotk_libs was given. -if test "${with_iotk_libs+set}" = set; then : +if test ${with_iotk_libs+y} +then : withval=$with_iotk_libs; fi # Check whether --with-iotk_path was given. -if test "${with_iotk_path+set}" = set; then : +if test ${with_iotk_path+y} +then : withval=$with_iotk_path; fi # Check whether --with-iotk_libdir was given. -if test "${with_iotk_libdir+set}" = set; then : +if test ${with_iotk_libdir+y} +then : withval=$with_iotk_libdir; fi # Check whether --with-iotk_includedir was given. -if test "${with_iotk_includedir+set}" = set; then : +if test ${with_iotk_includedir+y} +then : withval=$with_iotk_includedir; fi @@ -14326,10 +15190,10 @@ if test "x$enable_iotk" = "xyes" ; then # # external IOTK # - if test -d "$with_iotk_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOTK in $with_iotk_path" >&5 -$as_echo_n "checking for IOTK in $with_iotk_path... " >&6; } ; fi - if test -d "$with_iotk_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOTK in $with_iotk_libdir" >&5 -$as_echo_n "checking for IOTK in $with_iotk_libdir... " >&6; } ; fi + if test -d "$with_iotk_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IOTK in $with_iotk_path" >&5 +printf %s "checking for IOTK in $with_iotk_path... " >&6; } ; fi + if test -d "$with_iotk_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IOTK in $with_iotk_libdir" >&5 +printf %s "checking for IOTK in $with_iotk_libdir... " >&6; } ; fi # if test -d "$with_iotk_path" ; then try_iotk_libdir_src=$with_iotk_path/src @@ -14350,39 +15214,39 @@ $as_echo_n "checking for IOTK in $with_iotk_libdir... " >&6; } ; fi IOTK_INCS="$IFLAG$try_iotk_incdir_src" #IOTK_LIBS="$try_iotk_libdir_src/libiotk.a" IOTK_LIBS="-L$try_iotk_libdir_src/ -liotk" - { $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; } elif test -r $try_iotk_libdir/libiotk.a && test -e $try_iotk_incdir/iotk_module.mod ; then compile_p2y="yes" compile_iotk="no" IOTK_INCS="$IFLAG$try_iotk_incdir" #IOTK_LIBS="$try_iotk_libdir/libiotk.a" IOTK_LIBS="-L$try_iotk_libdir/ -liotk" - { $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; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 -$as_echo "no. Fallback to internal library." >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 +printf "%s\n" "no. Fallback to internal library." >&6; } fi elif test x"$with_iotk_libs" != "x" ; then # # directly provided lib # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOTK Library using $with_iotk_libs" >&5 -$as_echo_n "checking for IOTK Library using $with_iotk_libs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IOTK Library using $with_iotk_libs" >&5 +printf %s "checking for IOTK Library using $with_iotk_libs... " >&6; } compile_p2y="yes" compile_iotk="no" if test -d "$with_iotk_includedir" ; then IOTK_INCS="$IFLAG$with_iotk_includedir" ; fi IOTK_LIBS="$with_iotk_libs" - { $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; } fi if test "$IOTK_LIBS" = " "; then # # internal IOTK # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal IOTK library" >&5 -$as_echo_n "checking for internal IOTK library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal IOTK library" >&5 +printf %s "checking for internal IOTK library... " >&6; } internal_iotk="yes" compile_p2y="yes" IOTK_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include/" @@ -14391,14 +15255,14 @@ $as_echo_n "checking for internal IOTK library... " >&6; } if ! test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libiotk.a" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/iotk_base.mod" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/iotk_specials.h"; then compile_iotk="yes" if test ! -d lib ; then mkdir lib ; fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -$as_echo "to be compiled" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +printf "%s\n" "to be compiled" >&6; } ac_config_files="$ac_config_files lib/iotk/make_iotk.inc:lib/iotk/make_iotk.inc.in" else compile_iotk="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -$as_echo "already compiled" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +printf "%s\n" "already compiled" >&6; } fi fi # @@ -14414,10 +15278,10 @@ $as_echo "already compiled" >&6; } else PW_VER="no support" PW_CPP="" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOTK library" >&5 -$as_echo_n "checking for IOTK library... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IOTK library" >&5 +printf %s "checking for IOTK library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # # @@ -14437,33 +15301,38 @@ fi # Check whether --enable-etsf_io was given. -if test "${enable_etsf_io+set}" = set; then : +if test ${enable_etsf_io+y} +then : enableval=$enable_etsf_io; -else +else $as_nop enable_etsf_io="no" fi # Check whether --with-etsf_io_libs was given. -if test "${with_etsf_io_libs+set}" = set; then : +if test ${with_etsf_io_libs+y} +then : withval=$with_etsf_io_libs; fi # Check whether --with-etsf_io_path was given. -if test "${with_etsf_io_path+set}" = set; then : +if test ${with_etsf_io_path+y} +then : withval=$with_etsf_io_path; fi # Check whether --with-etsf_io_libdir was given. -if test "${with_etsf_io_libdir+set}" = set; then : +if test ${with_etsf_io_libdir+y} +then : withval=$with_etsf_io_libdir; fi # Check whether --with-etsf_io_includedir was given. -if test "${with_etsf_io_includedir+set}" = set; then : +if test ${with_etsf_io_includedir+y} +then : withval=$with_etsf_io_includedir; fi @@ -14490,10 +15359,10 @@ if test "x$enable_etsf_io" = "xyes" ; then # # external ETSF_IO # - if test -d "$with_etsf_io_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO in $with_etsf_io_path" >&5 -$as_echo_n "checking for ETSF_IO in $with_etsf_io_path... " >&6; } ; fi - if test -d "$with_etsf_io_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO in $with_etsf_io_libdir" >&5 -$as_echo_n "checking for ETSF_IO in $with_etsf_io_libdir... " >&6; } ; fi + if test -d "$with_etsf_io_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO in $with_etsf_io_path" >&5 +printf %s "checking for ETSF_IO in $with_etsf_io_path... " >&6; } ; fi + if test -d "$with_etsf_io_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO in $with_etsf_io_libdir" >&5 +printf %s "checking for ETSF_IO in $with_etsf_io_libdir... " >&6; } ; fi # if test -d "$with_etsf_io_path" ; then try_etsf_libdir=$with_etsf_io_path/lib @@ -14512,50 +15381,50 @@ $as_echo_n "checking for ETSF_IO in $with_etsf_io_libdir... " >&6; } ; fi ETSF_LIBS="$try_etsf_libdir/libetsf_io.a" ETSF_INCS="$IFLAG$try_etsf_incdir" # - { $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; } 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 elif test x"$with_etsf_io_libs" != "x" ; then # # directly provided lib # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO Library using $with_etsf_io_libs" >&5 -$as_echo_n "checking for ETSF_IO Library using $with_etsf_io_libs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO Library using $with_etsf_io_libs" >&5 +printf %s "checking for ETSF_IO Library using $with_etsf_io_libs... " >&6; } internal_etsf="no" compile_e2y="yes" if test -d "$with_etsf_io_includedir" ; then ETSF_INCS="$IFLAG$with_etsf_io_includedir" ; fi ETSF_LIBS="$with_etsf_io_libs" - { $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; } else # # internal ETSF_IO # - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal ETSF_IO Library" >&5 -$as_echo_n "checking for internal ETSF_IO Library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal ETSF_IO Library" >&5 +printf %s "checking for internal ETSF_IO Library... " >&6; } internal_etsf="yes" compile_e2y="yes" ETSF_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ETSF_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libetsf_io.a" if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libetsf_io.a"; then compile_etsf="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found already compiled" >&5 -$as_echo "found already compiled" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found already compiled" >&5 +printf "%s\n" "found already compiled" >&6; } else compile_etsf="yes" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -$as_echo "to be compiled" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +printf "%s\n" "to be compiled" >&6; } fi fi # else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO Library" >&5 -$as_echo_n "checking for ETSF_IO Library... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO Library" >&5 +printf %s "checking for ETSF_IO Library... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # @@ -14571,25 +15440,29 @@ fi # Check whether --with-libxc_libs was given. -if test "${with_libxc_libs+set}" = set; then : +if test ${with_libxc_libs+y} +then : withval=$with_libxc_libs; fi # Check whether --with-libxc_path was given. -if test "${with_libxc_path+set}" = set; then : +if test ${with_libxc_path+y} +then : withval=$with_libxc_path; fi # Check whether --with-libxc_libdir was given. -if test "${with_libxc_libdir+set}" = set; then : +if test ${with_libxc_libdir+y} +then : withval=$with_libxc_libdir; fi # Check whether --with-libxc_includedir was given. -if test "${with_libxc_includedir+set}" = set; then : +if test ${with_libxc_includedir+y} +then : withval=$with_libxc_includedir; fi @@ -14602,8 +15475,8 @@ compile_libxc="no" acx_libxc_save_LIBS="$LIBS" acx_libxc_save_FCFLAGS="$FCFLAGS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxc" >&5 -$as_echo_n "checking for libxc... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxc" >&5 +printf %s "checking for libxc... " >&6; } testprog=" program main @@ -14623,10 +15496,11 @@ if test ! -z "$LIBXC_LIBS"; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libxc_ok=yes 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 @@ -14656,10 +15530,11 @@ if test x"$acx_libxc_ok" = xno ; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libxc_ok=yes 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 dynamic / user provided linkage did not work, try static one @@ -14669,10 +15544,11 @@ rm -f core conftest.err conftest.$ac_objext \ cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libxc_ok=yes 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 fi @@ -14750,66 +15626,71 @@ if test x"$acx_libxc_ok" = xyes; then cat > conftest.$ac_ext <<_ACEOF $testprog_11 _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libxc_version=110, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_12 _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libxc_version=120, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_20 _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libxc_version=200, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_203 _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libxc_version=203, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_21 _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libxc_version=210, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_4x _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libxc_version=400, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_5x _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libxc_version=5, acx_libxc_ok=yes 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 -cat >>confdefs.h <<_ACEOF -#define LIBXC_VERSION $acx_libxc_version -_ACEOF +printf "%s\n" "#define LIBXC_VERSION $acx_libxc_version" >>confdefs.h -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Found external LibXC version=$acx_libxc_version (should be 5)" >&5 -$as_echo "Found external LibXC version=$acx_libxc_version (should be 5)" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Found external LibXC version=$acx_libxc_version (should be 5)" >&5 +printf "%s\n" "Found external LibXC version=$acx_libxc_version (should be 5)" >&6; } fi if test x"$acx_libxc_ok" = xyes; then @@ -14817,7 +15698,7 @@ if test x"$acx_libxc_ok" = xyes; then internal_libxc=no # -$as_echo "#define HAVE_LIBXC 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBXC 1" >>confdefs.h fi @@ -14830,12 +15711,12 @@ if test x"$acx_libxc_ok" = xno; then LIBXC_INCS="$IFLAG${extlibs_path}/${FCKIND}/${FC}/include" if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libxc.a" && test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libxcf90.a" && test -e ${extlibs_path}/${FCKIND}/${FC}/lib/libxcf03.a; then compile_libxc="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external LibXC not found/specified. Found internal already compiled." >&5 -$as_echo "Compatible external LibXC not found/specified. Found internal already compiled." >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external LibXC not found/specified. Found internal already compiled." >&5 +printf "%s\n" "Compatible external LibXC not found/specified. Found internal already compiled." >&6; } else compile_libxc="yes" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external LibXC not found/specified. Internal to be compiled." >&5 -$as_echo "Compatible external LibXC not found/specified. Internal to be compiled." >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external LibXC not found/specified. Internal to be compiled." >&5 +printf "%s\n" "Compatible external LibXC not found/specified. Internal to be compiled." >&6; } fi fi @@ -14852,42 +15733,48 @@ LIBS="$acx_libxc_save_LIBS" # Check whether --with-cuda_libs was given. -if test "${with_cuda_libs+set}" = set; then : +if test ${with_cuda_libs+y} +then : withval=$with_cuda_libs; fi # Check whether --with-cuda_incs was given. -if test "${with_cuda_incs+set}" = set; then : +if test ${with_cuda_incs+y} +then : withval=$with_cuda_incs; fi # # Check whether --with-cuda_libdir was given. -if test "${with_cuda_libdir+set}" = set; then : +if test ${with_cuda_libdir+y} +then : withval=$with_cuda_libdir; fi # Check whether --with-cuda_includedir was given. -if test "${with_cuda_includedir+set}" = set; then : +if test ${with_cuda_includedir+y} +then : withval=$with_cuda_includedir; fi # # Check whether --with-cuda_path was given. -if test "${with_cuda_path+set}" = set; then : +if test ${with_cuda_path+y} +then : withval=$with_cuda_path; fi # # Check whether --enable-cuda-libs-check was given. -if test "${enable_cuda_libs_check+set}" = set; then : +if test ${enable_cuda_libs_check+y} +then : enableval=$enable_cuda_libs_check; -else +else $as_nop enable_cuda_libs_check=yes fi @@ -14949,65 +15836,69 @@ FCFLAGS="$LIBCUDA_INCS $acx_libcuda_save_FCFLAGS" # set from environment variable, if not blank if test ! -z "$CUDA_LIBS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcuda from environment" >&5 -$as_echo_n "checking for libcuda from environment... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcuda from environment" >&5 +printf %s "checking for libcuda from environment... " >&6; } LIBCUDA_LIBS="$CUDA_LIBS" LIBS="$LIBCUDA_LIBS" cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libcuda_ok=yes 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 # set from --with-cuda-libs flag if test x"$acx_libcuda_ok" = xno && test ! -z "$with_cuda_libs" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcuda from --with-cuda-libs" >&5 -$as_echo_n "checking for libcuda from --with-cuda-libs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcuda from --with-cuda-libs" >&5 +printf %s "checking for libcuda from --with-cuda-libs... " >&6; } LIBCUDA_LIBS="$with_cuda_libs" LIBS="$LIBCUDA_LIBS" cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libcuda_ok=yes 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 # dynamic linkage, separate Fortran interface if test x"$acx_libcuda_ok" = xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcuda from specified libcuda path, dynamic" >&5 -$as_echo_n "checking for libcuda from specified libcuda path, dynamic... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcuda from specified libcuda path, dynamic" >&5 +printf %s "checking for libcuda from specified libcuda path, dynamic... " >&6; } LIBCUDA_LIBS="-L$libcuda_libdir -lcufft -lcusolver -lcublas -lcudart -lcuda" LIBS="$LIBCUDA_LIBS" cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libcuda_ok=yes 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 # static linkage, separate Fortran interface if test x"$acx_libcuda_ok" = xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking static" >&5 -$as_echo_n "checking static... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking static" >&5 +printf %s "checking static... " >&6; } LIBCUDA_LIBS="$libcuda_libdir/libcuda.a" LIBS="$LIBCUDA_LIBS" cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_libcuda_ok=yes 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 @@ -15017,13 +15908,13 @@ if test x"$acx_libcuda_ok" = xyes; then internal_libcuda=no # -$as_echo "#define HAVE_LIBCUDA 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBCUDA 1" >>confdefs.h - { $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; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5 -$as_echo "not found." >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found." >&5 +printf "%s\n" "not found." >&6; } use_libcuda=no compile_libcuda=no internal_libcuda=no @@ -15080,9 +15971,10 @@ LIBS="$acx_libcuda_save_LIBS" # # Check whether --with-cuda-cc was given. -if test "${with_cuda_cc+set}" = set; then : +if test ${with_cuda_cc+y} +then : withval=$with_cuda_cc; -else +else $as_nop with_cuda_cc=70 fi @@ -15161,77 +16053,88 @@ fi # Check whether --with-cuda-runtime was given. -if test "${with_cuda_runtime+set}" = set; then : +if test ${with_cuda_runtime+y} +then : withval=$with_cuda_runtime; -else +else $as_nop with_cuda_runtime=10.1 fi # # Check whether --with-cuda-int-libs was given. -if test "${with_cuda_int_libs+set}" = set; then : +if test ${with_cuda_int_libs+y} +then : withval=$with_cuda_int_libs; -else +else $as_nop with_cuda_int_libs=cufft,cublas,cusolver fi # # Check whether --enable-nvtx was given. -if test "${enable_nvtx+set}" = set; then : +if test ${enable_nvtx+y} +then : enableval=$enable_nvtx; -else +else $as_nop enable_nvtx="no" fi # # Check whether --with-gpu_libs was given. -if test "${with_gpu_libs+set}" = set; then : +if test ${with_gpu_libs+y} +then : withval=$with_gpu_libs; fi # Check whether --with-gpu_incs was given. -if test "${with_gpu_incs+set}" = set; then : +if test ${with_gpu_incs+y} +then : withval=$with_gpu_incs; fi # # Check whether --with-rocm_libs was given. -if test "${with_rocm_libs+set}" = set; then : +if test ${with_rocm_libs+y} +then : withval=$with_rocm_libs; fi # Check whether --with-rocm_incs was given. -if test "${with_rocm_incs+set}" = set; then : +if test ${with_rocm_incs+y} +then : withval=$with_rocm_incs; fi # Check whether --with-rocm_libdir was given. -if test "${with_rocm_libdir+set}" = set; then : +if test ${with_rocm_libdir+y} +then : withval=$with_rocm_libdir; fi # Check whether --with-rocm_includedir was given. -if test "${with_rocm_includedir+set}" = set; then : +if test ${with_rocm_includedir+y} +then : withval=$with_rocm_includedir; fi # Check whether --with-rocm_path was given. -if test "${with_rocm_path+set}" = set; then : +if test ${with_rocm_path+y} +then : withval=$with_rocm_path; fi # # Check whether --with-mklgpu_libs was given. -if test "${with_mklgpu_libs+set}" = set; then : +if test ${with_mklgpu_libs+y} +then : withval=$with_mklgpu_libs; fi @@ -15326,11 +16229,12 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu 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 flag to compile .f90 files" >&5 -$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } -if ${ac_cv_fc_srcext_f90+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5 +printf %s "checking for Fortran flag to compile .f90 files... " >&6; } +if test ${ac_cv_fc_srcext_f90+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=f90 ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= @@ -15346,17 +16250,18 @@ for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : ac_cv_fc_srcext_f90=$ac_flag; break 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 done rm -f conftest.$ac_objext conftest.f90 ac_fcflags_srcext=$ac_fcflags_srcext_save fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 -$as_echo "$ac_cv_fc_srcext_f90" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 +printf "%s\n" "$ac_cv_fc_srcext_f90" >&6; } if test "x$ac_cv_fc_srcext_f90" = xunknown; then as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 else @@ -15376,32 +16281,35 @@ 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_CACHEVAR=`$as_echo "ax_cv_check_fcflags__$GPU_FLAGS" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler accepts $GPU_FLAGS" >&5 -$as_echo_n "checking whether Fortran compiler accepts $GPU_FLAGS... " >&6; } -if eval \${$as_CACHEVAR+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_CACHEVAR=`printf "%s\n" "ax_cv_check_fcflags__$GPU_FLAGS" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler accepts $GPU_FLAGS" >&5 +printf %s "checking whether Fortran compiler accepts $GPU_FLAGS... " >&6; } +if eval test \${$as_CACHEVAR+y} +then : + printf %s "(cached) " >&6 +else $as_nop ax_check_save_flags=$FCFLAGS FCFLAGS="$FCFLAGS $GPU_FLAGS" cat > conftest.$ac_ext <<_ACEOF MODULE test; use cudafor; END MODULE _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : eval "$as_CACHEVAR=yes" -else +else $as_nop eval "$as_CACHEVAR=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 FCFLAGS=$ax_check_save_flags fi eval ac_res=\$$as_CACHEVAR - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = 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_CACHEVAR"\" = x"yes" +then : have_cudafor=yes -else +else $as_nop have_cudafor=no fi @@ -15503,34 +16411,39 @@ fi # Check whether --with-devxlib_libs was given. -if test "${with_devxlib_libs+set}" = set; then : +if test ${with_devxlib_libs+y} +then : withval=$with_devxlib_libs; fi # Check whether --with-devxlib_path was given. -if test "${with_devxlib_path+set}" = set; then : +if test ${with_devxlib_path+y} +then : withval=$with_devxlib_path; fi # Check whether --with-devxlib_libdir was given. -if test "${with_devxlib_libdir+set}" = set; then : +if test ${with_devxlib_libdir+y} +then : withval=$with_devxlib_libdir; fi # Check whether --with-devxlib_includedir was given. -if test "${with_devxlib_includedir+set}" = set; then : +if test ${with_devxlib_includedir+y} +then : withval=$with_devxlib_includedir; fi # Check whether --with-devxlib-branch was given. -if test "${with_devxlib_branch+set}" = set; then : +if test ${with_devxlib_branch+y} +then : withval=$with_devxlib_branch; -else +else $as_nop with_devxlib_branch=none fi @@ -15555,8 +16468,8 @@ acx_devxlib_save_LIBS="$LIBS" acx_devxlib_save_FCFLAGS="$FCFLAGS" #This is fake, it is always going to fail -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for devxlib" >&5 -$as_echo_n "checking for devxlib... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for devxlib" >&5 +printf %s "checking for devxlib... " >&6; } testprog=" program main @@ -15575,10 +16488,11 @@ if test ! -z "$DEVXLIB_LIBS"; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_devxlib_ok=yes 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 @@ -15589,10 +16503,11 @@ if test x"$acx_devxlib_ok" = xno && test ! -z "$with_devxlib_libs" ; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_devxlib_ok=yes 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 @@ -15603,10 +16518,11 @@ if test x"$acx_devxlib_ok" = xno; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_devxlib_ok=yes 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 @@ -15617,10 +16533,11 @@ if test x"$acx_devxlib_ok" = xno; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_devxlib_ok=yes 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 @@ -15631,10 +16548,11 @@ if test x"$acx_devxlib_ok" = xno; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_devxlib_ok=yes 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 @@ -15645,10 +16563,11 @@ if test x"$acx_devxlib_ok" = xno; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : acx_devxlib_ok=yes 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 @@ -15658,7 +16577,7 @@ if test x"$acx_devxlib_ok" = xyes; then internal_devxlib=no # -$as_echo "#define HAVE_DEVXLIB 1" >>confdefs.h +printf "%s\n" "#define HAVE_DEVXLIB 1" >>confdefs.h fi @@ -15669,8 +16588,8 @@ if test x"$acx_devxlib_ok" = xno; then DEVXLIB_INCS="$IFLAG${extlibs_path}/${FCKIND}/${FC}/${GPU_SUPPORT}/include" if test -e "${extlibs_path}/${FCKIND}/${FC}/${GPU_SUPPORT}/lib/libdevXlib.a"; then compile_devxlib="no" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external DevXlib not found/specified. Found internal already compiled." >&5 -$as_echo "Compatible external DevXlib not found/specified. Found internal already compiled." >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external DevXlib not found/specified. Found internal already compiled." >&5 +printf "%s\n" "Compatible external DevXlib not found/specified. Found internal already compiled." >&6; } else if test x"$with_devxlib_branch" = "xnone"; then DEVXLIB_info="(devxlib tarball)" @@ -15678,8 +16597,8 @@ $as_echo "Compatible external DevXlib not found/specified. Found internal alread DEVXLIB_info="(devxlib $with_devxlib_branch branch)" fi compile_devxlib="yes" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external DevXlib not found/specified. Internal to be compiled." >&5 -$as_echo "Compatible external DevXlib not found/specified. Internal to be compiled." >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external DevXlib not found/specified. Internal to be compiled." >&5 +printf "%s\n" "Compatible external DevXlib not found/specified. Internal to be compiled." >&6; } fi fi FCFLAGS="$acx_devxlib_save_FCFLAGS" @@ -16401,8 +17320,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) ;; #( @@ -16432,15 +17351,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 @@ -16454,8 +17373,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 @@ -16472,7 +17391,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" @@ -16488,8 +17407,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 @@ -16512,14 +17431,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 ;; #( @@ -16529,46 +17450,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 || @@ -16577,13 +17498,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 #(( @@ -16592,8 +17506,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 @@ -16605,30 +17523,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] @@ -16641,13 +17539,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. @@ -16674,18 +17573,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 @@ -16697,12 +17598,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` @@ -16733,7 +17635,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 @@ -16755,6 +17657,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*) @@ -16768,6 +17674,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 @@ -16809,7 +17721,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" @@ -16818,7 +17730,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 @@ -16881,7 +17793,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # values after options handling. ac_log=" This file was extended by Yambo $as_me 5.3.0 r.23795 h.87d0217fe1, 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 @@ -16939,14 +17851,16 @@ $config_headers Report bugs to ." _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="\\ Yambo config.status 5.3.0 r.23795 h.87d0217fe1 -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." @@ -16983,15 +17897,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'" @@ -16999,7 +17913,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;; @@ -17008,7 +17922,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=: ;; @@ -17036,7 +17950,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 "\$@" @@ -17050,7 +17964,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 @@ -17090,8 +18004,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 @@ -17427,7 +18341,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 @@ -17435,17 +18349,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 @@ -17462,7 +18376,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 @@ -17486,9 +18400,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/ ;; @@ -17541,8 +18455,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=' @@ -17584,9 +18498,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" @@ -17602,20 +18516,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 @@ -17656,8 +18570,8 @@ 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 # @@ -17799,3 +18713,4 @@ cat config/report if test "x$enable_ydb" = "xyes"; then cat config/msg_ydb fi + diff --git a/include/version/version.m4 b/include/version/version.m4 index 073717a540..6722228387 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -2,8 +2,8 @@ AC_INIT(Yambo, 5.3.0 r.23795 h.87d0217fe1, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="3" SPATCHLEVEL="0" -SREVISION="23796" -SHASH="b00c133c8b" +SREVISION="23811" +SHASH="5e711996fd" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) From 82c7eeb67083d2124f15428de42fd9b2d150d1d4 Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Wed, 15 Jan 2025 10:39:50 +0100 Subject: [PATCH 22/36] Version 5.3.0, Revision 23925, Hash 5e1a3aea10 MODIFIED * configure include/version/version.m4 ypp/excitons/excitons_bands.F ypp/excitons/excitons_interpolate_setup.F ypp/plotting/plot_interpolated_values.F Changes: - Built in bands available also in excitons interpolation Patch sent by: Davide Sangalli --- configure | 22 ++--- include/version/version.m4 | 6 +- ypp/excitons/excitons_bands.F | 84 ++++++++++++++++++-- ypp/excitons/excitons_interpolate_setup.F | 6 +- ypp/plotting/plot_interpolated_values.F | 97 ++++++++++++++--------- 5 files changed, 153 insertions(+), 62 deletions(-) diff --git a/configure b/configure index 71b154c982..93776b4357 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.3.0 r.23900 h.e51825f30d. +# Generated by GNU Autoconf 2.71 for Yambo 5.3.0 r.23925 h.5e1a3aea10. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.3.0 r.23900 h.e51825f30d' -PACKAGE_STRING='Yambo 5.3.0 r.23900 h.e51825f30d' +PACKAGE_VERSION='5.3.0 r.23925 h.5e1a3aea10' +PACKAGE_STRING='Yambo 5.3.0 r.23925 h.5e1a3aea10' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -1659,7 +1659,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.3.0 r.23900 h.e51825f30d to adapt to many kinds of systems. +\`configure' configures Yambo 5.3.0 r.23925 h.5e1a3aea10 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1725,7 +1725,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.3.0 r.23900 h.e51825f30d:";; + short | recursive ) echo "Configuration of Yambo 5.3.0 r.23925 h.5e1a3aea10:";; esac cat <<\_ACEOF @@ -1967,7 +1967,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.3.0 r.23900 h.e51825f30d +Yambo configure 5.3.0 r.23925 h.5e1a3aea10 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2596,7 +2596,7 @@ 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 Yambo $as_me 5.3.0 r.23900 h.e51825f30d, which was +It was created by Yambo $as_me 5.3.0 r.23925 h.5e1a3aea10, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3354,8 +3354,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SVERSION="5" SSUBVERSION="3" SPATCHLEVEL="0" -SREVISION="23900" -SHASH="e51825f30d" +SREVISION="23925" +SHASH="5e1a3aea10" @@ -17784,7 +17784,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.3.0 r.23900 h.e51825f30d, which was +This file was extended by Yambo $as_me 5.3.0 r.23925 h.5e1a3aea10, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -17848,7 +17848,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Yambo config.status 5.3.0 r.23900 h.e51825f30d +Yambo config.status 5.3.0 r.23925 h.5e1a3aea10 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/include/version/version.m4 b/include/version/version.m4 index dc93105999..a5c5e2d1ec 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.3.0 r.23900 h.e51825f30d, yambo@yambo-code.org) +AC_INIT(Yambo, 5.3.0 r.23925 h.5e1a3aea10, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="3" SPATCHLEVEL="0" -SREVISION="23900" -SHASH="e51825f30d" +SREVISION="23925" +SHASH="5e1a3aea10" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) diff --git a/ypp/excitons/excitons_bands.F b/ypp/excitons/excitons_bands.F index dae520a8e3..68f6d82cee 100644 --- a/ypp/excitons/excitons_bands.F +++ b/ypp/excitons/excitons_bands.F @@ -34,32 +34,33 @@ subroutine excitons_bands(k,Xk,en,Xen,q) ! Work space ! integer :: iq,i_c,i_l,ID_INTERP_EXC,i_E - real(SP), allocatable :: BS_all_E(:,:),BSE_interp_E(:,:),values(:) + real(SP), allocatable :: BSE_interp_E(:,:),values(:) type(bz_samp) :: GRID_q character(schlen) :: file_name character(schlen), allocatable :: headings(:) - logical :: GRID_interpolate,l_prt_dos + logical :: BANDS_built_in,GRID_interpolate,l_prt_dos real(SP) :: tmp_q(3) real(SP) :: dos_E(DOS_E_steps),exc_DOS(DOS_E_steps) + real(SP) :: BS_all_E(EXCITONS_n_user_states,q%nibz) type(PP_indexes) :: px ! ! Parse the different interpolations ! call parser('PrtDOS',l_prt_dos) + call parser('BANDS_built_in',BANDS_built_in) GRID_interpolate = all(INTERP_grid>0) ! if(l_prt_dos.and..not.GRID_interpolate) call error("You need to specify a Q-grid for the DOS") ! ! Allocate arrays for all eigenvalues/eigenvectors ! - YAMBO_ALLOC(BS_all_E,(EXCITONS_n_user_states,q%nibz)) YAMBO_ALLOC(values,(EXCITONS_n_user_states+4)) allocate(headings(EXCITONS_n_user_states+4)) ! ! Read and interpolate excitons dispersion ! ID_INTERP_EXC=1 - call excitons_interpolate_setup(k,Xk,en,Xen,q,ID_INTERP_EXC,.TRUE.) + call excitons_interpolate_setup(k,Xk,en,Xen,q,BS_all_E,ID_INTERP_EXC,.TRUE.) ! ! Interpolate and write on disk ! @@ -72,7 +73,9 @@ subroutine excitons_bands(k,Xk,en,Xen,q) YAMBO_ALLOC(BSE_interp_E,(EXCITONS_n_user_states,CIRCUIT_k%nibz)) call INTERPOLATION_BZ(K=CIRCUIT_k,NK=CIRCUIT_k%nbz,R1D=BSE_interp_E,ID=ID_INTERP_EXC) ! - call print_BANDS() + call print_interpolated_BANDS() + ! + if (BANDS_built_in) call print_built_in_BANDS() ! endif ! @@ -150,7 +153,7 @@ subroutine print_DOS() ! end subroutine print_DOS ! - subroutine print_BANDS() + subroutine print_interpolated_BANDS() implicit none ! headings(1)=" |q| (a.u.) " @@ -181,7 +184,74 @@ subroutine print_BANDS() enddo call of_open_close(trim(file_name)) ! - end subroutine print_BANDS + end subroutine print_interpolated_BANDS + ! + subroutine print_built_in_BANDS() + implicit none + ! + integer :: i_point,n_points,n_points_max,iq_bz_grid,iq_ibz_grid + real(SP) :: value_k,values(EXCITONS_n_user_states+4) + integer, allocatable :: Grid_to_path_map(:,:) + real(SP), allocatable :: tmp_var(:,:),tmp_q(:,:),tmp_k_dist(:,:) + ! + call k_ibz2bz(q,'iku',.true.) + ! + YAMBO_ALLOC(Grid_to_path_map,(USER_k%nbz,q%nbz)) + call define_grid_map(q,USER_k,Grid_to_path_map,n_points_max) + YAMBO_ALLOC(tmp_var,(EXCITONS_n_user_states,n_points_max)) + ! + YAMBO_ALLOC( tmp_q,(3,n_points_max)) + YAMBO_ALLOC(tmp_k_dist,(3,n_points_max)) + ! + headings(1)=" |q| (a.u.) " + do i_c=1,EXCITONS_n_user_states + i_l=EXCITONS_user_indexes(i_c) + headings(i_c+1)=' e'//intc(i_l) + enddo + headings(EXCITONS_n_user_states+2:EXCITONS_n_user_states+4)=& +& (/"q_x ("//trim(coo_out)//")","q_y ("//trim(coo_out)//")","q_z ("//trim(coo_out)//")"/) + ! + file_name="excitons_built_in" + call of_open_close(trim(file_name),'ot') + call msg('o '//trim(file_name),"#",headings,INDENT=0,USE_TABS=.true.) + call msg('o '//trim(file_name),"#") + ! + values=0._SP + ! + do iq=1,USER_k%nibz + ! + if (iq>1) value_k=value_k+iku_v_norm(USER_k%pt(iq,:3)-USER_k%pt(iq-1,:3)) + ! + n_points=0 + ! + do iq_bz_grid=1,q%nbz + if( Grid_to_path_map(iq,iq_bz_grid)==-1 ) cycle + n_points=n_points+1 + iq_ibz_grid=q%sstar(iq_bz_grid,1) + ! + tmp_k_dist(:,n_points)=q%ptbz(iq_bz_grid,:)-USER_k%pt(iq,:) + tmp_q(:,n_points)=q%ptbz(iq_bz_grid,:) + ! + tmp_var(:,n_points)=BS_all_E(:,iq_ibz_grid) + ! + enddo + ! + do i_point=1,n_points + ! + call K_transform(tmp_q(:,i_point),'iku') + ! + values(1)=value_k+iku_v_norm(tmp_k_dist(:,i_point)) + values(2:EXCITONS_n_user_states+1)=tmp_var(:,i_point)*HA2EV + values(EXCITONS_n_user_states+2:EXCITONS_n_user_states+4)=tmp_q(:,i_point) + ! + call msg('o '//trim(file_name),' ',values,INDENT=0,USE_TABS=.true.) + enddo + ! + enddo + ! + call of_open_close(trim(file_name)) + ! + end subroutine print_built_in_BANDS ! subroutine print_INTERP_GRID() implicit none diff --git a/ypp/excitons/excitons_interpolate_setup.F b/ypp/excitons/excitons_interpolate_setup.F index aa5019c088..c71c4a10c0 100644 --- a/ypp/excitons/excitons_interpolate_setup.F +++ b/ypp/excitons/excitons_interpolate_setup.F @@ -5,7 +5,7 @@ ! ! Authors (see AUTHORS file for details): CA ! -subroutine excitons_interpolate_setup(k,Xk,en,Xen,q,ID_INTERP_EXC,report) +subroutine excitons_interpolate_setup(k,Xk,en,Xen,q,BS_all_E,ID_INTERP_EXC,report) ! ! This subroutine read and interpolate exciton ! @@ -22,21 +22,19 @@ subroutine excitons_interpolate_setup(k,Xk,en,Xen,q,ID_INTERP_EXC,report) ! type(bz_samp) ::Xk,k,q type(levels) ::Xen,en + real(SP),intent(out) :: BS_all_E(EXCITONS_n_user_states,q%nibz) logical, intent(in) :: report integer, intent(inout) :: ID_INTERP_EXC ! ! Work space ! integer :: iq,i_c,i_l,io_err - real(SP), allocatable :: BS_all_E(:,:) real(SP), allocatable :: values(:) real(SP) :: tmp_q(3) character(schlen), allocatable :: headings(:) ! ! Allocate arrays for all eigenvalues/eigenvectors ! - YAMBO_ALLOC(BS_all_E,(EXCITONS_n_user_states,q%nibz)) - ! call section('*','Excitons Interpolation') ! call excitons_read(k,Xk,en,Xen,1,"clean",io_err) diff --git a/ypp/plotting/plot_interpolated_values.F b/ypp/plotting/plot_interpolated_values.F index 9039bd9eef..03d35e19cb 100644 --- a/ypp/plotting/plot_interpolated_values.F +++ b/ypp/plotting/plot_interpolated_values.F @@ -11,7 +11,7 @@ subroutine plot_interpolated_values(Xk,Xen,Ef,LOCAL_k,IDs,dims,nquantities,nfile use pars, ONLY:SP,schlen use com, ONLY:msg,of_open_close use electrons, ONLY:levels,n_sp_pol,n_spinor - use vec_operate, ONLY:v_norm,iku_v_norm + use vec_operate, ONLY:iku_v_norm use R_lattice, ONLY:bz_samp use stderr, ONLY:intc use YPPm, ONLY:coo_out,K_transform,CIRCUIT_E_db,CIRCUIT_k_label @@ -47,7 +47,6 @@ subroutine plot_interpolated_values(Xk,Xen,Ef,LOCAL_k,IDs,dims,nquantities,nfile ! Allocs ! integer, allocatable :: Grid_to_path_map(:,:) - real(SP), allocatable :: circuit_versor(:,:),circuit_dist(:,:) real(SP), allocatable :: auxiliary_var(:,:,:,:),tmp_k(:,:),tmp_k_dist(:,:) ! PLOT_interpolated = index(trim(basename),"interpolated")>0 @@ -66,45 +65,11 @@ subroutine plot_interpolated_values(Xk,Xen,Ef,LOCAL_k,IDs,dims,nquantities,nfile #if defined _YPP_SC proj_wfc=(trim(SC_neq_kind)=="matsubara") #endif - ! - ! Define a map between k-points in grid and nearest k-point in circuit ! if (PLOT_built_in) then - ! - YAMBO_ALLOC(circuit_versor,(3,LOCAL_k%nbz)) - YAMBO_ALLOC(circuit_dist ,(3,LOCAL_k%nbz)) ! YAMBO_ALLOC(Grid_to_path_map,(LOCAL_k%nbz,Xk%nbz)) - Grid_to_path_map =-1 - ! - do ik_local=1,LOCAL_k%nbz-1 - tmp_dist=LOCAL_k%pt(ik_local+1,:)-LOCAL_k%pt(ik_local,:) - circuit_dist (:,ik_local)=tmp_dist - circuit_versor(:,ik_local)=tmp_dist/v_norm(tmp_dist) - enddo - circuit_versor(:,ik_local)=circuit_versor(:,ik_local-1) - ! - n_points_max=0 - do ik_local=1,LOCAL_k%nbz - ! - n_points=0 - do ik_bz_grid=1,Xk%nbz - ! - tmp_dist=Xk%ptbz(ik_bz_grid,:)-LOCAL_k%pt(ik_local,:) - ! - if ((abs(v_norm(tmp_dist)-dot_product(tmp_dist,circuit_versor(:,ik_local)))<1.E-5_SP).and.& - & iku_v_norm(tmp_dist)<=iku_v_norm(circuit_dist(:,ik_local)) ) then - Grid_to_path_map(ik_local,ik_bz_grid)=ik_bz_grid - n_points=n_points+1 - endif - n_points_max=max(n_points,n_points_max) - ! - enddo - ! - enddo - ! - YAMBO_FREE(circuit_versor) - YAMBO_FREE(circuit_dist ) + call define_grid_map(Xk,Local_k,Grid_to_path_map,n_points_max) ! if(n_points_max>1) then YAMBO_ALLOC(auxiliary_var,(dims(1):dims(2),maxval(nfiles),nquantities,n_points_max-1)) @@ -320,3 +285,61 @@ subroutine plot_interpolated_values(Xk,Xen,Ef,LOCAL_k,IDs,dims,nquantities,nfile endif ! end subroutine plot_interpolated_values +! +! +subroutine define_grid_map(Xk,Local_k,Grid_to_path_map,n_points_max) + ! + use pars, ONLY:SP + use R_lattice, ONLY:bz_samp + use vec_operate, ONLY:v_norm,iku_v_norm + ! +#include + ! + type(bz_samp), intent(in) :: Xk,LOCAL_k + integer, intent(out) :: Grid_to_path_map(LOCAL_k%nbz,Xk%nbz) + integer, intent(out) :: n_points_max + ! + ! Workspace + ! + integer :: n_points,ik_local,ik_bz_grid + real(SP) :: tmp_dist(3) + real(SP), allocatable :: circuit_versor(:,:),circuit_dist(:,:) + ! + ! Define a map between k-points in grid and nearest k-point in circuit + ! + YAMBO_ALLOC(circuit_versor,(3,LOCAL_k%nbz)) + YAMBO_ALLOC(circuit_dist ,(3,LOCAL_k%nbz)) + ! + Grid_to_path_map =-1 + n_points=1 + ! + do ik_local=1,LOCAL_k%nbz-1 + tmp_dist=LOCAL_k%pt(ik_local+1,:)-LOCAL_k%pt(ik_local,:) + circuit_dist (:,ik_local)=tmp_dist + circuit_versor(:,ik_local)=tmp_dist/v_norm(tmp_dist) + enddo + circuit_versor(:,ik_local)=circuit_versor(:,ik_local-1) + ! + n_points_max=0 + do ik_local=1,LOCAL_k%nbz + ! + n_points=0 + do ik_bz_grid=1,Xk%nbz + ! + tmp_dist=Xk%ptbz(ik_bz_grid,:)-LOCAL_k%pt(ik_local,:) + ! + if ((abs(v_norm(tmp_dist)-dot_product(tmp_dist,circuit_versor(:,ik_local)))<1.E-5_SP).and.& + & iku_v_norm(tmp_dist)<=iku_v_norm(circuit_dist(:,ik_local)) ) then + Grid_to_path_map(ik_local,ik_bz_grid)=ik_bz_grid + n_points=n_points+1 + endif + n_points_max=max(n_points,n_points_max) + ! + enddo + ! + enddo + ! + YAMBO_FREE(circuit_versor) + YAMBO_FREE(circuit_dist ) + ! +end subroutine define_grid_map From 7643232b1ad41e7ed435549bb61b4d633c77e53c Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Tue, 21 Jan 2025 16:51:17 +0100 Subject: [PATCH 23/36] Version 5.3.0, Revision 23939, Hash 2d982002ae MODIFIED * configure include/version/version.m4 dipoles/Berry_polarization_EQ.F dipoles/DIPOLE_covariant.F hamiltonian/Build_W_operator.F nloptics/NL_Berry_current.F nloptics/NL_current.F Bugs: - List of changes propsed in https://github.com/yambo-code/yambo/issues/172 Branch created after quick discussion with Claudio and Myrta Patch sent by: Davide Sangalli --- configure | 22 +++++++++++----------- include/version/version.m4 | 6 +++--- src/dipoles/Berry_polarization_EQ.F | 2 +- src/dipoles/DIPOLE_covariant.F | 2 +- src/hamiltonian/Build_W_operator.F | 2 +- src/nloptics/NL_Berry_current.F | 2 +- src/nloptics/NL_current.F | 4 ++-- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/configure b/configure index 4cb86dc232..f24019b20b 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.3.0 r.23906 h.8a510177c. +# Generated by GNU Autoconf 2.71 for Yambo 5.3.0 r.23939 h.2d982002ae. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.3.0 r.23906 h.8a510177c' -PACKAGE_STRING='Yambo 5.3.0 r.23906 h.8a510177c' +PACKAGE_VERSION='5.3.0 r.23939 h.2d982002ae' +PACKAGE_STRING='Yambo 5.3.0 r.23939 h.2d982002ae' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -1659,7 +1659,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.3.0 r.23906 h.8a510177c to adapt to many kinds of systems. +\`configure' configures Yambo 5.3.0 r.23939 h.2d982002ae to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1725,7 +1725,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.3.0 r.23906 h.8a510177c:";; + short | recursive ) echo "Configuration of Yambo 5.3.0 r.23939 h.2d982002ae:";; esac cat <<\_ACEOF @@ -1967,7 +1967,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.3.0 r.23906 h.8a510177c +Yambo configure 5.3.0 r.23939 h.2d982002ae generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2596,7 +2596,7 @@ 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 Yambo $as_me 5.3.0 r.23906 h.8a510177c, which was +It was created by Yambo $as_me 5.3.0 r.23939 h.2d982002ae, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3354,8 +3354,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SVERSION="5" SSUBVERSION="3" SPATCHLEVEL="0" -SREVISION="23906" -SHASH="8a510177c" +SREVISION="23939" +SHASH="2d982002ae" @@ -17784,7 +17784,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.3.0 r.23906 h.8a510177c, which was +This file was extended by Yambo $as_me 5.3.0 r.23939 h.2d982002ae, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -17848,7 +17848,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Yambo config.status 5.3.0 r.23906 h.8a510177c +Yambo config.status 5.3.0 r.23939 h.2d982002ae configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/include/version/version.m4 b/include/version/version.m4 index 1e618cf693..b56cde571e 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.3.0 r.23906 h.8a510177c, yambo@yambo-code.org) +AC_INIT(Yambo, 5.3.0 r.23939 h.2d982002ae, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="3" SPATCHLEVEL="0" -SREVISION="23906" -SHASH="8a510177c" +SREVISION="23939" +SHASH="2d982002ae" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) diff --git a/src/dipoles/Berry_polarization_EQ.F b/src/dipoles/Berry_polarization_EQ.F index d2149ee9fe..cd1ad3fe82 100644 --- a/src/dipoles/Berry_polarization_EQ.F +++ b/src/dipoles/Berry_polarization_EQ.F @@ -76,7 +76,7 @@ subroutine Berry_polarization_EQ(P_Berry_Red,All_S_det,en,Xk,k_map) enddo enddo ! - P_Berry_RED(id_in)=-P_Berry_RED(id_in)/real(Nperpend,SP) + P_Berry_RED(id_in)=P_Berry_RED(id_in)/real(Nperpend,SP) ! enddo ! diff --git a/src/dipoles/DIPOLE_covariant.F b/src/dipoles/DIPOLE_covariant.F index b8d6de6378..fe925eb748 100644 --- a/src/dipoles/DIPOLE_covariant.F +++ b/src/dipoles/DIPOLE_covariant.F @@ -159,7 +159,7 @@ subroutine DIPOLE_covariant(Xen,Xk,Dip,direction_is_todo) do ic=max(iv,Dip%ib_lim(2)),Dip%ib(2) if(.not.PAR_IND_CON_BANDS_DIP%element_1D(ic)) cycle do idir=1,3 - DIP_iR(idir,ic,iv,ik_mem,i_sp_pol)=(DIP_tmp(idir,ic,iv)+conjg(DIP_tmp(idir,iv,ic)))/cI + DIP_iR(idir,ic,iv,ik_mem,i_sp_pol)=(DIP_tmp(idir,ic,iv)+conjg(DIP_tmp(idir,iv,ic)))*cI enddo enddo enddo diff --git a/src/hamiltonian/Build_W_operator.F b/src/hamiltonian/Build_W_operator.F index 037f8bade1..0f5919c33c 100644 --- a/src/hamiltonian/Build_W_operator.F +++ b/src/hamiltonian/Build_W_operator.F @@ -133,7 +133,7 @@ subroutine Build_W_operator(en,Xk,A_input,ik,i_sp,V_bands,H_nl_sc) !$omp parallel do default(shared), private(i1,id) do i1=H_ref_bands(1),H_ref_bands(2) do id=1,3 - H_nl_sc(i1,H_ref_bands(1):H_ref_bands(2))=H_nl_sc(i1,H_ref_bands(1):H_ref_bands(2))- & + H_nl_sc(i1,H_ref_bands(1):H_ref_bands(2))=H_nl_sc(i1,H_ref_bands(1):H_ref_bands(2))+ & & E_vec_pot(id)*Wk(id,i1,H_ref_bands(1):H_ref_bands(2)) enddo enddo diff --git a/src/nloptics/NL_Berry_current.F b/src/nloptics/NL_Berry_current.F index fe59c94178..2c871955e6 100644 --- a/src/nloptics/NL_Berry_current.F +++ b/src/nloptics/NL_Berry_current.F @@ -118,7 +118,7 @@ subroutine NL_Berry_current(en,Xk,k_map,V_bands,NL_J) ! !$omp parallel do default(shared), private(i1) do id=1,3 - NL_J(id)=-sum(NL_J_red(:)*a(:,id))/(4.0*pi) + NL_J(id)=sum(NL_J_red(:)*a(:,id))/(4.0*pi) enddo !$omp end parallel do ! diff --git a/src/nloptics/NL_current.F b/src/nloptics/NL_current.F index 917539d684..ef7a33c2da 100644 --- a/src/nloptics/NL_current.F +++ b/src/nloptics/NL_current.F @@ -41,12 +41,12 @@ subroutine NL_current(k,E,V_input,NL_J) ! ! A : Current ! - call NL_average_operator(V_VALUE=NL_J(4:6), V_MATRIX=DIP_v(:,NL_bands(1):NL_bands(2),NL_bands(1):NL_bands(2),:,:), & + call NL_average_operator(V_VALUE=NL_J(4:6), V_MATRIX=-DIP_v(:,NL_bands(1):NL_bands(2),NL_bands(1):NL_bands(2),:,:), & & V_bands=V_input,k=k,en=E,TRANS=.TRUE.,nK_mem=PAR_Xk_nibz) ! ! DEBUG < ! Calculate current using density matrix - ! call NL_average_operator(V_VALUE=NL_J(4:6), V_MATRIX=DIP_v(:,NL_bands(1):NL_bands(2),NL_bands(1):NL_bands(2),:,:), & + ! call NL_average_operator(V_VALUE=NL_J(4:6), V_MATRIX=-DIP_v(:,NL_bands(1):NL_bands(2),NL_bands(1):NL_bands(2),:,:), & ! & dG=dG,k=k,en=E,TRANS=.TRUE.,nK_mem=PAR_Xk_nibz) ! DEBUG > ! From 36aa6cf58102ffa74d83c789abcc050c9bbb55bc Mon Sep 17 00:00:00 2001 From: Davide Sangalli Date: Tue, 25 Feb 2025 14:58:21 +0100 Subject: [PATCH 24/36] Version 5.3.0, Revision 23949, Hash cdf88af1ad MODIFIED * configure include/version/version.m4 NEW * Discussion_AD_DS_20250225.dat Additions: - Created file with discussion with AndreaF Patch sent by: Davide Sangalli --- Discussion_AD_DS_20250225.dat | 29 +++++++++++++++++++++++++++++ configure | 22 +++++++++++----------- include/version/version.m4 | 6 +++--- 3 files changed, 43 insertions(+), 14 deletions(-) create mode 100644 Discussion_AD_DS_20250225.dat diff --git a/Discussion_AD_DS_20250225.dat b/Discussion_AD_DS_20250225.dat new file mode 100644 index 0000000000..fbf90acd1b --- /dev/null +++ b/Discussion_AD_DS_20250225.dat @@ -0,0 +1,29 @@ + + +- mod_wrapper --> wrapper yambo for single and double to blas --> when available calls devxlib single and double subroutines + +- mod_linear algebra has wrappers single and double to few selected lapack + --> LU_factorization + --> SV_decomposition + +- dedicated subroutines which interfaces lapack or magma (single and double precision version), and serial or parallel (?) + + SERIAL_HERMITIAN_diagonalization --> could be renamed HEEV + SERIAL_diagonalization (non hermitian case) --> could be renamed GEEV ? + SERIAL_inversion + SERIAL_SVD_inversion + SERIAL_lin_system (to be merge also with SERIAL_lin_system_gpu) + + PARALLEL_HERMITIAN_diagonalization --> could be merged with SERIAL_HERMITIAN_diagonalization + PARALLEL_diagonalization (non hermitian case) --> could be merged with SERIAL_diagonalization + + PARALLEL_MbyM could be created (for now it does not exist) + + The kind of operation could be managed via an handle, however the sobroutines must be cleaned by all extra operations, e.g. + allocation, parallel setup, etc ... which should be shifted inside LINEAR_ALGEBRA_init or similar subroutine + + LINEAR_ALGEBRA_driver is never directly called, but the above subroutines are directly called. It only performs initializations + + +- To be removed: + M_eigenvalues, heev and geev interfaces diff --git a/configure b/configure index 4cb86dc232..628efd2e0f 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.3.0 r.23906 h.8a510177c. +# Generated by GNU Autoconf 2.71 for Yambo 5.3.0 r.23949 h.cdf88af1ad. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='Yambo' PACKAGE_TARNAME='yambo' -PACKAGE_VERSION='5.3.0 r.23906 h.8a510177c' -PACKAGE_STRING='Yambo 5.3.0 r.23906 h.8a510177c' +PACKAGE_VERSION='5.3.0 r.23949 h.cdf88af1ad' +PACKAGE_STRING='Yambo 5.3.0 r.23949 h.cdf88af1ad' PACKAGE_BUGREPORT='yambo@yambo-code.org' PACKAGE_URL='' @@ -1659,7 +1659,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures Yambo 5.3.0 r.23906 h.8a510177c to adapt to many kinds of systems. +\`configure' configures Yambo 5.3.0 r.23949 h.cdf88af1ad to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1725,7 +1725,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of Yambo 5.3.0 r.23906 h.8a510177c:";; + short | recursive ) echo "Configuration of Yambo 5.3.0 r.23949 h.cdf88af1ad:";; esac cat <<\_ACEOF @@ -1967,7 +1967,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -Yambo configure 5.3.0 r.23906 h.8a510177c +Yambo configure 5.3.0 r.23949 h.cdf88af1ad generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -2596,7 +2596,7 @@ 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 Yambo $as_me 5.3.0 r.23906 h.8a510177c, which was +It was created by Yambo $as_me 5.3.0 r.23949 h.cdf88af1ad, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3354,8 +3354,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu SVERSION="5" SSUBVERSION="3" SPATCHLEVEL="0" -SREVISION="23906" -SHASH="8a510177c" +SREVISION="23949" +SHASH="cdf88af1ad" @@ -17784,7 +17784,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by Yambo $as_me 5.3.0 r.23906 h.8a510177c, which was +This file was extended by Yambo $as_me 5.3.0 r.23949 h.cdf88af1ad, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -17848,7 +17848,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -Yambo config.status 5.3.0 r.23906 h.8a510177c +Yambo config.status 5.3.0 r.23949 h.cdf88af1ad configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff --git a/include/version/version.m4 b/include/version/version.m4 index 1e618cf693..af36ce0f55 100644 --- a/include/version/version.m4 +++ b/include/version/version.m4 @@ -1,9 +1,9 @@ -AC_INIT(Yambo, 5.3.0 r.23906 h.8a510177c, yambo@yambo-code.org) +AC_INIT(Yambo, 5.3.0 r.23949 h.cdf88af1ad, yambo@yambo-code.org) SVERSION="5" SSUBVERSION="3" SPATCHLEVEL="0" -SREVISION="23906" -SHASH="8a510177c" +SREVISION="23949" +SHASH="cdf88af1ad" AC_SUBST(SVERSION) AC_SUBST(SSUBVERSION) AC_SUBST(SPATCHLEVEL) From 58e409e43ea3ab6802a410fbe6d828fcf2002f9d Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Fri, 28 Feb 2025 15:01:26 +0100 Subject: [PATCH 25/36] one more step for magma support impl --- configure | 8415 ++++++++++++++++++-------------------- lib/archive/package.list | 2 +- 2 files changed, 3910 insertions(+), 4507 deletions(-) diff --git a/configure b/configure index 71b154c982..961fa62e10 100755 --- a/configure +++ b/configure @@ -1,12 +1,11 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for Yambo 5.3.0 r.23900 h.e51825f30d. +# Generated by GNU Autoconf 2.69 for Yambo 5.3.0 r.23900 h.e51825f30d. # # Report bugs to . # # -# 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 @@ -17,16 +16,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 ;; #( @@ -36,46 +33,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 || @@ -84,6 +81,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 #(( @@ -92,12 +96,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 @@ -109,10 +109,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. @@ -134,22 +154,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 ;; #( @@ -169,52 +187,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" - if (eval "$as_required") 2>/dev/null -then : + 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 : 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 @@ -222,21 +230,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 @@ -254,19 +255,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 and + $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: yambo@yambo-code.org about your system, including any $0: error possibly output before this message. Then install $0: a modern shell, or manually run the script under such a @@ -294,7 +294,6 @@ as_fn_unset () } as_unset=as_fn_unset - # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -312,14 +311,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 # ------------- @@ -334,7 +325,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" @@ -343,7 +334,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 @@ -382,13 +373,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 @@ -400,27 +390,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] # ---------------------------------------- @@ -432,9 +413,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 @@ -461,7 +442,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 @@ -505,7 +486,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 @@ -519,10 +500,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*) @@ -536,13 +513,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 @@ -619,36 +589,40 @@ ac_default_prefix=$PWD ac_unique_file="driver/yambo.F" # 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_SYS_STAT_H +# include #endif -#ifdef HAVE_STDLIB_H +#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 compdir LAPACK_PETSC_INCS_R @@ -667,6 +641,8 @@ PETSC_INCS_R PETSC_LIBS_R BLACS_INCS_R BLACS_LIBS_R +MAGMA_INCS_R +MAGMA_LIBS_R SCALAPACK_INCS_R SCALAPACK_LIBS_R LAPACK_INCS_R @@ -693,6 +669,7 @@ MPI_info MPI_check LIBCUDA_check DEVXLIB_check +MAGMA_check LIBXC_check YPY_check YDB_check @@ -720,6 +697,13 @@ MEM_profile_check TIME_profile_check KEEP_OBJS_check DP_check +internal_magma +compile_magma_fmodules +compile_magma +enable_magma +def_magma +MAGMA_INCS +MAGMA_LIBS with_devxlib_branch DEVXLIB_info internal_devxlib @@ -862,7 +846,6 @@ FFLAGS F77 FPP CPPFLAGS_yambo -CPP IFLAG FCLIBS OPENMPLIBS @@ -896,9 +879,6 @@ AR MAKE ifGNUmake hostname -SIZEOF_INT_P -SET_MAKE -LIBOBJS host_os host_vendor host_cpu @@ -907,9 +887,15 @@ build_os build_vendor build_cpu build +SIZEOF_INT_P +SET_MAKE +LIBOBJS ALLOCA Y_BRANCH GIT_CHECK +EGREP +GREP +CPP OBJEXT EXEEXT ac_ct_CC @@ -954,7 +940,6 @@ infodir docdir oldincludedir includedir -runstatedir localstatedir sharedstatedir sysconfdir @@ -1092,6 +1077,12 @@ with_devxlib_path with_devxlib_libdir with_devxlib_includedir with_devxlib_branch +enable_magma_linalg +with_magma_libs +with_magma_incs +with_magma_path +with_magma_libdir +with_magma_includedir ' ac_precious_vars='build_alias host_alias @@ -1101,10 +1092,10 @@ CFLAGS LDFLAGS LIBS CPPFLAGS +CPP FC FCFLAGS UFLAGS -CPP FPP F77 FFLAGS @@ -1149,7 +1140,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}' @@ -1179,6 +1169,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 ;; @@ -1219,9 +1211,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" @@ -1245,9 +1237,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" @@ -1400,15 +1392,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=* \ @@ -1458,9 +1441,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" @@ -1474,9 +1457,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" @@ -1520,9 +1503,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}" ;; @@ -1538,7 +1521,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 @@ -1546,7 +1529,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. @@ -1602,7 +1585,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 @@ -1699,7 +1682,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] @@ -1781,6 +1763,8 @@ Optional Features: The configure script will check CUDA installation and report problems [default=yes] --enable-nvtx= Enable NVTX support [default=no] + --enable-magma-linalg Enable suport for the diagonalization of BSE using + MAGMA. Default is no Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1880,6 +1864,12 @@ Optional Packages: Path to the devxlib include directory --with-devxlib-branch= Use the of the devxlib repository. + --with-magma-libs= Use Magma libraries + --with-magma-incs= Use Magma includes + --with-magma-path= Path to the Magma install directory + --with-magma-libdir= Path to the Magma lib directory + --with-magma-includedir= + Path to the Magma include directory Some influential environment variables: CC C compiler command @@ -1889,10 +1879,10 @@ Some influential environment variables: LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory + CPP C preprocessor FC Fortran compiler command FCFLAGS Fortran compiler flags UFLAGS Unoptimized Fortran flags - CPP C preprocessor FPP Fortran preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags @@ -1919,9 +1909,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/ ;; @@ -1949,8 +1939,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 @@ -1958,7 +1947,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 @@ -1968,9 +1957,9 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF Yambo configure 5.3.0 r.23900 h.e51825f30d -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. _ACEOF @@ -1987,14 +1976,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 @@ -2002,15 +1991,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 @@ -2020,6 +2008,176 @@ fi } # ac_fn_c_try_compile +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $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 : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # 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;} +( $as_echo "## ----------------------------------- ## +## Report this to yambo@yambo-code.org ## +## ----------------------------------- ##" + ) | sed "s/^/$as_me: WARNING: /" >&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 @@ -2027,28 +2185,26 @@ 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 @@ -2060,17 +2216,16 @@ printf "%s\n" "$ac_res" >&6; } ac_fn_c_check_member () { 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.$3" >&5 -printf %s "checking for $2.$3... " >&6; } -if eval test \${$4+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +$as_echo_n "checking for $2.$3... " >&6; } +if eval \${$4+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int -main (void) +main () { static $2 ac_aggr; if (ac_aggr.$3) @@ -2079,15 +2234,14 @@ return 0; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : eval "$4=yes" -else $as_nop +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int -main (void) +main () { static $2 ac_aggr; if (sizeof ac_aggr.$3) @@ -2096,19 +2250,18 @@ return 0; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : eval "$4=yes" -else $as_nop +else eval "$4=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 -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=\$$4 - { 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_member @@ -2120,18 +2273,17 @@ printf "%s\n" "$ac_res" >&6; } ac_fn_c_check_type () { 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 eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main (void) +main () { if (sizeof ($2)) return 0; @@ -2139,13 +2291,12 @@ if (sizeof ($2)) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main (void) +main () { if (sizeof (($2))) return 0; @@ -2153,19 +2304,18 @@ if (sizeof (($2))) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : -else $as_nop +else eval "$3=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 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_type @@ -2176,14 +2326,14 @@ printf "%s\n" "$ac_res" >&6; } 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 @@ -2191,18 +2341,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 @@ -2217,79 +2366,102 @@ fi } # ac_fn_c_try_link -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that -# executables *can* be run. -ac_fn_c_try_run () +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () { 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\"" -printf "%s\n" "$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; } && { 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\"" -printf "%s\n" "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } -then : - ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: program exited with status $ac_status" >&5 - printf "%s\n" "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + { $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. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 - 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 +/* 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. */ -} # ac_fn_c_try_run +#ifdef __STDC__ +# include +#else +# include +#endif -# ac_fn_fc_try_compile LINENO -# --------------------------- -# Try to compile conftest.$ac_ext, and return whether this succeeded. -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 - 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 - (eval "$ac_compile") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +#undef $2 + +/* 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 $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + 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; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_fc_try_compile LINENO +# --------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_fc_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + 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\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $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 @@ -2305,14 +2477,14 @@ fi ac_fn_fc_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 @@ -2320,18 +2492,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_fc_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 @@ -2346,58 +2517,20 @@ fi } # ac_fn_fc_try_link -# ac_fn_c_try_cpp LINENO -# ---------------------- -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_cpp () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$ac_try_echo"; } >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - 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 : - ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_cpp - # ac_fn_f77_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_f77_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 @@ -2405,15 +2538,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_f77_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 @@ -2429,14 +2561,14 @@ fi ac_fn_f77_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 @@ -2444,18 +2576,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_f77_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 @@ -2470,136 +2601,44 @@ fi } # ac_fn_f77_try_link -# ac_fn_c_check_func LINENO FUNC VAR -# ---------------------------------- -# Tests whether FUNC exists, setting the cache variable VAR accordingly -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 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -/* Define $2 to an innocuous variant, in case declares $2. - For example, HP-UX 11i declares gettimeofday. */ -#define $2 innocuous_$2 - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. */ - -#include -#undef $2 - -/* 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 $2 (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$2 || defined __stub___$2 -choke me -#endif - -#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 (void) -{ -return $2 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - eval "$3=yes" -else $as_nop - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - 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; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_func - # ac_fn_fc_check_func LINENO FUNC VAR # ----------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_fc_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 > conftest.$ac_ext <<_ACEOF program main call $2 end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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_fc_check_func -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 Yambo $as_me 5.3.0 r.23900 h.e51825f30d, 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 @@ -2632,12 +2671,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 @@ -2672,7 +2707,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'" ;; @@ -2707,13 +2742,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 @@ -2724,8 +2757,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) ;; #( @@ -2749,7 +2782,7 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ) echo - printf "%s\n" "## ----------------- ## + $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -2757,14 +2790,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 @@ -2772,15 +2805,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 @@ -2788,8 +2821,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 && @@ -2803,48 +2836,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 @@ -2854,508 +2902,92 @@ 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 +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${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) + { $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=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${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 + { $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 + { $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=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + 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 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## -#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; -} +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 -/* 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; -} -" - -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 -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { 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) - { 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=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { 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 - { 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 - { 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=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - 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 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## - -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 - - -SVERSION="5" -SSUBVERSION="3" -SPATCHLEVEL="0" -SREVISION="23900" -SHASH="e51825f30d" +SVERSION="5" +SSUBVERSION="3" +SPATCHLEVEL="0" +SREVISION="23900" +SHASH="e51825f30d" @@ -3374,6 +3006,34 @@ compdir=`echo "$PWD"` if test "$prefix" = "NONE" ; then prefix="$PWD" ; fi if test "$exec_prefix" = "NONE" ; then exec_prefix="$prefix" ; fi # +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. + # @@ -3436,10 +3096,9 @@ fi # PATH FOR EXT LIBS # Check whether --with-extlibs_path was given. -if test ${with_extlibs_path+y} -then : +if test "${with_extlibs_path+set}" = set; then : withval=$with_extlibs_path; extlibs_path="$with_extlibs_path" -else $as_nop +else extlibs_path="${PWD}/lib/external" fi @@ -3450,8 +3109,7 @@ if test x"$extlibs_path" = "x"; then extlibs_path="${PWD}/lib/external"; fi # ============================================================================ # DEBUG # Check whether --enable-keep-objects was given. -if test ${enable_keep_objects+y} -then : +if test "${enable_keep_objects+set}" = set; then : enableval=$enable_keep_objects; fi @@ -3462,8 +3120,7 @@ if test x"$enable_keep_objects" = "x"; then enable_keep_objects="yes"; fi # ============================================================================= # KEEP SOURCE FILES # Check whether --enable-keep-src was given. -if test ${enable_keep_src+y} -then : +if test "${enable_keep_src+set}" = set; then : enableval=$enable_keep_src; fi @@ -3474,8 +3131,7 @@ if test x"$enable_keep_src" = "xyes"; then enable_keep_src="yes"; fi # ============================================================================ # KEEP EXT LIBS # Check whether --enable-keep-extlibs was given. -if test ${enable_keep_extlibs+y} -then : +if test "${enable_keep_extlibs+set}" = set; then : enableval=$enable_keep_extlibs; fi @@ -3493,8 +3149,7 @@ fi # ============================================================================ # DP # Check whether --enable-dp was given. -if test ${enable_dp+y} -then : +if test "${enable_dp+set}" = set; then : enableval=$enable_dp; fi @@ -3513,8 +3168,7 @@ if test x"$build_precision" = "x"; then as_fn_error $? "Non correct specificatio # Time Profiling (mod_timing) # # Check whether --enable-time-profile was given. -if test ${enable_time_profile+y} -then : +if test "${enable_time_profile+set}" = set; then : enableval=$enable_time_profile; fi @@ -3530,8 +3184,7 @@ fi # USPP # # Check whether --enable-uspp was given. -if test ${enable_uspp+y} -then : +if test "${enable_uspp+set}" = set; then : enableval=$enable_uspp; fi @@ -3548,8 +3201,7 @@ fi # Memory Profiling # # Check whether --enable-memory-profile was given. -if test ${enable_memory_profile+y} -then : +if test "${enable_memory_profile+set}" = set; then : enableval=$enable_memory_profile; fi @@ -3565,8 +3217,7 @@ fi # Verbose compilation # # Check whether --enable-msgs-comps was given. -if test ${enable_msgs_comps+y} -then : +if test "${enable_msgs_comps+set}" = set; then : enableval=$enable_msgs_comps; fi @@ -3583,10 +3234,9 @@ fi # # Check whether --with-editor was given. -if test ${with_editor+y} -then : +if test "${with_editor+set}" = set; then : withval=$with_editor; -else $as_nop +else with_editor="vim vi pico" fi @@ -3594,12 +3244,11 @@ for ac_prog in $with_editor 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_editor+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_editor+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$editor"; then ac_cv_prog_editor="$editor" # Let the user override the test. else @@ -3607,15 +3256,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_editor="$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 @@ -3626,11 +3271,11 @@ fi fi editor=$ac_cv_prog_editor if test -n "$editor"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $editor" >&5 -printf "%s\n" "$editor" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5 +$as_echo "$editor" >&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 @@ -3645,10 +3290,9 @@ test -n "$editor" || editor="none" # # Check whether --with-echo was given. -if test ${with_echo+y} -then : +if test "${with_echo+set}" = set; then : withval=$with_echo; -else $as_nop +else with_echo="echo" fi @@ -3661,15 +3305,6 @@ ECHO=$with_echo # # check if the structure mallinfo is present in malloc.h SAVE=$CFLAGS - - - - - - - - - ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -3678,12 +3313,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 @@ -3691,15 +3325,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 @@ -3710,11 +3340,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 @@ -3723,12 +3353,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 @@ -3736,15 +3365,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 @@ -3755,11 +3380,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 @@ -3767,8 +3392,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 @@ -3781,12 +3406,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 @@ -3794,15 +3418,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 @@ -3813,11 +3433,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 @@ -3826,12 +3446,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 @@ -3840,19 +3459,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 @@ -3868,18 +3483,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 @@ -3890,12 +3505,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 @@ -3903,15 +3517,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 @@ -3922,11 +3532,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 @@ -3939,12 +3549,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 @@ -3952,15 +3561,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 @@ -3971,11 +3576,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 @@ -3987,138 +3592,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 @@ -4128,7 +3629,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 @@ -4136,7 +3637,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main (void) +main () { ; @@ -4148,9 +3649,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.*" @@ -4171,12 +3672,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, @@ -4193,7 +3693,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 @@ -4209,46 +3709,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; } -ac_exeext=$ac_cv_exeext +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 @@ -4262,15 +3760,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 @@ -4279,7 +3777,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; @@ -4291,8 +3789,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 @@ -4300,10 +3798,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 @@ -4311,40 +3809,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 () { ; @@ -4358,12 +3855,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 @@ -4372,32 +3868,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 @@ -4407,301 +3902,611 @@ 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+set} +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 + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +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 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${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 + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + 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_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]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${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 + + +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; } +# 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" + 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 + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +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 : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${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. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +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 : + +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 + +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 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 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + 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 +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $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" + + +{ $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 + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + 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 +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= + fi fi -ac_test_CFLAGS=${CFLAGS+y} -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 - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ +{ $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" -int -main (void) -{ - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_g=yes -else $as_nop - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +{ $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 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_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else $as_nop - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >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 -int -main (void) -{ - - ; - return 0; -} _ACEOF -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 -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam 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 - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + else - if test "$GCC" = yes; then - CFLAGS="-O2" - 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 -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 + ac_cv_header_stdc=no 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 +rm -f conftest* + fi -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 +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. */ -$ac_c_conftest_c99_program +#include + _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 +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 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 +rm -f conftest* + fi -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 +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. */ -$ac_c_conftest_c89_program +#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 -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 : - ac_cv_prog_cc_c89=$ac_arg +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no fi -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 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext 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 -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_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}: 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 +# 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 -if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes -then : +done -printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h -fi -ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" -if test "x$ac_cv_header_malloc_h" = xyes -then : +ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" +if test "x$ac_cv_header_malloc_h" = xyes; then : have_malloc_h=1 -else $as_nop +else have_malloc_h=0 fi + CFLAGS=$SAVE if test "$have_malloc_h" -ne 0 then ac_fn_c_check_member "$LINENO" "struct mallinfo" "arena" "ac_cv_member_struct_mallinfo_arena" "#include " -if test "x$ac_cv_member_struct_mallinfo_arena" = xyes -then : - printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h +if test "x$ac_cv_member_struct_mallinfo_arena" = xyes; then : + $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h fi @@ -5032,12 +4837,11 @@ EOF Y_BRANCH="unknown" # Extract the first word of "git", so it can be a program name with args. set dummy git; 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_GIT_CHECK+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_GIT_CHECK+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$GIT_CHECK"; then ac_cv_prog_GIT_CHECK="$GIT_CHECK" # Let the user override the test. else @@ -5045,15 +4849,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_GIT_CHECK="yes" - 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 @@ -5064,11 +4864,11 @@ fi fi GIT_CHECK=$ac_cv_prog_GIT_CHECK if test -n "$GIT_CHECK"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIT_CHECK" >&5 -printf "%s\n" "$GIT_CHECK" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_CHECK" >&5 +$as_echo "$GIT_CHECK" >&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 @@ -5082,60 +4882,42 @@ fi # # Checks for library functions. # ============================================================================ -ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" -if test "x$ac_cv_header_malloc_h" = xyes -then : - printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" -if test "x$ac_cv_header_stdlib_h" = xyes -then : - printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" -if test "x$ac_cv_header_unistd_h" = xyes -then : - printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" -if test "x$ac_cv_header_string_h" = xyes -then : - printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h +for ac_header in malloc.h stdlib.h unistd.h string.h sys/time.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$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 -ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_time_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h -fi +done ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes -then : +if test "x$ac_cv_type_size_t" = xyes; then : -else $as_nop +else -printf "%s\n" "#define size_t unsigned int" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 -printf %s "checking for working alloca.h... " >&6; } -if test ${ac_cv_working_alloca_h+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if ${ac_cv_working_alloca_h+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main (void) +main () { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; @@ -5143,52 +4925,52 @@ char *p = (char *) alloca (2 * sizeof (int)); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_working_alloca_h=yes -else $as_nop +else ac_cv_working_alloca_h=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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 -printf "%s\n" "$ac_cv_working_alloca_h" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then -printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 -printf %s "checking for alloca... " >&6; } -if test ${ac_cv_func_alloca_works+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test $ac_cv_working_alloca_h = yes; then - ac_cv_func_alloca_works=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if ${ac_cv_func_alloca_works+:} false; then : + $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#ifndef alloca -# ifdef __GNUC__ -# define alloca __builtin_alloca -# elif defined _MSC_VER +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER # include # define alloca _alloca # else -# ifdef __cplusplus -extern "C" -# endif +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ void *alloca (size_t); +# endif +# endif +# endif # endif #endif int -main (void) +main () { char *p = (char *) alloca (1); if (p) return 0; @@ -5196,22 +4978,20 @@ char *p = (char *) alloca (1); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_func_alloca_works=yes -else $as_nop +else ac_cv_func_alloca_works=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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 -printf "%s\n" "$ac_cv_func_alloca_works" >&6; } -fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then -printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions @@ -5221,19 +5001,58 @@ else ALLOCA=\${LIBOBJDIR}alloca.$ac_objext -printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h +$as_echo "#define C_ALLOCA 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if ${ac_cv_os_cray+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + + break +fi + done +fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 -printf %s "checking stack direction for C alloca... " >&6; } -if test ${ac_cv_c_stack_direction+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if ${ac_cv_c_stack_direction+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : ac_cv_c_stack_direction=0 -else $as_nop +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -5254,10 +5073,9 @@ main (int argc, char **argv) return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" -then : +if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_stack_direction=1 -else $as_nop +else ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5265,24 +5083,25 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 -printf "%s\n" "$ac_cv_c_stack_direction" >&6; } -printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 -printf %s "checking for an ANSI C-conforming const... " >&6; } -if test ${ac_cv_c_const+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main (void) +main () { #ifndef __cplusplus @@ -5295,7 +5114,7 @@ main (void) /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; - /* IBM XL C 1.02.0.0 rejects this. + /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ @@ -5323,7 +5142,7 @@ main (void) iptr p = 0; ++p; } - { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; @@ -5339,50 +5158,47 @@ main (void) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes -else $as_nop +else ac_cv_c_const=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_c_const" >&5 -printf "%s\n" "$ac_cv_c_const" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then -printf "%s\n" "#define const /**/" >>confdefs.h +$as_echo "#define const /**/" >>confdefs.h fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 -printf %s "checking for inline... " >&6; } -if test ${ac_cv_c_inline+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; -static $ac_kw foo_t static_foo (void) {return 0; } -$ac_kw foo_t foo (void) {return 0; } +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } #endif _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw 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 test "$ac_cv_c_inline" != no && break done fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 -printf "%s\n" "$ac_cv_c_inline" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; @@ -5399,118 +5215,45 @@ _ACEOF ;; esac - - - - # 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"` -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 +for ac_header in stdlib.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDLIB_H 1 +_ACEOF fi -{ 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;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac +done -{ 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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 +$as_echo_n "checking for GNU libc compatible malloc... " >&6; } +if ${ac_cv_func_malloc_0_nonnull+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_malloc_0_nonnull=no 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 -fi - -fi -{ 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;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 -printf %s "checking for GNU libc compatible malloc... " >&6; } -if test ${ac_cv_func_malloc_0_nonnull+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes -then : - case "$host_os" in # (( - # Guess yes on platforms where we know the result. - *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ - | hpux* | solaris* | cygwin* | mingw* | msys* ) - ac_cv_func_malloc_0_nonnull=yes ;; - # If we don't know, assume the worst. - *) ac_cv_func_malloc_0_nonnull=no ;; - esac -else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#if defined STDC_HEADERS || defined HAVE_STDLIB_H +# include +#else +char *malloc (); +#endif int -main (void) +main () { -void *p = malloc (0); - int result = !p; - free (p); - return result; +return ! malloc (0); ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" -then : +if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_malloc_0_nonnull=yes -else $as_nop +else ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5518,15 +5261,14 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 -printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } -if test $ac_cv_func_malloc_0_nonnull = yes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } +if test $ac_cv_func_malloc_0_nonnull = yes; then : -printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h +$as_echo "#define HAVE_MALLOC 1" >>confdefs.h -else $as_nop - printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h +else + $as_echo "#define HAVE_MALLOC 0" >>confdefs.h case " $LIBOBJS " in *" malloc.$ac_objext "* ) ;; @@ -5535,47 +5277,50 @@ else $as_nop esac -printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h +$as_echo "#define malloc rpl_malloc" >>confdefs.h fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 -printf %s "checking for GNU libc compatible realloc... " >&6; } -if test ${ac_cv_func_realloc_0_nonnull+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes -then : - case "$host_os" in # (( - # Guess yes on platforms where we know the result. - *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ - | hpux* | solaris* | cygwin* | mingw* | msys* ) - ac_cv_func_realloc_0_nonnull=yes ;; - # If we don't know, assume the worst. - *) ac_cv_func_realloc_0_nonnull=no ;; - esac -else $as_nop +for ac_header in stdlib.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDLIB_H 1 +_ACEOF + +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 +$as_echo_n "checking for GNU libc compatible realloc... " >&6; } +if ${ac_cv_func_realloc_0_nonnull+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_realloc_0_nonnull=no +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#if defined STDC_HEADERS || defined HAVE_STDLIB_H +# include +#else +char *realloc (); +#endif int -main (void) +main () { -void *p = realloc (0, 0); - int result = !p; - free (p); - return result; +return ! realloc (0, 0); ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" -then : +if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_realloc_0_nonnull=yes -else $as_nop +else ac_cv_func_realloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5583,15 +5328,14 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 -printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; } -if test $ac_cv_func_realloc_0_nonnull = yes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 +$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } +if test $ac_cv_func_realloc_0_nonnull = yes; then : -printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h +$as_echo "#define HAVE_REALLOC 1" >>confdefs.h -else $as_nop - printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h +else + $as_echo "#define HAVE_REALLOC 0" >>confdefs.h case " $LIBOBJS " in *" realloc.$ac_objext "* ) ;; @@ -5600,34 +5344,27 @@ else $as_nop esac -printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h +$as_echo "#define realloc rpl_realloc" >>confdefs.h fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 -printf %s "checking whether lstat correctly handles trailing slash... " >&6; } -if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 +$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } +if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : + $as_echo_n "(cached) " >&6 +else rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then - if test "$cross_compiling" = yes -then : - case "$host_os" in # (( - # Guess yes on glibc systems. - *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;; - # If we don't know, assume the worst. - *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;; - esac -else $as_nop + if test "$cross_compiling" = yes; then : + ac_cv_func_lstat_dereferences_slashed_symlink=no +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int -main (void) +main () { struct stat sbuf; /* Linux will dereference the symlink and fail, as required by POSIX. @@ -5638,10 +5375,9 @@ struct stat sbuf; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" -then : +if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_lstat_dereferences_slashed_symlink=yes -else $as_nop +else ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5656,12 +5392,14 @@ fi rm -f conftest.sym conftest.file fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 -printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 +$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && -printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +_ACEOF if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then @@ -5673,21 +5411,19 @@ esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 -printf %s "checking whether stat accepts an empty string... " >&6; } -if test ${ac_cv_func_stat_empty_string_bug+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "$cross_compiling" = yes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 +$as_echo_n "checking whether stat accepts an empty string... " >&6; } +if ${ac_cv_func_stat_empty_string_bug+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : ac_cv_func_stat_empty_string_bug=yes -else $as_nop +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int -main (void) +main () { struct stat sbuf; return stat ("", &sbuf) == 0; @@ -5695,10 +5431,9 @@ struct stat sbuf; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" -then : +if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_stat_empty_string_bug=no -else $as_nop +else ac_cv_func_stat_empty_string_bug=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -5706,8 +5441,8 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ fi fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 -printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 +$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } if test $ac_cv_func_stat_empty_string_bug = yes; then case " $LIBOBJS " in *" stat.$ac_objext "* ) ;; @@ -5716,18 +5451,19 @@ if test $ac_cv_func_stat_empty_string_bug = yes; then esac -printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define HAVE_STAT_EMPTY_STRING_BUG 1 +_ACEOF 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: @@ -5743,20 +5479,20 @@ 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 # ============================================================================ # check size of pointers to int - needed to decide the size of integer # arrays in fortran holding C pointers for FFTW -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the size of a pointer" >&5 -printf %s "checking for the size of a pointer... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of a pointer" >&5 +$as_echo_n "checking for the size of a pointer... " >&6; } if test -z "$POINTER_SIZE"; then cat >pointertest.c <&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 ac_try="" else @@ -5782,10 +5518,12 @@ EOF ac_pointersize=`./pointertest.x`; rm -rf pointertest* -printf "%s\n" "#define POINTER_SIZE ${ac_pointersize}" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define POINTER_SIZE ${ac_pointersize} +_ACEOF - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_pointersize} bytes" >&5 -printf "%s\n" "${ac_pointersize} bytes" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_pointersize} bytes" >&5 +$as_echo "${ac_pointersize} bytes" >&6; } fi SIZEOF_INT_P=$ac_pointersize @@ -5801,12 +5539,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 @@ -5814,15 +5551,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 @@ -5833,11 +5566,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 @@ -5846,12 +5579,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 @@ -5859,15 +5591,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 @@ -5878,11 +5606,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 @@ -5890,8 +5618,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 @@ -5904,12 +5632,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 @@ -5917,15 +5644,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 @@ -5936,11 +5659,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 @@ -5949,12 +5672,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 @@ -5963,19 +5685,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 @@ -5991,18 +5709,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 @@ -6013,12 +5731,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 @@ -6026,15 +5743,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 @@ -6045,11 +5758,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 @@ -6062,12 +5775,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 @@ -6075,15 +5787,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 @@ -6094,11 +5802,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 @@ -6110,138 +5818,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 @@ -6251,21 +5855,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_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 @@ -6275,33 +5878,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 @@ -6310,60 +5909,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 @@ -6378,144 +5974,94 @@ 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 @@ -6525,18 +6071,87 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu # +# 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 + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_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 + +fi +{ $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;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${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 +fi + +fi +{ $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;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + hostname=`uname -n` # ============================================================================ # GNU Make MAKE="make" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 -printf %s "checking for GNU make... " >&6; } -if test ${_cv_gnu_make_command+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 +$as_echo_n "checking for GNU make... " >&6; } +if ${_cv_gnu_make_command+:} false; then : + $as_echo_n "(cached) " >&6 +else _cv_gnu_make_command='' ; for a in "$MAKE" make gmake gnumake ; do if test -z "$a" ; then continue ; fi ; @@ -6547,14 +6162,14 @@ else $as_nop done ; fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 -printf "%s\n" "$_cv_gnu_make_command" >&6; } ; +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 +$as_echo "$_cv_gnu_make_command" >&6; } ; if test "x$_cv_gnu_make_command" != "x" ; then ifGNUmake='' ; else ifGNUmake='#' ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 -printf "%s\n" "\"Not found\"" >&6; }; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 +$as_echo "\"Not found\"" >&6; }; fi @@ -6576,12 +6191,11 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; 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_AR+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_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else @@ -6589,15 +6203,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_AR="${ac_tool_prefix}ar" - 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 @@ -6608,11 +6218,11 @@ fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -printf "%s\n" "$AR" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&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 @@ -6621,12 +6231,11 @@ if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; 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_AR+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_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else @@ -6634,15 +6243,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_AR="ar" - 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 @@ -6653,11 +6258,11 @@ fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -printf "%s\n" "$ac_ct_AR" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&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_AR" = x; then @@ -6665,8 +6270,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 AR=$ac_ct_AR @@ -6684,8 +6289,7 @@ test -z "$AR_FLAGS" && AR_FLAGS="-r" # C options specific for driver.c # # Check whether --enable-options_check was given. -if test ${enable_options_check+y} -then : +if test "${enable_options_check+set}" = set; then : enableval=$enable_options_check; fi @@ -6709,12 +6313,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 @@ -6722,15 +6325,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 @@ -6741,11 +6340,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 @@ -6758,12 +6357,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 @@ -6771,15 +6369,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 @@ -6790,11 +6384,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 @@ -6806,8 +6400,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 @@ -6816,7 +6410,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 @@ -6826,7 +6420,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 @@ -6836,7 +6430,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 @@ -6845,12 +6439,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__ @@ -6859,48 +6452,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 @@ -6934,8 +6522,8 @@ fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the current OS is supported" >&5 -printf %s "checking if the current OS is supported... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the current OS is supported" >&5 +$as_echo_n "checking if the current OS is supported... " >&6; } #TIMER="ct_cclock.o" TIMER="ct_cptimer.o" case "${host}" in @@ -6979,31 +6567,31 @@ case "${host}" in if test -z "$F90SUFFIX"; then F90SUFFIX=".f90"; fi ;; *) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Platform <${host}> is not supported." >&5 -printf "%s\n" "$as_me: Platform <${host}> is not supported." >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Please contact the $PACKAGE_NAME team at $PACKAGE_BUGREPORT" >&5 -printf "%s\n" "$as_me: Please contact the $PACKAGE_NAME team at $PACKAGE_BUGREPORT" >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: providing either a list of compilers and options or" >&5 -printf "%s\n" "$as_me: providing either a list of compilers and options or" >&6;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: a guest account on this machine." >&5 -printf "%s\n" "$as_me: a guest account on this machine." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: Platform <${host}> is not supported." >&5 +$as_echo "$as_me: Platform <${host}> is not supported." >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Please contact the $PACKAGE_NAME team at $PACKAGE_BUGREPORT" >&5 +$as_echo "$as_me: Please contact the $PACKAGE_NAME team at $PACKAGE_BUGREPORT" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: providing either a list of compilers and options or" >&5 +$as_echo "$as_me: providing either a list of compilers and options or" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: a guest account on this machine." >&5 +$as_echo "$as_me: a guest account on this machine." >&6;} as_fn_error $? "stopping" "$LINENO" 5 ;; *) esac -{ 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; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WIDESETUP: using build_os=\"$build_os\"" >&5 -printf "%s\n" "$as_me: WIDESETUP: using build_os=\"$build_os\"" >&6;} -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WIDESETUP: using F90SUFFIX=\"$F90SUFFIX\"" >&5 -printf "%s\n" "$as_me: WIDESETUP: using F90SUFFIX=\"$F90SUFFIX\"" >&6;} -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WIDESETUP: using AR=\"$AR\"" >&5 -printf "%s\n" "$as_me: WIDESETUP: using AR=\"$AR\"" >&6;} -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WIDESETUP: using AR_FLAGS=\"$AR_FLAGS\"" >&5 -printf "%s\n" "$as_me: WIDESETUP: using AR_FLAGS=\"$AR_FLAGS\"" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WIDESETUP: using build_os=\"$build_os\"" >&5 +$as_echo "$as_me: WIDESETUP: using build_os=\"$build_os\"" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WIDESETUP: using F90SUFFIX=\"$F90SUFFIX\"" >&5 +$as_echo "$as_me: WIDESETUP: using F90SUFFIX=\"$F90SUFFIX\"" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WIDESETUP: using AR=\"$AR\"" >&5 +$as_echo "$as_me: WIDESETUP: using AR=\"$AR\"" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WIDESETUP: using AR_FLAGS=\"$AR_FLAGS\"" >&5 +$as_echo "$as_me: WIDESETUP: using AR_FLAGS=\"$AR_FLAGS\"" >&6;} @@ -7019,8 +6607,7 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu # # Check whether --with-f90ext was given. -if test ${with_f90ext+y} -then : +if test "${with_f90ext+set}" = set; then : withval=$with_f90ext; fi @@ -7032,12 +6619,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 flag to compile .f90 files" >&5 -printf %s "checking for Fortran flag to compile .f90 files... " >&6; } -if test ${ac_cv_fc_srcext_f90+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5 +$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } +if ${ac_cv_fc_srcext_f90+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_ext=f90 ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= @@ -7053,18 +6639,17 @@ for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_fc_srcext_f90=$ac_flag; break 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 done rm -f conftest.$ac_objext conftest.f90 ac_fcflags_srcext=$ac_fcflags_srcext_save fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 -printf "%s\n" "$ac_cv_fc_srcext_f90" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 +$as_echo "$ac_cv_fc_srcext_f90" >&6; } if test "x$ac_cv_fc_srcext_f90" = xunknown; then as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 else @@ -7090,12 +6675,11 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu 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 flag to compile .f files" >&5 -printf %s "checking for Fortran flag to compile .f files... " >&6; } -if test ${ac_cv_fc_srcext_f+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f files" >&5 +$as_echo_n "checking for Fortran flag to compile .f files... " >&6; } +if ${ac_cv_fc_srcext_f+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_ext=f ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= @@ -7111,18 +6695,17 @@ for ac_flag in none -qsuffix=f=f -Tf "-x $ac_try"; do end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_fc_srcext_f=$ac_flag; break 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 done rm -f conftest.$ac_objext conftest.f ac_fcflags_srcext=$ac_fcflags_srcext_save fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f" >&5 -printf "%s\n" "$ac_cv_fc_srcext_f" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f" >&5 +$as_echo "$ac_cv_fc_srcext_f" >&6; } if test "x$ac_cv_fc_srcext_f" = xunknown; then as_fn_error $? "Fortran could not compile .f files" "$LINENO" 5 else @@ -7221,10 +6804,10 @@ esac # FCVERSION=`echo "$FCVERSION" | sed "/^\s*$/d" | head -n 1` # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $FC kind and version" >&5 -printf %s "checking for $FC kind and version... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FCKIND $FCVERSION $INTELVERSION" >&5 -printf "%s\n" "$FCKIND $FCVERSION $INTELVERSION" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $FC kind and version" >&5 +$as_echo_n "checking for $FC kind and version... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCKIND $FCVERSION $INTELVERSION" >&5 +$as_echo "$FCKIND $FCVERSION $INTELVERSION" >&6; } @@ -7241,8 +6824,7 @@ printf "%s\n" "$FCKIND $FCVERSION $INTELVERSION" >&6; } if test -z "${CFLAGS}"; then CFLAGS="-O2"; fi # # Check whether --enable-debug-flags was given. -if test ${enable_debug_flags+y} -then : +if test "${enable_debug_flags+set}" = set; then : enableval=$enable_debug_flags; fi @@ -7681,35 +7263,35 @@ esac # if test "x$build_os" = "xaix" ; then NETCDFFLAGS="$NETCDFFLAGS -DIBMR2Fortran" ; fi # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific $FC flags" >&5 -printf %s "checking for specific $FC flags... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific $FC flags" >&5 +$as_echo_n "checking for specific $FC flags... " >&6; } if test -z "${FCFLAGS}"; then FCFLAGS="$SYSFLAGS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FCFLAGS" >&5 -printf "%s\n" "$FCFLAGS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCFLAGS" >&5 +$as_echo "$FCFLAGS" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (User-defined) $FCFLAGS" >&5 -printf "%s\n" "(User-defined) $FCFLAGS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: (User-defined) $FCFLAGS" >&5 +$as_echo "(User-defined) $FCFLAGS" >&6; } fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific Open-MP flags" >&5 -printf %s "checking for specific Open-MP flags... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OMPFLAGS" >&5 -printf "%s\n" "$OMPFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific Open-MP flags" >&5 +$as_echo_n "checking for specific Open-MP flags... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OMPFLAGS" >&5 +$as_echo "$OMPFLAGS" >&6; } # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific $CC flags" >&5 -printf %s "checking for specific $CC flags... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5 -printf "%s\n" "$CFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific $CC flags" >&5 +$as_echo_n "checking for specific $CC flags... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5 +$as_echo "$CFLAGS" >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific unoptimized flags" >&5 -printf %s "checking for specific unoptimized flags... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific unoptimized flags" >&5 +$as_echo_n "checking for specific unoptimized flags... " >&6; } if test -z "${UFLAGS}"; then FCUFLAGS="$FUFLAGS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FCUFLAGS" >&5 -printf "%s\n" "$FCUFLAGS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCUFLAGS" >&5 +$as_echo "$FCUFLAGS" >&6; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (User-defined) $UFLAGS" >&5 -printf "%s\n" "(User-defined) $UFLAGS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: (User-defined) $UFLAGS" >&5 +$as_echo "(User-defined) $UFLAGS" >&6; } FCUFLAGS="$UFLAGS" FUFLAGS="$UFLAGS" fi @@ -7720,10 +7302,10 @@ if test x"$enable_debug_flags" = "xyes"; then HDF5_MODE="debug"; fi # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specific NETCDF flags" >&5 -printf %s "checking for specific NETCDF flags... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NETCDFFLAGS" >&5 -printf "%s\n" "$NETCDFFLAGS" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific NETCDF flags" >&5 +$as_echo_n "checking for specific NETCDF flags... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETCDFFLAGS" >&5 +$as_echo "$NETCDFFLAGS" >&6; } # @@ -7748,26 +7330,23 @@ FCFLAGS="$acx_save_fcflags $F90EXTFLAGS" GPU_SUPPORT="no_gpu" # # Check whether --enable-cuda_fortran was given. -if test ${enable_cuda_fortran+y} -then : +if test "${enable_cuda_fortran+set}" = set; then : enableval=$enable_cuda_fortran; -else $as_nop +else enable_cuda_fortran="no" fi # Check whether --enable-openacc was given. -if test ${enable_openacc+y} -then : +if test "${enable_openacc+set}" = set; then : enableval=$enable_openacc; -else $as_nop +else enable_openacc="no" fi # Check whether --enable-openmp5 was given. -if test ${enable_openmp5+y} -then : +if test "${enable_openmp5+set}" = set; then : enableval=$enable_openmp5; -else $as_nop +else enable_openmp5="no" fi @@ -7786,8 +7365,7 @@ if test x"$enable_openmp5" != "xno" ; then GPU_SUPPORT="openmp5" ; fi # OpenMP # # Check whether --enable-open-mp was given. -if test ${enable_open_mp+y} -then : +if test "${enable_open_mp+set}" = set; then : enableval=$enable_open_mp; fi @@ -7809,19 +7387,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 @@ -7839,13 +7415,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* @@ -7912,24 +7488,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 @@ -7948,13 +7523,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* @@ -8031,10 +7606,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 ;; @@ -8047,10 +7621,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" @@ -8060,29 +7633,14 @@ else fi fi ;; - # Ignore these flags. - -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ - |-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 + # Ignore these flags. + -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ + |-LANG:=* | -LIST:* | -LNO:* | -link) + ;; + -lkernel32) + case $host_os in + *cygwin*) ;; + *) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" ;; esac ;; @@ -8100,7 +7658,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 @@ -8109,10 +7667,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 @@ -8127,17 +7684,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 @@ -8149,7 +7704,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 @@ -8164,8 +7719,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" @@ -8180,12 +7735,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 @@ -8208,20 +7762,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 @@ -8238,18 +7791,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 @@ -8262,24 +7814,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 @@ -8294,12 +7847,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 @@ -8308,8 +7860,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 @@ -8330,6 +7881,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 @@ -8340,18 +7894,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 @@ -8386,6 +7939,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 @@ -8396,18 +7952,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} @@ -8437,17 +7992,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' @@ -8470,8 +8025,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #define F90_FUNC_(name,NAME) name ## _ void F90_FUNC_(ftest, FTEST)(){} _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : mv conftest.$ac_objext ftest.$ac_objext ac_ext=${ac_fc_srcext-f} @@ -8486,11 +8040,10 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu call ftest end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : c_success="yes"; msg="test_"; save="$CFLAGS"; CFLAGS="$save -D_C_US" 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="$save_LIBS" ac_ext=c @@ -8501,7 +8054,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu rm -f ftest.$ac_objext 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 if test "$c_success" = "no" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8509,8 +8062,7 @@ if test "$c_success" = "no" ; then #define F90_FUNC_(name,NAME) name void F90_FUNC_(ftest, FTEST)(){} _ACEOF -if ac_fn_c_try_compile "$LINENO" -then : +if ac_fn_c_try_compile "$LINENO"; then : mv conftest.$ac_objext ftest.$ac_objext ac_ext=${ac_fc_srcext-f} @@ -8525,11 +8077,10 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu call ftest end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : c_success="yes"; msg="test" 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="$save" ac_ext=c @@ -8540,12 +8091,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu rm -f ftest.$ac_objext 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}: checking for external C routine (test) naming scheme" >&5 -printf %s "checking for external C routine (test) naming scheme... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 -printf "%s\n" "$msg" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external C routine (test) naming scheme" >&5 +$as_echo_n "checking for external C routine (test) naming scheme... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 +$as_echo "$msg" >&6; } ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' @@ -8553,48 +8104,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 @@ -8653,12 +8204,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 flag needed to accept free-form source" >&5 -printf %s "checking for Fortran flag needed to accept free-form source... " >&6; } -if test ${ac_cv_fc_freeform+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag needed to accept free-form source" >&5 +$as_echo_n "checking for Fortran flag needed to accept free-form source... " >&6; } +if ${ac_cv_fc_freeform+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_cv_fc_freeform=unknown ac_fc_freeform_FCFLAGS_save=$FCFLAGS for ac_flag in none -ffree-form -FR -free -qfree -Mfree -Mfreeform \ @@ -8673,18 +8223,17 @@ do 'world.' end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_fc_freeform=$ac_flag; break 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 done rm -f conftest.err conftest.$ac_objext conftest.$ac_ext FCFLAGS=$ac_fc_freeform_FCFLAGS_save fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_freeform" >&5 -printf "%s\n" "$ac_cv_fc_freeform" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_freeform" >&5 +$as_echo "$ac_cv_fc_freeform" >&6; } if test "x$ac_cv_fc_freeform" = xunknown; then as_fn_error 77 "Fortran does not accept free-form source" "$LINENO" 5 else @@ -8709,12 +8258,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu #============================================================================= # FLAGS TO INCLUDE MODULE -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion flag" >&5 -printf %s "checking fortran 90 modules inclusion flag... " >&6; } -if test ${ax_cv_f90_modflag+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion flag" >&5 +$as_echo_n "checking fortran 90 modules inclusion flag... " >&6; } +if ${ax_cv_f90_modflag+:} false; then : + $as_echo_n "(cached) " >&6 +else 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' @@ -8737,11 +8285,10 @@ cat > conftest.$ac_ext <<_ACEOF end module conftest_module _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : 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 cd .. ax_cv_f90_modflag="not found" for ax_flag in "-I" "-M" "-p"; do @@ -8757,11 +8304,10 @@ for ax_flag in "-I" "-M" "-p"; do end program conftest_program _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : ax_cv_f90_modflag="$ax_flag" 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 FCFLAGS="$ax_save_FCFLAGS" fi done @@ -8777,147 +8323,14 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5 -printf "%s\n" "$ax_cv_f90_modflag" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5 +$as_echo "$ax_cv_f90_modflag" >&6; } IFLAG="$ax_cv_f90_modflag" if test -z "$IFLAG" ; then IFLAG="-I" ; fi # # ============================================================================ # CPP check & flags -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; } -# 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 - 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. - # 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 - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - -else $as_nop - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break -fi -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 : - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ 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. - # 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 - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - -else $as_nop - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break -fi -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 : - -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 - -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 - - # case "${CPP}" in @@ -8969,8 +8382,8 @@ case "${CPP}" in esac # # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: testing C-preprocessor $CPP $CPPFLAGS" >&5 -printf "%s\n" "$as_me: testing C-preprocessor $CPP $CPPFLAGS" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: testing C-preprocessor $CPP $CPPFLAGS" >&5 +$as_echo "$as_me: testing C-preprocessor $CPP $CPPFLAGS" >&6;} # # TESTS #======= @@ -8987,8 +8400,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu # acx_C_ok=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C precompiler works on C source" >&5 -printf %s "checking if C precompiler works on C source... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C precompiler works on C source" >&5 +$as_echo_n "checking if C precompiler works on C source... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -9000,15 +8413,14 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #endif _ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : +if ac_fn_c_try_cpp "$LINENO"; then : acx_C_ok=yes -else $as_nop +else CPP_TESTS_PASSED=no fi rm -f conftest.err conftest.i conftest.$ac_ext -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_C_ok" >&5 -printf "%s\n" "$acx_C_ok" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_C_ok" >&5 +$as_echo "$acx_C_ok" >&6; } # if test "x$CPP_TESTS_PASSED" = xno ; then as_fn_error $? "Found C precompiler problems in processing C source." "$LINENO" 5; @@ -9059,8 +8471,8 @@ esac # if test -z "$FPP" ; then FPP="cpp -E -P -ansi"; fi # -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: testing FC-preprocessor $FPP" >&5 -printf "%s\n" "$as_me: testing FC-preprocessor $FPP" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: testing FC-preprocessor $FPP" >&5 +$as_echo "$as_me: testing FC-preprocessor $FPP" >&6;} # # TESTS #======= @@ -9069,8 +8481,8 @@ printf "%s\n" "$as_me: testing FC-preprocessor $FPP" >&6;} # acx_FC_ok=yes FPP_TESTS_PASSED=yes -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if FC precompiler works on FC source" >&5 -printf %s "checking if FC precompiler works on FC source... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if FC precompiler works on FC source" >&5 +$as_echo_n "checking if FC precompiler works on FC source... " >&6; } cat > conftest.F << EOF_ program conftest character (1) :: a @@ -9097,8 +8509,8 @@ else acx_FC_ok=no ; FPP_TESTS_PASSED=no fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_FC_ok" >&5 -printf "%s\n" "$acx_FC_ok" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_FC_ok" >&5 +$as_echo "$acx_FC_ok" >&6; } # if test "x$FPP_TESTS_PASSED" = xno ; then as_fn_error $? "Found FC precompiler problems in processing FC source." "$LINENO" 5; @@ -9127,12 +8539,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_F77+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_F77+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else @@ -9140,15 +8551,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_F77="$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 @@ -9159,11 +8566,11 @@ fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 -printf "%s\n" "$F77" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 +$as_echo "$F77" >&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 @@ -9176,12 +8583,11 @@ if test -z "$F77"; 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_F77+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_F77+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else @@ -9189,15 +8595,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_F77="$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 @@ -9208,11 +8610,11 @@ fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 -printf "%s\n" "$ac_ct_F77" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 +$as_echo "$ac_ct_F77" >&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 @@ -9224,8 +8626,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 F77=$ac_ct_F77 @@ -9234,7 +8636,7 @@ fi # Provide some information about the compiler. -printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -9244,7 +8646,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 @@ -9254,7 +8656,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 @@ -9263,12 +8665,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 77" >&5 -printf %s "checking whether the compiler supports GNU Fortran 77... " >&6; } -if test ${ac_cv_f77_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 77 compiler" >&5 +$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } +if ${ac_cv_f77_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else cat > conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ @@ -9277,48 +8678,43 @@ else $as_nop end _ACEOF -if ac_fn_f77_try_compile "$LINENO" -then : +if ac_fn_f77_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_f77_compiler_gnu=$ac_compiler_gnu fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 -printf "%s\n" "$ac_cv_f77_compiler_gnu" >&6; } -ac_compiler_gnu=$ac_cv_f77_compiler_gnu - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 +$as_echo "$ac_cv_f77_compiler_gnu" >&6; } ac_ext=$ac_save_ext -ac_test_FFLAGS=${FFLAGS+y} +ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 -printf %s "checking whether $F77 accepts -g... " >&6; } -if test ${ac_cv_prog_f77_g+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 +$as_echo_n "checking whether $F77 accepts -g... " >&6; } +if ${ac_cv_prog_f77_g+:} false; then : + $as_echo_n "(cached) " >&6 +else FFLAGS=-g cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_f77_try_compile "$LINENO" -then : +if ac_fn_f77_try_compile "$LINENO"; then : ac_cv_prog_f77_g=yes -else $as_nop +else ac_cv_prog_f77_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_f77_g" >&5 -printf "%s\n" "$ac_cv_prog_f77_g" >&6; } -if test $ac_test_FFLAGS; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 +$as_echo "$ac_cv_prog_f77_g" >&6; } +if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then @@ -9344,24 +8740,23 @@ ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler $F77 works" >&5 -printf %s "checking if Fortran 77 compiler $F77 works... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 77 compiler $F77 works" >&5 +$as_echo_n "checking if Fortran 77 compiler $F77 works... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main integer ierr end _ACEOF -if ac_fn_f77_try_compile "$LINENO" -then : - acx_f77_ok="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - acx_f77_ok="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; }; +if ac_fn_f77_try_compile "$LINENO"; then : + acx_f77_ok="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + acx_f77_ok="no"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; }; as_fn_error $? "Fortran 77 compiler does not work. Impossible to continue." "$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 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9397,8 +8792,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu mpibuild="yes" # Check whether --enable-mpi was given. -if test ${enable_mpi+y} -then : +if test "${enable_mpi+set}" = set; then : enableval=$enable_mpi; fi @@ -9428,12 +8822,11 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu 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_MPIFC_test+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_MPIFC_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPIFC_test"; then ac_cv_prog_MPIFC_test="$MPIFC_test" # Let the user override the test. else @@ -9441,15 +8834,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_MPIFC_test="$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 @@ -9460,11 +8849,11 @@ fi fi MPIFC_test=$ac_cv_prog_MPIFC_test if test -n "$MPIFC_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIFC_test" >&5 -printf "%s\n" "$MPIFC_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC_test" >&5 +$as_echo "$MPIFC_test" >&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 @@ -9473,13 +8862,12 @@ done test -n "$MPIFC_test" || MPIFC_test="$FC" else - as_ac_File=`printf "%s\n" "ac_cv_file_$MPIFC" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPIFC" >&5 -printf %s "checking for $MPIFC... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_$MPIFC" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPIFC" >&5 +$as_echo_n "checking for $MPIFC... " >&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 "$MPIFC"; then @@ -9489,22 +8877,20 @@ 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 : MPIFC_test=$MPIFC -else $as_nop +else for ac_prog in $MPIFC mpipgifort mpiifort mpifort mpiifx mpif90 mpxlf90 mpxlf mpf90 mpxlf95 mpxlf_r 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_MPIFC_test+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_MPIFC_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPIFC_test"; then ac_cv_prog_MPIFC_test="$MPIFC_test" # Let the user override the test. else @@ -9512,15 +8898,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_MPIFC_test="$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 @@ -9531,11 +8913,11 @@ fi fi MPIFC_test=$ac_cv_prog_MPIFC_test if test -n "$MPIFC_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIFC_test" >&5 -printf "%s\n" "$MPIFC_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC_test" >&5 +$as_echo "$MPIFC_test" >&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 @@ -9551,23 +8933,22 @@ fi if test "$acx_mpi_ok" = "yes"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 -printf %s "checking for MPI_Init... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 +$as_echo_n "checking for MPI_Init... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call MPI_init end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_mpi_ok="yes" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $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 \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi @@ -9587,11 +8968,10 @@ fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working mpif.h" >&5 -printf %s "checking for a working mpif.h... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working mpif.h" >&5 +$as_echo_n "checking for a working mpif.h... " >&6; } save_ldflags="$LDFLAGS" - if test "$LIB_MPI" -then : + if test "$LIB_MPI"; then : LDFLAGS="${LDFLAGS} -L${LIB_MPI}" fi cat > conftest.$ac_ext <<_ACEOF @@ -9602,23 +8982,21 @@ fi call MPI_Init(ierr) end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : - HAVE_MPIF_H=1; acx_mpi_ok="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - HAVE_MPIF_H=0; acx_mpi_ok="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } +if ac_fn_fc_try_compile "$LINENO"; then : + HAVE_MPIF_H=1; acx_mpi_ok="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + HAVE_MPIF_H=0; acx_mpi_ok="no" ; { $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 if test "$acx_mpi_ok" = "no"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working mpi.h" >&5 -printf %s "checking for a working mpi.h... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working mpi.h" >&5 +$as_echo_n "checking for a working mpi.h... " >&6; } save_ldflags="$LDFLAGS" - if test "$LIB_MPI" -then : + if test "$LIB_MPI"; then : LDFLAGS="${LDFLAGS} -L${LIB_MPI}" fi cat > conftest.$ac_ext <<_ACEOF @@ -9629,22 +9007,20 @@ fi call MPI_Init(ierr) end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : - HAVE_MPI_H=1; acx_mpi_ok="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - HAVE_MPI_H=0; acx_mpi_ok="no" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } +if ac_fn_fc_try_compile "$LINENO"; then : + HAVE_MPI_H=1; acx_mpi_ok="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + HAVE_MPI_H=0; acx_mpi_ok="no" ; { $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;fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;fi if test "$acx_mpi_ok" = "no"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working mpi module" >&5 -printf %s "checking for a working mpi module... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working mpi module" >&5 +$as_echo_n "checking for a working mpi module... " >&6; } save_ldflags="$LDFLAGS" - if test "$LIB_MPI" -then : + if test "$LIB_MPI"; then : LDFLAGS="${LDFLAGS} -L${LIB_MPI}" fi cat > conftest.$ac_ext <<_ACEOF @@ -9655,15 +9031,14 @@ fi call MPI_Init(ierr) end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : - HAVE_MPI_MOD=1; acx_mpi_ok="yes"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - HAVE_MPI_MOD=0; acx_mpi_ok="no"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } +if ac_fn_fc_try_compile "$LINENO"; then : + HAVE_MPI_MOD=1; acx_mpi_ok="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + HAVE_MPI_MOD=0; acx_mpi_ok="no"; { $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;fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;fi # # @@ -9675,12 +9050,12 @@ fi # # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test "$acx_mpi_ok" = "no"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a FORTRAN mpi test program. YAMBO serial only." >&5 -printf "%s\n" "$as_me: WARNING: could not compile a FORTRAN mpi test program. YAMBO serial only." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a FORTRAN mpi test program. YAMBO serial only." >&5 +$as_echo "$as_me: WARNING: could not compile a FORTRAN mpi test program. YAMBO serial only." >&2;} : else -printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h +$as_echo "#define HAVE_MPI 1" >>confdefs.h : fi @@ -9711,13 +9086,12 @@ ac_compiler_gnu=$ac_cv_f77_compiler_gnu if ! test x"$MPIF77" = "x" ; then - as_ac_File=`printf "%s\n" "ac_cv_file_$MPIF77" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPIF77" >&5 -printf %s "checking for $MPIF77... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_$MPIF77" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPIF77" >&5 +$as_echo_n "checking for $MPIF77... " >&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 "$MPIF77"; then @@ -9727,22 +9101,20 @@ 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 : MPIF77_test=$MPIF77 -else $as_nop +else for ac_prog in $MPIF77 $MPIFC mpipgifort mpiifort mpifort mpiifx mpif77 hf77 mpxlf mpf77 mpif90 mpf90 mpxlf90 mpxlf95 mpxlf_r cmpifc cmpif90c 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_MPIF77_test+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_MPIF77_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPIF77_test"; then ac_cv_prog_MPIF77_test="$MPIF77_test" # Let the user override the test. else @@ -9750,15 +9122,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_MPIF77_test="$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 @@ -9769,11 +9137,11 @@ fi fi MPIF77_test=$ac_cv_prog_MPIF77_test if test -n "$MPIF77_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 -printf "%s\n" "$MPIF77_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 +$as_echo "$MPIF77_test" >&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 @@ -9784,13 +9152,12 @@ test -n "$MPIF77_test" || MPIF77_test="$F77" fi elif ! test x"$MPIFC" = "x" ; then - as_ac_File=`printf "%s\n" "ac_cv_file_$MPIFC" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPIFC" >&5 -printf %s "checking for $MPIFC... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_$MPIFC" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPIFC" >&5 +$as_echo_n "checking for $MPIFC... " >&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 "$MPIFC"; then @@ -9800,22 +9167,20 @@ 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 : MPIF77_test=$MPIFC -else $as_nop +else for ac_prog in $MPIF77 $MPIFC mpipgifort mpiifort mpifort mpiifx mpif77 hf77 mpxlf mpf77 mpif90 mpf90 mpxlf90 mpxlf95 mpxlf_r cmpifc cmpif90c 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_MPIF77_test+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_MPIF77_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPIF77_test"; then ac_cv_prog_MPIF77_test="$MPIF77_test" # Let the user override the test. else @@ -9823,15 +9188,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_MPIF77_test="$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 @@ -9842,11 +9203,11 @@ fi fi MPIF77_test=$ac_cv_prog_MPIF77_test if test -n "$MPIF77_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 -printf "%s\n" "$MPIF77_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 +$as_echo "$MPIF77_test" >&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 @@ -9861,12 +9222,11 @@ fi 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_MPIF77_test+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_MPIF77_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPIF77_test"; then ac_cv_prog_MPIF77_test="$MPIF77_test" # Let the user override the test. else @@ -9874,15 +9234,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_MPIF77_test="$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 @@ -9893,11 +9249,11 @@ fi fi MPIF77_test=$ac_cv_prog_MPIF77_test if test -n "$MPIF77_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 -printf "%s\n" "$MPIF77_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIF77_test" >&5 +$as_echo "$MPIF77_test" >&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 @@ -9911,23 +9267,22 @@ test -n "$MPIF77_test" || MPIF77_test="$F77" if test "$acx_mpi_ok" = "yes"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 -printf %s "checking for MPI_Init... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 +$as_echo_n "checking for MPI_Init... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call MPI_Init end _ACEOF -if ac_fn_f77_try_link "$LINENO" -then : +if ac_fn_f77_try_link "$LINENO"; then : ac_mpi_ok="yes" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $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 \ +rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi @@ -9963,12 +9318,12 @@ fi # # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test "$acx_mpi_ok" = "no"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a FORTRAN 77 mpi test program. YAMBO serial only." >&5 -printf "%s\n" "$as_me: WARNING: could not compile a FORTRAN 77 mpi test program. YAMBO serial only." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a FORTRAN 77 mpi test program. YAMBO serial only." >&5 +$as_echo "$as_me: WARNING: could not compile a FORTRAN 77 mpi test program. YAMBO serial only." >&2;} : else -printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h +$as_echo "#define HAVE_MPI 1" >>confdefs.h : fi @@ -10004,12 +9359,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu 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_MPICC_test+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_MPICC_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPICC_test"; then ac_cv_prog_MPICC_test="$MPICC_test" # Let the user override the test. else @@ -10017,15 +9371,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_MPICC_test="$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 @@ -10036,11 +9386,11 @@ fi fi MPICC_test=$ac_cv_prog_MPICC_test if test -n "$MPICC_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPICC_test" >&5 -printf "%s\n" "$MPICC_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC_test" >&5 +$as_echo "$MPICC_test" >&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 @@ -10049,13 +9399,12 @@ done test -n "$MPICC_test" || MPICC_test="$CC" else - as_ac_File=`printf "%s\n" "ac_cv_file_$MPICC" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPICC" >&5 -printf %s "checking for $MPICC... " >&6; } -if eval test \${$as_ac_File+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_File=`$as_echo "ac_cv_file_$MPICC" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPICC" >&5 +$as_echo_n "checking for $MPICC... " >&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 "$MPICC"; then @@ -10065,26 +9414,24 @@ 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 : cat >>confdefs.h <<_ACEOF -#define `printf "%s\n" "HAVE_$MPICC" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_$MPICC" | $as_tr_cpp` 1 _ACEOF MPICC_test=$MPICC -else $as_nop +else for ac_prog in $MPICC mpipgicc mpiicc mpicc mpiicpx hcc mpcc mpcc_r mpxlc cmpicc 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_MPICC_test+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_MPICC_test+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$MPICC_test"; then ac_cv_prog_MPICC_test="$MPICC_test" # Let the user override the test. else @@ -10092,15 +9439,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_MPICC_test="$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 @@ -10111,11 +9454,11 @@ fi fi MPICC_test=$ac_cv_prog_MPICC_test if test -n "$MPICC_test"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPICC_test" >&5 -printf "%s\n" "$MPICC_test" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC_test" >&5 +$as_echo "$MPICC_test" >&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 @@ -10132,8 +9475,7 @@ fi if test "$acx_mpi_ok" = "yes"; 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 : acx_mpi_ok="yes" fi @@ -10148,8 +9490,8 @@ fi if test x"$MPICC" != x"mpipgicc" ; then echo > /dev/null if test "$acx_mpi_ok" = "no"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working mpi.h" >&5 -printf %s "checking for a working mpi.h... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working mpi.h" >&5 +$as_echo_n "checking for a working mpi.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -10162,22 +9504,21 @@ printf %s "checking for a working mpi.h... " >&6; } #endif #endif int -main (void) +main () { #include ; 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; };acx_mpi_ok="yes" -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ;acx_mpi_ok="no" +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; };acx_mpi_ok="yes" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } ;acx_mpi_ok="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 else acx_mpi_ok="yes" @@ -10202,12 +9543,12 @@ fi # # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test "$acx_mpi_ok" = "no"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a C mpi test program. YAMBO serial only." >&5 -printf "%s\n" "$as_me: WARNING: could not compile a C mpi test program. YAMBO serial only." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not compile a C mpi test program. YAMBO serial only." >&5 +$as_echo "$as_me: WARNING: could not compile a C mpi test program. YAMBO serial only." >&2;} : else -printf "%s\n" "#define HAVE_MPI 1" >>confdefs.h +$as_echo "#define HAVE_MPI 1" >>confdefs.h : fi @@ -10246,10 +9587,10 @@ if test -e "conftest.x"; then else MPIKIND="undefined" fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPI version" >&5 -printf %s "checking for MPI version... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MPIKIND" >&5 -printf "%s\n" "$MPIKIND" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI version" >&5 +$as_echo_n "checking for MPI version... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIKIND" >&5 +$as_echo "$MPIKIND" >&6; } MPI_PATH=`which $CC |sed "s/bin\/$CC//g"` @@ -10275,29 +9616,25 @@ 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; fi # Check whether --with-mpi_path was given. -if test ${with_mpi_path+y} -then : +if test "${with_mpi_path+set}" = set; then : withval=$with_mpi_path; fi # Check whether --with-mpi_libdir was given. -if test ${with_mpi_libdir+y} -then : +if test "${with_mpi_libdir+set}" = set; then : withval=$with_mpi_libdir; fi # Check whether --with-mpi_includedir was given. -if test ${with_mpi_includedir+y} -then : +if test "${with_mpi_includedir+set}" = set; then : withval=$with_mpi_includedir; fi @@ -10373,13 +9710,12 @@ if test "$mpibuild" = "yes"; then if test x"$MPI_INC_DIR" = "x" ; then for MPI_INC_DIR in $MPI_INC_DIRS_LIST; do if ! test -e "$MPI_INC_DIR"; then continue; fi - as_ac_File=`printf "%s\n" "ac_cv_file_$MPI_INC_DIR/mpif.h" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $MPI_INC_DIR/mpif.h" >&5 -printf %s "checking for $MPI_INC_DIR/mpif.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_$MPI_INC_DIR/mpif.h" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MPI_INC_DIR/mpif.h" >&5 +$as_echo_n "checking for $MPI_INC_DIR/mpif.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 "$MPI_INC_DIR/mpif.h"; then @@ -10389,12 +9725,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 : + { $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 : mpif_found_tmp="yes" -else $as_nop +else mpif_found_tmp="no" fi @@ -10547,6 +9882,31 @@ url_ydb=https://github.com/yambo-code/ydb.git # +# +# Copyright (C) 2000-2022 the YAMBO team +# http://www.yambo-code.org +# +# Authors (see AUTHORS file for details): AM +# +# This file is distributed under the terms of the GNU +# General Public License. You can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; +# either version 2, or (at your option) any later version. +# +# This program is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public +# License along with this program; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place - Suite 330,Boston, +# MA 02111-1307, USA or visit http://www.gnu.org/copyleft/gpl.txt. +# + + # # # Copyright (C) 2000-2021 the YAMBO team @@ -10610,8 +9970,7 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu # # Check whether --enable-ydb was given. -if test ${enable_ydb+y} -then : +if test "${enable_ydb+set}" = set; then : enableval=$enable_ydb; fi @@ -10625,12 +9984,11 @@ if test "x$enable_ydb" = "xyes"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}git", so it can be a program name with args. set dummy ${ac_tool_prefix}git; 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_GIT+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_GIT+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$GIT"; then ac_cv_prog_GIT="$GIT" # Let the user override the test. else @@ -10638,15 +9996,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_GIT="${ac_tool_prefix}git" - 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 @@ -10657,11 +10011,11 @@ fi fi GIT=$ac_cv_prog_GIT if test -n "$GIT"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 -printf "%s\n" "$GIT" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 +$as_echo "$GIT" >&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 @@ -10670,12 +10024,11 @@ if test -z "$ac_cv_prog_GIT"; then ac_ct_GIT=$GIT # Extract the first word of "git", so it can be a program name with args. set dummy git; 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_GIT+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_GIT+:} false; then : + $as_echo_n "(cached) " >&6 +else if test -n "$ac_ct_GIT"; then ac_cv_prog_ac_ct_GIT="$ac_ct_GIT" # Let the user override the test. else @@ -10683,15 +10036,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_GIT="git" - 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 @@ -10702,11 +10051,11 @@ fi fi ac_ct_GIT=$ac_cv_prog_ac_ct_GIT if test -n "$ac_ct_GIT"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GIT" >&5 -printf "%s\n" "$ac_ct_GIT" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GIT" >&5 +$as_echo "$ac_ct_GIT" >&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_GIT" = x; then @@ -10714,8 +10063,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 GIT=$ac_ct_GIT @@ -10727,14 +10076,14 @@ fi # if test "$GIT" = "false"; then enable_ydb="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Git not found. Impossible to install YDB." >&5 -printf "%s\n" "$as_me: WARNING: Git not found. Impossible to install YDB." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Git not found. Impossible to install YDB." >&5 +$as_echo "$as_me: WARNING: Git not found. Impossible to install YDB." >&2;} fi # if test "x$enable_ydb" = "xyes" && ! test -d "scripts/ydb"; then # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking YDB from $url_ydb" >&5 -printf %s "checking YDB from $url_ydb... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking YDB from $url_ydb" >&5 +$as_echo_n "checking YDB from $url_ydb... " >&6; } mkdir -p scripts git clone $url_ydb scripts/ydb # @@ -10744,8 +10093,8 @@ printf %s "checking YDB from $url_ydb... " >&6; } cd $srcdir else enable_ydb="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to install YDB." >&5 -printf "%s\n" "$as_me: WARNING: Impossible to install YDB." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to install YDB." >&5 +$as_echo "$as_me: WARNING: Impossible to install YDB." >&2;} fi fi # @@ -10759,19 +10108,17 @@ ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 -printf %s "checking how to get verbose linking output from $F77... " >&6; } -if test ${ac_cv_prog_f77_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 $F77" >&5 +$as_echo_n "checking how to get verbose linking output from $F77... " >&6; } +if ${ac_cv_prog_f77_v+:} false; then : + $as_echo_n "(cached) " >&6 +else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_f77_try_compile "$LINENO" -then : +if ac_fn_f77_try_compile "$LINENO"; then : ac_cv_prog_f77_v= # Try some options frequently used verbose output for ac_verb in -v -verbose --verbose -V -\#\#\#; do @@ -10789,13 +10136,13 @@ ac_save_FFLAGS=$FFLAGS FFLAGS="$FFLAGS $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_f77_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_f77_v_output" >&5 +$as_echo "$ac_f77_v_output" >&5 FFLAGS=$ac_save_FFLAGS rm -rf conftest* @@ -10862,24 +10209,23 @@ esac done done if test -z "$ac_cv_prog_f77_v"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 -printf "%s\n" "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 +$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&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_f77_v" >&5 -printf "%s\n" "$ac_cv_prog_f77_v" >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 -printf %s "checking for Fortran 77 libraries of $F77... " >&6; } -if test ${ac_cv_f77_libs+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 +$as_echo "$ac_cv_prog_f77_v" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 +$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } +if ${ac_cv_f77_libs+:} false; then : + $as_echo_n "(cached) " >&6 +else if test "x$FLIBS" != "x"; then ac_cv_f77_libs="$FLIBS" # Let the user override the test. else @@ -10898,13 +10244,13 @@ ac_save_FFLAGS=$FFLAGS FFLAGS="$FFLAGS $ac_cv_prog_f77_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_f77_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_f77_v_output" >&5 +$as_echo "$ac_f77_v_output" >&5 FFLAGS=$ac_save_FFLAGS rm -rf conftest* @@ -10981,10 +10327,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_f77_libs="$ac_cv_f77_libs $ac_arg" fi ;; @@ -10997,10 +10342,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_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" @@ -11015,24 +10359,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_f77_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_f77_libs="$ac_cv_f77_libs $ac_arg" -fi + *cygwin*) ;; + *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ;; esac ;; @@ -11050,7 +10379,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_f77_libs; do if test x"$ac_j" = x"$ac_i"; then @@ -11059,10 +10388,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_f77_libs="$ac_cv_f77_libs $ac_j" fi @@ -11077,17 +10405,15 @@ fi fi done - if test x"$ac_exists" = xtrue -then : + if test x"$ac_exists" = xtrue; then : -else $as_nop +else ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" fi ;; -zallextract*| -zdefaultextract) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ;; - -mllvm) ${2+shift};; # Defend against 'clang -mllvm -loopopt=0'. # Ignore everything else. esac done @@ -11099,7 +10425,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_f77_v_output" | + ac_ld_run_path=`$as_echo "$ac_f77_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 @@ -11114,8 +10440,8 @@ esac fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 -printf "%s\n" "$ac_cv_f77_libs" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 +$as_echo "$ac_cv_f77_libs" >&6; } FLIBS="$ac_cv_f77_libs" @@ -11131,20 +10457,17 @@ acx_blas_ok=no # 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; fi # Check whether --enable-int_linalg was given. -if test ${enable_int_linalg+y} -then : +if test "${enable_int_linalg+set}" = set; then : enableval=$enable_int_linalg; fi # Check whether --enable-openmp_int_linalg was given. -if test ${enable_openmp_int_linalg+y} -then : +if test "${enable_openmp_int_linalg+set}" = set; then : enableval=$enable_openmp_int_linalg; fi @@ -11152,8 +10475,7 @@ fi BLAS_LIBS="" # 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; fi @@ -11178,23 +10500,22 @@ internal_blas="no" if test $acx_blas_ok = no; then if test "x$BLAS_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in $BLAS_LIBS" >&5 -printf %s "checking for $caxpy in $BLAS_LIBS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in $BLAS_LIBS" >&5 +$as_echo_n "checking for $caxpy in $BLAS_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_blas_ok=yes -else $as_nop +else BLAS_LIBS="" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_blas_ok" >&5 -printf "%s\n" "$acx_blas_ok" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_ok" >&5 +$as_echo "$acx_blas_ok" >&6; } LIBS="$save_LIBS" fi fi @@ -11203,10 +10524,9 @@ fi # BLAS linked to by default? (happens on some supercomputers) if test $acx_blas_ok = no; then save_LIBS="$LIBS"; LIBS="$LIBS" - as_ac_var=`printf "%s\n" "ac_cv_func_$caxpy" | $as_tr_sh` + as_ac_var=`$as_echo "ac_cv_func_$caxpy" | $as_tr_sh` ac_fn_fc_check_func "$LINENO" "$caxpy" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes" -then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : acx_blas_ok=yes fi @@ -11215,12 +10535,11 @@ fi # BLAS in ATLAS library? (http://math-atlas.sourceforge.net/) if test $acx_blas_ok = no; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5 -printf %s "checking for ATL_xerbla in -latlas... " >&6; } -if test ${ac_cv_lib_atlas_ATL_xerbla+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5 +$as_echo_n "checking for ATL_xerbla in -latlas... " >&6; } +if ${ac_cv_lib_atlas_ATL_xerbla+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-latlas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11228,27 +10547,24 @@ cat > conftest.$ac_ext <<_ACEOF call ATL_xerbla end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : ac_cv_lib_atlas_ATL_xerbla=yes -else $as_nop +else ac_cv_lib_atlas_ATL_xerbla=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_atlas_ATL_xerbla" >&5 -printf "%s\n" "$ac_cv_lib_atlas_ATL_xerbla" >&6; } -if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes -then : - as_ac_Lib=`printf "%s\n" "ac_cv_lib_f77blas_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lf77blas" >&5 -printf %s "checking for $caxpy in -lf77blas... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5 +$as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; } +if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes; then : + as_ac_Lib=`$as_echo "ac_cv_lib_f77blas_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lf77blas" >&5 +$as_echo_n "checking for $caxpy in -lf77blas... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lf77blas -latlas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11256,27 +10572,24 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cblas_daxpy in -lcblas" >&5 -printf %s "checking for cblas_daxpy in -lcblas... " >&6; } -if test ${ac_cv_lib_cblas_cblas_daxpy+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $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 : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_daxpy in -lcblas" >&5 +$as_echo_n "checking for cblas_daxpy in -lcblas... " >&6; } +if ${ac_cv_lib_cblas_cblas_daxpy+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lcblas -lf77blas -latlas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11284,20 +10597,18 @@ cat > conftest.$ac_ext <<_ACEOF call cblas_daxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : ac_cv_lib_cblas_cblas_daxpy=yes -else $as_nop +else ac_cv_lib_cblas_cblas_daxpy=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_cblas_cblas_daxpy" >&5 -printf "%s\n" "$ac_cv_lib_cblas_cblas_daxpy" >&6; } -if test "x$ac_cv_lib_cblas_cblas_daxpy" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_daxpy" >&5 +$as_echo "$ac_cv_lib_cblas_cblas_daxpy" >&6; } +if test "x$ac_cv_lib_cblas_cblas_daxpy" = xyes; then : acx_blas_ok=yes BLAS_LIBS="-lcblas -lf77blas -latlas" fi @@ -11310,13 +10621,12 @@ fi # BLAS in PhiPACK libraries? (requires generic BLAS lib, too) if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_blas_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 -printf %s "checking for $caxpy in -lblas... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_blas_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 +$as_echo_n "checking for $caxpy in -lblas... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11324,28 +10634,25 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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_ac_Lib=`printf "%s\n" "ac_cv_lib_daxpy_$daxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $daxpy in -ldaxpy" >&5 -printf %s "checking for $daxpy in -ldaxpy... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $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 : + as_ac_Lib=`$as_echo "ac_cv_lib_daxpy_$daxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $daxpy in -ldaxpy" >&5 +$as_echo_n "checking for $daxpy in -ldaxpy... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-ldaxpy -lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11353,28 +10660,25 @@ cat > conftest.$ac_ext <<_ACEOF call $daxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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_ac_Lib=`printf "%s\n" "ac_cv_lib_caxpy_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcaxpy" >&5 -printf %s "checking for $caxpy in -lcaxpy... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $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 : + as_ac_Lib=`$as_echo "ac_cv_lib_caxpy_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcaxpy" >&5 +$as_echo_n "checking for $caxpy in -lcaxpy... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaxpy -lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11382,21 +10686,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lcaxpy -ldaxpy -lblas" fi @@ -11408,13 +10710,12 @@ fi # BLAS in Alpha CXML library? if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_cxml_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcxml" >&5 -printf %s "checking for $caxpy in -lcxml... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_cxml_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcxml" >&5 +$as_echo_n "checking for $caxpy in -lcxml... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lcxml $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11422,21 +10723,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-lcxml" fi @@ -11444,13 +10743,12 @@ fi # BLAS in Alpha DXML library? (now called CXML, see above) if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_dxml_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -ldxml" >&5 -printf %s "checking for $caxpy in -ldxml... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_dxml_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -ldxml" >&5 +$as_echo_n "checking for $caxpy in -ldxml... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-ldxml $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11458,21 +10756,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-ldxml" fi @@ -11481,12 +10777,11 @@ fi # BLAS in Sun Performance library? if test $acx_blas_ok = no; then if test "x$GCC" != xyes; then # only works with Sun CC - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5 -printf %s "checking for acosp in -lsunmath... " >&6; } -if test ${ac_cv_lib_sunmath_acosp+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5 +$as_echo_n "checking for acosp in -lsunmath... " >&6; } +if ${ac_cv_lib_sunmath_acosp+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lsunmath $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11494,27 +10789,24 @@ cat > conftest.$ac_ext <<_ACEOF call acosp end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : ac_cv_lib_sunmath_acosp=yes -else $as_nop +else ac_cv_lib_sunmath_acosp=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_sunmath_acosp" >&5 -printf "%s\n" "$ac_cv_lib_sunmath_acosp" >&6; } -if test "x$ac_cv_lib_sunmath_acosp" = xyes -then : - as_ac_Lib=`printf "%s\n" "ac_cv_lib_sunperf_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lsunperf" >&5 -printf %s "checking for $caxpy in -lsunperf... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5 +$as_echo "$ac_cv_lib_sunmath_acosp" >&6; } +if test "x$ac_cv_lib_sunmath_acosp" = xyes; then : + as_ac_Lib=`$as_echo "ac_cv_lib_sunperf_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lsunperf" >&5 +$as_echo_n "checking for $caxpy in -lsunperf... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lsunperf -lsunmath $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11522,21 +10814,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : BLAS_LIBS="-xlic_lib=sunperf -lsunmath" acx_blas_ok=yes fi @@ -11548,13 +10838,12 @@ fi # BLAS in SCSL library? (SGI/Cray Scientific Library) if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_scs_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lscs" >&5 -printf %s "checking for $caxpy in -lscs... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_scs_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lscs" >&5 +$as_echo_n "checking for $caxpy in -lscs... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lscs $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11562,21 +10851,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lscs" fi @@ -11584,13 +10871,12 @@ fi # BLAS in SGIMATH library? if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_complib.sgimath_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcomplib.sgimath" >&5 -printf %s "checking for $caxpy in -lcomplib.sgimath... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_complib.sgimath_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lcomplib.sgimath" >&5 +$as_echo_n "checking for $caxpy in -lcomplib.sgimath... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lcomplib.sgimath $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11598,21 +10884,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath" fi @@ -11620,13 +10904,12 @@ fi # BLAS in IBM ESSL library? (requires generic BLAS lib, too) if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_blas_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 -printf %s "checking for $caxpy in -lblas... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_blas_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 +$as_echo_n "checking for $caxpy in -lblas... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11634,28 +10917,25 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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_ac_Lib=`printf "%s\n" "ac_cv_lib_essl_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lessl" >&5 -printf %s "checking for $caxpy in -lessl... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + { $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 : + as_ac_Lib=`$as_echo "ac_cv_lib_essl_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lessl" >&5 +$as_echo_n "checking for $caxpy in -lessl... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lessl -lblas $FLIBS $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11663,21 +10943,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lessl -lblas" fi @@ -11693,13 +10971,12 @@ if test $acx_blas_ok = no && test -d "${MKLROOT}" ; then *gfortran* ) case "${host}" in *x86*64*) - as_ac_Lib=`printf "%s\n" "ac_cv_lib_mkl_gf_lp64_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_gf_lp64" >&5 -printf %s "checking for $caxpy in -lmkl_gf_lp64... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_mkl_gf_lp64_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_gf_lp64" >&5 +$as_echo_n "checking for $caxpy in -lmkl_gf_lp64... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lmkl_gf_lp64 -L${mkl_libdir} -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11707,33 +10984,30 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-L${mkl_libdir} -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm" fi ;; i?86*linux*) - as_ac_Lib=`printf "%s\n" "ac_cv_lib_mkl_gf_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_gf" >&5 -printf %s "checking for $caxpy in -lmkl_gf... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_mkl_gf_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_gf" >&5 +$as_echo_n "checking for $caxpy in -lmkl_gf... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lmkl_gf -L${mkl_libdir} -lmkl_gf -lmkl_sequential -lmkl_core -lpthread $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11741,21 +11015,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-L${mkl_libdir} -lmkl_gf -lmkl_sequential -lmkl_core -lpthread" fi @@ -11767,13 +11039,12 @@ fi # 64 bit case "${host}" in *x86*64*) - as_ac_Lib=`printf "%s\n" "ac_cv_lib_mkl_intel_lp64_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_intel_lp64" >&5 -printf %s "checking for $caxpy in -lmkl_intel_lp64... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_mkl_intel_lp64_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_intel_lp64" >&5 +$as_echo_n "checking for $caxpy in -lmkl_intel_lp64... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lmkl_intel_lp64 -L${mkl_libdir} -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread -lm $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11781,33 +11052,30 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-L${mkl_libdir} -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread -lm" fi ;; i?86*linux*) - as_ac_Lib=`printf "%s\n" "ac_cv_lib_mkl_intel_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_intel" >&5 -printf %s "checking for $caxpy in -lmkl_intel... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_mkl_intel_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lmkl_intel" >&5 +$as_echo_n "checking for $caxpy in -lmkl_intel... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lmkl_intel -L${mkl_libdir} -lmkl_intel -lmkl_sequential -lmkl_core -lpthread $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11815,21 +11083,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes;BLAS_LIBS="-L${mkl_libdir} -lmkl_intel -lmkl_sequential -lmkl_core -lpthread" fi @@ -11840,13 +11106,12 @@ fi # Generic BLAS library? if test $acx_blas_ok = no; then - as_ac_Lib=`printf "%s\n" "ac_cv_lib_blas_$caxpy" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 -printf %s "checking for $caxpy in -lblas... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_blas_$caxpy" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $caxpy in -lblas" >&5 +$as_echo_n "checking for $caxpy in -lblas... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -11854,21 +11119,19 @@ cat > conftest.$ac_ext <<_ACEOF call $caxpy end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_blas_ok=yes; BLAS_LIBS="-lblas" fi @@ -11879,7 +11142,7 @@ LIBS="$acx_blas_save_LIBS" # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$acx_blas_ok" = xyes; then -printf "%s\n" "#define HAVE_BLAS 1" >>confdefs.h +$as_echo "#define HAVE_BLAS 1" >>confdefs.h : else @@ -11889,12 +11152,12 @@ fi if test $acx_blas_ok = "no"; then internal_blas="yes"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Could not find blas. Using the built-in library" >&5 -printf "%s\n" "$as_me: Could not find blas. Using the built-in library" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find blas. Using the built-in library" >&5 +$as_echo "$as_me: Could not find blas. Using the built-in library" >&6;} elif (test -d "$with_blas_libs" && test "$with_blas_libs" = "") || test x"$enable_int_linalg" = "xyes" ; then internal_blas="yes" - if test $acx_blas_ok = "yes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Blas found in ${BLAS_LIBS} but imposing built-in library" >&5 -printf "%s\n" "$as_me: Blas found in ${BLAS_LIBS} but imposing built-in library" >&6;}; fi + if test $acx_blas_ok = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Blas found in ${BLAS_LIBS} but imposing built-in library" >&5 +$as_echo "$as_me: Blas found in ${BLAS_LIBS} but imposing built-in library" >&6;}; fi fi if test "$internal_blas" = "yes"; then @@ -11959,12 +11222,11 @@ ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5 -printf %s "checking for dummy main to link with Fortran 77 libraries... " >&6; } -if test ${ac_cv_f77_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 77 libraries" >&5 +$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; } +if ${ac_cv_f77_dummy_main+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_f77_dm_save_LIBS=$LIBS LIBS="$LIBS $FLIBS" ac_fortran_dm_var=F77_DUMMY_MAIN @@ -11995,20 +11257,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 @@ -12033,18 +11294,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 @@ -12057,24 +11317,25 @@ ac_compiler_gnu=$ac_cv_f77_compiler_gnu LIBS=$ac_f77_dm_save_LIBS fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 -printf "%s\n" "$ac_cv_f77_dummy_main" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 +$as_echo "$ac_cv_f77_dummy_main" >&6; } F77_DUMMY_MAIN=$ac_cv_f77_dummy_main -if test "$F77_DUMMY_MAIN" != unknown -then : +if test "$F77_DUMMY_MAIN" != unknown; then : if test $F77_DUMMY_MAIN != none; then -printf "%s\n" "#define F77_DUMMY_MAIN $F77_DUMMY_MAIN" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define F77_DUMMY_MAIN $F77_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 @@ -12088,12 +11349,11 @@ ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 -printf %s "checking for Fortran 77 name-mangling scheme... " >&6; } -if test ${ac_cv_f77_mangling+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 +$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; } +if ${ac_cv_f77_mangling+:} false; then : + $as_echo_n "(cached) " >&6 +else cat > conftest.$ac_ext <<_ACEOF subroutine foobar() return @@ -12102,8 +11362,7 @@ else $as_nop return end _ACEOF -if ac_fn_f77_try_compile "$LINENO" -then : +if ac_fn_f77_try_compile "$LINENO"; then : mv conftest.$ac_objext cfortran_test.$ac_objext ac_save_LIBS=$LIBS @@ -12124,6 +11383,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 F77_DUMMY_MAIN @@ -12142,18 +11404,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 @@ -12188,6 +11449,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 F77_DUMMY_MAIN @@ -12206,18 +11470,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=f @@ -12247,17 +11510,17 @@ ac_compiler_gnu=$ac_cv_f77_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_f77_mangling" >&5 -printf "%s\n" "$ac_cv_f77_mangling" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5 +$as_echo "$ac_cv_f77_mangling" >&6; } ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' @@ -12271,8 +11534,7 @@ acx_lapack_ok=no LAPACK_LIBS="" # 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; fi @@ -12298,23 +11560,22 @@ fi # First, check LAPACK_LIBS environment variable if test "x$LAPACK_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $cheev in $LAPACK_LIBS" >&5 -printf %s "checking for $cheev in $LAPACK_LIBS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in $LAPACK_LIBS" >&5 +$as_echo_n "checking for $cheev in $LAPACK_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $cheev end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_lapack_ok=yes -else $as_nop +else LAPACK_LIBS="" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_lapack_ok" >&5 -printf "%s\n" "$acx_lapack_ok" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_lapack_ok" >&5 +$as_echo "$acx_lapack_ok" >&6; } LIBS="$save_LIBS" if test acx_lapack_ok = no; then LAPACK_LIBS="" @@ -12324,10 +11585,9 @@ fi # LAPACK linked to by default? (is sometimes included in BLAS lib) if test $acx_lapack_ok = no; then save_LIBS="$LIBS"; LIBS="$LIBS $BLAS_LIBS $FLIBS" - as_ac_var=`printf "%s\n" "ac_cv_func_$cheev" | $as_tr_sh` + as_ac_var=`$as_echo "ac_cv_func_$cheev" | $as_tr_sh` ac_fn_fc_check_func "$LINENO" "$cheev" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes" -then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : acx_lapack_ok=yes fi @@ -12338,13 +11598,12 @@ fi for lapack in lapack lapack_rs6k; do if test $acx_lapack_ok = no; then save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" - as_ac_Lib=`printf "%s\n" "ac_cv_lib_$lapack""_$cheev" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $cheev in -l$lapack" >&5 -printf %s "checking for $cheev in -l$lapack... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_ac_Lib=`$as_echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in -l$lapack" >&5 +$as_echo_n "checking for $cheev in -l$lapack... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-l$lapack $FLIBS $LIBS" cat > conftest.$ac_ext <<_ACEOF @@ -12352,21 +11611,19 @@ cat > conftest.$ac_ext <<_ACEOF call $cheev end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_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 : acx_lapack_ok=yes; LAPACK_LIBS="-l$lapack" fi @@ -12398,23 +11655,22 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "x$LAPACK_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $dlaran in $LAPACK_LIBS" >&5 -printf %s "checking for $dlaran in $LAPACK_LIBS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dlaran in $LAPACK_LIBS" >&5 +$as_echo_n "checking for $dlaran in $LAPACK_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $dlaran end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_dlaran_ok=yes -else $as_nop +else acx_dlaran_ok=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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_dlaran_ok" >&5 -printf "%s\n" "$acx_dlaran_ok" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_dlaran_ok" >&5 +$as_echo "$acx_dlaran_ok" >&6; } LIBS="$save_LIBS" fi fi @@ -12422,7 +11678,7 @@ fi # Execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$acx_lapack_ok" = xyes; then -printf "%s\n" "#define HAVE_LAPACK 1" >>confdefs.h +$as_echo "#define HAVE_LAPACK 1" >>confdefs.h : else @@ -12432,12 +11688,12 @@ fi if test $acx_lapack_ok = "no"; then internal_lapack="yes"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Could not find lapack. Using the built-in library" >&5 -printf "%s\n" "$as_me: Could not find lapack. Using the built-in library" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find lapack. Using the built-in library" >&5 +$as_echo "$as_me: Could not find lapack. Using the built-in library" >&6;} elif (test -d "$with_lapack_libs" && test "$with_lapack_libs" = "") || test x"$enable_int_linalg" = "xyes" ; then internal_lapack="yes" - if test "$acx_lalpack_ok" = "yes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Lapack found in ${LAPACK_LIBS} but imposing built-in library" >&5 -printf "%s\n" "$as_me: Lapack found in ${LAPACK_LIBS} but imposing built-in library" >&6;}; fi + if test "$acx_lalpack_ok" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Lapack found in ${LAPACK_LIBS} but imposing built-in library" >&5 +$as_echo "$as_me: Lapack found in ${LAPACK_LIBS} but imposing built-in library" >&6;}; fi fi if test "$internal_lapack" = "yes"; then @@ -12489,60 +11745,52 @@ fi # Check whether --with-fft_libs was given. -if test ${with_fft_libs+y} -then : +if test "${with_fft_libs+set}" = set; then : withval=$with_fft_libs; fi # Check whether --with-fft_path was given. -if test ${with_fft_path+y} -then : +if test "${with_fft_path+set}" = set; then : withval=$with_fft_path; fi # Check whether --with-fft_libdir was given. -if test ${with_fft_libdir+y} -then : +if test "${with_fft_libdir+set}" = set; then : withval=$with_fft_libdir; fi # Check whether --with-fft_includedir was given. -if test ${with_fft_includedir+y} -then : +if test "${with_fft_includedir+set}" = set; then : withval=$with_fft_includedir; fi # # Check whether --enable-internal_fftqe was given. -if test ${enable_internal_fftqe+y} -then : +if test "${enable_internal_fftqe+set}" = set; then : enableval=$enable_internal_fftqe; -else $as_nop +else enable_internal_fftqe=no fi # Check whether --enable-internal_fftsg was given. -if test ${enable_internal_fftsg+y} -then : +if test "${enable_internal_fftsg+set}" = set; then : enableval=$enable_internal_fftsg; -else $as_nop +else enable_internal_fftsg=no fi # Check whether --enable-3d_fft was given. -if test ${enable_3d_fft+y} -then : +if test "${enable_3d_fft+set}" = set; then : enableval=$enable_3d_fft; fi # # Check whether --with-fftsg_fac was given. -if test ${with_fftsg_fac+y} -then : +if test "${with_fftsg_fac+set}" = set; then : withval=$with_fftsg_fac; fi @@ -12567,10 +11815,10 @@ if test -d "$with_fft_path" || test -d "$with_fft_libdir" ; then # # external FFT # - if test -d "$with_fft_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT in $with_fft_path" >&5 -printf %s "checking for FFT in $with_fft_path... " >&6; } ; fi - if test -d "$with_fft_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT in $with_fft_libdir" >&5 -printf %s "checking for FFT in $with_fft_libdir... " >&6; } ; fi + if test -d "$with_fft_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT in $with_fft_path" >&5 +$as_echo_n "checking for FFT in $with_fft_path... " >&6; } ; fi + if test -d "$with_fft_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT in $with_fft_libdir" >&5 +$as_echo_n "checking for FFT in $with_fft_libdir... " >&6; } ; fi # if test -d "$with_fft_path" ; then try_fft_libdir=$with_fft_path/lib @@ -12586,16 +11834,16 @@ elif test x"$with_fft_libs" != "x" ; then # # directly provided lib # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT Library using $with_fft_libs" >&5 -printf %s "checking for FFT Library using $with_fft_libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT Library using $with_fft_libs" >&5 +$as_echo_n "checking for FFT Library using $with_fft_libs... " >&6; } try_fft_libs=$with_fft_libs # if test -d "$with_fft_includedir" ; then try_fft_incdir=$with_fft_includedir ; fi if test -z "$try_fft_incdir" ; then include_warn="yes" ; fi # else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 -printf %s "checking for FFT... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 +$as_echo_n "checking for FFT... " >&6; } fi # # check for FFTW @@ -12658,24 +11906,22 @@ if ! test x"$try_fft_libs" = "x" ; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : HAVE_FFTW="yes"; -else $as_nop +else HAVE_FFTW="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 cat > conftest.$ac_ext <<_ACEOF $testprog_omp _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : HAVE_FFTW_OMP="yes"; -else $as_nop +else HAVE_FFTW_OMP="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=$save_libs @@ -12687,18 +11933,18 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ # if test "$try_fft_libs" = "-lfftw3" ; then FFT_info="(FFTW v3)"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTW3" >&5 -printf "%s\n" "FFTW3" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTW3" >&5 +$as_echo "FFTW3" >&6; } elif test "$try_fft_libs" = "-lfftw3 -lfftw3_omp" && test "$HAVE_FFTW_OMP" = "yes" ; then FFT_info="(FFTW_OMP v3)"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTW3_OMP" >&5 -printf "%s\n" "FFTW3_OMP" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTW3_OMP" >&5 +$as_echo "FFTW3_OMP" >&6; } else desc=Other if ! test -z "`echo $try_fft_libs | grep -i mkl`" ; then desc="MKL" ; fi FFT_info="(FFTW $desc)"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTW ($desc) " >&5 -printf "%s\n" "FFTW ($desc) " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTW ($desc) " >&5 +$as_echo "FFTW ($desc) " >&6; } fi else def_fft="" @@ -12713,8 +11959,8 @@ else fi if test "$HAVE_FFT" = "yes" && test "$include_warn" = "yes" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No include-dir specified for fft library" >&5 -printf "%s\n" "$as_me: WARNING: No include-dir specified for fft library" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No include-dir specified for fft library" >&5 +$as_echo "$as_me: WARNING: No include-dir specified for fft library" >&2;} fi # # check for ESSL FFT @@ -12724,8 +11970,8 @@ if test -d "$try_fft_libdir" && test -d "$try_fft_incdir" ; then fi # if ! test x"$try_fft_libs" = "x" && ! test "$HAVE_FFT" = "yes" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTW no" >&5 -printf "%s\n" "FFTW no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTW no" >&5 +$as_echo "FFTW no" >&6; } # if ! test x"$try_fft_libdir" = "x" ; then FFT_PATH="-L$try_fft_libdir" ; fi # @@ -12735,31 +11981,30 @@ printf "%s\n" "FFTW no" >&6; } LIBS="$FFT_PATH $try_fft_libs" if test x"$try_fft_incdir" != "x" ; then FCFLAGS="$FCFLAGS $IFLAG$try_fft_incdir" ; fi # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dcft in $LIBS" >&5 -printf %s "checking for dcft in $LIBS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcft in $LIBS" >&5 +$as_echo_n "checking for dcft in $LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call dcft end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : HAVE_ESSL=yes -else $as_nop +else HAVE_ESSL=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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_ESSL" >&5 -printf "%s\n" "$HAVE_ESSL" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ESSL" >&5 +$as_echo "$HAVE_ESSL" >&6; } # LIBS=$save_libs LDFLAGS=$save_ldflags FCFLAGS=$save_fcflags # if test "$HAVE_ESSL" = "yes" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 -printf %s "checking for FFT... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 +$as_echo_n "checking for FFT... " >&6; } if ! test x"$enable_3d_fft" = "xno" ; then FFT3D_CPP="-D_USE_3D_FFT" FFT_info="(FFT ESSL (FFTQE) with 3D support)"; @@ -12771,8 +12016,8 @@ printf %s "checking for FFT... " >&6; } FFT_INCS="$IFLAG$try_fft_incdir" HAVE_FFT=yes compile_fftqe=yes - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ESSL FFT" >&5 -printf "%s\n" "ESSL FFT" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ESSL FFT" >&5 +$as_echo "ESSL FFT" >&6; } fi fi # @@ -12781,8 +12026,8 @@ fi if ! test x"$HAVE_FFT" = "xyes" ; then # # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 -printf %s "checking for FFT... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFT" >&5 +$as_echo_n "checking for FFT... " >&6; } if test x"$enable_internal_fftqe" = "xyes" ; then use_internal_fftqe=yes use_internal_fftsg=no @@ -12819,8 +12064,8 @@ if test "$use_internal_fftqe" = "yes" ; then else compile_fftqe=yes fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Internal FFTQE (FFTW2)" >&5 -printf "%s\n" "Internal FFTQE (FFTW2)" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Internal FFTQE (FFTW2)" >&5 +$as_echo "Internal FFTQE (FFTW2)" >&6; } fi if test "$HAVE_FFTQE" = "yes" ; then HAVE_FFT=yes ; fi @@ -12846,8 +12091,8 @@ if test "$use_internal_fftsg" = "yes" ; then FFT_LIBS="" HAVE_FFTSG=yes; internal_fft="yes"; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FFTSG" >&5 -printf "%s\n" "FFTSG" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: FFTSG" >&5 +$as_echo "FFTSG" >&6; } fi if test "$HAVE_FFTSG" = "yes" ; then HAVE_FFT=yes ; fi @@ -12868,8 +12113,8 @@ if test "$use_internal_fftw" = "yes" ; then else compile_fftw=yes fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Internal FFTW3" >&5 -printf "%s\n" "Internal FFTW3" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Internal FFTW3" >&5 +$as_echo "Internal FFTW3" >&6; } fi if test "$HAVE_FFTW" = "yes" ; then HAVE_FFT=yes ; fi @@ -12883,48 +12128,48 @@ ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu case $ac_cv_f77_mangling in "lower case, no underscore, no extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) name" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) name" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h ;; "lower case, no underscore, extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) name" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h ;; "lower case, underscore, no extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h ;; "lower case, underscore, extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h ;; "upper case, no underscore, no extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) NAME" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h ;; "upper case, no underscore, extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) NAME" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h ;; "upper case, underscore, no extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h + $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h ;; "upper case, underscore, extra underscore") - printf "%s\n" "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h + $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h - printf "%s\n" "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h + $as_echo "#define F77_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 @@ -12933,7 +12178,7 @@ 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" "#define _FFTQE 1" >>confdefs.h + $as_echo "#define _FFTQE 1" >>confdefs.h ac_config_headers="$ac_config_headers lib/fftqe/c_defs.h:lib/fftqe/c_defs.h.in" @@ -12955,99 +12200,86 @@ fi # # Check whether --enable-slepc_linalg was given. -if test ${enable_slepc_linalg+y} -then : +if test "${enable_slepc_linalg+set}" = set; then : enableval=$enable_slepc_linalg; fi # # Check whether --with-slepc_libs was given. -if test ${with_slepc_libs+y} -then : +if test "${with_slepc_libs+set}" = set; then : withval=$with_slepc_libs; fi # Check whether --with-slepc_incs was given. -if test ${with_slepc_incs+y} -then : +if test "${with_slepc_incs+set}" = set; then : withval=$with_slepc_incs; fi # Check whether --with-slepc_path was given. -if test ${with_slepc_path+y} -then : +if test "${with_slepc_path+set}" = set; then : withval=$with_slepc_path; fi # Check whether --with-slepc_libdir was given. -if test ${with_slepc_libdir+y} -then : +if test "${with_slepc_libdir+set}" = set; then : withval=$with_slepc_libdir; fi # Check whether --with-slepc_includedir was given. -if test ${with_slepc_includedir+y} -then : +if test "${with_slepc_includedir+set}" = set; then : withval=$with_slepc_includedir; fi # # Check whether --with-petsc_libs was given. -if test ${with_petsc_libs+y} -then : +if test "${with_petsc_libs+set}" = set; then : withval=$with_petsc_libs; fi # Check whether --with-petsc_incs was given. -if test ${with_petsc_incs+y} -then : +if test "${with_petsc_incs+set}" = set; then : withval=$with_petsc_incs; fi # Check whether --with-petsc_path was given. -if test ${with_petsc_path+y} -then : +if test "${with_petsc_path+set}" = set; then : withval=$with_petsc_path; fi # Check whether --with-petsc_libdir was given. -if test ${with_petsc_libdir+y} -then : +if test "${with_petsc_libdir+set}" = set; then : withval=$with_petsc_libdir; fi # Check whether --with-petsc_includedir was given. -if test ${with_petsc_includedir+y} -then : +if test "${with_petsc_includedir+set}" = set; then : withval=$with_petsc_includedir; fi # Check whether --with-slepc-branch was given. -if test ${with_slepc_branch+y} -then : +if test "${with_slepc_branch+set}" = set; then : withval=$with_slepc_branch; -else $as_nop +else with_slepc_branch=none fi # Check whether --with-petsc-branch was given. -if test ${with_petsc_branch+y} -then : +if test "${with_petsc_branch+set}" = set; then : withval=$with_petsc_branch; -else $as_nop +else with_petsc_branch=none fi @@ -13070,12 +12302,11 @@ 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 for dlopen in -ldl" >&5 -printf %s "checking for dlopen in -ldl... " >&6; } -if test ${ac_cv_lib_dl_dlopen+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13084,6 +12315,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 dlopen (); #ifdef F77_DUMMY_MAIN @@ -13102,29 +12336,27 @@ char dlopen (); #endif #endif int -main (void) +main () { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes -else $as_nop +else ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5 -printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : use_libdl="yes"; -else $as_nop +else use_libdl="no"; fi @@ -13159,12 +12391,12 @@ if test -d "$with_petsc_path" || test -d "$with_petsc_libdir" || test x"$with_pe # # external petsc # - if test x"$with_petsc_libs" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Petsc using $with_petsc_libs" >&5 -printf %s "checking for Petsc using $with_petsc_libs... " >&6; } ; - elif test -d "$with_petsc_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Petsc in $with_petsc_libdir" >&5 -printf %s "checking for Petsc in $with_petsc_libdir... " >&6; } ; - elif test -d "$with_petsc_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Petsc in $with_petsc_path" >&5 -printf %s "checking for Petsc in $with_petsc_path... " >&6; } ; + if test x"$with_petsc_libs" != "x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Petsc using $with_petsc_libs" >&5 +$as_echo_n "checking for Petsc using $with_petsc_libs... " >&6; } ; + elif test -d "$with_petsc_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Petsc in $with_petsc_libdir" >&5 +$as_echo_n "checking for Petsc in $with_petsc_libdir... " >&6; } ; + elif test -d "$with_petsc_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Petsc in $with_petsc_path" >&5 +$as_echo_n "checking for Petsc in $with_petsc_path... " >&6; } ; fi # if test -d "$with_petsc_path" ; then @@ -13207,24 +12439,23 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu #include end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : petsc=yes -else $as_nop +else petsc=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; # if test "x$petsc" = "xyes"; 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; } ; PETSC_INCS="$try_PETSC_INCS" ; PETSC_LIBS="$try_PETSC_LIBS" ; compile_petsc="no"; internal_petsc="no"; 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 # @@ -13237,8 +12468,8 @@ if test "x$enable_petsc" = "xyes" && test "x$petsc" = "xno" ; then # # internal petsc # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal Petsc library" >&5 -printf %s "checking for internal Petsc library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal Petsc library" >&5 +$as_echo_n "checking for internal Petsc library... " >&6; } # internal_petsc="yes" # @@ -13258,30 +12489,30 @@ printf %s "checking for internal Petsc library... " >&6; } PETSC_LIBS="$PETSC_LIBS_DN" ; compile_petsc="no" ; if test "x$lapack_shared" = "x1" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: dynamic already compiled" >&5 -printf "%s\n" "dynamic already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic already compiled" >&5 +$as_echo "dynamic already compiled" >&6; } ; else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: dynamic found, despite no dynamic lapack detected." >&5 -printf "%s\n" "dynamic found, despite no dynamic lapack detected." >&6; } ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: The compilation may fail. In case remove the dynamic petsc libs." >&5 -printf "%s\n" "The compilation may fail. In case remove the dynamic petsc libs." >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic found, despite no dynamic lapack detected." >&5 +$as_echo "dynamic found, despite no dynamic lapack detected." >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: The compilation may fail. In case remove the dynamic petsc libs." >&5 +$as_echo "The compilation may fail. In case remove the dynamic petsc libs." >&6; } ; fi elif test -e "$PETSC_LIBS_ST" ; then PETSC_LIBS="$PETSC_LIBS_ST" ; compile_petsc="no" ; if test "x$lapack_shared" = "x1" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static found, despite dynamic lapack." >&5 -printf "%s\n" "static found, despite dynamic lapack." >&6; } ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: You may delete the static petsc and re-run the configure to get smaller executables" >&5 -printf "%s\n" "You may delete the static petsc and re-run the configure to get smaller executables" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: static found, despite dynamic lapack." >&5 +$as_echo "static found, despite dynamic lapack." >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: You may delete the static petsc and re-run the configure to get smaller executables" >&5 +$as_echo "You may delete the static petsc and re-run the configure to get smaller executables" >&6; } ; else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static already compiled" >&5 -printf "%s\n" "static already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: static already compiled" >&5 +$as_echo "static already compiled" >&6; } ; fi else compile_petsc="yes" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ; fi # fi @@ -13308,12 +12539,12 @@ if test -d "$with_slepc_path" || test -d "$with_slec_libdir" || test x"$with_sle # # external slepc # - if test x"$with_slepc_libs" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Slepc using $with_slepc_libs" >&5 -printf %s "checking for Slepc using $with_slepc_libs... " >&6; } ; - elif test -d "$with_slepc_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Slepc in $with_slepc_libdir" >&5 -printf %s "checking for Slepc in $with_slepc_libdir... " >&6; } ; - elif test -d "$with_slepc_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Slepc in $with_slepc_path" >&5 -printf %s "checking for Slepc in $with_slepc_path... " >&6; } ; + if test x"$with_slepc_libs" != "x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Slepc using $with_slepc_libs" >&5 +$as_echo_n "checking for Slepc using $with_slepc_libs... " >&6; } ; + elif test -d "$with_slepc_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Slepc in $with_slepc_libdir" >&5 +$as_echo_n "checking for Slepc in $with_slepc_libdir... " >&6; } ; + elif test -d "$with_slepc_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Slepc in $with_slepc_path" >&5 +$as_echo_n "checking for Slepc in $with_slepc_path... " >&6; } ; fi # if test -d "$with_slepc_path" ; then @@ -13352,25 +12583,24 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu #include end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : slepc=yes -else $as_nop +else slepc=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; # if test "x$slepc" = "xyes"; 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; } ; SLEPC_INCS="$try_SLEPC_INCS" ; SLEPC_LIBS="$try_SLEPC_LIBS" ; compile_slepc="no"; internal_slepc="no"; def_slepc="-D_SLEPC"; 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 # @@ -13384,8 +12614,8 @@ if test "x$enable_slepc" = "xyes" && test "x$slepc" = "xno" && test "x$enable_pe # # internal slepc # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal Slepc library" >&5 -printf %s "checking for internal Slepc library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal Slepc library" >&5 +$as_echo_n "checking for internal Slepc library... " >&6; } # internal_slepc="yes"; # @@ -13403,30 +12633,30 @@ printf %s "checking for internal Slepc library... " >&6; } SLEPC_LIBS="$SLEPC_LIBS_DN -Wl,-rpath=${extlibs_path}/${FCKIND}/${FC}/${build_precision}/lib" ; compile_slepc="no" ; if test "x$lapack_shared" = "x1" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: dynamic already compiled" >&5 -printf "%s\n" "dynamic already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic already compiled" >&5 +$as_echo "dynamic already compiled" >&6; } ; else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: dynamic found, despite no dynamic lapack detected." >&5 -printf "%s\n" "dynamic found, despite no dynamic lapack detected." >&6; } ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: The compilation may fail. In case remove the dynamic slepc libs." >&5 -printf "%s\n" "The compilation may fail. In case remove the dynamic slepc libs." >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic found, despite no dynamic lapack detected." >&5 +$as_echo "dynamic found, despite no dynamic lapack detected." >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: The compilation may fail. In case remove the dynamic slepc libs." >&5 +$as_echo "The compilation may fail. In case remove the dynamic slepc libs." >&6; } ; fi elif test -e "$SLEPC_LIBS_ST" ; then SLEPC_LIBS="$SLEPC_LIBS_ST" ; compile_slepc="no" ; if test "x$lapack_shared" = "x1" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static found, despite dynamic lapack." >&5 -printf "%s\n" "static found, despite dynamic lapack." >&6; } ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: You may delete the static slepc and re-run the configure to get smaller executables" >&5 -printf "%s\n" "You may delete the static slepc and re-run the configure to get smaller executables" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: static found, despite dynamic lapack." >&5 +$as_echo "static found, despite dynamic lapack." >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: You may delete the static slepc and re-run the configure to get smaller executables" >&5 +$as_echo "You may delete the static slepc and re-run the configure to get smaller executables" >&6; } ; else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static already compiled" >&5 -printf "%s\n" "static already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: static already compiled" >&5 +$as_echo "static already compiled" >&6; } ; fi else compile_slepc="yes" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ; fi def_slepc="-D_SLEPC"; # @@ -13452,22 +12682,19 @@ fi # Check whether --enable-par_linalg was given. -if test ${enable_par_linalg+y} -then : +if test "${enable_par_linalg+set}" = set; then : enableval=$enable_par_linalg; fi # Check whether --with-blacs_libs was given. -if test ${with_blacs_libs+y} -then : +if test "${with_blacs_libs+set}" = set; then : withval=$with_blacs_libs; fi # Check whether --with-scalapack_libs was given. -if test ${with_scalapack_libs+y} -then : +if test "${with_scalapack_libs+set}" = set; then : withval=$with_scalapack_libs; fi @@ -13554,23 +12781,22 @@ if test "$mpibuild" = "yes"; then # First, check BLACS_LIBS environment variable if test "x$BLACS_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$BLACS_LIBS $LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $blacs_routine in $BLACS_LIBS" >&5 -printf %s "checking for $blacs_routine in $BLACS_LIBS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $blacs_routine in $BLACS_LIBS" >&5 +$as_echo_n "checking for $blacs_routine in $BLACS_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $blacs_routine end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : enable_blacs="yes" -else $as_nop +else enable_blacs="internal"; BLACS_LIBS="" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_blacs" >&5 -printf "%s\n" "$enable_blacs" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_blacs" >&5 +$as_echo "$enable_blacs" >&6; } BLACS_LIBS="$acx_blacs_save_LIBS" LIBS="$save_LIBS" else @@ -13585,23 +12811,22 @@ printf "%s\n" "$enable_blacs" >&6; } # First, check SCALAPACK_LIBS environment variable if test "x$SCALAPACK_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$SCALAPACK_LIBS $LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $scalapack_routine in $SCALAPACK_LIBS" >&5 -printf %s "checking for $scalapack_routine in $SCALAPACK_LIBS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $scalapack_routine in $SCALAPACK_LIBS" >&5 +$as_echo_n "checking for $scalapack_routine in $SCALAPACK_LIBS... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main call $scalapack_routine end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : enable_scalapack="yes" -else $as_nop +else enable_scalapack="internal"; SCALAPACK_LIBS="" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_scalapack" >&5 -printf "%s\n" "$enable_scalapack" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_scalapack" >&5 +$as_echo "$enable_scalapack" >&6; } SCALAPACK_LIBS="$acx_scalapack_save_LIBS" LIBS="$save_LIBS" else @@ -13675,29 +12900,25 @@ LIBS="$reset_LIBS" # # Check whether --with-hdf5_libs was given. -if test ${with_hdf5_libs+y} -then : +if test "${with_hdf5_libs+set}" = set; then : withval=$with_hdf5_libs; fi # Check whether --with-hdf5_path was given. -if test ${with_hdf5_path+y} -then : +if test "${with_hdf5_path+set}" = set; then : withval=$with_hdf5_path; fi # Check whether --with-hdf5_libdir was given. -if test ${with_hdf5_libdir+y} -then : +if test "${with_hdf5_libdir+set}" = set; then : withval=$with_hdf5_libdir; fi # Check whether --with-hdf5_includedir was given. -if test ${with_hdf5_includedir+y} -then : +if test "${with_hdf5_includedir+set}" = set; then : withval=$with_hdf5_includedir; fi @@ -13705,8 +12926,7 @@ fi # HDF5 data compression # # Check whether --enable-hdf5_compression was given. -if test ${enable_hdf5_compression+y} -then : +if test "${enable_hdf5_compression+set}" = set; then : enableval=$enable_hdf5_compression; fi @@ -13714,10 +12934,9 @@ fi # HDF5 PAR IO # # Check whether --enable-hdf5_par_io was given. -if test ${enable_hdf5_par_io+y} -then : +if test "${enable_hdf5_par_io+set}" = set; then : enableval=$enable_hdf5_par_io; -else $as_nop +else enable_hdf5_par_io="yes" fi @@ -13725,8 +12944,7 @@ fi # HDF5 FOR P2Y (also requires parallel HDF5) # # Check whether --enable-hdf5_p2y_support was given. -if test ${enable_hdf5_p2y_support+y} -then : +if test "${enable_hdf5_p2y_support+set}" = set; then : enableval=$enable_hdf5_p2y_support; fi @@ -13757,13 +12975,12 @@ 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_ac_Lib=`printf "%s\n" "ac_cv_lib_z ""_deflate" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz " >&5 -printf %s "checking for deflate in -lz ... " >&6; } -if eval test \${$as_ac_Lib+y} -then : - printf %s "(cached) " >&6 -else $as_nop +as_ac_Lib=`$as_echo "ac_cv_lib_z ''_deflate" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz " >&5 +$as_echo_n "checking for deflate in -lz ... " >&6; } +if eval \${$as_ac_Lib+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13772,6 +12989,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 deflate (); #ifdef F77_DUMMY_MAIN @@ -13790,39 +13010,36 @@ char deflate (); #endif #endif int -main (void) +main () { return deflate (); ; 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 : use_libz="yes"; -else $as_nop +else use_libz="no"; fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lsz" >&5 -printf %s "checking for deflate in -lsz... " >&6; } -if test ${ac_cv_lib_sz_deflate+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lsz" >&5 +$as_echo_n "checking for deflate in -lsz... " >&6; } +if ${ac_cv_lib_sz_deflate+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lsz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13831,6 +13048,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 deflate (); #ifdef F77_DUMMY_MAIN @@ -13849,38 +13069,35 @@ char deflate (); #endif #endif int -main (void) +main () { return deflate (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_sz_deflate=yes -else $as_nop +else ac_cv_lib_sz_deflate=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_sz_deflate" >&5 -printf "%s\n" "$ac_cv_lib_sz_deflate" >&6; } -if test "x$ac_cv_lib_sz_deflate" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_deflate" >&5 +$as_echo "$ac_cv_lib_sz_deflate" >&6; } +if test "x$ac_cv_lib_sz_deflate" = xyes; then : use_libsz="yes"; -else $as_nop +else use_libsz="no"; fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -printf %s "checking for dlopen in -ldl... " >&6; } -if test ${ac_cv_lib_dl_dlopen+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13889,6 +13106,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 dlopen (); #ifdef F77_DUMMY_MAIN @@ -13907,38 +13127,35 @@ char dlopen (); #endif #endif int -main (void) +main () { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes -else $as_nop +else ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5 -printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : use_libdl="yes"; -else $as_nop +else use_libdl="no"; fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curl_version in -lcurl" >&5 -printf %s "checking for curl_version in -lcurl... " >&6; } -if test ${ac_cv_lib_curl_curl_version+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_version in -lcurl" >&5 +$as_echo_n "checking for curl_version in -lcurl... " >&6; } +if ${ac_cv_lib_curl_curl_version+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lcurl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13947,6 +13164,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 curl_version (); #ifdef F77_DUMMY_MAIN @@ -13965,38 +13185,35 @@ char curl_version (); #endif #endif int -main (void) +main () { return curl_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_curl_curl_version=yes -else $as_nop +else ac_cv_lib_curl_curl_version=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_curl_curl_version" >&5 -printf "%s\n" "$ac_cv_lib_curl_curl_version" >&6; } -if test "x$ac_cv_lib_curl_curl_version" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_version" >&5 +$as_echo "$ac_cv_lib_curl_curl_version" >&6; } +if test "x$ac_cv_lib_curl_curl_version" = xyes; then : use_libcurl="yes"; -else $as_nop +else use_libcurl="no"; fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 -printf %s "checking for cos in -lm... " >&6; } -if test ${ac_cv_lib_m_cos+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 +$as_echo_n "checking for cos in -lm... " >&6; } +if ${ac_cv_lib_m_cos+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -14005,6 +13222,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 cos (); #ifdef F77_DUMMY_MAIN @@ -14023,29 +13243,27 @@ char cos (); #endif #endif int -main (void) +main () { return cos (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO" -then : +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_cos=yes -else $as_nop +else ac_cv_lib_m_cos=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_cos" >&5 -printf "%s\n" "$ac_cv_lib_m_cos" >&6; } -if test "x$ac_cv_lib_m_cos" = xyes -then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 +$as_echo "$ac_cv_lib_m_cos" >&6; } +if test "x$ac_cv_lib_m_cos" = xyes; then : use_libm="yes"; -else $as_nop +else use_libm="no"; fi @@ -14074,14 +13292,14 @@ if test x"$enable_hdf5" = "xyes"; then # if ! test "$with_hdf5_libs" = "internal" ; then # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HDF5" >&5 -printf %s "checking for HDF5... " >&6; } ; - if test -d "$with_hdf5_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in libdir $with_hdf5_libdir" >&5 -printf "%s\n" "in libdir $with_hdf5_libdir" >&6; } ; - elif test -d "$with_hdf5_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in path $with_hdf5_path" >&5 -printf "%s\n" "in path $with_hdf5_path" >&6; } ; - elif test x"$with_hdf5_libs" != "x" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $with_hdf5_libs" >&5 -printf "%s\n" "using $with_hdf5_libs" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HDF5" >&5 +$as_echo_n "checking for HDF5... " >&6; } ; + if test -d "$with_hdf5_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: in libdir $with_hdf5_libdir" >&5 +$as_echo "in libdir $with_hdf5_libdir" >&6; } ; + elif test -d "$with_hdf5_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: in path $with_hdf5_path" >&5 +$as_echo "in path $with_hdf5_path" >&6; } ; + elif test x"$with_hdf5_libs" != "x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $with_hdf5_libs" >&5 +$as_echo "using $with_hdf5_libs" >&6; } ; fi # ac_ext=${ac_fc_srcext-f} @@ -14122,26 +13340,25 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : hdf5=yes -else $as_nop +else hdf5=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; # FCFLAGS="$save_fcflags" ; LIBS="$save_libs" ; # if test "x$hdf5" = "xno" ; then - { 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; } ; # # Automatic detection of hdf5 libs copied from QE # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HDF5 using h5pfc/h5fc system compilers" >&5 -printf %s "checking for HDF5 using h5pfc/h5fc system compilers... " >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HDF5 using h5pfc/h5fc system compilers" >&5 +$as_echo_n "checking for HDF5 using h5pfc/h5fc system compilers... " >&6; } ; # h5pfc="none" if test -e $with_hdf5_path/bin/h5pfc; then @@ -14189,13 +13406,12 @@ printf %s "checking for HDF5 using h5pfc/h5fc system compilers... " >&6; } ; end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : hdf5=yes -else $as_nop +else hdf5=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; # FCFLAGS="$save_fcflags" ; @@ -14204,10 +13420,10 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ fi # if test "x$hdf5" = xno; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HDF5 using automatic library list" >&5 -printf %s "checking for HDF5 using automatic library list... " >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HDF5 using automatic library list" >&5 +$as_echo_n "checking for HDF5 using automatic library list... " >&6; } ; # # re-define lib and inc dirs # @@ -14247,13 +13463,12 @@ printf %s "checking for HDF5 using automatic library list... " >&6; } ; end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : hdf5=yes -else $as_nop +else hdf5=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; # FCFLAGS="$save_fcflags" ; @@ -14267,13 +13482,13 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ HDF5_LIBS="$try_HDF5_LIBS" ; HDF5_INCS="$try_HDF5_INCS" ; if test $IO_LIB_VER = "parallel"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - parallel lib found" >&5 -printf "%s\n" "yes - parallel lib found" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - parallel lib found" >&5 +$as_echo "yes - parallel lib found" >&6; } ; HDF5_OPT="--enable-parallel" ; fi if test $IO_LIB_VER = "serial"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - serial lib found" >&5 -printf "%s\n" "yes - serial lib found" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - serial lib found" >&5 +$as_echo "yes - serial lib found" >&6; } ; HDF5_OPT="--disable-parallel" ; fi # AC_MSG_RESULT([yes]) ; @@ -14282,12 +13497,12 @@ printf "%s\n" "yes - serial lib found" >&6; } ; # if test "x$hdf5" = xno; then if ! test "$with_hdf5_libs" = "internal" ; then - { 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 # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal HDF5 library" >&5 -printf %s "checking for internal HDF5 library... " >&6; }; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal HDF5 library" >&5 +$as_echo_n "checking for internal HDF5 library... " >&6; }; internal_hdf5="yes" ; # NETCDF_VER="v4"; @@ -14307,8 +13522,8 @@ printf %s "checking for internal HDF5 library... " >&6; }; if test -e "${NETCDF_HDF5_PATH}/lib/libhdf5.a"; then # compile_hdf5="no" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; # elif test "$IO_LIB_VER" = "serial" && test -e "${NETCDF_HDF5_PAR_PATH}/lib/libhdf5.a"; then # @@ -14317,8 +13532,8 @@ printf "%s\n" "already compiled" >&6; } ; #HDF5_LIBS="${NETCDF_HDF5_PAR_PATH}/lib/libhdf5_hl_fortran.a ${NETCDF_HDF5_PAR_PATH}/lib/libhdf5_fortran.a ${NETCDF_HDF5_PAR_PATH}/lib/libhdf5_hl.a ${NETCDF_HDF5_PAR_PATH}/lib/libhdf5.a" ; HDF5_LIBS="-L${NETCDF_HDF5_PAR_PATH}/lib/ -lhdf5_hl_fortran -lhdf5_fortran -lhdf5_hl -lhdf5" ; HDF5_INCS="${IFLAG}${NETCDF_HDF5_PAR_PATH}/include" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled (using parallel version)" >&5 -printf "%s\n" "already compiled (using parallel version)" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled (using parallel version)" >&5 +$as_echo "already compiled (using parallel version)" >&6; } ; # else # @@ -14327,8 +13542,8 @@ printf "%s\n" "already compiled (using parallel version)" >&6; } ; if test "$IO_LIB_VER" = "serial"; then HDF5_OPT="--disable-parallel" ; fi if test "$IO_LIB_VER" = "parallel"; then HDF5_OPT="--enable-parallel" ; fi # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ; # fi # @@ -14385,58 +13600,50 @@ fi # Check whether --with-netcdf_libs was given. -if test ${with_netcdf_libs+y} -then : +if test "${with_netcdf_libs+set}" = set; then : withval=$with_netcdf_libs; fi # Check whether --with-netcdf_path was given. -if test ${with_netcdf_path+y} -then : +if test "${with_netcdf_path+set}" = set; then : withval=$with_netcdf_path; fi # Check whether --with-netcdf_libdir was given. -if test ${with_netcdf_libdir+y} -then : +if test "${with_netcdf_libdir+set}" = set; then : withval=$with_netcdf_libdir; fi # Check whether --with-netcdf_includedir was given. -if test ${with_netcdf_includedir+y} -then : +if test "${with_netcdf_includedir+set}" = set; then : withval=$with_netcdf_includedir; fi # # Check whether --with-netcdff_libs was given. -if test ${with_netcdff_libs+y} -then : +if test "${with_netcdff_libs+set}" = set; then : withval=$with_netcdff_libs; fi # Check whether --with-netcdff_path was given. -if test ${with_netcdff_path+y} -then : +if test "${with_netcdff_path+set}" = set; then : withval=$with_netcdff_path; fi # Check whether --with-netcdff_libdir was given. -if test ${with_netcdff_libdir+y} -then : +if test "${with_netcdff_libdir+set}" = set; then : withval=$with_netcdff_libdir; fi # Check whether --with-netcdff_includedir was given. -if test ${with_netcdff_includedir+y} -then : +if test "${with_netcdff_includedir+set}" = set; then : withval=$with_netcdff_includedir; fi @@ -14444,8 +13651,7 @@ fi # Large Databases Support (LFS) # # Check whether --enable-netcdf_classic was given. -if test ${enable_netcdf_classic+y} -then : +if test "${enable_netcdf_classic+set}" = set; then : enableval=$enable_netcdf_classic; fi @@ -14453,8 +13659,7 @@ fi # NETCDF PAR IO # # Check whether --enable-netcdf_par_io was given. -if test ${enable_netcdf_par_io+y} -then : +if test "${enable_netcdf_par_io+set}" = set; then : enableval=$enable_netcdf_par_io; fi @@ -14462,8 +13667,7 @@ fi # HDF5 support # # Check whether --enable-netcdf_v3 was given. -if test ${enable_netcdf_v3+y} -then : +if test "${enable_netcdf_v3+set}" = set; then : enableval=$enable_netcdf_v3; fi @@ -14471,8 +13675,7 @@ fi # HDF5 data compression # # Check whether --enable-hdf5_compression was given. -if test ${enable_hdf5_compression+y} -then : +if test "${enable_hdf5_compression+set}" = set; then : enableval=$enable_hdf5_compression; fi @@ -14480,8 +13683,7 @@ fi # NETCDF SHODOW FOR OUTPUT FILES # # Check whether --enable-netcdf_output was given. -if test ${enable_netcdf_output+y} -then : +if test "${enable_netcdf_output+set}" = set; then : enableval=$enable_netcdf_output; fi @@ -14517,10 +13719,10 @@ if test -d "$with_netcdf_path" || test -d "$with_netcdf_libdir" ; then # # external netcdf # - if test -d "$with_netcdf_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetCDF in $with_netcdf_libdir" >&5 -printf %s "checking for NetCDF in $with_netcdf_libdir... " >&6; } ; - elif test -d "$with_netcdf_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetCDF in $with_netcdf_path" >&5 -printf %s "checking for NetCDF in $with_netcdf_path... " >&6; } ; + if test -d "$with_netcdf_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetCDF in $with_netcdf_libdir" >&5 +$as_echo_n "checking for NetCDF in $with_netcdf_libdir... " >&6; } ; + elif test -d "$with_netcdf_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetCDF in $with_netcdf_path" >&5 +$as_echo_n "checking for NetCDF in $with_netcdf_path... " >&6; } ; fi # if test -d "$with_netcdf_path" ; then @@ -14565,15 +13767,15 @@ elif test x"$with_netcdf_libs" != "x" ; then # # directly provided lib # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetCDF Library using $with_netcdf_libs" >&5 -printf %s "checking for NetCDF Library using $with_netcdf_libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetCDF Library using $with_netcdf_libs" >&5 +$as_echo_n "checking for NetCDF Library using $with_netcdf_libs... " >&6; } if test -d "$with_netcdf_includedir" ; then try_NETCDF_INCS="$IFLAG$with_netcdf_includedir" ; fi if test -d "$with_netcdff_includedir" ; then try_NETCDFF_INCS="$IFLAG$with_netcdff_includedir" ; fi netcdf="yes"; try_NETCDF_LIBS="$with_netcdf_libs" ; try_NETCDFF_LIBS="$with_netcdff_libs" ; - { 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; } # fi # @@ -14598,24 +13800,23 @@ if test x"$enable_hdf5" = "xno"; then nf_err = nf90_create('netcdf_test',nf90_share,ID) end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : netcdf=yes -else $as_nop +else netcdf=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; # if test "x$netcdf" = "xyes"; 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; } ; NETCDF_INCS="$try_NETCDF_INCS" ; NETCDF_LIBS="$try_NETCDF_LIBS" ; NETCDFF_INCS="$try_NETCDFF_INCS" ; NETCDFF_LIBS="$try_NETCDFF_LIBS" ; 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 # FCFLAGS="$save_fcflags" ; @@ -14626,8 +13827,8 @@ printf "%s\n" "no" >&6; } ; # # internal netcdf # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal NetCDF library" >&5 -printf %s "checking for internal NetCDF library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal NetCDF library" >&5 +$as_echo_n "checking for internal NetCDF library... " >&6; } # internal_netcdf="yes" # @@ -14653,22 +13854,22 @@ printf %s "checking for internal NetCDF library... " >&6; } if test x"$enable_pnecdf" = "xyes"; then if test -e "${NETCDF_HDF5_PATH}/lib/libnetcdf.a" && test -e "${NETCDF_HDF5_PATH}/lib/libnetcdff.a"; then compile_netcdf="no" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; else compile_netcdf="yes" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ; fi else if test -e "${NETCDF_HDF5_PATH}/lib/libnetcdf.a" && test -e "${NETCDF_HDF5_PATH}/lib/libnetcdff.a"; then compile_netcdf="no" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; else compile_netcdf="yes" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ; fi fi # @@ -14703,13 +13904,12 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu end _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : netcdf=yes -else $as_nop +else netcdf=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; # if test "x$netcdf" = "xyes"; then @@ -14717,8 +13917,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ NETCDF_INCS="$try_NETCDF_INCS" ; NETCDFF_LIBS="$try_NETCDFF_LIBS" ; NETCDFF_INCS="$try_NETCDFF_INCS" ; - { 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; } ; # fi # @@ -14726,11 +13926,11 @@ printf "%s\n" "yes" >&6; } ; LIBS="$save_libs" ; # if test "x$netcdf" = "xno"; then - if test -d "$with_netcdf_libdir" || test -d "$with_netcdf_path" || test -d "$with_netcdff_libdir" || test -d "$with_netcdff_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } ; fi + if test -d "$with_netcdf_libdir" || test -d "$with_netcdf_path" || test -d "$with_netcdff_libdir" || test -d "$with_netcdff_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } ; fi # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal NETCDF library" >&5 -printf %s "checking for internal NETCDF library... " >&6; }; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal NETCDF library" >&5 +$as_echo_n "checking for internal NETCDF library... " >&6; }; internal_netcdf="yes" ; # NETCDF_OPT="--enable-netcdf-4"; @@ -14751,8 +13951,8 @@ printf %s "checking for internal NETCDF library... " >&6; }; if test -e "${NETCDF_HDF5_PATH}/lib/libnetcdf.a" && test -e "${NETCDF_HDF5_PATH}/lib/libnetcdff.a" ; then # compile_netcdf="no" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; # elif test "$IO_LIB_VER" = "serial" && test -e "${NETCDF_HDF5_PAR_PATH}/lib/libnetcdf.a" && test -e "${NETCDF_HDF5_PAR_PATH}/lib/libnetcdff.a" && test -e "${NETCDF_HDF5_PAR_PATH}/lib/libhdf5.a"; then # @@ -14764,8 +13964,8 @@ printf "%s\n" "already compiled" >&6; } ; #NETCDFF_LIBS="${NETCDF_HDF5_PAR_PATH}/lib/libnetcdff.a" ; NETCDFF_LIBS="-L${NETCDF_HDF5_PAR_PATH}/lib/ -lnetcdff" ; NETCDFF_INCS="${IFLAG}${NETCDF_HDF5_PAR_PATH}/include" ; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled (using parallel version)" >&5 -printf "%s\n" "already compiled (using parallel version)" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled (using parallel version)" >&5 +$as_echo "already compiled (using parallel version)" >&6; } ; # else # @@ -14774,8 +13974,8 @@ printf "%s\n" "already compiled (using parallel version)" >&6; } ; if test "$IO_LIB_VER" = "serial"; then HDF5_OPT="--disable-parallel" ; fi if test "$IO_LIB_VER" = "parallel"; then HDF5_OPT="--enable-parallel" ; fi # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ; # fi # @@ -14857,37 +14057,32 @@ fi # Check whether --enable-yaml_output was given. -if test ${enable_yaml_output+y} -then : +if test "${enable_yaml_output+set}" = set; then : enableval=$enable_yaml_output; fi # Check whether --with-yaml_libs was given. -if test ${with_yaml_libs+y} -then : +if test "${with_yaml_libs+set}" = set; then : withval=$with_yaml_libs; fi # Check whether --with-yaml_libdir was given. -if test ${with_yaml_libdir+y} -then : +if test "${with_yaml_libdir+set}" = set; then : withval=$with_yaml_libdir; fi # Check whether --with-yaml_libdir was given. -if test ${with_yaml_libdir+y} -then : +if test "${with_yaml_libdir+set}" = set; then : withval=$with_yaml_libdir; fi # Check whether --with-yaml_includedir was given. -if test ${with_yaml_includedir+y} -then : +if test "${with_yaml_includedir+set}" = set; then : withval=$with_yaml_includedir; fi @@ -14895,29 +14090,25 @@ fi # Check whether --with-futile_libs was given. -if test ${with_futile_libs+y} -then : +if test "${with_futile_libs+set}" = set; then : withval=$with_futile_libs; fi # Check whether --with-futile_libdir was given. -if test ${with_futile_libdir+y} -then : +if test "${with_futile_libdir+set}" = set; then : withval=$with_futile_libdir; fi # Check whether --with-futile_libdir was given. -if test ${with_futile_libdir+y} -then : +if test "${with_futile_libdir+set}" = set; then : withval=$with_futile_libdir; fi # Check whether --with-futile_includedir was given. -if test ${with_futile_includedir+y} -then : +if test "${with_futile_includedir+set}" = set; then : withval=$with_futile_includedir; fi @@ -14940,10 +14131,10 @@ if test "x$enable_yaml" = "xyes" ; then # # external YAML # - if test -d "$with_yaml_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAML in $with_yaml_path" >&5 -printf %s "checking for YAML in $with_yaml_path... " >&6; } ; fi - if test -d "$with_yaml_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAML in $with_yaml_libdir" >&5 -printf %s "checking for YAML in $with_yaml_libdir... " >&6; } ; fi + if test -d "$with_yaml_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAML in $with_yaml_path" >&5 +$as_echo_n "checking for YAML in $with_yaml_path... " >&6; } ; fi + if test -d "$with_yaml_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAML in $with_yaml_libdir" >&5 +$as_echo_n "checking for YAML in $with_yaml_libdir... " >&6; } ; fi # if test -d "$with_yaml_path" ; then try_yaml_libdir_src=$with_yaml_path/src @@ -14962,55 +14153,55 @@ printf %s "checking for YAML in $with_yaml_libdir... " >&6; } ; fi compile_yaml="no" YAML_INCS="$IFLAG$try_yaml_incdir_src" YAML_LIBS="$try_yaml_libdir_src/libyaml.a" - { 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; } elif test -r $try_yaml_libdir/libyaml.a && test -e $try_yaml_incdir/yaml_module.mod ; then compile_yaml="no" YAML_INCS="$IFLAG$try_yaml_incdir" YAML_LIBS="$try_yaml_libdir/libyaml.a" - { 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; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 -printf "%s\n" "no. Fallback to internal library." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 +$as_echo "no. Fallback to internal library." >&6; } fi elif test x"$with_yaml_libs" != "x" ; then # # directly provided lib # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAML Library using $with_yaml_libs" >&5 -printf %s "checking for YAML Library using $with_yaml_libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAML Library using $with_yaml_libs" >&5 +$as_echo_n "checking for YAML Library using $with_yaml_libs... " >&6; } compile_yaml="no" if test -d "$with_yaml_includedir" ; then YAML_INCS="$IFLAG$with_yaml_includedir" ; fi YAML_LIBS="$with_yaml_libs" - { 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; } fi if test "$YAML_LIBS" = " "; then # # internal YAML # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal YAML library" >&5 -printf %s "checking for internal YAML library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal YAML library" >&5 +$as_echo_n "checking for internal YAML library... " >&6; } internal_yaml="yes" YAML_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include/" YAML_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libyaml.a" if ! test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libyaml.a" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/yaml_parse.mod" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/yaml.h"; then compile_yaml="yes" if test ! -d lib ; then mkdir lib ; fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } else compile_yaml="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } fi fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for YAML library" >&5 -printf %s "checking for YAML library... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for YAML library" >&5 +$as_echo_n "checking for YAML library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -15034,10 +14225,10 @@ if test "x$enable_futile" = "xyes" ; then # # external FUTILE # - if test -d "$with_futile_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUTILE in $with_futile_path" >&5 -printf %s "checking for FUTILE in $with_futile_path... " >&6; } ; fi - if test -d "$with_futile_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUTILE in $with_futile_libdir" >&5 -printf %s "checking for FUTILE in $with_futile_libdir... " >&6; } ; fi + if test -d "$with_futile_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUTILE in $with_futile_path" >&5 +$as_echo_n "checking for FUTILE in $with_futile_path... " >&6; } ; fi + if test -d "$with_futile_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUTILE in $with_futile_libdir" >&5 +$as_echo_n "checking for FUTILE in $with_futile_libdir... " >&6; } ; fi # if test -d "$with_futile_path" ; then try_futile_libdir_src=$with_futile_path/src @@ -15056,55 +14247,55 @@ printf %s "checking for FUTILE in $with_futile_libdir... " >&6; } ; fi compile_futile="no" FUTILE_INCS="$IFLAG$try_futile_incdir_src" FUTILE_LIBS="$try_futile_libdir_src/libfutile-1.a" - { 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; } elif test -r $try_futile_libdir/libfutile-1.a && test -e $try_futile_incdir/futile_module.mod ; then compile_futile="no" FUTILE_INCS="$IFLAG$try_futile_incdir" FUTILE_LIBS="$try_futile_libdir/libfutile-1.a" - { 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; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 -printf "%s\n" "no. Fallback to internal library." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 +$as_echo "no. Fallback to internal library." >&6; } fi elif test x"$with_futile_libs" != "x" ; then # # directly provided lib # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUTILE Library using $with_futile_libs" >&5 -printf %s "checking for FUTILE Library using $with_futile_libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUTILE Library using $with_futile_libs" >&5 +$as_echo_n "checking for FUTILE Library using $with_futile_libs... " >&6; } compile_futile="no" if test -d "$with_futile_includedir" ; then FUTILE_INCS="$IFLAG$with_futile_includedir" ; fi FUTILE_LIBS="$with_futile_libs" - { 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; } fi if test "$FUTILE_LIBS" = " "; then # # internal FUTILE # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal FUTILE library" >&5 -printf %s "checking for internal FUTILE library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal FUTILE library" >&5 +$as_echo_n "checking for internal FUTILE library... " >&6; } internal_futile="yes" FUTILE_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include/" FUTILE_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libfutile-1.a" if ! test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libfutile-1.a" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/futile.mod" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/futile.h"; then compile_futile="yes" if test ! -d lib ; then mkdir lib ; fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } else compile_futile="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } fi fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUTILE library" >&5 -printf %s "checking for FUTILE library... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUTILE library" >&5 +$as_echo_n "checking for FUTILE library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi # if test $enable_yaml = "yes" && test $enable_futile = "yes" ; then @@ -15130,38 +14321,33 @@ fi # # Check whether --enable-iotk was given. -if test ${enable_iotk+y} -then : +if test "${enable_iotk+set}" = set; then : enableval=$enable_iotk; -else $as_nop +else enable_iotk="yes" fi # Check whether --with-iotk_libs was given. -if test ${with_iotk_libs+y} -then : +if test "${with_iotk_libs+set}" = set; then : withval=$with_iotk_libs; fi # Check whether --with-iotk_path was given. -if test ${with_iotk_path+y} -then : +if test "${with_iotk_path+set}" = set; then : withval=$with_iotk_path; fi # Check whether --with-iotk_libdir was given. -if test ${with_iotk_libdir+y} -then : +if test "${with_iotk_libdir+set}" = set; then : withval=$with_iotk_libdir; fi # Check whether --with-iotk_includedir was given. -if test ${with_iotk_includedir+y} -then : +if test "${with_iotk_includedir+set}" = set; then : withval=$with_iotk_includedir; fi @@ -15182,10 +14368,10 @@ if test "x$enable_iotk" = "xyes" ; then # # external IOTK # - if test -d "$with_iotk_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IOTK in $with_iotk_path" >&5 -printf %s "checking for IOTK in $with_iotk_path... " >&6; } ; fi - if test -d "$with_iotk_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IOTK in $with_iotk_libdir" >&5 -printf %s "checking for IOTK in $with_iotk_libdir... " >&6; } ; fi + if test -d "$with_iotk_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOTK in $with_iotk_path" >&5 +$as_echo_n "checking for IOTK in $with_iotk_path... " >&6; } ; fi + if test -d "$with_iotk_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOTK in $with_iotk_libdir" >&5 +$as_echo_n "checking for IOTK in $with_iotk_libdir... " >&6; } ; fi # if test -d "$with_iotk_path" ; then try_iotk_libdir_src=$with_iotk_path/src @@ -15206,39 +14392,39 @@ printf %s "checking for IOTK in $with_iotk_libdir... " >&6; } ; fi IOTK_INCS="$IFLAG$try_iotk_incdir_src" #IOTK_LIBS="$try_iotk_libdir_src/libiotk.a" IOTK_LIBS="-L$try_iotk_libdir_src/ -liotk" - { 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; } elif test -r $try_iotk_libdir/libiotk.a && test -e $try_iotk_incdir/iotk_module.mod ; then compile_p2y="yes" compile_iotk="no" IOTK_INCS="$IFLAG$try_iotk_incdir" #IOTK_LIBS="$try_iotk_libdir/libiotk.a" IOTK_LIBS="-L$try_iotk_libdir/ -liotk" - { 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; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 -printf "%s\n" "no. Fallback to internal library." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to internal library." >&5 +$as_echo "no. Fallback to internal library." >&6; } fi elif test x"$with_iotk_libs" != "x" ; then # # directly provided lib # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IOTK Library using $with_iotk_libs" >&5 -printf %s "checking for IOTK Library using $with_iotk_libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOTK Library using $with_iotk_libs" >&5 +$as_echo_n "checking for IOTK Library using $with_iotk_libs... " >&6; } compile_p2y="yes" compile_iotk="no" if test -d "$with_iotk_includedir" ; then IOTK_INCS="$IFLAG$with_iotk_includedir" ; fi IOTK_LIBS="$with_iotk_libs" - { 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; } fi if test "$IOTK_LIBS" = " "; then # # internal IOTK # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal IOTK library" >&5 -printf %s "checking for internal IOTK library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal IOTK library" >&5 +$as_echo_n "checking for internal IOTK library... " >&6; } internal_iotk="yes" compile_p2y="yes" IOTK_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include/" @@ -15247,14 +14433,14 @@ printf %s "checking for internal IOTK library... " >&6; } if ! test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libiotk.a" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/iotk_base.mod" || ! test -e "${extlibs_path}/${FCKIND}/${FC}/include/iotk_specials.h"; then compile_iotk="yes" if test ! -d lib ; then mkdir lib ; fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } ac_config_files="$ac_config_files lib/iotk/make_iotk.inc:lib/iotk/make_iotk.inc.in" else compile_iotk="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 -printf "%s\n" "already compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } fi fi # @@ -15270,10 +14456,10 @@ printf "%s\n" "already compiled" >&6; } else PW_VER="no support" PW_CPP="" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IOTK library" >&5 -printf %s "checking for IOTK library... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOTK library" >&5 +$as_echo_n "checking for IOTK library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi # # @@ -15293,38 +14479,33 @@ fi # Check whether --enable-etsf_io was given. -if test ${enable_etsf_io+y} -then : +if test "${enable_etsf_io+set}" = set; then : enableval=$enable_etsf_io; -else $as_nop +else enable_etsf_io="no" fi # Check whether --with-etsf_io_libs was given. -if test ${with_etsf_io_libs+y} -then : +if test "${with_etsf_io_libs+set}" = set; then : withval=$with_etsf_io_libs; fi # Check whether --with-etsf_io_path was given. -if test ${with_etsf_io_path+y} -then : +if test "${with_etsf_io_path+set}" = set; then : withval=$with_etsf_io_path; fi # Check whether --with-etsf_io_libdir was given. -if test ${with_etsf_io_libdir+y} -then : +if test "${with_etsf_io_libdir+set}" = set; then : withval=$with_etsf_io_libdir; fi # Check whether --with-etsf_io_includedir was given. -if test ${with_etsf_io_includedir+y} -then : +if test "${with_etsf_io_includedir+set}" = set; then : withval=$with_etsf_io_includedir; fi @@ -15351,10 +14532,10 @@ if test "x$enable_etsf_io" = "xyes" ; then # # external ETSF_IO # - if test -d "$with_etsf_io_path" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO in $with_etsf_io_path" >&5 -printf %s "checking for ETSF_IO in $with_etsf_io_path... " >&6; } ; fi - if test -d "$with_etsf_io_libdir" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO in $with_etsf_io_libdir" >&5 -printf %s "checking for ETSF_IO in $with_etsf_io_libdir... " >&6; } ; fi + if test -d "$with_etsf_io_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO in $with_etsf_io_path" >&5 +$as_echo_n "checking for ETSF_IO in $with_etsf_io_path... " >&6; } ; fi + if test -d "$with_etsf_io_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO in $with_etsf_io_libdir" >&5 +$as_echo_n "checking for ETSF_IO in $with_etsf_io_libdir... " >&6; } ; fi # if test -d "$with_etsf_io_path" ; then try_etsf_libdir=$with_etsf_io_path/lib @@ -15373,50 +14554,50 @@ printf %s "checking for ETSF_IO in $with_etsf_io_libdir... " >&6; } ; fi ETSF_LIBS="$try_etsf_libdir/libetsf_io.a" ETSF_INCS="$IFLAG$try_etsf_incdir" # - { 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; } 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 elif test x"$with_etsf_io_libs" != "x" ; then # # directly provided lib # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO Library using $with_etsf_io_libs" >&5 -printf %s "checking for ETSF_IO Library using $with_etsf_io_libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO Library using $with_etsf_io_libs" >&5 +$as_echo_n "checking for ETSF_IO Library using $with_etsf_io_libs... " >&6; } internal_etsf="no" compile_e2y="yes" if test -d "$with_etsf_io_includedir" ; then ETSF_INCS="$IFLAG$with_etsf_io_includedir" ; fi ETSF_LIBS="$with_etsf_io_libs" - { 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; } else # # internal ETSF_IO # - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for internal ETSF_IO Library" >&5 -printf %s "checking for internal ETSF_IO Library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal ETSF_IO Library" >&5 +$as_echo_n "checking for internal ETSF_IO Library... " >&6; } internal_etsf="yes" compile_e2y="yes" ETSF_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ETSF_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libetsf_io.a" if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libetsf_io.a"; then compile_etsf="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found already compiled" >&5 -printf "%s\n" "found already compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: found already compiled" >&5 +$as_echo "found already compiled" >&6; } else compile_etsf="yes" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 -printf "%s\n" "to be compiled" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: to be compiled" >&5 +$as_echo "to be compiled" >&6; } fi fi # else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO Library" >&5 -printf %s "checking for ETSF_IO Library... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETSF_IO Library" >&5 +$as_echo_n "checking for ETSF_IO Library... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi # @@ -15432,29 +14613,25 @@ fi # Check whether --with-libxc_libs was given. -if test ${with_libxc_libs+y} -then : +if test "${with_libxc_libs+set}" = set; then : withval=$with_libxc_libs; fi # Check whether --with-libxc_path was given. -if test ${with_libxc_path+y} -then : +if test "${with_libxc_path+set}" = set; then : withval=$with_libxc_path; fi # Check whether --with-libxc_libdir was given. -if test ${with_libxc_libdir+y} -then : +if test "${with_libxc_libdir+set}" = set; then : withval=$with_libxc_libdir; fi # Check whether --with-libxc_includedir was given. -if test ${with_libxc_includedir+y} -then : +if test "${with_libxc_includedir+set}" = set; then : withval=$with_libxc_includedir; fi @@ -15467,8 +14644,8 @@ compile_libxc="no" acx_libxc_save_LIBS="$LIBS" acx_libxc_save_FCFLAGS="$FCFLAGS" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxc" >&5 -printf %s "checking for libxc... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxc" >&5 +$as_echo_n "checking for libxc... " >&6; } testprog=" program main @@ -15488,11 +14665,10 @@ if test ! -z "$LIBXC_LIBS"; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_ok=yes 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 @@ -15522,11 +14698,10 @@ if test x"$acx_libxc_ok" = xno ; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_ok=yes 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 dynamic / user provided linkage did not work, try static one @@ -15536,11 +14711,10 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_ok=yes 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 fi @@ -15618,71 +14792,66 @@ if test x"$acx_libxc_ok" = xyes; then cat > conftest.$ac_ext <<_ACEOF $testprog_11 _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=110, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_12 _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=120, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_20 _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=200, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_203 _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=203, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_21 _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=210, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_4x _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=400, acx_libxc_ok=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 cat > conftest.$ac_ext <<_ACEOF $testprog_5x _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libxc_version=5, acx_libxc_ok=yes 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 -printf "%s\n" "#define LIBXC_VERSION $acx_libxc_version" >>confdefs.h +cat >>confdefs.h <<_ACEOF +#define LIBXC_VERSION $acx_libxc_version +_ACEOF -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Found external LibXC version=$acx_libxc_version (should be 5)" >&5 -printf "%s\n" "Found external LibXC version=$acx_libxc_version (should be 5)" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Found external LibXC version=$acx_libxc_version (should be 5)" >&5 +$as_echo "Found external LibXC version=$acx_libxc_version (should be 5)" >&6; } fi if test x"$acx_libxc_ok" = xyes; then @@ -15690,7 +14859,7 @@ if test x"$acx_libxc_ok" = xyes; then internal_libxc=no # -printf "%s\n" "#define HAVE_LIBXC 1" >>confdefs.h +$as_echo "#define HAVE_LIBXC 1" >>confdefs.h fi @@ -15703,12 +14872,12 @@ if test x"$acx_libxc_ok" = xno; then LIBXC_INCS="$IFLAG${extlibs_path}/${FCKIND}/${FC}/include" if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libxc.a" && test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libxcf90.a" && test -e ${extlibs_path}/${FCKIND}/${FC}/lib/libxcf03.a; then compile_libxc="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external LibXC not found/specified. Found internal already compiled." >&5 -printf "%s\n" "Compatible external LibXC not found/specified. Found internal already compiled." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external LibXC not found/specified. Found internal already compiled." >&5 +$as_echo "Compatible external LibXC not found/specified. Found internal already compiled." >&6; } else compile_libxc="yes" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external LibXC not found/specified. Internal to be compiled." >&5 -printf "%s\n" "Compatible external LibXC not found/specified. Internal to be compiled." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external LibXC not found/specified. Internal to be compiled." >&5 +$as_echo "Compatible external LibXC not found/specified. Internal to be compiled." >&6; } fi fi @@ -15725,48 +14894,42 @@ LIBS="$acx_libxc_save_LIBS" # Check whether --with-cuda_libs was given. -if test ${with_cuda_libs+y} -then : +if test "${with_cuda_libs+set}" = set; then : withval=$with_cuda_libs; fi # Check whether --with-cuda_incs was given. -if test ${with_cuda_incs+y} -then : +if test "${with_cuda_incs+set}" = set; then : withval=$with_cuda_incs; fi # # Check whether --with-cuda_libdir was given. -if test ${with_cuda_libdir+y} -then : +if test "${with_cuda_libdir+set}" = set; then : withval=$with_cuda_libdir; fi # Check whether --with-cuda_includedir was given. -if test ${with_cuda_includedir+y} -then : +if test "${with_cuda_includedir+set}" = set; then : withval=$with_cuda_includedir; fi # # Check whether --with-cuda_path was given. -if test ${with_cuda_path+y} -then : +if test "${with_cuda_path+set}" = set; then : withval=$with_cuda_path; fi # # Check whether --enable-cuda-libs-check was given. -if test ${enable_cuda_libs_check+y} -then : +if test "${enable_cuda_libs_check+set}" = set; then : enableval=$enable_cuda_libs_check; -else $as_nop +else enable_cuda_libs_check=yes fi @@ -15828,69 +14991,65 @@ FCFLAGS="$LIBCUDA_INCS $acx_libcuda_save_FCFLAGS" # set from environment variable, if not blank if test ! -z "$CUDA_LIBS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcuda from environment" >&5 -printf %s "checking for libcuda from environment... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcuda from environment" >&5 +$as_echo_n "checking for libcuda from environment... " >&6; } LIBCUDA_LIBS="$CUDA_LIBS" LIBS="$LIBCUDA_LIBS" cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libcuda_ok=yes 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 # set from --with-cuda-libs flag if test x"$acx_libcuda_ok" = xno && test ! -z "$with_cuda_libs" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcuda from --with-cuda-libs" >&5 -printf %s "checking for libcuda from --with-cuda-libs... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcuda from --with-cuda-libs" >&5 +$as_echo_n "checking for libcuda from --with-cuda-libs... " >&6; } LIBCUDA_LIBS="$with_cuda_libs" LIBS="$LIBCUDA_LIBS" cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libcuda_ok=yes 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 # dynamic linkage, separate Fortran interface if test x"$acx_libcuda_ok" = xno; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcuda from specified libcuda path, dynamic" >&5 -printf %s "checking for libcuda from specified libcuda path, dynamic... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcuda from specified libcuda path, dynamic" >&5 +$as_echo_n "checking for libcuda from specified libcuda path, dynamic... " >&6; } LIBCUDA_LIBS="-L$libcuda_libdir -lcufft -lcusolver -lcublas -lcudart -lcuda" LIBS="$LIBCUDA_LIBS" cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libcuda_ok=yes 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 # static linkage, separate Fortran interface if test x"$acx_libcuda_ok" = xno; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking static" >&5 -printf %s "checking static... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking static" >&5 +$as_echo_n "checking static... " >&6; } LIBCUDA_LIBS="$libcuda_libdir/libcuda.a" LIBS="$LIBCUDA_LIBS" cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_libcuda_ok=yes 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 @@ -15900,13 +15059,13 @@ if test x"$acx_libcuda_ok" = xyes; then internal_libcuda=no # -printf "%s\n" "#define HAVE_LIBCUDA 1" >>confdefs.h +$as_echo "#define HAVE_LIBCUDA 1" >>confdefs.h - { 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; } else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found." >&5 -printf "%s\n" "not found." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5 +$as_echo "not found." >&6; } use_libcuda=no compile_libcuda=no internal_libcuda=no @@ -15963,10 +15122,9 @@ LIBS="$acx_libcuda_save_LIBS" # # Check whether --with-cuda-cc was given. -if test ${with_cuda_cc+y} -then : +if test "${with_cuda_cc+set}" = set; then : withval=$with_cuda_cc; -else $as_nop +else with_cuda_cc=70 fi @@ -16045,88 +15203,77 @@ fi # Check whether --with-cuda-runtime was given. -if test ${with_cuda_runtime+y} -then : +if test "${with_cuda_runtime+set}" = set; then : withval=$with_cuda_runtime; -else $as_nop +else with_cuda_runtime=10.1 fi # # Check whether --with-cuda-int-libs was given. -if test ${with_cuda_int_libs+y} -then : +if test "${with_cuda_int_libs+set}" = set; then : withval=$with_cuda_int_libs; -else $as_nop +else with_cuda_int_libs=cufft,cublas,cusolver fi # # Check whether --enable-nvtx was given. -if test ${enable_nvtx+y} -then : +if test "${enable_nvtx+set}" = set; then : enableval=$enable_nvtx; -else $as_nop +else enable_nvtx="no" fi # # Check whether --with-gpu_libs was given. -if test ${with_gpu_libs+y} -then : +if test "${with_gpu_libs+set}" = set; then : withval=$with_gpu_libs; fi # Check whether --with-gpu_incs was given. -if test ${with_gpu_incs+y} -then : +if test "${with_gpu_incs+set}" = set; then : withval=$with_gpu_incs; fi # # Check whether --with-rocm_libs was given. -if test ${with_rocm_libs+y} -then : +if test "${with_rocm_libs+set}" = set; then : withval=$with_rocm_libs; fi # Check whether --with-rocm_incs was given. -if test ${with_rocm_incs+y} -then : +if test "${with_rocm_incs+set}" = set; then : withval=$with_rocm_incs; fi # Check whether --with-rocm_libdir was given. -if test ${with_rocm_libdir+y} -then : +if test "${with_rocm_libdir+set}" = set; then : withval=$with_rocm_libdir; fi # Check whether --with-rocm_includedir was given. -if test ${with_rocm_includedir+y} -then : +if test "${with_rocm_includedir+set}" = set; then : withval=$with_rocm_includedir; fi # Check whether --with-rocm_path was given. -if test ${with_rocm_path+y} -then : +if test "${with_rocm_path+set}" = set; then : withval=$with_rocm_path; fi # # Check whether --with-mklgpu_libs was given. -if test ${with_mklgpu_libs+y} -then : +if test "${with_mklgpu_libs+set}" = set; then : withval=$with_mklgpu_libs; fi @@ -16221,12 +15368,11 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu 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 flag to compile .f90 files" >&5 -printf %s "checking for Fortran flag to compile .f90 files... " >&6; } -if test ${ac_cv_fc_srcext_f90+y} -then : - printf %s "(cached) " >&6 -else $as_nop +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5 +$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } +if ${ac_cv_fc_srcext_f90+:} false; then : + $as_echo_n "(cached) " >&6 +else ac_ext=f90 ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= @@ -16242,18 +15388,17 @@ for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do end _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_fc_srcext_f90=$ac_flag; break 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 done rm -f conftest.$ac_objext conftest.f90 ac_fcflags_srcext=$ac_fcflags_srcext_save fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 -printf "%s\n" "$ac_cv_fc_srcext_f90" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 +$as_echo "$ac_cv_fc_srcext_f90" >&6; } if test "x$ac_cv_fc_srcext_f90" = xunknown; then as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 else @@ -16273,35 +15418,32 @@ 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_CACHEVAR=`printf "%s\n" "ax_cv_check_fcflags__$GPU_FLAGS" | $as_tr_sh` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler accepts $GPU_FLAGS" >&5 -printf %s "checking whether Fortran compiler accepts $GPU_FLAGS... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else $as_nop + as_CACHEVAR=`$as_echo "ax_cv_check_fcflags__$GPU_FLAGS" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler accepts $GPU_FLAGS" >&5 +$as_echo_n "checking whether Fortran compiler accepts $GPU_FLAGS... " >&6; } +if eval \${$as_CACHEVAR+:} false; then : + $as_echo_n "(cached) " >&6 +else ax_check_save_flags=$FCFLAGS FCFLAGS="$FCFLAGS $GPU_FLAGS" cat > conftest.$ac_ext <<_ACEOF MODULE test; use cudafor; END MODULE _ACEOF -if ac_fn_fc_try_compile "$LINENO" -then : +if ac_fn_fc_try_compile "$LINENO"; then : eval "$as_CACHEVAR=yes" -else $as_nop +else eval "$as_CACHEVAR=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 FCFLAGS=$ax_check_save_flags fi eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : have_cudafor=yes -else $as_nop +else have_cudafor=no fi @@ -16403,39 +15545,34 @@ fi # Check whether --with-devxlib_libs was given. -if test ${with_devxlib_libs+y} -then : +if test "${with_devxlib_libs+set}" = set; then : withval=$with_devxlib_libs; fi # Check whether --with-devxlib_path was given. -if test ${with_devxlib_path+y} -then : +if test "${with_devxlib_path+set}" = set; then : withval=$with_devxlib_path; fi # Check whether --with-devxlib_libdir was given. -if test ${with_devxlib_libdir+y} -then : +if test "${with_devxlib_libdir+set}" = set; then : withval=$with_devxlib_libdir; fi # Check whether --with-devxlib_includedir was given. -if test ${with_devxlib_includedir+y} -then : +if test "${with_devxlib_includedir+set}" = set; then : withval=$with_devxlib_includedir; fi # Check whether --with-devxlib-branch was given. -if test ${with_devxlib_branch+y} -then : +if test "${with_devxlib_branch+set}" = set; then : withval=$with_devxlib_branch; -else $as_nop +else with_devxlib_branch=none fi @@ -16460,8 +15597,8 @@ acx_devxlib_save_LIBS="$LIBS" acx_devxlib_save_FCFLAGS="$FCFLAGS" #This is fake, it is always going to fail -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for devxlib" >&5 -printf %s "checking for devxlib... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for devxlib" >&5 +$as_echo_n "checking for devxlib... " >&6; } testprog=" program main @@ -16480,11 +15617,10 @@ if test ! -z "$DEVXLIB_LIBS"; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_devxlib_ok=yes 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 @@ -16495,11 +15631,10 @@ if test x"$acx_devxlib_ok" = xno && test ! -z "$with_devxlib_libs" ; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_devxlib_ok=yes 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 @@ -16510,11 +15645,10 @@ if test x"$acx_devxlib_ok" = xno; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_devxlib_ok=yes 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 @@ -16525,11 +15659,10 @@ if test x"$acx_devxlib_ok" = xno; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_devxlib_ok=yes 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 @@ -16540,11 +15673,10 @@ if test x"$acx_devxlib_ok" = xno; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_devxlib_ok=yes 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 @@ -16555,11 +15687,10 @@ if test x"$acx_devxlib_ok" = xno; then cat > conftest.$ac_ext <<_ACEOF $testprog _ACEOF -if ac_fn_fc_try_link "$LINENO" -then : +if ac_fn_fc_try_link "$LINENO"; then : acx_devxlib_ok=yes 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 @@ -16569,7 +15700,7 @@ if test x"$acx_devxlib_ok" = xyes; then internal_devxlib=no # -printf "%s\n" "#define HAVE_DEVXLIB 1" >>confdefs.h +$as_echo "#define HAVE_DEVXLIB 1" >>confdefs.h fi @@ -16580,8 +15711,8 @@ if test x"$acx_devxlib_ok" = xno; then DEVXLIB_INCS="$IFLAG${extlibs_path}/${FCKIND}/${FC}/${GPU_SUPPORT}/include" if test -e "${extlibs_path}/${FCKIND}/${FC}/${GPU_SUPPORT}/lib/libdevXlib.a"; then compile_devxlib="no" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external DevXlib not found/specified. Found internal already compiled." >&5 -printf "%s\n" "Compatible external DevXlib not found/specified. Found internal already compiled." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external DevXlib not found/specified. Found internal already compiled." >&5 +$as_echo "Compatible external DevXlib not found/specified. Found internal already compiled." >&6; } else if test x"$with_devxlib_branch" = "xnone"; then DEVXLIB_info="(devxlib tarball)" @@ -16589,8 +15720,8 @@ printf "%s\n" "Compatible external DevXlib not found/specified. Found internal a DEVXLIB_info="(devxlib $with_devxlib_branch branch)" fi compile_devxlib="yes" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Compatible external DevXlib not found/specified. Internal to be compiled." >&5 -printf "%s\n" "Compatible external DevXlib not found/specified. Internal to be compiled." >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external DevXlib not found/specified. Internal to be compiled." >&5 +$as_echo "Compatible external DevXlib not found/specified. Internal to be compiled." >&6; } fi fi FCFLAGS="$acx_devxlib_save_FCFLAGS" @@ -16606,6 +15737,219 @@ LIBS="$acx_devxlib_save_LIBS" +# ============================================================================ +# MAGMA + +# +# Check whether --enable-magma_linalg was given. +if test "${enable_magma_linalg+set}" = set; then : + enableval=$enable_magma_linalg; +fi + +# + +# Check whether --with-magma_libs was given. +if test "${with_magma_libs+set}" = set; then : + withval=$with_magma_libs; +fi + + +# Check whether --with-magma_incs was given. +if test "${with_magma_incs+set}" = set; then : + withval=$with_magma_incs; +fi + + +# Check whether --with-magma_path was given. +if test "${with_magma_path+set}" = set; then : + withval=$with_magma_path; +fi + + +# Check whether --with-magma_libdir was given. +if test "${with_magma_libdir+set}" = set; then : + withval=$with_magma_libdir; +fi + + +# Check whether --with-magma_includedir was given. +if test "${with_magma_includedir+set}" = set; then : + withval=$with_magma_includedir; +fi + + +# +def_magma="" +magma="no" +enable_magma="no" +internal_magma="no" +compile_magma="no" +compile_magma_fmodules="no" +# +if test x"$enable_magma_linalg" = "xyes"; then + enable_magma="yes"; +fi +# +# MAGMA global options +# +if test x"$with_magma_libs" = "xyes" ; then + enable_magma="yes" ; + compile_magma_fmodules="yes" ; + with_magma_libs=""; +elif test x"$with_magma_libs" = "xno" ; then + enable_magma="no" ; + compile_magma_fmodules="no" ; + with_magma_libs=""; +fi +# +if test x"$with_magma_libdir" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_path" != "x" ; then enable_magma="yes" ; fi +if test x"$with_magma_libs" != "x" ; then enable_magma="yes" ; fi +# +# Set MAGMA LIBS and FLAGS from INPUT +# +if test -d "$with_magma_path" || test -d "$with_magma_libdir" || test x"$with_magma_libs" != "x" ; then + # + # external magma + # + if test x"$with_magma_libs" != "x" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Magma using $with_magma_libs" >&5 +$as_echo_n "checking for Magma using $with_magma_libs... " >&6; } ; + elif test -d "$with_magma_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_libdir" >&5 +$as_echo_n "checking for Magma in $with_magma_libdir... " >&6; } ; + elif test -d "$with_magma_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_path" >&5 +$as_echo_n "checking for Magma in $with_magma_path... " >&6; } ; + fi + # + if test -d "$with_magma_path" ; then + try_magma_libdir="$with_magma_path/lib" ; + try_magma_incdir="$with_magma_path/include" ; + fi + # + if test -d "$with_magma_libdir" ; then try_magma_libdir="$with_magma_libdir" ; fi + if test -d "$with_magma_includedir" ; then try_magma_incdir="$with_magma_includedir" ; fi + # + try_MAGMA_INCS="$IFLAG$try_magma_incdir" ; + try_MAGMA_LIBS="-L$try_magma_libdir -lmagma" ; + # + if test x"$with_magma_libs" != "x" ; then try_MAGMA_LIBS="$with_magma_libs" ; fi + if test x"$with_magma_incs" != "x" ; then try_MAGMA_INCS="$with_magma_incs" ; fi + # + if test -z "$try_MAGMA_LIBS" ; then as_fn_error $? "No libs specified" "$LINENO" 5 ; fi + if test -z "$try_MAGMA_INCS" ; then as_fn_error $? "No include-dir specified" "$LINENO" 5 ; fi + # + 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 + + # + save_fcflags="$FCFLAGS" ; + save_libs="$LIBS" ; + # + FCFLAGS="$try_MAGMA_INCS $save_fcflags"; + LIBS="$try_MAGMA_LIBS $save_libs"; + # + cat > conftest.$ac_ext <<_ACEOF + program main + +use magma +implicit none +integer :: lda +!magma_devptr_t :: dA + end +_ACEOF +if ac_fn_fc_try_compile "$LINENO"; then : + magma=yes +else + magma=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; + # + if test "x$magma" = "xyes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } ; + MAGMA_INCS="$try_MAGMA_INCS" ; + MAGMA_LIBS="$try_MAGMA_LIBS" ; + compile_magma="no"; + internal_magma="no"; + def_magma="-D_MAGMA" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } ; + # + fi + # + FCFLAGS="$save_fcflags" ; + LIBS="$save_libs" ; + # +fi +# +# TO BE FIXED: needs internal compilation support and paths have to be corrected with GPU_SUPPORT folder +# +if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then + # + # internal magma + # + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for internal Magma library" >&5 +$as_echo_n "checking for internal Magma library... " >&6; } + # + internal_magma="yes" + # + #if test "x$lapack_shared" = "x1" ; then + # MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; + # #MAGMA_LIBS="" ; + #else + MAGMA_LIBS="${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; + #fi + MAGMA_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ; + # + magma=yes + def_magma="-D_MAGMA" + if test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.a" ; then + compile_magma="no" ; + compile_magma_fmodules="no" ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; + elif test -e "${extlibs_path}/${FCKIND}/${FC}/lib/libmagma.so" ; then + compile_magma="no" ; + compile_magma_fmodules="no" ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: already compiled" >&5 +$as_echo "already compiled" >&6; } ; + else + compile_magma="yes" ; + compile_magma_fmodules="no" ; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external Magma not found/specified. To be compiled." >&5 +$as_echo "Compatible external Magma not found/specified. To be compiled." >&6; } ; + fi + # +fi +# +# Check if fortran modules are available +# +if test -e "$MAGMA_INCS/mod_magma2_common.F" ; then compile_magma_fmodules="no" ; fi +# +# switch off internal magma compilation +# +deactivate_internal=no +if test "x$compile_magma" = "xyes" && test "x$internal_magma" = "xyes" && test "x$deactivate_internal" = "xyes" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Internal Magma compilation not available yet. Deactivating it." >&5 +$as_echo "Internal Magma compilation not available yet. Deactivating it." >&6; } ; + compile_magma="no" + def_magma="" + enable_magma="no" + MAGMA_INCS="" ; + MAGMA_LIBS="" ; +fi +# + + + + + + + +# + # ============================================================================ # Prepare the REPORT file variables @@ -16743,6 +16087,14 @@ if test "$internal_libxc" = "yes" ; then if test "$compile_libxc" = "no" ; then LIBXC_check="I"; fi fi # +MAGMA_check="-" +if test "$internal_magma" = "yes" ; then + if test "$compile_magma" = "yes" ; then MAGMA_check="C"; fi + if test "$compile_magma" = "no" ; then MAGMA_check="I"; fi +elif test "$enable_magma" = "yes" ; then + MAGMA_check="E" +fi +# DEVXLIB_check="E" if test "$internal_devxlib" = "yes" ; then if test "$compile_devxlib" = "yes"; then DEVXLIB_check="C"; fi @@ -16835,6 +16187,7 @@ fi + # # STRIPE [LIB] from paths # @@ -17090,6 +16443,29 @@ fi SCALAPACK_INCS_R=$STRIPE +# + +TMP1=`echo $MAGMA_LIBS | sed 's/\//+/g'` +TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` +TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` +STRIPE=`echo $TMP3 | sed 's/+/\//g'` +if [ -z "${1// }" ]; then + STRIPE="$STRIPE ("LIB")" +fi + +MAGMA_LIBS_R=$STRIPE + +TMP1=`echo $MAGMA_INCS | sed 's/\//+/g'` +TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` +TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` +STRIPE=`echo $TMP3 | sed 's/+/\//g'` +if [ -z "${1// }" ]; then + STRIPE="$STRIPE ("INC")" +fi + +MAGMA_INCS_R=$STRIPE + + # TMP1=`echo $BLACS_LIBS | sed 's/\//+/g'` @@ -17159,6 +16535,29 @@ fi SLEPC_INCS_R=$STRIPE +# + +TMP1=`echo $MAGMA_LIBS | sed 's/\//+/g'` +TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` +TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` +STRIPE=`echo $TMP3 | sed 's/+/\//g'` +if [ -z "${1// }" ]; then + STRIPE="$STRIPE ("LIB")" +fi + +MAGMA_LIBS_R=$STRIPE + +TMP1=`echo $MAGMA_INCS | sed 's/\//+/g'` +TMP2=`echo $extlibs_path/${FCKIND}/${FC} | sed 's/\//+/g'` +TMP3=`echo $TMP1 | sed "s/$TMP2/\(LIB\)/g"` +STRIPE=`echo $TMP3 | sed 's/+/\//g'` +if [ -z "${1// }" ]; then + STRIPE="$STRIPE ("INC")" +fi + +MAGMA_INCS_R=$STRIPE + + # TMP1=`echo $LIBXC_LIBS | sed 's/\//+/g'` @@ -17312,8 +16711,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) ;; #( @@ -17343,15 +16742,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 @@ -17365,8 +16764,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 @@ -17383,7 +16782,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" @@ -17399,8 +16798,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 @@ -17423,16 +16822,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 ;; #( @@ -17442,46 +16839,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 || @@ -17490,6 +16887,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 #(( @@ -17498,12 +16902,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 @@ -17515,10 +16915,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] @@ -17531,14 +16951,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. @@ -17565,20 +16984,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 @@ -17590,13 +17007,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` @@ -17627,7 +17043,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 @@ -17649,10 +17065,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*) @@ -17666,12 +17078,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 @@ -17713,7 +17119,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" @@ -17722,7 +17128,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 @@ -17785,7 +17191,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # values after options handling. ac_log=" This file was extended by Yambo $as_me 5.3.0 r.23900 h.e51825f30d, 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 @@ -17843,16 +17249,14 @@ $config_headers Report bugs to ." _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="\\ Yambo config.status 5.3.0 r.23900 h.e51825f30d -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." @@ -17889,15 +17293,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'" @@ -17905,7 +17309,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;; @@ -17914,7 +17318,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=: ;; @@ -17942,7 +17346,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 "\$@" @@ -17956,7 +17360,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 @@ -17996,8 +17400,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 @@ -18333,7 +17737,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 @@ -18341,17 +17745,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 @@ -18368,7 +17772,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 @@ -18392,9 +17796,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/ ;; @@ -18447,8 +17851,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=' @@ -18490,9 +17894,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" @@ -18508,20 +17912,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 @@ -18562,8 +17966,8 @@ 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 # @@ -18705,4 +18109,3 @@ cat config/report if test "x$enable_ydb" = "xyes"; then cat config/msg_ydb fi - diff --git a/lib/archive/package.list b/lib/archive/package.list index 11e4b91392..0e3f66ebf7 100644 --- a/lib/archive/package.list +++ b/lib/archive/package.list @@ -1,7 +1,7 @@ # # Libs list # -EXT_LIBS= yaml futile iotk hdf5 netcdf netcdff etsf_io libxc lapack blacs scalapack petsc slepc fftw fftqe devxlib +EXT_LIBS= yaml futile iotk hdf5 netcdf netcdff etsf_io libxc lapack blacs scalapack magma petsc slepc fftw fftqe devxlib # # storing options # From 7b4a9cad62f8c0565fa2d00fcb5e1647458580d6 Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Fri, 28 Feb 2025 18:08:13 +0100 Subject: [PATCH 26/36] compilation fixed --- config/mk/local/makefile | 2 +- .../{mod_magma2.F => mod_magma.F} | 74 +++++++-------- ...magma2_cfortran.F => mod_magma_cfortran.F} | 50 +++++------ ...mod_magma2_common.F => mod_magma_common.F} | 90 +++++++++---------- ...magma2_dfortran.F => mod_magma_dfortran.F} | 50 +++++------ ...magma2_sfortran.F => mod_magma_sfortran.F} | 50 +++++------ ...magma2_zfortran.F => mod_magma_zfortran.F} | 48 +++++----- src/modules/mod_linear_algebra.F | 20 +++-- 8 files changed, 193 insertions(+), 191 deletions(-) rename lib/magma_fmodules/{mod_magma2.F => mod_magma.F} (79%) rename lib/magma_fmodules/{mod_magma2_cfortran.F => mod_magma_cfortran.F} (85%) rename lib/magma_fmodules/{mod_magma2_common.F => mod_magma_common.F} (85%) rename lib/magma_fmodules/{mod_magma2_dfortran.F => mod_magma_dfortran.F} (85%) rename lib/magma_fmodules/{mod_magma2_sfortran.F => mod_magma_sfortran.F} (85%) rename lib/magma_fmodules/{mod_magma2_zfortran.F => mod_magma_zfortran.F} (86%) diff --git a/config/mk/local/makefile b/config/mk/local/makefile index e01dc1456f..99d642fb8e 100644 --- a/config/mk/local/makefile +++ b/config/mk/local/makefile @@ -24,7 +24,7 @@ include $(compdir)/config/setup # idriver=$(IFLAG)$(includedir)/driver $(IFLAG)$(includedir)/version lf90include=$(IFLAG)$(includedir) $(IFLAG)$(includedir)/headers/common $(IFLAG)$(includedir)/headers/parser $(idriver) -lf90libinclude=$(iiotk) $(inetcdff) $(inetcdf) $(ipetsc) $(islepc) $(ihdf5) $(ilibxc) $(idevxlib) $(icudalib) $(ifft) $(ifutile) $(iyaml) $(idriver) +lf90libinclude=$(iiotk) $(inetcdff) $(inetcdf) $(ipetsc) $(islepc) $(imagma) $(ihdf5) $(ilibxc) $(idevxlib) $(icudalib) $(ifft) $(ifutile) $(iyaml) $(idriver) mfiles=find . -maxdepth 1 -name '*.mod' # # OBJECTS diff --git a/lib/magma_fmodules/mod_magma2.F b/lib/magma_fmodules/mod_magma.F similarity index 79% rename from lib/magma_fmodules/mod_magma2.F rename to lib/magma_fmodules/mod_magma.F index bcf771ab29..9b2f1d9b55 100644 --- a/lib/magma_fmodules/mod_magma2.F +++ b/lib/magma_fmodules/mod_magma.F @@ -6,15 +6,15 @@ ! @date February 2023 ! -module magma2 +module magma use iso_c_binding -use magma2_common -use magma2_sfortran -use magma2_dfortran -use magma2_cfortran -use magma2_zfortran +use magma_common +use magma_sfortran +use magma_dfortran +use magma_cfortran +use magma_zfortran implicit none @@ -59,37 +59,37 @@ module magma2 !! ------------------------------------------------------------------------- !! initialize - subroutine magma_init() & + subroutine magmaf_init() & bind(C, name="magma_init") use iso_c_binding end subroutine - subroutine magma_finalize() & + subroutine magmaf_finalize() & bind(C, name="magma_finalize") use iso_c_binding end subroutine !! ------------------------------------------------------------------------- !! version - subroutine magma_version( major, minor, micro ) & + subroutine magmaf_version( major, minor, micro ) & bind(C, name="magma_version") use iso_c_binding integer(c_int), target :: major, minor, micro end subroutine - subroutine magma_print_environment() & + subroutine magmaf_print_environment() & bind(C, name="magma_print_environment") use iso_c_binding end subroutine !! ------------------------------------------------------------------------- !! timing - real(c_double) function magma_wtime() & + real(c_double) function magmaf_wtime() & bind(C, name="magma_wtime") use iso_c_binding end function - real(c_double) function magma_sync_wtime( queue ) & + real(c_double) function magmaf_sync_wtime( queue ) & bind(C, name="magma_wtime") use iso_c_binding type(c_ptr), value :: queue @@ -97,29 +97,29 @@ real(c_double) function magma_sync_wtime( queue ) & !! ------------------------------------------------------------------------- !! device support - integer(c_int) function magma_num_gpus() & + integer(c_int) function magmaf_num_gpus() & bind(C, name="magma_num_gpus") use iso_c_binding end function - integer(c_int) function magma_get_device_arch() & + integer(c_int) function magmaf_get_device_arch() & bind(C, name="magma_getdevice_arch") use iso_c_binding end function - subroutine magma_get_device( dev ) & + subroutine magmaf_get_device( dev ) & bind(C, name="magma_getdevice") use iso_c_binding integer(c_int), target :: dev end subroutine - subroutine magma_set_device( dev ) & + subroutine magmaf_set_device( dev ) & bind(C, name="magma_setdevice") use iso_c_binding integer(c_int), value :: dev end subroutine - integer(c_size_t) function magma_mem_size( queue ) & + integer(c_size_t) function magmaf_mem_size( queue ) & bind(C, name="magma_mem_size") use iso_c_binding type(c_ptr), value :: queue @@ -127,7 +127,7 @@ integer(c_size_t) function magma_mem_size( queue ) & !! ------------------------------------------------------------------------- !! queue support - subroutine magma_queue_create_internal( dev, queue_ptr, func, file, line ) & + subroutine magmaf_queue_create_internal( dev, queue_ptr, func, file, line ) & bind(C, name="magma_queue_create_internal") use iso_c_binding integer(c_int), value :: dev @@ -136,7 +136,7 @@ subroutine magma_queue_create_internal( dev, queue_ptr, func, file, line ) & integer(c_int), value :: line end subroutine - subroutine magma_queue_destroy_internal( queue, func, file, line ) & + subroutine magmaf_queue_destroy_internal( queue, func, file, line ) & bind(C, name="magma_queue_destroy_internal") use iso_c_binding type(c_ptr), value :: queue !! queue_t @@ -144,7 +144,7 @@ subroutine magma_queue_destroy_internal( queue, func, file, line ) & integer(c_int), value :: line end subroutine - subroutine magma_queue_sync_internal( queue, func, file, line ) & + subroutine magmaf_queue_sync_internal( queue, func, file, line ) & bind(C, name="magma_queue_sync_internal") use iso_c_binding type(c_ptr), value :: queue !! queue_t @@ -152,7 +152,7 @@ subroutine magma_queue_sync_internal( queue, func, file, line ) & integer(c_int), value :: line end subroutine - integer(c_int) function magma_queue_get_device( queue ) & + integer(c_int) function magmaf_queue_get_device( queue ) & bind(C, name="magma_queue_get_device") use iso_c_binding type(c_ptr), value :: queue !! queue_t @@ -161,35 +161,35 @@ integer(c_int) function magma_queue_get_device( queue ) & !! ------------------------------------------------------------------------- !! offsets pointers -- 1D vectors with inc !! see offset.c - type(c_ptr) function magma_soffset_1d( ptr, inc, i ) & + type(c_ptr) function magmaf_soffset_1d( ptr, inc, i ) & bind(C, name="magma_soffset_1d") use iso_c_binding type(c_ptr), value :: ptr integer(c_int), value :: inc, i end function - type(c_ptr) function magma_doffset_1d( ptr, inc, i ) & + type(c_ptr) function magmaf_doffset_1d( ptr, inc, i ) & bind(C, name="magma_doffset_1d") use iso_c_binding type(c_ptr), value :: ptr integer(c_int), value :: inc, i end function - type(c_ptr) function magma_coffset_1d( ptr, inc, i ) & + type(c_ptr) function magmaf_coffset_1d( ptr, inc, i ) & bind(C, name="magma_coffset_1d") use iso_c_binding type(c_ptr), value :: ptr integer(c_int), value :: inc, i end function - type(c_ptr) function magma_zoffset_1d( ptr, inc, i ) & + type(c_ptr) function magmaf_zoffset_1d( ptr, inc, i ) & bind(C, name="magma_zoffset_1d") use iso_c_binding type(c_ptr), value :: ptr integer(c_int), value :: inc, i end function - type(c_ptr) function magma_ioffset_1d( ptr, inc, i ) & + type(c_ptr) function magmaf_ioffset_1d( ptr, inc, i ) & bind(C, name="magma_ioffset_1d") use iso_c_binding type(c_ptr), value :: ptr @@ -199,35 +199,35 @@ type(c_ptr) function magma_ioffset_1d( ptr, inc, i ) & !! ------------------------------------------------------------------------- !! offsets pointers -- 2D matrices with lda !! see offset.c - type(c_ptr) function magma_soffset_2d( ptr, lda, i, j ) & + type(c_ptr) function magmaf_soffset_2d( ptr, lda, i, j ) & bind(C, name="magma_soffset_2d") use iso_c_binding type(c_ptr), value:: ptr integer(c_int), value :: lda, i, j end function - type(c_ptr) function magma_doffset_2d( ptr, lda, i, j ) & + type(c_ptr) function magmaf_doffset_2d( ptr, lda, i, j ) & bind(C, name="magma_doffset_2d") use iso_c_binding type(c_ptr), value:: ptr integer(c_int), value :: lda, i, j end function - type(c_ptr) function magma_coffset_2d( ptr, lda, i, j ) & + type(c_ptr) function magmaf_coffset_2d( ptr, lda, i, j ) & bind(C, name="magma_coffset_2d") use iso_c_binding type(c_ptr), value:: ptr integer(c_int), value :: lda, i, j end function - type(c_ptr) function magma_zoffset_2d( ptr, lda, i, j ) & + type(c_ptr) function magmaf_zoffset_2d( ptr, lda, i, j ) & bind(C, name="magma_zoffset_2d") use iso_c_binding type(c_ptr), value:: ptr integer(c_int), value :: lda, i, j end function - type(c_ptr) function magma_ioffset_2d( ptr, lda, i, j ) & + type(c_ptr) function magmaf_ioffset_2d( ptr, lda, i, j ) & bind(C, name="magma_ioffset_2d") use iso_c_binding type(c_ptr), value:: ptr @@ -242,34 +242,34 @@ type(c_ptr) function magma_ioffset_2d( ptr, lda, i, j ) & !! ------------------------------------------------------------------------- !! queue support - subroutine magma_queue_create( dev, queue_ptr ) + subroutine magmaf_queue_create( dev, queue_ptr ) use iso_c_binding integer(c_int), value :: dev type(c_ptr), target :: queue_ptr !! queue_t* - call magma_queue_create_internal( & + call magmaf_queue_create_internal( & dev, queue_ptr, & "magma_queue_create" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_queue_destroy( queue ) + subroutine magmaf_queue_destroy( queue ) use iso_c_binding type(c_ptr), value :: queue !! queue_t - call magma_queue_destroy_internal( & + call magmaf_queue_destroy_internal( & queue, & "magma_queue_destroy" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_queue_sync( queue ) + subroutine magmaf_queue_sync( queue ) use iso_c_binding type(c_ptr), value :: queue !! queue_t - call magma_queue_sync_internal( & + call magmaf_queue_sync_internal( & queue, & "magma_queue_sync" // c_null_char, & __FILE__ // c_null_char, & diff --git a/lib/magma_fmodules/mod_magma2_cfortran.F b/lib/magma_fmodules/mod_magma_cfortran.F similarity index 85% rename from lib/magma_fmodules/mod_magma2_cfortran.F rename to lib/magma_fmodules/mod_magma_cfortran.F index 8a25568acf..dbf26c0f61 100644 --- a/lib/magma_fmodules/mod_magma2_cfortran.F +++ b/lib/magma_fmodules/mod_magma_cfortran.F @@ -1,8 +1,8 @@ -!! @generated from magma2_zfortran.F90, fortran z -> c, Sat Apr 22 18:54:26 2023 +!! @generated from magma_zfortran.F90, fortran z -> c, Sat Apr 22 18:54:26 2023 -module magma2_cfortran +module magma_cfortran -use magma2_common +use magma_common implicit none !! ============================================================================= @@ -11,7 +11,7 @@ module magma2_cfortran !! ------------------------------------------------------------------------- !! CPU interfaces (matrix in CPU memory) - subroutine magma_cgetrf( m, n, A, lda, ipiv, info ) & + subroutine magmaf_cgetrf( m, n, A, lda, ipiv, info ) & bind(C, name="magma_cgetrf") use iso_c_binding integer(c_int), value :: m, n, lda @@ -20,7 +20,7 @@ subroutine magma_cgetrf( m, n, A, lda, ipiv, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_cpotrf( uplo, n, A, lda, info ) & + subroutine magmaf_cpotrf( uplo, n, A, lda, info ) & bind(C, name="magma_cpotrf") use iso_c_binding integer(c_int), value :: uplo @@ -29,7 +29,7 @@ subroutine magma_cpotrf( uplo, n, A, lda, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_cgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + subroutine magmaf_cgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & work, lwork, rwork, info) & bind(C, name="magma_cgeev") use iso_c_binding @@ -43,7 +43,7 @@ subroutine magma_cgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & integer(c_int), target :: info !! int* end subroutine - subroutine magma_cgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + subroutine magmaf_cgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & work, lwork, rwork, info) & bind(C, name="magma_cgeev_m") use iso_c_binding @@ -57,7 +57,7 @@ subroutine magma_cgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & integer(c_int), target :: info !! int* end subroutine - subroutine magma_cheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & + subroutine magmaf_cheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & rwork, lrwork, iwork, liwork, info) & bind(C, name="magma_cheevd_m") use iso_c_binding @@ -75,7 +75,7 @@ subroutine magma_cheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & !! ------------------------------------------------------------------------- !! ------------------------------------------------------------------------- !! GPU interfaces (matrix in GPU memory) - subroutine magma_cgetrf_gpu( m, n, dA, lda, ipiv, info ) & + subroutine magmaf_cgetrf_gpu( m, n, dA, lda, ipiv, info ) & bind(C, name="magma_cgetrf_gpu") use iso_c_binding integer(c_int), value :: m, n, lda @@ -84,7 +84,7 @@ subroutine magma_cgetrf_gpu( m, n, dA, lda, ipiv, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_cpotrf_gpu( uplo, n, dA, lda, info ) & + subroutine magmaf_cpotrf_gpu( uplo, n, dA, lda, info ) & bind(C, name="magma_cpotrf_gpu") use iso_c_binding integer(c_int), value :: uplo, n, lda @@ -92,7 +92,7 @@ subroutine magma_cpotrf_gpu( uplo, n, dA, lda, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_cheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & + subroutine magmaf_cheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & rwork, lrwork, iwork, liwork, info) & bind(C, name="magma_cheevd_gpu") use iso_c_binding @@ -109,7 +109,7 @@ subroutine magma_cheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, !! ------------------------------------------------------------------------- !! batched GPU interfaces (all arrays in GPU memory) - subroutine magma_cgetrf_batched( & + subroutine magmaf_cgetrf_batched( & m, n, dA_array, lda, ipiv_array, info_array, batchcount, queue ) & bind(C, name="magma_cgetrf_batched") use iso_c_binding @@ -122,7 +122,7 @@ subroutine magma_cgetrf_batched( & !! ------------------------------------------------------------------------- !! BLAS (matrices in GPU memory) - subroutine magma_caxpy( & + subroutine magmaf_caxpy( & n, & alpha, dx, incx, & dy, incy, & @@ -135,7 +135,7 @@ subroutine magma_caxpy( & type(c_ptr), value :: queue !! queue_t end subroutine - subroutine magma_cgemv( & + subroutine magmaf_cgemv( & transA, m, n, & alpha, dA, lda, & dx, incx, & @@ -149,7 +149,7 @@ subroutine magma_cgemv( & type(c_ptr), value :: queue !! queue_t end subroutine - subroutine magma_cgemm( & + subroutine magmaf_cgemm( & transA, transB, m, n, k, & alpha, dA, lda, & dB, ldb, & @@ -171,33 +171,33 @@ subroutine magma_cgemm( & !! ------------------------------------------------------------------------- !! malloc wrappers - integer(c_int) function magma_cmalloc( ptr, n ) + integer(c_int) function magmaf_cmalloc( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_cmalloc = magma_malloc( ptr, n*sizeof_complex ) + magmaf_cmalloc = magmaf_malloc( ptr, n*sizeof_complex ) end function - integer(c_int) function magma_cmalloc_cpu( ptr, n ) + integer(c_int) function magmaf_cmalloc_cpu( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_cmalloc_cpu = magma_malloc_cpu( ptr, n*sizeof_complex ) + magmaf_cmalloc_cpu = magmaf_malloc_cpu( ptr, n*sizeof_complex ) end function - integer(c_int) function magma_cmalloc_pinned( ptr, n ) + integer(c_int) function magmaf_cmalloc_pinned( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_cmalloc_pinned = magma_malloc_pinned( ptr, n*sizeof_complex ) + magmaf_cmalloc_pinned = magmaf_malloc_pinned( ptr, n*sizeof_complex ) end function !! ------------------------------------------------------------------------- !! set/get wrappers - subroutine magma_csetmatrix( & + subroutine magmaf_csetmatrix( & m, n, hA_src, lda, dB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, lda, ldb @@ -205,14 +205,14 @@ subroutine magma_csetmatrix( & type(c_ptr), value :: dB_dst type(c_ptr), value :: queue - call magma_setmatrix_internal( & + call magmaf_setmatrix_internal( & m, n, int(sizeof_complex), c_loc(hA_src), lda, dB_dst, ldb, queue, & "magma_csetmatrix" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_cgetmatrix( & + subroutine magmaf_cgetmatrix( & m, n, dA_src, lda, hB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, lda, ldb @@ -220,7 +220,7 @@ subroutine magma_cgetmatrix( & complex(c_float_complex), target :: hB_dst(ldb,*) type(c_ptr), value :: queue - call magma_getmatrix_internal( & + call magmaf_getmatrix_internal( & m, n, int(sizeof_complex), dA_src, lda, c_loc(hB_dst), ldb, queue, & "magma_cgetmatrix" // c_null_char, & __FILE__ // c_null_char, & diff --git a/lib/magma_fmodules/mod_magma2_common.F b/lib/magma_fmodules/mod_magma_common.F similarity index 85% rename from lib/magma_fmodules/mod_magma2_common.F rename to lib/magma_fmodules/mod_magma_common.F index ac18317b87..d575d6cb33 100644 --- a/lib/magma_fmodules/mod_magma2_common.F +++ b/lib/magma_fmodules/mod_magma_common.F @@ -1,4 +1,4 @@ -module magma2_common +module magma_common use iso_c_binding implicit none @@ -29,7 +29,7 @@ module magma2_common !! ------------------------------------------------------------------------- !! magma_malloc (GPU memory) - integer(c_int) function magma_malloc( ptr, bytes ) & + integer(c_int) function magmaf_malloc( ptr, bytes ) & bind(C, name="magma_malloc") use iso_c_binding type(c_ptr), target :: ptr !! void** @@ -38,7 +38,7 @@ integer(c_int) function magma_malloc( ptr, bytes ) & !! todo imalloc - integer(c_int) function magma_free_internal( ptr, func, file, line ) & + integer(c_int) function magmaf_free_internal( ptr, func, file, line ) & bind(C, name="magma_free_internal") use iso_c_binding type(c_ptr), value :: ptr !! void* @@ -49,7 +49,7 @@ integer(c_int) function magma_free_internal( ptr, func, file, line ) & !! ------------------------------------------------------------------------- !! magma_malloc_cpu (CPU main memory) !! these are aligned to 32-byte boundary - integer(c_int) function magma_malloc_cpu( ptr, bytes ) & + integer(c_int) function magmaf_malloc_cpu( ptr, bytes ) & bind(C, name="magma_malloc_cpu") use iso_c_binding type(c_ptr), target :: ptr !! void** @@ -58,7 +58,7 @@ integer(c_int) function magma_malloc_cpu( ptr, bytes ) & !! todo imalloc_cpu - integer(c_int) function magma_free_cpu( ptr ) & + integer(c_int) function magmaf_free_cpu( ptr ) & bind(C, name="magma_free_cpu") use iso_c_binding type(c_ptr), value :: ptr !! void* @@ -66,7 +66,7 @@ integer(c_int) function magma_free_cpu( ptr ) & !! ------------------------------------------------------------------------- !! magma_malloc_pinned (pinned CPU main memory) - integer(c_int) function magma_malloc_pinned( ptr, bytes ) & + integer(c_int) function magmaf_malloc_pinned( ptr, bytes ) & bind(C, name="magma_malloc_pinned") use iso_c_binding type(c_ptr), target :: ptr !! void** @@ -75,7 +75,7 @@ integer(c_int) function magma_malloc_pinned( ptr, bytes ) & !! todo imalloc_pinned - integer(c_int) function magma_free_pinned_internal( ptr, func, file, line ) & + integer(c_int) function magmaf_free_pinned_internal( ptr, func, file, line ) & bind(C, name="magma_free_pinned_internal") use iso_c_binding type(c_ptr), value :: ptr !! void* @@ -85,7 +85,7 @@ integer(c_int) function magma_free_pinned_internal( ptr, func, file, line ) & !! ------------------------------------------------------------------------- !! set/get - subroutine magma_setmatrix_internal( & + subroutine magmaf_setmatrix_internal( & m, n, elemsize, hA_src, lda, dB_dst, ldb, queue, func, file, line ) & bind(C, name="magma_setmatrix_internal") use iso_c_binding @@ -97,7 +97,7 @@ subroutine magma_setmatrix_internal( & integer(c_int), value :: line end subroutine - subroutine magma_getmatrix_internal( & + subroutine magmaf_getmatrix_internal( & m, n, elemsize, dA_src, lda, hB_dst, ldb, queue, func, file, line ) & bind(C, name="magma_getmatrix_internal") use iso_c_binding @@ -109,7 +109,7 @@ subroutine magma_getmatrix_internal( & integer(c_int), value :: line end subroutine - subroutine magma_setvector_internal( & + subroutine magmaf_setvector_internal( & n, elemsize, hx_src, incx, dy_dst, incy, queue, func, file, line ) & bind(C, name="magma_setvector_internal") use iso_c_binding @@ -121,7 +121,7 @@ subroutine magma_setvector_internal( & integer(c_int), value :: line end subroutine - subroutine magma_getvector_internal( & + subroutine magmaf_getvector_internal( & n, elemsize, dx_src, incx, hy_dst, incy, queue, func, file, line ) & bind(C, name="magma_getvector_internal") use iso_c_binding @@ -141,46 +141,46 @@ subroutine magma_getvector_internal( & !! ------------------------------------------------------------------------- !! malloc wrappers - integer(c_int) function magma_imalloc( ptr, n ) + integer(c_int) function magmaf_imalloc( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_imalloc = magma_malloc( ptr, n*sizeof_int ) + magmaf_imalloc = magmaf_malloc( ptr, n*sizeof_int ) end function - integer(c_int) function magma_imalloc_cpu( ptr, n ) + integer(c_int) function magmaf_imalloc_cpu( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_imalloc_cpu = magma_malloc_cpu( ptr, n*sizeof_int ) + magmaf_imalloc_cpu = magmaf_malloc_cpu( ptr, n*sizeof_int ) end function - integer(c_int) function magma_imalloc_pinned( ptr, n ) + integer(c_int) function magmaf_imalloc_pinned( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_imalloc_pinned = magma_malloc_pinned( ptr, n*sizeof_int ) + magmaf_imalloc_pinned = magmaf_malloc_pinned( ptr, n*sizeof_int ) end function !! ------------------------------------------------------------------------- !! magma_free wrappers - integer(c_int) function magma_free( ptr ) + integer(c_int) function magmaf_free( ptr ) type(c_ptr) :: ptr - magma_free = magma_free_internal( & + magmaf_free = magmaf_free_internal( & ptr, & "magma_free" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end function - integer(c_int) function magma_free_pinned( ptr ) + integer(c_int) function magmaf_free_pinned( ptr ) type(c_ptr) :: ptr - magma_free_pinned = magma_free_internal( & + magmaf_free_pinned = magmaf_free_internal( & ptr, & "magma_free_pinned" // c_null_char, & __FILE__ // c_null_char, & @@ -189,7 +189,7 @@ integer(c_int) function magma_free_pinned( ptr ) !! ------------------------------------------------------------------------- !! set/get wrappers - subroutine magma_setmatrix( & + subroutine magmaf_setmatrix( & m, n, elemsize, hA_src, lda, dB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, elemsize, lda, ldb @@ -197,14 +197,14 @@ subroutine magma_setmatrix( & type(c_ptr), value :: dB_dst type(c_ptr), value :: queue - call magma_setmatrix_internal( & + call magmaf_setmatrix_internal( & m, n, elemsize, hA_src, lda, dB_dst, ldb, queue, & "magma_setmatrix" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_getmatrix( & + subroutine magmaf_getmatrix( & m, n, elemsize, dA_src, lda, hB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, elemsize, lda, ldb @@ -212,14 +212,14 @@ subroutine magma_getmatrix( & type(c_ptr), value :: hB_dst type(c_ptr), value :: queue - call magma_getmatrix_internal( & + call magmaf_getmatrix_internal( & m, n, elemsize, dA_src, lda, hB_dst, ldb, queue, & "magma_getmatrix" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_setvector( & + subroutine magmaf_setvector( & n, elemsize, hx_src, incx, dy_dst, incy, queue ) use iso_c_binding integer(c_int), value :: n, elemsize, incx, incy @@ -227,14 +227,14 @@ subroutine magma_setvector( & type(c_ptr), value :: dy_dst type(c_ptr), value :: queue - call magma_setvector_internal( & + call magmaf_setvector_internal( & n, elemsize, hx_src, incx, dy_dst, incy, queue, & "magma_setvector" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_getvector( & + subroutine magmaf_getvector( & n, elemsize, dx_src, incx, hy_dst, incy, queue ) use iso_c_binding integer(c_int), value :: n, elemsize, incx, incy @@ -242,7 +242,7 @@ subroutine magma_getvector( & type(c_ptr), value :: hy_dst type(c_ptr), value :: queue - call magma_getvector_internal( & + call magmaf_getvector_internal( & n, elemsize, dx_src, incx, hy_dst, incy, queue, & "magma_getvector" // c_null_char, & __FILE__ // c_null_char, & @@ -252,7 +252,7 @@ subroutine magma_getvector( & !! ------------------------------------------------------------------------- !! set/get wrappers !! matrices & vectors of integers - subroutine magma_isetmatrix( & + subroutine magmaf_isetmatrix( & m, n, hA_src, lda, dB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, lda, ldb @@ -260,14 +260,14 @@ subroutine magma_isetmatrix( & type(c_ptr), value :: dB_dst type(c_ptr), value :: queue - call magma_setmatrix_internal( & + call magmaf_setmatrix_internal( & m, n, int(sizeof_int), c_loc(hA_src), lda, dB_dst, ldb, queue, & "magma_isetmatrix" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_igetmatrix( & + subroutine magmaf_igetmatrix( & m, n, dA_src, lda, hB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, lda, ldb @@ -275,14 +275,14 @@ subroutine magma_igetmatrix( & integer(c_int), target :: hB_dst(ldb,*) type(c_ptr), value :: queue - call magma_getmatrix_internal( & + call magmaf_getmatrix_internal( & m, n, int(sizeof_int), dA_src, lda, c_loc(hB_dst), ldb, queue, & "magma_igetmatrix" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_isetvector( & + subroutine magmaf_isetvector( & n, hx_src, incx, dy_dst, incy, queue ) use iso_c_binding integer(c_int), value :: n, incx, incy @@ -290,14 +290,14 @@ subroutine magma_isetvector( & type(c_ptr), value :: dy_dst type(c_ptr), value :: queue - call magma_setvector_internal( & + call magmaf_setvector_internal( & n, int(sizeof_int), c_loc(hx_src), incx, dy_dst, incy, queue, & "magma_isetvector" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_igetvector( & + subroutine magmaf_igetvector( & n, dx_src, incx, hy_dst, incy, queue ) use iso_c_binding integer(c_int), value :: n, incx, incy @@ -305,7 +305,7 @@ subroutine magma_igetvector( & integer(c_int), target :: hy_dst(*) type(c_ptr), value :: queue - call magma_getvector_internal( & + call magmaf_getvector_internal( & n, int(sizeof_int), dx_src, incx, c_loc(hy_dst), incy, queue, & "magma_igetvector" // c_null_char, & __FILE__ // c_null_char, & @@ -315,7 +315,7 @@ subroutine magma_igetvector( & !! ------------------------------------------------------------------------- !! set/get wrappers !! matrices & vectors of c_ptr pointers - subroutine magma_psetmatrix( & + subroutine magmaf_psetmatrix( & m, n, hA_src, lda, dB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, lda, ldb @@ -323,14 +323,14 @@ subroutine magma_psetmatrix( & type(c_ptr), value :: dB_dst type(c_ptr), value :: queue - call magma_setmatrix_internal( & + call magmaf_setmatrix_internal( & m, n, int(sizeof_ptr), c_loc(hA_src), lda, dB_dst, ldb, queue, & "magma_psetmatrix" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_pgetmatrix( & + subroutine magmaf_pgetmatrix( & m, n, dA_src, lda, hB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, lda, ldb @@ -338,14 +338,14 @@ subroutine magma_pgetmatrix( & type(c_ptr), target :: hB_dst(ldb,*) type(c_ptr), value :: queue - call magma_getmatrix_internal( & + call magmaf_getmatrix_internal( & m, n, int(sizeof_ptr), dA_src, lda, c_loc(hB_dst), ldb, queue, & "magma_pgetmatrix" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_psetvector( & + subroutine magmaf_psetvector( & n, hx_src, incx, dy_dst, incy, queue ) use iso_c_binding integer(c_int), value :: n, incx, incy @@ -353,14 +353,14 @@ subroutine magma_psetvector( & type(c_ptr), value :: dy_dst type(c_ptr), value :: queue - call magma_setvector_internal( & + call magmaf_setvector_internal( & n, int(sizeof_ptr), c_loc(hx_src), incx, dy_dst, incy, queue, & "magma_psetvector" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_pgetvector( & + subroutine magmaf_pgetvector( & n, dx_src, incx, hy_dst, incy, queue ) use iso_c_binding integer(c_int), value :: n, incx, incy @@ -368,7 +368,7 @@ subroutine magma_pgetvector( & type(c_ptr), target :: hy_dst(*) type(c_ptr), value :: queue - call magma_getvector_internal( & + call magmaf_getvector_internal( & n, int(sizeof_ptr), dx_src, incx, c_loc(hy_dst), incy, queue, & "magma_pgetvector" // c_null_char, & __FILE__ // c_null_char, & diff --git a/lib/magma_fmodules/mod_magma2_dfortran.F b/lib/magma_fmodules/mod_magma_dfortran.F similarity index 85% rename from lib/magma_fmodules/mod_magma2_dfortran.F rename to lib/magma_fmodules/mod_magma_dfortran.F index e85b83b368..cd50d930a2 100644 --- a/lib/magma_fmodules/mod_magma2_dfortran.F +++ b/lib/magma_fmodules/mod_magma_dfortran.F @@ -1,8 +1,8 @@ -!! @generated from magma2_zfortran.F90, fortran z -> d, Sat Apr 22 18:54:26 2023 +!! @generated from magma_zfortran.F90, fortran z -> d, Sat Apr 22 18:54:26 2023 -module magma2_dfortran +module magma_dfortran -use magma2_common +use magma_common implicit none !! ============================================================================= @@ -11,7 +11,7 @@ module magma2_dfortran !! ------------------------------------------------------------------------- !! CPU interfaces (matrix in CPU memory) - subroutine magma_dgetrf( m, n, A, lda, ipiv, info ) & + subroutine magmaf_dgetrf( m, n, A, lda, ipiv, info ) & bind(C, name="magma_dgetrf") use iso_c_binding integer(c_int), value :: m, n, lda @@ -20,7 +20,7 @@ subroutine magma_dgetrf( m, n, A, lda, ipiv, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_dpotrf( uplo, n, A, lda, info ) & + subroutine magmaf_dpotrf( uplo, n, A, lda, info ) & bind(C, name="magma_dpotrf") use iso_c_binding integer(c_int), value :: uplo @@ -29,7 +29,7 @@ subroutine magma_dpotrf( uplo, n, A, lda, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_dgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + subroutine magmaf_dgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & work, lwork, rwork, info) & bind(C, name="magma_dgeev") use iso_c_binding @@ -43,7 +43,7 @@ subroutine magma_dgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & integer(c_int), target :: info !! int* end subroutine - subroutine magma_dgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + subroutine magmaf_dgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & work, lwork, rwork, info) & bind(C, name="magma_dgeev_m") use iso_c_binding @@ -57,7 +57,7 @@ subroutine magma_dgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & integer(c_int), target :: info !! int* end subroutine - subroutine magma_dsyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & + subroutine magmaf_dsyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & rwork, lrwork, iwork, liwork, info) & bind(C, name="magma_dsyevd_m") use iso_c_binding @@ -75,7 +75,7 @@ subroutine magma_dsyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & !! ------------------------------------------------------------------------- !! ------------------------------------------------------------------------- !! GPU interfaces (matrix in GPU memory) - subroutine magma_dgetrf_gpu( m, n, dA, lda, ipiv, info ) & + subroutine magmaf_dgetrf_gpu( m, n, dA, lda, ipiv, info ) & bind(C, name="magma_dgetrf_gpu") use iso_c_binding integer(c_int), value :: m, n, lda @@ -84,7 +84,7 @@ subroutine magma_dgetrf_gpu( m, n, dA, lda, ipiv, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_dpotrf_gpu( uplo, n, dA, lda, info ) & + subroutine magmaf_dpotrf_gpu( uplo, n, dA, lda, info ) & bind(C, name="magma_dpotrf_gpu") use iso_c_binding integer(c_int), value :: uplo, n, lda @@ -92,7 +92,7 @@ subroutine magma_dpotrf_gpu( uplo, n, dA, lda, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_dsyevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & + subroutine magmaf_dsyevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & rwork, lrwork, iwork, liwork, info) & bind(C, name="magma_dsyevd_gpu") use iso_c_binding @@ -109,7 +109,7 @@ subroutine magma_dsyevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, !! ------------------------------------------------------------------------- !! batched GPU interfaces (all arrays in GPU memory) - subroutine magma_dgetrf_batched( & + subroutine magmaf_dgetrf_batched( & m, n, dA_array, lda, ipiv_array, info_array, batchcount, queue ) & bind(C, name="magma_dgetrf_batched") use iso_c_binding @@ -122,7 +122,7 @@ subroutine magma_dgetrf_batched( & !! ------------------------------------------------------------------------- !! BLAS (matrices in GPU memory) - subroutine magma_daxpy( & + subroutine magmaf_daxpy( & n, & alpha, dx, incx, & dy, incy, & @@ -135,7 +135,7 @@ subroutine magma_daxpy( & type(c_ptr), value :: queue !! queue_t end subroutine - subroutine magma_dgemv( & + subroutine magmaf_dgemv( & transA, m, n, & alpha, dA, lda, & dx, incx, & @@ -149,7 +149,7 @@ subroutine magma_dgemv( & type(c_ptr), value :: queue !! queue_t end subroutine - subroutine magma_dgemm( & + subroutine magmaf_dgemm( & transA, transB, m, n, k, & alpha, dA, lda, & dB, ldb, & @@ -171,33 +171,33 @@ subroutine magma_dgemm( & !! ------------------------------------------------------------------------- !! malloc wrappers - integer(c_int) function magma_dmalloc( ptr, n ) + integer(c_int) function magmaf_dmalloc( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_dmalloc = magma_malloc( ptr, n*sizeof_double ) + magmaf_dmalloc = magmaf_malloc( ptr, n*sizeof_double ) end function - integer(c_int) function magma_dmalloc_cpu( ptr, n ) + integer(c_int) function magmaf_dmalloc_cpu( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_dmalloc_cpu = magma_malloc_cpu( ptr, n*sizeof_double ) + magmaf_dmalloc_cpu = magmaf_malloc_cpu( ptr, n*sizeof_double ) end function - integer(c_int) function magma_dmalloc_pinned( ptr, n ) + integer(c_int) function magmaf_dmalloc_pinned( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_dmalloc_pinned = magma_malloc_pinned( ptr, n*sizeof_double ) + magmaf_dmalloc_pinned = magmaf_malloc_pinned( ptr, n*sizeof_double ) end function !! ------------------------------------------------------------------------- !! set/get wrappers - subroutine magma_dsetmatrix( & + subroutine magmaf_dsetmatrix( & m, n, hA_src, lda, dB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, lda, ldb @@ -205,14 +205,14 @@ subroutine magma_dsetmatrix( & type(c_ptr), value :: dB_dst type(c_ptr), value :: queue - call magma_setmatrix_internal( & + call magmaf_setmatrix_internal( & m, n, int(sizeof_double), c_loc(hA_src), lda, dB_dst, ldb, queue, & "magma_dsetmatrix" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_dgetmatrix( & + subroutine magmaf_dgetmatrix( & m, n, dA_src, lda, hB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, lda, ldb @@ -220,7 +220,7 @@ subroutine magma_dgetmatrix( & real(c_double), target :: hB_dst(ldb,*) type(c_ptr), value :: queue - call magma_getmatrix_internal( & + call magmaf_getmatrix_internal( & m, n, int(sizeof_double), dA_src, lda, c_loc(hB_dst), ldb, queue, & "magma_dgetmatrix" // c_null_char, & __FILE__ // c_null_char, & diff --git a/lib/magma_fmodules/mod_magma2_sfortran.F b/lib/magma_fmodules/mod_magma_sfortran.F similarity index 85% rename from lib/magma_fmodules/mod_magma2_sfortran.F rename to lib/magma_fmodules/mod_magma_sfortran.F index b5c45a41c3..6c5aabab16 100644 --- a/lib/magma_fmodules/mod_magma2_sfortran.F +++ b/lib/magma_fmodules/mod_magma_sfortran.F @@ -1,8 +1,8 @@ -!! @generated from magma2_zfortran.F90, fortran z -> s, Sat Apr 22 18:54:26 2023 +!! @generated from magma_zfortran.F90, fortran z -> s, Sat Apr 22 18:54:26 2023 -module magma2_sfortran +module magma_sfortran -use magma2_common +use magma_common implicit none !! ============================================================================= @@ -11,7 +11,7 @@ module magma2_sfortran !! ------------------------------------------------------------------------- !! CPU interfaces (matrix in CPU memory) - subroutine magma_sgetrf( m, n, A, lda, ipiv, info ) & + subroutine magmaf_sgetrf( m, n, A, lda, ipiv, info ) & bind(C, name="magma_sgetrf") use iso_c_binding integer(c_int), value :: m, n, lda @@ -20,7 +20,7 @@ subroutine magma_sgetrf( m, n, A, lda, ipiv, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_spotrf( uplo, n, A, lda, info ) & + subroutine magmaf_spotrf( uplo, n, A, lda, info ) & bind(C, name="magma_spotrf") use iso_c_binding integer(c_int), value :: uplo @@ -29,7 +29,7 @@ subroutine magma_spotrf( uplo, n, A, lda, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_sgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + subroutine magmaf_sgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & work, lwork, rwork, info) & bind(C, name="magma_sgeev") use iso_c_binding @@ -43,7 +43,7 @@ subroutine magma_sgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & integer(c_int), target :: info !! int* end subroutine - subroutine magma_sgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + subroutine magmaf_sgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & work, lwork, rwork, info) & bind(C, name="magma_sgeev_m") use iso_c_binding @@ -57,7 +57,7 @@ subroutine magma_sgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & integer(c_int), target :: info !! int* end subroutine - subroutine magma_ssyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & + subroutine magmaf_ssyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & rwork, lrwork, iwork, liwork, info) & bind(C, name="magma_ssyevd_m") use iso_c_binding @@ -75,7 +75,7 @@ subroutine magma_ssyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & !! ------------------------------------------------------------------------- !! ------------------------------------------------------------------------- !! GPU interfaces (matrix in GPU memory) - subroutine magma_sgetrf_gpu( m, n, dA, lda, ipiv, info ) & + subroutine magmaf_sgetrf_gpu( m, n, dA, lda, ipiv, info ) & bind(C, name="magma_sgetrf_gpu") use iso_c_binding integer(c_int), value :: m, n, lda @@ -84,7 +84,7 @@ subroutine magma_sgetrf_gpu( m, n, dA, lda, ipiv, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_spotrf_gpu( uplo, n, dA, lda, info ) & + subroutine magmaf_spotrf_gpu( uplo, n, dA, lda, info ) & bind(C, name="magma_spotrf_gpu") use iso_c_binding integer(c_int), value :: uplo, n, lda @@ -92,7 +92,7 @@ subroutine magma_spotrf_gpu( uplo, n, dA, lda, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_ssyevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & + subroutine magmaf_ssyevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & rwork, lrwork, iwork, liwork, info) & bind(C, name="magma_ssyevd_gpu") use iso_c_binding @@ -109,7 +109,7 @@ subroutine magma_ssyevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, !! ------------------------------------------------------------------------- !! batched GPU interfaces (all arrays in GPU memory) - subroutine magma_sgetrf_batched( & + subroutine magmaf_sgetrf_batched( & m, n, dA_array, lda, ipiv_array, info_array, batchcount, queue ) & bind(C, name="magma_sgetrf_batched") use iso_c_binding @@ -122,7 +122,7 @@ subroutine magma_sgetrf_batched( & !! ------------------------------------------------------------------------- !! BLAS (matrices in GPU memory) - subroutine magma_saxpy( & + subroutine magmaf_saxpy( & n, & alpha, dx, incx, & dy, incy, & @@ -135,7 +135,7 @@ subroutine magma_saxpy( & type(c_ptr), value :: queue !! queue_t end subroutine - subroutine magma_sgemv( & + subroutine magmaf_sgemv( & transA, m, n, & alpha, dA, lda, & dx, incx, & @@ -149,7 +149,7 @@ subroutine magma_sgemv( & type(c_ptr), value :: queue !! queue_t end subroutine - subroutine magma_sgemm( & + subroutine magmaf_sgemm( & transA, transB, m, n, k, & alpha, dA, lda, & dB, ldb, & @@ -171,33 +171,33 @@ subroutine magma_sgemm( & !! ------------------------------------------------------------------------- !! malloc wrappers - integer(c_int) function magma_smalloc( ptr, n ) + integer(c_int) function magmaf_smalloc( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_smalloc = magma_malloc( ptr, n*sizeof_real ) + magmaf_smalloc = magmaf_malloc( ptr, n*sizeof_real ) end function - integer(c_int) function magma_smalloc_cpu( ptr, n ) + integer(c_int) function magmaf_smalloc_cpu( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_smalloc_cpu = magma_malloc_cpu( ptr, n*sizeof_real ) + magmaf_smalloc_cpu = magmaf_malloc_cpu( ptr, n*sizeof_real ) end function - integer(c_int) function magma_smalloc_pinned( ptr, n ) + integer(c_int) function magmaf_smalloc_pinned( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_smalloc_pinned = magma_malloc_pinned( ptr, n*sizeof_real ) + magmaf_smalloc_pinned = magmaf_malloc_pinned( ptr, n*sizeof_real ) end function !! ------------------------------------------------------------------------- !! set/get wrappers - subroutine magma_ssetmatrix( & + subroutine magmaf_ssetmatrix( & m, n, hA_src, lda, dB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, lda, ldb @@ -205,14 +205,14 @@ subroutine magma_ssetmatrix( & type(c_ptr), value :: dB_dst type(c_ptr), value :: queue - call magma_setmatrix_internal( & + call magmaf_setmatrix_internal( & m, n, int(sizeof_real), c_loc(hA_src), lda, dB_dst, ldb, queue, & "magma_ssetmatrix" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_sgetmatrix( & + subroutine magmaf_sgetmatrix( & m, n, dA_src, lda, hB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, lda, ldb @@ -220,7 +220,7 @@ subroutine magma_sgetmatrix( & real(c_float), target :: hB_dst(ldb,*) type(c_ptr), value :: queue - call magma_getmatrix_internal( & + call magmaf_getmatrix_internal( & m, n, int(sizeof_real), dA_src, lda, c_loc(hB_dst), ldb, queue, & "magma_sgetmatrix" // c_null_char, & __FILE__ // c_null_char, & diff --git a/lib/magma_fmodules/mod_magma2_zfortran.F b/lib/magma_fmodules/mod_magma_zfortran.F similarity index 86% rename from lib/magma_fmodules/mod_magma2_zfortran.F rename to lib/magma_fmodules/mod_magma_zfortran.F index 8066052bee..6a1d76e145 100644 --- a/lib/magma_fmodules/mod_magma2_zfortran.F +++ b/lib/magma_fmodules/mod_magma_zfortran.F @@ -1,8 +1,8 @@ !! @precisions fortran z -> s d c -module magma2_zfortran +module magma_zfortran -use magma2_common +use magma_common implicit none !! ============================================================================= @@ -11,7 +11,7 @@ module magma2_zfortran !! ------------------------------------------------------------------------- !! CPU interfaces (matrix in CPU memory) - subroutine magma_zgetrf( m, n, A, lda, ipiv, info ) & + subroutine magmaf_zgetrf( m, n, A, lda, ipiv, info ) & bind(C, name="magma_zgetrf") use iso_c_binding integer(c_int), value :: m, n, lda @@ -20,7 +20,7 @@ subroutine magma_zgetrf( m, n, A, lda, ipiv, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_zpotrf( uplo, n, A, lda, info ) & + subroutine magmaf_zpotrf( uplo, n, A, lda, info ) & bind(C, name="magma_zpotrf") use iso_c_binding integer(c_int), value :: uplo @@ -29,7 +29,7 @@ subroutine magma_zpotrf( uplo, n, A, lda, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_zgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + subroutine magmaf_zgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & work, lwork, rwork, info) & bind(C, name="magma_zgeev") use iso_c_binding @@ -43,7 +43,7 @@ subroutine magma_zgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & integer(c_int), target :: info !! int* end subroutine - subroutine magma_zgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & + subroutine magmaf_zgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & work, lwork, rwork, info) & bind(C, name="magma_zgeev_m") use iso_c_binding @@ -57,7 +57,7 @@ subroutine magma_zgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & integer(c_int), target :: info !! int* end subroutine - subroutine magma_zheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & + subroutine magmaf_zheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & rwork, lrwork, iwork, liwork, info) & bind(C, name="magma_zheevd_m") use iso_c_binding @@ -75,7 +75,7 @@ subroutine magma_zheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & !! ------------------------------------------------------------------------- !! ------------------------------------------------------------------------- !! GPU interfaces (matrix in GPU memory) - subroutine magma_zgetrf_gpu( m, n, dA, lda, ipiv, info ) & + subroutine magmaf_zgetrf_gpu( m, n, dA, lda, ipiv, info ) & bind(C, name="magma_zgetrf_gpu") use iso_c_binding integer(c_int), value :: m, n, lda @@ -84,7 +84,7 @@ subroutine magma_zgetrf_gpu( m, n, dA, lda, ipiv, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_zpotrf_gpu( uplo, n, dA, lda, info ) & + subroutine magmaf_zpotrf_gpu( uplo, n, dA, lda, info ) & bind(C, name="magma_zpotrf_gpu") use iso_c_binding integer(c_int), value :: uplo, n, lda @@ -92,7 +92,7 @@ subroutine magma_zpotrf_gpu( uplo, n, dA, lda, info ) & integer(c_int), target :: info !! int* end subroutine - subroutine magma_zheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & + subroutine magmaf_zheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & rwork, lrwork, iwork, liwork, info) & bind(C, name="magma_zheevd_gpu") use iso_c_binding @@ -109,7 +109,7 @@ subroutine magma_zheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, !! ------------------------------------------------------------------------- !! batched GPU interfaces (all arrays in GPU memory) - subroutine magma_zgetrf_batched( & + subroutine magmaf_zgetrf_batched( & m, n, dA_array, lda, ipiv_array, info_array, batchcount, queue ) & bind(C, name="magma_zgetrf_batched") use iso_c_binding @@ -122,7 +122,7 @@ subroutine magma_zgetrf_batched( & !! ------------------------------------------------------------------------- !! BLAS (matrices in GPU memory) - subroutine magma_zaxpy( & + subroutine magmaf_zaxpy( & n, & alpha, dx, incx, & dy, incy, & @@ -135,7 +135,7 @@ subroutine magma_zaxpy( & type(c_ptr), value :: queue !! queue_t end subroutine - subroutine magma_zgemv( & + subroutine magmaf_zgemv( & transA, m, n, & alpha, dA, lda, & dx, incx, & @@ -149,7 +149,7 @@ subroutine magma_zgemv( & type(c_ptr), value :: queue !! queue_t end subroutine - subroutine magma_zgemm( & + subroutine magmaf_zgemm( & transA, transB, m, n, k, & alpha, dA, lda, & dB, ldb, & @@ -171,33 +171,33 @@ subroutine magma_zgemm( & !! ------------------------------------------------------------------------- !! malloc wrappers - integer(c_int) function magma_zmalloc( ptr, n ) + integer(c_int) function magmaf_zmalloc( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_zmalloc = magma_malloc( ptr, n*sizeof_complex16 ) + magmaf_zmalloc = magmaf_malloc( ptr, n*sizeof_complex16 ) end function - integer(c_int) function magma_zmalloc_cpu( ptr, n ) + integer(c_int) function magmaf_zmalloc_cpu( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_zmalloc_cpu = magma_malloc_cpu( ptr, n*sizeof_complex16 ) + magmaf_zmalloc_cpu = magmaf_malloc_cpu( ptr, n*sizeof_complex16 ) end function - integer(c_int) function magma_zmalloc_pinned( ptr, n ) + integer(c_int) function magmaf_zmalloc_pinned( ptr, n ) use iso_c_binding type(c_ptr), target :: ptr !! void** integer(c_size_t), value :: n - magma_zmalloc_pinned = magma_malloc_pinned( ptr, n*sizeof_complex16 ) + magmaf_zmalloc_pinned = magmaf_malloc_pinned( ptr, n*sizeof_complex16 ) end function !! ------------------------------------------------------------------------- !! set/get wrappers - subroutine magma_zsetmatrix( & + subroutine magmaf_zsetmatrix( & m, n, hA_src, lda, dB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, lda, ldb @@ -205,14 +205,14 @@ subroutine magma_zsetmatrix( & type(c_ptr), value :: dB_dst type(c_ptr), value :: queue - call magma_setmatrix_internal( & + call magmaf_setmatrix_internal( & m, n, int(sizeof_complex16), c_loc(hA_src), lda, dB_dst, ldb, queue, & "magma_zsetmatrix" // c_null_char, & __FILE__ // c_null_char, & __LINE__ ) end subroutine - subroutine magma_zgetmatrix( & + subroutine magmaf_zgetmatrix( & m, n, dA_src, lda, hB_dst, ldb, queue ) use iso_c_binding integer(c_int), value :: m, n, lda, ldb @@ -220,7 +220,7 @@ subroutine magma_zgetmatrix( & complex(c_double_complex), target :: hB_dst(ldb,*) type(c_ptr), value :: queue - call magma_getmatrix_internal( & + call magmaf_getmatrix_internal( & m, n, int(sizeof_complex16), dA_src, lda, c_loc(hB_dst), ldb, queue, & "magma_zgetmatrix" // c_null_char, & __FILE__ // c_null_char, & diff --git a/src/modules/mod_linear_algebra.F b/src/modules/mod_linear_algebra.F index ba0f44469a..43be87dfe5 100644 --- a/src/modules/mod_linear_algebra.F +++ b/src/modules/mod_linear_algebra.F @@ -8,10 +8,12 @@ module linear_algebra ! use iso_c_binding + use iso_fortran_env, ONLY: int64 + ! use pars, ONLY: SP,schlen #ifdef _MAGMA - use magma2, ONLY: magma_init,magma_queue_create, & -& magma_cgeev_m,magma_zgeev_m,MagmaVec + use magma, ONLY: magmaf_init,magmaf_queue_create, & +& magmaf_cgeev_m,magmaf_zgeev_m,MagmaVec #endif #ifdef _OPENMP use omp_lib @@ -33,7 +35,7 @@ module linear_algebra ! ! magma vars ! - type(c_ptr) :: magma_queue !! magma_queue_t + integer(int64) :: magma_queue !! magma_queue_t logical :: magma_init_done = .false. ! ! Common Work Space @@ -133,8 +135,8 @@ subroutine LINEAR_ALGEBRA_error(calling_subr,message_) ! subroutine magma_setup() #ifdef _MAGMA - call magma_init() - call magma_queue_create( 0, magma_queue ) + call magmaf_init() + call magmaf_queue_create( 0, magma_queue ) magma_init_done=.true. #endif return @@ -244,11 +246,11 @@ subroutine geev(msize,M,E_cmpl,V_left,V_right,work,lwork,rwk,ifail) # endif ! # if defined _DOUBLE - call magma_zgeev_m(MagmaVec,MagmaVec, msize,M,msize,E_cmpl,V_left,msize,V_right,msize,& -& work,lwork,rwk,ifail) + call magmaf_zgeev_m(MagmaVec,MagmaVec, msize,M,msize,E_cmpl,V_left,msize,V_right,msize,& +& work,lwork,rwk,ifail) # else - call magma_cgeev_m(MagmaVec,MagmaVec, msize,M,msize,E_cmpl,V_left,msize,V_right,msize,& -& work,lwork,rwk,ifail) + call magmaf_cgeev_m(MagmaVec,MagmaVec, msize,M,msize,E_cmpl,V_left,msize,V_right,msize,& +& work,lwork,rwk,ifail) # endif ! # if defined _OPENMP From 748413042b93918ce0ae0fba9c051925a841c604 Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Fri, 28 Feb 2025 19:38:33 +0100 Subject: [PATCH 27/36] GEEV interface removed and included in SERIAL_diagonalization --- Discussion_AD_DS_20250225.dat | 10 +++ src/linear_algebra/SERIAL_diagonalization.F | 83 +++++++++++++++-- src/modules/mod_linear_algebra.F | 98 ++++----------------- 3 files changed, 104 insertions(+), 87 deletions(-) diff --git a/Discussion_AD_DS_20250225.dat b/Discussion_AD_DS_20250225.dat index fbf90acd1b..92c775fd89 100644 --- a/Discussion_AD_DS_20250225.dat +++ b/Discussion_AD_DS_20250225.dat @@ -1,5 +1,9 @@ +----------------------- +OVERALL philosophy +----------------------- + - mod_wrapper --> wrapper yambo for single and double to blas --> when available calls devxlib single and double subroutines - mod_linear algebra has wrappers single and double to few selected lapack @@ -25,5 +29,11 @@ LINEAR_ALGEBRA_driver is never directly called, but the above subroutines are directly called. It only performs initializations +----------------------- +DONE +----------------------- + +- compilation to be fixed + - To be removed: M_eigenvalues, heev and geev interfaces diff --git a/src/linear_algebra/SERIAL_diagonalization.F b/src/linear_algebra/SERIAL_diagonalization.F index e03eada92f..652c456742 100644 --- a/src/linear_algebra/SERIAL_diagonalization.F +++ b/src/linear_algebra/SERIAL_diagonalization.F @@ -15,32 +15,99 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) ! V_left(j)**H * M = E(j) * V_left(j)**H ! where V_left(j)**H denotes the conjugate transpose of V_left(j). ! - use pars, ONLY:SP - use linear_algebra,ONLY:LINEAR_ALGEBRA_error,M_eigenvalues,LINEAR_ALGEBRA_WS_reset,LALGEBRA_WS - use timing_m, ONLY:timing + use pars, ONLY: SP + use linear_algebra,ONLY: LINEAR_ALGEBRA_error,LINEAR_ALGEBRA_WS_reset,LALGEBRA_WS,& +& magma_init_done,magma_setup,have_magma + use timing_m, ONLY: timing + use com, ONLY: msg +#ifdef _MAGMA + use magma, ONLY: magmaf_cgeev_m,magmaf_zgeev_m,MagmaVec +#endif +#ifdef _OPENMP + use omp_lib +#endif + ! #include ! integer :: n complex(SP) :: M(n,n),E(n),V_left(n,n),V_right(n,n) type(LALGEBRA_WS) :: WS ! + integer :: nthreads_save + + ! + ! name aliasing + ! +#if defined _DOUBLE +# define _XGEEV_ ZGEEV +# define _MAGMAF_XGEEV_ magmaf_ZGEEV_m +#else +# define _XGEEV_ CGEEV +# define _MAGMAF_XGEEV_ magmaf_CGEEV_m +#endif + ! + call timing('SERIAL_diagonalization',OPR='start') + ! + ! Thread safety +#if defined _OPENMP + nthreads_save=omp_get_max_threads() + call omp_set_num_threads(1) +#endif + + ! + ! workspace + ! allocate(WS%v_cmplx(1)) YAMBO_ALLOC(WS%v_real,(2*n)) - call M_eigenvalues(n,M,E,V_left,V_right,WS%v_cmplx,-1,WS%v_real,WS%i_fail) ! - call timing('SERIAL_diagonalization',OPR='start') +#if defined _MAGMA + call _MAGMAF_XGEEV_(MagmaVec,MagmaVec, n,M,n,E,V_left,n,V_right,n,& +& WS%v_cmplx,-1,WS%v_real,WS%i_fail) +#else + call _XGEEV_('V','V',n,M,n,E,V_left,n,V_right,n,WS%v_cmplx,-1,WS%v_real,WS%i_fail) +#endif ! - if(WS%i_fail.ne.0) call LINEAR_ALGEBRA_error('M_eigenvalues (SD)','WS%v_cmplxspace failed') + if(WS%i_fail /=0 ) call LINEAR_ALGEBRA_error(' _XGEEV_ ','WS%v_cmplxspace failed') ! WS%dim=int(real(WS%v_cmplx(1))) deallocate(WS%v_cmplx) YAMBO_ALLOC(WS%v_cmplx,(WS%dim)) - call M_eigenvalues(n,M,E,V_left,V_right,WS%v_cmplx,WS%dim,WS%v_real,WS%i_fail) + + ! + ! use magma (if available) + ! +#if defined _MAGMA + ! + call msg('sr','SERIAL diagonalization with magma') ! - if(WS%i_fail.ne.0) call LINEAR_ALGEBRA_error('M_eigenvalues (SD)','failed') + if (.not.magma_init_done) then + call msg('sr','Initializing magma library in geev') + call magma_setup() + endif + ! + call _MAGMAF_XGEEV_(MagmaVec,MagmaVec, n,M,n,E,V_left,n,V_right,n,& +& WS%v_cmplx,WS%dim,WS%v_real,WS%i_fail) + ! +#else + ! + ! use lapack (otherwise) + ! + call msg('sr','SERIAL diagonalization with lapack') + ! + call _XGEEV_('V','V',n,M,n,E,V_left,n,V_right,n,WS%v_cmplx,WS%dim,WS%v_real,WS%i_fail) + ! +#endif + ! + if(WS%i_fail.ne.0) call LINEAR_ALGEBRA_error(' _XGEEV_ ','failed') ! call LINEAR_ALGEBRA_WS_reset(WS) ! + ! Thread safety +#if defined _OPENMP + call omp_set_num_threads(nthreads_save) +#endif + ! + ! call timing('SERIAL_diagonalization',OPR='stop') ! end subroutine diff --git a/src/modules/mod_linear_algebra.F b/src/modules/mod_linear_algebra.F index 43be87dfe5..c9ab5c0479 100644 --- a/src/modules/mod_linear_algebra.F +++ b/src/modules/mod_linear_algebra.F @@ -10,13 +10,9 @@ module linear_algebra use iso_c_binding use iso_fortran_env, ONLY: int64 ! - use pars, ONLY: SP,schlen + use pars, ONLY: SP,schlen #ifdef _MAGMA - use magma, ONLY: magmaf_init,magmaf_queue_create, & -& magmaf_cgeev_m,magmaf_zgeev_m,MagmaVec -#endif -#ifdef _OPENMP - use omp_lib + use magma, ONLY: magmaf_init,magmaf_queue_create #endif ! #include @@ -35,8 +31,13 @@ module linear_algebra ! ! magma vars ! - integer(int64) :: magma_queue !! magma_queue_t - logical :: magma_init_done = .false. + integer(int64) :: magma_queue !! magma_queue_t + logical :: magma_init_done = .false. +#if defined _MAGMA + logical, parameter :: have_magma=.true. +#else + logical, parameter :: have_magma=.false. +#endif ! ! Common Work Space ! @@ -67,11 +68,6 @@ module linear_algebra public :: LU_factorization public :: LU_inversion public :: SV_decomposition - public :: M_eigenvalues - ! - interface M_eigenvalues - module procedure heev,geev - end interface ! contains ! @@ -98,15 +94,6 @@ subroutine LINEAR_ALGEBRA_WS_reset(WS) YAMBO_FREE(WS%vp_int) YAMBO_FREE(WS%v_int) else - if(allocated(WS%v_real)) deallocate(WS%v_real) - if(allocated(WS%vp_real)) deallocate(WS%vp_real) - if(allocated(WS%v_cmplx)) deallocate(WS%v_cmplx) - if(allocated(WS%vp_cmplx)) deallocate(WS%vp_cmplx) - if(allocated(WS%m1_cmplx)) deallocate(WS%m1_cmplx) - if(allocated(WS%m2_cmplx)) deallocate(WS%m2_cmplx) - if(allocated(WS%vp_int)) deallocate(WS%vp_int) - if(allocated(WS%v_int)) deallocate(WS%v_int) - ! #ifdef _CUDAF if(allocated(WS%v_real_d)) deallocate(WS%v_real_d) if(allocated(WS%vp_real_d)) deallocate(WS%vp_real_d) @@ -123,6 +110,16 @@ subroutine LINEAR_ALGEBRA_WS_reset(WS) ! !call error("[GPU] openacc FREE not implemented in LinAlg_WS_reset") #endif + ! + if(allocated(WS%v_real)) deallocate(WS%v_real) + if(allocated(WS%vp_real)) deallocate(WS%vp_real) + if(allocated(WS%v_cmplx)) deallocate(WS%v_cmplx) + if(allocated(WS%vp_cmplx)) deallocate(WS%vp_cmplx) + if(allocated(WS%m1_cmplx)) deallocate(WS%m1_cmplx) + if(allocated(WS%m2_cmplx)) deallocate(WS%m2_cmplx) + if(allocated(WS%vp_int)) deallocate(WS%vp_int) + if(allocated(WS%v_int)) deallocate(WS%v_int) + ! endif ! end subroutine @@ -216,61 +213,4 @@ subroutine heev(msize,M,E_real,work,lwork,rwk,ifail) ! end subroutine heev ! - subroutine geev(msize,M,E_cmpl,V_left,V_right,work,lwork,rwk,ifail) - ! - use com, ONLY:msg - ! - integer, intent(in) :: msize,lwork - integer, intent(out) :: ifail - real(SP), intent(out) :: rwk(*) - complex(SP),intent(out) :: E_cmpl(*),V_left(msize,*),V_right(msize,*),work(*) - complex(SP),intent(inout) :: M(msize,*) - ! - integer :: nthreads - ! - ! - ! use magma (if available) - ! -#if defined _MAGMA - ! - if (.not.magma_init_done) then - call msg('sr','Initializing magma library in geev') - call magma_setup() - endif - call msg('sr','SERIAL diagonalization with magma') - ! -# if defined _OPENMP - ! thread safety - nthreads=omp_get_max_threads() - call omp_set_num_threads(1) -# endif - ! -# if defined _DOUBLE - call magmaf_zgeev_m(MagmaVec,MagmaVec, msize,M,msize,E_cmpl,V_left,msize,V_right,msize,& -& work,lwork,rwk,ifail) -# else - call magmaf_cgeev_m(MagmaVec,MagmaVec, msize,M,msize,E_cmpl,V_left,msize,V_right,msize,& -& work,lwork,rwk,ifail) -# endif - ! -# if defined _OPENMP - call omp_set_num_threads(nthreads) -# endif - ! -#else - ! - call msg('sr','SERIAL diagonalization with lapack') - ! - ! use lapack - ! -# if defined _DOUBLE - call ZGEEV('V','V',msize,M,msize,E_cmpl,V_left,msize,V_right,msize,work,lwork,rwk,ifail) -# else - call CGEEV('V','V',msize,M,msize,E_cmpl,V_left,msize,V_right,msize,work,lwork,rwk,ifail) -# endif - ! -#endif - ! - end subroutine geev - ! end module linear_algebra From e63a9beeb9d356e3379900cf2eb6883817786ccc Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Sat, 1 Mar 2025 08:52:25 +0100 Subject: [PATCH 28/36] HEEV also eliminated from module and merged in SERIAL_HERM_diago. --- .../SERIAL_HERMITIAN_diagonalization.F | 95 ++++++++++++++----- src/linear_algebra/SERIAL_diagonalization.F | 23 ++--- src/modules/mod_linear_algebra.F | 21 +--- 3 files changed, 82 insertions(+), 57 deletions(-) diff --git a/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F b/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F index b353516d0e..dc70ee35a0 100644 --- a/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F +++ b/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F @@ -7,12 +7,19 @@ ! subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) ! - use magma - use pars, ONLY:SP - use drivers, ONLY:l_nl_optics,l_real_time - use linear_algebra, ONLY:LINEAR_ALGEBRA_error,& -& LINEAR_ALGEBRA_WS_reset,LALGEBRA_WS - use timing_m, ONLY:timing + use pars, ONLY: SP + use drivers, ONLY: l_nl_optics,l_real_time + use linear_algebra, ONLY: LINEAR_ALGEBRA_error,LINEAR_ALGEBRA_WS_reset,LALGEBRA_WS,& +& magma_init_done,magma_setup + use timing_m, ONLY: timing + use com, ONLY: msg +#ifdef _MAGMA + use magma, ONLY: magmaf_cheevd_m,magmaf_zheevd_m,MagmaVec +#endif +#ifdef _OPENMP + use omp_lib +#endif + ! #include ! integer :: n @@ -23,8 +30,31 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) integer :: lwork, lrwork, liwork type(LALGEBRA_WS) :: WS ! - ! MAGMA - call magmaf_init() + integer :: nthreads_save + + ! + ! name aliasing + ! +#if defined _DOUBLE +# define _XHEEV_ ZHEEV +# define _MAGMAF_XHEEV_ magmaf_ZHEEVD_m +#else +# define _XHEEV_ CHEEV +# define _MAGMAF_XHEEV_ magmaf_CHEEVD_m +#endif + ! + if(.not.(l_nl_optics.or.l_real_time)) then + call timing('SERIAL_HERMITIAN_diagonalization',OPR='start') + endif + ! + ! Thread safety +#if defined _OPENMP + nthreads_save=omp_get_max_threads() + call omp_set_num_threads(1) +#endif + + ! + ! Workspace ! lwork=-1 lrwork=-1 @@ -33,19 +63,21 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) allocate(WS%v_real(1)) allocate(WS%v_int(1)) ! - if(.not.(l_nl_optics.or.l_real_time)) then - call timing('SERIAL_HERMITIAN_diagonalization',OPR='start') - endif - ! - ! Query lwork, lrwork, liwork - ! -#if defined _DOUBLE - call ZHEEV('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) +#if defined _MAGMA + ! + if (.not.magma_init_done) then + call msg('sr','Initializing magma library in geev') + call magma_setup() + endif + ! + call _MAGMAF_XHEEV_(1,'v','u', n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,& +& lrwork,WS%v_int,liwork,WS%i_fail) #else - call magmaf_cheevd_m(2,'v','u',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,lrwork,WS%v_int,liwork,WS%i_fail) + call _XHEEV_('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) #endif ! - ! Allocate v_cmplx, v_real, v_int + if(WS%i_fail /=0 ) call LINEAR_ALGEBRA_error(' _XHEEV_ ','WS%v_cmplx size query failed') + ! ! lwork=nint(real(WS%v_cmplx(1))) lrwork=nint(WS%v_real(1)) @@ -63,22 +95,33 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) allocate(WS%v_real(lrwork)) allocate(WS%v_int(liwork)) endif + + ! + ! use magma (if available) + ! +#if defined _MAGMA + ! + call _MAGMAF_XHEEV_(1,'v','u',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,& +& lrwork,WS%v_int,liwork,WS%i_fail) ! - ! Compute eigenvalues - ! -#if defined _DOUBLE - call ZHEEV('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) - if(WS%i_fail.ne.0) call LINEAR_ALGEBRA_error(subname,'performing ZHEEV') #else - call magmaf_cheevd_m(2,'v','u',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,lrwork,WS%v_int,liwork,WS%i_fail) - if(WS%i_fail.ne.0) call LINEAR_ALGEBRA_error(subname,'performing CHEEV') + ! + call _XHEEV_('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) + ! #endif + ! + if(WS%i_fail /= 0) call LINEAR_ALGEBRA_error(' _XHEEV_ ','failed') ! call LINEAR_ALGEBRA_WS_reset(WS) + ! + ! Thread safety +#if defined _OPENMP + call omp_set_num_threads(nthreads_save) +#endif ! if(.not.(l_nl_optics.or.l_real_time)) then call timing('SERIAL_HERMITIAN_diagonalization',OPR='stop') endif ! - call magmaf_finalize() end subroutine + diff --git a/src/linear_algebra/SERIAL_diagonalization.F b/src/linear_algebra/SERIAL_diagonalization.F index 652c456742..5a2a554ab9 100644 --- a/src/linear_algebra/SERIAL_diagonalization.F +++ b/src/linear_algebra/SERIAL_diagonalization.F @@ -55,19 +55,25 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) #endif ! - ! workspace + ! Workspace ! allocate(WS%v_cmplx(1)) YAMBO_ALLOC(WS%v_real,(2*n)) ! #if defined _MAGMA - call _MAGMAF_XGEEV_(MagmaVec,MagmaVec, n,M,n,E,V_left,n,V_right,n,& -& WS%v_cmplx,-1,WS%v_real,WS%i_fail) + ! + if (.not.magma_init_done) then + call msg('sr','Initializing magma library in geev') + call magma_setup() + endif + ! + call _MAGMAF_XGEEV_(MagmaVec,MagmaVec, n,M,n,E,V_left,n,V_right,n,& +& WS%v_cmplx,-1,WS%v_real,WS%i_fail) #else - call _XGEEV_('V','V',n,M,n,E,V_left,n,V_right,n,WS%v_cmplx,-1,WS%v_real,WS%i_fail) + call _XGEEV_('V','V',n,M,n,E,V_left,n,V_right,n,WS%v_cmplx,-1,WS%v_real,WS%i_fail) #endif ! - if(WS%i_fail /=0 ) call LINEAR_ALGEBRA_error(' _XGEEV_ ','WS%v_cmplxspace failed') + if(WS%i_fail /=0 ) call LINEAR_ALGEBRA_error(' _XGEEV_ ','WS%v_cmplx size query failed') ! WS%dim=int(real(WS%v_cmplx(1))) deallocate(WS%v_cmplx) @@ -80,11 +86,6 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) ! call msg('sr','SERIAL diagonalization with magma') ! - if (.not.magma_init_done) then - call msg('sr','Initializing magma library in geev') - call magma_setup() - endif - ! call _MAGMAF_XGEEV_(MagmaVec,MagmaVec, n,M,n,E,V_left,n,V_right,n,& & WS%v_cmplx,WS%dim,WS%v_real,WS%i_fail) ! @@ -98,7 +99,7 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) ! #endif ! - if(WS%i_fail.ne.0) call LINEAR_ALGEBRA_error(' _XGEEV_ ','failed') + if(WS%i_fail /= 0) call LINEAR_ALGEBRA_error(' _XGEEV_ ','failed') ! call LINEAR_ALGEBRA_WS_reset(WS) ! diff --git a/src/modules/mod_linear_algebra.F b/src/modules/mod_linear_algebra.F index c9ab5c0479..dad65891ac 100644 --- a/src/modules/mod_linear_algebra.F +++ b/src/modules/mod_linear_algebra.F @@ -193,24 +193,5 @@ subroutine LU_inversion(msize,M,ipvt,work,lwork,ifail) ! end subroutine LU_inversion ! - !============================== - ! EIGENVALUES AND EIGENVECTORS - !============================== - ! - subroutine heev(msize,M,E_real,work,lwork,rwk,ifail) - ! - integer, intent(in) :: msize,lwork - integer, intent(out) :: ifail - real(SP), intent(out) :: E_real(*), rwk(*) - complex(SP),intent(out) :: work(*) - complex(SP),intent(inout) :: M(msize,*) - ! -#if defined _DOUBLE - call ZHEEV('V','U',msize,M,msize,E_real,work,lwork,rwk,ifail) -#else - call CHEEV('V','U',msize,M,msize,E_real,work,lwork,rwk,ifail) -#endif - ! - end subroutine heev - ! end module linear_algebra + From 5fe1ba87fb79fd123a96130f16b66abd599499b0 Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Sat, 1 Mar 2025 21:14:12 +0100 Subject: [PATCH 29/36] further rationalization of LA drivers --- .../SERIAL_HERMITIAN_diagonalization.F | 34 ++++----- src/linear_algebra/SERIAL_diagonalization.F | 32 +++------ src/modules/mod_linear_algebra.F | 71 ++++++++++++++++++- 3 files changed, 95 insertions(+), 42 deletions(-) diff --git a/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F b/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F index dc70ee35a0..da6fb12499 100644 --- a/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F +++ b/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F @@ -10,12 +10,13 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) use pars, ONLY: SP use drivers, ONLY: l_nl_optics,l_real_time use linear_algebra, ONLY: LINEAR_ALGEBRA_error,LINEAR_ALGEBRA_WS_reset,LALGEBRA_WS,& -& magma_init_done,magma_setup - use timing_m, ONLY: timing - use com, ONLY: msg +& magma_init_done,magma_setup,xheev #ifdef _MAGMA - use magma, ONLY: magmaf_cheevd_m,magmaf_zheevd_m,MagmaVec + use magma, ONLY: magmaf_cheevd_m, magmaf_zheevd_m +! use linear_algebra, ONLY: magmaf_xheevd_m #endif + use timing_m, ONLY: timing + use com, ONLY: msg #ifdef _OPENMP use omp_lib #endif @@ -32,17 +33,12 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) ! integer :: nthreads_save - ! - ! name aliasing - ! #if defined _DOUBLE -# define _XHEEV_ ZHEEV -# define _MAGMAF_XHEEV_ magmaf_ZHEEVD_m +# define magmaf_xheevd_m magmaf_zheevd_m #else -# define _XHEEV_ CHEEV -# define _MAGMAF_XHEEV_ magmaf_CHEEVD_m +# define magmaf_xheevd_m magmaf_cheevd_m #endif - ! + if(.not.(l_nl_optics.or.l_real_time)) then call timing('SERIAL_HERMITIAN_diagonalization',OPR='start') endif @@ -70,10 +66,10 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) call magma_setup() endif ! - call _MAGMAF_XHEEV_(1,'v','u', n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,& -& lrwork,WS%v_int,liwork,WS%i_fail) + call magmaf_xheevd_m(1,'v','u', n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,& +& lrwork,WS%v_int,liwork,WS%i_fail) #else - call _XHEEV_('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) + call xheev('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) #endif ! if(WS%i_fail /=0 ) call LINEAR_ALGEBRA_error(' _XHEEV_ ','WS%v_cmplx size query failed') @@ -101,16 +97,16 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) ! #if defined _MAGMA ! - call _MAGMAF_XHEEV_(1,'v','u',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,& -& lrwork,WS%v_int,liwork,WS%i_fail) + call magmaf_xheevd_m(1,'v','u',n, M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,& +& lrwork,WS%v_int,liwork,WS%i_fail) ! #else ! - call _XHEEV_('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) + call xheev('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) ! #endif ! - if(WS%i_fail /= 0) call LINEAR_ALGEBRA_error(' _XHEEV_ ','failed') + if(WS%i_fail /= 0) call LINEAR_ALGEBRA_error(' XHEEV ','failed') ! call LINEAR_ALGEBRA_WS_reset(WS) ! diff --git a/src/linear_algebra/SERIAL_diagonalization.F b/src/linear_algebra/SERIAL_diagonalization.F index 5a2a554ab9..003ebeb1d9 100644 --- a/src/linear_algebra/SERIAL_diagonalization.F +++ b/src/linear_algebra/SERIAL_diagonalization.F @@ -15,14 +15,14 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) ! V_left(j)**H * M = E(j) * V_left(j)**H ! where V_left(j)**H denotes the conjugate transpose of V_left(j). ! - use pars, ONLY: SP - use linear_algebra,ONLY: LINEAR_ALGEBRA_error,LINEAR_ALGEBRA_WS_reset,LALGEBRA_WS,& -& magma_init_done,magma_setup,have_magma - use timing_m, ONLY: timing - use com, ONLY: msg + use pars, ONLY: SP + use linear_algebra, ONLY: LINEAR_ALGEBRA_error,LINEAR_ALGEBRA_WS_reset,LALGEBRA_WS,& +& magma_init_done,magma_setup,xgeev #ifdef _MAGMA - use magma, ONLY: magmaf_cgeev_m,magmaf_zgeev_m,MagmaVec + use linear_algebra, ONLY: magmaf_xgeev_m #endif + use timing_m, ONLY: timing + use com, ONLY: msg #ifdef _OPENMP use omp_lib #endif @@ -35,17 +35,7 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) ! integer :: nthreads_save - ! - ! name aliasing - ! -#if defined _DOUBLE -# define _XGEEV_ ZGEEV -# define _MAGMAF_XGEEV_ magmaf_ZGEEV_m -#else -# define _XGEEV_ CGEEV -# define _MAGMAF_XGEEV_ magmaf_CGEEV_m -#endif - ! + call timing('SERIAL_diagonalization',OPR='start') ! ! Thread safety @@ -67,10 +57,10 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) call magma_setup() endif ! - call _MAGMAF_XGEEV_(MagmaVec,MagmaVec, n,M,n,E,V_left,n,V_right,n,& + call magmaf_xgeev_m('V','V', n,M,n,E,V_left,n,V_right,n,& & WS%v_cmplx,-1,WS%v_real,WS%i_fail) #else - call _XGEEV_('V','V',n,M,n,E,V_left,n,V_right,n,WS%v_cmplx,-1,WS%v_real,WS%i_fail) + call xgeev('V','V',n,M,n,E,V_left,n,V_right,n,WS%v_cmplx,-1,WS%v_real,WS%i_fail) #endif ! if(WS%i_fail /=0 ) call LINEAR_ALGEBRA_error(' _XGEEV_ ','WS%v_cmplx size query failed') @@ -86,7 +76,7 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) ! call msg('sr','SERIAL diagonalization with magma') ! - call _MAGMAF_XGEEV_(MagmaVec,MagmaVec, n,M,n,E,V_left,n,V_right,n,& + call magmaf_xgeev_m('V','V', n,M,n,E,V_left,n,V_right,n,& & WS%v_cmplx,WS%dim,WS%v_real,WS%i_fail) ! #else @@ -95,7 +85,7 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) ! call msg('sr','SERIAL diagonalization with lapack') ! - call _XGEEV_('V','V',n,M,n,E,V_left,n,V_right,n,WS%v_cmplx,WS%dim,WS%v_real,WS%i_fail) + call xgeev('V','V',n,M,n,E,V_left,n,V_right,n,WS%v_cmplx,WS%dim,WS%v_real,WS%i_fail) ! #endif ! diff --git a/src/modules/mod_linear_algebra.F b/src/modules/mod_linear_algebra.F index dad65891ac..edf688d380 100644 --- a/src/modules/mod_linear_algebra.F +++ b/src/modules/mod_linear_algebra.F @@ -9,10 +9,11 @@ module linear_algebra ! use iso_c_binding use iso_fortran_env, ONLY: int64 - ! use pars, ONLY: SP,schlen + ! #ifdef _MAGMA - use magma, ONLY: magmaf_init,magmaf_queue_create + use magma, ONLY: magmaf_init,magmaf_queue_create,& +& magmaf_cgeev_m,magmaf_zgeev_m,MagmaVec #endif ! #include @@ -64,12 +65,78 @@ module linear_algebra integer , allocatable DEV_ATTR :: vp_int_d(:) ! end type LALGEBRA_WS + + ! + !=============== + ! INTERFACES + !=============== + ! + interface xgeev + subroutine zgeev(jobvl,jobvr,n,A,lda,w,vl,ldvl,vr,ldvr,work,lwork,rwork,info) + use iso_fortran_env, ONLY : WP => real64 + character(1) :: jobvl,jobvr + integer :: n,lda,ldvl,ldvr,lwork,info + complex(WP) :: w(*), A(lda,*), vl(ldvl,*), vr(ldvr,*), work(*) + real(WP) :: rwork(*) + end subroutine + subroutine cgeev(jobvl,jobvr,n,A,lda,w,vl,ldvl,vr,ldvr,work,lwork,rwork,info) + use iso_fortran_env, ONLY : WP => real32 + character(1) :: jobvl,jobvr + integer :: n,lda,ldvl,ldvr,lwork,info + complex(WP) :: w(*), A(lda,*), vl(ldvl,*), vr(ldvr,*), work(*) + real(WP) :: rwork(*) + end subroutine + end interface + ! + interface xheev + subroutine zheev(jobz,uplo,n,A,lda,w,work,lwork,rwork,info) + use iso_fortran_env, ONLY : WP => real64 + character(1) :: jobz,uplo + integer :: n,lda,lwork,info + complex(WP) :: A(lda,*), work(*) + real(WP) :: w(*), rwork(*) + end subroutine + subroutine cheev(jobz,uplo,n,A,lda,w,work,lwork,rwork,info) + use iso_fortran_env, ONLY : WP => real32 + character(1) :: jobz,uplo + integer :: n,lda,lwork,info + complex(WP) :: A(lda,*), work(*) + real(WP) :: w(*), rwork(*) + end subroutine + end interface + ! +#ifdef _MAGMA + ! + interface magmaf_xgeev_m + procedure :: magmaf_cgeev_m,magmaf_zgeev_m + end interface + ! + interface magmaf_xheevd_m + procedure :: magmaf_cheevd_m,magmaf_zheevd_m + end interface + ! +#endif + + + + ! + !==================== + ! PUBLIC STATEMENTS + !==================== ! public :: LU_factorization public :: LU_inversion public :: SV_decomposition + public :: xgeev,xheev +#ifdef _MAGMA + public :: magmaf_xgeev_m,magmaf_xheevd_m +#endif ! contains + ! + !============================ + ! AUXILIARY FUNCTIONS + !============================ ! subroutine LINEAR_ALGEBRA_WS_reset(WS) use drivers, ONLY:l_nl_optics,l_real_time From abf0d00afc2c4960fbf502ee84f6a69360848126 Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Sat, 1 Mar 2025 22:08:50 +0100 Subject: [PATCH 30/36] LA interfaces and modules further rationalized --- Discussion_AD_DS_20250225.dat | 13 +- .../SERIAL_HERMITIAN_diagonalization.F | 6 +- src/linear_algebra/SERIAL_SVD_inversion.F | 9 +- src/linear_algebra/SERIAL_diagonalization.F | 6 +- src/linear_algebra/SERIAL_inversion.F | 11 +- src/modules/mod_linear_algebra.F | 155 ++++++++++-------- 6 files changed, 111 insertions(+), 89 deletions(-) diff --git a/Discussion_AD_DS_20250225.dat b/Discussion_AD_DS_20250225.dat index 92c775fd89..6f06a2d10b 100644 --- a/Discussion_AD_DS_20250225.dat +++ b/Discussion_AD_DS_20250225.dat @@ -4,12 +4,6 @@ OVERALL philosophy ----------------------- -- mod_wrapper --> wrapper yambo for single and double to blas --> when available calls devxlib single and double subroutines - -- mod_linear algebra has wrappers single and double to few selected lapack - --> LU_factorization - --> SV_decomposition - - dedicated subroutines which interfaces lapack or magma (single and double precision version), and serial or parallel (?) SERIAL_HERMITIAN_diagonalization --> could be renamed HEEV @@ -37,3 +31,10 @@ DONE - To be removed: M_eigenvalues, heev and geev interfaces + +- mod_wrapper --> wrapper yambo for single and double to blas --> when available calls devxlib single and double subroutines + +- mod_linear algebra has wrappers single and double to few selected lapack + --> LU_factorization + --> SV_decomposition + diff --git a/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F b/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F index da6fb12499..ba265a4e39 100644 --- a/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F +++ b/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F @@ -10,7 +10,7 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) use pars, ONLY: SP use drivers, ONLY: l_nl_optics,l_real_time use linear_algebra, ONLY: LINEAR_ALGEBRA_error,LINEAR_ALGEBRA_WS_reset,LALGEBRA_WS,& -& magma_init_done,magma_setup,xheev +& magma_init_done,magma_setup,la_xheev #ifdef _MAGMA use magma, ONLY: magmaf_cheevd_m, magmaf_zheevd_m ! use linear_algebra, ONLY: magmaf_xheevd_m @@ -69,7 +69,7 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) call magmaf_xheevd_m(1,'v','u', n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,& & lrwork,WS%v_int,liwork,WS%i_fail) #else - call xheev('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) + call la_xheev('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) #endif ! if(WS%i_fail /=0 ) call LINEAR_ALGEBRA_error(' _XHEEV_ ','WS%v_cmplx size query failed') @@ -102,7 +102,7 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) ! #else ! - call xheev('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) + call la_xheev('V','U',n,M,size(M,1),E,WS%v_cmplx,lwork,WS%v_real,WS%i_fail) ! #endif ! diff --git a/src/linear_algebra/SERIAL_SVD_inversion.F b/src/linear_algebra/SERIAL_SVD_inversion.F index 1e0ab201fe..fb95c78e95 100644 --- a/src/linear_algebra/SERIAL_SVD_inversion.F +++ b/src/linear_algebra/SERIAL_SVD_inversion.F @@ -9,7 +9,7 @@ subroutine SERIAL_SVD_inversion(n,M,SVD_digits) ! use pars, ONLY:SP,cZERO use wrapper, ONLY:M_by_M - use linear_algebra, ONLY:LINEAR_ALGEBRA_error,SV_decomposition,& + use linear_algebra, ONLY:LINEAR_ALGEBRA_error,la_xgesvd,& & LINEAR_ALGEBRA_WS_reset,LALGEBRA_WS use timing_m, ONLY:timing #include @@ -31,14 +31,17 @@ subroutine SERIAL_SVD_inversion(n,M,SVD_digits) YAMBO_ALLOC(WS%m1_cmplx,(n,n)) allocate(WS%v_cmplx(1)) ! - call SV_decomposition(n,M,WS%vp_real,WS%m2_cmplx,WS%m1_cmplx,WS%v_cmplx,-1,WS%v_real,WS%i_fail) + call la_xgesvd('S','A',n,n,M,n,WS%vp_real,WS%m2_cmplx,n,WS%m1_cmplx,n,& +& WS%v_cmplx,-1,WS%v_real,WS%i_fail) ! if(WS%i_fail/=0) call LINEAR_ALGEBRA_error('GESVD (SVD)','WS%v_cmplxspace failed') ! WS%dim=int(real(WS%v_cmplx(1))) deallocate(WS%v_cmplx) YAMBO_ALLOC(WS%v_cmplx,(WS%dim)) - call SV_decomposition(n,M,WS%vp_real,WS%m2_cmplx,WS%m1_cmplx,WS%v_cmplx,WS%dim,WS%v_real,WS%i_fail) + ! + call la_xgesvd('S','A',n,n,M,n,WS%vp_real,WS%m2_cmplx,n,WS%m1_cmplx,n,& +& WS%v_cmplx,WS%dim,WS%v_real,WS%i_fail) ! if(WS%i_fail/=0) call LINEAR_ALGEBRA_error('GESVD (SVD)','failed') ! diff --git a/src/linear_algebra/SERIAL_diagonalization.F b/src/linear_algebra/SERIAL_diagonalization.F index 003ebeb1d9..9707fde5c7 100644 --- a/src/linear_algebra/SERIAL_diagonalization.F +++ b/src/linear_algebra/SERIAL_diagonalization.F @@ -17,7 +17,7 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) ! use pars, ONLY: SP use linear_algebra, ONLY: LINEAR_ALGEBRA_error,LINEAR_ALGEBRA_WS_reset,LALGEBRA_WS,& -& magma_init_done,magma_setup,xgeev +& magma_init_done,magma_setup,la_xgeev #ifdef _MAGMA use linear_algebra, ONLY: magmaf_xgeev_m #endif @@ -60,7 +60,7 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) call magmaf_xgeev_m('V','V', n,M,n,E,V_left,n,V_right,n,& & WS%v_cmplx,-1,WS%v_real,WS%i_fail) #else - call xgeev('V','V',n,M,n,E,V_left,n,V_right,n,WS%v_cmplx,-1,WS%v_real,WS%i_fail) + call la_xgeev('V','V',n,M,n,E,V_left,n,V_right,n,WS%v_cmplx,-1,WS%v_real,WS%i_fail) #endif ! if(WS%i_fail /=0 ) call LINEAR_ALGEBRA_error(' _XGEEV_ ','WS%v_cmplx size query failed') @@ -85,7 +85,7 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) ! call msg('sr','SERIAL diagonalization with lapack') ! - call xgeev('V','V',n,M,n,E,V_left,n,V_right,n,WS%v_cmplx,WS%dim,WS%v_real,WS%i_fail) + call la_xgeev('V','V',n,M,n,E,V_left,n,V_right,n,WS%v_cmplx,WS%dim,WS%v_real,WS%i_fail) ! #endif ! diff --git a/src/linear_algebra/SERIAL_inversion.F b/src/linear_algebra/SERIAL_inversion.F index 79c489e57b..69b6249cee 100644 --- a/src/linear_algebra/SERIAL_inversion.F +++ b/src/linear_algebra/SERIAL_inversion.F @@ -9,7 +9,7 @@ subroutine SERIAL_inversion(n,M,det,eval_det) ! use pars, ONLY: SP,cONE use drivers, ONLY: l_nl_optics,l_real_time - use linear_algebra, ONLY: LINEAR_ALGEBRA_error,LU_factorization,LU_inversion,& + use linear_algebra, ONLY: LINEAR_ALGEBRA_error,la_xgetrf,la_xgetri,& & LINEAR_ALGEBRA_WS_reset,LALGEBRA_WS use timing_m, ONLY: timing #include @@ -29,7 +29,7 @@ subroutine SERIAL_inversion(n,M,det,eval_det) allocate(WS%v_int(n)) endif ! - call LU_factorization(n,M,WS%v_int,WS%i_fail) + call la_xgetrf(n,n,M,n,WS%v_int,WS%i_fail) ! if(WS%i_fail/=0) call LINEAR_ALGEBRA_error('GETRF (SI)','WS%v_cmplxspace failed') ! @@ -49,7 +49,9 @@ subroutine SERIAL_inversion(n,M,det,eval_det) else allocate(WS%v_cmplx(1)) endif - call LU_inversion(n,M,WS%v_int,WS%v_cmplx,-1,WS%i_fail) + ! + call la_xgetri(n,M,n,WS%v_int,WS%v_cmplx,-1,WS%i_fail) + ! WS%dim=int(real(WS%v_cmplx(1))) if(.not.(l_nl_optics.or.l_real_time)) then YAMBO_FREE(WS%v_cmplx) @@ -58,7 +60,8 @@ subroutine SERIAL_inversion(n,M,det,eval_det) deallocate(WS%v_cmplx) allocate(WS%v_cmplx(WS%dim)) endif - call LU_inversion(n,M,WS%v_int,WS%v_cmplx,WS%dim,WS%i_fail) + ! + call la_xgetri(n,M,n,WS%v_int,WS%v_cmplx,WS%dim,WS%i_fail) ! if(WS%i_fail/=0) call LINEAR_ALGEBRA_error('GETRI (SI)','failed') ! diff --git a/src/modules/mod_linear_algebra.F b/src/modules/mod_linear_algebra.F index edf688d380..0e83d5c0fe 100644 --- a/src/modules/mod_linear_algebra.F +++ b/src/modules/mod_linear_algebra.F @@ -71,7 +71,9 @@ module linear_algebra ! INTERFACES !=============== ! - interface xgeev + ! Eigensolvers + ! + interface la_xgeev subroutine zgeev(jobvl,jobvr,n,A,lda,w,vl,ldvl,vr,ldvr,work,lwork,rwork,info) use iso_fortran_env, ONLY : WP => real64 character(1) :: jobvl,jobvr @@ -88,7 +90,7 @@ subroutine cgeev(jobvl,jobvr,n,A,lda,w,vl,ldvl,vr,ldvr,work,lwork,rwork,info) end subroutine end interface ! - interface xheev + interface la_xheev subroutine zheev(jobz,uplo,n,A,lda,w,work,lwork,rwork,info) use iso_fortran_env, ONLY : WP => real64 character(1) :: jobz,uplo @@ -116,7 +118,74 @@ subroutine cheev(jobz,uplo,n,A,lda,w,work,lwork,rwork,info) end interface ! #endif - + ! + ! Singular Value Decomposition + ! + interface la_xgesvd + subroutine zgesvd(jobu,jobvt,m,n,A,lda,s,U,ldu,VT,ldvt,work,lwork,rwork,info) + use iso_fortran_env, ONLY : WP => real64 + character(1) :: jobu,jobvt + integer :: m,n,lda,ldu,ldvt,lwork,info + complex(WP) :: A(lda,*), U(ldu,*), VT(ldvt,*), work(*) + real(WP) :: s(*), rwork(*) + end subroutine + subroutine cgesvd(jobu,jobvt,m,n,A,lda,s,U,ldu,VT,ldvt,work,lwork,rwork,info) + use iso_fortran_env, ONLY : WP => real32 + character(1) :: jobu,jobvt + integer :: m,n,lda,ldu,ldvt,lwork,info + complex(WP) :: A(lda,*), U(ldu,*), VT(ldvt,*), work(*) + real(WP) :: s(*), rwork(*) + end subroutine + end interface + ! + ! Lower/Upper Factorization and Inverison + ! + interface la_xgetrf + subroutine zgetrf(m,n,A,lda,ipiv,info) + use iso_fortran_env, ONLY : WP => real64 + integer :: m,n,lda,info + integer :: ipiv(*) + complex(WP) :: A(lda,*) + end subroutine + subroutine cgetrf(m,n,A,lda,ipiv,info) + use iso_fortran_env, ONLY : WP => real32 + integer :: m,n,lda,info + integer :: ipiv(*) + complex(WP) :: A(lda,*) + end subroutine + end interface + ! + interface la_xgetri + subroutine zgetri(n,A,lda,ipiv,work,lwork,info) + use iso_fortran_env, ONLY : WP => real64 + integer :: n,lda,info,lwork + integer :: ipiv(*) + complex(WP) :: A(lda,*), work(*) + end subroutine + subroutine cgetri(n,A,lda,ipiv,work,lwork,info) + use iso_fortran_env, ONLY : WP => real32 + integer :: n,lda,info,lwork + integer :: ipiv(*) + complex(WP) :: A(lda,*), work(*) + end subroutine + end interface + ! + interface la_xgetrs + subroutine zgetrs(trans,n,nrhs,A,lda,ipiv,B,ldb,info) + use iso_fortran_env, ONLY : WP => real64 + character(1) :: trans + integer :: n,nrhs,lda,ldb,info + integer :: ipiv(*) + complex(WP) :: A(lda,*), B(ldb,*) + end subroutine + subroutine cgetrs(trans,n,nrhs,A,lda,ipiv,B,ldb,info) + use iso_fortran_env, ONLY : WP => real32 + character(1) :: trans + integer :: n,nrhs,lda,ldb,info + integer :: ipiv(*) + complex(WP) :: A(lda,*), B(ldb,*) + end subroutine + end interface ! @@ -124,13 +193,13 @@ subroutine cheev(jobz,uplo,n,A,lda,w,work,lwork,rwork,info) ! PUBLIC STATEMENTS !==================== ! - public :: LU_factorization - public :: LU_inversion - public :: SV_decomposition - public :: xgeev,xheev + public :: la_xgeev, la_xheev #ifdef _MAGMA public :: magmaf_xgeev_m,magmaf_xheevd_m #endif + public :: la_xgesvd + public :: la_xgetrf, la_xgetri, la_xgetrs + ! ! contains ! @@ -138,6 +207,15 @@ subroutine cheev(jobz,uplo,n,A,lda,w,work,lwork,rwork,info) ! AUXILIARY FUNCTIONS !============================ ! + subroutine magma_setup() +#ifdef _MAGMA + call magmaf_init() + call magmaf_queue_create( 0, magma_queue ) + magma_init_done=.true. +#endif + return + end subroutine + ! subroutine LINEAR_ALGEBRA_WS_reset(WS) use drivers, ONLY:l_nl_optics,l_real_time type(LALGEBRA_WS) :: WS @@ -197,68 +275,5 @@ subroutine LINEAR_ALGEBRA_error(calling_subr,message_) call error( trim( STRING_pack('LINEAR ALGEBRA driver [',trim(calling_subr),'] ',trim(message_)) )) end subroutine ! - subroutine magma_setup() -#ifdef _MAGMA - call magmaf_init() - call magmaf_queue_create( 0, magma_queue ) - magma_init_done=.true. -#endif - return - end subroutine - ! - !============================ - ! SINGLE VALUE DECOMPOSITION - !============================ - ! - subroutine SV_decomposition(msize, M, SV, U, VH, work, lwork, r_WK, ifail) - ! - integer, intent(in) :: msize, lwork - integer, intent(out) :: ifail - ! - real(SP), intent(out) :: r_WK(*), SV(*) - complex(SP),intent(inout):: M(msize,*) - complex(SP),intent(out) :: U(msize,*), VH(msize,*), work(*) - ! -#if defined _DOUBLE - call ZGESVD('S','A',msize,msize,M,msize,SV,U,msize,VH,msize,work,lwork,r_WK,ifail) -#else - call CGESVD('S','A',msize,msize,M,msize,SV,U,msize,VH,msize,work,lwork,r_WK,ifail) -#endif - ! - end subroutine SV_decomposition - ! - !========================================= - ! LOWER/UPPER FACTORIZATION and INVERISON - !========================================= - ! - subroutine LU_factorization(msize,M,ipvt,ifail) - ! - integer, intent(in) :: msize - integer, intent(out) :: ifail, ipvt(*) - complex(SP), intent(inout):: M(msize,*) - ! -#if defined _DOUBLE - call zgetrf(msize,msize,M,msize,ipvt,ifail) -#else - call cgetrf(msize,msize,M,msize,ipvt,ifail) -#endif - ! - end subroutine LU_factorization - ! - subroutine LU_inversion(msize,M,ipvt,work,lwork,ifail) - ! - integer, intent(in) :: msize, lwork, ipvt(*) - integer, intent(out) :: ifail - complex(SP), intent(inout):: M(msize,*) - complex(SP), intent(out) :: work(*) - ! -#if defined _DOUBLE - call zgetri(msize,M,msize,ipvt,work,lwork,ifail) -#else - call cgetri(msize,M,msize,ipvt,work,lwork,ifail) -#endif - ! - end subroutine LU_inversion - ! end module linear_algebra From 0fa49796cfe65413b47dfcc461a89b52881305a4 Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Sun, 2 Mar 2025 13:13:52 +0100 Subject: [PATCH 31/36] cleanup of interfaces in the case of magma --- .../SERIAL_HERMITIAN_diagonalization.F | 1 - src/linear_algebra/SERIAL_diagonalization.F | 7 +++++- src/modules/mod_linear_algebra.F | 22 +++++++++---------- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F b/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F index ba265a4e39..6108a72c96 100644 --- a/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F +++ b/src/linear_algebra/SERIAL_HERMITIAN_diagonalization.F @@ -13,7 +13,6 @@ subroutine SERIAL_HERMITIAN_diagonalization(n,M,E) & magma_init_done,magma_setup,la_xheev #ifdef _MAGMA use magma, ONLY: magmaf_cheevd_m, magmaf_zheevd_m -! use linear_algebra, ONLY: magmaf_xheevd_m #endif use timing_m, ONLY: timing use com, ONLY: msg diff --git a/src/linear_algebra/SERIAL_diagonalization.F b/src/linear_algebra/SERIAL_diagonalization.F index 9707fde5c7..f3544d0885 100644 --- a/src/linear_algebra/SERIAL_diagonalization.F +++ b/src/linear_algebra/SERIAL_diagonalization.F @@ -19,7 +19,7 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) use linear_algebra, ONLY: LINEAR_ALGEBRA_error,LINEAR_ALGEBRA_WS_reset,LALGEBRA_WS,& & magma_init_done,magma_setup,la_xgeev #ifdef _MAGMA - use linear_algebra, ONLY: magmaf_xgeev_m + use magma, ONLY: magmaf_zgeev_m,magmaf_cgeev_m #endif use timing_m, ONLY: timing use com, ONLY: msg @@ -35,6 +35,11 @@ subroutine SERIAL_diagonalization(n,M,E,V_left,V_right) ! integer :: nthreads_save +#if defined _DOUBLE +# define magmaf_xgeev_m magmaf_zgeev_m +#else +# define magmaf_xgeev_m magmaf_cgeev_m +#endif call timing('SERIAL_diagonalization',OPR='start') ! diff --git a/src/modules/mod_linear_algebra.F b/src/modules/mod_linear_algebra.F index 0e83d5c0fe..b8e9d8dd7f 100644 --- a/src/modules/mod_linear_algebra.F +++ b/src/modules/mod_linear_algebra.F @@ -107,17 +107,17 @@ subroutine cheev(jobz,uplo,n,A,lda,w,work,lwork,rwork,info) end subroutine end interface ! -#ifdef _MAGMA - ! - interface magmaf_xgeev_m - procedure :: magmaf_cgeev_m,magmaf_zgeev_m - end interface - ! - interface magmaf_xheevd_m - procedure :: magmaf_cheevd_m,magmaf_zheevd_m - end interface - ! -#endif +!#ifdef _MAGMA +! ! +! interface magmaf_xgeev_m +! procedure :: magmaf_cgeev_m,magmaf_zgeev_m +! end interface +! ! +! interface magmaf_xheevd_m +! procedure :: magmaf_cheevd_m,magmaf_zheevd_m +! end interface +! ! +!#endif ! ! Singular Value Decomposition ! From 7dcff98e372d7f5b7a54a007c4c0de4842dc1722 Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Sun, 2 Mar 2025 13:14:56 +0100 Subject: [PATCH 32/36] more cleanup --- src/modules/mod_linear_algebra.F | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/mod_linear_algebra.F b/src/modules/mod_linear_algebra.F index b8e9d8dd7f..ebebd9ba20 100644 --- a/src/modules/mod_linear_algebra.F +++ b/src/modules/mod_linear_algebra.F @@ -193,10 +193,10 @@ subroutine cgetrs(trans,n,nrhs,A,lda,ipiv,B,ldb,info) ! PUBLIC STATEMENTS !==================== ! +!#ifdef _MAGMA +! public :: magmaf_xgeev_m,magmaf_xheevd_m +!#endif public :: la_xgeev, la_xheev -#ifdef _MAGMA - public :: magmaf_xgeev_m,magmaf_xheevd_m -#endif public :: la_xgesvd public :: la_xgetrf, la_xgetri, la_xgetrs ! From 2ce9b0f0761832014b021981fb33694a6c966e09 Mon Sep 17 00:00:00 2001 From: Nicola Spallanzani Date: Tue, 4 Mar 2025 15:05:10 +0100 Subject: [PATCH 33/36] added flag to prevent lapack to install in lib64 directory: see issue #189 --- lib/lapack/Makefile.loc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lapack/Makefile.loc b/lib/lapack/Makefile.loc index 02b69e3836..5d56794a2e 100644 --- a/lib/lapack/Makefile.loc +++ b/lib/lapack/Makefile.loc @@ -25,9 +25,9 @@ configure: uncompress echo "\t[$(PACKAGE)] configuration"; \ cd $(PACKAGE); \ mkdir build_static ; cd build_static ; \ - ( cmake -DCMAKE_C_COMPILER=$(cc) -DCMAKE_Fortran_COMPILER=$(fc) -DCMAKE_INSTALL_PREFIX=$(LIBPATH) -DBUILD_SHARED_LIBS=OFF .. ) >> ${compdir}/log/config_$(PACKAGE)_static.log 2>&1 ; \ + ( cmake -DCMAKE_C_COMPILER=$(cc) -DCMAKE_Fortran_COMPILER=$(fc) -DCMAKE_INSTALL_PREFIX=$(LIBPATH) -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_LIBDIR=lib .. ) >> ${compdir}/log/config_$(PACKAGE)_static.log 2>&1 ; \ cd .. ; mkdir build_shared ; cd build_shared ; \ - ( cmake -DCMAKE_C_COMPILER=$(cc) -DCMAKE_Fortran_COMPILER=$(fc) -DCMAKE_INSTALL_PREFIX=$(LIBPATH) -DBUILD_SHARED_LIBS=ON .. ) >> ${compdir}/log/config_$(PACKAGE)_shared.log 2>&1 ; \ + ( cmake -DCMAKE_C_COMPILER=$(cc) -DCMAKE_Fortran_COMPILER=$(fc) -DCMAKE_INSTALL_PREFIX=$(LIBPATH) -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_LIBDIR=lib .. ) >> ${compdir}/log/config_$(PACKAGE)_shared.log 2>&1 ; \ cd .. ; \ touch ../configured.stamp ; \ fi From da5e9f71d7aeef6a0437b499499b95f69dc5cee6 Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Thu, 6 Mar 2025 10:40:53 +0100 Subject: [PATCH 34/36] cleanup --- src/linear_algebra/LINEAR_ALGEBRA_driver.F | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/linear_algebra/LINEAR_ALGEBRA_driver.F b/src/linear_algebra/LINEAR_ALGEBRA_driver.F index 7405948b05..f78870ff16 100644 --- a/src/linear_algebra/LINEAR_ALGEBRA_driver.F +++ b/src/linear_algebra/LINEAR_ALGEBRA_driver.F @@ -79,11 +79,11 @@ subroutine LINEAR_ALGEBRA_driver(idriver,lib_in,& endif ! - ! Decide which to use among LK or SLK + ! Decide which LA lib to use ! lib_in_use=USE_LK #if defined _SCALAPACK - !lib_in_use=USE_SLK + lib_in_use=USE_SLK #endif if (present(lib_in)) then lib_in_use=lib_in From bbd7fd91adade96302d6cb29bb6d01ea2a80523b Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Fri, 7 Mar 2025 22:19:08 +0100 Subject: [PATCH 35/36] magma configuration fixed; compilation of internal fmodules working --- config/m4/gpu.m4 | 2 +- config/m4/magma.m4 | 58 +- configure | 82 +- lib/magma_fmodules/.objects | 4 +- lib/magma_fmodules/magma.F | 373 ++++ lib/magma_fmodules/magma_cfortran.F | 2086 +++++++++++++++++++++++ lib/magma_fmodules/magma_dfortran.F | 1830 ++++++++++++++++++++ lib/magma_fmodules/magma_param.F | 25 + lib/magma_fmodules/magma_sfortran.F | 1830 ++++++++++++++++++++ lib/magma_fmodules/magma_zfortran.F | 2086 +++++++++++++++++++++++ lib/magma_fmodules/mod_magma.F | 279 --- lib/magma_fmodules/mod_magma_cfortran.F | 230 --- lib/magma_fmodules/mod_magma_common.F | 378 ---- lib/magma_fmodules/mod_magma_dfortran.F | 230 --- lib/magma_fmodules/mod_magma_sfortran.F | 230 --- lib/magma_fmodules/mod_magma_zfortran.F | 230 --- 16 files changed, 8325 insertions(+), 1628 deletions(-) create mode 100644 lib/magma_fmodules/magma.F create mode 100644 lib/magma_fmodules/magma_cfortran.F create mode 100644 lib/magma_fmodules/magma_dfortran.F create mode 100644 lib/magma_fmodules/magma_param.F create mode 100644 lib/magma_fmodules/magma_sfortran.F create mode 100644 lib/magma_fmodules/magma_zfortran.F delete mode 100644 lib/magma_fmodules/mod_magma.F delete mode 100644 lib/magma_fmodules/mod_magma_cfortran.F delete mode 100644 lib/magma_fmodules/mod_magma_common.F delete mode 100644 lib/magma_fmodules/mod_magma_dfortran.F delete mode 100644 lib/magma_fmodules/mod_magma_sfortran.F delete mode 100644 lib/magma_fmodules/mod_magma_zfortran.F diff --git a/config/m4/gpu.m4 b/config/m4/gpu.m4 index 2338bc7388..2e8f32d2b8 100644 --- a/config/m4/gpu.m4 +++ b/config/m4/gpu.m4 @@ -127,7 +127,7 @@ AC_ARG_WITH(rocm_path, [AS_HELP_STRING([--with-rocm-path=], [Path to rocm install directory],[32])]) # AC_ARG_WITH(mklgpu_libs, [AS_HELP_STRING([--with-mklgpu-libs=], - [Use librocm library ],[32])]) + [Use the MKLGPU library ],[32])]) use_int_cuda_libs="no" use_gpu_libs="no" diff --git a/config/m4/magma.m4 b/config/m4/magma.m4 index b7b02b413e..bbda28790b 100644 --- a/config/m4/magma.m4 +++ b/config/m4/magma.m4 @@ -23,7 +23,7 @@ # AC_DEFUN([AC_MAGMA_SETUP],[ # -AC_ARG_ENABLE(magma_linalg, AS_HELP_STRING([--enable-magma-linalg],[Enable suport for the diagonalization of BSE using MAGMA. Default is no])) +AC_ARG_ENABLE(magma, AS_HELP_STRING([--enable-magma],[Enable suport for the BSE diagonalization using MAGMA. Default is no])) # AC_ARG_WITH(magma_libs,AS_HELP_STRING([--with-magma-libs=],[Use Magma libraries ],[32])) AC_ARG_WITH(magma_incs,AS_HELP_STRING([--with-magma-incs=],[Use Magma includes ],[32])) @@ -34,14 +34,12 @@ AC_ARG_WITH(magma_includedir,AS_HELP_STRING([--with-magma-includedir=],[Pa # def_magma="" magma="no" -enable_magma="no" internal_magma="no" compile_magma="no" compile_magma_fmodules="no" # -if test x"$enable_magma_linalg" = "xyes"; then - enable_magma="yes"; -fi +if test x"$enable_magma" = "x"; then enable_magma="no" ; fi +#if test x"$enable_magma" = "xyes"; then enable_magma="yes"; fi # # MAGMA global options # @@ -67,7 +65,7 @@ if test -d "$with_magma_path" || test -d "$with_magma_libdir" || test x"$with_ma # if test x"$with_magma_libs" != "x" ; then AC_MSG_CHECKING([for Magma using $with_magma_libs]) ; elif test -d "$with_magma_libdir" ; then AC_MSG_CHECKING([for Magma in $with_magma_libdir]) ; - elif test -d "$with_magma_path" ; then AC_MSG_CHECKING([for Magma in $with_magma_path]) ; + elif test -d "$with_magma_path" ; then AC_MSG_CHECKING([for Magma in $with_magma_path/lib]) ; fi # if test -d "$with_magma_path" ; then @@ -95,22 +93,42 @@ if test -d "$with_magma_path" || test -d "$with_magma_libdir" || test x"$with_ma FCFLAGS="$try_MAGMA_INCS $save_fcflags"; LIBS="$try_MAGMA_LIBS $save_libs"; # + # check for magma with fortran-interfaces + AC_COMPILE_IFELSE(AC_LANG_PROGRAM([], [ + use magma + implicit none + integer :: lda + !magma_devptr_t :: dA]), + [magmaf=yes], [magmaf=no]); + # + # check for c-style magma AC_COMPILE_IFELSE(AC_LANG_PROGRAM([], [ -use magma -implicit none -integer :: lda -!magma_devptr_t :: dA]), - [magma=yes], [magma=no]); - # - if test "x$magma" = "xyes"; then - AC_MSG_RESULT([yes]) ; + ierr = magma_init(); ]), + [magmac=yes], [magmac=no]); + # + AC_MSG_RESULT([Library: $magmac; Fortran support: $magmaf]) ; + # + if test "x$magmaf" = "xyes"; then + # MAGMA_INCS="$try_MAGMA_INCS" ; MAGMA_LIBS="$try_MAGMA_LIBS" ; + magma=yes; compile_magma="no"; internal_magma="no"; def_magma="-D_MAGMA" + # + elif test "x$magmac" = "xyes"; then + # + MAGMA_LIBS="$try_MAGMA_LIBS" ; + MAGMA_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ; + magma=yes; + compile_magma="no"; + compile_magma_fmodules="yes"; + def_magma="-D_MAGMA" + # else - AC_MSG_RESULT([no]) ; + # + magma=no; # fi # @@ -119,7 +137,10 @@ integer :: lda # fi # -# TO BE FIXED: needs internal compilation support and paths have to be corrected with GPU_SUPPORT folder +# TO BE FIXED: needs internal compilation support and paths +# have to be corrected with GPU_SUPPORT folder +# +# Internal compilation # if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then # @@ -154,10 +175,7 @@ if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then fi # fi -# -# Check if fortran modules are available -# -if test -e "$MAGMA_INCS/mod_magma2_common.F" ; then compile_magma_fmodules="no" ; fi + # # switch off internal magma compilation # diff --git a/configure b/configure index 61307a32c4..0460f39920 100755 --- a/configure +++ b/configure @@ -1077,7 +1077,7 @@ with_devxlib_path with_devxlib_libdir with_devxlib_includedir with_devxlib_branch -enable_magma_linalg +enable_magma with_magma_libs with_magma_incs with_magma_path @@ -1763,7 +1763,7 @@ Optional Features: The configure script will check CUDA installation and report problems [default=yes] --enable-nvtx= Enable NVTX support [default=no] - --enable-magma-linalg Enable suport for the diagonalization of BSE using + --enable-magma Enable suport for the BSE diagonalization using MAGMA. Default is no Optional Packages: @@ -1856,7 +1856,7 @@ Optional Packages: --with-rocm-libdir= Path to the rocm lib directory --with-rocm-includedir= Path to the rocm include directory --with-rocm-path= Path to rocm install directory - --with-mklgpu-libs= Use librocm library + --with-mklgpu-libs= Use the MKLGPU library --with-devxlib-libs= Use devxlib libraries --with-devxlib-path= Path to devxlib install directory --with-devxlib-libdir= Path to the devxlib lib directory @@ -15741,9 +15741,9 @@ LIBS="$acx_devxlib_save_LIBS" # MAGMA # -# Check whether --enable-magma_linalg was given. -if test "${enable_magma_linalg+set}" = set; then : - enableval=$enable_magma_linalg; +# Check whether --enable-magma was given. +if test "${enable_magma+set}" = set; then : + enableval=$enable_magma; fi # @@ -15781,14 +15781,12 @@ fi # def_magma="" magma="no" -enable_magma="no" internal_magma="no" compile_magma="no" compile_magma_fmodules="no" # -if test x"$enable_magma_linalg" = "xyes"; then - enable_magma="yes"; -fi +if test x"$enable_magma" = "x"; then enable_magma="no" ; fi +#if test x"$enable_magma" = "xyes"; then enable_magma="yes"; fi # # MAGMA global options # @@ -15816,8 +15814,8 @@ if test -d "$with_magma_path" || test -d "$with_magma_libdir" || test x"$with_ma $as_echo_n "checking for Magma using $with_magma_libs... " >&6; } ; elif test -d "$with_magma_libdir" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_libdir" >&5 $as_echo_n "checking for Magma in $with_magma_libdir... " >&6; } ; - elif test -d "$with_magma_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_path" >&5 -$as_echo_n "checking for Magma in $with_magma_path... " >&6; } ; + elif test -d "$with_magma_path" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Magma in $with_magma_path/lib" >&5 +$as_echo_n "checking for Magma in $with_magma_path/lib... " >&6; } ; fi # if test -d "$with_magma_path" ; then @@ -15849,33 +15847,61 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu FCFLAGS="$try_MAGMA_INCS $save_fcflags"; LIBS="$try_MAGMA_LIBS $save_libs"; # + # check for magma with fortran-interfaces cat > conftest.$ac_ext <<_ACEOF program main -use magma -implicit none -integer :: lda -!magma_devptr_t :: dA + use magma + implicit none + integer :: lda + !magma_devptr_t :: dA end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : - magma=yes + magmaf=yes else - magma=no + magmaf=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; # - if test "x$magma" = "xyes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } ; + # check for c-style magma + cat > conftest.$ac_ext <<_ACEOF + program main + + ierr = magma_init(); + end +_ACEOF +if ac_fn_fc_try_compile "$LINENO"; then : + magmac=yes +else + magmac=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; + # + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Library: $magmac; Fortran support: $magmaf" >&5 +$as_echo "Library: $magmac; Fortran support: $magmaf" >&6; } ; + # + if test "x$magmaf" = "xyes"; then + # MAGMA_INCS="$try_MAGMA_INCS" ; MAGMA_LIBS="$try_MAGMA_LIBS" ; + magma=yes; compile_magma="no"; internal_magma="no"; def_magma="-D_MAGMA" + # + elif test "x$magmac" = "xyes"; then + # + MAGMA_LIBS="$try_MAGMA_LIBS" ; + MAGMA_INCS="${IFLAG}${extlibs_path}/${FCKIND}/${FC}/include" ; + magma=yes; + compile_magma="no"; + compile_magma_fmodules="yes"; + def_magma="-D_MAGMA" + # else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } ; + # + magma=no; # fi # @@ -15884,7 +15910,10 @@ $as_echo "no" >&6; } ; # fi # -# TO BE FIXED: needs internal compilation support and paths have to be corrected with GPU_SUPPORT folder +# TO BE FIXED: needs internal compilation support and paths +# have to be corrected with GPU_SUPPORT folder +# +# Internal compilation # if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then # @@ -15923,10 +15952,7 @@ $as_echo "Compatible external Magma not found/specified. To be compiled." >&6; } fi # fi -# -# Check if fortran modules are available -# -if test -e "$MAGMA_INCS/mod_magma2_common.F" ; then compile_magma_fmodules="no" ; fi + # # switch off internal magma compilation # diff --git a/lib/magma_fmodules/.objects b/lib/magma_fmodules/.objects index cfae042a34..77f516e43f 100644 --- a/lib/magma_fmodules/.objects +++ b/lib/magma_fmodules/.objects @@ -1,5 +1,5 @@ #if defined _MAGMA -MAGMA_objects = mod_magma2_common.o mod_magma2_sfortran.o mod_magma2_dfortran.o \ - mod_magma2_cfortran.o mod_magma2_zfortran.o mod_magma2.o +MAGMA_objects = magma.o magma_param.o \ + magma_cfortran.o magma_zfortran.o #endif objs = $(MAGMA_objects) diff --git a/lib/magma_fmodules/magma.F b/lib/magma_fmodules/magma.F new file mode 100644 index 0000000000..b86b503f84 --- /dev/null +++ b/lib/magma_fmodules/magma.F @@ -0,0 +1,373 @@ +! +! -- MAGMA (version 2.8.0) -- +! Univ. of Tennessee, Knoxville +! Univ. of California, Berkeley +! Univ. of Colorado, Denver +! @date March 2024 +! + +module magma + + use magma_param + use iso_fortran_env, ONLY: int64 + +#define magma_devptr_t integer(int64) + + use magma_zfortran + use magma_cfortran +! use magma_dfortran +! use magma_sfortran + +! use magmablas_zfortran +! use magmablas_dfortran +! use magmablas_cfortran +! use magmablas_sfortran + + !---- Fortran interfaces to MAGMA subroutines ---- + interface + + !! ------------------------------------------------------------------------- + !! initialize + subroutine magmaf_init( ) + end subroutine + + subroutine magmaf_finalize( ) + end subroutine + + !! ------------------------------------------------------------------------- + !! version + subroutine magmaf_version( major, minor, micro ) + integer :: major, minor, micro + end subroutine + + subroutine magmaf_print_environment() + end subroutine + + !! ------------------------------------------------------------------------- + !! device support + integer function magmaf_num_gpus() + end function + + integer function magmaf_getdevice_arch() + end function + + subroutine magmaf_getdevice( dev ) + integer :: dev + end subroutine + + subroutine magmaf_setdevice( dev ) + integer :: dev + end subroutine + + function magmaf_mem_size( queue ) + import int64 + integer(kind=8) :: magmaf_mem_size + magma_devptr_t :: queue + end function + + !! ------------------------------------------------------------------------- + !! queue support + subroutine magmaf_queue_create( dev, queue ) + import int64 + integer :: dev + magma_devptr_t :: queue + end subroutine + + subroutine magmaf_queue_destroy( queue ) + import int64 + magma_devptr_t :: queue + end subroutine + + subroutine magmaf_queue_sync( queue ) + import int64 + magma_devptr_t :: queue + end subroutine + + integer function magmaf_queue_get_device( queue ) + import int64 + magma_devptr_t :: queue + end function + + !! ------------------------------------------------------------------------- + !! GPU allocation + integer function magmaf_malloc( ptr, bytes ) + import int64 + magma_devptr_t :: ptr + integer :: bytes + end function + + integer function magmaf_smalloc( ptr, n ) + import int64 + magma_devptr_t :: ptr + integer :: n + end function + + integer function magmaf_dmalloc( ptr, n ) + import int64 + magma_devptr_t :: ptr + integer :: n + end function + + integer function magmaf_cmalloc( ptr, n ) + import int64 + magma_devptr_t :: ptr + integer :: n + end function + + integer function magmaf_zmalloc( ptr, n ) + import int64 + magma_devptr_t :: ptr + integer :: n + end function + + integer function magmaf_free( ptr ) + import int64 + magma_devptr_t :: ptr + end function + + !! ------------------------------------------------------------------------- + !! CPU regular (non-pinned) allocation + integer function magmaf_malloc_cpu( ptr, bytes ) + import int64 + magma_devptr_t :: ptr + integer :: bytes + end function + + integer function magmaf_smalloc_cpu( ptr, n ) + import int64 + magma_devptr_t :: ptr + integer :: n + end function + + integer function magmaf_dmalloc_cpu( ptr, n ) + import int64 + magma_devptr_t :: ptr + integer :: n + end function + + integer function magmaf_cmalloc_cpu( ptr, n ) + import int64 + magma_devptr_t :: ptr + integer :: n + end function + + integer function magmaf_zmalloc_cpu( ptr, n ) + import int64 + magma_devptr_t :: ptr + integer :: n + end function + + integer function magmaf_free_cpu( ptr ) + import int64 + magma_devptr_t :: ptr + end function + + !! ------------------------------------------------------------------------- + !! CPU pinned allocation + integer function magmaf_malloc_pinned( ptr, bytes ) + import int64 + magma_devptr_t :: ptr + integer :: bytes + end function + + integer function magmaf_smalloc_pinned( ptr, n ) + import int64 + magma_devptr_t :: ptr + integer :: n + end function + + integer function magmaf_dmalloc_pinned( ptr, n ) + import int64 + magma_devptr_t :: ptr + integer :: n + end function + + integer function magmaf_cmalloc_pinned( ptr, n ) + import int64 + magma_devptr_t :: ptr + integer :: n + end function + + integer function magmaf_zmalloc_pinned( ptr, n ) + import int64 + magma_devptr_t :: ptr + integer :: n + end function + + integer function magmaf_free_pinned( ptr ) + import int64 + magma_devptr_t :: ptr + end function + + !! ------------------------------------------------------------------------- + !! timing; see magma_timer.cpp + subroutine magmaf_wtime( time ) + double precision :: time + end subroutine + + end interface + + !! ------------------------------------------------------------------------- + ! parameter constants from magma_types.h + ! currently MAGMA's Fortran interface uses characters, not integers + character, parameter :: & + MagmaFalse = 'n', & + MagmaTrue = 'y', & + MagmaRowMajor = 'r', & + MagmaColMajor = 'c', & + MagmaNoTrans = 'n', & + MagmaTrans = 't', & + MagmaConjTrans = 'c', & + MagmaUpper = 'u', & + MagmaLower = 'l', & + MagmaFull = 'f', & + MagmaNonUnit = 'n', & + MagmaUnit = 'u', & + MagmaLeft = 'l', & + MagmaRight = 'r', & + MagmaBothSides = 'b', & + MagmaOneNorm = '1', & + MagmaTwoNorm = '2', & + MagmaFrobeniusNorm = 'f', & + MagmaInfNorm = 'i', & + MagmaMaxNorm = 'm', & + MagmaDistUniform = 'u', & + MagmaDistSymmetric = 's', & + MagmaDistNormal = 'n', & + MagmaHermGeev = 'h', & + MagmaHermPoev = 'p', & + MagmaNonsymPosv = 'n', & + MagmaSymPosv = 's', & + MagmaNoPacking = 'n', & + MagmaPackSubdiag = 'u', & + MagmaPackSupdiag = 'l', & + MagmaPackColumn = 'c', & + MagmaPackRow = 'r', & + MagmaPackLowerBand = 'b', & + MagmaPackUpeprBand = 'q', & + MagmaPackAll = 'z', & + MagmaNoVec = 'n', & + MagmaVec = 'v', & + MagmaIVec = 'i', & + MagmaAllVec = 'a', & + MagmaSomeVec = 's', & + MagmaOverwriteVec = 'o', & + MagmaBacktransVec = 'b', & + MagmaRangeAll = 'a', & + MagmaRangeV = 'v', & + MagmaRangeI = 'i', & + MagmaQ = 'q', & + MagmaP = 'p', & + MagmaForward = 'f', & + MagmaBackward = 'b', & + MagmaColumnwise = 'c', & + MagmaRowwise = 'r' + +contains + +! -------------------- +!> Sets ptrNew = ptrOld( i ), with stride inc. +!! Useful because CUDA pointers are opaque types in Fortran. +subroutine magmaf_soff1d( ptrNew, ptrOld, inc, i ) + magma_devptr_t :: ptrNew + magma_devptr_t :: ptrOld + integer :: inc, i + + ptrNew = ptrOld + (i-1) * inc * sizeof_real +end subroutine magmaf_soff1d + +!> Sets ptrNew = ptrOld( i, j ), with leading dimension lda. +!! Useful because CUDA pointers are opaque types in Fortran. +subroutine magmaf_soff2d( ptrNew, ptrOld, lda, i, j ) + magma_devptr_t :: ptrNew + magma_devptr_t :: ptrOld + integer :: lda, i, j + + ptrNew = ptrOld + ((j-1) * lda + (i-1)) * sizeof_real +end subroutine magmaf_soff2d + +! -------------------- +!> Sets ptrNew = ptrOld( i ), with stride inc. +!! Useful because CUDA pointers are opaque types in Fortran. +subroutine magmaf_doff1d( ptrNew, ptrOld, inc, i ) + magma_devptr_t :: ptrNew + magma_devptr_t :: ptrOld + integer :: inc, i + + ptrNew = ptrOld + (i-1) * inc * sizeof_double +end subroutine magmaf_doff1d + +!> Sets ptrNew = ptrOld( i, j ), with leading dimension lda. +!! Useful because CUDA pointers are opaque types in Fortran. +subroutine magmaf_doff2d( ptrNew, ptrOld, lda, i, j ) + magma_devptr_t :: ptrNew + magma_devptr_t :: ptrOld + integer :: lda, i, j + + ptrNew = ptrOld + ((j-1) * lda + (i-1)) * sizeof_double +end subroutine magmaf_doff2d + +! -------------------- +!> Sets ptrNew = ptrOld( i ), with stride inc. +!! Useful because CUDA pointers are opaque types in Fortran. +subroutine magmaf_coff1d( ptrNew, ptrOld, inc, i ) + magma_devptr_t :: ptrNew + magma_devptr_t :: ptrOld + integer :: inc, i + + ptrNew = ptrOld + (i-1) * inc * sizeof_complex +end subroutine magmaf_coff1d + +!> Sets ptrNew = ptrOld( i, j ), with leading dimension lda. +!! Useful because CUDA pointers are opaque types in Fortran. +subroutine magmaf_coff2d( ptrNew, ptrOld, lda, i, j ) + magma_devptr_t :: ptrNew + magma_devptr_t :: ptrOld + integer :: lda, i, j + + ptrNew = ptrOld + ((j-1) * lda + (i-1)) * sizeof_complex +end subroutine magmaf_coff2d + +! -------------------- +!> Sets ptrNew = ptrOld( i ), with stride inc. +!! Useful because CUDA pointers are opaque types in Fortran. +subroutine magmaf_zoff1d( ptrNew, ptrOld, inc, i ) + magma_devptr_t :: ptrNew + magma_devptr_t :: ptrOld + integer :: inc, i + + ptrNew = ptrOld + (i-1) * inc * sizeof_complex_16 +end subroutine magmaf_zoff1d + +!> Sets ptrNew = ptrOld( i, j ), with leading dimension lda. +!! Useful because CUDA pointers are opaque types in Fortran. +subroutine magmaf_zoff2d( ptrNew, ptrOld, lda, i, j ) + magma_devptr_t :: ptrNew + magma_devptr_t :: ptrOld + integer :: lda, i, j + + ptrNew = ptrOld + ((j-1) * lda + (i-1)) * sizeof_complex_16 +end subroutine magmaf_zoff2d + +! -------------------- +!> Sets ptrNew = ptrOld( i ), with stride inc. +!! Useful because CUDA pointers are opaque types in Fortran. +subroutine magmaf_ioff1d( ptrNew, ptrOld, inc, i ) + magma_devptr_t :: ptrNew + magma_devptr_t :: ptrOld + integer :: inc, i + + ptrNew = ptrOld + (i-1) * inc * sizeof_integer +end subroutine magmaf_ioff1d + +!> Sets ptrNew = ptrOld( i, j ), with leading dimension lda. +!! Useful because CUDA pointers are opaque types in Fortran. +subroutine magmaf_ioff2d( ptrNew, ptrOld, lda, i, j ) + magma_devptr_t :: ptrNew + magma_devptr_t :: ptrOld + integer :: lda, i, j + + ptrNew = ptrOld + ((j-1) * lda + (i-1)) * sizeof_integer +end subroutine magmaf_ioff2d + +end module magma diff --git a/lib/magma_fmodules/magma_cfortran.F b/lib/magma_fmodules/magma_cfortran.F new file mode 100644 index 0000000000..48d48b9c71 --- /dev/null +++ b/lib/magma_fmodules/magma_cfortran.F @@ -0,0 +1,2086 @@ +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! This file is AUTOMATICALLY GENERATED by: +!! tools/fortran_wrappers.pl include/magma_c.i +!! Do not edit. +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +module magma_cfortran + +use magma_param +use iso_fortran_env, ONLY: int64 + +#define magma_devptr_t integer(int64) + +implicit none + +!---- Fortran interfaces to MAGMA subroutines ---- +interface + +integer function magmaf_get_cpotrf_nb( n ) + integer :: n +end + +integer function magmaf_get_cgetrf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_cgetri_nb( n ) + integer :: n +end + +integer function magmaf_get_chetrf_nb( n ) + integer :: n +end + +integer function magmaf_get_chetrf_nopiv_nb( n ) + integer :: n +end + +integer function magmaf_get_chetrf_aasen_nb( n ) + integer :: n +end + +integer function magmaf_get_cgeqp3_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_cgeqrf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_cgeqlf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_cgelqf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_cgehrd_nb( n ) + integer :: n +end + +integer function magmaf_get_chetrd_nb( n ) + integer :: n +end + +integer function magmaf_get_chegst_nb( n ) + integer :: n +end + +integer function magmaf_get_chegst_m_nb( n ) + integer :: n +end + +integer function magmaf_get_cgebrd_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_cgesvd_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_cbulge_nb( n, nbthreads ) + integer :: n + integer :: nbthreads +end + +integer function magmaf_get_cbulge_vblksiz( n, nb, nbthreads ) + integer :: n + integer :: nb + integer :: nbthreads +end + +integer function magmaf_get_cbulge_gcperf( ) +end + +subroutine magmaf_cgebrd( m, n, A, lda, d, e, tauq, taup, work, lwork, info ) + integer :: m + integer :: n + complex :: A(*) + integer :: lda + real :: d(*) + real :: e(*) + complex :: tauq(*) + complex :: taup(*) + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, work, lwork, & + rwork, info ) + character :: jobvl + character :: jobvr + integer :: n + complex :: A(*) + integer :: lda + complex :: w(*) + complex :: VL(*) + integer :: ldvl + complex :: VR(*) + integer :: ldvr + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: info +end + +subroutine magmaf_cgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, work, lwork, & + rwork, info ) + character :: jobvl + character :: jobvr + integer :: n + complex :: A(*) + integer :: lda + complex :: w(*) + complex :: VL(*) + integer :: ldvl + complex :: VR(*) + integer :: ldvr + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: info +end + +subroutine magmaf_cgegqr_gpu( ikind, m, n, dA, ldda, dwork, work, info ) + import int64 + integer :: ikind + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dwork + complex :: work(*) + integer :: info +end + +subroutine magmaf_cgehrd( n, ilo, ihi, A, lda, tau, work, lwork, dT, info ) + import int64 + integer :: n + integer :: ilo + integer :: ihi + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: work(*) + integer :: lwork + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_cgehrd_m( n, ilo, ihi, A, lda, tau, work, lwork, T, info ) + integer :: n + integer :: ilo + integer :: ihi + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: work(*) + integer :: lwork + complex :: T(*) + integer :: info +end + +subroutine magmaf_cgehrd2( n, ilo, ihi, A, lda, tau, work, lwork, info ) + integer :: n + integer :: ilo + integer :: ihi + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgelqf( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgelqf_gpu( m, n, dA, ldda, tau, work, lwork, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + complex :: tau(*) + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgels( trans, m, n, nrhs, A, lda, B, ldb, hwork, lwork, info ) + import int64 + character :: trans + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: A + integer :: lda + magma_devptr_t :: B + integer :: ldb + complex :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cggrqf( m, p, n, A, lda, taua, B, ldb, taub, work, lwork, info ) + integer :: m + integer :: p + integer :: n + complex :: A(*) + integer :: lda + complex :: taua(*) + complex :: B(*) + integer :: ldb + complex :: taub(*) + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgglse( m, n, p, A, lda, B, ldb, c, d, x, work, lwork, info ) + integer :: m + integer :: n + integer :: p + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + complex :: c(*) + complex :: d(*) + complex :: x(*) + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgels_gpu( trans, m, n, nrhs, dA, ldda, dB, lddb, hwork, lwork, info ) + import int64 + character :: trans + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + complex :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgels3_gpu( trans, m, n, nrhs, dA, ldda, dB, lddb, hwork, lwork, info ) + import int64 + character :: trans + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + complex :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgeqlf( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgeqp3( m, n, A, lda, jpvt, tau, work, lwork, rwork, info ) + integer :: m + integer :: n + complex :: A(*) + integer :: lda + integer :: jpvt(*) + complex :: tau(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: info +end + +subroutine magmaf_cgeqp3_gpu( m, n, dA, ldda, jpvt, tau, dwork, lwork, rwork, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: jpvt(*) + complex :: tau(*) + magma_devptr_t :: dwork + integer :: lwork + real :: rwork(*) + integer :: info +end + +subroutine magmaf_cgeqr2x_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_cgeqr2x2_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_cgeqr2x3_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_cgeqr2x4_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, queue, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + magma_devptr_t :: queue + integer :: info +end + +subroutine magmaf_cgeqrf( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgeqrf_gpu( m, n, dA, ldda, tau, dT, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + complex :: tau(*) + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_cgeqrf_m( ngpu, m, n, A, lda, tau, work, lwork, info ) + integer :: ngpu + integer :: m + integer :: n + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgeqrf_ooc( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgeqrf2_gpu( m, n, dA, ldda, tau, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + complex :: tau(*) + integer :: info +end + +subroutine magmaf_cgeqrf3_gpu( m, n, dA, ldda, tau, dT, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + complex :: tau(*) + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_cgeqrs_gpu( m, n, nrhs, dA, ldda, tau, dT, dB, lddb, hwork, lwork, info & + ) + import int64 + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + complex :: tau(*) + magma_devptr_t :: dT + magma_devptr_t :: dB + integer :: lddb + complex :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgeqrs3_gpu( m, n, nrhs, dA, ldda, tau, dT, dB, lddb, hwork, lwork, & + info ) + import int64 + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + complex :: tau(*) + magma_devptr_t :: dT + magma_devptr_t :: dB + integer :: lddb + complex :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cgerbt_gpu( gen, n, nrhs, dA, ldda, dB, lddb, U, V, info ) + import int64 + character :: gen + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + complex :: U(*) + complex :: V(*) + integer :: info +end + +subroutine magmaf_cgerfs_nopiv_gpu( trans, n, nrhs, dA, ldda, dB, lddb, dX, lddx, dworkd, & + dAF, iter, info ) + import int64 + character :: trans + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + magma_devptr_t :: dX + integer :: lddx + magma_devptr_t :: dworkd + magma_devptr_t :: dAF + integer :: iter + integer :: info +end + +subroutine magmaf_cgesdd( jobz, m, n, A, lda, s, U, ldu, VT, ldvt, work, lwork, rwork, & + iwork, info ) + character :: jobz + integer :: m + integer :: n + complex :: A(*) + integer :: lda + real :: s(*) + complex :: U(*) + integer :: ldu + complex :: VT(*) + integer :: ldvt + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: iwork(*) + integer :: info +end + +subroutine magmaf_cgesv( n, nrhs, A, lda, ipiv, B, ldb, info ) + integer :: n + integer :: nrhs + complex :: A(*) + integer :: lda + integer :: ipiv(*) + complex :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_cgesv_gpu( n, nrhs, dA, ldda, ipiv, dB, lddb, info ) + import int64 + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_cgesv_nopiv_gpu( n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_cgesv_rbt( ref, n, nrhs, A, lda, B, ldb, info ) + character :: ref + integer :: n + integer :: nrhs + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_cgesvd( jobu, jobvt, m, n, A, lda, s, U, ldu, VT, ldvt, work, lwork, & + rwork, info ) + character :: jobu + character :: jobvt + integer :: m + integer :: n + complex :: A(*) + integer :: lda + real :: s(*) + complex :: U(*) + integer :: ldu + complex :: VT(*) + integer :: ldvt + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: info +end + +subroutine magmaf_cgetf2_gpu( m, n, dA, ldda, ipiv, queue, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: queue + integer :: info +end + +subroutine magmaf_cgetf2_nopiv( m, n, A, lda, info ) + integer :: m + integer :: n + complex :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_cgetrf( m, n, A, lda, ipiv, info ) + integer :: m + integer :: n + complex :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_cgetrf_gpu( m, n, dA, ldda, ipiv, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_cgetrf_m( ngpu, m, n, A, lda, ipiv, info ) + integer :: ngpu + integer :: m + integer :: n + complex :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_cgetrf_nopiv( m, n, A, lda, info ) + integer :: m + integer :: n + complex :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_cgetrf_nopiv_gpu( m, n, dA, ldda, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_cgetri_gpu( n, dA, ldda, ipiv, dwork, lwork, info ) + import int64 + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: dwork + integer :: lwork + integer :: info +end + +subroutine magmaf_cgetrs_gpu( trans, n, nrhs, dA, ldda, ipiv, dB, lddb, info ) + import int64 + character :: trans + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_cgetrs_nopiv_gpu( trans, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: trans + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_cheevd( jobz, uplo, n, A, lda, w, work, lwork, rwork, lrwork, iwork, & + liwork, info ) + character :: jobz + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + real :: w(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_cheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, rwork, & + lrwork, iwork, liwork, info ) + import int64 + character :: jobz + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: w(*) + complex :: wA(*) + integer :: ldwa + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_cheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, rwork, lrwork, & + iwork, liwork, info ) + integer :: ngpu + character :: jobz + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + real :: w(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_cheevdx( jobz, range, uplo, n, A, lda, vl, vu, il, iu, mout, w, work, & + lwork, rwork, lrwork, iwork, liwork, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_cheevdx_gpu( jobz, range, uplo, n, dA, ldda, vl, vu, il, iu, mout, w, & + wA, ldwa, work, lwork, rwork, lrwork, iwork, liwork, info ) + import int64 + character :: jobz + character :: range + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + complex :: wA(*) + integer :: ldwa + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_cheevdx_m( ngpu, jobz, range, uplo, n, A, lda, vl, vu, il, iu, mout, w, & + work, lwork, rwork, lrwork, iwork, liwork, info ) + integer :: ngpu + character :: jobz + character :: range + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_cheevdx_2stage( jobz, range, uplo, n, A, lda, vl, vu, il, iu, mout, w, & + work, lwork, rwork, lrwork, iwork, liwork, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_cheevdx_2stage_m( ngpu, jobz, range, uplo, n, A, lda, vl, vu, il, iu, & + mout, w, work, lwork, rwork, lrwork, iwork, liwork, info ) + integer :: ngpu + character :: jobz + character :: range + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_cheevr( jobz, range, uplo, n, A, lda, vl, vu, il, iu, abstol, mout, w, & + Z, ldz, isuppz, work, lwork, rwork, lrwork, iwork, liwork, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + real :: vl + real :: vu + integer :: il + integer :: iu + real :: abstol + integer :: mout(*) + real :: w(*) + complex :: Z(*) + integer :: ldz + integer :: isuppz(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_cheevr_gpu( jobz, range, uplo, n, dA, ldda, vl, vu, il, iu, abstol, & + mout, w, dZ, lddz, isuppz, wA, ldwa, wZ, ldwz, work, lwork, rwork, lrwork, iwork, & + liwork, info ) + import int64 + character :: jobz + character :: range + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: vl + real :: vu + integer :: il + integer :: iu + real :: abstol + integer :: mout(*) + real :: w(*) + magma_devptr_t :: dZ + integer :: lddz + integer :: isuppz(*) + complex :: wA(*) + integer :: ldwa + complex :: wZ(*) + integer :: ldwz + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_cheevx( jobz, range, uplo, n, A, lda, vl, vu, il, iu, abstol, mout, w, & + Z, ldz, work, lwork, rwork, iwork, ifail, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + real :: vl + real :: vu + integer :: il + integer :: iu + real :: abstol + integer :: mout(*) + real :: w(*) + complex :: Z(*) + integer :: ldz + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: iwork(*) + integer :: ifail(*) + integer :: info +end + +subroutine magmaf_cheevx_gpu( jobz, range, uplo, n, dA, ldda, vl, vu, il, iu, abstol, & + mout, w, dZ, lddz, wA, ldwa, wZ, ldwz, work, lwork, rwork, iwork, ifail, info ) + import int64 + character :: jobz + character :: range + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: vl + real :: vu + integer :: il + integer :: iu + real :: abstol + integer :: mout(*) + real :: w(*) + magma_devptr_t :: dZ + integer :: lddz + complex :: wA(*) + integer :: ldwa + complex :: wZ(*) + integer :: ldwz + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: iwork(*) + integer :: ifail(*) + integer :: info +end + +subroutine magmaf_chegst( itype, uplo, n, A, lda, B, ldb, info ) + integer :: itype + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_chegst_gpu( itype, uplo, n, dA, ldda, dB, lddb, info ) + import int64 + integer :: itype + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_chegst_m( ngpu, itype, uplo, n, A, lda, B, ldb, info ) + integer :: ngpu + integer :: itype + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_chegvd( itype, jobz, uplo, n, A, lda, B, ldb, w, work, lwork, rwork, & + lrwork, iwork, liwork, info ) + integer :: itype + character :: jobz + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + real :: w(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_chegvd_m( ngpu, itype, jobz, uplo, n, A, lda, B, ldb, w, work, lwork, & + rwork, lrwork, iwork, liwork, info ) + integer :: ngpu + integer :: itype + character :: jobz + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + real :: w(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_chegvdx( itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, il, iu, & + mout, w, work, lwork, rwork, lrwork, iwork, liwork, info ) + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_chegvdx_m( ngpu, itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, & + il, iu, mout, w, work, lwork, rwork, lrwork, iwork, liwork, info ) + integer :: ngpu + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_chegvdx_2stage( itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, & + il, iu, mout, w, work, lwork, rwork, lrwork, iwork, liwork, info ) + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_chegvdx_2stage_m( ngpu, itype, jobz, range, uplo, n, A, lda, B, ldb, & + vl, vu, il, iu, mout, w, work, lwork, rwork, lrwork, iwork, liwork, info ) + integer :: ngpu + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_chegvr( itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, il, iu, & + abstol, mout, w, Z, ldz, isuppz, work, lwork, rwork, lrwork, iwork, liwork, info & + ) + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + real :: vl + real :: vu + integer :: il + integer :: iu + real :: abstol + integer :: mout(*) + real :: w(*) + complex :: Z(*) + integer :: ldz + integer :: isuppz(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_chegvx( itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, il, iu, & + abstol, mout, w, Z, ldz, work, lwork, rwork, iwork, ifail, info ) + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + real :: vl + real :: vu + integer :: il + integer :: iu + real :: abstol + integer :: mout(*) + real :: w(*) + complex :: Z(*) + integer :: ldz + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: iwork(*) + integer :: ifail(*) + integer :: info +end + +subroutine magmaf_chesv( uplo, n, nrhs, A, lda, ipiv, B, ldb, info ) + character :: uplo + integer :: n + integer :: nrhs + complex :: A(*) + integer :: lda + integer :: ipiv(*) + complex :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_chesv_nopiv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_chetrd( uplo, n, A, lda, d, e, tau, work, lwork, info ) + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + real :: d(*) + real :: e(*) + complex :: tau(*) + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_chetrd_gpu( uplo, n, dA, ldda, d, e, tau, wA, ldwa, work, lwork, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: d(*) + real :: e(*) + complex :: tau(*) + complex :: wA(*) + integer :: ldwa + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_chetrd2_gpu( uplo, n, dA, ldda, d, e, tau, wA, ldwa, work, lwork, & + dwork, ldwork, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: d(*) + real :: e(*) + complex :: tau(*) + complex :: wA(*) + integer :: ldwa + complex :: work(*) + integer :: lwork + magma_devptr_t :: dwork + integer :: ldwork + integer :: info +end + +integer function magmaf_chetrd_hb2st( uplo, n, nb, Vblksiz, A, lda, d, e, V, ldv, TAU, & + compT, T, ldt ) + character :: uplo + integer :: n + integer :: nb + integer :: Vblksiz + complex :: A(*) + integer :: lda + real :: d(*) + real :: e(*) + complex :: V(*) + integer :: ldv + complex :: TAU(*) + integer :: compT + complex :: T(*) + integer :: ldt +end + +subroutine magmaf_chetrd_he2hb( uplo, n, nb, A, lda, tau, work, lwork, dT, info ) + import int64 + character :: uplo + integer :: n + integer :: nb + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: work(*) + integer :: lwork + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_chetrf( uplo, n, A, lda, ipiv, info ) + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_chetrf_aasen( uplo, cpu_panel, n, A, lda, ipiv, info ) + character :: uplo + integer :: cpu_panel + integer :: n + complex :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_chetrf_nopiv( uplo, n, A, lda, info ) + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_chetrf_nopiv_cpu( uplo, n, ib, A, lda, info ) + character :: uplo + integer :: n + integer :: ib + complex :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_chetrf_nopiv_gpu( uplo, n, dA, ldda, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_chetrs_nopiv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +integer function magmaf_clarf_gpu( m, n, dv, dtau, dC, lddc, queue ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dv + magma_devptr_t :: dtau + magma_devptr_t :: dC + integer :: lddc + magma_devptr_t :: queue +end + +integer function magmaf_clarfb2_gpu( m, n, k, dV, lddv, dT, lddt, dC, lddc, dwork, & + ldwork, queue ) + import int64 + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dV + integer :: lddv + magma_devptr_t :: dT + integer :: lddt + magma_devptr_t :: dC + integer :: lddc + magma_devptr_t :: dwork + integer :: ldwork + magma_devptr_t :: queue +end + +subroutine magmaf_clatrsd( uplo, trans, diag, normin, n, A, lda, lambda, x, scale, cnorm, & + info ) + character :: uplo + character :: trans + character :: diag + character :: normin + integer :: n + complex :: A(*) + integer :: lda + complex :: lambda + complex :: x(*) + real :: scale(*) + real :: cnorm(*) + integer :: info +end + +subroutine magmaf_clauum( uplo, n, A, lda, info ) + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_clauum_gpu( uplo, n, dA, ldda, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_cposv( uplo, n, nrhs, A, lda, B, ldb, info ) + character :: uplo + integer :: n + integer :: nrhs + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_cposv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_cpotf2_gpu( uplo, n, dA, ldda, queue, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: queue + integer :: info +end + +subroutine magmaf_cpotrf( uplo, n, A, lda, info ) + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_cpotrf_gpu( uplo, n, dA, ldda, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_cpotrf_m( ngpu, uplo, n, A, lda, info ) + integer :: ngpu + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_cpotri( uplo, n, A, lda, info ) + character :: uplo + integer :: n + complex :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_cpotri_gpu( uplo, n, dA, ldda, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_cpotrs_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_csysv_nopiv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_csytrf_nopiv_cpu( uplo, n, ib, A, lda, info ) + character :: uplo + integer :: n + integer :: ib + complex :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_csytrf_nopiv_gpu( uplo, n, dA, ldda, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_csytrs_nopiv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_cstedx( range, n, vl, vu, il, iu, d, e, Z, ldz, rwork, lrwork, iwork, & + liwork, dwork, info ) + import int64 + character :: range + integer :: n + real :: vl + real :: vu + integer :: il + integer :: iu + real :: d(*) + real :: e(*) + complex :: Z(*) + integer :: ldz + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_cstedx_m( ngpu, range, n, vl, vu, il, iu, d, e, Z, ldz, rwork, lrwork, & + iwork, liwork, info ) + integer :: ngpu + character :: range + integer :: n + real :: vl + real :: vu + integer :: il + integer :: iu + real :: d(*) + real :: e(*) + complex :: Z(*) + integer :: ldz + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ctrevc3( side, howmany, select, n, T, ldt, VL, ldvl, VR, ldvr, mm, & + mout, work, lwork, rwork, info ) + character :: side + character :: howmany + integer :: select(*) + integer :: n + complex :: T(*) + integer :: ldt + complex :: VL(*) + integer :: ldvl + complex :: VR(*) + integer :: ldvr + integer :: mm + integer :: mout(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: info +end + +subroutine magmaf_ctrevc3_mt( side, howmany, select, n, T, ldt, VL, ldvl, VR, ldvr, mm, & + mout, work, lwork, rwork, info ) + character :: side + character :: howmany + integer :: select(*) + integer :: n + complex :: T(*) + integer :: ldt + complex :: VL(*) + integer :: ldvl + complex :: VR(*) + integer :: ldvr + integer :: mm + integer :: mout(*) + complex :: work(*) + integer :: lwork + real :: rwork(*) + integer :: info +end + +integer function magmaf_ctrsm_m( ngpu, side, uplo, transa, diag, m, n, alpha, A, lda, B, & + ldb ) + integer :: ngpu + character :: side + character :: uplo + character :: transa + character :: diag + integer :: m + integer :: n + complex :: alpha + complex :: A(*) + integer :: lda + complex :: B(*) + integer :: ldb +end + +subroutine magmaf_ctrtri( uplo, diag, n, A, lda, info ) + character :: uplo + character :: diag + integer :: n + complex :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_ctrtri_gpu( uplo, diag, n, dA, ldda, info ) + import int64 + character :: uplo + character :: diag + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_cungbr( vect, m, n, k, A, lda, tau, work, lwork, info ) + character :: vect + integer :: m + integer :: n + integer :: k + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cunghr( n, ilo, ihi, A, lda, tau, dT, nb, info ) + import int64 + integer :: n + integer :: ilo + integer :: ihi + complex :: A(*) + integer :: lda + complex :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_cunghr_m( n, ilo, ihi, A, lda, tau, T, nb, info ) + integer :: n + integer :: ilo + integer :: ihi + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: T(*) + integer :: nb + integer :: info +end + +subroutine magmaf_cunglq( m, n, k, A, lda, tau, dT, nb, info ) + import int64 + integer :: m + integer :: n + integer :: k + complex :: A(*) + integer :: lda + complex :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_cungqr( m, n, k, A, lda, tau, dT, nb, info ) + import int64 + integer :: m + integer :: n + integer :: k + complex :: A(*) + integer :: lda + complex :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_cungqr_gpu( m, n, k, dA, ldda, tau, dT, nb, info ) + import int64 + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + complex :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_cungqr_m( m, n, k, A, lda, tau, T, nb, info ) + integer :: m + integer :: n + integer :: k + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: T(*) + integer :: nb + integer :: info +end + +subroutine magmaf_cungqr2( m, n, k, A, lda, tau, info ) + integer :: m + integer :: n + integer :: k + complex :: A(*) + integer :: lda + complex :: tau(*) + integer :: info +end + +subroutine magmaf_cunmbr( vect, side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, & + info ) + character :: vect + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: C(*) + integer :: ldc + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cunmlq( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: C(*) + integer :: ldc + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cunmrq( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: C(*) + integer :: ldc + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cunmql( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: C(*) + integer :: ldc + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cunmql2_gpu( side, trans, m, n, k, dA, ldda, tau, dC, lddc, wA, ldwa, & + info ) + import int64 + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + complex :: tau(*) + magma_devptr_t :: dC + integer :: lddc + complex :: wA(*) + integer :: ldwa + integer :: info +end + +subroutine magmaf_cunmqr( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: C(*) + integer :: ldc + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cunmqr_gpu( side, trans, m, n, k, dA, ldda, tau, dC, lddc, hwork, & + lwork, dT, nb, info ) + import int64 + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + complex :: tau(*) + magma_devptr_t :: dC + integer :: lddc + complex :: hwork(*) + integer :: lwork + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_cunmqr2_gpu( side, trans, m, n, k, dA, ldda, tau, dC, lddc, wA, ldwa, & + info ) + import int64 + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + complex :: tau(*) + magma_devptr_t :: dC + integer :: lddc + complex :: wA(*) + integer :: ldwa + integer :: info +end + +subroutine magmaf_cunmqr_m( ngpu, side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, & + info ) + integer :: ngpu + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: C(*) + integer :: ldc + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cunmtr( side, uplo, trans, m, n, A, lda, tau, C, ldc, work, lwork, info & + ) + character :: side + character :: uplo + character :: trans + integer :: m + integer :: n + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: C(*) + integer :: ldc + complex :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_cunmtr_gpu( side, uplo, trans, m, n, dA, ldda, tau, dC, lddc, wA, ldwa, & + info ) + import int64 + character :: side + character :: uplo + character :: trans + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + complex :: tau(*) + magma_devptr_t :: dC + integer :: lddc + complex :: wA(*) + integer :: ldwa + integer :: info +end + +subroutine magmaf_cunmtr_m( ngpu, side, uplo, trans, m, n, A, lda, tau, C, ldc, work, & + lwork, info ) + integer :: ngpu + character :: side + character :: uplo + character :: trans + integer :: m + integer :: n + complex :: A(*) + integer :: lda + complex :: tau(*) + complex :: C(*) + integer :: ldc + complex :: work(*) + integer :: lwork + integer :: info +end + +integer function magmaf_c_isnan( x ) + complex :: x +end + +integer function magmaf_c_isinf( x ) + complex :: x +end + +integer function magmaf_c_isnan_inf( x ) + complex :: x +end + +integer function magmaf_cnan_inf( uplo, m, n, A, lda, cnt_nan, cnt_inf ) + character :: uplo + integer :: m + integer :: n + complex :: A(*) + integer :: lda + integer :: cnt_nan(*) + integer :: cnt_inf(*) +end + +integer function magmaf_cnan_inf_gpu( uplo, m, n, dA, ldda, cnt_nan, cnt_inf, queue ) + import int64 + character :: uplo + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: cnt_nan(*) + integer :: cnt_inf(*) + magma_devptr_t :: queue +end + +subroutine magmaf_cprint( m, n, A, lda ) + integer :: m + integer :: n + complex :: A(*) + integer :: lda +end + +subroutine magmaf_cprint_gpu( m, n, dA, ldda, queue ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: queue +end + +subroutine magmaf_cpanel_to_q( uplo, ib, A, lda, work ) + character :: uplo + integer :: ib + complex :: A(*) + integer :: lda + complex :: work(*) +end + +subroutine magmaf_cq_to_panel( uplo, ib, A, lda, work ) + character :: uplo + integer :: ib + complex :: A(*) + integer :: lda + complex :: work(*) +end + +end interface + +end module magma_cfortran diff --git a/lib/magma_fmodules/magma_dfortran.F b/lib/magma_fmodules/magma_dfortran.F new file mode 100644 index 0000000000..22b3dcc2cc --- /dev/null +++ b/lib/magma_fmodules/magma_dfortran.F @@ -0,0 +1,1830 @@ +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! This file is AUTOMATICALLY GENERATED by: +!! tools/fortran_wrappers.pl include/magma_d.i +!! Do not edit. +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +module magma_dfortran + +use magma_param + +implicit none + +!---- Fortran interfaces to MAGMA subroutines ---- +interface + +integer function magmaf_get_dlaex3_m_nb( ) +end + +integer function magmaf_get_dpotrf_nb( n ) + integer :: n +end + +integer function magmaf_get_dgetrf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_dgetri_nb( n ) + integer :: n +end + +integer function magmaf_get_dsytrf_nb( n ) + integer :: n +end + +integer function magmaf_get_dsytrf_nopiv_nb( n ) + integer :: n +end + +integer function magmaf_get_dsytrf_aasen_nb( n ) + integer :: n +end + +integer function magmaf_get_dgeqp3_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_dgeqrf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_dgeqlf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_dgelqf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_dgehrd_nb( n ) + integer :: n +end + +integer function magmaf_get_dsytrd_nb( n ) + integer :: n +end + +integer function magmaf_get_dsygst_nb( n ) + integer :: n +end + +integer function magmaf_get_dsygst_m_nb( n ) + integer :: n +end + +integer function magmaf_get_dgebrd_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_dgesvd_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_dbulge_nb( n, nbthreads ) + integer :: n + integer :: nbthreads +end + +integer function magmaf_get_dbulge_vblksiz( n, nb, nbthreads ) + integer :: n + integer :: nb + integer :: nbthreads +end + +integer function magmaf_get_dbulge_gcperf( ) +end + +subroutine magmaf_dmove_eig( range, n, w, il, iu, vl, vu, mout ) + character :: range + integer :: n + double precision :: w(*) + integer :: il(*) + integer :: iu(*) + double precision :: vl + double precision :: vu + integer :: mout(*) +end + +subroutine magmaf_dvrange( k, d, il, iu, vl, vu ) + integer :: k + double precision :: d(*) + integer :: il(*) + integer :: iu(*) + double precision :: vl + double precision :: vu +end + +subroutine magmaf_dirange( k, indxq, iil, iiu, il, iu ) + integer :: k + integer :: indxq(*) + integer :: iil(*) + integer :: iiu(*) + integer :: il + integer :: iu +end + +subroutine magmaf_dgebrd( m, n, A, lda, d, e, tauq, taup, work, lwork, info ) + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + double precision :: d(*) + double precision :: e(*) + double precision :: tauq(*) + double precision :: taup(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgeev( jobvl, jobvr, n, A, lda, wr, wi, VL, ldvl, VR, ldvr, work, & + lwork, info ) + character :: jobvl + character :: jobvr + integer :: n + double precision :: A(*) + integer :: lda + double precision :: wr(*) + double precision :: wi(*) + double precision :: VL(*) + integer :: ldvl + double precision :: VR(*) + integer :: ldvr + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgeev_m( jobvl, jobvr, n, A, lda, wr, wi, VL, ldvl, VR, ldvr, work, & + lwork, info ) + character :: jobvl + character :: jobvr + integer :: n + double precision :: A(*) + integer :: lda + double precision :: wr(*) + double precision :: wi(*) + double precision :: VL(*) + integer :: ldvl + double precision :: VR(*) + integer :: ldvr + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgegqr_gpu( ikind, m, n, dA, ldda, dwork, work, info ) + integer :: ikind + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dwork + double precision :: work(*) + integer :: info +end + +subroutine magmaf_dgehrd( n, ilo, ihi, A, lda, tau, work, lwork, dT, info ) + integer :: n + integer :: ilo + integer :: ihi + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_dgehrd_m( n, ilo, ihi, A, lda, tau, work, lwork, T, info ) + integer :: n + integer :: ilo + integer :: ihi + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + double precision :: T(*) + integer :: info +end + +subroutine magmaf_dgehrd2( n, ilo, ihi, A, lda, tau, work, lwork, info ) + integer :: n + integer :: ilo + integer :: ihi + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgelqf( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgelqf_gpu( m, n, dA, ldda, tau, work, lwork, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgels( trans, m, n, nrhs, A, lda, B, ldb, hwork, lwork, info ) + character :: trans + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: A + integer :: lda + magma_devptr_t :: B + integer :: ldb + double precision :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dggrqf( m, p, n, A, lda, taua, B, ldb, taub, work, lwork, info ) + integer :: m + integer :: p + integer :: n + double precision :: A(*) + integer :: lda + double precision :: taua(*) + double precision :: B(*) + integer :: ldb + double precision :: taub(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgglse( m, n, p, A, lda, B, ldb, c, d, x, work, lwork, info ) + integer :: m + integer :: n + integer :: p + double precision :: A(*) + integer :: lda + double precision :: B(*) + integer :: ldb + double precision :: c(*) + double precision :: d(*) + double precision :: x(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgels_gpu( trans, m, n, nrhs, dA, ldda, dB, lddb, hwork, lwork, info ) + character :: trans + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + double precision :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgels3_gpu( trans, m, n, nrhs, dA, ldda, dB, lddb, hwork, lwork, info ) + character :: trans + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + double precision :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgeqlf( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgeqp3( m, n, A, lda, jpvt, tau, work, lwork, info ) + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + integer :: jpvt(*) + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgeqp3_gpu( m, n, dA, ldda, jpvt, tau, dwork, lwork, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: jpvt(*) + double precision :: tau(*) + magma_devptr_t :: dwork + integer :: lwork + integer :: info +end + +subroutine magmaf_dgeqr2x_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_dgeqr2x2_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_dgeqr2x3_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_dgeqr2x4_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, queue, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + magma_devptr_t :: queue + integer :: info +end + +subroutine magmaf_dgeqrf( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgeqrf_gpu( m, n, dA, ldda, tau, dT, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: tau(*) + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_dgeqrf_m( ngpu, m, n, A, lda, tau, work, lwork, info ) + integer :: ngpu + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgeqrf_ooc( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgeqrf2_gpu( m, n, dA, ldda, tau, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: tau(*) + integer :: info +end + +subroutine magmaf_dgeqrf3_gpu( m, n, dA, ldda, tau, dT, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: tau(*) + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_dgeqrs_gpu( m, n, nrhs, dA, ldda, tau, dT, dB, lddb, hwork, lwork, info & + ) + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + double precision :: tau(*) + magma_devptr_t :: dT + magma_devptr_t :: dB + integer :: lddb + double precision :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgeqrs3_gpu( m, n, nrhs, dA, ldda, tau, dT, dB, lddb, hwork, lwork, & + info ) + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + double precision :: tau(*) + magma_devptr_t :: dT + magma_devptr_t :: dB + integer :: lddb + double precision :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgerbt_gpu( gen, n, nrhs, dA, ldda, dB, lddb, U, V, info ) + character :: gen + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + double precision :: U(*) + double precision :: V(*) + integer :: info +end + +subroutine magmaf_dgerfs_nopiv_gpu( trans, n, nrhs, dA, ldda, dB, lddb, dX, lddx, dworkd, & + dAF, iter, info ) + character :: trans + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + magma_devptr_t :: dX + integer :: lddx + magma_devptr_t :: dworkd + magma_devptr_t :: dAF + integer :: iter + integer :: info +end + +subroutine magmaf_dgesdd( jobz, m, n, A, lda, s, U, ldu, VT, ldvt, work, lwork, iwork, & + info ) + character :: jobz + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + double precision :: s(*) + double precision :: U(*) + integer :: ldu + double precision :: VT(*) + integer :: ldvt + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: info +end + +subroutine magmaf_dgesv( n, nrhs, A, lda, ipiv, B, ldb, info ) + integer :: n + integer :: nrhs + double precision :: A(*) + integer :: lda + integer :: ipiv(*) + double precision :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_dgesv_gpu( n, nrhs, dA, ldda, ipiv, dB, lddb, info ) + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_dgesv_nopiv_gpu( n, nrhs, dA, ldda, dB, lddb, info ) + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_dgesv_rbt( ref, n, nrhs, A, lda, B, ldb, info ) + character :: ref + integer :: n + integer :: nrhs + double precision :: A(*) + integer :: lda + double precision :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_dgesvd( jobu, jobvt, m, n, A, lda, s, U, ldu, VT, ldvt, work, lwork, & + info ) + character :: jobu + character :: jobvt + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + double precision :: s(*) + double precision :: U(*) + integer :: ldu + double precision :: VT(*) + integer :: ldvt + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dgetf2_gpu( m, n, dA, ldda, ipiv, queue, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: queue + integer :: info +end + +subroutine magmaf_dgetf2_nopiv( m, n, A, lda, info ) + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_dgetrf( m, n, A, lda, ipiv, info ) + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_dgetrf_gpu( m, n, dA, ldda, ipiv, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_dgetrf_m( ngpu, m, n, A, lda, ipiv, info ) + integer :: ngpu + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_dgetrf_nopiv( m, n, A, lda, info ) + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_dgetrf_nopiv_gpu( m, n, dA, ldda, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_dgetri_gpu( n, dA, ldda, ipiv, dwork, lwork, info ) + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: dwork + integer :: lwork + integer :: info +end + +subroutine magmaf_dgetrs_gpu( trans, n, nrhs, dA, ldda, ipiv, dB, lddb, info ) + character :: trans + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_dgetrs_nopiv_gpu( trans, n, nrhs, dA, ldda, dB, lddb, info ) + character :: trans + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_dsyevd( jobz, uplo, n, A, lda, w, work, lwork, iwork, liwork, info ) + character :: jobz + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: w(*) + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsyevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, iwork, & + liwork, info ) + character :: jobz + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: w(*) + double precision :: wA(*) + integer :: ldwa + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, iwork, liwork, & + info ) + integer :: ngpu + character :: jobz + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: w(*) + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsyevdx( jobz, range, uplo, n, A, lda, vl, vu, il, iu, mout, w, work, & + lwork, iwork, liwork, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsyevdx_gpu( jobz, range, uplo, n, dA, ldda, vl, vu, il, iu, mout, w, & + wA, ldwa, work, lwork, iwork, liwork, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + double precision :: wA(*) + integer :: ldwa + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsyevdx_m( ngpu, jobz, range, uplo, n, A, lda, vl, vu, il, iu, mout, w, & + work, lwork, iwork, liwork, info ) + integer :: ngpu + character :: jobz + character :: range + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsyevdx_2stage( jobz, range, uplo, n, A, lda, vl, vu, il, iu, mout, w, & + work, lwork, iwork, liwork, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsyevdx_2stage_m( ngpu, jobz, range, uplo, n, A, lda, vl, vu, il, iu, & + mout, w, work, lwork, iwork, liwork, info ) + integer :: ngpu + character :: jobz + character :: range + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsygst( itype, uplo, n, A, lda, B, ldb, info ) + integer :: itype + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_dsygst_gpu( itype, uplo, n, dA, ldda, dB, lddb, info ) + integer :: itype + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_dsygst_m( ngpu, itype, uplo, n, A, lda, B, ldb, info ) + integer :: ngpu + integer :: itype + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_dsygvd( itype, jobz, uplo, n, A, lda, B, ldb, w, work, lwork, iwork, & + liwork, info ) + integer :: itype + character :: jobz + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: B(*) + integer :: ldb + double precision :: w(*) + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsygvd_m( ngpu, itype, jobz, uplo, n, A, lda, B, ldb, w, work, lwork, & + iwork, liwork, info ) + integer :: ngpu + integer :: itype + character :: jobz + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: B(*) + integer :: ldb + double precision :: w(*) + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsygvdx( itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, il, iu, & + mout, w, work, lwork, iwork, liwork, info ) + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: B(*) + integer :: ldb + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsygvdx_m( ngpu, itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, & + il, iu, mout, w, work, lwork, iwork, liwork, info ) + integer :: ngpu + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: B(*) + integer :: ldb + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsygvdx_2stage( itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, & + il, iu, mout, w, work, lwork, iwork, liwork, info ) + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: B(*) + integer :: ldb + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsygvdx_2stage_m( ngpu, itype, jobz, range, uplo, n, A, lda, B, ldb, & + vl, vu, il, iu, mout, w, work, lwork, iwork, liwork, info ) + integer :: ngpu + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: B(*) + integer :: ldb + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + double precision :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dsysv( uplo, n, nrhs, A, lda, ipiv, B, ldb, info ) + character :: uplo + integer :: n + integer :: nrhs + double precision :: A(*) + integer :: lda + integer :: ipiv(*) + double precision :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_dsysv_nopiv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_dsytrd( uplo, n, A, lda, d, e, tau, work, lwork, info ) + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + double precision :: d(*) + double precision :: e(*) + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dsytrd_gpu( uplo, n, dA, ldda, d, e, tau, wA, ldwa, work, lwork, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: d(*) + double precision :: e(*) + double precision :: tau(*) + double precision :: wA(*) + integer :: ldwa + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dsytrd2_gpu( uplo, n, dA, ldda, d, e, tau, wA, ldwa, work, lwork, & + dwork, ldwork, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: d(*) + double precision :: e(*) + double precision :: tau(*) + double precision :: wA(*) + integer :: ldwa + double precision :: work(*) + integer :: lwork + magma_devptr_t :: dwork + integer :: ldwork + integer :: info +end + +integer function magmaf_dsytrd_sb2st( uplo, n, nb, Vblksiz, A, lda, d, e, V, ldv, TAU, & + compT, T, ldt ) + character :: uplo + integer :: n + integer :: nb + integer :: Vblksiz + double precision :: A(*) + integer :: lda + double precision :: d(*) + double precision :: e(*) + double precision :: V(*) + integer :: ldv + double precision :: TAU(*) + integer :: compT + double precision :: T(*) + integer :: ldt +end + +subroutine magmaf_dsytrd_sy2sb( uplo, n, nb, A, lda, tau, work, lwork, dT, info ) + character :: uplo + integer :: n + integer :: nb + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_dsytrf( uplo, n, A, lda, ipiv, info ) + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_dsytrf_aasen( uplo, cpu_panel, n, A, lda, ipiv, info ) + character :: uplo + integer :: cpu_panel + integer :: n + double precision :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_dsytrf_nopiv( uplo, n, A, lda, info ) + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_dsytrf_nopiv_cpu( uplo, n, ib, A, lda, info ) + character :: uplo + integer :: n + integer :: ib + double precision :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_dsytrf_nopiv_gpu( uplo, n, dA, ldda, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_dsytrs_nopiv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_dlaln2( trans, na, nw, smin, ca, A, lda, d1, d2, B, ldb, wr, wi, X, & + ldx, scale, xnorm, info ) + integer :: trans + integer :: na + integer :: nw + double precision :: smin + double precision :: ca + double precision :: A(*) + integer :: lda + double precision :: d1 + double precision :: d2 + double precision :: B(*) + integer :: ldb + double precision :: wr + double precision :: wi + double precision :: X(*) + integer :: ldx + double precision :: scale(*) + double precision :: xnorm(*) + integer :: info +end + +subroutine magmaf_dlaqtrsd( trans, n, T, ldt, x, ldx, cnorm, info ) + character :: trans + integer :: n + double precision :: T(*) + integer :: ldt + double precision :: x(*) + integer :: ldx + double precision :: cnorm(*) + integer :: info +end + +integer function magmaf_dlarf_gpu( m, n, dv, dtau, dC, lddc, queue ) + integer :: m + integer :: n + magma_devptr_t :: dv + magma_devptr_t :: dtau + magma_devptr_t :: dC + integer :: lddc + magma_devptr_t :: queue +end + +integer function magmaf_dlarfb2_gpu( m, n, k, dV, lddv, dT, lddt, dC, lddc, dwork, & + ldwork, queue ) + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dV + integer :: lddv + magma_devptr_t :: dT + integer :: lddt + magma_devptr_t :: dC + integer :: lddc + magma_devptr_t :: dwork + integer :: ldwork + magma_devptr_t :: queue +end + +subroutine magmaf_dlauum( uplo, n, A, lda, info ) + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_dlauum_gpu( uplo, n, dA, ldda, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_dposv( uplo, n, nrhs, A, lda, B, ldb, info ) + character :: uplo + integer :: n + integer :: nrhs + double precision :: A(*) + integer :: lda + double precision :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_dposv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_dpotf2_gpu( uplo, n, dA, ldda, queue, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: queue + integer :: info +end + +subroutine magmaf_dpotrf( uplo, n, A, lda, info ) + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_dpotrf_gpu( uplo, n, dA, ldda, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_dpotrf_m( ngpu, uplo, n, A, lda, info ) + integer :: ngpu + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_dpotri( uplo, n, A, lda, info ) + character :: uplo + integer :: n + double precision :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_dpotri_gpu( uplo, n, dA, ldda, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_dpotrs_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_dstedx( range, n, vl, vu, il, iu, d, e, Z, ldz, rwork, lrwork, iwork, & + liwork, dwork, info ) + character :: range + integer :: n + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + double precision :: d(*) + double precision :: e(*) + double precision :: Z(*) + integer :: ldz + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_dstedx_m( ngpu, range, n, vl, vu, il, iu, d, e, Z, ldz, rwork, lrwork, & + iwork, liwork, info ) + integer :: ngpu + character :: range + integer :: n + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + double precision :: d(*) + double precision :: e(*) + double precision :: Z(*) + integer :: ldz + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_dtrevc3( side, howmany, select, n, T, ldt, VL, ldvl, VR, ldvr, mm, & + mout, work, lwork, info ) + character :: side + character :: howmany + integer :: select(*) + integer :: n + double precision :: T(*) + integer :: ldt + double precision :: VL(*) + integer :: ldvl + double precision :: VR(*) + integer :: ldvr + integer :: mm + integer :: mout(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dtrevc3_mt( side, howmany, select, n, T, ldt, VL, ldvl, VR, ldvr, mm, & + mout, work, lwork, info ) + character :: side + character :: howmany + integer :: select(*) + integer :: n + double precision :: T(*) + integer :: ldt + double precision :: VL(*) + integer :: ldvl + double precision :: VR(*) + integer :: ldvr + integer :: mm + integer :: mout(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +integer function magmaf_dtrsm_m( ngpu, side, uplo, transa, diag, m, n, alpha, A, lda, B, & + ldb ) + integer :: ngpu + character :: side + character :: uplo + character :: transa + character :: diag + integer :: m + integer :: n + double precision :: alpha + double precision :: A(*) + integer :: lda + double precision :: B(*) + integer :: ldb +end + +subroutine magmaf_dtrtri( uplo, diag, n, A, lda, info ) + character :: uplo + character :: diag + integer :: n + double precision :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_dtrtri_gpu( uplo, diag, n, dA, ldda, info ) + character :: uplo + character :: diag + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_dorgbr( vect, m, n, k, A, lda, tau, work, lwork, info ) + character :: vect + integer :: m + integer :: n + integer :: k + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dorghr( n, ilo, ihi, A, lda, tau, dT, nb, info ) + integer :: n + integer :: ilo + integer :: ihi + double precision :: A(*) + integer :: lda + double precision :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_dorghr_m( n, ilo, ihi, A, lda, tau, T, nb, info ) + integer :: n + integer :: ilo + integer :: ihi + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: T(*) + integer :: nb + integer :: info +end + +subroutine magmaf_dorglq( m, n, k, A, lda, tau, dT, nb, info ) + integer :: m + integer :: n + integer :: k + double precision :: A(*) + integer :: lda + double precision :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_dorgqr( m, n, k, A, lda, tau, dT, nb, info ) + integer :: m + integer :: n + integer :: k + double precision :: A(*) + integer :: lda + double precision :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_dorgqr_gpu( m, n, k, dA, ldda, tau, dT, nb, info ) + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + double precision :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_dorgqr_m( m, n, k, A, lda, tau, T, nb, info ) + integer :: m + integer :: n + integer :: k + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: T(*) + integer :: nb + integer :: info +end + +subroutine magmaf_dorgqr2( m, n, k, A, lda, tau, info ) + integer :: m + integer :: n + integer :: k + double precision :: A(*) + integer :: lda + double precision :: tau(*) + integer :: info +end + +subroutine magmaf_dormbr( vect, side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, & + info ) + character :: vect + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: C(*) + integer :: ldc + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dormlq( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: C(*) + integer :: ldc + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dormrq( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: C(*) + integer :: ldc + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dormql( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: C(*) + integer :: ldc + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dormql2_gpu( side, trans, m, n, k, dA, ldda, tau, dC, lddc, wA, ldwa, & + info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + double precision :: tau(*) + magma_devptr_t :: dC + integer :: lddc + double precision :: wA(*) + integer :: ldwa + integer :: info +end + +subroutine magmaf_dormqr( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: C(*) + integer :: ldc + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dormqr_gpu( side, trans, m, n, k, dA, ldda, tau, dC, lddc, hwork, & + lwork, dT, nb, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + double precision :: tau(*) + magma_devptr_t :: dC + integer :: lddc + double precision :: hwork(*) + integer :: lwork + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_dormqr2_gpu( side, trans, m, n, k, dA, ldda, tau, dC, lddc, wA, ldwa, & + info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + double precision :: tau(*) + magma_devptr_t :: dC + integer :: lddc + double precision :: wA(*) + integer :: ldwa + integer :: info +end + +subroutine magmaf_dormqr_m( ngpu, side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, & + info ) + integer :: ngpu + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: C(*) + integer :: ldc + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dormtr( side, uplo, trans, m, n, A, lda, tau, C, ldc, work, lwork, info & + ) + character :: side + character :: uplo + character :: trans + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: C(*) + integer :: ldc + double precision :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_dormtr_gpu( side, uplo, trans, m, n, dA, ldda, tau, dC, lddc, wA, ldwa, & + info ) + character :: side + character :: uplo + character :: trans + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: tau(*) + magma_devptr_t :: dC + integer :: lddc + double precision :: wA(*) + integer :: ldwa + integer :: info +end + +subroutine magmaf_dormtr_m( ngpu, side, uplo, trans, m, n, A, lda, tau, C, ldc, work, & + lwork, info ) + integer :: ngpu + character :: side + character :: uplo + character :: trans + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + double precision :: tau(*) + double precision :: C(*) + integer :: ldc + double precision :: work(*) + integer :: lwork + integer :: info +end + +integer function magmaf_d_isnan( x ) + double precision :: x +end + +integer function magmaf_d_isinf( x ) + double precision :: x +end + +integer function magmaf_d_isnan_inf( x ) + double precision :: x +end + +double precision function magmaf_dmake_lwork( lwork ) + integer :: lwork +end + +integer function magmaf_dnan_inf( uplo, m, n, A, lda, cnt_nan, cnt_inf ) + character :: uplo + integer :: m + integer :: n + double precision :: A(*) + integer :: lda + integer :: cnt_nan(*) + integer :: cnt_inf(*) +end + +integer function magmaf_dnan_inf_gpu( uplo, m, n, dA, ldda, cnt_nan, cnt_inf, queue ) + character :: uplo + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: cnt_nan(*) + integer :: cnt_inf(*) + magma_devptr_t :: queue +end + +subroutine magmaf_dprint( m, n, A, lda ) + integer :: m + integer :: n + double precision :: A(*) + integer :: lda +end + +subroutine magmaf_dprint_gpu( m, n, dA, ldda, queue ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: queue +end + +subroutine magmaf_dpanel_to_q( uplo, ib, A, lda, work ) + character :: uplo + integer :: ib + double precision :: A(*) + integer :: lda + double precision :: work(*) +end + +subroutine magmaf_dq_to_panel( uplo, ib, A, lda, work ) + character :: uplo + integer :: ib + double precision :: A(*) + integer :: lda + double precision :: work(*) +end + +end interface + +end module magma_dfortran diff --git a/lib/magma_fmodules/magma_param.F b/lib/magma_fmodules/magma_param.F new file mode 100644 index 0000000000..8fd7c5f978 --- /dev/null +++ b/lib/magma_fmodules/magma_param.F @@ -0,0 +1,25 @@ +! +! -- MAGMA (version 2.8.0) -- +! Univ. of Tennessee, Knoxville +! Univ. of California, Berkeley +! Univ. of Colorado, Denver +! @date March 2024 +! + +module magma_param + + implicit none + + ! could use STORAGE_SIZE in Fortran 2008 + integer, parameter :: sizeof_complex_16 = 16 + integer, parameter :: sizeof_complex = 8 + integer, parameter :: sizeof_double = 8 + integer, parameter :: sizeof_real = 4 + +#if defined(MAGMA_ILP64) || defined(MKL_ILP64) + integer, parameter :: sizeof_integer = 8 +#else + integer, parameter :: sizeof_integer = 4 +#endif + +end module magma_param diff --git a/lib/magma_fmodules/magma_sfortran.F b/lib/magma_fmodules/magma_sfortran.F new file mode 100644 index 0000000000..6a50cb38ce --- /dev/null +++ b/lib/magma_fmodules/magma_sfortran.F @@ -0,0 +1,1830 @@ +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! This file is AUTOMATICALLY GENERATED by: +!! tools/fortran_wrappers.pl include/magma_s.i +!! Do not edit. +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +module magma_sfortran + +use magma_param + +implicit none + +!---- Fortran interfaces to MAGMA subroutines ---- +interface + +integer function magmaf_get_slaex3_m_nb( ) +end + +integer function magmaf_get_spotrf_nb( n ) + integer :: n +end + +integer function magmaf_get_sgetrf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_sgetri_nb( n ) + integer :: n +end + +integer function magmaf_get_ssytrf_nb( n ) + integer :: n +end + +integer function magmaf_get_ssytrf_nopiv_nb( n ) + integer :: n +end + +integer function magmaf_get_ssytrf_aasen_nb( n ) + integer :: n +end + +integer function magmaf_get_sgeqp3_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_sgeqrf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_sgeqlf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_sgelqf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_sgehrd_nb( n ) + integer :: n +end + +integer function magmaf_get_ssytrd_nb( n ) + integer :: n +end + +integer function magmaf_get_ssygst_nb( n ) + integer :: n +end + +integer function magmaf_get_ssygst_m_nb( n ) + integer :: n +end + +integer function magmaf_get_sgebrd_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_sgesvd_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_sbulge_nb( n, nbthreads ) + integer :: n + integer :: nbthreads +end + +integer function magmaf_get_sbulge_vblksiz( n, nb, nbthreads ) + integer :: n + integer :: nb + integer :: nbthreads +end + +integer function magmaf_get_sbulge_gcperf( ) +end + +subroutine magmaf_smove_eig( range, n, w, il, iu, vl, vu, mout ) + character :: range + integer :: n + real :: w(*) + integer :: il(*) + integer :: iu(*) + real :: vl + real :: vu + integer :: mout(*) +end + +subroutine magmaf_svrange( k, d, il, iu, vl, vu ) + integer :: k + real :: d(*) + integer :: il(*) + integer :: iu(*) + real :: vl + real :: vu +end + +subroutine magmaf_sirange( k, indxq, iil, iiu, il, iu ) + integer :: k + integer :: indxq(*) + integer :: iil(*) + integer :: iiu(*) + integer :: il + integer :: iu +end + +subroutine magmaf_sgebrd( m, n, A, lda, d, e, tauq, taup, work, lwork, info ) + integer :: m + integer :: n + real :: A(*) + integer :: lda + real :: d(*) + real :: e(*) + real :: tauq(*) + real :: taup(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgeev( jobvl, jobvr, n, A, lda, wr, wi, VL, ldvl, VR, ldvr, work, & + lwork, info ) + character :: jobvl + character :: jobvr + integer :: n + real :: A(*) + integer :: lda + real :: wr(*) + real :: wi(*) + real :: VL(*) + integer :: ldvl + real :: VR(*) + integer :: ldvr + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgeev_m( jobvl, jobvr, n, A, lda, wr, wi, VL, ldvl, VR, ldvr, work, & + lwork, info ) + character :: jobvl + character :: jobvr + integer :: n + real :: A(*) + integer :: lda + real :: wr(*) + real :: wi(*) + real :: VL(*) + integer :: ldvl + real :: VR(*) + integer :: ldvr + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgegqr_gpu( ikind, m, n, dA, ldda, dwork, work, info ) + integer :: ikind + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dwork + real :: work(*) + integer :: info +end + +subroutine magmaf_sgehrd( n, ilo, ihi, A, lda, tau, work, lwork, dT, info ) + integer :: n + integer :: ilo + integer :: ihi + real :: A(*) + integer :: lda + real :: tau(*) + real :: work(*) + integer :: lwork + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_sgehrd_m( n, ilo, ihi, A, lda, tau, work, lwork, T, info ) + integer :: n + integer :: ilo + integer :: ihi + real :: A(*) + integer :: lda + real :: tau(*) + real :: work(*) + integer :: lwork + real :: T(*) + integer :: info +end + +subroutine magmaf_sgehrd2( n, ilo, ihi, A, lda, tau, work, lwork, info ) + integer :: n + integer :: ilo + integer :: ihi + real :: A(*) + integer :: lda + real :: tau(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgelqf( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + real :: A(*) + integer :: lda + real :: tau(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgelqf_gpu( m, n, dA, ldda, tau, work, lwork, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: tau(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgels( trans, m, n, nrhs, A, lda, B, ldb, hwork, lwork, info ) + character :: trans + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: A + integer :: lda + magma_devptr_t :: B + integer :: ldb + real :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sggrqf( m, p, n, A, lda, taua, B, ldb, taub, work, lwork, info ) + integer :: m + integer :: p + integer :: n + real :: A(*) + integer :: lda + real :: taua(*) + real :: B(*) + integer :: ldb + real :: taub(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgglse( m, n, p, A, lda, B, ldb, c, d, x, work, lwork, info ) + integer :: m + integer :: n + integer :: p + real :: A(*) + integer :: lda + real :: B(*) + integer :: ldb + real :: c(*) + real :: d(*) + real :: x(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgels_gpu( trans, m, n, nrhs, dA, ldda, dB, lddb, hwork, lwork, info ) + character :: trans + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + real :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgels3_gpu( trans, m, n, nrhs, dA, ldda, dB, lddb, hwork, lwork, info ) + character :: trans + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + real :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgeqlf( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + real :: A(*) + integer :: lda + real :: tau(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgeqp3( m, n, A, lda, jpvt, tau, work, lwork, info ) + integer :: m + integer :: n + real :: A(*) + integer :: lda + integer :: jpvt(*) + real :: tau(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgeqp3_gpu( m, n, dA, ldda, jpvt, tau, dwork, lwork, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: jpvt(*) + real :: tau(*) + magma_devptr_t :: dwork + integer :: lwork + integer :: info +end + +subroutine magmaf_sgeqr2x_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_sgeqr2x2_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_sgeqr2x3_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_sgeqr2x4_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, queue, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + magma_devptr_t :: queue + integer :: info +end + +subroutine magmaf_sgeqrf( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + real :: A(*) + integer :: lda + real :: tau(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgeqrf_gpu( m, n, dA, ldda, tau, dT, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: tau(*) + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_sgeqrf_m( ngpu, m, n, A, lda, tau, work, lwork, info ) + integer :: ngpu + integer :: m + integer :: n + real :: A(*) + integer :: lda + real :: tau(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgeqrf_ooc( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + real :: A(*) + integer :: lda + real :: tau(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgeqrf2_gpu( m, n, dA, ldda, tau, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: tau(*) + integer :: info +end + +subroutine magmaf_sgeqrf3_gpu( m, n, dA, ldda, tau, dT, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: tau(*) + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_sgeqrs_gpu( m, n, nrhs, dA, ldda, tau, dT, dB, lddb, hwork, lwork, info & + ) + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + real :: tau(*) + magma_devptr_t :: dT + magma_devptr_t :: dB + integer :: lddb + real :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgeqrs3_gpu( m, n, nrhs, dA, ldda, tau, dT, dB, lddb, hwork, lwork, & + info ) + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + real :: tau(*) + magma_devptr_t :: dT + magma_devptr_t :: dB + integer :: lddb + real :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgerbt_gpu( gen, n, nrhs, dA, ldda, dB, lddb, U, V, info ) + character :: gen + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + real :: U(*) + real :: V(*) + integer :: info +end + +subroutine magmaf_sgerfs_nopiv_gpu( trans, n, nrhs, dA, ldda, dB, lddb, dX, lddx, dworkd, & + dAF, iter, info ) + character :: trans + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + magma_devptr_t :: dX + integer :: lddx + magma_devptr_t :: dworkd + magma_devptr_t :: dAF + integer :: iter + integer :: info +end + +subroutine magmaf_sgesdd( jobz, m, n, A, lda, s, U, ldu, VT, ldvt, work, lwork, iwork, & + info ) + character :: jobz + integer :: m + integer :: n + real :: A(*) + integer :: lda + real :: s(*) + real :: U(*) + integer :: ldu + real :: VT(*) + integer :: ldvt + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: info +end + +subroutine magmaf_sgesv( n, nrhs, A, lda, ipiv, B, ldb, info ) + integer :: n + integer :: nrhs + real :: A(*) + integer :: lda + integer :: ipiv(*) + real :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_sgesv_gpu( n, nrhs, dA, ldda, ipiv, dB, lddb, info ) + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_sgesv_nopiv_gpu( n, nrhs, dA, ldda, dB, lddb, info ) + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_sgesv_rbt( ref, n, nrhs, A, lda, B, ldb, info ) + character :: ref + integer :: n + integer :: nrhs + real :: A(*) + integer :: lda + real :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_sgesvd( jobu, jobvt, m, n, A, lda, s, U, ldu, VT, ldvt, work, lwork, & + info ) + character :: jobu + character :: jobvt + integer :: m + integer :: n + real :: A(*) + integer :: lda + real :: s(*) + real :: U(*) + integer :: ldu + real :: VT(*) + integer :: ldvt + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sgetf2_gpu( m, n, dA, ldda, ipiv, queue, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: queue + integer :: info +end + +subroutine magmaf_sgetf2_nopiv( m, n, A, lda, info ) + integer :: m + integer :: n + real :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_sgetrf( m, n, A, lda, ipiv, info ) + integer :: m + integer :: n + real :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_sgetrf_gpu( m, n, dA, ldda, ipiv, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_sgetrf_m( ngpu, m, n, A, lda, ipiv, info ) + integer :: ngpu + integer :: m + integer :: n + real :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_sgetrf_nopiv( m, n, A, lda, info ) + integer :: m + integer :: n + real :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_sgetrf_nopiv_gpu( m, n, dA, ldda, info ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_sgetri_gpu( n, dA, ldda, ipiv, dwork, lwork, info ) + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: dwork + integer :: lwork + integer :: info +end + +subroutine magmaf_sgetrs_gpu( trans, n, nrhs, dA, ldda, ipiv, dB, lddb, info ) + character :: trans + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_sgetrs_nopiv_gpu( trans, n, nrhs, dA, ldda, dB, lddb, info ) + character :: trans + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_ssyevd( jobz, uplo, n, A, lda, w, work, lwork, iwork, liwork, info ) + character :: jobz + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: w(*) + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssyevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, iwork, & + liwork, info ) + character :: jobz + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: w(*) + real :: wA(*) + integer :: ldwa + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, iwork, liwork, & + info ) + integer :: ngpu + character :: jobz + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: w(*) + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssyevdx( jobz, range, uplo, n, A, lda, vl, vu, il, iu, mout, w, work, & + lwork, iwork, liwork, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssyevdx_gpu( jobz, range, uplo, n, dA, ldda, vl, vu, il, iu, mout, w, & + wA, ldwa, work, lwork, iwork, liwork, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + real :: wA(*) + integer :: ldwa + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssyevdx_m( ngpu, jobz, range, uplo, n, A, lda, vl, vu, il, iu, mout, w, & + work, lwork, iwork, liwork, info ) + integer :: ngpu + character :: jobz + character :: range + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssyevdx_2stage( jobz, range, uplo, n, A, lda, vl, vu, il, iu, mout, w, & + work, lwork, iwork, liwork, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssyevdx_2stage_m( ngpu, jobz, range, uplo, n, A, lda, vl, vu, il, iu, & + mout, w, work, lwork, iwork, liwork, info ) + integer :: ngpu + character :: jobz + character :: range + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssygst( itype, uplo, n, A, lda, B, ldb, info ) + integer :: itype + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_ssygst_gpu( itype, uplo, n, dA, ldda, dB, lddb, info ) + integer :: itype + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_ssygst_m( ngpu, itype, uplo, n, A, lda, B, ldb, info ) + integer :: ngpu + integer :: itype + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_ssygvd( itype, jobz, uplo, n, A, lda, B, ldb, w, work, lwork, iwork, & + liwork, info ) + integer :: itype + character :: jobz + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: B(*) + integer :: ldb + real :: w(*) + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssygvd_m( ngpu, itype, jobz, uplo, n, A, lda, B, ldb, w, work, lwork, & + iwork, liwork, info ) + integer :: ngpu + integer :: itype + character :: jobz + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: B(*) + integer :: ldb + real :: w(*) + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssygvdx( itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, il, iu, & + mout, w, work, lwork, iwork, liwork, info ) + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: B(*) + integer :: ldb + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssygvdx_m( ngpu, itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, & + il, iu, mout, w, work, lwork, iwork, liwork, info ) + integer :: ngpu + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: B(*) + integer :: ldb + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssygvdx_2stage( itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, & + il, iu, mout, w, work, lwork, iwork, liwork, info ) + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: B(*) + integer :: ldb + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssygvdx_2stage_m( ngpu, itype, jobz, range, uplo, n, A, lda, B, ldb, & + vl, vu, il, iu, mout, w, work, lwork, iwork, liwork, info ) + integer :: ngpu + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: B(*) + integer :: ldb + real :: vl + real :: vu + integer :: il + integer :: iu + integer :: mout(*) + real :: w(*) + real :: work(*) + integer :: lwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ssysv( uplo, n, nrhs, A, lda, ipiv, B, ldb, info ) + character :: uplo + integer :: n + integer :: nrhs + real :: A(*) + integer :: lda + integer :: ipiv(*) + real :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_ssysv_nopiv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_ssytrd( uplo, n, A, lda, d, e, tau, work, lwork, info ) + character :: uplo + integer :: n + real :: A(*) + integer :: lda + real :: d(*) + real :: e(*) + real :: tau(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_ssytrd_gpu( uplo, n, dA, ldda, d, e, tau, wA, ldwa, work, lwork, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: d(*) + real :: e(*) + real :: tau(*) + real :: wA(*) + integer :: ldwa + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_ssytrd2_gpu( uplo, n, dA, ldda, d, e, tau, wA, ldwa, work, lwork, & + dwork, ldwork, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: d(*) + real :: e(*) + real :: tau(*) + real :: wA(*) + integer :: ldwa + real :: work(*) + integer :: lwork + magma_devptr_t :: dwork + integer :: ldwork + integer :: info +end + +integer function magmaf_ssytrd_sb2st( uplo, n, nb, Vblksiz, A, lda, d, e, V, ldv, TAU, & + compT, T, ldt ) + character :: uplo + integer :: n + integer :: nb + integer :: Vblksiz + real :: A(*) + integer :: lda + real :: d(*) + real :: e(*) + real :: V(*) + integer :: ldv + real :: TAU(*) + integer :: compT + real :: T(*) + integer :: ldt +end + +subroutine magmaf_ssytrd_sy2sb( uplo, n, nb, A, lda, tau, work, lwork, dT, info ) + character :: uplo + integer :: n + integer :: nb + real :: A(*) + integer :: lda + real :: tau(*) + real :: work(*) + integer :: lwork + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_ssytrf( uplo, n, A, lda, ipiv, info ) + character :: uplo + integer :: n + real :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_ssytrf_aasen( uplo, cpu_panel, n, A, lda, ipiv, info ) + character :: uplo + integer :: cpu_panel + integer :: n + real :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_ssytrf_nopiv( uplo, n, A, lda, info ) + character :: uplo + integer :: n + real :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_ssytrf_nopiv_cpu( uplo, n, ib, A, lda, info ) + character :: uplo + integer :: n + integer :: ib + real :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_ssytrf_nopiv_gpu( uplo, n, dA, ldda, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_ssytrs_nopiv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_slaln2( trans, na, nw, smin, ca, A, lda, d1, d2, B, ldb, wr, wi, X, & + ldx, scale, xnorm, info ) + integer :: trans + integer :: na + integer :: nw + real :: smin + real :: ca + real :: A(*) + integer :: lda + real :: d1 + real :: d2 + real :: B(*) + integer :: ldb + real :: wr + real :: wi + real :: X(*) + integer :: ldx + real :: scale(*) + real :: xnorm(*) + integer :: info +end + +subroutine magmaf_slaqtrsd( trans, n, T, ldt, x, ldx, cnorm, info ) + character :: trans + integer :: n + real :: T(*) + integer :: ldt + real :: x(*) + integer :: ldx + real :: cnorm(*) + integer :: info +end + +integer function magmaf_slarf_gpu( m, n, dv, dtau, dC, lddc, queue ) + integer :: m + integer :: n + magma_devptr_t :: dv + magma_devptr_t :: dtau + magma_devptr_t :: dC + integer :: lddc + magma_devptr_t :: queue +end + +integer function magmaf_slarfb2_gpu( m, n, k, dV, lddv, dT, lddt, dC, lddc, dwork, & + ldwork, queue ) + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dV + integer :: lddv + magma_devptr_t :: dT + integer :: lddt + magma_devptr_t :: dC + integer :: lddc + magma_devptr_t :: dwork + integer :: ldwork + magma_devptr_t :: queue +end + +subroutine magmaf_slauum( uplo, n, A, lda, info ) + character :: uplo + integer :: n + real :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_slauum_gpu( uplo, n, dA, ldda, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_sposv( uplo, n, nrhs, A, lda, B, ldb, info ) + character :: uplo + integer :: n + integer :: nrhs + real :: A(*) + integer :: lda + real :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_sposv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_spotf2_gpu( uplo, n, dA, ldda, queue, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: queue + integer :: info +end + +subroutine magmaf_spotrf( uplo, n, A, lda, info ) + character :: uplo + integer :: n + real :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_spotrf_gpu( uplo, n, dA, ldda, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_spotrf_m( ngpu, uplo, n, A, lda, info ) + integer :: ngpu + character :: uplo + integer :: n + real :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_spotri( uplo, n, A, lda, info ) + character :: uplo + integer :: n + real :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_spotri_gpu( uplo, n, dA, ldda, info ) + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_spotrs_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_sstedx( range, n, vl, vu, il, iu, d, e, Z, ldz, rwork, lrwork, iwork, & + liwork, dwork, info ) + character :: range + integer :: n + real :: vl + real :: vu + integer :: il + integer :: iu + real :: d(*) + real :: e(*) + real :: Z(*) + integer :: ldz + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_sstedx_m( ngpu, range, n, vl, vu, il, iu, d, e, Z, ldz, rwork, lrwork, & + iwork, liwork, info ) + integer :: ngpu + character :: range + integer :: n + real :: vl + real :: vu + integer :: il + integer :: iu + real :: d(*) + real :: e(*) + real :: Z(*) + integer :: ldz + real :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_strevc3( side, howmany, select, n, T, ldt, VL, ldvl, VR, ldvr, mm, & + mout, work, lwork, info ) + character :: side + character :: howmany + integer :: select(*) + integer :: n + real :: T(*) + integer :: ldt + real :: VL(*) + integer :: ldvl + real :: VR(*) + integer :: ldvr + integer :: mm + integer :: mout(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_strevc3_mt( side, howmany, select, n, T, ldt, VL, ldvl, VR, ldvr, mm, & + mout, work, lwork, info ) + character :: side + character :: howmany + integer :: select(*) + integer :: n + real :: T(*) + integer :: ldt + real :: VL(*) + integer :: ldvl + real :: VR(*) + integer :: ldvr + integer :: mm + integer :: mout(*) + real :: work(*) + integer :: lwork + integer :: info +end + +integer function magmaf_strsm_m( ngpu, side, uplo, transa, diag, m, n, alpha, A, lda, B, & + ldb ) + integer :: ngpu + character :: side + character :: uplo + character :: transa + character :: diag + integer :: m + integer :: n + real :: alpha + real :: A(*) + integer :: lda + real :: B(*) + integer :: ldb +end + +subroutine magmaf_strtri( uplo, diag, n, A, lda, info ) + character :: uplo + character :: diag + integer :: n + real :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_strtri_gpu( uplo, diag, n, dA, ldda, info ) + character :: uplo + character :: diag + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_sorgbr( vect, m, n, k, A, lda, tau, work, lwork, info ) + character :: vect + integer :: m + integer :: n + integer :: k + real :: A(*) + integer :: lda + real :: tau(*) + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sorghr( n, ilo, ihi, A, lda, tau, dT, nb, info ) + integer :: n + integer :: ilo + integer :: ihi + real :: A(*) + integer :: lda + real :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_sorghr_m( n, ilo, ihi, A, lda, tau, T, nb, info ) + integer :: n + integer :: ilo + integer :: ihi + real :: A(*) + integer :: lda + real :: tau(*) + real :: T(*) + integer :: nb + integer :: info +end + +subroutine magmaf_sorglq( m, n, k, A, lda, tau, dT, nb, info ) + integer :: m + integer :: n + integer :: k + real :: A(*) + integer :: lda + real :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_sorgqr( m, n, k, A, lda, tau, dT, nb, info ) + integer :: m + integer :: n + integer :: k + real :: A(*) + integer :: lda + real :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_sorgqr_gpu( m, n, k, dA, ldda, tau, dT, nb, info ) + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + real :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_sorgqr_m( m, n, k, A, lda, tau, T, nb, info ) + integer :: m + integer :: n + integer :: k + real :: A(*) + integer :: lda + real :: tau(*) + real :: T(*) + integer :: nb + integer :: info +end + +subroutine magmaf_sorgqr2( m, n, k, A, lda, tau, info ) + integer :: m + integer :: n + integer :: k + real :: A(*) + integer :: lda + real :: tau(*) + integer :: info +end + +subroutine magmaf_sormbr( vect, side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, & + info ) + character :: vect + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + real :: A(*) + integer :: lda + real :: tau(*) + real :: C(*) + integer :: ldc + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sormlq( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + real :: A(*) + integer :: lda + real :: tau(*) + real :: C(*) + integer :: ldc + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sormrq( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + real :: A(*) + integer :: lda + real :: tau(*) + real :: C(*) + integer :: ldc + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sormql( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + real :: A(*) + integer :: lda + real :: tau(*) + real :: C(*) + integer :: ldc + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sormql2_gpu( side, trans, m, n, k, dA, ldda, tau, dC, lddc, wA, ldwa, & + info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + real :: tau(*) + magma_devptr_t :: dC + integer :: lddc + real :: wA(*) + integer :: ldwa + integer :: info +end + +subroutine magmaf_sormqr( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + real :: A(*) + integer :: lda + real :: tau(*) + real :: C(*) + integer :: ldc + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sormqr_gpu( side, trans, m, n, k, dA, ldda, tau, dC, lddc, hwork, & + lwork, dT, nb, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + real :: tau(*) + magma_devptr_t :: dC + integer :: lddc + real :: hwork(*) + integer :: lwork + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_sormqr2_gpu( side, trans, m, n, k, dA, ldda, tau, dC, lddc, wA, ldwa, & + info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + real :: tau(*) + magma_devptr_t :: dC + integer :: lddc + real :: wA(*) + integer :: ldwa + integer :: info +end + +subroutine magmaf_sormqr_m( ngpu, side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, & + info ) + integer :: ngpu + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + real :: A(*) + integer :: lda + real :: tau(*) + real :: C(*) + integer :: ldc + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sormtr( side, uplo, trans, m, n, A, lda, tau, C, ldc, work, lwork, info & + ) + character :: side + character :: uplo + character :: trans + integer :: m + integer :: n + real :: A(*) + integer :: lda + real :: tau(*) + real :: C(*) + integer :: ldc + real :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_sormtr_gpu( side, uplo, trans, m, n, dA, ldda, tau, dC, lddc, wA, ldwa, & + info ) + character :: side + character :: uplo + character :: trans + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + real :: tau(*) + magma_devptr_t :: dC + integer :: lddc + real :: wA(*) + integer :: ldwa + integer :: info +end + +subroutine magmaf_sormtr_m( ngpu, side, uplo, trans, m, n, A, lda, tau, C, ldc, work, & + lwork, info ) + integer :: ngpu + character :: side + character :: uplo + character :: trans + integer :: m + integer :: n + real :: A(*) + integer :: lda + real :: tau(*) + real :: C(*) + integer :: ldc + real :: work(*) + integer :: lwork + integer :: info +end + +integer function magmaf_s_isnan( x ) + real :: x +end + +integer function magmaf_s_isinf( x ) + real :: x +end + +integer function magmaf_s_isnan_inf( x ) + real :: x +end + +real function magmaf_smake_lwork( lwork ) + integer :: lwork +end + +integer function magmaf_snan_inf( uplo, m, n, A, lda, cnt_nan, cnt_inf ) + character :: uplo + integer :: m + integer :: n + real :: A(*) + integer :: lda + integer :: cnt_nan(*) + integer :: cnt_inf(*) +end + +integer function magmaf_snan_inf_gpu( uplo, m, n, dA, ldda, cnt_nan, cnt_inf, queue ) + character :: uplo + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: cnt_nan(*) + integer :: cnt_inf(*) + magma_devptr_t :: queue +end + +subroutine magmaf_sprint( m, n, A, lda ) + integer :: m + integer :: n + real :: A(*) + integer :: lda +end + +subroutine magmaf_sprint_gpu( m, n, dA, ldda, queue ) + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: queue +end + +subroutine magmaf_spanel_to_q( uplo, ib, A, lda, work ) + character :: uplo + integer :: ib + real :: A(*) + integer :: lda + real :: work(*) +end + +subroutine magmaf_sq_to_panel( uplo, ib, A, lda, work ) + character :: uplo + integer :: ib + real :: A(*) + integer :: lda + real :: work(*) +end + +end interface + +end module magma_sfortran diff --git a/lib/magma_fmodules/magma_zfortran.F b/lib/magma_fmodules/magma_zfortran.F new file mode 100644 index 0000000000..c5ef5cbf41 --- /dev/null +++ b/lib/magma_fmodules/magma_zfortran.F @@ -0,0 +1,2086 @@ +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! This file is AUTOMATICALLY GENERATED by: +!! tools/fortran_wrappers.pl include/magma_z.i +!! Do not edit. +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +module magma_zfortran + +use magma_param +use iso_fortran_env, ONLY: int64 + +#define magma_devptr_t integer(int64) + +implicit none + +!---- Fortran interfaces to MAGMA subroutines ---- +interface + +integer function magmaf_get_zpotrf_nb( n ) + integer :: n +end + +integer function magmaf_get_zgetrf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_zgetri_nb( n ) + integer :: n +end + +integer function magmaf_get_zhetrf_nb( n ) + integer :: n +end + +integer function magmaf_get_zhetrf_nopiv_nb( n ) + integer :: n +end + +integer function magmaf_get_zhetrf_aasen_nb( n ) + integer :: n +end + +integer function magmaf_get_zgeqp3_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_zgeqrf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_zgeqlf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_zgelqf_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_zgehrd_nb( n ) + integer :: n +end + +integer function magmaf_get_zhetrd_nb( n ) + integer :: n +end + +integer function magmaf_get_zhegst_nb( n ) + integer :: n +end + +integer function magmaf_get_zhegst_m_nb( n ) + integer :: n +end + +integer function magmaf_get_zgebrd_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_zgesvd_nb( m, n ) + integer :: m + integer :: n +end + +integer function magmaf_get_zbulge_nb( n, nbthreads ) + integer :: n + integer :: nbthreads +end + +integer function magmaf_get_zbulge_vblksiz( n, nb, nbthreads ) + integer :: n + integer :: nb + integer :: nbthreads +end + +integer function magmaf_get_zbulge_gcperf( ) +end + +subroutine magmaf_zgebrd( m, n, A, lda, d, e, tauq, taup, work, lwork, info ) + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + double precision :: d(*) + double precision :: e(*) + complex*16 :: tauq(*) + complex*16 :: taup(*) + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, work, lwork, & + rwork, info ) + character :: jobvl + character :: jobvr + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: w(*) + complex*16 :: VL(*) + integer :: ldvl + complex*16 :: VR(*) + integer :: ldvr + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: info +end + +subroutine magmaf_zgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, work, lwork, & + rwork, info ) + character :: jobvl + character :: jobvr + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: w(*) + complex*16 :: VL(*) + integer :: ldvl + complex*16 :: VR(*) + integer :: ldvr + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: info +end + +subroutine magmaf_zgegqr_gpu( ikind, m, n, dA, ldda, dwork, work, info ) + import int64 + integer :: ikind + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dwork + complex*16 :: work(*) + integer :: info +end + +subroutine magmaf_zgehrd( n, ilo, ihi, A, lda, tau, work, lwork, dT, info ) + import int64 + integer :: n + integer :: ilo + integer :: ihi + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_zgehrd_m( n, ilo, ihi, A, lda, tau, work, lwork, T, info ) + integer :: n + integer :: ilo + integer :: ihi + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + complex*16 :: T(*) + integer :: info +end + +subroutine magmaf_zgehrd2( n, ilo, ihi, A, lda, tau, work, lwork, info ) + integer :: n + integer :: ilo + integer :: ihi + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgelqf( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgelqf_gpu( m, n, dA, ldda, tau, work, lwork, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgels( trans, m, n, nrhs, A, lda, B, ldb, hwork, lwork, info ) + import int64 + character :: trans + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: A + integer :: lda + magma_devptr_t :: B + integer :: ldb + complex*16 :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zggrqf( m, p, n, A, lda, taua, B, ldb, taub, work, lwork, info ) + integer :: m + integer :: p + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: taua(*) + complex*16 :: B(*) + integer :: ldb + complex*16 :: taub(*) + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgglse( m, n, p, A, lda, B, ldb, c, d, x, work, lwork, info ) + integer :: m + integer :: n + integer :: p + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + complex*16 :: c(*) + complex*16 :: d(*) + complex*16 :: x(*) + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgels_gpu( trans, m, n, nrhs, dA, ldda, dB, lddb, hwork, lwork, info ) + import int64 + character :: trans + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + complex*16 :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgels3_gpu( trans, m, n, nrhs, dA, ldda, dB, lddb, hwork, lwork, info ) + import int64 + character :: trans + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + complex*16 :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgeqlf( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgeqp3( m, n, A, lda, jpvt, tau, work, lwork, rwork, info ) + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: jpvt(*) + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: info +end + +subroutine magmaf_zgeqp3_gpu( m, n, dA, ldda, jpvt, tau, dwork, lwork, rwork, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: jpvt(*) + complex*16 :: tau(*) + magma_devptr_t :: dwork + integer :: lwork + double precision :: rwork(*) + integer :: info +end + +subroutine magmaf_zgeqr2x_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_zgeqr2x2_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_zgeqr2x3_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_zgeqr2x4_gpu( m, n, dA, ldda, dtau, dT, ddA, dwork, queue, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dtau + magma_devptr_t :: dT + magma_devptr_t :: ddA + magma_devptr_t :: dwork + magma_devptr_t :: queue + integer :: info +end + +subroutine magmaf_zgeqrf( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgeqrf_gpu( m, n, dA, ldda, tau, dT, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + complex*16 :: tau(*) + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_zgeqrf_m( ngpu, m, n, A, lda, tau, work, lwork, info ) + integer :: ngpu + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgeqrf_ooc( m, n, A, lda, tau, work, lwork, info ) + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgeqrf2_gpu( m, n, dA, ldda, tau, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + complex*16 :: tau(*) + integer :: info +end + +subroutine magmaf_zgeqrf3_gpu( m, n, dA, ldda, tau, dT, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + complex*16 :: tau(*) + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_zgeqrs_gpu( m, n, nrhs, dA, ldda, tau, dT, dB, lddb, hwork, lwork, info & + ) + import int64 + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + complex*16 :: tau(*) + magma_devptr_t :: dT + magma_devptr_t :: dB + integer :: lddb + complex*16 :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgeqrs3_gpu( m, n, nrhs, dA, ldda, tau, dT, dB, lddb, hwork, lwork, & + info ) + import int64 + integer :: m + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + complex*16 :: tau(*) + magma_devptr_t :: dT + magma_devptr_t :: dB + integer :: lddb + complex*16 :: hwork(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zgerbt_gpu( gen, n, nrhs, dA, ldda, dB, lddb, U, V, info ) + import int64 + character :: gen + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + complex*16 :: U(*) + complex*16 :: V(*) + integer :: info +end + +subroutine magmaf_zgerfs_nopiv_gpu( trans, n, nrhs, dA, ldda, dB, lddb, dX, lddx, dworkd, & + dAF, iter, info ) + import int64 + character :: trans + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + magma_devptr_t :: dX + integer :: lddx + magma_devptr_t :: dworkd + magma_devptr_t :: dAF + integer :: iter + integer :: info +end + +subroutine magmaf_zgesdd( jobz, m, n, A, lda, s, U, ldu, VT, ldvt, work, lwork, rwork, & + iwork, info ) + character :: jobz + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + double precision :: s(*) + complex*16 :: U(*) + integer :: ldu + complex*16 :: VT(*) + integer :: ldvt + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: iwork(*) + integer :: info +end + +subroutine magmaf_zgesv( n, nrhs, A, lda, ipiv, B, ldb, info ) + integer :: n + integer :: nrhs + complex*16 :: A(*) + integer :: lda + integer :: ipiv(*) + complex*16 :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_zgesv_gpu( n, nrhs, dA, ldda, ipiv, dB, lddb, info ) + import int64 + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_zgesv_nopiv_gpu( n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_zgesv_rbt( ref, n, nrhs, A, lda, B, ldb, info ) + character :: ref + integer :: n + integer :: nrhs + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_zgesvd( jobu, jobvt, m, n, A, lda, s, U, ldu, VT, ldvt, work, lwork, & + rwork, info ) + character :: jobu + character :: jobvt + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + double precision :: s(*) + complex*16 :: U(*) + integer :: ldu + complex*16 :: VT(*) + integer :: ldvt + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: info +end + +subroutine magmaf_zgetf2_gpu( m, n, dA, ldda, ipiv, queue, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: queue + integer :: info +end + +subroutine magmaf_zgetf2_nopiv( m, n, A, lda, info ) + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_zgetrf( m, n, A, lda, ipiv, info ) + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_zgetrf_gpu( m, n, dA, ldda, ipiv, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_zgetrf_m( ngpu, m, n, A, lda, ipiv, info ) + integer :: ngpu + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_zgetrf_nopiv( m, n, A, lda, info ) + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_zgetrf_nopiv_gpu( m, n, dA, ldda, info ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_zgetri_gpu( n, dA, ldda, ipiv, dwork, lwork, info ) + import int64 + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: dwork + integer :: lwork + integer :: info +end + +subroutine magmaf_zgetrs_gpu( trans, n, nrhs, dA, ldda, ipiv, dB, lddb, info ) + import int64 + character :: trans + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + integer :: ipiv(*) + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_zgetrs_nopiv_gpu( trans, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: trans + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_zheevd( jobz, uplo, n, A, lda, w, work, lwork, rwork, lrwork, iwork, & + liwork, info ) + character :: jobz + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + double precision :: w(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, rwork, & + lrwork, iwork, liwork, info ) + import int64 + character :: jobz + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: w(*) + complex*16 :: wA(*) + integer :: ldwa + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, rwork, lrwork, & + iwork, liwork, info ) + integer :: ngpu + character :: jobz + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + double precision :: w(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zheevdx( jobz, range, uplo, n, A, lda, vl, vu, il, iu, mout, w, work, & + lwork, rwork, lrwork, iwork, liwork, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zheevdx_gpu( jobz, range, uplo, n, dA, ldda, vl, vu, il, iu, mout, w, & + wA, ldwa, work, lwork, rwork, lrwork, iwork, liwork, info ) + import int64 + character :: jobz + character :: range + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + complex*16 :: wA(*) + integer :: ldwa + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zheevdx_m( ngpu, jobz, range, uplo, n, A, lda, vl, vu, il, iu, mout, w, & + work, lwork, rwork, lrwork, iwork, liwork, info ) + integer :: ngpu + character :: jobz + character :: range + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zheevdx_2stage( jobz, range, uplo, n, A, lda, vl, vu, il, iu, mout, w, & + work, lwork, rwork, lrwork, iwork, liwork, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zheevdx_2stage_m( ngpu, jobz, range, uplo, n, A, lda, vl, vu, il, iu, & + mout, w, work, lwork, rwork, lrwork, iwork, liwork, info ) + integer :: ngpu + character :: jobz + character :: range + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zheevr( jobz, range, uplo, n, A, lda, vl, vu, il, iu, abstol, mout, w, & + Z, ldz, isuppz, work, lwork, rwork, lrwork, iwork, liwork, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + double precision :: abstol + integer :: mout(*) + double precision :: w(*) + complex*16 :: Z(*) + integer :: ldz + integer :: isuppz(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zheevr_gpu( jobz, range, uplo, n, dA, ldda, vl, vu, il, iu, abstol, & + mout, w, dZ, lddz, isuppz, wA, ldwa, wZ, ldwz, work, lwork, rwork, lrwork, iwork, & + liwork, info ) + import int64 + character :: jobz + character :: range + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + double precision :: abstol + integer :: mout(*) + double precision :: w(*) + magma_devptr_t :: dZ + integer :: lddz + integer :: isuppz(*) + complex*16 :: wA(*) + integer :: ldwa + complex*16 :: wZ(*) + integer :: ldwz + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zheevx( jobz, range, uplo, n, A, lda, vl, vu, il, iu, abstol, mout, w, & + Z, ldz, work, lwork, rwork, iwork, ifail, info ) + character :: jobz + character :: range + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + double precision :: abstol + integer :: mout(*) + double precision :: w(*) + complex*16 :: Z(*) + integer :: ldz + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: iwork(*) + integer :: ifail(*) + integer :: info +end + +subroutine magmaf_zheevx_gpu( jobz, range, uplo, n, dA, ldda, vl, vu, il, iu, abstol, & + mout, w, dZ, lddz, wA, ldwa, wZ, ldwz, work, lwork, rwork, iwork, ifail, info ) + import int64 + character :: jobz + character :: range + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + double precision :: abstol + integer :: mout(*) + double precision :: w(*) + magma_devptr_t :: dZ + integer :: lddz + complex*16 :: wA(*) + integer :: ldwa + complex*16 :: wZ(*) + integer :: ldwz + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: iwork(*) + integer :: ifail(*) + integer :: info +end + +subroutine magmaf_zhegst( itype, uplo, n, A, lda, B, ldb, info ) + integer :: itype + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_zhegst_gpu( itype, uplo, n, dA, ldda, dB, lddb, info ) + import int64 + integer :: itype + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_zhegst_m( ngpu, itype, uplo, n, A, lda, B, ldb, info ) + integer :: ngpu + integer :: itype + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_zhegvd( itype, jobz, uplo, n, A, lda, B, ldb, w, work, lwork, rwork, & + lrwork, iwork, liwork, info ) + integer :: itype + character :: jobz + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + double precision :: w(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zhegvd_m( ngpu, itype, jobz, uplo, n, A, lda, B, ldb, w, work, lwork, & + rwork, lrwork, iwork, liwork, info ) + integer :: ngpu + integer :: itype + character :: jobz + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + double precision :: w(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zhegvdx( itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, il, iu, & + mout, w, work, lwork, rwork, lrwork, iwork, liwork, info ) + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zhegvdx_m( ngpu, itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, & + il, iu, mout, w, work, lwork, rwork, lrwork, iwork, liwork, info ) + integer :: ngpu + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zhegvdx_2stage( itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, & + il, iu, mout, w, work, lwork, rwork, lrwork, iwork, liwork, info ) + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zhegvdx_2stage_m( ngpu, itype, jobz, range, uplo, n, A, lda, B, ldb, & + vl, vu, il, iu, mout, w, work, lwork, rwork, lrwork, iwork, liwork, info ) + integer :: ngpu + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + integer :: mout(*) + double precision :: w(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zhegvr( itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, il, iu, & + abstol, mout, w, Z, ldz, isuppz, work, lwork, rwork, lrwork, iwork, liwork, info & + ) + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + double precision :: abstol + integer :: mout(*) + double precision :: w(*) + complex*16 :: Z(*) + integer :: ldz + integer :: isuppz(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_zhegvx( itype, jobz, range, uplo, n, A, lda, B, ldb, vl, vu, il, iu, & + abstol, mout, w, Z, ldz, work, lwork, rwork, iwork, ifail, info ) + integer :: itype + character :: jobz + character :: range + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + double precision :: abstol + integer :: mout(*) + double precision :: w(*) + complex*16 :: Z(*) + integer :: ldz + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: iwork(*) + integer :: ifail(*) + integer :: info +end + +subroutine magmaf_zhesv( uplo, n, nrhs, A, lda, ipiv, B, ldb, info ) + character :: uplo + integer :: n + integer :: nrhs + complex*16 :: A(*) + integer :: lda + integer :: ipiv(*) + complex*16 :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_zhesv_nopiv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_zhetrd( uplo, n, A, lda, d, e, tau, work, lwork, info ) + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + double precision :: d(*) + double precision :: e(*) + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zhetrd_gpu( uplo, n, dA, ldda, d, e, tau, wA, ldwa, work, lwork, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: d(*) + double precision :: e(*) + complex*16 :: tau(*) + complex*16 :: wA(*) + integer :: ldwa + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zhetrd2_gpu( uplo, n, dA, ldda, d, e, tau, wA, ldwa, work, lwork, & + dwork, ldwork, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + double precision :: d(*) + double precision :: e(*) + complex*16 :: tau(*) + complex*16 :: wA(*) + integer :: ldwa + complex*16 :: work(*) + integer :: lwork + magma_devptr_t :: dwork + integer :: ldwork + integer :: info +end + +integer function magmaf_zhetrd_hb2st( uplo, n, nb, Vblksiz, A, lda, d, e, V, ldv, TAU, & + compT, T, ldt ) + character :: uplo + integer :: n + integer :: nb + integer :: Vblksiz + complex*16 :: A(*) + integer :: lda + double precision :: d(*) + double precision :: e(*) + complex*16 :: V(*) + integer :: ldv + complex*16 :: TAU(*) + integer :: compT + complex*16 :: T(*) + integer :: ldt +end + +subroutine magmaf_zhetrd_he2hb( uplo, n, nb, A, lda, tau, work, lwork, dT, info ) + import int64 + character :: uplo + integer :: n + integer :: nb + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + magma_devptr_t :: dT + integer :: info +end + +subroutine magmaf_zhetrf( uplo, n, A, lda, ipiv, info ) + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_zhetrf_aasen( uplo, cpu_panel, n, A, lda, ipiv, info ) + character :: uplo + integer :: cpu_panel + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: ipiv(*) + integer :: info +end + +subroutine magmaf_zhetrf_nopiv( uplo, n, A, lda, info ) + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_zhetrf_nopiv_cpu( uplo, n, ib, A, lda, info ) + character :: uplo + integer :: n + integer :: ib + complex*16 :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_zhetrf_nopiv_gpu( uplo, n, dA, ldda, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_zhetrs_nopiv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +integer function magmaf_zlarf_gpu( m, n, dv, dtau, dC, lddc, queue ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dv + magma_devptr_t :: dtau + magma_devptr_t :: dC + integer :: lddc + magma_devptr_t :: queue +end + +integer function magmaf_zlarfb2_gpu( m, n, k, dV, lddv, dT, lddt, dC, lddc, dwork, & + ldwork, queue ) + import int64 + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dV + integer :: lddv + magma_devptr_t :: dT + integer :: lddt + magma_devptr_t :: dC + integer :: lddc + magma_devptr_t :: dwork + integer :: ldwork + magma_devptr_t :: queue +end + +subroutine magmaf_zlatrsd( uplo, trans, diag, normin, n, A, lda, lambda, x, scale, cnorm, & + info ) + character :: uplo + character :: trans + character :: diag + character :: normin + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: lambda + complex*16 :: x(*) + double precision :: scale(*) + double precision :: cnorm(*) + integer :: info +end + +subroutine magmaf_zlauum( uplo, n, A, lda, info ) + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_zlauum_gpu( uplo, n, dA, ldda, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_zposv( uplo, n, nrhs, A, lda, B, ldb, info ) + character :: uplo + integer :: n + integer :: nrhs + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb + integer :: info +end + +subroutine magmaf_zposv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_zpotf2_gpu( uplo, n, dA, ldda, queue, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: queue + integer :: info +end + +subroutine magmaf_zpotrf( uplo, n, A, lda, info ) + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_zpotrf_gpu( uplo, n, dA, ldda, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_zpotrf_m( ngpu, uplo, n, A, lda, info ) + integer :: ngpu + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_zpotri( uplo, n, A, lda, info ) + character :: uplo + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_zpotri_gpu( uplo, n, dA, ldda, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_zpotrs_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_zsysv_nopiv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_zsytrf_nopiv_cpu( uplo, n, ib, A, lda, info ) + character :: uplo + integer :: n + integer :: ib + complex*16 :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_zsytrf_nopiv_gpu( uplo, n, dA, ldda, info ) + import int64 + character :: uplo + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_zsytrs_nopiv_gpu( uplo, n, nrhs, dA, ldda, dB, lddb, info ) + import int64 + character :: uplo + integer :: n + integer :: nrhs + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: dB + integer :: lddb + integer :: info +end + +subroutine magmaf_zstedx( range, n, vl, vu, il, iu, d, e, Z, ldz, rwork, lrwork, iwork, & + liwork, dwork, info ) + import int64 + character :: range + integer :: n + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + double precision :: d(*) + double precision :: e(*) + complex*16 :: Z(*) + integer :: ldz + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + magma_devptr_t :: dwork + integer :: info +end + +subroutine magmaf_zstedx_m( ngpu, range, n, vl, vu, il, iu, d, e, Z, ldz, rwork, lrwork, & + iwork, liwork, info ) + integer :: ngpu + character :: range + integer :: n + double precision :: vl + double precision :: vu + integer :: il + integer :: iu + double precision :: d(*) + double precision :: e(*) + complex*16 :: Z(*) + integer :: ldz + double precision :: rwork(*) + integer :: lrwork + integer :: iwork(*) + integer :: liwork + integer :: info +end + +subroutine magmaf_ztrevc3( side, howmany, select, n, T, ldt, VL, ldvl, VR, ldvr, mm, & + mout, work, lwork, rwork, info ) + character :: side + character :: howmany + integer :: select(*) + integer :: n + complex*16 :: T(*) + integer :: ldt + complex*16 :: VL(*) + integer :: ldvl + complex*16 :: VR(*) + integer :: ldvr + integer :: mm + integer :: mout(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: info +end + +subroutine magmaf_ztrevc3_mt( side, howmany, select, n, T, ldt, VL, ldvl, VR, ldvr, mm, & + mout, work, lwork, rwork, info ) + character :: side + character :: howmany + integer :: select(*) + integer :: n + complex*16 :: T(*) + integer :: ldt + complex*16 :: VL(*) + integer :: ldvl + complex*16 :: VR(*) + integer :: ldvr + integer :: mm + integer :: mout(*) + complex*16 :: work(*) + integer :: lwork + double precision :: rwork(*) + integer :: info +end + +integer function magmaf_ztrsm_m( ngpu, side, uplo, transa, diag, m, n, alpha, A, lda, B, & + ldb ) + integer :: ngpu + character :: side + character :: uplo + character :: transa + character :: diag + integer :: m + integer :: n + complex*16 :: alpha + complex*16 :: A(*) + integer :: lda + complex*16 :: B(*) + integer :: ldb +end + +subroutine magmaf_ztrtri( uplo, diag, n, A, lda, info ) + character :: uplo + character :: diag + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: info +end + +subroutine magmaf_ztrtri_gpu( uplo, diag, n, dA, ldda, info ) + import int64 + character :: uplo + character :: diag + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: info +end + +subroutine magmaf_zungbr( vect, m, n, k, A, lda, tau, work, lwork, info ) + character :: vect + integer :: m + integer :: n + integer :: k + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zunghr( n, ilo, ihi, A, lda, tau, dT, nb, info ) + import int64 + integer :: n + integer :: ilo + integer :: ihi + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_zunghr_m( n, ilo, ihi, A, lda, tau, T, nb, info ) + integer :: n + integer :: ilo + integer :: ihi + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: T(*) + integer :: nb + integer :: info +end + +subroutine magmaf_zunglq( m, n, k, A, lda, tau, dT, nb, info ) + import int64 + integer :: m + integer :: n + integer :: k + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_zungqr( m, n, k, A, lda, tau, dT, nb, info ) + import int64 + integer :: m + integer :: n + integer :: k + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_zungqr_gpu( m, n, k, dA, ldda, tau, dT, nb, info ) + import int64 + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + complex*16 :: tau(*) + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_zungqr_m( m, n, k, A, lda, tau, T, nb, info ) + integer :: m + integer :: n + integer :: k + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: T(*) + integer :: nb + integer :: info +end + +subroutine magmaf_zungqr2( m, n, k, A, lda, tau, info ) + integer :: m + integer :: n + integer :: k + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + integer :: info +end + +subroutine magmaf_zunmbr( vect, side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, & + info ) + character :: vect + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: C(*) + integer :: ldc + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zunmlq( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: C(*) + integer :: ldc + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zunmrq( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: C(*) + integer :: ldc + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zunmql( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: C(*) + integer :: ldc + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zunmql2_gpu( side, trans, m, n, k, dA, ldda, tau, dC, lddc, wA, ldwa, & + info ) + import int64 + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + complex*16 :: tau(*) + magma_devptr_t :: dC + integer :: lddc + complex*16 :: wA(*) + integer :: ldwa + integer :: info +end + +subroutine magmaf_zunmqr( side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, info ) + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: C(*) + integer :: ldc + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zunmqr_gpu( side, trans, m, n, k, dA, ldda, tau, dC, lddc, hwork, & + lwork, dT, nb, info ) + import int64 + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + complex*16 :: tau(*) + magma_devptr_t :: dC + integer :: lddc + complex*16 :: hwork(*) + integer :: lwork + magma_devptr_t :: dT + integer :: nb + integer :: info +end + +subroutine magmaf_zunmqr2_gpu( side, trans, m, n, k, dA, ldda, tau, dC, lddc, wA, ldwa, & + info ) + import int64 + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + magma_devptr_t :: dA + integer :: ldda + complex*16 :: tau(*) + magma_devptr_t :: dC + integer :: lddc + complex*16 :: wA(*) + integer :: ldwa + integer :: info +end + +subroutine magmaf_zunmqr_m( ngpu, side, trans, m, n, k, A, lda, tau, C, ldc, work, lwork, & + info ) + integer :: ngpu + character :: side + character :: trans + integer :: m + integer :: n + integer :: k + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: C(*) + integer :: ldc + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zunmtr( side, uplo, trans, m, n, A, lda, tau, C, ldc, work, lwork, info & + ) + character :: side + character :: uplo + character :: trans + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: C(*) + integer :: ldc + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +subroutine magmaf_zunmtr_gpu( side, uplo, trans, m, n, dA, ldda, tau, dC, lddc, wA, ldwa, & + info ) + import int64 + character :: side + character :: uplo + character :: trans + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + complex*16 :: tau(*) + magma_devptr_t :: dC + integer :: lddc + complex*16 :: wA(*) + integer :: ldwa + integer :: info +end + +subroutine magmaf_zunmtr_m( ngpu, side, uplo, trans, m, n, A, lda, tau, C, ldc, work, & + lwork, info ) + integer :: ngpu + character :: side + character :: uplo + character :: trans + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + complex*16 :: tau(*) + complex*16 :: C(*) + integer :: ldc + complex*16 :: work(*) + integer :: lwork + integer :: info +end + +integer function magmaf_z_isnan( x ) + complex*16 :: x +end + +integer function magmaf_z_isinf( x ) + complex*16 :: x +end + +integer function magmaf_z_isnan_inf( x ) + complex*16 :: x +end + +integer function magmaf_znan_inf( uplo, m, n, A, lda, cnt_nan, cnt_inf ) + character :: uplo + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda + integer :: cnt_nan(*) + integer :: cnt_inf(*) +end + +integer function magmaf_znan_inf_gpu( uplo, m, n, dA, ldda, cnt_nan, cnt_inf, queue ) + import int64 + character :: uplo + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + integer :: cnt_nan(*) + integer :: cnt_inf(*) + magma_devptr_t :: queue +end + +subroutine magmaf_zprint( m, n, A, lda ) + integer :: m + integer :: n + complex*16 :: A(*) + integer :: lda +end + +subroutine magmaf_zprint_gpu( m, n, dA, ldda, queue ) + import int64 + integer :: m + integer :: n + magma_devptr_t :: dA + integer :: ldda + magma_devptr_t :: queue +end + +subroutine magmaf_zpanel_to_q( uplo, ib, A, lda, work ) + character :: uplo + integer :: ib + complex*16 :: A(*) + integer :: lda + complex*16 :: work(*) +end + +subroutine magmaf_zq_to_panel( uplo, ib, A, lda, work ) + character :: uplo + integer :: ib + complex*16 :: A(*) + integer :: lda + complex*16 :: work(*) +end + +end interface + +end module magma_zfortran diff --git a/lib/magma_fmodules/mod_magma.F b/lib/magma_fmodules/mod_magma.F deleted file mode 100644 index 9b2f1d9b55..0000000000 --- a/lib/magma_fmodules/mod_magma.F +++ /dev/null @@ -1,279 +0,0 @@ -! -! -- MAGMA (version 2.7.1) -- -! Univ. of Tennessee, Knoxville -! Univ. of California, Berkeley -! Univ. of Colorado, Denver -! @date February 2023 -! - -module magma - -use iso_c_binding - -use magma_common -use magma_sfortran -use magma_dfortran -use magma_cfortran -use magma_zfortran - -implicit none - -!! ============================================================================= -!! Parameter constants from magma_types.h -integer(c_int), parameter :: & - MagmaFalse = 0, & - MagmaTrue = 1, & - - MagmaRowMajor = 101, & - MagmaColMajor = 102, & - - MagmaNoTrans = 111, & - MagmaTrans = 112, & - MagmaConjTrans = 113, & - - MagmaUpper = 121, & - MagmaLower = 122, & - MagmaGeneral = 123, & - MagmaFull = 123, & !! deprecated, use MagmaGeneral - - MagmaNonUnit = 131, & - MagmaUnit = 132, & - - MagmaLeft = 141, & - MagmaRight = 142, & - MagmaBothSides = 143, & - - MagmaNoVec = 301, & !/* geev, syev, gesvd */ - MagmaVec = 302, & !/* geev, syev */ - MagmaIVec = 303, & !/* stedc */ - MagmaAllVec = 304, & !/* gesvd, trevc */ - MagmaSomeVec = 305, & !/* gesvd, trevc */ - MagmaOverwriteVec = 306, & !/* gesvd */ - MagmaBacktransVec = 307 !/* trevc */ -!! todo all the rest - - -!! ============================================================================= -!! Fortran interfaces to C functions -interface - - !! ------------------------------------------------------------------------- - !! initialize - subroutine magmaf_init() & - bind(C, name="magma_init") - use iso_c_binding - end subroutine - - subroutine magmaf_finalize() & - bind(C, name="magma_finalize") - use iso_c_binding - end subroutine - - !! ------------------------------------------------------------------------- - !! version - subroutine magmaf_version( major, minor, micro ) & - bind(C, name="magma_version") - use iso_c_binding - integer(c_int), target :: major, minor, micro - end subroutine - - subroutine magmaf_print_environment() & - bind(C, name="magma_print_environment") - use iso_c_binding - end subroutine - - !! ------------------------------------------------------------------------- - !! timing - real(c_double) function magmaf_wtime() & - bind(C, name="magma_wtime") - use iso_c_binding - end function - - real(c_double) function magmaf_sync_wtime( queue ) & - bind(C, name="magma_wtime") - use iso_c_binding - type(c_ptr), value :: queue - end function - - !! ------------------------------------------------------------------------- - !! device support - integer(c_int) function magmaf_num_gpus() & - bind(C, name="magma_num_gpus") - use iso_c_binding - end function - - integer(c_int) function magmaf_get_device_arch() & - bind(C, name="magma_getdevice_arch") - use iso_c_binding - end function - - subroutine magmaf_get_device( dev ) & - bind(C, name="magma_getdevice") - use iso_c_binding - integer(c_int), target :: dev - end subroutine - - subroutine magmaf_set_device( dev ) & - bind(C, name="magma_setdevice") - use iso_c_binding - integer(c_int), value :: dev - end subroutine - - integer(c_size_t) function magmaf_mem_size( queue ) & - bind(C, name="magma_mem_size") - use iso_c_binding - type(c_ptr), value :: queue - end function - - !! ------------------------------------------------------------------------- - !! queue support - subroutine magmaf_queue_create_internal( dev, queue_ptr, func, file, line ) & - bind(C, name="magma_queue_create_internal") - use iso_c_binding - integer(c_int), value :: dev - type(c_ptr), target :: queue_ptr !! queue_t* - character(c_char) :: func, file - integer(c_int), value :: line - end subroutine - - subroutine magmaf_queue_destroy_internal( queue, func, file, line ) & - bind(C, name="magma_queue_destroy_internal") - use iso_c_binding - type(c_ptr), value :: queue !! queue_t - character(c_char) :: func, file - integer(c_int), value :: line - end subroutine - - subroutine magmaf_queue_sync_internal( queue, func, file, line ) & - bind(C, name="magma_queue_sync_internal") - use iso_c_binding - type(c_ptr), value :: queue !! queue_t - character(c_char) :: func, file - integer(c_int), value :: line - end subroutine - - integer(c_int) function magmaf_queue_get_device( queue ) & - bind(C, name="magma_queue_get_device") - use iso_c_binding - type(c_ptr), value :: queue !! queue_t - end function - - !! ------------------------------------------------------------------------- - !! offsets pointers -- 1D vectors with inc - !! see offset.c - type(c_ptr) function magmaf_soffset_1d( ptr, inc, i ) & - bind(C, name="magma_soffset_1d") - use iso_c_binding - type(c_ptr), value :: ptr - integer(c_int), value :: inc, i - end function - - type(c_ptr) function magmaf_doffset_1d( ptr, inc, i ) & - bind(C, name="magma_doffset_1d") - use iso_c_binding - type(c_ptr), value :: ptr - integer(c_int), value :: inc, i - end function - - type(c_ptr) function magmaf_coffset_1d( ptr, inc, i ) & - bind(C, name="magma_coffset_1d") - use iso_c_binding - type(c_ptr), value :: ptr - integer(c_int), value :: inc, i - end function - - type(c_ptr) function magmaf_zoffset_1d( ptr, inc, i ) & - bind(C, name="magma_zoffset_1d") - use iso_c_binding - type(c_ptr), value :: ptr - integer(c_int), value :: inc, i - end function - - type(c_ptr) function magmaf_ioffset_1d( ptr, inc, i ) & - bind(C, name="magma_ioffset_1d") - use iso_c_binding - type(c_ptr), value :: ptr - integer(c_int), value :: inc, i - end function - - !! ------------------------------------------------------------------------- - !! offsets pointers -- 2D matrices with lda - !! see offset.c - type(c_ptr) function magmaf_soffset_2d( ptr, lda, i, j ) & - bind(C, name="magma_soffset_2d") - use iso_c_binding - type(c_ptr), value:: ptr - integer(c_int), value :: lda, i, j - end function - - type(c_ptr) function magmaf_doffset_2d( ptr, lda, i, j ) & - bind(C, name="magma_doffset_2d") - use iso_c_binding - type(c_ptr), value:: ptr - integer(c_int), value :: lda, i, j - end function - - type(c_ptr) function magmaf_coffset_2d( ptr, lda, i, j ) & - bind(C, name="magma_coffset_2d") - use iso_c_binding - type(c_ptr), value:: ptr - integer(c_int), value :: lda, i, j - end function - - type(c_ptr) function magmaf_zoffset_2d( ptr, lda, i, j ) & - bind(C, name="magma_zoffset_2d") - use iso_c_binding - type(c_ptr), value:: ptr - integer(c_int), value :: lda, i, j - end function - - type(c_ptr) function magmaf_ioffset_2d( ptr, lda, i, j ) & - bind(C, name="magma_ioffset_2d") - use iso_c_binding - type(c_ptr), value:: ptr - integer(c_int), value :: lda, i, j - end function - -end interface - -!! ============================================================================= -!! Fortran routines & functions -contains - - !! ------------------------------------------------------------------------- - !! queue support - subroutine magmaf_queue_create( dev, queue_ptr ) - use iso_c_binding - integer(c_int), value :: dev - type(c_ptr), target :: queue_ptr !! queue_t* - - call magmaf_queue_create_internal( & - dev, queue_ptr, & - "magma_queue_create" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_queue_destroy( queue ) - use iso_c_binding - type(c_ptr), value :: queue !! queue_t - - call magmaf_queue_destroy_internal( & - queue, & - "magma_queue_destroy" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_queue_sync( queue ) - use iso_c_binding - type(c_ptr), value :: queue !! queue_t - - call magmaf_queue_sync_internal( & - queue, & - "magma_queue_sync" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - -end module diff --git a/lib/magma_fmodules/mod_magma_cfortran.F b/lib/magma_fmodules/mod_magma_cfortran.F deleted file mode 100644 index dbf26c0f61..0000000000 --- a/lib/magma_fmodules/mod_magma_cfortran.F +++ /dev/null @@ -1,230 +0,0 @@ -!! @generated from magma_zfortran.F90, fortran z -> c, Sat Apr 22 18:54:26 2023 - -module magma_cfortran - -use magma_common -implicit none - -!! ============================================================================= -!! Fortran interfaces to C functions -interface - - !! ------------------------------------------------------------------------- - !! CPU interfaces (matrix in CPU memory) - subroutine magmaf_cgetrf( m, n, A, lda, ipiv, info ) & - bind(C, name="magma_cgetrf") - use iso_c_binding - integer(c_int), value :: m, n, lda - complex(c_float_complex), target :: A(lda,*) - integer(c_int), target :: ipiv(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_cpotrf( uplo, n, A, lda, info ) & - bind(C, name="magma_cpotrf") - use iso_c_binding - integer(c_int), value :: uplo - integer(c_int), value :: n, lda - complex(c_float_complex), target :: A(lda,*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_cgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & - work, lwork, rwork, info) & - bind(C, name="magma_cgeev") - use iso_c_binding - integer(c_int), value :: jobvl, jobvr - integer(c_int), value :: n, lda, ldvl, ldvr, lwork - complex(c_float_complex), target :: A(lda,*) - complex(c_float_complex), target :: w(*) - complex(c_float_complex), target :: VR(ldvr,*), VL(ldvl,*) - complex(c_float_complex), target :: work(*) - real(c_float), target :: rwork(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_cgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & - work, lwork, rwork, info) & - bind(C, name="magma_cgeev_m") - use iso_c_binding - integer(c_int), value :: jobvl, jobvr - integer(c_int), value :: n, lda, ldvl, ldvr, lwork - complex(c_float_complex), target :: A(lda,*) - complex(c_float_complex), target :: w(*) - complex(c_float_complex), target :: VR(ldvr,*), VL(ldvl,*) - complex(c_float_complex), target :: work(*) - real(c_float), target :: rwork(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_cheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & - rwork, lrwork, iwork, liwork, info) & - bind(C, name="magma_cheevd_m") - use iso_c_binding - integer(c_int), value :: ngpu - integer(c_int), value :: jobz, uplo - integer(c_int), value :: n, lda, lwork, lrwork, liwork - complex(c_float_complex), target :: A(lda,*) - real(c_float), target :: w(*) - complex(c_float_complex), target :: work(*) - real(c_float), target :: rwork(*) - integer(c_int), target :: iwork(*) - integer(c_int), target :: info !! int* - end subroutine - - !! ------------------------------------------------------------------------- - !! ------------------------------------------------------------------------- - !! GPU interfaces (matrix in GPU memory) - subroutine magmaf_cgetrf_gpu( m, n, dA, lda, ipiv, info ) & - bind(C, name="magma_cgetrf_gpu") - use iso_c_binding - integer(c_int), value :: m, n, lda - type(c_ptr), value :: dA - integer(c_int), target :: ipiv(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_cpotrf_gpu( uplo, n, dA, lda, info ) & - bind(C, name="magma_cpotrf_gpu") - use iso_c_binding - integer(c_int), value :: uplo, n, lda - type(c_ptr), value :: dA - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_cheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & - rwork, lrwork, iwork, liwork, info) & - bind(C, name="magma_cheevd_gpu") - use iso_c_binding - integer(c_int), value :: jobz, uplo - integer(c_int), value :: n, ldda, ldwa, lwork, lrwork, liwork - type(c_ptr), value :: dA !! double complex** - real(c_float), target :: w(*) - complex(c_float_complex), target :: wA(*) - complex(c_float_complex), target :: work(*) - real(c_float), target :: rwork(*) - integer(c_int), target :: iwork(*) - integer(c_int), target :: info !! int* - end subroutine - - !! ------------------------------------------------------------------------- - !! batched GPU interfaces (all arrays in GPU memory) - subroutine magmaf_cgetrf_batched( & - m, n, dA_array, lda, ipiv_array, info_array, batchcount, queue ) & - bind(C, name="magma_cgetrf_batched") - use iso_c_binding - integer(c_int), value :: m, n, lda, batchcount - type(c_ptr), value :: dA_array !! double_complex** - type(c_ptr), value :: ipiv_array !! int** - type(c_ptr), value :: info_array !! int* - type(c_ptr), value :: queue - end subroutine - - !! ------------------------------------------------------------------------- - !! BLAS (matrices in GPU memory) - subroutine magmaf_caxpy( & - n, & - alpha, dx, incx, & - dy, incy, & - queue ) & - bind(C, name="magma_caxpy") - use iso_c_binding - integer(c_int), value :: n, incx, incy - complex(c_float_complex), value :: alpha - type(c_ptr), value :: dx, dy - type(c_ptr), value :: queue !! queue_t - end subroutine - - subroutine magmaf_cgemv( & - transA, m, n, & - alpha, dA, lda, & - dx, incx, & - beta, dy, incy, & - queue ) & - bind(C, name="magma_cgemv") - use iso_c_binding - integer(c_int), value :: transA, m, n, lda, incx, incy - complex(c_float_complex), value :: alpha, beta - type(c_ptr), value :: dA, dx, dy - type(c_ptr), value :: queue !! queue_t - end subroutine - - subroutine magmaf_cgemm( & - transA, transB, m, n, k, & - alpha, dA, lda, & - dB, ldb, & - beta, dC, ldc, & - queue ) & - bind(C, name="magma_cgemm") - use iso_c_binding - integer(c_int), value :: transA, transB, m, n, k, lda, ldb, ldc - complex(c_float_complex), value :: alpha, beta - type(c_ptr), value :: dA, dB, dC - type(c_ptr), value :: queue !! queue_t - end subroutine - -end interface - -!! ============================================================================= -!! Fortran routines & functions -contains - - !! ------------------------------------------------------------------------- - !! malloc wrappers - integer(c_int) function magmaf_cmalloc( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_cmalloc = magmaf_malloc( ptr, n*sizeof_complex ) - end function - - integer(c_int) function magmaf_cmalloc_cpu( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_cmalloc_cpu = magmaf_malloc_cpu( ptr, n*sizeof_complex ) - end function - - integer(c_int) function magmaf_cmalloc_pinned( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_cmalloc_pinned = magmaf_malloc_pinned( ptr, n*sizeof_complex ) - end function - - !! ------------------------------------------------------------------------- - !! set/get wrappers - subroutine magmaf_csetmatrix( & - m, n, hA_src, lda, dB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, lda, ldb - complex(c_float_complex), target :: hA_src(lda,*) - type(c_ptr), value :: dB_dst - type(c_ptr), value :: queue - - call magmaf_setmatrix_internal( & - m, n, int(sizeof_complex), c_loc(hA_src), lda, dB_dst, ldb, queue, & - "magma_csetmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_cgetmatrix( & - m, n, dA_src, lda, hB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, lda, ldb - type(c_ptr), value :: dA_src - complex(c_float_complex), target :: hB_dst(ldb,*) - type(c_ptr), value :: queue - - call magmaf_getmatrix_internal( & - m, n, int(sizeof_complex), dA_src, lda, c_loc(hB_dst), ldb, queue, & - "magma_cgetmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - -end module diff --git a/lib/magma_fmodules/mod_magma_common.F b/lib/magma_fmodules/mod_magma_common.F deleted file mode 100644 index d575d6cb33..0000000000 --- a/lib/magma_fmodules/mod_magma_common.F +++ /dev/null @@ -1,378 +0,0 @@ -module magma_common - -use iso_c_binding -implicit none - -!! ===================================================================== -!! Parameter constants -real(c_float), parameter :: sdummy = 0 -real(c_double), parameter :: ddummy = 0 -complex(c_float_complex), parameter :: cdummy = 0 -complex(c_double_complex), parameter :: zdummy = 0 -integer(c_int), parameter :: idummy = 0 -type(c_ptr), parameter :: ptr_dummy = c_null_ptr - -!! Intel ifort chokes on c_sizeof here, so use extension sizeof -!! see https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/495001 -integer(c_size_t), parameter :: & - sizeof_real = sizeof(sdummy), & - sizeof_double = sizeof(ddummy), & - sizeof_complex = sizeof(cdummy), & - sizeof_complex16 = sizeof(zdummy), & - sizeof_int = sizeof(idummy), & - sizeof_ptr = sizeof(ptr_dummy) - - -!! ============================================================================= -!! Fortran interfaces to C functions -interface - - !! ------------------------------------------------------------------------- - !! magma_malloc (GPU memory) - integer(c_int) function magmaf_malloc( ptr, bytes ) & - bind(C, name="magma_malloc") - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: bytes - end function - - !! todo imalloc - - integer(c_int) function magmaf_free_internal( ptr, func, file, line ) & - bind(C, name="magma_free_internal") - use iso_c_binding - type(c_ptr), value :: ptr !! void* - character(c_char) :: func, file - integer(c_int), value :: line - end function - - !! ------------------------------------------------------------------------- - !! magma_malloc_cpu (CPU main memory) - !! these are aligned to 32-byte boundary - integer(c_int) function magmaf_malloc_cpu( ptr, bytes ) & - bind(C, name="magma_malloc_cpu") - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: bytes - end function - - !! todo imalloc_cpu - - integer(c_int) function magmaf_free_cpu( ptr ) & - bind(C, name="magma_free_cpu") - use iso_c_binding - type(c_ptr), value :: ptr !! void* - end function - - !! ------------------------------------------------------------------------- - !! magma_malloc_pinned (pinned CPU main memory) - integer(c_int) function magmaf_malloc_pinned( ptr, bytes ) & - bind(C, name="magma_malloc_pinned") - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: bytes - end function - - !! todo imalloc_pinned - - integer(c_int) function magmaf_free_pinned_internal( ptr, func, file, line ) & - bind(C, name="magma_free_pinned_internal") - use iso_c_binding - type(c_ptr), value :: ptr !! void* - character(c_char), value :: func, file - integer(c_int), value :: line - end function - - !! ------------------------------------------------------------------------- - !! set/get - subroutine magmaf_setmatrix_internal( & - m, n, elemsize, hA_src, lda, dB_dst, ldb, queue, func, file, line ) & - bind(C, name="magma_setmatrix_internal") - use iso_c_binding - integer(c_int), value :: m, n, elemsize, lda, ldb - type(c_ptr), value :: hA_src - type(c_ptr), value :: dB_dst - type(c_ptr), value :: queue - character(c_char), value :: func, file - integer(c_int), value :: line - end subroutine - - subroutine magmaf_getmatrix_internal( & - m, n, elemsize, dA_src, lda, hB_dst, ldb, queue, func, file, line ) & - bind(C, name="magma_getmatrix_internal") - use iso_c_binding - integer(c_int), value :: m, n, elemsize, lda, ldb - type(c_ptr), value :: dA_src - type(c_ptr), value :: hB_dst - type(c_ptr), value :: queue - character(c_char), value :: func, file - integer(c_int), value :: line - end subroutine - - subroutine magmaf_setvector_internal( & - n, elemsize, hx_src, incx, dy_dst, incy, queue, func, file, line ) & - bind(C, name="magma_setvector_internal") - use iso_c_binding - integer(c_int), value :: n, elemsize, incx, incy - type(c_ptr), value :: hx_src - type(c_ptr), value :: dy_dst - type(c_ptr), value :: queue - character(c_char), value :: func, file - integer(c_int), value :: line - end subroutine - - subroutine magmaf_getvector_internal( & - n, elemsize, dx_src, incx, hy_dst, incy, queue, func, file, line ) & - bind(C, name="magma_getvector_internal") - use iso_c_binding - integer(c_int), value :: n, elemsize, incx, incy - type(c_ptr), value :: dx_src - type(c_ptr), value :: hy_dst - type(c_ptr), value :: queue - character(c_char), value :: func, file - integer(c_int), value :: line - end subroutine - -end interface - -!! ============================================================================= -!! Fortran routines & functions -contains - - !! ------------------------------------------------------------------------- - !! malloc wrappers - integer(c_int) function magmaf_imalloc( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_imalloc = magmaf_malloc( ptr, n*sizeof_int ) - end function - - integer(c_int) function magmaf_imalloc_cpu( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_imalloc_cpu = magmaf_malloc_cpu( ptr, n*sizeof_int ) - end function - - integer(c_int) function magmaf_imalloc_pinned( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_imalloc_pinned = magmaf_malloc_pinned( ptr, n*sizeof_int ) - end function - - !! ------------------------------------------------------------------------- - !! magma_free wrappers - integer(c_int) function magmaf_free( ptr ) - type(c_ptr) :: ptr - - magmaf_free = magmaf_free_internal( & - ptr, & - "magma_free" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end function - - integer(c_int) function magmaf_free_pinned( ptr ) - type(c_ptr) :: ptr - - magmaf_free_pinned = magmaf_free_internal( & - ptr, & - "magma_free_pinned" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end function - - !! ------------------------------------------------------------------------- - !! set/get wrappers - subroutine magmaf_setmatrix( & - m, n, elemsize, hA_src, lda, dB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, elemsize, lda, ldb - type(c_ptr), value :: hA_src - type(c_ptr), value :: dB_dst - type(c_ptr), value :: queue - - call magmaf_setmatrix_internal( & - m, n, elemsize, hA_src, lda, dB_dst, ldb, queue, & - "magma_setmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_getmatrix( & - m, n, elemsize, dA_src, lda, hB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, elemsize, lda, ldb - type(c_ptr), value :: dA_src - type(c_ptr), value :: hB_dst - type(c_ptr), value :: queue - - call magmaf_getmatrix_internal( & - m, n, elemsize, dA_src, lda, hB_dst, ldb, queue, & - "magma_getmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_setvector( & - n, elemsize, hx_src, incx, dy_dst, incy, queue ) - use iso_c_binding - integer(c_int), value :: n, elemsize, incx, incy - type(c_ptr), value :: hx_src - type(c_ptr), value :: dy_dst - type(c_ptr), value :: queue - - call magmaf_setvector_internal( & - n, elemsize, hx_src, incx, dy_dst, incy, queue, & - "magma_setvector" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_getvector( & - n, elemsize, dx_src, incx, hy_dst, incy, queue ) - use iso_c_binding - integer(c_int), value :: n, elemsize, incx, incy - type(c_ptr), value :: dx_src - type(c_ptr), value :: hy_dst - type(c_ptr), value :: queue - - call magmaf_getvector_internal( & - n, elemsize, dx_src, incx, hy_dst, incy, queue, & - "magma_getvector" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - !! ------------------------------------------------------------------------- - !! set/get wrappers - !! matrices & vectors of integers - subroutine magmaf_isetmatrix( & - m, n, hA_src, lda, dB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, lda, ldb - integer(c_int), target :: hA_src(lda,*) - type(c_ptr), value :: dB_dst - type(c_ptr), value :: queue - - call magmaf_setmatrix_internal( & - m, n, int(sizeof_int), c_loc(hA_src), lda, dB_dst, ldb, queue, & - "magma_isetmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_igetmatrix( & - m, n, dA_src, lda, hB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, lda, ldb - type(c_ptr), value :: dA_src - integer(c_int), target :: hB_dst(ldb,*) - type(c_ptr), value :: queue - - call magmaf_getmatrix_internal( & - m, n, int(sizeof_int), dA_src, lda, c_loc(hB_dst), ldb, queue, & - "magma_igetmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_isetvector( & - n, hx_src, incx, dy_dst, incy, queue ) - use iso_c_binding - integer(c_int), value :: n, incx, incy - integer(c_int), target :: hx_src(*) - type(c_ptr), value :: dy_dst - type(c_ptr), value :: queue - - call magmaf_setvector_internal( & - n, int(sizeof_int), c_loc(hx_src), incx, dy_dst, incy, queue, & - "magma_isetvector" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_igetvector( & - n, dx_src, incx, hy_dst, incy, queue ) - use iso_c_binding - integer(c_int), value :: n, incx, incy - type(c_ptr), value :: dx_src - integer(c_int), target :: hy_dst(*) - type(c_ptr), value :: queue - - call magmaf_getvector_internal( & - n, int(sizeof_int), dx_src, incx, c_loc(hy_dst), incy, queue, & - "magma_igetvector" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - !! ------------------------------------------------------------------------- - !! set/get wrappers - !! matrices & vectors of c_ptr pointers - subroutine magmaf_psetmatrix( & - m, n, hA_src, lda, dB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, lda, ldb - type(c_ptr), target :: hA_src(lda,*) - type(c_ptr), value :: dB_dst - type(c_ptr), value :: queue - - call magmaf_setmatrix_internal( & - m, n, int(sizeof_ptr), c_loc(hA_src), lda, dB_dst, ldb, queue, & - "magma_psetmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_pgetmatrix( & - m, n, dA_src, lda, hB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, lda, ldb - type(c_ptr), value :: dA_src - type(c_ptr), target :: hB_dst(ldb,*) - type(c_ptr), value :: queue - - call magmaf_getmatrix_internal( & - m, n, int(sizeof_ptr), dA_src, lda, c_loc(hB_dst), ldb, queue, & - "magma_pgetmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_psetvector( & - n, hx_src, incx, dy_dst, incy, queue ) - use iso_c_binding - integer(c_int), value :: n, incx, incy - type(c_ptr), target :: hx_src(*) - type(c_ptr), value :: dy_dst - type(c_ptr), value :: queue - - call magmaf_setvector_internal( & - n, int(sizeof_ptr), c_loc(hx_src), incx, dy_dst, incy, queue, & - "magma_psetvector" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_pgetvector( & - n, dx_src, incx, hy_dst, incy, queue ) - use iso_c_binding - integer(c_int), value :: n, incx, incy - type(c_ptr), value :: dx_src - type(c_ptr), target :: hy_dst(*) - type(c_ptr), value :: queue - - call magmaf_getvector_internal( & - n, int(sizeof_ptr), dx_src, incx, c_loc(hy_dst), incy, queue, & - "magma_pgetvector" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - -end module diff --git a/lib/magma_fmodules/mod_magma_dfortran.F b/lib/magma_fmodules/mod_magma_dfortran.F deleted file mode 100644 index cd50d930a2..0000000000 --- a/lib/magma_fmodules/mod_magma_dfortran.F +++ /dev/null @@ -1,230 +0,0 @@ -!! @generated from magma_zfortran.F90, fortran z -> d, Sat Apr 22 18:54:26 2023 - -module magma_dfortran - -use magma_common -implicit none - -!! ============================================================================= -!! Fortran interfaces to C functions -interface - - !! ------------------------------------------------------------------------- - !! CPU interfaces (matrix in CPU memory) - subroutine magmaf_dgetrf( m, n, A, lda, ipiv, info ) & - bind(C, name="magma_dgetrf") - use iso_c_binding - integer(c_int), value :: m, n, lda - real(c_double), target :: A(lda,*) - integer(c_int), target :: ipiv(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_dpotrf( uplo, n, A, lda, info ) & - bind(C, name="magma_dpotrf") - use iso_c_binding - integer(c_int), value :: uplo - integer(c_int), value :: n, lda - real(c_double), target :: A(lda,*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_dgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & - work, lwork, rwork, info) & - bind(C, name="magma_dgeev") - use iso_c_binding - integer(c_int), value :: jobvl, jobvr - integer(c_int), value :: n, lda, ldvl, ldvr, lwork - real(c_double), target :: A(lda,*) - real(c_double), target :: w(*) - real(c_double), target :: VR(ldvr,*), VL(ldvl,*) - real(c_double), target :: work(*) - real(c_double), target :: rwork(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_dgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & - work, lwork, rwork, info) & - bind(C, name="magma_dgeev_m") - use iso_c_binding - integer(c_int), value :: jobvl, jobvr - integer(c_int), value :: n, lda, ldvl, ldvr, lwork - real(c_double), target :: A(lda,*) - real(c_double), target :: w(*) - real(c_double), target :: VR(ldvr,*), VL(ldvl,*) - real(c_double), target :: work(*) - real(c_double), target :: rwork(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_dsyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & - rwork, lrwork, iwork, liwork, info) & - bind(C, name="magma_dsyevd_m") - use iso_c_binding - integer(c_int), value :: ngpu - integer(c_int), value :: jobz, uplo - integer(c_int), value :: n, lda, lwork, lrwork, liwork - real(c_double), target :: A(lda,*) - real(c_double), target :: w(*) - real(c_double), target :: work(*) - real(c_double), target :: rwork(*) - integer(c_int), target :: iwork(*) - integer(c_int), target :: info !! int* - end subroutine - - !! ------------------------------------------------------------------------- - !! ------------------------------------------------------------------------- - !! GPU interfaces (matrix in GPU memory) - subroutine magmaf_dgetrf_gpu( m, n, dA, lda, ipiv, info ) & - bind(C, name="magma_dgetrf_gpu") - use iso_c_binding - integer(c_int), value :: m, n, lda - type(c_ptr), value :: dA - integer(c_int), target :: ipiv(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_dpotrf_gpu( uplo, n, dA, lda, info ) & - bind(C, name="magma_dpotrf_gpu") - use iso_c_binding - integer(c_int), value :: uplo, n, lda - type(c_ptr), value :: dA - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_dsyevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & - rwork, lrwork, iwork, liwork, info) & - bind(C, name="magma_dsyevd_gpu") - use iso_c_binding - integer(c_int), value :: jobz, uplo - integer(c_int), value :: n, ldda, ldwa, lwork, lrwork, liwork - type(c_ptr), value :: dA !! double real** - real(c_double), target :: w(*) - real(c_double), target :: wA(*) - real(c_double), target :: work(*) - real(c_double), target :: rwork(*) - integer(c_int), target :: iwork(*) - integer(c_int), target :: info !! int* - end subroutine - - !! ------------------------------------------------------------------------- - !! batched GPU interfaces (all arrays in GPU memory) - subroutine magmaf_dgetrf_batched( & - m, n, dA_array, lda, ipiv_array, info_array, batchcount, queue ) & - bind(C, name="magma_dgetrf_batched") - use iso_c_binding - integer(c_int), value :: m, n, lda, batchcount - type(c_ptr), value :: dA_array !! double_real** - type(c_ptr), value :: ipiv_array !! int** - type(c_ptr), value :: info_array !! int* - type(c_ptr), value :: queue - end subroutine - - !! ------------------------------------------------------------------------- - !! BLAS (matrices in GPU memory) - subroutine magmaf_daxpy( & - n, & - alpha, dx, incx, & - dy, incy, & - queue ) & - bind(C, name="magma_daxpy") - use iso_c_binding - integer(c_int), value :: n, incx, incy - real(c_double), value :: alpha - type(c_ptr), value :: dx, dy - type(c_ptr), value :: queue !! queue_t - end subroutine - - subroutine magmaf_dgemv( & - transA, m, n, & - alpha, dA, lda, & - dx, incx, & - beta, dy, incy, & - queue ) & - bind(C, name="magma_dgemv") - use iso_c_binding - integer(c_int), value :: transA, m, n, lda, incx, incy - real(c_double), value :: alpha, beta - type(c_ptr), value :: dA, dx, dy - type(c_ptr), value :: queue !! queue_t - end subroutine - - subroutine magmaf_dgemm( & - transA, transB, m, n, k, & - alpha, dA, lda, & - dB, ldb, & - beta, dC, ldc, & - queue ) & - bind(C, name="magma_dgemm") - use iso_c_binding - integer(c_int), value :: transA, transB, m, n, k, lda, ldb, ldc - real(c_double), value :: alpha, beta - type(c_ptr), value :: dA, dB, dC - type(c_ptr), value :: queue !! queue_t - end subroutine - -end interface - -!! ============================================================================= -!! Fortran routines & functions -contains - - !! ------------------------------------------------------------------------- - !! malloc wrappers - integer(c_int) function magmaf_dmalloc( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_dmalloc = magmaf_malloc( ptr, n*sizeof_double ) - end function - - integer(c_int) function magmaf_dmalloc_cpu( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_dmalloc_cpu = magmaf_malloc_cpu( ptr, n*sizeof_double ) - end function - - integer(c_int) function magmaf_dmalloc_pinned( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_dmalloc_pinned = magmaf_malloc_pinned( ptr, n*sizeof_double ) - end function - - !! ------------------------------------------------------------------------- - !! set/get wrappers - subroutine magmaf_dsetmatrix( & - m, n, hA_src, lda, dB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, lda, ldb - real(c_double), target :: hA_src(lda,*) - type(c_ptr), value :: dB_dst - type(c_ptr), value :: queue - - call magmaf_setmatrix_internal( & - m, n, int(sizeof_double), c_loc(hA_src), lda, dB_dst, ldb, queue, & - "magma_dsetmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_dgetmatrix( & - m, n, dA_src, lda, hB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, lda, ldb - type(c_ptr), value :: dA_src - real(c_double), target :: hB_dst(ldb,*) - type(c_ptr), value :: queue - - call magmaf_getmatrix_internal( & - m, n, int(sizeof_double), dA_src, lda, c_loc(hB_dst), ldb, queue, & - "magma_dgetmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - -end module diff --git a/lib/magma_fmodules/mod_magma_sfortran.F b/lib/magma_fmodules/mod_magma_sfortran.F deleted file mode 100644 index 6c5aabab16..0000000000 --- a/lib/magma_fmodules/mod_magma_sfortran.F +++ /dev/null @@ -1,230 +0,0 @@ -!! @generated from magma_zfortran.F90, fortran z -> s, Sat Apr 22 18:54:26 2023 - -module magma_sfortran - -use magma_common -implicit none - -!! ============================================================================= -!! Fortran interfaces to C functions -interface - - !! ------------------------------------------------------------------------- - !! CPU interfaces (matrix in CPU memory) - subroutine magmaf_sgetrf( m, n, A, lda, ipiv, info ) & - bind(C, name="magma_sgetrf") - use iso_c_binding - integer(c_int), value :: m, n, lda - real(c_float), target :: A(lda,*) - integer(c_int), target :: ipiv(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_spotrf( uplo, n, A, lda, info ) & - bind(C, name="magma_spotrf") - use iso_c_binding - integer(c_int), value :: uplo - integer(c_int), value :: n, lda - real(c_float), target :: A(lda,*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_sgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & - work, lwork, rwork, info) & - bind(C, name="magma_sgeev") - use iso_c_binding - integer(c_int), value :: jobvl, jobvr - integer(c_int), value :: n, lda, ldvl, ldvr, lwork - real(c_float), target :: A(lda,*) - real(c_float), target :: w(*) - real(c_float), target :: VR(ldvr,*), VL(ldvl,*) - real(c_float), target :: work(*) - real(c_float), target :: rwork(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_sgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & - work, lwork, rwork, info) & - bind(C, name="magma_sgeev_m") - use iso_c_binding - integer(c_int), value :: jobvl, jobvr - integer(c_int), value :: n, lda, ldvl, ldvr, lwork - real(c_float), target :: A(lda,*) - real(c_float), target :: w(*) - real(c_float), target :: VR(ldvr,*), VL(ldvl,*) - real(c_float), target :: work(*) - real(c_float), target :: rwork(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_ssyevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & - rwork, lrwork, iwork, liwork, info) & - bind(C, name="magma_ssyevd_m") - use iso_c_binding - integer(c_int), value :: ngpu - integer(c_int), value :: jobz, uplo - integer(c_int), value :: n, lda, lwork, lrwork, liwork - real(c_float), target :: A(lda,*) - real(c_float), target :: w(*) - real(c_float), target :: work(*) - real(c_float), target :: rwork(*) - integer(c_int), target :: iwork(*) - integer(c_int), target :: info !! int* - end subroutine - - !! ------------------------------------------------------------------------- - !! ------------------------------------------------------------------------- - !! GPU interfaces (matrix in GPU memory) - subroutine magmaf_sgetrf_gpu( m, n, dA, lda, ipiv, info ) & - bind(C, name="magma_sgetrf_gpu") - use iso_c_binding - integer(c_int), value :: m, n, lda - type(c_ptr), value :: dA - integer(c_int), target :: ipiv(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_spotrf_gpu( uplo, n, dA, lda, info ) & - bind(C, name="magma_spotrf_gpu") - use iso_c_binding - integer(c_int), value :: uplo, n, lda - type(c_ptr), value :: dA - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_ssyevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & - rwork, lrwork, iwork, liwork, info) & - bind(C, name="magma_ssyevd_gpu") - use iso_c_binding - integer(c_int), value :: jobz, uplo - integer(c_int), value :: n, ldda, ldwa, lwork, lrwork, liwork - type(c_ptr), value :: dA !! double real** - real(c_double), target :: w(*) - real(c_float), target :: wA(*) - real(c_float), target :: work(*) - real(c_double), target :: rwork(*) - integer(c_int), target :: iwork(*) - integer(c_int), target :: info !! int* - end subroutine - - !! ------------------------------------------------------------------------- - !! batched GPU interfaces (all arrays in GPU memory) - subroutine magmaf_sgetrf_batched( & - m, n, dA_array, lda, ipiv_array, info_array, batchcount, queue ) & - bind(C, name="magma_sgetrf_batched") - use iso_c_binding - integer(c_int), value :: m, n, lda, batchcount - type(c_ptr), value :: dA_array !! double_real** - type(c_ptr), value :: ipiv_array !! int** - type(c_ptr), value :: info_array !! int* - type(c_ptr), value :: queue - end subroutine - - !! ------------------------------------------------------------------------- - !! BLAS (matrices in GPU memory) - subroutine magmaf_saxpy( & - n, & - alpha, dx, incx, & - dy, incy, & - queue ) & - bind(C, name="magma_saxpy") - use iso_c_binding - integer(c_int), value :: n, incx, incy - real(c_float), value :: alpha - type(c_ptr), value :: dx, dy - type(c_ptr), value :: queue !! queue_t - end subroutine - - subroutine magmaf_sgemv( & - transA, m, n, & - alpha, dA, lda, & - dx, incx, & - beta, dy, incy, & - queue ) & - bind(C, name="magma_sgemv") - use iso_c_binding - integer(c_int), value :: transA, m, n, lda, incx, incy - real(c_float), value :: alpha, beta - type(c_ptr), value :: dA, dx, dy - type(c_ptr), value :: queue !! queue_t - end subroutine - - subroutine magmaf_sgemm( & - transA, transB, m, n, k, & - alpha, dA, lda, & - dB, ldb, & - beta, dC, ldc, & - queue ) & - bind(C, name="magma_sgemm") - use iso_c_binding - integer(c_int), value :: transA, transB, m, n, k, lda, ldb, ldc - real(c_float), value :: alpha, beta - type(c_ptr), value :: dA, dB, dC - type(c_ptr), value :: queue !! queue_t - end subroutine - -end interface - -!! ============================================================================= -!! Fortran routines & functions -contains - - !! ------------------------------------------------------------------------- - !! malloc wrappers - integer(c_int) function magmaf_smalloc( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_smalloc = magmaf_malloc( ptr, n*sizeof_real ) - end function - - integer(c_int) function magmaf_smalloc_cpu( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_smalloc_cpu = magmaf_malloc_cpu( ptr, n*sizeof_real ) - end function - - integer(c_int) function magmaf_smalloc_pinned( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_smalloc_pinned = magmaf_malloc_pinned( ptr, n*sizeof_real ) - end function - - !! ------------------------------------------------------------------------- - !! set/get wrappers - subroutine magmaf_ssetmatrix( & - m, n, hA_src, lda, dB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, lda, ldb - real(c_float), target :: hA_src(lda,*) - type(c_ptr), value :: dB_dst - type(c_ptr), value :: queue - - call magmaf_setmatrix_internal( & - m, n, int(sizeof_real), c_loc(hA_src), lda, dB_dst, ldb, queue, & - "magma_ssetmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_sgetmatrix( & - m, n, dA_src, lda, hB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, lda, ldb - type(c_ptr), value :: dA_src - real(c_float), target :: hB_dst(ldb,*) - type(c_ptr), value :: queue - - call magmaf_getmatrix_internal( & - m, n, int(sizeof_real), dA_src, lda, c_loc(hB_dst), ldb, queue, & - "magma_sgetmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - -end module diff --git a/lib/magma_fmodules/mod_magma_zfortran.F b/lib/magma_fmodules/mod_magma_zfortran.F deleted file mode 100644 index 6a1d76e145..0000000000 --- a/lib/magma_fmodules/mod_magma_zfortran.F +++ /dev/null @@ -1,230 +0,0 @@ -!! @precisions fortran z -> s d c - -module magma_zfortran - -use magma_common -implicit none - -!! ============================================================================= -!! Fortran interfaces to C functions -interface - - !! ------------------------------------------------------------------------- - !! CPU interfaces (matrix in CPU memory) - subroutine magmaf_zgetrf( m, n, A, lda, ipiv, info ) & - bind(C, name="magma_zgetrf") - use iso_c_binding - integer(c_int), value :: m, n, lda - complex(c_double_complex), target :: A(lda,*) - integer(c_int), target :: ipiv(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_zpotrf( uplo, n, A, lda, info ) & - bind(C, name="magma_zpotrf") - use iso_c_binding - integer(c_int), value :: uplo - integer(c_int), value :: n, lda - complex(c_double_complex), target :: A(lda,*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_zgeev( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & - work, lwork, rwork, info) & - bind(C, name="magma_zgeev") - use iso_c_binding - integer(c_int), value :: jobvl, jobvr - integer(c_int), value :: n, lda, ldvl, ldvr, lwork - complex(c_double_complex), target :: A(lda,*) - complex(c_double_complex), target :: w(*) - complex(c_double_complex), target :: VR(ldvr,*), VL(ldvl,*) - complex(c_double_complex), target :: work(*) - real(c_double), target :: rwork(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_zgeev_m( jobvl, jobvr, n, A, lda, w, VL, ldvl, VR, ldvr, & - work, lwork, rwork, info) & - bind(C, name="magma_zgeev_m") - use iso_c_binding - integer(c_int), value :: jobvl, jobvr - integer(c_int), value :: n, lda, ldvl, ldvr, lwork - complex(c_double_complex), target :: A(lda,*) - complex(c_double_complex), target :: w(*) - complex(c_double_complex), target :: VR(ldvr,*), VL(ldvl,*) - complex(c_double_complex), target :: work(*) - real(c_double), target :: rwork(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_zheevd_m( ngpu, jobz, uplo, n, A, lda, w, work, lwork, & - rwork, lrwork, iwork, liwork, info) & - bind(C, name="magma_zheevd_m") - use iso_c_binding - integer(c_int), value :: ngpu - integer(c_int), value :: jobz, uplo - integer(c_int), value :: n, lda, lwork, lrwork, liwork - complex(c_double_complex), target :: A(lda,*) - real(c_double), target :: w(*) - complex(c_double_complex), target :: work(*) - real(c_double), target :: rwork(*) - integer(c_int), target :: iwork(*) - integer(c_int), target :: info !! int* - end subroutine - - !! ------------------------------------------------------------------------- - !! ------------------------------------------------------------------------- - !! GPU interfaces (matrix in GPU memory) - subroutine magmaf_zgetrf_gpu( m, n, dA, lda, ipiv, info ) & - bind(C, name="magma_zgetrf_gpu") - use iso_c_binding - integer(c_int), value :: m, n, lda - type(c_ptr), value :: dA - integer(c_int), target :: ipiv(*) - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_zpotrf_gpu( uplo, n, dA, lda, info ) & - bind(C, name="magma_zpotrf_gpu") - use iso_c_binding - integer(c_int), value :: uplo, n, lda - type(c_ptr), value :: dA - integer(c_int), target :: info !! int* - end subroutine - - subroutine magmaf_zheevd_gpu( jobz, uplo, n, dA, ldda, w, wA, ldwa, work, lwork, & - rwork, lrwork, iwork, liwork, info) & - bind(C, name="magma_zheevd_gpu") - use iso_c_binding - integer(c_int), value :: jobz, uplo - integer(c_int), value :: n, ldda, ldwa, lwork, lrwork, liwork - type(c_ptr), value :: dA !! double complex** - real(c_double), target :: w(*) - complex(c_double_complex), target :: wA(*) - complex(c_double_complex), target :: work(*) - real(c_double), target :: rwork(*) - integer(c_int), target :: iwork(*) - integer(c_int), target :: info !! int* - end subroutine - - !! ------------------------------------------------------------------------- - !! batched GPU interfaces (all arrays in GPU memory) - subroutine magmaf_zgetrf_batched( & - m, n, dA_array, lda, ipiv_array, info_array, batchcount, queue ) & - bind(C, name="magma_zgetrf_batched") - use iso_c_binding - integer(c_int), value :: m, n, lda, batchcount - type(c_ptr), value :: dA_array !! double_complex** - type(c_ptr), value :: ipiv_array !! int** - type(c_ptr), value :: info_array !! int* - type(c_ptr), value :: queue - end subroutine - - !! ------------------------------------------------------------------------- - !! BLAS (matrices in GPU memory) - subroutine magmaf_zaxpy( & - n, & - alpha, dx, incx, & - dy, incy, & - queue ) & - bind(C, name="magma_zaxpy") - use iso_c_binding - integer(c_int), value :: n, incx, incy - complex(c_double_complex), value :: alpha - type(c_ptr), value :: dx, dy - type(c_ptr), value :: queue !! queue_t - end subroutine - - subroutine magmaf_zgemv( & - transA, m, n, & - alpha, dA, lda, & - dx, incx, & - beta, dy, incy, & - queue ) & - bind(C, name="magma_zgemv") - use iso_c_binding - integer(c_int), value :: transA, m, n, lda, incx, incy - complex(c_double_complex), value :: alpha, beta - type(c_ptr), value :: dA, dx, dy - type(c_ptr), value :: queue !! queue_t - end subroutine - - subroutine magmaf_zgemm( & - transA, transB, m, n, k, & - alpha, dA, lda, & - dB, ldb, & - beta, dC, ldc, & - queue ) & - bind(C, name="magma_zgemm") - use iso_c_binding - integer(c_int), value :: transA, transB, m, n, k, lda, ldb, ldc - complex(c_double_complex), value :: alpha, beta - type(c_ptr), value :: dA, dB, dC - type(c_ptr), value :: queue !! queue_t - end subroutine - -end interface - -!! ============================================================================= -!! Fortran routines & functions -contains - - !! ------------------------------------------------------------------------- - !! malloc wrappers - integer(c_int) function magmaf_zmalloc( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_zmalloc = magmaf_malloc( ptr, n*sizeof_complex16 ) - end function - - integer(c_int) function magmaf_zmalloc_cpu( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_zmalloc_cpu = magmaf_malloc_cpu( ptr, n*sizeof_complex16 ) - end function - - integer(c_int) function magmaf_zmalloc_pinned( ptr, n ) - use iso_c_binding - type(c_ptr), target :: ptr !! void** - integer(c_size_t), value :: n - - magmaf_zmalloc_pinned = magmaf_malloc_pinned( ptr, n*sizeof_complex16 ) - end function - - !! ------------------------------------------------------------------------- - !! set/get wrappers - subroutine magmaf_zsetmatrix( & - m, n, hA_src, lda, dB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, lda, ldb - complex(c_double_complex), target :: hA_src(lda,*) - type(c_ptr), value :: dB_dst - type(c_ptr), value :: queue - - call magmaf_setmatrix_internal( & - m, n, int(sizeof_complex16), c_loc(hA_src), lda, dB_dst, ldb, queue, & - "magma_zsetmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - - subroutine magmaf_zgetmatrix( & - m, n, dA_src, lda, hB_dst, ldb, queue ) - use iso_c_binding - integer(c_int), value :: m, n, lda, ldb - type(c_ptr), value :: dA_src - complex(c_double_complex), target :: hB_dst(ldb,*) - type(c_ptr), value :: queue - - call magmaf_getmatrix_internal( & - m, n, int(sizeof_complex16), dA_src, lda, c_loc(hB_dst), ldb, queue, & - "magma_zgetmatrix" // c_null_char, & - __FILE__ // c_null_char, & - __LINE__ ) - end subroutine - -end module From be0ae5bffa466761f0bc40ea4feb7a45a98f44b8 Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Sat, 8 Mar 2025 20:53:51 +0100 Subject: [PATCH 36/36] nternal compilation of magma implemented --- config/m4/magma.m4 | 10 ++++++++++ configure | 13 +++++++++++++ lib/magma/Makefile.loc | 5 +++-- lib/magma/{MGmake.inc_lib => make_magma.inc.in} | 12 ++++++------ 4 files changed, 32 insertions(+), 8 deletions(-) rename lib/magma/{MGmake.inc_lib => make_magma.inc.in} (90%) diff --git a/config/m4/magma.m4 b/config/m4/magma.m4 index bbda28790b..7628bb25a8 100644 --- a/config/m4/magma.m4 +++ b/config/m4/magma.m4 @@ -171,7 +171,17 @@ if test "x$enable_magma" = "xyes" && test "x$magma" = "xno" ; then else compile_magma="yes" ; compile_magma_fmodules="no" ; + # + NVIDIA_ARCH= + if test "x$with_cuda_cc" != "x" ; then + if test "$with_cuda_cc" -ge 60 && ! test "$with_cuda_cc" -ge 70 ; then NVIDIA_ARCH=Pascal ; fi + if test "$with_cuda_cc" -ge 70 && ! test "$with_cuda_cc" -ge 80 ; then NVIDIA_ARCH=Volta ; fi + if test "$with_cuda_cc" -ge 80 && ! test "$with_cuda_cc" -ge 90 ; then NVIDIA_ARCH=Hopper ; fi + fi + # AC_MSG_RESULT([Compatible external Magma not found/specified. To be compiled.]) ; + AC_SUBST(NVIDIA_ARCH) + AC_CONFIG_FILES([lib/magma/make_magma.inc:lib/magma/make_magma.inc.in]) fi # fi diff --git a/configure b/configure index 0460f39920..b8af7feab6 100755 --- a/configure +++ b/configure @@ -704,6 +704,7 @@ enable_magma def_magma MAGMA_INCS MAGMA_LIBS +NVIDIA_ARCH with_devxlib_branch DEVXLIB_info internal_devxlib @@ -15947,8 +15948,19 @@ $as_echo "already compiled" >&6; } ; else compile_magma="yes" ; compile_magma_fmodules="no" ; + # + NVIDIA_ARCH= + if test "x$with_cuda_cc" != "x" ; then + if test "$with_cuda_cc" -ge 60 && ! test "$with_cuda_cc" -ge 70 ; then NVIDIA_ARCH=Pascal ; fi + if test "$with_cuda_cc" -ge 70 && ! test "$with_cuda_cc" -ge 80 ; then NVIDIA_ARCH=Volta ; fi + if test "$with_cuda_cc" -ge 80 && ! test "$with_cuda_cc" -ge 90 ; then NVIDIA_ARCH=Hopper ; fi + fi + # { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compatible external Magma not found/specified. To be compiled." >&5 $as_echo "Compatible external Magma not found/specified. To be compiled." >&6; } ; + + ac_config_files="$ac_config_files lib/magma/make_magma.inc:lib/magma/make_magma.inc.in" + fi # fi @@ -17402,6 +17414,7 @@ do "lib/fftqe/c_defs.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/fftqe/c_defs.h:lib/fftqe/c_defs.h.in" ;; "lib/fftqe/fftqe_defs.h") CONFIG_FILES="$CONFIG_FILES lib/fftqe/fftqe_defs.h:lib/fftqe/fftqe_defs.h.in" ;; "lib/iotk/make_iotk.inc") CONFIG_FILES="$CONFIG_FILES lib/iotk/make_iotk.inc:lib/iotk/make_iotk.inc.in" ;; + "lib/magma/make_magma.inc") CONFIG_FILES="$CONFIG_FILES lib/magma/make_magma.inc:lib/magma/make_magma.inc.in" ;; "include/headers/common/have_malloc.h") CONFIG_HEADERS="$CONFIG_HEADERS include/headers/common/have_malloc.h:include/headers/common/have_malloc.h.in" ;; "config/setup") CONFIG_FILES="$CONFIG_FILES config/setup" ;; "config/mk/global/defs.mk") CONFIG_FILES="$CONFIG_FILES config/mk/global/defs.mk" ;; diff --git a/lib/magma/Makefile.loc b/lib/magma/Makefile.loc index 78aecaa99d..6703f930a2 100644 --- a/lib/magma/Makefile.loc +++ b/lib/magma/Makefile.loc @@ -25,11 +25,12 @@ configure: uncompress @if test -d $(PACKAGE) && ! test -f configured.stamp ; then \ echo "\t[$(PACKAGE)] configuration"; \ cd $(PACKAGE); \ - cat $(compdir)/config/setup $(srcdir)/lib/magma/MGmake.inc_lib > make.inc ; \ - cp $(srcdir)/lib/magma/Makefile.lib Makefile ; \ + cat $(compdir)/config/setup $(srcdir)/lib/magma/make_magma.inc > make.inc ; \ touch ../configured.stamp;\ fi +# cp $(srcdir)/lib/magma/Makefile.lib Makefile ; \ + compile: uncompress configure @$(call compile) diff --git a/lib/magma/MGmake.inc_lib b/lib/magma/make_magma.inc.in similarity index 90% rename from lib/magma/MGmake.inc_lib rename to lib/magma/make_magma.inc.in index d1f0d64804..6921b5dd21 100644 --- a/lib/magma/MGmake.inc_lib +++ b/lib/magma/make_magma.inc.in @@ -16,8 +16,8 @@ BACKEND ?= cuda # set these to their real paths -CUDADIR ?= $(NVHPC_ROOT)/cuda -ROCM_PATH ?= /opt/rocm +CUDADIR ?= @LIBCUDA_PATH@ +ROCM_PATH ?= @LIBROCM_PATH@ USE_FORTRAN ?=yes @@ -32,7 +32,7 @@ endif # set compilers CC ?= gcc CXX ?= g++ -FORT ?= gfortran +FORT ?= @FC@ HIPCC ?= hipcc NVCC ?= nvcc DEVCC ?= NONE @@ -55,7 +55,7 @@ RANLIB = ranlib # set our GPU targets ifeq ($(BACKEND),cuda) - GPU_TARGET = Volta Turing Ampere + GPU_TARGET = @NVIDIA_ARCH@ else ifeq ($(BACKEND),hip) GPU_TARGET = gfx900 gfx906 gfx908 endif @@ -67,8 +67,8 @@ FPIC = -fPIC # now, generate our flags CFLAGS = -O3 $(FPIC) -DNDEBUG -DADD_ -Wall -fopenmp -std=c99 CXXFLAGS = -O3 $(FPIC) -DNDEBUG -DADD_ -Wall -fopenmp -std=c++11 -FFLAGS = -O3 $(FPIC) -DNDEBUG -DADD_ -Wall -Wno-unused-dummy-argument -F90FLAGS = -O3 $(FPIC) -DNDEBUG -DADD_ -Wall -Wno-unused-dummy-argument -x f95-cpp-input +FFLAGS = -O3 $(FPIC) -DNDEBUG -DADD_ +F90FLAGS = -O3 $(FPIC) -DNDEBUG -DADD_ LDFLAGS = $(FPIC) -fopenmp DEVCCFLAGS = -O3 -DNDEBUG -DADD_