From 55d2c93eebd5122a0a2688e3cce6111b5f1b00c1 Mon Sep 17 00:00:00 2001 From: Nicola Spallanzani Date: Wed, 22 Mar 2023 10:28:13 +0100 Subject: [PATCH 1/8] 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 2/8] 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 3/8] 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 4/8] 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 5/8] 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 6/8] 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 7/8] 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 20369f33b04a8a2c8fbc18bda64fe394ccbe08cf Mon Sep 17 00:00:00 2001 From: Andrea Ferretti Date: Tue, 6 Feb 2024 18:34:14 +0100 Subject: [PATCH 8/8] 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