diff -Nru r-base-4.0.3/config.site r-base-4.1.2/config.site --- r-base-4.0.3/config.site 2020-09-01 22:15:02.000000000 +0000 +++ r-base-4.1.2/config.site 2021-04-19 22:02:02.000000000 +0000 @@ -395,3 +395,46 @@ ## parallelize ThinLTO or to change linker such as -fuse-ld=gold or ## -fuse-ld=lld (with gcc or clang). ## LTO_LD= + +## Programs which configure will look for on the path +## AR +## GETWD=pwd +## A BSD-compatible install program or script: +## tries ginstall scoinst install and falls back to tools/install-sh +## INSTALL +## LN_S="ln -s" +## MAKE +## Tries less more page pg in turn +## PAGER +## PAPERCONF +## Tries pkg-config then pkgconf +## PKG_CONFIG +## RANLIB +## REALPATH +## Tries gtar gnutar tar +## TAR +## XMKMF +## R_BZIPCMD=bzip2 +## R_GZIPCMD=gzip +## looks for lpr then lp +## R_PRINTCMD +## tries firefox mozilla galeon opera xdg-open kfmclient gnome-moz-remote open +## R_BROWSER +## tries acroread acroread4 xdg-open evince xpdf gv gnome-gv ggv +## okular kpdf open gpdf kghostview +## R_PDFVIEWER +## R_TEXI2DVICMD +## R_UNZIPCMD=unzip +## R_ZIPCMD=zip + +## Tries ginstall-info install-info +## INSTALL_INFO +## KPSEWHICH +## MAKEINDEX +## PDFLATEX +## PDFTEX +## TEXI2ANY +## TEXI2DVI + +## The exception, looked for in /usr/xpg4/bin before the path +## SED=sed diff -Nru r-base-4.0.3/configure r-base-4.1.2/configure --- r-base-4.0.3/configure 2020-10-02 22:15:53.000000000 +0000 +++ r-base-4.1.2/configure 2021-10-24 22:15:54.000000000 +0000 @@ -1,11 +1,12 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for R 4.0.3. +# Generated by GNU Autoconf 2.71 for R 4.1.2. # # Report bugs to . # # -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +# Inc. # # # This configure script is free software; the Free Software Foundation @@ -16,14 +17,16 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +as_nop=: +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else +else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -33,46 +36,46 @@ fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || @@ -81,13 +84,6 @@ fi -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( @@ -96,8 +92,12 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS @@ -109,30 +109,10 @@ as_myself=$0 fi if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. @@ -154,20 +134,22 @@ exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + as_bourne_compatible="as_nop=: +if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else +else \$as_nop case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( @@ -187,12 +169,15 @@ as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : +if ( set x; as_fn_ret_success y && test x = \"\$1\" ) +then : -else +else \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 +blah=\$(echo \$(echo blah)) +test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO @@ -207,30 +192,38 @@ PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" - if (eval "$as_required") 2>/dev/null; then : + if (eval "$as_required") 2>/dev/null +then : as_have_required=yes -else +else $as_nop as_have_required=no fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null +then : -else +else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base + as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null +then : break 2 fi fi @@ -238,14 +231,21 @@ esac as_found=false done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } IFS=$as_save_IFS +if $as_found +then : + +else $as_nop + if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi +fi - if test "x$CONFIG_SHELL" != x; then : + if test "x$CONFIG_SHELL" != x +then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also @@ -263,18 +263,19 @@ exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." + if test x$as_have_required = xno +then : + printf "%s\n" "$0: This script requires a shell more modern than all" + printf "%s\n" "$0: the shells that I found on your system." + if test ${ZSH_VERSION+y} ; then + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else - $as_echo "$0: Please tell bug-autoconf@gnu.org and + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and $0: https://bugs.r-project.org about your system, including $0: any error possibly output before this message. Then $0: install a modern shell, or manually run the script @@ -302,6 +303,7 @@ } as_unset=as_fn_unset + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -319,6 +321,14 @@ 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 # ------------- @@ -333,7 +343,7 @@ as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -342,7 +352,7 @@ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -381,12 +391,13 @@ # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else +else $as_nop as_fn_append () { eval $1=\$$1\$2 @@ -398,18 +409,27 @@ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else +else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- @@ -421,9 +441,9 @@ as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error @@ -450,7 +470,7 @@ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -494,7 +514,7 @@ s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall @@ -508,6 +528,10 @@ 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*) @@ -521,6 +545,13 @@ ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -590,50 +621,46 @@ # Identity of this package. PACKAGE_NAME='R' PACKAGE_TARNAME='R' -PACKAGE_VERSION='4.0.3' -PACKAGE_STRING='R 4.0.3' +PACKAGE_VERSION='4.1.2' +PACKAGE_STRING='R 4.1.2' PACKAGE_BUGREPORT='https://bugs.r-project.org' PACKAGE_URL='https://www.r-project.org' ac_unique_file="src/include/Defn.h" # Factoring default headers for most tests. ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include +#include +#ifdef HAVE_STDIO_H +# include #endif -#ifdef STDC_HEADERS +#ifdef HAVE_STDLIB_H # include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif #endif #ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif # include #endif -#ifdef HAVE_STRINGS_H -# include -#endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif #ifdef HAVE_UNISTD_H # include #endif" -ac_header_list= +ac_header_c_list= gt_needs= +ac_func_c_list= ac_subst_vars='LTLIBOBJS BUILD_LIBINTL_FALSE BUILD_LIBINTL_TRUE @@ -671,7 +698,6 @@ HAVE_VISIBILITY CFLAG_VISIBILITY GLIBC2 -mkdir_p MKDIR_P USE_NLS USE_RECOMMENDED_PACKAGES_FALSE @@ -713,8 +739,6 @@ BUILD_TRE_FALSE BUILD_TRE_TRUE PCRE2_CONFIG -USE_MMAP_ZLIB_FALSE -USE_MMAP_ZLIB_TRUE TIRPC_CPPFLAGS BUILD_XDR_FALSE BUILD_XDR_TRUE @@ -976,6 +1000,7 @@ R_CONFIG_ARGS R_OSTYPE R_OS +MAC_CPU R_PLATFORM host_os host_vendor @@ -1007,6 +1032,7 @@ docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -1060,9 +1086,13 @@ with_valgrind_instrumentation with_system_valgrind_headers with_internal_tzcode +with_internal_towlower +with_internal_iswxxxxx +with_internal_wcwidth with_recommended_packages with_ICU enable_byte_compiled_packages +with_static_cairo enable_static enable_shared with_pic @@ -1200,6 +1230,7 @@ sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -1229,8 +1260,6 @@ *) ac_optarg=yes ;; esac - # Accept the important Cygnus configure options, so we can diagnose typos. - case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; @@ -1271,9 +1300,9 @@ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1297,9 +1326,9 @@ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1452,6 +1481,15 @@ | -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=* \ @@ -1501,9 +1539,9 @@ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1517,9 +1555,9 @@ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1563,9 +1601,9 @@ *) # FIXME: should be removed in autoconf 3.0. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; @@ -1581,7 +1619,7 @@ case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi @@ -1589,7 +1627,7 @@ for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1645,7 +1683,7 @@ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_myself" | +printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -1702,7 +1740,7 @@ # 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 R 4.0.3 to adapt to many kinds of systems. +\`configure' configures R 4.1.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1742,6 +1780,7 @@ --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] @@ -1777,7 +1816,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of R 4.0.3:";; + short | recursive ) echo "Configuration of R 4.1.2:";; esac cat <<\_ACEOF @@ -1848,9 +1887,18 @@ --with-system-valgrind-headers use system valgrind headers (if available) [no] --with-internal-tzcode use internal time-zone code [no, yes on macOS] + --with-internal-towlower + use internal code for towlower/upper [no, yes on + macOS and Solaris] + --with-internal-iswxxxxx + use internal iswprint etc. [no, yes on macOS, + Solaris and AIX] + --with-internal-wcwidth use internal wcwidth [yes] --with-recommended-packages use/install recommended R packages [yes] --with-ICU use ICU library (if available) [yes] + --with-static-cairo allow for the use of static cairo libraries [no, yes + on macOS] --with-pic[=PKGS] (libtool) try to use only PIC/non-PIC objects [default=use both] --with-aix-soname=aix|svr4|both @@ -1920,7 +1968,7 @@ YFLAGS The list of arguments that will be passed by default to $YACC. This script will default YFLAGS to the empty string to avoid a default value of `-d' given by some make applications. - PKG_CONFIG path to pkg-config utility + PKG_CONFIG path to pkg-config (or pkgconf) utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR @@ -2012,9 +2060,9 @@ case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -2042,7 +2090,8 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. + # Check for configure.gnu first; this name is used for a wrapper for + # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive @@ -2050,7 +2099,7 @@ echo && $SHELL "$ac_srcdir/configure" --help=recursive else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done @@ -2059,10 +2108,10 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -R configure 4.0.3 -generated by GNU Autoconf 2.69 +R configure 4.1.2 +generated by GNU Autoconf 2.71 -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -2079,14 +2128,14 @@ ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2094,14 +2143,15 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2123,7 +2173,7 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2131,14 +2181,15 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2148,139 +2199,6 @@ } # 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 https://bugs.r-project.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 @@ -2288,26 +2206,28 @@ ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile @@ -2318,14 +2238,14 @@ ac_fn_fc_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2333,14 +2253,15 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_fc_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2356,14 +2277,14 @@ ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2371,14 +2292,15 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2400,7 +2322,7 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2408,14 +2330,15 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2431,14 +2354,14 @@ ac_fn_objc_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2446,14 +2369,15 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_objc_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2469,14 +2393,14 @@ ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2484,17 +2408,18 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2515,11 +2440,12 @@ ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. @@ -2527,16 +2453,9 @@ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif + which can conflict with char $2 (); below. */ +#include #undef $2 /* Override any GCC internal prototype to avoid an error. @@ -2554,24 +2473,25 @@ #endif int -main () +main (void) { return $2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func @@ -2582,14 +2502,14 @@ ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2597,17 +2517,18 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2628,14 +2549,14 @@ ac_fn_fc_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2643,17 +2564,18 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_fc_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2668,25 +2590,28 @@ } # ac_fn_fc_try_link -# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES -# --------------------------------------------- +# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR +# ------------------------------------------------------------------ # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR -# accordingly. -ac_fn_c_check_decl () +# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. +ac_fn_check_decl () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack as_decl_name=`echo $2|sed 's/ *(.*//'` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +printf %s "checking whether $as_decl_name is declared... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 -$as_echo_n "checking whether $as_decl_name is declared... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + eval ac_save_FLAGS=\$$6 + as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { #ifndef $as_decl_name #ifdef __cplusplus @@ -2700,19 +2625,22 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + eval $6=\$ac_save_FLAGS + fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno -} # ac_fn_c_check_decl +} # ac_fn_check_decl # ac_fn_c_find_uintX_t LINENO BITS VAR # ------------------------------------ @@ -2721,11 +2649,12 @@ ac_fn_c_find_uintX_t () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 -$as_echo_n "checking for uint$2_t... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 +printf %s "checking for uint$2_t... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop eval "$3=no" # Order is important - never check a type that is potentially smaller # than half of the expected target width. @@ -2735,7 +2664,7 @@ /* end confdefs.h. */ $ac_includes_default int -main () +main (void) { static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; test_array [0] = 0; @@ -2745,7 +2674,8 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : case $ac_type in #( uint$2_t) : eval "$3=yes" ;; #( @@ -2753,17 +2683,18 @@ eval "$3=\$ac_type" ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - if eval test \"x\$"$3"\" = x"no"; then : +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + if eval test \"x\$"$3"\" = x"no" +then : -else +else $as_nop break fi done fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_find_uintX_t @@ -2775,17 +2706,18 @@ ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { if (sizeof ($2)) return 0; @@ -2793,12 +2725,13 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { if (sizeof (($2))) return 0; @@ -2806,22 +2739,66 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else +else $as_nop eval "$3=yes" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that +# executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + 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 + + 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_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes @@ -2836,7 +2813,7 @@ /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; @@ -2846,14 +2823,15 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -2863,9 +2841,10 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=$ac_mid; break -else +else $as_nop as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= @@ -2873,14 +2852,14 @@ fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; @@ -2890,14 +2869,15 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; @@ -2907,9 +2887,10 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_lo=$ac_mid; break -else +else $as_nop as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= @@ -2917,14 +2898,14 @@ fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done -else +else $as_nop ac_lo= ac_hi= fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val @@ -2932,7 +2913,7 @@ /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -2942,12 +2923,13 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=$ac_mid -else +else $as_nop as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; @@ -2957,12 +2939,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 -static long int longval () { return $2; } -static unsigned long int ulongval () { return $2; } +static long int longval (void) { return $2; } +static unsigned long int ulongval (void) { return $2; } #include #include int -main () +main (void) { FILE *f = fopen ("conftest.val", "w"); @@ -2990,9 +2972,10 @@ return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : echo >>conftest.val; read $3 &5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -3026,17 +3009,18 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_objc_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -3058,11 +3042,12 @@ ac_fn_c_check_member () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 -$as_echo_n "checking for $2.$3... " >&6; } -if eval \${$4+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +printf %s "checking for $2.$3... " >&6; } +if eval test \${$4+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 @@ -3075,7 +3060,7 @@ #endif #endif int -main () +main (void) { static $2 ac_aggr; if (ac_aggr.$3) @@ -3084,9 +3069,10 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$4=yes" -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 @@ -3099,7 +3085,7 @@ #endif #endif int -main () +main (void) { static $2 ac_aggr; if (sizeof ac_aggr.$3) @@ -3108,29 +3094,50 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$4=yes" -else +else $as_nop eval "$4=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$4 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_member +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 R $as_me 4.0.3, which was -generated by GNU Autoconf 2.69. Invocation command line was +It was created by R $as_me 4.1.2, which was +generated by GNU Autoconf 2.71. Invocation command line was - $ $0 $@ + $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log @@ -3163,8 +3170,12 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS @@ -3199,7 +3210,7 @@ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; @@ -3234,11 +3245,13 @@ # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? + # Sanitize IFS. + IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo - $as_echo "## ---------------- ## + printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo @@ -3249,8 +3262,8 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -3274,7 +3287,7 @@ ) echo - $as_echo "## ----------------- ## + printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -3282,14 +3295,14 @@ do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## + printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo @@ -3297,15 +3310,15 @@ do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then - $as_echo "## ----------- ## + printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo @@ -3313,8 +3326,8 @@ echo fi test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" + printf "%s\n" "$as_me: caught signal $ac_signal" + printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && @@ -3328,63 +3341,48 @@ # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h -$as_echo "/* confdefs.h */" > confdefs.h +printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF +printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF +printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF +printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF +printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF +printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF +printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac + ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site + ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" + +for ac_site_file in $ac_site_files do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} + case $ac_site_file in #( + */*) : + ;; #( + *) : + ac_site_file=./$ac_site_file ;; +esac + if test -f "$ac_site_file" && test -r "$ac_site_file"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi @@ -3394,252 +3392,850 @@ # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi -as_fn_append ac_header_list " sys/time.h" -gt_needs="$gt_needs need-ngettext" -as_fn_append ac_header_list " stdlib.h" -as_fn_append ac_header_list " unistd.h" -as_fn_append ac_header_list " sys/param.h" -# 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. ## -## -------------------- ## - -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 +# Test code for whether the C compiler supports C89 (global declarations) +ac_c_conftest_c89_globals=' +/* Does the compiler advertise C89 conformance? + Do not test the value of __STDC__, because some compilers set it to 0 + while being otherwise adequately conformant. */ +#if !defined __STDC__ +# error "Compiler does not advertise C89 conformance" +#endif +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ +struct buf { int x; }; +struct buf * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not \xHH hex character constants. + These do not provoke an error unfortunately, instead are silently treated + as an "x". The following induces an error, until -std is added to get + proper ANSI mode. Curiously \x00 != x always comes out true, for an + array size at least. It is necessary to write \x00 == 0 to get something + that is true only with -std. */ +int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; -ac_aux_dir= -for ac_dir in tools "$srcdir"/tools; 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 tools \"$srcdir\"/tools" "$LINENO" 5 -fi +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) '\''x'\'' +int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; -# 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. +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 -### * Information on the package. +#include +extern int puts (const char *); +extern int printf (const char *, ...); +extern int dprintf (int, const char *, ...); +extern void *malloc (size_t); -PACKAGE=${PACKAGE_NAME} +// 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); +} -cat >>confdefs.h <<_ACEOF -#define PACKAGE "${PACKAGE}" -_ACEOF +// 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[]; +}; -VERSION=${PACKAGE_VERSION} +struct named_init { + int number; + const wchar_t *name; + double average; +}; -cat >>confdefs.h <<_ACEOF -#define VERSION "${VERSION}" -_ACEOF +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; +} -MAJ_MIN_VERSION=`echo ${VERSION} | sed 's/\.[0-9]$//'` +// 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; -## Autoheader initialization. + 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); -## We call AC_GNU_SOURCE early (it is a prerequisite for the gettext -## macros), so all the C compiling makes use of that. Nowadays it calls -## AC_USE_SYSTEM_EXTENSIONS .... -## This sets _GNU_SOURCE, so glibc defines all its extensions -## (_POSIX_C_SOURCE, _XOPEN_SOURCE, _BSD_SOURCE, __USE_MISC) and these -## unlock declarations of non-C99 functions and constants. -## Ditto for __EXTENSIONS__ on Solaris and _ALL_SOURCE on AIX. + // Check restrict. + if (test_restrict ("String literal") == 0) + success = true; + char *restrict newvar = "Another string"; -### ** Platform. + // Check varargs. + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); + test_varargs_macros (); -# 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 + // 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; -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 + // Check named initializers. + struct named_init ni = { + .number = 34, + .name = L"Test wide string", + .average = 543.34343, + }; + ni.number = 58; -{ $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 + int dynamic_array[ni.number]; + dynamic_array[0] = argv[0][0]; + dynamic_array[ni.number - 1] = 543; -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 + // 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; } -cat >>confdefs.h <<_ACEOF -#define R_PLATFORM "${host}" -_ACEOF +// 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; +' -cat >>confdefs.h <<_ACEOF -#define R_CPU "${host_cpu}" -_ACEOF +# 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} -cat >>confdefs.h <<_ACEOF -#define R_VENDOR "${host_vendor}" -_ACEOF +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} -cat >>confdefs.h <<_ACEOF -#define R_OS "${host_os}" -_ACEOF +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} -## exclude some unsupported OSes -case "${host_os}" in - ## Darwin 1.3.1 was macOS 10.0, 1.4.1 was 10.1, 5 is 10.2 etc - ## with 18 being 10.14. +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" +as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" +as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" +# Test code for whether the C++ compiler supports C++98 (global declarations) +ac_cxx_conftest_cxx98_globals=' +// Does the compiler advertise C++98 conformance? +#if !defined __cplusplus || __cplusplus < 199711L +# error "Compiler does not advertise C++98 conformance" +#endif + +// These inclusions are to reject old compilers that +// lack the unsuffixed header files. +#include +#include + +// and are *not* freestanding headers in C++98. +extern void assert (int); +namespace std { + extern int strcmp (const char *, const char *); +} + +// Namespaces, exceptions, and templates were all added after "C++ 2.0". +using std::exception; +using std::strcmp; + +namespace { + +void test_exception_syntax() +{ + try { + throw "test"; + } catch (const char *s) { + // Extra parentheses suppress a warning when building autoconf itself, + // due to lint rules shared with more typical C programs. + assert (!(strcmp) (s, "test")); + } +} + +template struct test_template +{ + T const val; + explicit test_template(T t) : val(t) {} + template T add(U u) { return static_cast(u) + val; } +}; + +} // anonymous namespace +' + +# Test code for whether the C++ compiler supports C++98 (body of main) +ac_cxx_conftest_cxx98_main=' + assert (argc); + assert (! argv[0]); +{ + test_exception_syntax (); + test_template tt (2.0); + assert (tt.add (4) == 6.0); + assert (true && !false); +} +' + +# Test code for whether the C++ compiler supports C++11 (global declarations) +ac_cxx_conftest_cxx11_globals=' +// Does the compiler advertise C++ 2011 conformance? +#if !defined __cplusplus || __cplusplus < 201103L +# error "Compiler does not advertise C++11 conformance" +#endif + +namespace cxx11test +{ + constexpr int get_val() { return 20; } + + struct testinit + { + int i; + double d; + }; + + class delegate + { + public: + delegate(int n) : n(n) {} + delegate(): delegate(2354) {} + + virtual int getval() { return this->n; }; + protected: + int n; + }; + + class overridden : public delegate + { + public: + overridden(int n): delegate(n) {} + virtual int getval() override final { return this->n * 2; } + }; + + class nocopy + { + public: + nocopy(int i): i(i) {} + nocopy() = default; + nocopy(const nocopy&) = delete; + nocopy & operator=(const nocopy&) = delete; + private: + int i; + }; + + // for testing lambda expressions + template Ret eval(Fn f, Ret v) + { + return f(v); + } + + // for testing variadic templates and trailing return types + template auto sum(V first) -> V + { + return first; + } + template auto sum(V first, Args... rest) -> V + { + return first + sum(rest...); + } +} +' + +# Test code for whether the C++ compiler supports C++11 (body of main) +ac_cxx_conftest_cxx11_main=' +{ + // Test auto and decltype + auto a1 = 6538; + auto a2 = 48573953.4; + auto a3 = "String literal"; + + int total = 0; + for (auto i = a3; *i; ++i) { total += *i; } + + decltype(a2) a4 = 34895.034; +} +{ + // Test constexpr + short sa[cxx11test::get_val()] = { 0 }; +} +{ + // Test initializer lists + cxx11test::testinit il = { 4323, 435234.23544 }; +} +{ + // Test range-based for + int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, + 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; + for (auto &x : array) { x += 23; } +} +{ + // Test lambda expressions + using cxx11test::eval; + assert (eval ([](int x) { return x*2; }, 21) == 42); + double d = 2.0; + assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); + assert (d == 5.0); + assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); + assert (d == 5.0); +} +{ + // Test use of variadic templates + using cxx11test::sum; + auto a = sum(1); + auto b = sum(1, 2); + auto c = sum(1.0, 2.0, 3.0); +} +{ + // Test constructor delegation + cxx11test::delegate d1; + cxx11test::delegate d2(); + cxx11test::delegate d3(45); +} +{ + // Test override and final + cxx11test::overridden o1(55464); +} +{ + // Test nullptr + char *c = nullptr; +} +{ + // Test template brackets + test_template<::test_template> v(test_template(12)); +} +{ + // Unicode literals + char const *utf8 = u8"UTF-8 string \u2500"; + char16_t const *utf16 = u"UTF-8 string \u2500"; + char32_t const *utf32 = U"UTF-32 string \u2500"; +} +' + +# Test code for whether the C compiler supports C++11 (complete). +ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} +${ac_cxx_conftest_cxx11_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_cxx_conftest_cxx98_main} + ${ac_cxx_conftest_cxx11_main} + return ok; +} +" + +# Test code for whether the C compiler supports C++98 (complete). +ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_cxx_conftest_cxx98_main} + return ok; +} +" + +as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" +gt_needs="$gt_needs need-ngettext" +as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" +as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" + +# Auxiliary files required by this configure script. +ac_aux_files="config.rpath ltmain.sh install-sh config.guess config.sub" + +# Locations in which to look for auxiliary files. +ac_aux_dir_candidates="${srcdir}/tools" + +# 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 + + + + + +### * Information on the package. + +PACKAGE=${PACKAGE_NAME} + +printf "%s\n" "#define PACKAGE \"${PACKAGE}\"" >>confdefs.h + + +VERSION=${PACKAGE_VERSION} + +printf "%s\n" "#define VERSION \"${VERSION}\"" >>confdefs.h + + +MAJ_MIN_VERSION=`echo ${VERSION} | sed 's/\.[0-9]$//'` + + +## Autoheader initialization. + + + +## We call AC_GNU_SOURCE early (it is a prerequisite for the gettext +## macros), so all the C compiling makes use of that. Nowadays it calls +## AC_USE_SYSTEM_EXTENSIONS .... +## This sets _GNU_SOURCE, so glibc defines all its extensions +## (_POSIX_C_SOURCE, _XOPEN_SOURCE, _BSD_SOURCE, __USE_MISC) and these +## unlock declarations of non-C99 functions and constants. +## Ditto for __EXTENSIONS__ on Solaris and _ALL_SOURCE on AIX. + +### ** Platform. + + + + + # 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 + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +printf %s "checking host system type... " >&6; } +if test ${ac_cv_host+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +printf "%s\n" "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + + +printf "%s\n" "#define R_PLATFORM \"${host}\"" >>confdefs.h + + +printf "%s\n" "#define R_CPU \"${host_cpu}\"" >>confdefs.h + + +printf "%s\n" "#define R_VENDOR \"${host_vendor}\"" >>confdefs.h + + +printf "%s\n" "#define R_OS \"${host_os}\"" >>confdefs.h + + +## exclude some unsupported OSes +case "${host_os}" in + ## Darwin 1.3.1 was macOS 10.0, 1.4.1 was 10.1, 5 is 10.2 etc + ## with 19 being 10.15 (Catalina) and 20 being 11 (Big Sur) ## We no longer support < 10.6 (Snow Leopard, Darwin 10) ## https://en.wikipedia.org/wiki/Darwin_OS darwin1.*) @@ -3656,19 +4252,35 @@ R_PLATFORM="${host}" + +MAC_CPU= +case "${host_os}" in + darwin*) + case "${host_cpu}" in + aarch64) + MAC_CPU="arm64" + ;; + *) + MAC_CPU="${host_cpu}" + ;; + esac + + ;; +esac + R_OS="${host_os}" case "${host_os}" in mingw*|windows*|winnt) -$as_echo "#define Win32 1" >>confdefs.h +printf "%s\n" "#define Win32 1" >>confdefs.h R_OSTYPE="windows" ;; *) -$as_echo "#define Unix 1" >>confdefs.h +printf "%s\n" "#define Unix 1" >>confdefs.h R_OSTYPE="unix" ;; @@ -3758,7 +4370,8 @@ ## Allow the user to specify support for R profiling. # Check whether --enable-R-profiling was given. -if test "${enable_R_profiling+set}" = set; then : +if test ${enable_R_profiling+y} +then : enableval=$enable_R_profiling; if test "${enableval}" = no; then want_R_profiling=no elif test "${enableval}" = yes; then @@ -3766,14 +4379,15 @@ else want_R_profiling=yes fi -else +else $as_nop want_R_profiling=yes fi ## Allow the user to specify support for memory profiling. # Check whether --enable-memory-profiling was given. -if test "${enable_memory_profiling+set}" = set; then : +if test ${enable_memory_profiling+y} +then : enableval=$enable_memory_profiling; if test "${enableval}" = no; then want_memory_profiling=no elif test "${enableval}" = yes; then @@ -3781,16 +4395,17 @@ else want_memory_profiling=no fi -else +else $as_nop want_memory_profiling=no fi ## Allow the user to specify building an R framework (Darwin). # Check whether --enable-R-framework was given. -if test "${enable_R_framework+set}" = set; then : +if test ${enable_R_framework+y} +then : enableval=$enable_R_framework; want_R_framework="${enableval}" -else +else $as_nop want_R_framework=no fi @@ -3838,9 +4453,10 @@ ## given explicitly ... ## # Check whether --enable-R-shlib was given. -if test "${enable_R_shlib+set}" = set; then : +if test ${enable_R_shlib+y} +then : enableval=$enable_R_shlib; want_R_shlib="${enableval}" -else +else $as_nop want_R_shlib="${want_R_framework}" fi @@ -3854,16 +4470,17 @@ # Check whether --enable-R-static-lib was given. -if test "${enable_R_static_lib+set}" = set; then : +if test ${enable_R_static_lib+y} +then : enableval=$enable_R_static_lib; want_R_static="${enableval}" -else +else $as_nop want_R_static="no" fi if test "x${want_R_static}" = xyes; then if test "x${want_R_shlib}" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-R-static-lib conflicts with --enable-R-shlib and will be ignored" >&5 -$as_echo "$as_me: WARNING: --enable-R-static-lib conflicts with --enable-R-shlib and will be ignored" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-R-static-lib conflicts with --enable-R-shlib and will be ignored" >&5 +printf "%s\n" "$as_me: WARNING: --enable-R-static-lib conflicts with --enable-R-shlib and will be ignored" >&2;} want_R_static=no fi fi @@ -3878,9 +4495,10 @@ ## Build separate shared/dynamic library containing R's BLAS if desired # Check whether --enable-BLAS-shlib was given. -if test "${enable_BLAS_shlib+set}" = set; then : +if test ${enable_BLAS_shlib+y} +then : enableval=$enable_BLAS_shlib; use_blas_shlib="${enableval}" -else +else $as_nop use_blas_shlib="unset" fi @@ -3896,9 +4514,10 @@ ## Enable maintainer-specific portions of Makefiles. # Check whether --enable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then : +if test ${enable_maintainer_mode+y} +then : enableval=$enable_maintainer_mode; use_maintainer_mode="${enableval}" -else +else $as_nop use_maintainer_mode=no fi @@ -3913,22 +4532,24 @@ ## Enable testing the write barrier. # Check whether --enable-strict-barrier was given. -if test "${enable_strict_barrier+set}" = set; then : +if test ${enable_strict_barrier+y} +then : enableval=$enable_strict_barrier; use_strict_barrier="${enableval}" -else +else $as_nop use_strict_barrier=no fi if test x"${use_strict_barrier}" = xyes; then -$as_echo "#define TESTING_WRITE_BARRIER 1" >>confdefs.h +printf "%s\n" "#define TESTING_WRITE_BARRIER 1" >>confdefs.h fi # Check whether --enable-prebuilt-html was given. -if test "${enable_prebuilt_html+set}" = set; then : +if test ${enable_prebuilt_html+y} +then : enableval=$enable_prebuilt_html; want_prebuilt_html="${enableval}" -else +else $as_nop want_prebuilt_html=no fi @@ -3942,9 +4563,10 @@ # Check whether --enable-lto was given. -if test "${enable_lto+set}" = set; then : +if test ${enable_lto+y} +then : enableval=$enable_lto; want_lto="${enableval}" -else +else $as_nop want_lto=no fi @@ -3977,8 +4599,8 @@ LIBR0="-L\"\$(R_HOME)/lib\$(R_ARCH)\"" LIBR1="${LIBR1} -lLinpack" elif test "x${want_lto}" != xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value --enable-lto=${enableval}" >&5 -$as_echo "$as_me: WARNING: Unknown value --enable-lto=${enableval}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value --enable-lto=${enableval}" >&5 +printf "%s\n" "$as_me: WARNING: Unknown value --enable-lto=${enableval}" >&2;} want_lto=no fi if test "x${want_lto}" = xno; then @@ -4020,9 +4642,10 @@ # Check whether --enable-java was given. -if test "${enable_java+set}" = set; then : +if test ${enable_java+y} +then : enableval=$enable_java; want_java="${enableval}" -else +else $as_nop want_java=yes fi @@ -4040,14 +4663,15 @@ ## BLAS. # Check whether --with-blas was given. -if test "${with_blas+set}" = set; then : +if test ${with_blas+y} +then : withval=$with_blas; if test "${withval}" = no; then use_blas=no else use_blas=yes fi -else +else $as_nop use_blas=unset fi @@ -4056,14 +4680,15 @@ ## LAPACK. # Check whether --with-lapack was given. -if test "${with_lapack+set}" = set; then : +if test ${with_lapack+y} +then : withval=$with_lapack; if test "${withval}" = no; then use_lapack=no else use_lapack=yes fi -else +else $as_nop use_lapack=unset fi @@ -4072,14 +4697,15 @@ ## Readline. # Check whether --with-readline was given. -if test "${with_readline+set}" = set; then : +if test ${with_readline+y} +then : withval=$with_readline; if test "${withval}" = no; then use_readline=no else use_readline=yes fi -else +else $as_nop use_readline=yes fi @@ -4087,14 +4713,15 @@ ## PCRE2. # Check whether --with-pcre2 was given. -if test "${with_pcre2+set}" = set; then : +if test ${with_pcre2+y} +then : withval=$with_pcre2; if test "${withval}" = no; then use_pcre2=no else use_pcre2=yes fi -else +else $as_nop use_pcre2=yes fi @@ -4102,14 +4729,15 @@ ## PCRE1. # Check whether --with-pcre1 was given. -if test "${with_pcre1+set}" = set; then : +if test ${with_pcre1+y} +then : withval=$with_pcre1; if test "${withval}" = no; then use_pcre1=no else use_pcre1=yes fi -else +else $as_nop use_pcre1=no fi @@ -4117,13 +4745,14 @@ ## Aqua. # Check whether --with-aqua was given. -if test "${with_aqua+set}" = set; then : +if test ${with_aqua+y} +then : withval=$with_aqua; if test "${withval}" = no; then want_aqua=no else want_aqua=yes fi -else +else $as_nop want_aqua=yes fi @@ -4131,7 +4760,8 @@ ## Tcl/Tk. # Check whether --with-tcltk was given. -if test "${with_tcltk+set}" = set; then : +if test ${with_tcltk+y} +then : withval=$with_tcltk; if test "${withval}" = no; then want_tcltk=no elif test "${withval}" = yes; then @@ -4141,23 +4771,25 @@ LDFLAGS="${LDFLAGS} -L${withval}" tcltk_prefix="${withval}" fi -else +else $as_nop want_tcltk=yes fi # Check whether --with-tcl-config was given. -if test "${with_tcl_config+set}" = set; then : +if test ${with_tcl_config+y} +then : withval=$with_tcl_config; TCL_CONFIG="${withval}" -else +else $as_nop TCL_CONFIG="" fi # Check whether --with-tk-config was given. -if test "${with_tk_config+set}" = set; then : +if test ${with_tk_config+y} +then : withval=$with_tk_config; TK_CONFIG="${withval}" -else +else $as_nop TK_CONFIG="" fi @@ -4165,13 +4797,14 @@ ## cairographics etc # Check whether --with-cairo was given. -if test "${with_cairo+set}" = set; then : +if test ${with_cairo+y} +then : withval=$with_cairo; if test "${withval}" = no; then want_cairo=no else want_cairo=yes fi -else +else $as_nop want_cairo=yes fi @@ -4179,53 +4812,57 @@ ## other libraries # Check whether --with-libpng was given. -if test "${with_libpng+set}" = set; then : +if test ${with_libpng+y} +then : withval=$with_libpng; if test "${withval}" = no; then use_libpng=no else use_libpng=yes fi -else +else $as_nop use_libpng=yes fi # Check whether --with-jpeglib was given. -if test "${with_jpeglib+set}" = set; then : +if test ${with_jpeglib+y} +then : withval=$with_jpeglib; if test "${withval}" = no; then use_jpeglib=no else use_jpeglib=yes fi -else +else $as_nop use_jpeglib=yes fi # Check whether --with-libtiff was given. -if test "${with_libtiff+set}" = set; then : +if test ${with_libtiff+y} +then : withval=$with_libtiff; if test "${withval}" = no; then use_libtiff=no else use_libtiff=yes fi -else +else $as_nop use_libtiff=yes fi # Check whether --with-system-tre was given. -if test "${with_system_tre+set}" = set; then : +if test ${with_system_tre+y} +then : withval=$with_system_tre; if test "${withval}" = no; then use_system_tre=no else use_system_tre=yes fi -else +else $as_nop use_system_tre=no fi @@ -4233,37 +4870,79 @@ ## Valgrind instrumentation # Check whether --with-valgrind-instrumentation was given. -if test "${with_valgrind_instrumentation+set}" = set; then : +if test ${with_valgrind_instrumentation+y} +then : withval=$with_valgrind_instrumentation; valgrind_level=${withval} -else +else $as_nop valgrind_level=0 fi # Check whether --with-system-valgrind-headers was given. -if test "${with_system_valgrind_headers+set}" = set; then : +if test ${with_system_valgrind_headers+y} +then : withval=$with_system_valgrind_headers; if test "${withval}" = no; then use_system_valgrind=no else use_system_valgrind=yes fi -else +else $as_nop use_system_valgrind=no fi # Check whether --with-internal-tzcode was given. -if test "${with_internal_tzcode+set}" = set; then : +if test ${with_internal_tzcode+y} +then : withval=$with_internal_tzcode; use_internal_tzcode=${withval} -else +else $as_nop use_internal_tzcode=default fi +# Check whether --with-internal-towlower was given. +if test ${with_internal_towlower+y} +then : + withval=$with_internal_towlower; use_internal_towlower=${withval} +else $as_nop + use_internal_towlower=default +fi + + + +# Check whether --with-internal-iswxxxxx was given. +if test ${with_internal_iswxxxxx+y} +then : + withval=$with_internal_iswxxxxx; use_internal_iswxxxxx=${withval} +else $as_nop + use_internal_iswxxxxx=default +fi + + + +# Check whether --with-internal-wcwidth was given. +if test ${with_internal_wcwidth+y} +then : + withval=$with_internal_wcwidth; use_internal_wcwidth=${withval} +else $as_nop + use_internal_wcwidth=yes +fi + + + +# Check whether --with-internal-tzcode was given. +if test ${with_internal_tzcode+y} +then : + withval=$with_internal_tzcode; use_internal_tzcode=${withval} +else $as_nop + use_internal_tzcode=default +fi + + ## ## Completely disable using libtool for building shlibs until libtool ## fully supports Fortran and C++. @@ -4277,14 +4956,15 @@ ## Recommended R packages. # Check whether --with-recommended-packages was given. -if test "${with_recommended_packages+set}" = set; then : +if test ${with_recommended_packages+y} +then : withval=$with_recommended_packages; if test "${withval}" = no; then use_recommended_packages=no else use_recommended_packages=yes fi -else +else $as_nop use_recommended_packages=yes fi @@ -4292,23 +4972,25 @@ ## ICU # Check whether --with-ICU was given. -if test "${with_ICU+set}" = set; then : +if test ${with_ICU+y} +then : withval=$with_ICU; if test "${withval}" = no; then use_ICU=no else use_ICU=yes fi -else +else $as_nop use_ICU=yes fi ## Byte-compilation of packages. # Check whether --enable-byte-compiled-packages was given. -if test "${enable_byte_compiled_packages+set}" = set; then : +if test ${enable_byte_compiled_packages+y} +then : enableval=$enable_byte_compiled_packages; want_byte_compiled_packages="${enableval}" -else +else $as_nop want_byte_compiled_packages=yes fi @@ -4321,6 +5003,26 @@ fi + +# Check whether --with-static-cairo was given. +if test ${with_static_cairo+y} +then : + withval=$with_static_cairo; use_static_cairo=${withval} +else $as_nop + use_static_cairo=default +fi + +if test "x$use_static_cairo" = xdefault; then + case "${host_os}" in + darwin*) + use_static_cairo=yes + ;; + *) + use_static_cairo=no + ;; + esac +fi + ### ** Precious variables. @@ -4364,9 +5066,7 @@ R_INCLUDES="-I\"\$(R_INCLUDE_DIR)\" -I\"\$(R_INCLUDE_DIR)/${r_arch}\"" fi -cat >>confdefs.h <<_ACEOF -#define R_ARCH "${r_arch}" -_ACEOF +printf "%s\n" "#define R_ARCH \"${r_arch}\"" >>confdefs.h @@ -4375,11 +5075,12 @@ # Extract the first word of "pwd", so it can be a program name with args. set dummy pwd; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_GETWD+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_GETWD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $GETWD in [\\/]* | ?:[\\/]*) ac_cv_path_GETWD="$GETWD" # Let the user override the test with a path. @@ -4389,11 +5090,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_GETWD="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_GETWD="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4406,47 +5111,48 @@ fi GETWD=$ac_cv_path_GETWD if test -n "$GETWD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETWD" >&5 -$as_echo "$GETWD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GETWD" >&5 +printf "%s\n" "$GETWD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether builddir is srcdir" >&5 -$as_echo_n "checking whether builddir is srcdir... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether builddir is srcdir" >&5 +printf %s "checking whether builddir is srcdir... " >&6; } if test "`cd \"${srcdir}\" && ${GETWD}`" = "`${GETWD}`"; then BUILDDIR_IS_SRCDIR=yes else BUILDDIR_IS_SRCDIR=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILDDIR_IS_SRCDIR}" >&5 -$as_echo "${BUILDDIR_IS_SRCDIR}" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${BUILDDIR_IS_SRCDIR}" >&5 +printf "%s\n" "${BUILDDIR_IS_SRCDIR}" >&6; } ### * Checks for programs. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 -$as_echo_n "checking whether ln -s works... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +printf %s "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 -$as_echo "no, using $LN_S" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +printf "%s\n" "no, using $LN_S" >&6; } fi for ac_prog in ${AR} ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else @@ -4454,11 +5160,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4469,11 +5179,11 @@ fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +printf "%s\n" "$AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4483,7 +5193,8 @@ : ${ARFLAGS="rc"} -# Find a good install program. We prefer a C program (faster), + + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install @@ -4497,20 +5208,25 @@ # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +printf %s "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${ac_cv_path_install+y} +then : + printf %s "(cached) " >&6 +else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in #(( - ./ | .// | /[cC]/* | \ + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + # Account for fact that we put trailing slashes in our PATH walk. +case $as_dir in #(( + ./ | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; @@ -4520,13 +5236,13 @@ # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else @@ -4534,12 +5250,12 @@ echo one > conftest.one echo two > conftest.two mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" break 3 fi fi @@ -4555,7 +5271,7 @@ rm -rf conftest.one conftest.two conftest.dir fi - if test "${ac_cv_path_install+set}" = set; then + if test ${ac_cv_path_install+y}; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a @@ -4565,8 +5281,8 @@ INSTALL=$ac_install_sh fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +printf "%s\n" "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. @@ -4591,11 +5307,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_SED+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $SED in [\\/]* | ?:[\\/]*) ac_cv_path_SED="$SED" # Let the user override the test with a path. @@ -4606,11 +5323,15 @@ for as_dir in $as_dummy do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4622,11 +5343,11 @@ fi SED=$ac_cv_path_SED if test -n "$SED"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 -$as_echo "$SED" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +printf "%s\n" "$SED" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4640,11 +5361,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_WHICH+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_WHICH+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $WHICH in [\\/]* | ?:[\\/]*) ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. @@ -4654,11 +5376,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_WHICH="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4670,11 +5396,11 @@ fi WHICH=$ac_cv_path_WHICH if test -n "$WHICH"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 -$as_echo "$WHICH" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 +printf "%s\n" "$WHICH" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4690,11 +5416,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PAGER+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PAGER+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PAGER in [\\/]* | ?:[\\/]*) ac_cv_path_PAGER="$PAGER" # Let the user override the test with a path. @@ -4704,11 +5431,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PAGER="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PAGER="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4720,11 +5451,11 @@ fi PAGER=$ac_cv_path_PAGER if test -n "$PAGER"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAGER" >&5 -$as_echo "$PAGER" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PAGER" >&5 +printf "%s\n" "$PAGER" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4734,8 +5465,8 @@ if test "${PAGER}" = false; then warn_pager="I could not determine a pager" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pager}" >&5 -$as_echo "$as_me: WARNING: ${warn_pager}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pager}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_pager}" >&2;} fi ## Tar -- we prefer a GNU version @@ -4743,11 +5474,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TAR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_TAR+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $TAR in [\\/]* | ?:[\\/]*) ac_cv_path_TAR="$TAR" # Let the user override the test with a path. @@ -4757,11 +5489,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_TAR="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4773,11 +5509,11 @@ fi TAR=$ac_cv_path_TAR if test -n "$TAR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 -$as_echo "$TAR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 +printf "%s\n" "$TAR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4791,11 +5527,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TEX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_TEX+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $TEX in [\\/]* | ?:[\\/]*) ac_cv_path_TEX="$TEX" # Let the user override the test with a path. @@ -4805,11 +5542,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TEX="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_TEX="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4821,11 +5562,11 @@ fi TEX=$ac_cv_path_TEX if test -n "$TEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5 -$as_echo "$TEX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5 +printf "%s\n" "$TEX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4836,11 +5577,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PDFTEX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PDFTEX+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PDFTEX in [\\/]* | ?:[\\/]*) ac_cv_path_PDFTEX="$PDFTEX" # Let the user override the test with a path. @@ -4850,11 +5592,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PDFTEX="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PDFTEX="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4866,11 +5612,11 @@ fi PDFTEX=$ac_cv_path_PDFTEX if test -n "$PDFTEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFTEX" >&5 -$as_echo "$PDFTEX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFTEX" >&5 +printf "%s\n" "$PDFTEX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4879,18 +5625,19 @@ if test -z "${ac_cv_path_PDFTEX}" ; then warn_pdf1="you cannot build PDF versions of the R manuals" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdf1}" >&5 -$as_echo "$as_me: WARNING: ${warn_pdf1}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdf1}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_pdf1}" >&2;} fi for ac_prog in ${PDFLATEX} pdflatex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PDFLATEX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PDFLATEX+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PDFLATEX in [\\/]* | ?:[\\/]*) ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. @@ -4900,11 +5647,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PDFLATEX="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4916,11 +5667,11 @@ fi PDFLATEX=$ac_cv_path_PDFLATEX if test -n "$PDFLATEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 -$as_echo "$PDFLATEX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 +printf "%s\n" "$PDFLATEX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4929,18 +5680,19 @@ if test -z "${ac_cv_path_PDFLATEX}" ; then warn_pdf2="you cannot build PDF versions of vignettes and help pages" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdf2}" >&5 -$as_echo "$as_me: WARNING: ${warn_pdf2}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdf2}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_pdf2}" >&2;} fi for ac_prog in ${MAKEINDEX} makeindex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MAKEINDEX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_MAKEINDEX+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $MAKEINDEX in [\\/]* | ?:[\\/]*) ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path. @@ -4950,11 +5702,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4966,11 +5722,11 @@ fi MAKEINDEX=$ac_cv_path_MAKEINDEX if test -n "$MAKEINDEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5 -$as_echo "$MAKEINDEX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5 +printf "%s\n" "$MAKEINDEX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4981,11 +5737,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TEXI2ANY+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_TEXI2ANY+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $TEXI2ANY in [\\/]* | ?:[\\/]*) ac_cv_path_TEXI2ANY="$TEXI2ANY" # Let the user override the test with a path. @@ -4995,11 +5752,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TEXI2ANY="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_TEXI2ANY="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5011,11 +5772,11 @@ fi TEXI2ANY=$ac_cv_path_TEXI2ANY if test -n "$TEXI2ANY"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2ANY" >&5 -$as_echo "$TEXI2ANY" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEXI2ANY" >&5 +printf "%s\n" "$TEXI2ANY" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5023,11 +5784,12 @@ done if test -n "${TEXI2ANY}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether texi2any version is at least 5.1" >&5 -$as_echo_n "checking whether texi2any version is at least 5.1... " >&6; } -if ${r_cv_prog_texi2any_v5+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether texi2any version is at least 5.1" >&5 +printf %s "checking whether texi2any version is at least 5.1... " >&6; } +if test ${r_cv_prog_texi2any_v5+y} +then : + printf %s "(cached) " >&6 +else $as_nop texi2any_version=`${TEXI2ANY} --version | \ grep -E '^(makeinfo|texi2any)' | sed 's/[^)]*) \(.*\)/\1/'` texi2any_version_maj=`echo ${texi2any_version} | cut -f1 -d.` @@ -5045,18 +5807,19 @@ r_cv_prog_texi2any_v5=yes fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_texi2any_v5" >&5 -$as_echo "$r_cv_prog_texi2any_v5" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_texi2any_v5" >&5 +printf "%s\n" "$r_cv_prog_texi2any_v5" >&6; } for ac_prog in ${INSTALL_INFO} ginstall-info install-info do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_INSTALL_INFO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_INSTALL_INFO+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $INSTALL_INFO in [\\/]* | ?:[\\/]*) ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. @@ -5066,11 +5829,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_INSTALL_INFO="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5082,11 +5849,11 @@ fi INSTALL_INFO=$ac_cv_path_INSTALL_INFO if test -n "$INSTALL_INFO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 -$as_echo "$INSTALL_INFO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 +printf "%s\n" "$INSTALL_INFO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5098,8 +5865,8 @@ fi if test "${r_cv_prog_texi2any_v5}" != yes; then warn_info="you cannot build info or HTML versions of the R manuals" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_info}" >&5 -$as_echo "$as_me: WARNING: ${warn_info}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_info}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_info}" >&2;} TEXI2ANY="" else TEXI2ANY="${TEXI2ANY}" @@ -5109,11 +5876,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TEXI2DVI+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_TEXI2DVI+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $TEXI2DVI in [\\/]* | ?:[\\/]*) ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path. @@ -5123,11 +5891,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_TEXI2DVI="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5139,11 +5911,11 @@ fi TEXI2DVI=$ac_cv_path_TEXI2DVI if test -n "$TEXI2DVI"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5 -$as_echo "$TEXI2DVI" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5 +printf "%s\n" "$TEXI2DVI" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5159,11 +5931,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_KPSEWHICH+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_KPSEWHICH+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $KPSEWHICH in [\\/]* | ?:[\\/]*) ac_cv_path_KPSEWHICH="$KPSEWHICH" # Let the user override the test with a path. @@ -5173,11 +5946,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_KPSEWHICH="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_KPSEWHICH="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5189,11 +5966,11 @@ fi KPSEWHICH=$ac_cv_path_KPSEWHICH if test -n "$KPSEWHICH"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KPSEWHICH" >&5 -$as_echo "$KPSEWHICH" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KPSEWHICH" >&5 +printf "%s\n" "$KPSEWHICH" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5201,27 +5978,27 @@ done test -n "$KPSEWHICH" || KPSEWHICH="""" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for latex inconsolata package" >&5 -$as_echo_n "checking for latex inconsolata package... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for latex inconsolata package" >&5 +printf %s "checking for latex inconsolata package... " >&6; } r_rd4pdf="times,inconsolata,hyper" if test -n "${KPSEWHICH}"; then ${KPSEWHICH} zi4.sty > /dev/null if test $? -eq 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found zi4.sty" >&5 -$as_echo "found zi4.sty" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found zi4.sty" >&5 +printf "%s\n" "found zi4.sty" >&6; } else ${KPSEWHICH} inconsolata.sty > /dev/null if test $? -eq 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found inconsolata.sty" >&5 -$as_echo "found inconsolata.sty" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found inconsolata.sty" >&5 +printf "%s\n" "found inconsolata.sty" >&6; } else r_rd4pdf="times,hyper" if test -z "${R_RD4PDF}" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 -$as_echo "missing" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +printf "%s\n" "missing" >&6; } warn_pdf3="neither inconsolata.sty nor zi4.sty found: PDF vignettes and package manuals will not be rendered optimally" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdf3}" >&5 -$as_echo "$as_me: WARNING: ${warn_pdf3}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdf3}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_pdf3}" >&2;} fi fi fi @@ -5234,11 +6011,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_R_UNZIPCMD+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_R_UNZIPCMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $R_UNZIPCMD in [\\/]* | ?:[\\/]*) ac_cv_path_R_UNZIPCMD="$R_UNZIPCMD" # Let the user override the test with a path. @@ -5248,11 +6026,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_R_UNZIPCMD="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_R_UNZIPCMD="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5264,11 +6046,11 @@ fi R_UNZIPCMD=$ac_cv_path_R_UNZIPCMD if test -n "$R_UNZIPCMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R_UNZIPCMD" >&5 -$as_echo "$R_UNZIPCMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $R_UNZIPCMD" >&5 +printf "%s\n" "$R_UNZIPCMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5280,11 +6062,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_R_ZIPCMD+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_R_ZIPCMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $R_ZIPCMD in [\\/]* | ?:[\\/]*) ac_cv_path_R_ZIPCMD="$R_ZIPCMD" # Let the user override the test with a path. @@ -5294,11 +6077,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_R_ZIPCMD="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_R_ZIPCMD="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5310,11 +6097,11 @@ fi R_ZIPCMD=$ac_cv_path_R_ZIPCMD if test -n "$R_ZIPCMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R_ZIPCMD" >&5 -$as_echo "$R_ZIPCMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $R_ZIPCMD" >&5 +printf "%s\n" "$R_ZIPCMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5326,11 +6113,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_R_GZIPCMD+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_R_GZIPCMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $R_GZIPCMD in [\\/]* | ?:[\\/]*) ac_cv_path_R_GZIPCMD="$R_GZIPCMD" # Let the user override the test with a path. @@ -5340,11 +6128,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_R_GZIPCMD="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_R_GZIPCMD="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5356,11 +6148,11 @@ fi R_GZIPCMD=$ac_cv_path_R_GZIPCMD if test -n "$R_GZIPCMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R_GZIPCMD" >&5 -$as_echo "$R_GZIPCMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $R_GZIPCMD" >&5 +printf "%s\n" "$R_GZIPCMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5372,11 +6164,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_R_BZIPCMD+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_R_BZIPCMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $R_BZIPCMD in [\\/]* | ?:[\\/]*) ac_cv_path_R_BZIPCMD="$R_BZIPCMD" # Let the user override the test with a path. @@ -5386,11 +6179,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_R_BZIPCMD="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_R_BZIPCMD="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5402,11 +6199,11 @@ fi R_BZIPCMD=$ac_cv_path_R_BZIPCMD if test -n "$R_BZIPCMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R_BZIPCMD" >&5 -$as_echo "$R_BZIPCMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $R_BZIPCMD" >&5 +printf "%s\n" "$R_BZIPCMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5420,11 +6217,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_R_BROWSER+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_R_BROWSER+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $R_BROWSER in [\\/]* | ?:[\\/]*) ac_cv_path_R_BROWSER="$R_BROWSER" # Let the user override the test with a path. @@ -5434,11 +6232,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_R_BROWSER="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_R_BROWSER="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5450,11 +6252,11 @@ fi R_BROWSER=$ac_cv_path_R_BROWSER if test -n "$R_BROWSER"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R_BROWSER" >&5 -$as_echo "$R_BROWSER" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $R_BROWSER" >&5 +printf "%s\n" "$R_BROWSER" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5464,11 +6266,11 @@ fi if test -z "${R_BROWSER}"; then warn_browser="I could not determine a browser" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_browser}" >&5 -$as_echo "$as_me: WARNING: ${warn_browser}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_browser}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_browser}" >&2;} else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default browser ... ${R_BROWSER}" >&5 -$as_echo "using default browser ... ${R_BROWSER}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using default browser ... ${R_BROWSER}" >&5 +printf "%s\n" "using default browser ... ${R_BROWSER}" >&6; } fi @@ -5477,11 +6279,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_R_PDFVIEWER+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_R_PDFVIEWER+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $R_PDFVIEWER in [\\/]* | ?:[\\/]*) ac_cv_path_R_PDFVIEWER="$R_PDFVIEWER" # Let the user override the test with a path. @@ -5491,11 +6294,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_R_PDFVIEWER="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_R_PDFVIEWER="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5507,11 +6314,11 @@ fi R_PDFVIEWER=$ac_cv_path_R_PDFVIEWER if test -n "$R_PDFVIEWER"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R_PDFVIEWER" >&5 -$as_echo "$R_PDFVIEWER" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $R_PDFVIEWER" >&5 +printf "%s\n" "$R_PDFVIEWER" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5520,64 +6327,64 @@ if test -z "${R_PDFVIEWER}"; then warn_pdfviewer="I could not determine a PDF viewer" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdfviewer}" >&5 -$as_echo "$as_me: WARNING: ${warn_pdfviewer}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdfviewer}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_pdfviewer}" >&2;} fi ## Noweb (notangle), aclocal, autoconf, autoheader - maintainer mode only -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working aclocal" >&5 -$as_echo_n "checking for working aclocal... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working aclocal" >&5 +printf %s "checking for working aclocal... " >&6; } if (aclocal --version) < /dev/null > /dev/null 2>&1; then ACLOCAL=aclocal - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 -$as_echo "found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 +printf "%s\n" "found" >&6; } else ACLOCAL="\$(SHELL) \"\$(abs_top_srcdir)/tools/missing\" aclocal" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 -$as_echo "missing" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +printf "%s\n" "missing" >&6; } if test "x${use_maintainer_mode}" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: aclocal is missing - aclocal.m4 cannot be updated!" >&5 -$as_echo "$as_me: WARNING: aclocal is missing - aclocal.m4 cannot be updated!" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: aclocal is missing - aclocal.m4 cannot be updated!" >&5 +printf "%s\n" "$as_me: WARNING: aclocal is missing - aclocal.m4 cannot be updated!" >&2;} fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working autoconf" >&5 -$as_echo_n "checking for working autoconf... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working autoconf" >&5 +printf %s "checking for working autoconf... " >&6; } if (autoconf --version) < /dev/null > /dev/null 2>&1; then AUTOCONF=autoconf - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 -$as_echo "found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 +printf "%s\n" "found" >&6; } else AUTOCONF="\$(SHELL) \"\$(abs_top_srcdir)/tools/missing\" autoconf" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 -$as_echo "missing" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +printf "%s\n" "missing" >&6; } if test "x${use_maintainer_mode}" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: autoconf is missing - configure cannot be updated!" >&5 -$as_echo "$as_me: WARNING: autoconf is missing - configure cannot be updated!" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: autoconf is missing - configure cannot be updated!" >&5 +printf "%s\n" "$as_me: WARNING: autoconf is missing - configure cannot be updated!" >&2;} fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working autoheader" >&5 -$as_echo_n "checking for working autoheader... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working autoheader" >&5 +printf %s "checking for working autoheader... " >&6; } if (autoheader --version) < /dev/null > /dev/null 2>&1; then AUTOHEADER=autoheader - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 -$as_echo "found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 +printf "%s\n" "found" >&6; } else AUTOHEADER="\$(SHELL) \"\$(abs_top_srcdir)/tools/missing\" autoheader" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 -$as_echo "missing" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5 +printf "%s\n" "missing" >&6; } if test "x${use_maintainer_mode}" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: autoheader is missing - header file templates like config.h.in cannot be updated!" >&5 -$as_echo "$as_me: WARNING: autoheader is missing - header file templates like config.h.in cannot be updated!" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: autoheader is missing - header file templates like config.h.in cannot be updated!" >&5 +printf "%s\n" "$as_me: WARNING: autoheader is missing - header file templates like config.h.in cannot be updated!" >&2;} fi @@ -5588,11 +6395,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_YACC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_YACC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. else @@ -5600,11 +6408,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_YACC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5615,11 +6427,11 @@ fi YACC=$ac_cv_prog_YACC if test -n "$YACC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 -$as_echo "$YACC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 +printf "%s\n" "$YACC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5631,11 +6443,12 @@ ## yacc is the default value even when yacc is not found # Extract the first word of "yacc", so it can be a program name with args. set dummy yacc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_JUSTYACC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_JUSTYACC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$JUSTYACC"; then ac_cv_prog_JUSTYACC="$JUSTYACC" # Let the user override the test. else @@ -5643,11 +6456,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_JUSTYACC="yes" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5658,29 +6475,30 @@ fi JUSTYACC=$ac_cv_prog_JUSTYACC if test -n "$JUSTYACC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JUSTYACC" >&5 -$as_echo "$JUSTYACC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JUSTYACC" >&5 +printf "%s\n" "$JUSTYACC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x${JUSTYACC}" != xyes ; then if test "x${use_maintainer_mode}" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: yacc is missing - parsers cannot be updated!" >&5 -$as_echo "$as_me: WARNING: yacc is missing - parsers cannot be updated!" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: yacc is missing - parsers cannot be updated!" >&5 +printf "%s\n" "$as_me: WARNING: yacc is missing - parsers cannot be updated!" >&2;} fi fi fi # Extract the first word of "notangle", so it can be a program name with args. set dummy notangle; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_NOTANGLE+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_NOTANGLE+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $NOTANGLE in [\\/]* | ?:[\\/]*) ac_cv_path_NOTANGLE="$NOTANGLE" # Let the user override the test with a path. @@ -5690,11 +6508,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_NOTANGLE="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_NOTANGLE="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5707,18 +6529,18 @@ fi NOTANGLE=$ac_cv_path_NOTANGLE if test -n "$NOTANGLE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOTANGLE" >&5 -$as_echo "$NOTANGLE" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NOTANGLE" >&5 +printf "%s\n" "$NOTANGLE" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "${NOTANGLE}" = false ; then if test "x${use_maintainer_mode}" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: notangle is missing - byte-code compiler source cannot be updated!" >&5 -$as_echo "$as_me: WARNING: notangle is missing - byte-code compiler source cannot be updated!" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: notangle is missing - byte-code compiler source cannot be updated!" >&5 +printf "%s\n" "$as_me: WARNING: notangle is missing - byte-code compiler source cannot be updated!" >&2;} fi NOTANGLE=notangle @@ -5726,11 +6548,12 @@ ## javareconf needs this # Extract the first word of "realpath", so it can be a program name with args. set dummy realpath; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_REALPATH+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_REALPATH+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $REALPATH in [\\/]* | ?:[\\/]*) ac_cv_path_REALPATH="$REALPATH" # Let the user override the test with a path. @@ -5740,11 +6563,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_REALPATH="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_REALPATH="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5757,11 +6584,11 @@ fi REALPATH=$ac_cv_path_REALPATH if test -n "$REALPATH"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALPATH" >&5 -$as_echo "$REALPATH" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $REALPATH" >&5 +printf "%s\n" "$REALPATH" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5769,29 +6596,34 @@ ## Search for cairographics needs pkg-config, ## helps find jpeg, libpng and libtiff. -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pkg-config ", so it can be a program name with args. -set dummy ${ac_tool_prefix}pkg-config ; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else +for ac_prog in pkg-config pkgconf +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_path_PKG_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_dummy="$PATH:/usr/local/bin:/ext/bin:/ext:/sw/bin:/opt/bin" -for as_dir in $as_dummy +for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5803,71 +6635,25 @@ fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +printf "%s\n" "$PKG_CONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -fi -if test -z "$ac_cv_path_PKG_CONFIG"; then - ac_pt_PKG_CONFIG=$PKG_CONFIG - # Extract the first word of "pkg-config ", so it can be a program name with args. -set dummy pkg-config ; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $ac_pt_PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_dummy="$PATH:/usr/local/bin:/ext/bin:/ext:/sw/bin:/opt/bin" -for as_dir in $as_dummy -do - IFS=$as_save_IFS - 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 - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi + test -n "$PKG_CONFIG" && break done - done -IFS=$as_save_IFS - ;; -esac -fi -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG -if test -n "$ac_pt_PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 -$as_echo "$ac_pt_PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - if test "x$ac_pt_PKG_CONFIG" = x; then - PKG_CONFIG="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - PKG_CONFIG=$ac_pt_PKG_CONFIG - fi -else - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -fi + + + + + + + @@ -5881,11 +6667,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5893,11 +6680,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5908,11 +6699,11 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5921,11 +6712,12 @@ ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else @@ -5933,11 +6725,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5948,11 +6744,11 @@ fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then @@ -5960,8 +6756,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -5974,11 +6770,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -5986,11 +6783,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6001,11 +6802,11 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6014,11 +6815,12 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -6027,15 +6829,19 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6051,18 +6857,18 @@ # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6073,11 +6879,12 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -6085,11 +6892,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6100,11 +6911,11 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6117,11 +6928,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else @@ -6129,11 +6941,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6144,11 +6960,11 @@ fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6160,34 +6976,138 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. +set dummy ${ac_tool_prefix}clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}clang" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "clang", so it can be a program name with args. +set dummy clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="clang" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi +else + CC="$ac_cv_prog_CC" fi fi -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 -for ac_option in --version -v -V -qversion; do +for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -6197,7 +7117,7 @@ cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done @@ -6205,7 +7125,7 @@ /* end confdefs.h. */ int -main () +main (void) { ; @@ -6217,9 +7137,9 @@ # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +printf %s "checking whether the C compiler works... " >&6; } +ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" @@ -6240,11 +7160,12 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, @@ -6261,7 +7182,7 @@ # certainly right. break;; *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi @@ -6277,44 +7198,46 @@ done test "$ac_cv_exeext" = no && ac_cv_exeext= -else +else $as_nop ac_file='' fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 +if test -z "$ac_file" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +printf %s "checking for C compiler default output file name... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +printf %s "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with @@ -6328,15 +7251,15 @@ * ) break;; esac done -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext @@ -6345,7 +7268,7 @@ /* end confdefs.h. */ #include int -main () +main (void) { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; @@ -6357,8 +7280,8 @@ ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in @@ -6366,10 +7289,10 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in @@ -6377,39 +7300,40 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +printf %s "checking for suffix of object files... " >&6; } +if test ${ac_cv_objext+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -6423,11 +7347,12 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in @@ -6436,31 +7361,32 @@ break;; esac done -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 +printf %s "checking whether the compiler supports GNU C... " >&6; } +if test ${ac_cv_c_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -6470,29 +7396,33 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_c_compiler_gnu + if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi -ac_test_CFLAGS=${CFLAGS+set} +ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +printf %s "checking whether $CC accepts -g... " >&6; } +if test ${ac_cv_prog_cc_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no @@ -6501,57 +7431,60 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_g=yes -else +else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else +else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +printf "%s\n" "$ac_cv_prog_cc_g" >&6; } +if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then @@ -6566,94 +7499,144 @@ CFLAGS= fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no +ac_prog_cc_stdc=no +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 +printf %s "checking for $CC option to enable C11 features... " >&6; } +if test ${ac_cv_prog_cc_c11+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; +$ac_c_conftest_c11_program +_ACEOF +for ac_arg in '' -std=gnu11 +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c11" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; +if test "x$ac_cv_prog_cc_c11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } + CC="$CC $ac_cv_prog_cc_c11" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 + ac_prog_cc_stdc=c11 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 +printf %s "checking for $CC option to enable C99 features... " >&6; } +if test ${ac_cv_prog_cc_c99+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c99=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c99_program +_ACEOF +for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c99=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c99" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} +if test "x$ac_cv_prog_cc_c99" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c99" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } + CC="$CC $ac_cv_prog_cc_c99" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 + ac_prog_cc_stdc=c99 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 +printf %s "checking for $CC option to enable C89 features... " >&6; } +if test ${ac_cv_prog_cc_c89+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c89_program _ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : + if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_c89=$ac_arg fi -rm -f core conftest.err conftest.$ac_objext +rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC - fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : +if test "x$ac_cv_prog_cc_c89" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c89" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } + CC="$CC $ac_cv_prog_cc_c89" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 + ac_prog_cc_stdc=c89 +fi fi ac_ext=c @@ -6668,40 +7651,36 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +printf %s "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + if test ${ac_cv_prog_CPP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + # Double quotes because $CC needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -6713,10 +7692,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -6726,7 +7706,8 @@ done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi @@ -6738,29 +7719,24 @@ else ac_cv_prog_CPP=$CPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +printf "%s\n" "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -6772,10 +7748,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -6785,11 +7762,12 @@ done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi @@ -6801,11 +7779,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST @@ -6813,10 +7792,15 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in grep ggrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP @@ -6825,13 +7809,13 @@ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" + printf "%s\n" 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -6859,16 +7843,17 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else @@ -6879,10 +7864,15 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in egrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP @@ -6891,13 +7881,13 @@ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" + printf "%s\n" 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -6926,17 +7916,18 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" if test $ac_cv_c_compiler_gnu = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 -$as_echo_n "checking whether $CC needs -traditional... " >&6; } -if ${ac_cv_prog_gcc_traditional+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 +printf %s "checking whether $CC needs -traditional... " >&6; } +if test ${ac_cv_prog_gcc_traditional+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_pattern="Autoconf.*'x'" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6944,12 +7935,13 @@ Autoconf TIOCGETP _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then : + $EGREP "$ac_pattern" >/dev/null 2>&1 +then : ac_cv_prog_gcc_traditional=yes -else +else $as_nop ac_cv_prog_gcc_traditional=no fi -rm -f conftest* +rm -rf conftest* if test $ac_cv_prog_gcc_traditional = no; then @@ -6959,210 +7951,190 @@ Autoconf TCGETA _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then : + $EGREP "$ac_pattern" >/dev/null 2>&1 +then : ac_cv_prog_gcc_traditional=yes fi -rm -f conftest* +rm -rf conftest* fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 -$as_echo "$ac_cv_prog_gcc_traditional" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 +printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } if test $ac_cv_prog_gcc_traditional = yes; then CC="$CC -traditional" fi fi -{ $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 +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 + + + + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if test ${ac_cv_safe_to_define___extensions__+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#include -#include +# define __EXTENSIONS__ 1 + $ac_includes_default int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_safe_to_define___extensions__=yes +else $as_nop + ac_cv_safe_to_define___extensions__=no fi -rm -f conftest* - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 +printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } +if test ${ac_cv_should_define__xopen_source+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_should_define__xopen_source=no + if test $ac_cv_header_wchar_h = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : -else - ac_cv_header_stdc=no -fi -rm -f conftest* + #include + mbstate_t x; +int +main (void) +{ -fi + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : -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 +else $as_nop 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))) + #define _XOPEN_SOURCE 500 + #include + mbstate_t x; int -main () +main (void) { - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; + + ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_should_define__xopen_source=yes fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 +printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } -fi + printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h -fi + printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h -done + printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h + printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h + printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h - ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" -if test "x$ac_cv_header_minix_config_h" = xyes; then : - MINIX=yes -else - MINIX= -fi + printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h - if test "$MINIX" = yes; then + printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h -$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h -$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h -$as_echo "#define _MINIX 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h - fi + printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h + if test $ac_cv_header_minix_config_h = yes +then : + MINIX=yes + printf "%s\n" "#define _MINIX 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 -$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if ${ac_cv_safe_to_define___extensions__+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h -# define __EXTENSIONS__ 1 - $ac_includes_default -int -main () -{ + printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_safe_to_define___extensions__=yes -else - ac_cv_safe_to_define___extensions__=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else $as_nop + MINIX= fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 -$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } - test $ac_cv_safe_to_define___extensions__ = yes && - $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h - - $as_echo "#define _ALL_SOURCE 1" >>confdefs.h - - $as_echo "#define _GNU_SOURCE 1" >>confdefs.h - - $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h - - $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h + if test $ac_cv_safe_to_define___extensions__ = yes +then : + printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h +fi + if test $ac_cv_should_define__xopen_source = yes +then : + printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h +fi ## see note above ac_ext=c @@ -7170,40 +8142,36 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +printf %s "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + if test ${ac_cv_prog_CPP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + # Double quotes because $CC needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -7215,10 +8183,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -7228,7 +8197,8 @@ done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi @@ -7240,29 +8210,24 @@ else ac_cv_prog_CPP=$CPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +printf "%s\n" "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -7274,10 +8239,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -7287,11 +8253,12 @@ done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi @@ -7315,7 +8282,7 @@ /* end confdefs.h. */ int -main () +main (void) { ; @@ -7351,11 +8318,12 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else @@ -7363,11 +8331,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7378,11 +8350,11 @@ fi FC=$ac_cv_prog_FC if test -n "$FC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 -$as_echo "$FC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 +printf "%s\n" "$FC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7395,11 +8367,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_FC"; then ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. else @@ -7407,11 +8380,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_FC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7422,11 +8399,11 @@ fi ac_ct_FC=$ac_cv_prog_ac_ct_FC if test -n "$ac_ct_FC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 -$as_echo "$ac_ct_FC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 +printf "%s\n" "$ac_ct_FC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7438,8 +8415,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac FC=$ac_ct_FC @@ -7448,7 +8425,7 @@ # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -7458,7 +8435,7 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -7468,7 +8445,7 @@ cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done rm -f a.out @@ -7477,11 +8454,12 @@ # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 -$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } -if ${ac_cv_fc_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran" >&5 +printf %s "checking whether the compiler supports GNU Fortran... " >&6; } +if test ${ac_cv_fc_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ @@ -7490,43 +8468,48 @@ end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_fc_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 -$as_echo "$ac_cv_fc_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_fc_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_fc_compiler_gnu + ac_ext=$ac_save_ext -ac_test_FCFLAGS=${FCFLAGS+set} +ac_test_FCFLAGS=${FCFLAGS+y} ac_save_FCFLAGS=$FCFLAGS FCFLAGS= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 -$as_echo_n "checking whether $FC accepts -g... " >&6; } -if ${ac_cv_prog_fc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 +printf %s "checking whether $FC accepts -g... " >&6; } +if test ${ac_cv_prog_fc_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop FCFLAGS=-g cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : ac_cv_prog_fc_g=yes -else +else $as_nop ac_cv_prog_fc_g=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 -$as_echo "$ac_cv_prog_fc_g" >&6; } -if test "$ac_test_FCFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 +printf "%s\n" "$ac_cv_prog_fc_g" >&6; } +if test $ac_test_FCFLAGS; then FCFLAGS=$ac_save_FCFLAGS elif test $ac_cv_prog_fc_g = yes; then if test "x$ac_cv_fc_compiler_gnu" = xyes; then @@ -7562,6 +8545,12 @@ FFLAGS=${FCFLAGS} fi + + + + + + ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7572,15 +8561,16 @@ CXX=$CCC else if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -7588,11 +8578,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7603,11 +8597,11 @@ fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7616,15 +8610,16 @@ fi if test -z "$CXX"; then ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else @@ -7632,11 +8627,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7647,11 +8646,11 @@ fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 -$as_echo "$ac_ct_CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +printf "%s\n" "$ac_ct_CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7663,8 +8662,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX @@ -7674,7 +8673,7 @@ fi fi # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -7684,7 +8683,7 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -7694,20 +8693,21 @@ cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } -if ${ac_cv_cxx_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 +printf %s "checking whether the compiler supports GNU C++... " >&6; } +if test ${ac_cv_cxx_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -7717,29 +8717,33 @@ return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi -ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_test_CXXFLAGS=${CXXFLAGS+y} ac_save_CXXFLAGS=$CXXFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 -$as_echo_n "checking whether $CXX accepts -g... " >&6; } -if ${ac_cv_prog_cxx_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +printf %s "checking whether $CXX accepts -g... " >&6; } +if test ${ac_cv_prog_cxx_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no @@ -7748,57 +8752,60 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_prog_cxx_g=yes -else +else $as_nop CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : -else +else $as_nop ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 -$as_echo "$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } +if test $ac_test_CXXFLAGS; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then @@ -7813,6 +8820,100 @@ CXXFLAGS= fi fi +ac_prog_cxx_stdcxx=no +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 +printf %s "checking for $CXX option to enable C++11 features... " >&6; } +if test ${ac_cv_prog_cxx_11+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cxx_11=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx11_program +_ACEOF +for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx11" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX +fi + +if test "x$ac_cv_prog_cxx_cxx11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cxx_cxx11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx11" +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 + ac_prog_cxx_stdcxx=cxx11 +fi +fi +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 +printf %s "checking for $CXX option to enable C++98 features... " >&6; } +if test ${ac_cv_prog_cxx_98+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cxx_98=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx98_program +_ACEOF +for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx98=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx98" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX +fi + +if test "x$ac_cv_prog_cxx_cxx98" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cxx_cxx98" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx98" +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 + ac_prog_cxx_stdcxx=cxx98 +fi +fi + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7821,11 +8922,12 @@ ## check this actually compiles -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} ${CXXFLAGS} can compile C++ code" >&5 -$as_echo_n "checking whether ${CXX} ${CXXFLAGS} can compile C++ code... " >&6; } -if ${r_cv_prog_cxx+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} ${CXXFLAGS} can compile C++ code" >&5 +printf %s "checking whether ${CXX} ${CXXFLAGS} can compile C++ code... " >&6; } +if test ${r_cv_prog_cxx+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7841,12 +8943,13 @@ #include _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : r_cv_prog_cxx=yes -else +else $as_nop r_cv_prog_cxx=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXX="${r_save_CXX}" ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -7855,8 +8958,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_cxx" >&5 -$as_echo "$r_cv_prog_cxx" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_cxx" >&5 +printf "%s\n" "$r_cv_prog_cxx" >&6; } if test "${r_cv_prog_cxx}" = no; then CXX= CXXFLAGS= @@ -7871,36 +8974,32 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 -$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +printf %s "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then - if ${ac_cv_prog_CXXCPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" + if test ${ac_cv_prog_CXXCPP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + # Double quotes because $CXX needs to be expanded + for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -7912,10 +9011,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -7925,7 +9025,8 @@ done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi @@ -7937,29 +9038,24 @@ else ac_cv_prog_CXXCPP=$CXXCPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 -$as_echo "$CXXCPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +printf "%s\n" "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -7971,10 +9067,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -7984,11 +9081,12 @@ done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi @@ -8006,11 +9104,12 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5 -$as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; } -if ${r_cv_visibility_attribute+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5 +printf %s "checking whether __attribute__((visibility())) is supported... " >&6; } +if test ${r_cv_visibility_attribute+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.c <&5 (eval $ac_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then if grep '\.hidden.*foo' conftest.s >/dev/null; then r_cv_visibility_attribute=yes @@ -8032,41 +9131,43 @@ rm -f conftest.cs fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_visibility_attribute" >&5 -$as_echo "$r_cv_visibility_attribute" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_visibility_attribute" >&5 +printf "%s\n" "$r_cv_visibility_attribute" >&6; } if test $r_cv_visibility_attribute = yes; then -$as_echo "#define HAVE_VISIBILITY_ATTRIBUTE 1" >>confdefs.h +printf "%s\n" "#define HAVE_VISIBILITY_ATTRIBUTE 1" >>confdefs.h fi if test -z "${C_VISIBILITY+set}"; then r_save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -fvisibility=hidden" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fvisibility" >&5 -$as_echo_n "checking whether $CC accepts -fvisibility... " >&6; } -if ${r_cv_prog_cc_vis+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fvisibility" >&5 +printf %s "checking whether $CC accepts -fvisibility... " >&6; } +if test ${r_cv_prog_cc_vis+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : r_cv_prog_cc_vis=yes -else +else $as_nop r_cv_prog_cc_vis=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_cc_vis" >&5 -$as_echo "$r_cv_prog_cc_vis" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_cc_vis" >&5 +printf "%s\n" "$r_cv_prog_cc_vis" >&6; } CFLAGS=$r_save_CFLAGS if test "${r_cv_prog_cc_vis}" = yes; then if test "${r_cv_visibility_attribute}" = yes; then @@ -8090,31 +9191,33 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -fvisibility" >&5 -$as_echo_n "checking whether $CXX accepts -fvisibility... " >&6; } -if ${r_cv_prog_cxx_vis+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -fvisibility" >&5 +printf %s "checking whether $CXX accepts -fvisibility... " >&6; } +if test ${r_cv_prog_cxx_vis+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : r_cv_prog_cxx_vis=yes -else +else $as_nop r_cv_prog_cxx_vis=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_cxx_vis" >&5 -$as_echo "$r_cv_prog_cxx_vis" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_cxx_vis" >&5 +printf "%s\n" "$r_cv_prog_cxx_vis" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8143,25 +9246,27 @@ r_save_FCFLAGS=$FCFLAGS FCFLAGS="$FCFLAGS -fvisibility=hidden" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -fvisibility" >&5 -$as_echo_n "checking whether $FC accepts -fvisibility... " >&6; } -if ${r_cv_prog_fc_vis+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -fvisibility" >&5 +printf %s "checking whether $FC accepts -fvisibility... " >&6; } +if test ${r_cv_prog_fc_vis+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : r_cv_prog_fc_vis=yes -else +else $as_nop r_cv_prog_fc_vis=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_fc_vis" >&5 -$as_echo "$r_cv_prog_fc_vis" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_fc_vis" >&5 +printf "%s\n" "$r_cv_prog_fc_vis" >&6; } FCFLAGS=$r_save_FCFLAGS ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -8193,15 +9298,16 @@ ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_objc_compiler_gnu if test -n "$ac_tool_prefix"; then - for ac_prog in gcc objcc objc cc CC + for ac_prog in gcc objcc objc cc CC clang do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OBJC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OBJC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OBJC"; then ac_cv_prog_OBJC="$OBJC" # Let the user override the test. else @@ -8209,11 +9315,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8224,11 +9334,11 @@ fi OBJC=$ac_cv_prog_OBJC if test -n "$OBJC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 -$as_echo "$OBJC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 +printf "%s\n" "$OBJC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -8237,15 +9347,16 @@ fi if test -z "$OBJC"; then ac_ct_OBJC=$OBJC - for ac_prog in gcc objcc objc cc CC + for ac_prog in gcc objcc objc cc CC clang do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OBJC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OBJC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OBJC"; then ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. else @@ -8253,11 +9364,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8268,11 +9383,11 @@ fi ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC if test -n "$ac_ct_OBJC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 -$as_echo "$ac_ct_OBJC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 +printf "%s\n" "$ac_ct_OBJC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -8284,8 +9399,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJC=$ac_ct_OBJC @@ -8293,7 +9408,7 @@ fi # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -8303,7 +9418,7 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -8313,20 +9428,21 @@ cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 -$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } -if ${ac_cv_objc_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Objective C" >&5 +printf %s "checking whether the compiler supports GNU Objective C... " >&6; } +if test ${ac_cv_objc_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -8336,29 +9452,33 @@ return 0; } _ACEOF -if ac_fn_objc_try_compile "$LINENO"; then : +if ac_fn_objc_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_objc_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 -$as_echo "$ac_cv_objc_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_objc_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_objc_compiler_gnu + if test $ac_compiler_gnu = yes; then GOBJC=yes else GOBJC= fi -ac_test_OBJCFLAGS=${OBJCFLAGS+set} +ac_test_OBJCFLAGS=${OBJCFLAGS+y} ac_save_OBJCFLAGS=$OBJCFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 -$as_echo_n "checking whether $OBJC accepts -g... " >&6; } -if ${ac_cv_prog_objc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 +printf %s "checking whether $OBJC accepts -g... " >&6; } +if test ${ac_cv_prog_objc_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_objc_werror_flag=$ac_objc_werror_flag ac_objc_werror_flag=yes ac_cv_prog_objc_g=no @@ -8367,57 +9487,60 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_objc_try_compile "$LINENO"; then : +if ac_fn_objc_try_compile "$LINENO" +then : ac_cv_prog_objc_g=yes -else +else $as_nop OBJCFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_objc_try_compile "$LINENO"; then : +if ac_fn_objc_try_compile "$LINENO" +then : -else +else $as_nop ac_objc_werror_flag=$ac_save_objc_werror_flag OBJCFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_objc_try_compile "$LINENO"; then : +if ac_fn_objc_try_compile "$LINENO" +then : ac_cv_prog_objc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_objc_werror_flag=$ac_save_objc_werror_flag fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 -$as_echo "$ac_cv_prog_objc_g" >&6; } -if test "$ac_test_OBJCFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 +printf "%s\n" "$ac_cv_prog_objc_g" >&6; } +if test $ac_test_OBJCFLAGS; then OBJCFLAGS=$ac_save_OBJCFLAGS elif test $ac_cv_prog_objc_g = yes; then if test "$GOBJC" = yes; then @@ -8451,19 +9574,20 @@ /* end confdefs.h. */ int -main () +main (void) { id foo; ; return 0; } _ACEOF -if ac_fn_objc_try_compile "$LINENO"; then : +if ac_fn_objc_try_compile "$LINENO" +then : -else +else $as_nop OBJC='' fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -8474,13 +9598,14 @@ -if ${r_cv_OBJCXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${r_cv_OBJCXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "${OBJCXX}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${OBJCXX} can compile ObjC++" >&5 -$as_echo_n "checking whether ${OBJCXX} can compile ObjC++... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${OBJCXX} can compile ObjC++" >&5 +printf %s "checking whether ${OBJCXX} can compile ObjC++... " >&6; } cat << \EOF > conftest.mm #undef __OBJC2__ #include @@ -8504,13 +9629,13 @@ EOF echo "running: ${OBJCXX} -c conftest.mm ${CPPFLAGS} ${OBJCXXFLAGS}" >&5 if ${OBJCXX} -c conftest.mm ${CPPFLAGS} ${OBJCXXFLAGS} >&5 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } rm -Rf conftest conftest.* core OBJCXX=${OBJCXX} else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } rm -f conftest.mm OBJCXX='' fi @@ -8518,8 +9643,8 @@ fi # try the sequence $OBJCXX, $CXX, $OBJC if test -z "${OBJCXX}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} can compile ObjC++" >&5 -$as_echo_n "checking whether ${CXX} can compile ObjC++... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} can compile ObjC++" >&5 +printf %s "checking whether ${CXX} can compile ObjC++... " >&6; } cat << \EOF > conftest.mm #undef __OBJC2__ #include @@ -8543,17 +9668,17 @@ EOF echo "running: ${CXX} -c conftest.mm ${CPPFLAGS} ${OBJCXXFLAGS}" >&5 if ${CXX} -c conftest.mm ${CPPFLAGS} ${OBJCXXFLAGS} >&5 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } rm -Rf conftest conftest.* core OBJCXX=${CXX} else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } rm -f conftest.mm if test -z "${OBJC}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${OBJC} can compile ObjC++" >&5 -$as_echo_n "checking whether ${OBJC} can compile ObjC++... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${OBJC} can compile ObjC++" >&5 +printf %s "checking whether ${OBJC} can compile ObjC++... " >&6; } cat << \EOF > conftest.mm #undef __OBJC2__ #include @@ -8577,13 +9702,13 @@ EOF echo "running: ${OBJC} -c conftest.mm ${CPPFLAGS} ${OBJCXXFLAGS}" >&5 if ${OBJC} -c conftest.mm ${CPPFLAGS} ${OBJCXXFLAGS} >&5 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } rm -Rf conftest conftest.* core OBJCXX=${OBJC} else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } rm -f conftest.mm fi @@ -8598,14 +9723,14 @@ fi OBJCXX="${r_cv_OBJCXX}" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler" >&5 -$as_echo_n "checking for Objective C++ compiler... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler" >&5 +printf %s "checking for Objective C++ compiler... " >&6; } if test -z "${OBJCXX}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no working ObjC++ compiler found" >&5 -$as_echo "no working ObjC++ compiler found" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no working ObjC++ compiler found" >&5 +printf "%s\n" "no working ObjC++ compiler found" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OBJCXX}" >&5 -$as_echo "${OBJCXX}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${OBJCXX}" >&5 +printf "%s\n" "${OBJCXX}" >&6; } fi @@ -8618,7 +9743,8 @@ ## (Run this after selecting the Fortan compiler as AC_PROG_LIBTOOL ## checks for a Fortran 77 compiler and sets F77 accordingly.) # Check whether --enable-static was given. -if test "${enable_static+set}" = set; then : +if test ${enable_static+y} +then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; @@ -8636,7 +9762,7 @@ IFS=$lt_save_ifs ;; esac -else +else $as_nop enable_static=no fi @@ -8648,10 +9774,11 @@ + case `pwd` in *\ * | *\ *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac @@ -8671,6 +9798,7 @@ + ltmain=$ac_aux_dir/ltmain.sh # Backslashify metacharacters that are still active within @@ -8694,8 +9822,8 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -$as_echo_n "checking how to print strings... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +printf %s "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then @@ -8721,12 +9849,12 @@ } case $ECHO in - printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -$as_echo "printf" >&6; } ;; - print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -$as_echo "print -r" >&6; } ;; - *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -$as_echo "cat" >&6; } ;; + printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +printf "%s\n" "printf" >&6; } ;; + print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +printf "%s\n" "print -r" >&6; } ;; + *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +printf "%s\n" "cat" >&6; } ;; esac @@ -8742,11 +9870,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +printf %s "checking for a sed that does not truncate output... " >&6; } +if test ${ac_cv_path_SED+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" @@ -8760,10 +9889,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in sed gsed + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + ac_path_SED="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED @@ -8772,13 +9906,13 @@ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo '' >> "conftest.nl" + printf "%s\n" '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "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 @@ -8806,8 +9940,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed @@ -8824,11 +9958,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 -$as_echo_n "checking for fgrep... " >&6; } -if ${ac_cv_path_FGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +printf %s "checking for fgrep... " >&6; } +if test ${ac_cv_path_FGREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else @@ -8839,10 +9974,15 @@ 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 fgrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in fgrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP @@ -8851,13 +9991,13 @@ ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'FGREP' >> "conftest.nl" + printf "%s\n" 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "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 @@ -8886,8 +10026,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -$as_echo "$ac_cv_path_FGREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +printf "%s\n" "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" @@ -8912,17 +10052,18 @@ # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : +if test ${with_gnu_ld+y} +then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else +else $as_nop with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw @@ -8951,15 +10092,16 @@ ;; esac elif test yes = "$with_gnu_ld"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +printf %s "checking for GNU ld... " >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +printf %s "checking for non-GNU ld... " >&6; } fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${lt_cv_path_LD+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do @@ -8988,18 +10130,19 @@ LD=$lt_cv_path_LD if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +printf %s "checking if the linker ($LD) is GNU ld... " >&6; } +if test ${lt_cv_prog_gnu_ld+y} +then : + printf %s "(cached) " >&6 +else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 +printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld @@ -9022,11 +10165,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 -$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } -if ${lt_cv_path_NM+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if test ${lt_cv_path_NM+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM @@ -9076,8 +10220,8 @@ : ${lt_cv_path_NM=no} fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 -$as_echo "$lt_cv_path_NM" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +printf "%s\n" "$lt_cv_path_NM" >&6; } if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else @@ -9090,11 +10234,12 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DUMPBIN+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else @@ -9102,11 +10247,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9117,11 +10266,11 @@ fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 -$as_echo "$DUMPBIN" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +printf "%s\n" "$DUMPBIN" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9134,11 +10283,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DUMPBIN+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else @@ -9146,11 +10296,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9161,11 +10315,11 @@ fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 -$as_echo "$ac_ct_DUMPBIN" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +printf "%s\n" "$ac_ct_DUMPBIN" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9177,8 +10331,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN @@ -9206,11 +10360,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 -$as_echo_n "checking the name lister ($NM) interface... " >&6; } -if ${lt_cv_nm_interface+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +printf %s "checking the name lister ($NM) interface... " >&6; } +if test ${lt_cv_nm_interface+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) @@ -9226,15 +10381,16 @@ fi rm -f conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 -$as_echo "$lt_cv_nm_interface" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +printf "%s\n" "$lt_cv_nm_interface" >&6; } # find the maximum length of command line arguments -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 -$as_echo_n "checking the maximum length of command line arguments... " >&6; } -if ${lt_cv_sys_max_cmd_len+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +printf %s "checking the maximum length of command line arguments... " >&6; } +if test ${lt_cv_sys_max_cmd_len+y} +then : + printf %s "(cached) " >&6 +else $as_nop i=0 teststring=ABCD @@ -9361,11 +10517,11 @@ fi if test -n "$lt_cv_sys_max_cmd_len"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 -$as_echo "$lt_cv_sys_max_cmd_len" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 +printf "%s\n" "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len @@ -9409,11 +10565,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 -$as_echo_n "checking how to convert $build file names to $host format... " >&6; } -if ${lt_cv_to_host_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +printf %s "checking how to convert $build file names to $host format... " >&6; } +if test ${lt_cv_to_host_file_cmd+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $host in *-*-mingw* ) case $build in @@ -9449,18 +10606,19 @@ fi to_host_file_cmd=$lt_cv_to_host_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 -$as_echo "$lt_cv_to_host_file_cmd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 -$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } -if ${lt_cv_to_tool_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +printf %s "checking how to convert $build file names to toolchain format... " >&6; } +if test ${lt_cv_to_tool_file_cmd+y} +then : + printf %s "(cached) " >&6 +else $as_nop #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in @@ -9476,22 +10634,23 @@ fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 -$as_echo "$lt_cv_to_tool_file_cmd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 -$as_echo_n "checking for $LD option to reload object files... " >&6; } -if ${lt_cv_ld_reload_flag+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +printf %s "checking for $LD option to reload object files... " >&6; } +if test ${lt_cv_ld_reload_flag+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ld_reload_flag='-r' fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 -$as_echo "$lt_cv_ld_reload_flag" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; @@ -9524,11 +10683,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else @@ -9536,11 +10696,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9551,11 +10715,11 @@ fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +printf "%s\n" "$OBJDUMP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9564,11 +10728,12 @@ ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else @@ -9576,11 +10741,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9591,11 +10760,11 @@ fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +printf "%s\n" "$ac_ct_OBJDUMP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then @@ -9603,8 +10772,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP @@ -9623,11 +10792,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 -$as_echo_n "checking how to recognize dependent libraries... " >&6; } -if ${lt_cv_deplibs_check_method+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +printf %s "checking how to recognize dependent libraries... " >&6; } +if test ${lt_cv_deplibs_check_method+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' @@ -9823,8 +10993,8 @@ esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 -$as_echo "$lt_cv_deplibs_check_method" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no @@ -9868,11 +11038,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else @@ -9880,11 +11051,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9895,11 +11070,11 @@ fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -$as_echo "$DLLTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +printf "%s\n" "$DLLTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9908,11 +11083,12 @@ ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else @@ -9920,11 +11096,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9935,11 +11115,11 @@ fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -$as_echo "$ac_ct_DLLTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +printf "%s\n" "$ac_ct_DLLTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then @@ -9947,8 +11127,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL @@ -9968,11 +11148,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 -$as_echo_n "checking how to associate runtime and link libraries... " >&6; } -if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +printf %s "checking how to associate runtime and link libraries... " >&6; } +if test ${lt_cv_sharedlib_from_linklib_cmd+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in @@ -9995,8 +11176,8 @@ esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 -$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO @@ -10011,11 +11192,12 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else @@ -10023,11 +11205,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10038,11 +11224,11 @@ fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +printf "%s\n" "$AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10055,11 +11241,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else @@ -10067,11 +11254,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10082,11 +11273,11 @@ fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +printf "%s\n" "$ac_ct_AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10098,8 +11289,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR @@ -10119,30 +11310,32 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 -$as_echo_n "checking for archiver @FILE support... " >&6; } -if ${lt_cv_ar_at_file+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +printf %s "checking for archiver @FILE support... " >&6; } +if test ${lt_cv_ar_at_file+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. @@ -10150,7 +11343,7 @@ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ @@ -10159,11 +11352,11 @@ rm -f conftest.* libconftest.a fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 -$as_echo "$lt_cv_ar_at_file" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +printf "%s\n" "$lt_cv_ar_at_file" >&6; } if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= @@ -10180,11 +11373,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else @@ -10192,11 +11386,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10207,11 +11405,11 @@ fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +printf "%s\n" "$STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10220,11 +11418,12 @@ ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else @@ -10232,11 +11431,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10247,11 +11450,11 @@ fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +printf "%s\n" "$ac_ct_STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then @@ -10259,8 +11462,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP @@ -10279,11 +11482,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else @@ -10291,11 +11495,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10306,11 +11514,11 @@ fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +printf "%s\n" "$RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10319,11 +11527,12 @@ ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else @@ -10331,11 +11540,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10346,11 +11559,11 @@ fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +printf "%s\n" "$ac_ct_RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then @@ -10358,8 +11571,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB @@ -10423,11 +11636,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AWK+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else @@ -10435,11 +11649,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -10450,11 +11668,11 @@ fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +printf "%s\n" "$AWK" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10490,11 +11708,12 @@ # Check for command to grab the raw symbol name followed by C symbol from nm. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } -if ${lt_cv_sys_global_symbol_pipe+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +printf %s "checking command to parse $NM output from $compiler object... " >&6; } +if test ${lt_cv_sys_global_symbol_pipe+y} +then : + printf %s "(cached) " >&6 +else $as_nop # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] @@ -10646,14 +11865,14 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then @@ -10722,7 +11941,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then pipe_works=yes fi @@ -10757,11 +11976,11 @@ lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 -$as_echo "failed" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +printf "%s\n" "failed" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } fi # Response file support. @@ -10807,13 +12026,14 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 -$as_echo_n "checking for sysroot... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +printf %s "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. -if test "${with_sysroot+set}" = set; then : +if test ${with_sysroot+y} +then : withval=$with_sysroot; -else +else $as_nop with_sysroot=no fi @@ -10831,24 +12051,25 @@ no|'') ;; #( *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 -$as_echo "$with_sysroot" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 +printf "%s\n" "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 -$as_echo "${lt_sysroot:-no}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +printf "%s\n" "${lt_sysroot:-no}" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 -$as_echo_n "checking for a working dd... " >&6; } -if ${ac_cv_path_lt_DD+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 +printf %s "checking for a working dd... " >&6; } +if test ${ac_cv_path_lt_DD+y} +then : + printf %s "(cached) " >&6 +else $as_nop printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} @@ -10859,10 +12080,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in dd; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in dd + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" + ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ @@ -10882,15 +12108,16 @@ rm -f conftest.i conftest2.i conftest.out fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 -$as_echo "$ac_cv_path_lt_DD" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 +printf "%s\n" "$ac_cv_path_lt_DD" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 -$as_echo_n "checking how to truncate binary pipes... " >&6; } -if ${lt_cv_truncate_bin+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 +printf %s "checking how to truncate binary pipes... " >&6; } +if test ${lt_cv_truncate_bin+y} +then : + printf %s "(cached) " >&6 +else $as_nop printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= @@ -10901,8 +12128,8 @@ rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 -$as_echo "$lt_cv_truncate_bin" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 +printf "%s\n" "$lt_cv_truncate_bin" >&6; } @@ -10925,7 +12152,8 @@ } # Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then : +if test ${enable_libtool_lock+y} +then : enableval=$enable_libtool_lock; fi @@ -10941,7 +12169,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) @@ -10961,7 +12189,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in @@ -10999,7 +12227,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `/usr/bin/file conftest.$ac_objext` in @@ -11040,7 +12268,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) @@ -11103,11 +12331,12 @@ # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 -$as_echo_n "checking whether the C compiler needs -belf... " >&6; } -if ${lt_cv_cc_needs_belf+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +printf %s "checking whether the C compiler needs -belf... " >&6; } +if test ${lt_cv_cc_needs_belf+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -11118,19 +12347,20 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_cc_needs_belf=yes -else +else $as_nop lt_cv_cc_needs_belf=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -11139,8 +12369,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 -$as_echo "$lt_cv_cc_needs_belf" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS @@ -11153,7 +12383,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) @@ -11190,11 +12420,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_MANIFEST_TOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else @@ -11202,11 +12433,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11217,11 +12452,11 @@ fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 -$as_echo "$MANIFEST_TOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +printf "%s\n" "$MANIFEST_TOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -11230,11 +12465,12 @@ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else @@ -11242,11 +12478,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11257,11 +12497,11 @@ fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 -$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then @@ -11269,8 +12509,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL @@ -11280,11 +12520,12 @@ fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 -$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } -if ${lt_cv_path_mainfest_tool+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if test ${lt_cv_path_mainfest_tool+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out @@ -11294,8 +12535,8 @@ fi rm -f conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 -$as_echo "$lt_cv_path_mainfest_tool" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi @@ -11310,11 +12551,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DSYMUTIL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else @@ -11322,11 +12564,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11337,11 +12583,11 @@ fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 -$as_echo "$DSYMUTIL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +printf "%s\n" "$DSYMUTIL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -11350,11 +12596,12 @@ ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else @@ -11362,11 +12609,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11377,11 +12628,11 @@ fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 -$as_echo "$ac_ct_DSYMUTIL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then @@ -11389,8 +12640,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL @@ -11402,11 +12653,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_NMEDIT+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else @@ -11414,11 +12666,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11429,11 +12685,11 @@ fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 -$as_echo "$NMEDIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +printf "%s\n" "$NMEDIT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -11442,11 +12698,12 @@ ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_NMEDIT+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else @@ -11454,11 +12711,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11469,11 +12730,11 @@ fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 -$as_echo "$ac_ct_NMEDIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +printf "%s\n" "$ac_ct_NMEDIT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then @@ -11481,8 +12742,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT @@ -11494,11 +12755,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_LIPO+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else @@ -11506,11 +12768,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11521,11 +12787,11 @@ fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 -$as_echo "$LIPO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +printf "%s\n" "$LIPO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -11534,11 +12800,12 @@ ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_LIPO+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else @@ -11546,11 +12813,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11561,11 +12832,11 @@ fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 -$as_echo "$ac_ct_LIPO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +printf "%s\n" "$ac_ct_LIPO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then @@ -11573,8 +12844,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO @@ -11586,11 +12857,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else @@ -11598,11 +12870,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11613,11 +12889,11 @@ fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 -$as_echo "$OTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +printf "%s\n" "$OTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -11626,11 +12902,12 @@ ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else @@ -11638,11 +12915,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11653,11 +12934,11 @@ fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 -$as_echo "$ac_ct_OTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +printf "%s\n" "$ac_ct_OTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then @@ -11665,8 +12946,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL @@ -11678,11 +12959,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OTOOL64+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else @@ -11690,11 +12972,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11705,11 +12991,11 @@ fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 -$as_echo "$OTOOL64" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +printf "%s\n" "$OTOOL64" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -11718,11 +13004,12 @@ ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OTOOL64+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else @@ -11730,11 +13017,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -11745,11 +13036,11 @@ fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 -$as_echo "$ac_ct_OTOOL64" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +printf "%s\n" "$ac_ct_OTOOL64" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then @@ -11757,8 +13048,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 @@ -11793,11 +13084,12 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 -$as_echo_n "checking for -single_module linker flag... " >&6; } -if ${lt_cv_apple_cc_single_mod+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +printf %s "checking for -single_module linker flag... " >&6; } +if test ${lt_cv_apple_cc_single_mod+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override @@ -11826,14 +13118,15 @@ rm -f conftest.* fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 -$as_echo "$lt_cv_apple_cc_single_mod" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } -if ${lt_cv_ld_exported_symbols_list+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +printf %s "checking for -exported_symbols_list linker flag... " >&6; } +if test ${lt_cv_ld_exported_symbols_list+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym @@ -11842,31 +13135,33 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_ld_exported_symbols_list=yes -else +else $as_nop lt_cv_ld_exported_symbols_list=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 -$as_echo_n "checking for -force_load linker flag... " >&6; } -if ${lt_cv_ld_force_load+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +printf %s "checking for -force_load linker flag... " >&6; } +if test ${lt_cv_ld_force_load+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} @@ -11894,8 +13189,8 @@ rm -rf conftest.dSYM fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 -$as_echo "$lt_cv_ld_force_load" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +printf "%s\n" "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; @@ -11966,19 +13261,14 @@ esac } -for ac_header in dlfcn.h -do : - ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " -if test "x$ac_cv_header_dlfcn_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF +if test "x$ac_cv_header_dlfcn_h" = xyes +then : + printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi -done - func_stripname_cnf () @@ -12005,7 +13295,8 @@ # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then : +if test ${enable_shared+y} +then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; @@ -12023,7 +13314,7 @@ IFS=$lt_save_ifs ;; esac -else +else $as_nop enable_shared=yes fi @@ -12038,7 +13329,8 @@ # Check whether --with-pic was given. -if test "${with_pic+set}" = set; then : +if test ${with_pic+y} +then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; @@ -12055,7 +13347,7 @@ IFS=$lt_save_ifs ;; esac -else +else $as_nop pic_mode=default fi @@ -12067,7 +13359,8 @@ # Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then : +if test ${enable_fast_install+y} +then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; @@ -12085,7 +13378,7 @@ IFS=$lt_save_ifs ;; esac -else +else $as_nop enable_fast_install=yes fi @@ -12099,11 +13392,12 @@ shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 -$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 +printf %s "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. -if test "${with_aix_soname+set}" = set; then : +if test ${with_aix_soname+y} +then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; @@ -12112,18 +13406,19 @@ ;; esac lt_cv_with_aix_soname=$with_aix_soname -else - if ${lt_cv_with_aix_soname+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + if test ${lt_cv_with_aix_soname+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 -$as_echo "$with_aix_soname" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 +printf "%s\n" "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', @@ -12205,11 +13500,12 @@ setopt NO_GLOB_SUBST fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 -$as_echo_n "checking for objdir... " >&6; } -if ${lt_cv_objdir+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +printf %s "checking for objdir... " >&6; } +if test ${lt_cv_objdir+y} +then : + printf %s "(cached) " >&6 +else $as_nop rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then @@ -12220,17 +13516,15 @@ fi rmdir .libs 2>/dev/null fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 -$as_echo "$lt_cv_objdir" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +printf "%s\n" "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir -cat >>confdefs.h <<_ACEOF -#define LT_OBJDIR "$lt_cv_objdir/" -_ACEOF +printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h @@ -12276,11 +13570,12 @@ case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +printf %s "checking for ${ac_tool_prefix}file... " >&6; } +if test ${lt_cv_path_MAGIC_CMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. @@ -12329,11 +13624,11 @@ MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +printf "%s\n" "$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -12342,11 +13637,12 @@ if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 -$as_echo_n "checking for file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +printf %s "checking for file... " >&6; } +if test ${lt_cv_path_MAGIC_CMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. @@ -12395,11 +13691,11 @@ MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +printf "%s\n" "$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -12480,11 +13776,12 @@ lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } -if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if test ${lt_cv_prog_compiler_rtti_exceptions+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext @@ -12515,8 +13812,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" @@ -12873,26 +14170,28 @@ ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -if ${lt_cv_prog_compiler_pic+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +printf %s "checking for $compiler option to produce PIC... " >&6; } +if test ${lt_cv_prog_compiler_pic+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 -$as_echo "$lt_cv_prog_compiler_pic" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } -if ${lt_cv_prog_compiler_pic_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if test ${lt_cv_prog_compiler_pic_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext @@ -12923,8 +14222,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in @@ -12952,11 +14251,12 @@ # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test ${lt_cv_prog_compiler_static_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" @@ -12980,8 +14280,8 @@ LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 -$as_echo "$lt_cv_prog_compiler_static_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : @@ -12995,11 +14295,12 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest @@ -13042,19 +14343,20 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest @@ -13097,8 +14399,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -13106,19 +14408,19 @@ hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +printf %s "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else @@ -13130,8 +14432,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= @@ -13686,21 +14988,23 @@ if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath_+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -13715,7 +15019,7 @@ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib @@ -13739,21 +15043,23 @@ if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath_+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -13768,7 +15074,7 @@ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib @@ -14019,11 +15325,12 @@ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 -$as_echo_n "checking if $CC understands -b... " >&6; } -if ${lt_cv_prog_compiler__b+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +printf %s "checking if $CC understands -b... " >&6; } +if test ${lt_cv_prog_compiler__b+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" @@ -14047,8 +15354,8 @@ LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 -$as_echo "$lt_cv_prog_compiler__b" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' @@ -14088,28 +15395,30 @@ # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 -$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } -if ${lt_cv_irix_exported_symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if test ${lt_cv_irix_exported_symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_irix_exported_symbol=yes -else +else $as_nop lt_cv_irix_exported_symbol=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 -$as_echo "$lt_cv_irix_exported_symbol" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi @@ -14389,8 +15698,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 -$as_echo "$ld_shlibs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +printf "%s\n" "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld @@ -14426,18 +15735,19 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } -if ${lt_cv_archive_cmds_need_lc+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +printf %s "checking whether -lc should be explicitly linked in... " >&6; } +if test ${lt_cv_archive_cmds_need_lc+y} +then : + printf %s "(cached) " >&6 +else $as_nop $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest @@ -14455,7 +15765,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no @@ -14469,8 +15779,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac @@ -14629,8 +15939,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +printf %s "checking dynamic linker characteristics... " >&6; } if test yes = "$GCC"; then case $host_os in @@ -15191,9 +16501,10 @@ shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH - if ${lt_cv_shlibpath_overrides_runpath+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_shlibpath_overrides_runpath+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir @@ -15203,19 +16514,21 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : +if ac_fn_c_try_link "$LINENO" +then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null +then : lt_cv_shlibpath_overrides_runpath=yes fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir @@ -15447,8 +16760,8 @@ dynamic_linker=no ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +printf "%s\n" "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" @@ -15569,8 +16882,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || @@ -15594,8 +16907,8 @@ # directories. hardcode_action=unsupported fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 -$as_echo "$hardcode_action" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +printf "%s\n" "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then @@ -15639,11 +16952,12 @@ darwin*) # if libdl is installed we need to link against it - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15652,32 +16966,31 @@ /* 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 (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else +else $as_nop lt_cv_dlopen=dyld lt_cv_dlopen_libs= @@ -15697,14 +17010,16 @@ *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" -if test "x$ac_cv_func_shl_load" = xyes; then : +if test "x$ac_cv_func_shl_load" = xyes +then : lt_cv_dlopen=shl_load -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 -$as_echo_n "checking for shl_load in -ldld... " >&6; } -if ${ac_cv_lib_dld_shl_load+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +printf %s "checking for shl_load in -ldld... " >&6; } +if test ${ac_cv_lib_dld_shl_load+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15713,41 +17028,42 @@ /* 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 shl_load (); int -main () +main (void) { return shl_load (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dld_shl_load=yes -else +else $as_nop ac_cv_lib_dld_shl_load=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes +then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld -else +else $as_nop ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes; then : +if test "x$ac_cv_func_dlopen" = xyes +then : lt_cv_dlopen=dlopen -else - { $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 +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15756,37 +17072,37 @@ /* 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 (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 -$as_echo_n "checking for dlopen in -lsvld... " >&6; } -if ${ac_cv_lib_svld_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +printf %s "checking for dlopen in -lsvld... " >&6; } +if test ${ac_cv_lib_svld_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15795,37 +17111,37 @@ /* 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 (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_svld_dlopen=yes -else +else $as_nop ac_cv_lib_svld_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 -$as_echo "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes +then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 -$as_echo_n "checking for dld_link in -ldld... " >&6; } -if ${ac_cv_lib_dld_dld_link+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +printf %s "checking for dld_link in -ldld... " >&6; } +if test ${ac_cv_lib_dld_dld_link+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -15834,30 +17150,29 @@ /* 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 dld_link (); int -main () +main (void) { return dld_link (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dld_dld_link=yes -else +else $as_nop ac_cv_lib_dld_dld_link=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 -$as_echo "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes +then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi @@ -15896,11 +17211,12 @@ save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 -$as_echo_n "checking whether a program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +printf %s "checking whether a program can dlopen itself... " >&6; } +if test ${lt_cv_dlopen_self+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else @@ -15979,7 +17295,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? @@ -15997,16 +17313,17 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 -$as_echo "$lt_cv_dlopen_self" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +printf "%s\n" "$lt_cv_dlopen_self" >&6; } if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self_static+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +printf %s "checking whether a statically linked program can dlopen itself... " >&6; } +if test ${lt_cv_dlopen_self_static+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else @@ -16085,7 +17402,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? @@ -16103,8 +17420,8 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 -$as_echo "$lt_cv_dlopen_self_static" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS=$save_CPPFLAGS @@ -16142,13 +17459,13 @@ striplib= old_striplib= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 -$as_echo_n "checking whether stripping libraries is possible... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +printf %s "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in @@ -16156,16 +17473,16 @@ if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;; esac fi @@ -16182,13 +17499,13 @@ # Report what library types will actually be built - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 -$as_echo_n "checking if libtool supports shared libraries... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 -$as_echo "$can_build_shared" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +printf %s "checking if libtool supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +printf "%s\n" "$can_build_shared" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -$as_echo_n "checking whether to build shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +printf %s "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and @@ -16212,15 +17529,15 @@ fi ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +printf "%s\n" "$enable_shared" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -$as_echo_n "checking whether to build static libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +printf %s "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 -$as_echo "$enable_static" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +printf "%s\n" "$enable_static" >&6; } @@ -16242,36 +17559,32 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 -$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +printf %s "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then - if ${ac_cv_prog_CXXCPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" + if test ${ac_cv_prog_CXXCPP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + # Double quotes because $CXX needs to be expanded + for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -16283,10 +17596,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -16296,7 +17610,8 @@ done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi @@ -16308,29 +17623,24 @@ else ac_cv_prog_CXXCPP=$CXXCPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 -$as_echo "$CXXCPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +printf "%s\n" "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -16342,10 +17652,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -16355,11 +17666,12 @@ done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi @@ -16495,17 +17807,18 @@ # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : +if test ${with_gnu_ld+y} +then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else +else $as_nop with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw @@ -16534,15 +17847,16 @@ ;; esac elif test yes = "$with_gnu_ld"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +printf %s "checking for GNU ld... " >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +printf %s "checking for non-GNU ld... " >&6; } fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${lt_cv_path_LD+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do @@ -16571,18 +17885,19 @@ LD=$lt_cv_path_LD if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +printf %s "checking if the linker ($LD) is GNU ld... " >&6; } +if test ${lt_cv_prog_gnu_ld+y} +then : + printf %s "(cached) " >&6 +else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 +printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld @@ -16648,8 +17963,8 @@ fi # PORTME: fill in a description of your system's C++ link characteristics - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) @@ -16787,21 +18102,23 @@ if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath__CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath__CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -16816,7 +18133,7 @@ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib @@ -16841,21 +18158,23 @@ if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath__CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath__CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -16870,7 +18189,7 @@ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib @@ -17721,8 +19040,8 @@ ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 -$as_echo "$ld_shlibs_CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +printf "%s\n" "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no GCC_CXX=$GXX @@ -17760,7 +19079,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. @@ -18241,26 +19560,28 @@ ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -if ${lt_cv_prog_compiler_pic_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +printf %s "checking for $compiler option to produce PIC... " >&6; } +if test ${lt_cv_prog_compiler_pic_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } -if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if test ${lt_cv_prog_compiler_pic_works_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext @@ -18291,8 +19612,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then case $lt_prog_compiler_pic_CXX in @@ -18314,11 +19635,12 @@ # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test ${lt_cv_prog_compiler_static_works_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" @@ -18342,8 +19664,8 @@ LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then : @@ -18354,11 +19676,12 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest @@ -18401,16 +19724,17 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest @@ -18453,8 +19777,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -18462,19 +19786,19 @@ hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +printf %s "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else @@ -18483,8 +19807,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' @@ -18523,8 +19847,8 @@ ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 -$as_echo "$ld_shlibs_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +printf "%s\n" "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld @@ -18551,18 +19875,19 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } -if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +printf %s "checking whether -lc should be explicitly linked in... " >&6; } +if test ${lt_cv_archive_cmds_need_lc_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest @@ -18580,7 +19905,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_CXX=no @@ -18594,8 +19919,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac @@ -18664,8 +19989,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +printf %s "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' @@ -19153,9 +20478,10 @@ shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH - if ${lt_cv_shlibpath_overrides_runpath+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_shlibpath_overrides_runpath+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir @@ -19165,19 +20491,21 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : +if ac_fn_cxx_try_link "$LINENO" +then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null +then : lt_cv_shlibpath_overrides_runpath=yes fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir @@ -19409,8 +20737,8 @@ dynamic_linker=no ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +printf "%s\n" "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" @@ -19474,8 +20802,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || @@ -19499,8 +20827,8 @@ # directories. hardcode_action_CXX=unsupported fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 -$as_echo "$hardcode_action_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +printf "%s\n" "$hardcode_action_CXX" >&6; } if test relink = "$hardcode_action_CXX" || test yes = "$inherit_rpath_CXX"; then @@ -19645,13 +20973,13 @@ if test -n "$compiler"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 -$as_echo_n "checking if libtool supports shared libraries... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 -$as_echo "$can_build_shared" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +printf %s "checking if libtool supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +printf "%s\n" "$can_build_shared" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -$as_echo_n "checking whether to build shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +printf %s "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and @@ -19674,15 +21002,15 @@ fi ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +printf "%s\n" "$enable_shared" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -$as_echo_n "checking whether to build static libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +printf %s "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 -$as_echo "$enable_static" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +printf "%s\n" "$enable_static" >&6; } GCC_FC=$ac_cv_fc_compiler_gnu LD_FC=$LD @@ -19718,7 +21046,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. @@ -20178,26 +21506,28 @@ ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -if ${lt_cv_prog_compiler_pic_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +printf %s "checking for $compiler option to produce PIC... " >&6; } +if test ${lt_cv_prog_compiler_pic_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5 -$as_echo "$lt_cv_prog_compiler_pic_FC" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic_FC" >&6; } lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_FC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } -if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 +printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } +if test ${lt_cv_prog_compiler_pic_works_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic_works_FC=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext @@ -20228,8 +21558,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic_works_FC" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then case $lt_prog_compiler_pic_FC in @@ -20251,11 +21581,12 @@ # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test ${lt_cv_prog_compiler_static_works_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_static_works_FC=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" @@ -20279,8 +21610,8 @@ LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 -$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 +printf "%s\n" "$lt_cv_prog_compiler_static_works_FC" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_FC"; then : @@ -20291,11 +21622,12 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o_FC=no $RM -r conftest 2>/dev/null mkdir conftest @@ -20338,16 +21670,17 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 -$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o_FC" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o_FC=no $RM -r conftest 2>/dev/null mkdir conftest @@ -20390,8 +21723,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 -$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o_FC" >&6; } @@ -20399,19 +21732,19 @@ hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +printf %s "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else @@ -20420,8 +21753,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag_FC= @@ -20976,15 +22309,17 @@ if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath__FC+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath__FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -20999,7 +22334,7 @@ lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__FC"; then lt_cv_aix_libpath__FC=/usr/lib:/lib @@ -21023,15 +22358,17 @@ if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath__FC+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath__FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -21046,7 +22383,7 @@ lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__FC"; then lt_cv_aix_libpath__FC=/usr/lib:/lib @@ -21327,11 +22664,12 @@ # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 -$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } -if ${lt_cv_irix_exported_symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if test ${lt_cv_irix_exported_symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat > conftest.$ac_ext <<_ACEOF @@ -21339,17 +22677,18 @@ subroutine foo end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : lt_cv_irix_exported_symbol=yes -else +else $as_nop lt_cv_irix_exported_symbol=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 -$as_echo "$lt_cv_irix_exported_symbol" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi @@ -21629,8 +22968,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 -$as_echo "$ld_shlibs_FC" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 +printf "%s\n" "$ld_shlibs_FC" >&6; } test no = "$ld_shlibs_FC" && can_build_shared=no with_gnu_ld_FC=$with_gnu_ld @@ -21657,18 +22996,19 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } -if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +printf %s "checking whether -lc should be explicitly linked in... " >&6; } +if test ${lt_cv_archive_cmds_need_lc_FC+y} +then : + printf %s "(cached) " >&6 +else $as_nop $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest @@ -21686,7 +23026,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_FC=no @@ -21700,8 +23040,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 +printf "%s\n" "$lt_cv_archive_cmds_need_lc_FC" >&6; } archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC ;; esac @@ -21770,8 +23110,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +printf %s "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' @@ -22259,9 +23599,10 @@ shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH - if ${lt_cv_shlibpath_overrides_runpath+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_shlibpath_overrides_runpath+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir @@ -22272,12 +23613,14 @@ end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : +if ac_fn_fc_try_link "$LINENO" +then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null +then : lt_cv_shlibpath_overrides_runpath=yes fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir @@ -22509,8 +23852,8 @@ dynamic_linker=no ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +printf "%s\n" "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" @@ -22574,8 +23917,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action_FC= if test -n "$hardcode_libdir_flag_spec_FC" || test -n "$runpath_var_FC" || @@ -22599,8 +23942,8 @@ # directories. hardcode_action_FC=unsupported fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 -$as_echo "$hardcode_action_FC" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 +printf "%s\n" "$hardcode_action_FC" >&6; } if test relink = "$hardcode_action_FC" || test yes = "$inherit_rpath_FC"; then @@ -22729,11 +24072,12 @@ # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 -$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } -if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 +printf %s "checking for _mwvalidcheckl in -lmw... " >&6; } +if test ${ac_cv_lib_mw__mwvalidcheckl+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lmw $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -22742,38 +24086,38 @@ /* 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 _mwvalidcheckl (); int -main () +main (void) { return _mwvalidcheckl (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_mw__mwvalidcheckl=yes -else +else $as_nop ac_cv_lib_mw__mwvalidcheckl=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 -$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } -if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 +printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; } +if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes +then : LIBM=-lmw fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 -$as_echo_n "checking for cos in -lm... " >&6; } -if ${ac_cv_lib_m_cos+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 +printf %s "checking for cos in -lm... " >&6; } +if test ${ac_cv_lib_m_cos+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -22782,40 +24126,40 @@ /* 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 (); int -main () +main (void) { return cos (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_m_cos=yes -else +else $as_nop ac_cv_lib_m_cos=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 -$as_echo "$ac_cv_lib_m_cos" >&6; } -if test "x$ac_cv_lib_m_cos" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 +printf "%s\n" "$ac_cv_lib_m_cos" >&6; } +if test "x$ac_cv_lib_m_cos" = xyes +then : LIBM="$LIBM -lm" fi ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 -$as_echo_n "checking for cos in -lm... " >&6; } -if ${ac_cv_lib_m_cos+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 +printf %s "checking for cos in -lm... " >&6; } +if test ${ac_cv_lib_m_cos+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -22824,30 +24168,29 @@ /* 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 (); int -main () +main (void) { return cos (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_m_cos=yes -else +else $as_nop ac_cv_lib_m_cos=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 -$as_echo "$ac_cv_lib_m_cos" >&6; } -if test "x$ac_cv_lib_m_cos" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 +printf "%s\n" "$ac_cv_lib_m_cos" >&6; } +if test "x$ac_cv_lib_m_cos" = xyes +then : LIBM=-lm fi @@ -22857,13 +24200,15 @@ ## -## AC_CHECK_LIBM computes LIBM but does not add to LIBS, hence we do +## LT_LIB_M computes LIBM but does not add to LIBS, hence we do ## the following as well. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 -$as_echo_n "checking for sin in -lm... " >&6; } -if ${ac_cv_lib_m_sin+:} false; then : - $as_echo_n "(cached) " >&6 -else +## This gives: 'sin' is a builtin with type 'double (double)' +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 +printf %s "checking for sin in -lm... " >&6; } +if test ${ac_cv_lib_m_sin+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -22872,43 +24217,41 @@ /* 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 sin (); int -main () +main (void) { return sin (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_m_sin=yes -else +else $as_nop ac_cv_lib_m_sin=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 -$as_echo "$ac_cv_lib_m_sin" >&6; } -if test "x$ac_cv_lib_m_sin" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBM 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 +printf "%s\n" "$ac_cv_lib_m_sin" >&6; } +if test "x$ac_cv_lib_m_sin" = xyes +then : + printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h LIBS="-lm $LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -22917,33 +24260,30 @@ /* 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 (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBDL 1 -_ACEOF +{ 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 : + printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h LIBS="-ldl $LIBS" @@ -22952,28 +24292,29 @@ ## Readline. if test "${use_readline}" = yes; then - for ac_header in readline/history.h readline/readline.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" +if test "x$ac_cv_header_readline_history_h" = xyes +then : + printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" +if test "x$ac_cv_header_readline_readline_h" = xyes +then : + printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h -done +fi r_save_LIBS="${LIBS}" LIBS= ## don't use the cached value as we need to rebuild LIBS unset ac_cv_lib_readline_rl_callback_read_char - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5 -$as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; } -if ${ac_cv_lib_readline_rl_callback_read_char+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5 +printf %s "checking for rl_callback_read_char in -lreadline... " >&6; } +if test ${ac_cv_lib_readline_rl_callback_read_char+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -22982,33 +24323,30 @@ /* 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 rl_callback_read_char (); int -main () +main (void) { return rl_callback_read_char (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_readline_rl_callback_read_char=yes -else +else $as_nop ac_cv_lib_readline_rl_callback_read_char=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5 -$as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; } -if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBREADLINE 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5 +printf "%s\n" "$ac_cv_lib_readline_rl_callback_read_char" >&6; } +if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes +then : + printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h LIBS="-lreadline $LIBS" @@ -23018,11 +24356,12 @@ if test "${use_readline}" = no; then ## only need ncurses if libreadline is not statically linked against it unset ac_cv_lib_readline_rl_callback_read_char - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5 -$as_echo_n "checking for main in -lncurses... " >&6; } -if ${ac_cv_lib_ncurses_main+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5 +printf %s "checking for main in -lncurses... " >&6; } +if test ${ac_cv_lib_ncurses_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lncurses $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -23030,37 +24369,38 @@ int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_ncurses_main=yes -else +else $as_nop ac_cv_lib_ncurses_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5 -$as_echo "$ac_cv_lib_ncurses_main" >&6; } -if test "x$ac_cv_lib_ncurses_main" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBNCURSES 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5 +printf "%s\n" "$ac_cv_lib_ncurses_main" >&6; } +if test "x$ac_cv_lib_ncurses_main" = xyes +then : + printf "%s\n" "#define HAVE_LIBNCURSES 1" >>confdefs.h LIBS="-lncurses $LIBS" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltermcap" >&5 -$as_echo_n "checking for main in -ltermcap... " >&6; } -if ${ac_cv_lib_termcap_main+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -ltermcap" >&5 +printf %s "checking for main in -ltermcap... " >&6; } +if test ${ac_cv_lib_termcap_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ltermcap $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -23068,37 +24408,38 @@ int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_termcap_main=yes -else +else $as_nop ac_cv_lib_termcap_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_main" >&5 -$as_echo "$ac_cv_lib_termcap_main" >&6; } -if test "x$ac_cv_lib_termcap_main" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBTERMCAP 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_main" >&5 +printf "%s\n" "$ac_cv_lib_termcap_main" >&6; } +if test "x$ac_cv_lib_termcap_main" = xyes +then : + printf "%s\n" "#define HAVE_LIBTERMCAP 1" >>confdefs.h LIBS="-ltermcap $LIBS" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltermlib" >&5 -$as_echo_n "checking for main in -ltermlib... " >&6; } -if ${ac_cv_lib_termlib_main+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -ltermlib" >&5 +printf %s "checking for main in -ltermlib... " >&6; } +if test ${ac_cv_lib_termlib_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ltermlib $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -23106,28 +24447,28 @@ int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_termlib_main=yes -else +else $as_nop ac_cv_lib_termlib_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_main" >&5 -$as_echo "$ac_cv_lib_termlib_main" >&6; } -if test "x$ac_cv_lib_termlib_main" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBTERMLIB 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_main" >&5 +printf "%s\n" "$ac_cv_lib_termlib_main" >&6; } +if test "x$ac_cv_lib_termlib_main" = xyes +then : + printf "%s\n" "#define HAVE_LIBTERMLIB 1" >>confdefs.h LIBS="-ltermlib $LIBS" @@ -23137,11 +24478,12 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5 -$as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; } -if ${ac_cv_lib_readline_rl_callback_read_char+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5 +printf %s "checking for rl_callback_read_char in -lreadline... " >&6; } +if test ${ac_cv_lib_readline_rl_callback_read_char+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -23150,33 +24492,30 @@ /* 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 rl_callback_read_char (); int -main () +main (void) { return rl_callback_read_char (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_readline_rl_callback_read_char=yes -else +else $as_nop ac_cv_lib_readline_rl_callback_read_char=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5 -$as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; } -if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBREADLINE 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5 +printf "%s\n" "$ac_cv_lib_readline_rl_callback_read_char" >&6; } +if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes +then : + printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h LIBS="-lreadline $LIBS" @@ -23190,30 +24529,35 @@ if test "${use_readline}" = no; then as_fn_error $? "--with-readline=yes (default) and headers/libs are not available" "$LINENO" 5 else - ## the NetBSD emulation supplied by macOS does not have these - for ac_func in history_truncate_file tilde_expand_word -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 `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ## the NetBSD emulation (libedit) supplied by macOS did not have these, + ## but it does now (10.13) have history_truncate_file + ## it has tilde_expand, which is documented to be like tilde_expand_word + ## 'does tilde expansion of strings of type ``~user/foo'' + ac_fn_c_check_func "$LINENO" "history_truncate_file" "ac_cv_func_history_truncate_file" +if test "x$ac_cv_func_history_truncate_file" = xyes +then : + printf "%s\n" "#define HAVE_HISTORY_TRUNCATE_FILE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "tilde_expand_word" "ac_cv_func_tilde_expand_word" +if test "x$ac_cv_func_tilde_expand_word" = xyes +then : + printf "%s\n" "#define HAVE_TILDE_EXPAND_WORD 1" >>confdefs.h fi -done - ## rl_completion_matches is >= 4.2. - ## rl_resize_terminal is >= 4.0 ane we use it only for >= 6.3. - ## rl_callback_sigcleanup is in pre-releases for 7.0, not yet used. - for ac_func in rl_callback_sigcleanup rl_completion_matches rl_resize_terminal rl_sort_completion_matches -do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else + ## rl_completion_matches is >= 4.2 (emulation has it) + ## rl_resize_terminal is >= 4.0 but we use it only for >= 6.3. + ## rl_sort_completion_matches is >= 6.0 (not in emulation) + for ac_func in rl_completion_matches rl_resize_terminal rl_sort_completion_matches +do +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -23221,7 +24565,7 @@ int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -23231,20 +24575,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -23258,133 +24604,22 @@ ### * Checks for header files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h - -fi - ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do - as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 -$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } -if eval \${$as_ac_Header+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 +printf %s "checking for $ac_hdr that defines DIR... " >&6; } +if eval test \${$as_ac_Header+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include <$ac_hdr> int -main () +main (void) { if ((DIR *) 0) return 0; @@ -23392,19 +24627,21 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$as_ac_Header=yes" -else +else $as_nop eval "$as_ac_Header=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$as_ac_Header - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Header"\" = x"yes" +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF ac_header_dirent=$ac_hdr; break @@ -23413,11 +24650,12 @@ done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 -$as_echo_n "checking for library containing opendir... " >&6; } -if ${ac_cv_search_opendir+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 +printf %s "checking for library containing opendir... " >&6; } +if test ${ac_cv_search_opendir+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -23425,56 +24663,59 @@ /* 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 opendir (); int -main () +main (void) { return opendir (); ; return 0; } _ACEOF -for ac_lib in '' dir; do +for ac_lib in '' dir +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_opendir=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_opendir+:} false; then : + if test ${ac_cv_search_opendir+y} +then : break fi done -if ${ac_cv_search_opendir+:} false; then : +if test ${ac_cv_search_opendir+y} +then : -else +else $as_nop ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 -$as_echo "$ac_cv_search_opendir" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 +printf "%s\n" "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 -$as_echo_n "checking for library containing opendir... " >&6; } -if ${ac_cv_search_opendir+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 +printf %s "checking for library containing opendir... " >&6; } +if test ${ac_cv_search_opendir+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -23482,46 +24723,48 @@ /* 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 opendir (); int -main () +main (void) { return opendir (); ; return 0; } _ACEOF -for ac_lib in '' x; do +for ac_lib in '' x +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_opendir=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_opendir+:} false; then : + if test ${ac_cv_search_opendir+y} +then : break fi done -if ${ac_cv_search_opendir+:} false; then : +if test ${ac_cv_search_opendir+y} +then : -else +else $as_nop ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 -$as_echo "$ac_cv_search_opendir" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 +printf "%s\n" "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi @@ -23532,11 +24775,12 @@ if test "${ac_cv_search_opendir}" = "no"; then as_fn_error $? "Building R requires the 'opendir' system call" "$LINENO" 5 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 -$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } -if ${ac_cv_header_sys_wait_h+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 +printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } +if test ${ac_cv_header_sys_wait_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -23549,7 +24793,7 @@ #endif int -main () +main (void) { int s; wait (&s); @@ -23558,18 +24802,19 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_header_sys_wait_h=yes -else +else $as_nop ac_cv_header_sys_wait_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 -$as_echo "$ac_cv_header_sys_wait_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 +printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } if test $ac_cv_header_sys_wait_h = yes; then -$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h fi @@ -23579,67 +24824,214 @@ ## ## The following headers are POSIX, ## We use sched.h for Linux-specific features (affinity) -for ac_header in dlfcn.h fcntl.h glob.h grp.h pwd.h sched.h strings.h \ - sys/resource.h sys/select.h sys/socket.h sys/stat.h sys/time.h \ - sys/times.h sys/utsname.h unistd.h utime.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" +if test "x$ac_cv_header_dlfcn_h" = xyes +then : + printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" +if test "x$ac_cv_header_fcntl_h" = xyes +then : + printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" +if test "x$ac_cv_header_glob_h" = xyes +then : + printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" +if test "x$ac_cv_header_grp_h" = xyes +then : + printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" +if test "x$ac_cv_header_pwd_h" = xyes +then : + printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" +if test "x$ac_cv_header_sched_h" = xyes +then : + printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" +if test "x$ac_cv_header_strings_h" = xyes +then : + printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_resource_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_select_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_socket_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_stat_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_time_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_times_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_utsname_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_UTSNAME_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" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" +if test "x$ac_cv_header_utime_h" = xyes +then : + printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h + +fi ## features.h is used by date-time code on Linux and in extra/tzone ## floatingpoint.h is used for fpsetmask on FreeBSD. ## sys/param.h is one way to get PATH_MAX. ## elf.h is used for fallback for HAVE_NO_SYMBOL_UNDERSCORE -for ac_header in arpa/inet.h elf.h features.h floatingpoint.h \ - langinfo.h netdb.h netinet/in.h sys/param.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" +if test "x$ac_cv_header_arpa_inet_h" = xyes +then : + printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" +if test "x$ac_cv_header_elf_h" = xyes +then : + printf "%s\n" "#define HAVE_ELF_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default" +if test "x$ac_cv_header_features_h" = xyes +then : + printf "%s\n" "#define HAVE_FEATURES_H 1" >>confdefs.h -## stdalign.h is C11. -for ac_header in stdalign.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default" -if test "x$ac_cv_header_stdalign_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STDALIGN_H 1 -_ACEOF +fi +ac_fn_c_check_header_compile "$LINENO" "floatingpoint.h" "ac_cv_header_floatingpoint_h" "$ac_includes_default" +if test "x$ac_cv_header_floatingpoint_h" = xyes +then : + printf "%s\n" "#define HAVE_FLOATINGPOINT_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" +if test "x$ac_cv_header_langinfo_h" = xyes +then : + printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" +if test "x$ac_cv_header_netdb_h" = xyes +then : + printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" +if test "x$ac_cv_header_netinet_in_h" = xyes +then : + printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_param_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h + +fi + +## stdalign.h is C11. +ac_fn_c_check_header_compile "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default" +if test "x$ac_cv_header_stdalign_h" = xyes +then : + printf "%s\n" "#define HAVE_STDALIGN_H 1" >>confdefs.h + +fi ## These are C99 headers but some C code (written to work also ## without assuming C99) may need the corresponding conditionals. -for ac_header in errno.h inttypes.h limits.h locale.h stdarg.h stdbool.h \ - stdint.h string.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" +if test "x$ac_cv_header_errno_h" = xyes +then : + printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" +if test "x$ac_cv_header_inttypes_h" = xyes +then : + printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" +if test "x$ac_cv_header_limits_h" = xyes +then : + printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" +if test "x$ac_cv_header_locale_h" = xyes +then : + printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" +if test "x$ac_cv_header_stdarg_h" = xyes +then : + printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default" +if test "x$ac_cv_header_stdbool_h" = xyes +then : + printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = xyes +then : + printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" +if test "x$ac_cv_header_string_h" = xyes +then : + printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h + +fi ## only vsnprintf.c requires stdarg.h @@ -23647,16 +25039,97 @@ ## The default includes check for sys/types.h (POSIX), which we use unconditionally ## -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setjmp.h is POSIX.1 compatible" >&5 -$as_echo_n "checking whether setjmp.h is POSIX.1 compatible... " >&6; } -if ${r_cv_header_setjmp_posix+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 +printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } +if test ${ac_cv_c_undeclared_builtin_options+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_save_CFLAGS=$CFLAGS + ac_cv_c_undeclared_builtin_options='cannot detect' + for ac_arg in '' -fno-builtin; do + CFLAGS="$ac_save_CFLAGS $ac_arg" + # This test program should *not* compile successfully. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ +(void) strchr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + +else $as_nop + # This test program should compile successfully. + # No library function is consistently available on + # freestanding implementations, so test against a dummy + # declaration. Include always-available headers on the + # off chance that they somehow elicit warnings. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +extern void ac_decl (int, char *); + +int +main (void) +{ +(void) ac_decl (0, (char *) 0); + (void) ac_decl; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + if test x"$ac_arg" = x +then : + ac_cv_c_undeclared_builtin_options='none needed' +else $as_nop + ac_cv_c_undeclared_builtin_options=$ac_arg +fi + break +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 + done + CFLAGS=$ac_save_CFLAGS + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 +printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } + case $ac_cv_c_undeclared_builtin_options in #( + 'cannot detect') : + { { 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 make $CC report undeclared builtins +See \`config.log' for more details" "$LINENO" 5; } ;; #( + 'none needed') : + ac_c_undeclared_builtin_options='' ;; #( + *) : + ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; +esac + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setjmp.h is POSIX.1 compatible" >&5 +printf %s "checking whether setjmp.h is POSIX.1 compatible... " >&6; } +if test ${r_cv_header_setjmp_posix+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { sigjmp_buf b; sigsetjmp(b, 0); @@ -23665,37 +25138,34 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : r_cv_header_setjmp_posix=yes -else +else $as_nop r_cv_header_setjmp_posix=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_setjmp_posix" >&5 -$as_echo "$r_cv_header_setjmp_posix" >&6; } -ac_fn_c_check_decl "$LINENO" "sigsetjmp" "ac_cv_have_decl_sigsetjmp" "#include -" -if test "x$ac_cv_have_decl_sigsetjmp" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_setjmp_posix" >&5 +printf "%s\n" "$r_cv_header_setjmp_posix" >&6; } +ac_fn_check_decl "$LINENO" "sigsetjmp" "ac_cv_have_decl_sigsetjmp" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_sigsetjmp" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SIGSETJMP $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "siglongjmp" "ac_cv_have_decl_siglongjmp" "#include -" -if test "x$ac_cv_have_decl_siglongjmp" = xyes; then : +printf "%s\n" "#define HAVE_DECL_SIGSETJMP $ac_have_decl" >>confdefs.h +ac_fn_check_decl "$LINENO" "siglongjmp" "ac_cv_have_decl_siglongjmp" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_siglongjmp" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SIGLONGJMP $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_SIGLONGJMP $ac_have_decl" >>confdefs.h if test "$ac_cv_have_decl_sigsetjmp" = no; then r_cv_header_setjmp_posix=no @@ -23705,15 +25175,16 @@ fi if test "${r_cv_header_setjmp_posix}" = yes; then -$as_echo "#define HAVE_POSIX_SETJMP 1" >>confdefs.h +printf "%s\n" "#define HAVE_POSIX_SETJMP 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU C library with version >= 2" >&5 -$as_echo_n "checking for GNU C library with version >= 2... " >&6; } -if ${r_cv_header_glibc2+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU C library with version >= 2" >&5 +printf %s "checking for GNU C library with version >= 2... " >&6; } +if test ${r_cv_header_glibc2+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -23723,123 +25194,114 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : r_cv_header_glibc2=yes -else +else $as_nop r_cv_header_glibc2=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_glibc2" >&5 -$as_echo "$r_cv_header_glibc2" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_glibc2" >&5 +printf "%s\n" "$r_cv_header_glibc2" >&6; } if test "${r_cv_header_glibc2}" = yes; then -$as_echo "#define HAVE_GLIBC2 1" >>confdefs.h +printf "%s\n" "#define HAVE_GLIBC2 1" >>confdefs.h fi ### * Checks for types. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 -$as_echo_n "checking return type of signal handlers... " >&6; } -if ${ac_cv_type_signal+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include - -int -main () -{ -return *(signal (0, 0)) (0) == 1; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_type_signal=int -else - ac_cv_type_signal=void -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 -$as_echo "$ac_cv_type_signal" >&6; } - -cat >>confdefs.h <<_ACEOF -#define RETSIGTYPE $ac_cv_type_signal -_ACEOF - - ## liblzma uses uint64_t: used unconditionally in src/main/util.c ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" case $ac_cv_c_uint64_t in #( no|yes) ;; #( *) -$as_echo "#define _UINT64_T 1" >>confdefs.h +printf "%s\n" "#define _UINT64_T 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define uint64_t $ac_cv_c_uint64_t -_ACEOF +printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h ;; esac ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" -if test "x$ac_cv_type_int64_t" = xyes; then : +if test "x$ac_cv_type_int64_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_INT64_T 1 -_ACEOF +printf "%s\n" "#define HAVE_INT64_T 1" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "int_fast64_t" "ac_cv_type_int_fast64_t" "$ac_includes_default" -if test "x$ac_cv_type_int_fast64_t" = xyes; then : +if test "x$ac_cv_type_int_fast64_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_INT_FAST64_T 1 -_ACEOF +printf "%s\n" "#define HAVE_INT_FAST64_T 1" >>confdefs.h fi -ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" -if test "x$ac_cv_type_pid_t" = xyes; then : -else + ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default +" +if test "x$ac_cv_type_pid_t" = xyes +then : + +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #if defined _WIN64 && !defined __CYGWIN__ + LLP64 + #endif + +int +main (void) +{ + + ; + return 0; +} -cat >>confdefs.h <<_ACEOF -#define pid_t int _ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_pid_type='int' +else $as_nop + ac_pid_type='__int64' +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + +printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h + fi + ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : +if test "x$ac_cv_type_size_t" = xyes +then : -else +else $as_nop -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF +printf "%s\n" "#define size_t unsigned int" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SIZE_MAX is declared" >&5 -$as_echo_n "checking whether SIZE_MAX is declared... " >&6; } -if ${r_cv_size_max+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SIZE_MAX is declared" >&5 +printf %s "checking whether SIZE_MAX is declared... " >&6; } +if test ${r_cv_size_max+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_size_max=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -23865,9 +25327,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_size_max=yes -else +else $as_nop r_cv_size_max=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -23875,31 +25338,31 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_size_max" >&5 -$as_echo "$r_cv_size_max" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_size_max" >&5 +printf "%s\n" "$r_cv_size_max" >&6; } if test "x${r_cv_size_max}" = xyes; then -$as_echo "#define HAVE_DECL_SIZE_MAX 1" >>confdefs.h +printf "%s\n" "#define HAVE_DECL_SIZE_MAX 1" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "blkcnt_t" "ac_cv_type_blkcnt_t" "$ac_includes_default" -if test "x$ac_cv_type_blkcnt_t" = xyes; then : +if test "x$ac_cv_type_blkcnt_t" = xyes +then : -else +else $as_nop -cat >>confdefs.h <<_ACEOF -#define blkcnt_t long -_ACEOF +printf "%s\n" "#define blkcnt_t long" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length" >&5 -$as_echo_n "checking for type of socket length... " >&6; } -if ${r_cv_type_socklen+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type of socket length" >&5 +printf %s "checking for type of socket length... " >&6; } +if test ${r_cv_type_socklen+y} +then : + printf %s "(cached) " >&6 +else $as_nop for t in socklen_t size_t int; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -23914,19 +25377,20 @@ #endif int -main () +main (void) { (void)getsockopt (1, 1, 1, NULL, (${t} *)NULL) ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : r_cv_type_socklen=${t}; break -else +else $as_nop r_cv_type_socklen= fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done fi @@ -23937,25 +25401,22 @@ esac if test "x${r_cv_type_socklen}" = x; then warn_type_socklen="could not determine type of socket length" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_type_socklen}" >&5 -$as_echo "$as_me: WARNING: ${warn_type_socklen}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_type_socklen}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_type_socklen}" >&2;} else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${r_cv_type_socklen} *" >&5 -$as_echo "${r_cv_type_socklen} *" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${r_cv_type_socklen} *" >&5 +printf "%s\n" "${r_cv_type_socklen} *" >&6; } fi -cat >>confdefs.h <<_ACEOF -#define R_SOCKLEN_T ${r_cv_type_socklen} -_ACEOF +printf "%s\n" "#define R_SOCKLEN_T ${r_cv_type_socklen}" >>confdefs.h ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include " -if test "x$ac_cv_type_stack_t" = xyes; then : +if test "x$ac_cv_type_stack_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STACK_T 1 -_ACEOF +printf "%s\n" "#define HAVE_STACK_T 1" >>confdefs.h fi @@ -23972,11 +25433,10 @@ #include #endif " -if test "x$ac_cv_type_intptr_t" = xyes; then : +if test "x$ac_cv_type_intptr_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_INTPTR_T 1 -_ACEOF +printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h fi @@ -23987,11 +25447,10 @@ #include #endif " -if test "x$ac_cv_type_uintptr_t" = xyes; then : +if test "x$ac_cv_type_uintptr_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_UINTPTR_T 1 -_ACEOF +printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h fi @@ -24003,11 +25462,12 @@ ### *** C compiler. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -$as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if ${ac_cv_c_bigendian+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +printf %s "checking whether byte ordering is bigendian... " >&6; } +if test ${ac_cv_c_bigendian+y} +then : + printf %s "(cached) " >&6 +else $as_nop # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -24015,7 +25475,7 @@ #include int -main () +main (void) { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) @@ -24026,7 +25486,8 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -24034,7 +25495,7 @@ #include int -main () +main (void) { #if BYTE_ORDER != BIG_ENDIAN not big endian @@ -24044,15 +25505,17 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_bigendian=yes -else +else $as_nop ac_cv_c_bigendian=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +else $as_nop # It does not; compile a test program. -if test "$cross_compiling" = yes; then : +if test "$cross_compiling" = yes +then : # try to guess the endianness by grepping values into an object file ac_cv_c_bigendian=unknown cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24064,14 +25527,15 @@ short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } int -main () +main (void) { _ascii (); _ebcdic (); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then ac_cv_c_bigendian=yes fi @@ -24084,13 +25548,13 @@ fi fi fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int -main () +main (void) { /* Are we little or big endian? From Harbison&Steele. */ @@ -24106,9 +25570,10 @@ return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_c_bigendian=no -else +else $as_nop ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -24116,14 +25581,14 @@ fi fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 -$as_echo "$ac_cv_c_bigendian" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +printf "%s\n" "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in yes) -$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h +printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; no) ;; @@ -24132,16 +25597,17 @@ presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 -$as_echo_n "checking for an ANSI C-conforming const... " >&6; } -if ${ac_cv_c_const+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +printf %s "checking for an ANSI C-conforming const... " >&6; } +if test ${ac_cv_c_const+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __cplusplus @@ -24154,7 +25620,7 @@ /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; - /* AIX XL C 1.02.0.0 rejects this. + /* IBM XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ @@ -24182,7 +25648,7 @@ iptr p = 0; ++p; } - { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; @@ -24198,318 +25664,28 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_const=yes -else +else $as_nop ac_cv_c_const=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 -$as_echo "$ac_cv_c_const" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +printf "%s\n" "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then -$as_echo "#define const /**/" >>confdefs.h - -fi - - case $ac_cv_prog_cc_stdc in #( - no) : - ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( - *) : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 -$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } -if ${ac_cv_prog_cc_c99+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c99=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -#include - -// Check varargs macros. These examples are taken from C99 6.10.3.5. -#define debug(...) fprintf (stderr, __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 - your preprocessor is broken; -#endif -#if BIG_OK -#else - 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 void -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; - float fnumber; - - 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); -} - -int -main () -{ - - // Check bool. - _Bool success = false; - - // Check restrict. - if (test_restrict ("String literal") == 0) - success = true; - char *restrict newvar = "Another string"; - - // Check varargs. - 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[ni.number - 1] = 543; - - // work around unused variable warnings - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' - || dynamic_array[ni.number - 1] != 543); - - ; - return 0; -} -_ACEOF -for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 -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 - test "x$ac_cv_prog_cc_c99" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c99" 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_c99" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 -$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c99" != xno; then : - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 -else - { $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 : - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 -else - ac_cv_prog_cc_stdc=no -fi +printf "%s\n" "#define const /**/" >>confdefs.h fi - ;; -esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 -$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } - if ${ac_cv_prog_cc_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -fi - case $ac_cv_prog_cc_stdc in #( - no) : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; #( - '') : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; #( - *) : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 -$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; -esac - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 -$as_echo_n "checking for inline... " >&6; } -if ${r_cv_c_inline+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +printf %s "checking for inline... " >&6; } +if test ${r_cv_c_inline+y} +then : + printf %s "(cached) " >&6 +else $as_nop r_cv_c_inline="" for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24520,22 +25696,21 @@ #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : r_cv_c_inline=$ac_kw; break fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_c_inline" >&5 -$as_echo "$r_cv_c_inline" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_c_inline" >&5 +printf "%s\n" "$r_cv_c_inline" >&6; } case $r_cv_c_inline in no) -$as_echo "#define R_INLINE /**/" >>confdefs.h +printf "%s\n" "#define R_INLINE /**/" >>confdefs.h ;; - *) cat >>confdefs.h <<_ACEOF -#define R_INLINE $r_cv_c_inline -_ACEOF + *) printf "%s\n" "#define R_INLINE $r_cv_c_inline" >>confdefs.h ;; esac @@ -24543,17 +25718,19 @@ # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 -$as_echo_n "checking size of int... " >&6; } -if ${ac_cv_sizeof_int+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +printf %s "checking size of int... " >&6; } +if test ${ac_cv_sizeof_int+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" +then : -else +else $as_nop if test "$ac_cv_type_int" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (int) See \`config.log' for more details" "$LINENO" 5; } else @@ -24562,21 +25739,19 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 -$as_echo "$ac_cv_sizeof_int" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +printf "%s\n" "$ac_cv_sizeof_int" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT $ac_cv_sizeof_int -_ACEOF +printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h ## on some platforms this gives a trailing lf, so case "${ac_cv_sizeof_int}" in 4*) -$as_echo "#define INT_32_BITS 1" >>confdefs.h +printf "%s\n" "#define INT_32_BITS 1" >>confdefs.h ;; esac @@ -24585,17 +25760,19 @@ # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if ${ac_cv_sizeof_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +printf %s "checking size of long... " >&6; } +if test ${ac_cv_sizeof_long+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" +then : -else +else $as_nop if test "$ac_cv_type_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) See \`config.log' for more details" "$LINENO" 5; } else @@ -24604,31 +25781,31 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 -$as_echo_n "checking size of long long... " >&6; } -if ${ac_cv_sizeof_long_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 +printf %s "checking size of long long... " >&6; } +if test ${ac_cv_sizeof_long_long+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" +then : -else +else $as_nop if test "$ac_cv_type_long_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long long) See \`config.log' for more details" "$LINENO" 5; } else @@ -24637,31 +25814,31 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 -$as_echo "$ac_cv_sizeof_long_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 -$as_echo_n "checking size of double... " >&6; } -if ${ac_cv_sizeof_double+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 +printf %s "checking size of double... " >&6; } +if test ${ac_cv_sizeof_double+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default" +then : -else +else $as_nop if test "$ac_cv_type_double" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (double) See \`config.log' for more details" "$LINENO" 5; } else @@ -24670,31 +25847,31 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 -$as_echo "$ac_cv_sizeof_double" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 +printf "%s\n" "$ac_cv_sizeof_double" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_DOUBLE $ac_cv_sizeof_double -_ACEOF +printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 -$as_echo_n "checking size of size_t... " >&6; } -if ${ac_cv_sizeof_size_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 +printf %s "checking size of size_t... " >&6; } +if test ${ac_cv_sizeof_size_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" +then : -else +else $as_nop if test "$ac_cv_type_size_t" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (size_t) See \`config.log' for more details" "$LINENO" 5; } else @@ -24703,68 +25880,50 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 -$as_echo "$ac_cv_sizeof_size_t" >&6; } - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 +printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t -_ACEOF +printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C stack direction" >&5 -$as_echo_n "checking for C stack direction... " >&6; } -if ${r_cv_cstack_direction+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat > conftest1.c < -uintptr_t dummy_ii(void) -{ - int ii; - /* This is intended to return a local address. We could just return - (uintptr_t) &ii, but doing it indirectly through ii_addr avoids - a compiler warning (-Wno-return-local-addr would do as well). - */ - volatile uintptr_t ii_addr = (uintptr_t) ⅈ - return ii_addr; +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C stack direction" >&5 +printf %s "checking for C stack direction... " >&6; } +if test ${r_cv_cstack_direction+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat > conftest.c < conftest.c < -#include -extern uintptr_t dummy_ii(void); - -typedef uintptr_t (*dptr_type)(void); -volatile dptr_type dummy_ii_ptr; - -int main(int ac, char **av) -{ - int i; - dummy_ii_ptr = dummy_ii; - /* call dummy_ii via a volatile function pointer to prevent inlinining in - case the tests are accidentally built with LTO */ - uintptr_t ii = dummy_ii_ptr(); - /* 1 is downwards */ - return ((uintptr_t)&i > ii) ? 1 : -1; +int main(int ac, char **av) { + /* find_stack_direction: -1 is downwards, 1 is upwards, 0 is unknown */ + /* test: 1 is downwards, -1 is upwards, 0 is unknown */ + return -find_stack_direction (0, 20); } EOF if test "x${R_C_STACK_DIRECTION}" != "x"; then - r_cv_cstack_direction=${R_C_STACK_DIRECTION} + r_cv_cstack_direction=${R_C_STACK_DIRECTION} else if ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${MAIN_LDFLAGS} -o conftest${ac_exeext} \ - conftest.c conftest1.c \ - 1>&5 2>&5; + conftest.c 1>&5 2>&5; then ## redirect error messages to config.log output=`./conftest${ac_exeext} 2>&5` - if test ${?} = 1; then + _cstack_direction_result=${?} + if test "${_cstack_direction_result}" = 1; then r_cv_cstack_direction=down - elif test ${?} = 1; then + elif test "${_cstack_direction_result}" = 255; then r_cv_cstack_direction=up fi fi @@ -24772,13 +25931,13 @@ fi -rm -Rf conftest conftest?.* core +rm -Rf conftest conftest.* core if test -n "${r_cv_cstack_direction}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${r_cv_cstack_direction}" >&5 -$as_echo "${r_cv_cstack_direction}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${r_cv_cstack_direction}" >&5 +printf "%s\n" "${r_cv_cstack_direction}" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know (assume down)" >&5 -$as_echo "don't know (assume down)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: don't know (assume down)" >&5 +printf "%s\n" "don't know (assume down)" >&6; } r_cv_cstack_direction=down fi @@ -24789,44 +25948,45 @@ cstack_dir=1 fi -cat >>confdefs.h <<_ACEOF -#define C_STACK_DIRECTION ${cstack_dir} -_ACEOF +printf "%s\n" "#define C_STACK_DIRECTION ${cstack_dir}" >>confdefs.h # Check whether --enable-long-double was given. -if test "${enable_long_double+set}" = set; then : +if test ${enable_long_double+y} +then : enableval=$enable_long_double; if test "${enableval}" = no; then use_long_double=no else use_long_double=yes fi -else +else $as_nop use_long_double=yes fi if test "x${use_long_double}" = xyes; then -$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 -$as_echo_n "checking size of long double... " >&6; } -if ${ac_cv_sizeof_long_double+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 +printf %s "checking size of long double... " >&6; } +if test ${ac_cv_sizeof_long_double+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default" +then : -else +else $as_nop if test "$ac_cv_type_long_double" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long double) See \`config.log' for more details" "$LINENO" 5; } else @@ -24835,19 +25995,17 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 -$as_echo "$ac_cv_sizeof_long_double" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 +printf "%s\n" "$ac_cv_sizeof_long_double" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double -_ACEOF +printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using the 'long double' type" >&5 -$as_echo "$as_me: WARNING: Not using the 'long double' type" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Not using the 'long double' type" >&5 +printf "%s\n" "$as_me: WARNING: Not using the 'long double' type" >&2;} fi @@ -24857,11 +26015,12 @@ sed -e 's/^.*g.. version *//'` fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compute C Make dependencies" >&5 -$as_echo_n "checking whether we can compute C Make dependencies... " >&6; } -if ${r_cv_prog_cc_m+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can compute C Make dependencies" >&5 +printf %s "checking whether we can compute C Make dependencies... " >&6; } +if test ${r_cv_prog_cc_m+y} +then : + printf %s "(cached) " >&6 +else $as_nop echo "#include " > conftest.c cc_minus_MM=false if test "${GCC}" = yes; then @@ -24885,11 +26044,11 @@ r_cv_prog_cc_m="\$(CC) -M" fi if test -z "${r_cv_prog_cc_m}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using ${r_cv_prog_cc_m}" >&5 -$as_echo "yes, using ${r_cv_prog_cc_m}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, using ${r_cv_prog_cc_m}" >&5 +printf "%s\n" "yes, using ${r_cv_prog_cc_m}" >&6; } fi r_cc_rules_frag=Makefrag.cc @@ -24912,24 +26071,25 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -c -o FILE.lo" >&5 -$as_echo_n "checking whether ${CC} supports -c -o FILE.lo... " >&6; } -if ${r_cv_prog_cc_c_o_lo+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -c -o FILE.lo" >&5 +printf %s "checking whether ${CC} supports -c -o FILE.lo... " >&6; } +if test ${r_cv_prog_cc_c_o_lo+y} +then : + printf %s "(cached) " >&6 +else $as_nop test -d TMP || mkdir TMP echo "int some_variable = 0;" > conftest.c ac_try='${CC} ${CPPFLAGS} ${CFLAGS} -c conftest.c -o TMP/conftest.lo 1>&5' if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } \ && test -f TMP/conftest.lo \ && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then r_cv_prog_cc_c_o_lo=yes else @@ -24937,8 +26097,8 @@ fi rm -Rf conftest* TMP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_cc_c_o_lo" >&5 -$as_echo "$r_cv_prog_cc_c_o_lo" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_cc_c_o_lo" >&5 +printf "%s\n" "$r_cv_prog_cc_c_o_lo" >&6; } r_cc_lo_rules_frag=Makefrag.cc_lo @@ -24962,29 +26122,32 @@ OPENMP_CFLAGS= # Check whether --enable-openmp was given. -if test "${enable_openmp+set}" = set; then : +if test ${enable_openmp+y} +then : enableval=$enable_openmp; fi if test "$enable_openmp" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 -$as_echo_n "checking for $CC option to support OpenMP... " >&6; } -if ${ac_cv_prog_c_openmp+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 +printf %s "checking for $CC option to support OpenMP... " >&6; } +if test ${ac_cv_prog_c_openmp+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _OPENMP - choke me +#error "OpenMP not supported" #endif #include -int main () { return omp_get_num_threads (); } +int main (void) { return omp_get_num_threads (); } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_prog_c_openmp='none needed' -else +else $as_nop ac_cv_prog_c_openmp='unsupported' for ac_option in -xopenmp -fopenmp -qopenmp \ -openmp -mp -omp -qsmp=omp -homp \ @@ -24996,16 +26159,17 @@ /* end confdefs.h. */ #ifndef _OPENMP - choke me +#error "OpenMP not supported" #endif #include -int main () { return omp_get_num_threads (); } +int main (void) { return omp_get_num_threads (); } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_prog_c_openmp=$ac_option fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS=$ac_save_CFLAGS if test "$ac_cv_prog_c_openmp" != unsupported; then @@ -25013,11 +26177,11 @@ fi done fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 -$as_echo "$ac_cv_prog_c_openmp" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 +printf "%s\n" "$ac_cv_prog_c_openmp" >&6; } case $ac_cv_prog_c_openmp in #( "none needed" | unsupported) ;; #( @@ -25038,17 +26202,19 @@ ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 -$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } -if ${ac_cv_prog_fc_v+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 +printf %s "checking how to get verbose linking output from $FC... " >&6; } +if test ${ac_cv_prog_fc_v+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : ac_cv_prog_fc_v= # Try some options frequently used verbose output for ac_verb in -v -verbose --verbose -V -\#\#\#; do @@ -25066,13 +26232,13 @@ FCFLAGS="$FCFLAGS $ac_verb" eval "set x $ac_link" shift -$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | sed '/^Driving:/d; /^Configured with:/d; '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` -$as_echo "$ac_fc_v_output" >&5 +printf "%s\n" "$ac_fc_v_output" >&5 FCFLAGS=$ac_save_FCFLAGS rm -rf conftest* @@ -25139,23 +26305,24 @@ done done if test -z "$ac_cv_prog_fc_v"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 -$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 +printf "%s\n" "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 -$as_echo "$as_me: WARNING: compilation failed" >&2;} -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 -$as_echo "$ac_cv_prog_fc_v" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 -$as_echo_n "checking for Fortran libraries of $FC... " >&6; } -if ${ac_cv_fc_libs+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 +printf "%s\n" "$as_me: WARNING: compilation failed" >&2;} +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam 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 if test "x$FCLIBS" != "x"; then ac_cv_fc_libs="$FCLIBS" # Let the user override the test. else @@ -25174,13 +26341,13 @@ FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" eval "set x $ac_link" shift -$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | sed '/^Driving:/d; /^Configured with:/d; '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` -$as_echo "$ac_fc_v_output" >&5 +printf "%s\n" "$ac_fc_v_output" >&5 FCFLAGS=$ac_save_FCFLAGS rm -rf conftest* @@ -25257,9 +26424,10 @@ fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi ;; @@ -25272,9 +26440,10 @@ fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_arg; do ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" @@ -25289,9 +26458,24 @@ |-LANG:=* | -LIST:* | -LNO:* | -link) ;; -lkernel32) + # Ignore this library only on Windows-like systems. case $host_os in - *cygwin*) ;; - *) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" + cygwin* | msys* ) ;; + *) + ac_exists=false + for ac_i in $ac_cv_fc_libs; do + if test x"$ac_arg" = x"$ac_i"; then + ac_exists=true + break + fi + done + + if test x"$ac_exists" = xtrue +then : + +else $as_nop + ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" +fi ;; esac ;; @@ -25309,7 +26493,7 @@ esac ;; -YP,*) - for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do + for ac_j in `printf "%s\n" "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_j" = x"$ac_i"; then @@ -25318,9 +26502,10 @@ fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop ac_arg="$ac_arg $ac_j" ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" fi @@ -25335,15 +26520,17 @@ fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi ;; -zallextract*| -zdefaultextract) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" ;; + -mllvm) ${2+shift};; # Defend against 'clang -mllvm -loopopt=0'. # Ignore everything else. esac done @@ -25355,7 +26542,7 @@ # must begin with a "/"). case `(uname -sr) 2>/dev/null` in "SunOS 5"*) - ac_ld_run_path=`$as_echo "$ac_fc_v_output" | + ac_ld_run_path=`printf "%s\n" "$ac_fc_v_output" | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` test "x$ac_ld_run_path" != x && if test "$ac_compiler_gnu" = yes; then @@ -25370,8 +26557,8 @@ fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 -$as_echo "$ac_cv_fc_libs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 +printf "%s\n" "$ac_cv_fc_libs" >&6; } FCLIBS="$ac_cv_fc_libs" @@ -25389,23 +26576,25 @@ 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 get verbose linking output from ${CC}" >&5 -$as_echo_n "checking how to get verbose linking output from ${CC}... " >&6; } -if ${r_cv_prog_c_v+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from ${CC}" >&5 +printf %s "checking how to get verbose linking output from ${CC}... " >&6; } +if test ${r_cv_prog_c_v+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : r_cv_prog_c_v= # Try some options frequently used verbose output for r_verb in -v -verbose --verbose -V -\#\#\#; do @@ -25413,7 +26602,7 @@ /* end confdefs.h. */ int -main () +main (void) { ; @@ -25427,7 +26616,7 @@ # flags. r_save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $r_verb" -(eval echo $as_me:25430: \"$ac_link\") >&5 +(eval echo $as_me:26619: \"$ac_link\") >&5 r_c_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` echo "$r_c_v_output" >&5 CFLAGS=$r_save_CFLAGS @@ -25463,23 +26652,24 @@ done done if test -z "$r_cv_prog_c_v"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from ${CC}" >&5 -$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from ${CC}" >&2;} -fi -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.$ac_ext - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from ${CC}" >&5 +printf "%s\n" "$as_me: WARNING: cannot determine how to obtain linking information from ${CC}" >&2;} fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_c_v" >&5 -$as_echo "$r_cv_prog_c_v" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C libraries of ${CC}" >&5 -$as_echo_n "checking for C libraries of ${CC}... " >&6; } -if ${r_cv_c_libs+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 +printf "%s\n" "$as_me: WARNING: compilation failed" >&2;} +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_c_v" >&5 +printf "%s\n" "$r_cv_prog_c_v" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C libraries of ${CC}" >&5 +printf %s "checking for C libraries of ${CC}... " >&6; } +if test ${r_cv_c_libs+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test "x$CLIBS" != "x"; then r_cv_c_libs="$CLIBS" # Let the user override the test. else @@ -25488,7 +26678,7 @@ /* end confdefs.h. */ int -main () +main (void) { ; @@ -25502,7 +26692,7 @@ # flags. r_save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $r_cv_prog_c_v" -(eval echo $as_me:25505: \"$ac_link\") >&5 +(eval echo $as_me:26695: \"$ac_link\") >&5 r_c_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` echo "$r_c_v_output" >&5 CFLAGS=$r_save_CFLAGS @@ -25548,9 +26738,10 @@ fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop r_cv_c_libs="$r_cv_c_libs $r_arg" fi ;; @@ -25563,9 +26754,10 @@ fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $r_arg; do r_cv_c_libs="$r_cv_c_libs -Xlinker $ac_link_opt" @@ -25604,9 +26796,10 @@ fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop r_arg="$r_arg $r_j" r_cv_c_libs="$r_cv_c_libs $r_j" fi @@ -25621,9 +26814,10 @@ fi done - if test x"$ac_exists" = xtrue; then : + if test x"$ac_exists" = xtrue +then : -else +else $as_nop r_cv_c_libs="$r_cv_c_libs $r_arg" fi ;; @@ -25653,8 +26847,8 @@ fi # test "x$CLIBS" = "x" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_c_libs" >&5 -$as_echo "$r_cv_c_libs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_c_libs" >&5 +printf "%s\n" "$r_cv_c_libs" >&6; } CLIBS= for arg in $r_cv_c_libs; do case "${arg}" in @@ -25752,11 +26946,12 @@ ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 -$as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; } -if ${ac_cv_fc_dummy_main+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 +printf %s "checking for dummy main to link with Fortran libraries... " >&6; } +if test ${ac_cv_fc_dummy_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_fc_dm_save_LIBS=$LIBS LIBS="$LIBS $FCLIBS" ac_fortran_dm_var=FC_DUMMY_MAIN @@ -25779,19 +26974,20 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_fortran_dummy_main=none -else +else $as_nop ac_cv_fortran_dummy_main=unknown fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test $ac_cv_fortran_dummy_main = unknown; then @@ -25808,17 +27004,18 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_fortran_dummy_main=$ac_func; break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done fi @@ -25831,25 +27028,24 @@ LIBS=$ac_fc_dm_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5 -$as_echo "$ac_cv_fc_dummy_main" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5 +printf "%s\n" "$ac_cv_fc_dummy_main" >&6; } FC_DUMMY_MAIN=$ac_cv_fc_dummy_main -if test "$FC_DUMMY_MAIN" != unknown; then : +if test "$FC_DUMMY_MAIN" != unknown +then : if test $FC_DUMMY_MAIN != none; then -cat >>confdefs.h <<_ACEOF -#define FC_DUMMY_MAIN $FC_DUMMY_MAIN -_ACEOF +printf "%s\n" "#define FC_DUMMY_MAIN $FC_DUMMY_MAIN" >>confdefs.h if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then -$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h +printf "%s\n" "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h fi fi -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "linking to Fortran libraries from C fails See \`config.log' for more details" "$LINENO" 5; } fi @@ -25864,11 +27060,12 @@ ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 -$as_echo_n "checking for Fortran name-mangling scheme... " >&6; } -if ${ac_cv_fc_mangling+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 +printf %s "checking for Fortran name-mangling scheme... " >&6; } +if test ${ac_cv_fc_mangling+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF subroutine foobar() return @@ -25877,7 +27074,8 @@ 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 @@ -25898,9 +27096,6 @@ /* 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 @@ -25911,17 +27106,18 @@ #endif #endif int -main () +main (void) { return $ac_func (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_success=yes; break 2 fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done done @@ -25956,9 +27152,6 @@ /* 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 @@ -25969,17 +27162,18 @@ #endif #endif int -main () +main (void) { return $ac_func (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_success_extra=yes; break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done ac_ext=${ac_fc_srcext-f} @@ -26009,17 +27203,17 @@ LIBS=$ac_save_LIBS rm -rf conftest* rm -f cfortran_test* -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compile a simple Fortran program See \`config.log' for more details" "$LINENO" 5; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5 -$as_echo "$ac_cv_fc_mangling" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5 +printf "%s\n" "$ac_cv_fc_mangling" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -26033,48 +27227,48 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu case $ac_cv_fc_mangling in "lower case, no underscore, no extra underscore") - $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) name" >>confdefs.h ;; "lower case, no underscore, extra underscore") - $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h ;; "lower case, underscore, no extra underscore") - $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h ;; "lower case, underscore, extra underscore") - $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h ;; "upper case, no underscore, no extra underscore") - $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h ;; "upper case, no underscore, extra underscore") - $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h ;; "upper case, underscore, no extra underscore") - $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h ;; "upper case, underscore, extra underscore") - $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h + printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h - $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h + printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 -$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 +printf "%s\n" "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} ;; esac @@ -26087,16 +27281,17 @@ case "${ac_cv_fc_mangling}" in "upper "*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran compiler uses uppercase external names" >&5 -$as_echo "$as_me: WARNING: Fortran compiler uses uppercase external names" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Fortran compiler uses uppercase external names" >&5 +printf "%s\n" "$as_me: WARNING: Fortran compiler uses uppercase external names" >&2;} as_fn_error $? "cannot use Fortran" "$LINENO" 5 ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} appends underscores to external names" >&5 -$as_echo_n "checking whether ${FC} appends underscores to external names... " >&6; } -if ${r_cv_prog_fc_append_underscore+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${FC} appends underscores to external names" >&5 +printf %s "checking whether ${FC} appends underscores to external names... " >&6; } +if test ${r_cv_prog_fc_append_underscore+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "${ac_cv_fc_mangling}" in *", underscore, "*) r_cv_prog_fc_append_underscore=yes @@ -26108,23 +27303,24 @@ fi if test -n "${r_cv_prog_fc_append_underscore}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${r_cv_prog_fc_append_underscore}" >&5 -$as_echo "${r_cv_prog_fc_append_underscore}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${r_cv_prog_fc_append_underscore}" >&5 +printf "%s\n" "${r_cv_prog_fc_append_underscore}" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 -$as_echo "unknown" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 +printf "%s\n" "unknown" >&6; } as_fn_error $? "cannot use Fortran" "$LINENO" 5 fi if test "${r_cv_prog_fc_append_underscore}" = yes; then -$as_echo "#define HAVE_F77_UNDERSCORE 1" >>confdefs.h +printf "%s\n" "#define HAVE_F77_UNDERSCORE 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} appends extra underscores to external names" >&5 -$as_echo_n "checking whether ${FC} appends extra underscores to external names... " >&6; } -if ${r_cv_prog_fc_append_second_underscore+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${FC} appends extra underscores to external names" >&5 +printf %s "checking whether ${FC} appends extra underscores to external names... " >&6; } +if test ${r_cv_prog_fc_append_second_underscore+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "${ac_cv_fc_mangling}" in *", extra underscore") r_cv_prog_fc_append_second_underscore=yes @@ -26136,25 +27332,26 @@ fi if test -n "${r_cv_prog_fc_append_second_underscore}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${r_cv_prog_fc_append_second_underscore}" >&5 -$as_echo "${r_cv_prog_fc_append_second_underscore}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${r_cv_prog_fc_append_second_underscore}" >&5 +printf "%s\n" "${r_cv_prog_fc_append_second_underscore}" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 -$as_echo "unknown" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 +printf "%s\n" "unknown" >&6; } as_fn_error $? "cannot use Fortran" "$LINENO" 5 fi if test "${r_cv_prog_fc_append_second_underscore}" = yes; then -$as_echo "#define HAVE_F77_EXTRA_UNDERSCORE 1" >>confdefs.h +printf "%s\n" "#define HAVE_F77_EXTRA_UNDERSCORE 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mixed C/Fortran code can be run" >&5 -$as_echo_n "checking whether mixed C/Fortran code can be run... " >&6; } -if ${r_cv_prog_fc_can_run+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mixed C/Fortran code can be run" >&5 +printf %s "checking whether mixed C/Fortran code can be run... " >&6; } +if test ${r_cv_prog_fc_can_run+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftestf.f <&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else if test "${cross_compiling}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know (cross-compiling)" >&5 -$as_echo "don't know (cross-compiling)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: don't know (cross-compiling)" >&5 +printf "%s\n" "don't know (cross-compiling)" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run mixed C/Fortran code" >&5 -$as_echo "$as_me: WARNING: cannot run mixed C/Fortran code" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot run mixed C/Fortran code" >&5 +printf "%s\n" "$as_me: WARNING: cannot run mixed C/Fortran code" >&2;} as_fn_error $? "Maybe check LDFLAGS for paths to Fortran libraries?" "$LINENO" 5 fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} and ${CC} agree on int and double" >&5 -$as_echo_n "checking whether ${FC} and ${CC} agree on int and double... " >&6; } -if ${r_cv_prog_fc_cc_compat+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${FC} and ${CC} agree on int and double" >&5 +printf %s "checking whether ${FC} and ${CC} agree on int and double... " >&6; } +if test ${r_cv_prog_fc_cc_compat+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftestf.f <&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else if test "${cross_compiling}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know (cross-compiling)" >&5 -$as_echo "don't know (cross-compiling)" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: don't know (cross-compiling)" >&5 +printf "%s\n" "don't know (cross-compiling)" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${FC} and ${CC} disagree on int and double" >&5 -$as_echo "$as_me: WARNING: ${FC} and ${CC} disagree on int and double" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${FC} and ${CC} disagree on int and double" >&5 +printf "%s\n" "$as_me: WARNING: ${FC} and ${CC} disagree on int and double" >&2;} as_fn_error $? "Maybe change CFLAGS or FFLAGS?" "$LINENO" 5 fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} and ${CC} agree on double complex" >&5 -$as_echo_n "checking whether ${FC} and ${CC} agree on double complex... " >&6; } -if ${r_cv_prog_fc_cc_compat_complex+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${FC} and ${CC} agree on double complex" >&5 +printf %s "checking whether ${FC} and ${CC} agree on double complex... " >&6; } +if test ${r_cv_prog_fc_cc_compat_complex+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftestf.f <&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_FORTRAN_DOUBLE_COMPLEX 1" >>confdefs.h +printf "%s\n" "#define HAVE_FORTRAN_DOUBLE_COMPLEX 1" >>confdefs.h else warn_fc_cc_double_complex="${FC} and ${CC} disagree on double complex" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_fc_cc_double_complex}" >&5 -$as_echo "$as_me: WARNING: ${warn_fc_cc_double_complex}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_fc_cc_double_complex}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_fc_cc_double_complex}" >&2;} fi @@ -26417,16 +27616,18 @@ OPENMP_FCFLAGS= # Check whether --enable-openmp was given. -if test "${enable_openmp+set}" = set; then : +if test ${enable_openmp+y} +then : enableval=$enable_openmp; fi if test "$enable_openmp" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $FC option to support OpenMP" >&5 -$as_echo_n "checking for $FC option to support OpenMP... " >&6; } -if ${ac_cv_prog_fc_openmp+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $FC option to support OpenMP" >&5 +printf %s "checking for $FC option to support OpenMP... " >&6; } +if test ${ac_cv_prog_fc_openmp+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF program main @@ -26437,9 +27638,10 @@ end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : ac_cv_prog_fc_openmp='none needed' -else +else $as_nop ac_cv_prog_fc_openmp='unsupported' for ac_option in -xopenmp -fopenmp -qopenmp \ -openmp -mp -omp -qsmp=omp -homp \ @@ -26457,10 +27659,11 @@ end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : ac_cv_prog_fc_openmp=$ac_option fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext FCFLAGS=$ac_save_FCFLAGS if test "$ac_cv_prog_fc_openmp" != unsupported; then @@ -26468,11 +27671,11 @@ fi done fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_openmp" >&5 -$as_echo "$ac_cv_prog_fc_openmp" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_openmp" >&5 +printf "%s\n" "$ac_cv_prog_fc_openmp" >&6; } case $ac_cv_prog_fc_openmp in #( "none needed" | unsupported) ;; #( @@ -26493,11 +27696,12 @@ ### *** C++ compiler -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -M for generating dependencies" >&5 -$as_echo_n "checking whether ${CXX} accepts -M for generating dependencies... " >&6; } -if ${r_cv_prog_cxx_m+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -M for generating dependencies" >&5 +printf %s "checking whether ${CXX} accepts -M for generating dependencies... " >&6; } +if test ${r_cv_prog_cxx_m+y} +then : + printf %s "(cached) " >&6 +else $as_nop echo "#include " > conftest.cc if test -n "`${CXX} ${CPPFLAGS} -M conftest.cc 2>/dev/null | grep conftest`"; then r_cv_prog_cxx_m=yes @@ -26505,8 +27709,8 @@ r_cv_prog_cxx_m=no fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_cxx_m" >&5 -$as_echo "$r_cv_prog_cxx_m" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_prog_cxx_m" >&5 +printf "%s\n" "$r_cv_prog_cxx_m" >&6; } r_cxx_rules_frag=Makefrag.cxx @@ -26540,11 +27744,12 @@ ### *** ObjC compiler -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compute ObjC Make dependencies" >&5 -$as_echo_n "checking whether we can compute ObjC Make dependencies... " >&6; } -if ${r_cv_prog_objc_m+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can compute ObjC Make dependencies" >&5 +printf %s "checking whether we can compute ObjC Make dependencies... " >&6; } +if test ${r_cv_prog_objc_m+y} +then : + printf %s "(cached) " >&6 +else $as_nop echo "#include " > conftest.m for prog in "${OBJC} -MM" "${OBJC} -M" "${CPP} -M" "cpp -M"; do if ${prog} ${CPPFLAGS} conftest.m 2>/dev/null | \ @@ -26561,11 +27766,11 @@ r_cv_prog_objc_m="\$(OBJC) -M" fi if test -z "${r_cv_prog_objc_m}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using ${r_cv_prog_objc_m}" >&5 -$as_echo "yes, using ${r_cv_prog_objc_m}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, using ${r_cv_prog_objc_m}" >&5 +printf "%s\n" "yes, using ${r_cv_prog_objc_m}" >&6; } fi r_objc_rules_frag=Makefrag.m @@ -26609,11 +27814,12 @@ # FIXME: we don't check whether the runtime needs -lpthread which is possible # (empirically Linux GNU and Apple runtime don't) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ObjC runtime library" >&5 -$as_echo_n "checking for ObjC runtime library... " >&6; } -if ${r_cv_objc_runtime+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ObjC runtime library" >&5 +printf %s "checking for ObjC runtime library... " >&6; } +if test ${r_cv_objc_runtime+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_OBJCFLAGS="$OBJCFLAGS" save_LIBS="$LIBS" @@ -26637,7 +27843,7 @@ #endif #endif int -main () +main (void) { [Object class]; @@ -26647,30 +27853,32 @@ } _ACEOF -if ac_fn_objc_try_link "$LINENO"; then : +if ac_fn_objc_try_link "$LINENO" +then : r_cv_objc_runtime="-l${libobjc}" break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done LIBS="$save_LIBS" OBJCFLAGS="$save_OBJCFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_objc_runtime" >&5 -$as_echo "$r_cv_objc_runtime" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_objc_runtime" >&5 +printf "%s\n" "$r_cv_objc_runtime" >&6; } OBJC_LIBS="${r_cv_objc_runtime} ${OBJC_LIBS}" if test "z${r_cv_objc_runtime}" != z; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ObjC runtime style" >&5 -$as_echo_n "checking for ObjC runtime style... " >&6; } -if ${r_cv_objc_runtime_style+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ObjC runtime style" >&5 +printf %s "checking for ObjC runtime style... " >&6; } +if test ${r_cv_objc_runtime_style+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_OBJCFLAGS="$OBJCFLAGS" save_LIBS="$LIBS" @@ -26695,7 +27903,7 @@ #endif #endif int -main () +main (void) { id class = ${objc_lookup_class} ("Object"); @@ -26705,7 +27913,8 @@ } _ACEOF -if ac_fn_objc_try_link "$LINENO"; then : +if ac_fn_objc_try_link "$LINENO" +then : if test ${objc_lookup_class} = objc_lookup_class; then r_cv_objc_runtime_style=gnu @@ -26715,25 +27924,25 @@ break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done LIBS="$save_LIBS" OBJCFLAGS="$save_OBJCFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_objc_runtime_style" >&5 -$as_echo "$r_cv_objc_runtime_style" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_objc_runtime_style" >&5 +printf "%s\n" "$r_cv_objc_runtime_style" >&6; } fi if test "${r_cv_objc_runtime_style}" = gnu; then -$as_echo "#define OBJC_GNU_RUNTIME 1" >>confdefs.h +printf "%s\n" "#define OBJC_GNU_RUNTIME 1" >>confdefs.h fi if test "${r_cv_objc_runtime_style}" = next; then -$as_echo "#define OBJC_NEXT_RUNTIME 1" >>confdefs.h +printf "%s\n" "#define OBJC_NEXT_RUNTIME 1" >>confdefs.h fi @@ -26753,11 +27962,12 @@ if test -z "${OBJC}"; then eval r_cv_prog_objc_flag_${ac_safe}=no else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${OBJC} accepts -fobjc-exceptions" >&5 -$as_echo_n "checking whether ${OBJC} accepts -fobjc-exceptions... " >&6; } - if eval \${r_cv_prog_objc_flag_${ac_safe}+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${OBJC} accepts -fobjc-exceptions" >&5 +printf %s "checking whether ${OBJC} accepts -fobjc-exceptions... " >&6; } + if eval test \${r_cv_prog_objc_flag_${ac_safe}+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=m ac_cpp='$OBJCPP $CPPFLAGS' ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -26778,19 +27988,20 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_objc_try_link "$LINENO"; then : +if ac_fn_objc_try_link "$LINENO" +then : eval "r_cv_prog_objc_flag_${ac_safe}=yes" -else +else $as_nop eval "r_cv_prog_objc_flag_${ac_safe}=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext OBJCFLAGS="${r_save_OBJCFLAGS}" ac_ext=c @@ -26803,8 +28014,8 @@ fi if eval "test \"`echo '$r_cv_prog_objc_flag_'$ac_safe`\" = yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } separator="" test -z "${separator}" && separator=" " if test -z "${OBJCFLAGS}"; then @@ -26813,8 +28024,8 @@ OBJCFLAGS="${OBJCFLAGS}${separator}-fobjc-exceptions" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -26829,35 +28040,38 @@ if test -n "${OBJC}"; then r_foundation_cached=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cached Foundation settings" >&5 -$as_echo_n "checking for cached Foundation settings... " >&6; } - if ${r_cv_cache_foundation_flags+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cached Foundation settings" >&5 +printf %s "checking for cached Foundation settings... " >&6; } + if test ${r_cv_cache_foundation_flags+y} +then : + printf %s "(cached) " >&6 +else $as_nop r_cv_cache_foundation_flags=yes r_foundation_cached=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${r_foundation_cached}" >&5 -$as_echo "${r_foundation_cached}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${r_foundation_cached}" >&5 +printf "%s\n" "${r_foundation_cached}" >&6; } # if so, fetch them from the cache if test "${r_foundation_cached}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking FOUNDATION_LIBS" >&5 -$as_echo_n "checking FOUNDATION_LIBS... " >&6; } -if ${r_cv_FOUNDATION_LIBS+:} false; then : - $as_echo_n "(cached) " >&6 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FOUNDATION_LIBS" >&5 +printf %s "checking FOUNDATION_LIBS... " >&6; } +if test ${r_cv_FOUNDATION_LIBS+y} +then : + printf %s "(cached) " >&6 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_FOUNDATION_LIBS" >&5 -$as_echo "$r_cv_FOUNDATION_LIBS" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_FOUNDATION_LIBS" >&5 +printf "%s\n" "$r_cv_FOUNDATION_LIBS" >&6; } FOUNDATION_LIBS="${r_cv_FOUNDATION_LIBS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking FOUNDATION_CPPFLAGS" >&5 -$as_echo_n "checking FOUNDATION_CPPFLAGS... " >&6; } -if ${r_cv_FOUNDATION_CPPFLAGS+:} false; then : - $as_echo_n "(cached) " >&6 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FOUNDATION_CPPFLAGS" >&5 +printf %s "checking FOUNDATION_CPPFLAGS... " >&6; } +if test ${r_cv_FOUNDATION_CPPFLAGS+y} +then : + printf %s "(cached) " >&6 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_FOUNDATION_CPPFLAGS" >&5 -$as_echo "$r_cv_FOUNDATION_CPPFLAGS" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_FOUNDATION_CPPFLAGS" >&5 +printf "%s\n" "$r_cv_FOUNDATION_CPPFLAGS" >&6; } FOUNDATION_CPPFLAGS="${r_cv_FOUNDATION_CPPFLAGS}" else @@ -26872,8 +28086,8 @@ LIBS="${LIBS} ${FOUNDATION_LIBS}" CPPFLAGS="${CPPFLAGS} ${FOUNDATION_CPPFLAGS}" - if test -n "whether default Foundation framework works"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether default Foundation framework works" >&5 -$as_echo_n "checking whether default Foundation framework works... " >&6; }; fi + if test -n "whether default Foundation framework works"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether default Foundation framework works" >&5 +printf %s "checking whether default Foundation framework works... " >&6; }; fi ac_objc_foundation_works=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -26889,7 +28103,7 @@ #endif #endif int -main () +main (void) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; @@ -26901,18 +28115,19 @@ return 0; } _ACEOF -if ac_fn_objc_try_link "$LINENO"; then : +if ac_fn_objc_try_link "$LINENO" +then : ac_objc_foundation_works=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "${ac_objc_foundation_works}" = yes; then - if test -n "whether default Foundation framework works"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; }; fi + if test -n "whether default Foundation framework works"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; }; fi else - if test -n "whether default Foundation framework works"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; }; fi + if test -n "whether default Foundation framework works"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; }; fi fi @@ -26920,8 +28135,8 @@ LIBS="${rof_save_LIBS} -framework Foundation" CPPFLAGS="${rof_save_CPPFLAGS}" - if test -n "whether -framework Foundation works"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -framework Foundation works" >&5 -$as_echo_n "checking whether -framework Foundation works... " >&6; }; fi + if test -n "whether -framework Foundation works"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -framework Foundation works" >&5 +printf %s "checking whether -framework Foundation works... " >&6; }; fi ac_objc_foundation_works=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -26937,7 +28152,7 @@ #endif #endif int -main () +main (void) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; @@ -26949,18 +28164,19 @@ return 0; } _ACEOF -if ac_fn_objc_try_link "$LINENO"; then : +if ac_fn_objc_try_link "$LINENO" +then : ac_objc_foundation_works=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "${ac_objc_foundation_works}" = yes; then - if test -n "whether -framework Foundation works"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; }; fi + if test -n "whether -framework Foundation works"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; }; fi FOUNDATION_LIBS='-framework Foundation' else - if test -n "whether -framework Foundation works"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; }; fi + if test -n "whether -framework Foundation works"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; }; fi fi @@ -26968,8 +28184,8 @@ if test "${ac_objc_foundation_works}" != yes; then LIBS="${rof_save_LIBS} -lFoundation ${OBJC_LIBS}" - if test -n "whether libFoundation works"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libFoundation works" >&5 -$as_echo_n "checking whether libFoundation works... " >&6; }; fi + if test -n "whether libFoundation works"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libFoundation works" >&5 +printf %s "checking whether libFoundation works... " >&6; }; fi ac_objc_foundation_works=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -26985,7 +28201,7 @@ #endif #endif int -main () +main (void) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; @@ -26997,18 +28213,19 @@ return 0; } _ACEOF -if ac_fn_objc_try_link "$LINENO"; then : +if ac_fn_objc_try_link "$LINENO" +then : ac_objc_foundation_works=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "${ac_objc_foundation_works}" = yes; then - if test -n "whether libFoundation works"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; }; fi + if test -n "whether libFoundation works"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; }; fi FOUNDATION_LIBS='-lFoundation' else - if test -n "whether libFoundation works"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; }; fi + if test -n "whether libFoundation works"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; }; fi fi @@ -27016,19 +28233,19 @@ if test "${ac_objc_foundation_works}" != yes; then LIBS="${rof_save_LIBS}" ac_working_gnustep=no - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUstep" >&5 -$as_echo_n "checking for GNUstep... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNUstep" >&5 +printf %s "checking for GNUstep... " >&6; } if test -z "${GNUSTEP_SYSTEM_ROOT}"; then for dir in /usr/lib/GNUstep /usr/local/lib/GNUstep; do if test -e "${dir}/System/Makefiles"; then GNUSTEP_SYSTEM_ROOT="${dir}/System"; break; fi done fi if test -z "${GNUSTEP_SYSTEM_ROOT}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: in ${GNUSTEP_SYSTEM_ROOT}" >&5 -$as_echo "in ${GNUSTEP_SYSTEM_ROOT}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in ${GNUSTEP_SYSTEM_ROOT}" >&5 +printf "%s\n" "in ${GNUSTEP_SYSTEM_ROOT}" >&6; } # this is a hack - we extract the relevant flags from GNUstep's makefiles. # in order to do that, we must setup the entire GNUstep environment which we do # in a separate script as to not pollute configure's environment @@ -27052,8 +28269,8 @@ CPPFLAGS="${rof_save_CPPFLAGS} ${GNUSTEP_CPPFLAGS}" rm -f gnusteptest.sh gnustepmake - if test -n "whether GNUstep works"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNUstep works" >&5 -$as_echo_n "checking whether GNUstep works... " >&6; }; fi + if test -n "whether GNUstep works"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GNUstep works" >&5 +printf %s "checking whether GNUstep works... " >&6; }; fi ac_objc_foundation_works=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -27069,7 +28286,7 @@ #endif #endif int -main () +main (void) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; @@ -27081,20 +28298,21 @@ return 0; } _ACEOF -if ac_fn_objc_try_link "$LINENO"; then : +if ac_fn_objc_try_link "$LINENO" +then : ac_objc_foundation_works=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "${ac_objc_foundation_works}" = yes; then - if test -n "whether GNUstep works"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; }; fi + if test -n "whether GNUstep works"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; }; fi FOUNDATION_CPPFLAGS="${GNUSTEP_CPPFLAGS}" FOUNDATION_LIBS="${GNUSTEP_LIBS}" else - if test -n "whether GNUstep works"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; }; fi + if test -n "whether GNUstep works"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; }; fi fi @@ -27104,15 +28322,17 @@ CPPFLAGS="${rof_save_CPPFLAGS}" - if ${r_cv_FOUNDATION_CPPFLAGS+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${r_cv_FOUNDATION_CPPFLAGS+y} +then : + printf %s "(cached) " >&6 +else $as_nop r_cv_FOUNDATION_CPPFLAGS="${FOUNDATION_CPPFLAGS}" fi - if ${r_cv_FOUNDATION_LIBS+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${r_cv_FOUNDATION_LIBS+y} +then : + printf %s "(cached) " >&6 +else $as_nop r_cv_FOUNDATION_LIBS="${FOUNDATION_LIBS}" fi @@ -27128,15 +28348,16 @@ fi # -n ${OBJC} - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Foundation implementation" >&5 -$as_echo_n "checking for working Foundation implementation... " >&6; } -if ${r_cv_objc_foundation+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working Foundation implementation" >&5 +printf %s "checking for working Foundation implementation... " >&6; } +if test ${r_cv_objc_foundation+y} +then : + printf %s "(cached) " >&6 +else $as_nop r_cv_objc_foundation="${ac_objc_foundation}" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_objc_foundation" >&5 -$as_echo "$r_cv_objc_foundation" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_objc_foundation" >&5 +printf "%s\n" "$r_cv_objc_foundation" >&6; } ;; esac @@ -27155,16 +28376,17 @@ case "${host_os}" in aix*) - $as_echo "#define HAVE_NO_SYMBOL_UNDERSCORE 1" >>confdefs.h + printf "%s\n" "#define HAVE_NO_SYMBOL_UNDERSCORE 1" >>confdefs.h if test "${GCC}" = yes; then if test "x${OBJECT_MODE}" = "x64"; then ac_safe=_mminimal_toc -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mminimal-toc" >&5 -$as_echo_n "checking whether ${CC} accepts -mminimal-toc... " >&6; } -if eval \${r_cv_prog_cc_flag_${ac_safe}+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mminimal-toc" >&5 +printf %s "checking whether ${CC} accepts -mminimal-toc... " >&6; } +if eval test \${r_cv_prog_cc_flag_${ac_safe}+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -27185,19 +28407,20 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "r_cv_prog_cc_flag_${ac_safe}=yes" -else +else $as_nop eval "r_cv_prog_cc_flag_${ac_safe}=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="${r_save_CFLAGS}" ac_ext=c @@ -27210,8 +28433,8 @@ fi if eval "test \"`echo '$r_cv_prog_cc_flag_'$ac_safe`\" = yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } separator="" test -z "${separator}" && separator=" " if test -z "${R_XTRA_CFLAGS}"; then @@ -27220,17 +28443,18 @@ R_XTRA_CFLAGS="${R_XTRA_CFLAGS}${separator}-mminimal-toc" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi else ac_safe=_mno_fp_in_toc -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mno-fp-in-toc" >&5 -$as_echo_n "checking whether ${CC} accepts -mno-fp-in-toc... " >&6; } -if eval \${r_cv_prog_cc_flag_${ac_safe}+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -mno-fp-in-toc" >&5 +printf %s "checking whether ${CC} accepts -mno-fp-in-toc... " >&6; } +if eval test \${r_cv_prog_cc_flag_${ac_safe}+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -27251,19 +28475,20 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "r_cv_prog_cc_flag_${ac_safe}=yes" -else +else $as_nop eval "r_cv_prog_cc_flag_${ac_safe}=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="${r_save_CFLAGS}" ac_ext=c @@ -27276,8 +28501,8 @@ fi if eval "test \"`echo '$r_cv_prog_cc_flag_'$ac_safe`\" = yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } separator="" test -z "${separator}" && separator=" " if test -z "${R_XTRA_CFLAGS}"; then @@ -27286,8 +28511,8 @@ R_XTRA_CFLAGS="${R_XTRA_CFLAGS}${separator}-mno-fp-in-toc" fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi @@ -27295,22 +28520,22 @@ ;; darwin*) ## which these days mean macOS - $as_echo "#define HAVE_NO_SYMBOL_UNDERSCORE 1" >>confdefs.h + printf "%s\n" "#define HAVE_NO_SYMBOL_UNDERSCORE 1" >>confdefs.h ;; hpux*) - $as_echo "#define HAVE_NO_SYMBOL_UNDERSCORE 1" >>confdefs.h + printf "%s\n" "#define HAVE_NO_SYMBOL_UNDERSCORE 1" >>confdefs.h ;; ## We no longer special-case Intel compilers on Linux: ## what we had dated from Nov 2005. mingw*|windows*|winnt) - $as_echo "#define HAVE_NO_SYMBOL_UNDERSCORE 1" >>confdefs.h + printf "%s\n" "#define HAVE_NO_SYMBOL_UNDERSCORE 1" >>confdefs.h ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then - $as_echo "#define HAVE_NO_SYMBOL_UNDERSCORE 1" >>confdefs.h + printf "%s\n" "#define HAVE_NO_SYMBOL_UNDERSCORE 1" >>confdefs.h fi ;; @@ -27327,7 +28552,7 @@ ;; *) SAFE_FFLAGS="${FFLAGS}" - :: + ;; esac else SAFE_FFLAGS="${FFLAGS}" @@ -27338,11 +28563,12 @@ ## -fno-optimize-sibling-calls to avoid recent gfortran optimizations ## that break with LAPACK/BLAS-style passing of length-1 strings ## (without hidden arguments giving their lengths). -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if need -fno-optimize-sibling-calls for gfortran" >&5 -$as_echo_n "checking if need -fno-optimize-sibling-calls for gfortran... " >&6; } -if ${r_cv_have_gfortran7+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if need -fno-optimize-sibling-calls for gfortran" >&5 +printf %s "checking if need -fno-optimize-sibling-calls for gfortran... " >&6; } +if test ${r_cv_have_gfortran7+y} +then : + printf %s "(cached) " >&6 +else $as_nop r_cv_have_gfortran7=no if test "x${GFC}" = xyes; then gfortran_version_maj=`echo "__GNUC__" | ${FC} -E -P - | ${SED} 's/ //g'` @@ -27354,23 +28580,24 @@ if test "x${r_cv_have_gfortran7}" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } R_XTRA_FFLAGS="-fno-optimize-sibling-calls" else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi ### type for Fortran 'hidden' character lengths, if any -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of 'hidden' Fortran character lengths" >&5 -$as_echo_n "checking for type of 'hidden' Fortran character lengths... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for type of 'hidden' Fortran character lengths" >&5 +printf %s "checking for type of 'hidden' Fortran character lengths... " >&6; } if test "x${FC_LEN_T}" != "x"; then fc_len_t=${FC_LEN_T} else - if ${r_cv_prog_fc_char_len_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${r_cv_prog_fc_char_len_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftestf.f <&5 -$as_echo "${fc_len_t}" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${fc_len_t}" >&5 +printf "%s\n" "${fc_len_t}" >&6; } if test "x${fc_len_t}" != "xunknown"; then -cat >>confdefs.h <<_ACEOF -#define FC_LEN_T ${fc_len_t} -_ACEOF +printf "%s\n" "#define FC_LEN_T ${fc_len_t}" >>confdefs.h fi @@ -27582,11 +28807,12 @@ done # Extract the first word of "xmkmf", so it can be a program name with args. set dummy xmkmf; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_XMKMF+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_XMKMF+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $XMKMF in [\\/]* | ?:[\\/]*) ac_cv_path_XMKMF="$XMKMF" # Let the user override the test with a path. @@ -27596,11 +28822,15 @@ for as_dir in ${r_xtra_path} do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_XMKMF="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_XMKMF="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -27612,11 +28842,11 @@ fi XMKMF=$ac_cv_path_XMKMF if test -n "$XMKMF"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMKMF" >&5 -$as_echo "$XMKMF" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMKMF" >&5 +printf "%s\n" "$XMKMF" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -27739,11 +28969,12 @@ ## dylib_undefined_allowed=yes ## we have to test this in case an outdated linker or non-Apple compiler is used - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports dynamic lookup" >&5 -$as_echo_n "checking whether linker supports dynamic lookup... " >&6; } - if ${r_cv_has_dynlookup+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether linker supports dynamic lookup" >&5 +printf %s "checking whether linker supports dynamic lookup... " >&6; } + if test ${r_cv_has_dynlookup+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.c <&5 if ${CC} ${CFLAGS} conftest.c ${shlib_ldflags} -o libconftest${DYLIB_EXT} ${LIBS} 1>&5 2>&5; then r_cv_has_dynlookup=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else r_cv_has_dynlookup=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please consider updating your Xcode tools. ***" >&5 -$as_echo "$as_me: WARNING: *** Please consider updating your Xcode tools. ***" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Please consider updating your Xcode tools. ***" >&5 +printf "%s\n" "$as_me: WARNING: *** Please consider updating your Xcode tools. ***" >&2;} fi rm -f libconftest${DYLIB_EXT} conftest.c fi if test -n "${FORCE_FLAT_NAMESPACE}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of flat namespace is requested by user." >&5 -$as_echo "$as_me: WARNING: Use of flat namespace is requested by user." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Use of flat namespace is requested by user." >&5 +printf "%s\n" "$as_me: WARNING: Use of flat namespace is requested by user." >&2;} r_cv_has_dynlookup=forced-no fi if test "${r_cv_has_dynlookup}" != "yes"; then @@ -27958,8 +29189,8 @@ aix*|mingw*) ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I could not determine CPICFLAGS." >&5 -$as_echo "$as_me: WARNING: I could not determine CPICFLAGS." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: I could not determine CPICFLAGS." >&5 +printf "%s\n" "$as_me: WARNING: I could not determine CPICFLAGS." >&2;} as_fn_error $? "See the file doc/html/R-admin.html for more information." "$LINENO" 5 ;; esac @@ -27971,8 +29202,8 @@ aix*|mingw*) ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I could not determine FPICFLAGS." >&5 -$as_echo "$as_me: WARNING: I could not determine FPICFLAGS." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: I could not determine FPICFLAGS." >&5 +printf "%s\n" "$as_me: WARNING: I could not determine FPICFLAGS." >&2;} as_fn_error $? "See the file doc/html/R-admin.html for more information." "$LINENO" 5 ;; esac @@ -28005,8 +29236,8 @@ fi fi if test -z "${SHLIB_LDFLAGS}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I could not determine SHLIB_LDFLAGS." >&5 -$as_echo "$as_me: WARNING: I could not determine SHLIB_LDFLAGS." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: I could not determine SHLIB_LDFLAGS." >&5 +printf "%s\n" "$as_me: WARNING: I could not determine SHLIB_LDFLAGS." >&2;} as_fn_error $? "See the file doc/html/R-admin.html for more information." "$LINENO" 5 fi @@ -28027,8 +29258,8 @@ fi if test -n "${CXX}" -a -z "${SHLIB_CXXLDFLAGS}"; then warn_shlib_cxxldflags="I could not determine SHLIB_CXXLDFLAGS" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_shlib_cxxldflags}" >&5 -$as_echo "$as_me: WARNING: ${warn_shlib_cxxldflags}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_shlib_cxxldflags}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_shlib_cxxldflags}" >&2;} fi ## Step 6. We may need flags different from SHLIB_LDFLAGS and SHLIB_EXT @@ -28110,9 +29341,7 @@ -cat >>confdefs.h <<_ACEOF -#define SHLIB_EXT "${SHLIB_EXT}" -_ACEOF +printf "%s\n" "#define SHLIB_EXT \"${SHLIB_EXT}\"" >>confdefs.h if test "x${use_exportfiles}" = xyes; then USE_EXPORTFILES_TRUE= @@ -28157,11 +29386,12 @@ switch="" if test "x${CXX11STD}" != x; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features" >&5 -$as_echo_n "checking whether $CXX supports C++11 features... " >&6; } -if ${ax_cv_cxx_compile_cxx11+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features" >&5 +printf %s "checking whether $CXX supports C++11 features... " >&6; } +if test ${ax_cv_cxx_compile_cxx11+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus @@ -28175,6 +29405,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -28191,11 +29422,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -28250,7 +29483,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -28449,15 +29682,16 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ax_cv_cxx_compile_cxx11=yes -else +else $as_nop ax_cv_cxx_compile_cxx11=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 -$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 +printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; } if test x$ax_cv_cxx_compile_cxx11 = xyes; then ac_success=yes fi @@ -28467,12 +29701,13 @@ if test x$ac_success = xno; then for alternative in ${ax_cxx_compile_alternatives}; do switch="-std=gnu++${alternative}" - cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 +printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; } +if eval test \${$cachevar+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -28488,6 +29723,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -28504,11 +29740,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -28563,7 +29801,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -28762,17 +30000,18 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval $cachevar=yes -else +else $as_nop eval $cachevar=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXX="$ac_save_CXX" fi eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXX="$CXX $switch" if test -n "$CXXCPP" ; then @@ -28787,12 +30026,13 @@ if test x$ac_success = xno; then for alternative in ${ax_cxx_compile_alternatives}; do for switch in -std=c++${alternative} -std=sun${alternative}; do - cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 +printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; } +if eval test \${$cachevar+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -28808,6 +30048,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -28824,11 +30065,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -28883,7 +30126,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -29082,17 +30325,18 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval $cachevar=yes -else +else $as_nop eval $cachevar=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXX="$ac_save_CXX" fi eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXX="$CXX $switch" if test -n "$CXXCPP" ; then @@ -29109,11 +30353,12 @@ fi if test x$ac_success = xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 -$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } -if ${ax_cv_cxx_compile_cxx11+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 +printf %s "checking whether $CXX supports C++11 features by default... " >&6; } +if test ${ax_cv_cxx_compile_cxx11+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus @@ -29127,6 +30372,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -29143,11 +30389,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -29202,7 +30450,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -29401,15 +30649,16 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ax_cv_cxx_compile_cxx11=yes -else +else $as_nop ax_cv_cxx_compile_cxx11=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 -$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 +printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; } if test x$ax_cv_cxx_compile_cxx11 = xyes; then ac_success=yes fi @@ -29428,8 +30677,8 @@ fi if test x$ac_success = xno; then HAVE_CXX11=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 -$as_echo "$as_me: No compiler with C++11 support was found" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 +printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;} else HAVE_CXX11=1 fi @@ -29497,11 +30746,12 @@ switch="" if test "x${CXX14STD}" != x; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features" >&5 -$as_echo_n "checking whether $CXX supports C++14 features... " >&6; } -if ${ax_cv_cxx_compile_cxx14+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features" >&5 +printf %s "checking whether $CXX supports C++14 features... " >&6; } +if test ${ax_cv_cxx_compile_cxx14+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus @@ -29515,6 +30765,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -29531,11 +30782,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -29590,7 +30843,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -29894,15 +31147,16 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ax_cv_cxx_compile_cxx14=yes -else +else $as_nop ax_cv_cxx_compile_cxx14=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5 -$as_echo "$ax_cv_cxx_compile_cxx14" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5 +printf "%s\n" "$ax_cv_cxx_compile_cxx14" >&6; } if test x$ax_cv_cxx_compile_cxx14 = xyes; then ac_success=yes fi @@ -29912,12 +31166,13 @@ if test x$ac_success = xno; then for alternative in ${ax_cxx_compile_alternatives}; do switch="-std=gnu++${alternative}" - cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 +printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; } +if eval test \${$cachevar+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -29933,6 +31188,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -29949,11 +31205,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -30008,7 +31266,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -30312,17 +31570,18 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval $cachevar=yes -else +else $as_nop eval $cachevar=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXX="$ac_save_CXX" fi eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXX="$CXX $switch" if test -n "$CXXCPP" ; then @@ -30337,12 +31596,13 @@ if test x$ac_success = xno; then for alternative in ${ax_cxx_compile_alternatives}; do for switch in -std=c++${alternative} -std=sun${alternative}; do - cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 +printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; } +if eval test \${$cachevar+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30358,6 +31618,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -30374,11 +31635,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -30433,7 +31696,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -30737,17 +32000,18 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval $cachevar=yes -else +else $as_nop eval $cachevar=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXX="$ac_save_CXX" fi eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXX="$CXX $switch" if test -n "$CXXCPP" ; then @@ -30764,11 +32028,12 @@ fi if test x$ac_success = xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5 -$as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; } -if ${ax_cv_cxx_compile_cxx14+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5 +printf %s "checking whether $CXX supports C++14 features by default... " >&6; } +if test ${ax_cv_cxx_compile_cxx14+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus @@ -30782,6 +32047,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -30798,11 +32064,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -30857,7 +32125,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -31161,15 +32429,16 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ax_cv_cxx_compile_cxx14=yes -else +else $as_nop ax_cv_cxx_compile_cxx14=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5 -$as_echo "$ax_cv_cxx_compile_cxx14" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5 +printf "%s\n" "$ax_cv_cxx_compile_cxx14" >&6; } if test x$ax_cv_cxx_compile_cxx14 = xyes; then ac_success=yes fi @@ -31188,8 +32457,8 @@ fi if test x$ac_success = xno; then HAVE_CXX14=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5 -$as_echo "$as_me: No compiler with C++14 support was found" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5 +printf "%s\n" "$as_me: No compiler with C++14 support was found" >&6;} else HAVE_CXX14=1 fi @@ -31257,11 +32526,12 @@ switch="" if test "x${CXX17STD}" != x; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features" >&5 -$as_echo_n "checking whether $CXX supports C++17 features... " >&6; } -if ${ax_cv_cxx_compile_cxx17+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features" >&5 +printf %s "checking whether $CXX supports C++17 features... " >&6; } +if test ${ax_cv_cxx_compile_cxx17+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus @@ -31273,6 +32543,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -31289,11 +32560,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -31348,7 +32621,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -31651,23 +32924,6 @@ -/* We don't want compiler-specific tests for R so these conditional - tests are commented out. - - For C++17 features supported by compiler see - https://gcc.gnu.org/projects/cxx-status.html#cxx1z for gcc - http://clang.llvm.org/cxx_status.html for clang - http://en.cppreference.com/w/cpp/compiler_support for an overview - -#if defined(__clang__) - #define REALLY_CLANG -#else - #if defined(__GNUC__) - #define REALLY_GCC - #endif -#endif -*/ - #include #include #include @@ -31675,18 +32931,12 @@ namespace cxx17 { -/* Not listed as supported by clang 4 - MTP -#if !defined(REALLY_CLANG) namespace test_constexpr_lambdas { - // TODO: test it with clang++ from git - constexpr int foo = [](){return 42;}(); } -#endif // !defined(REALLY_CLANG) -*/ namespace test::nested_namespace::definitions { @@ -31921,13 +33171,9 @@ } -/* P0091R3 not supported by clang 4.0.0 - MTP -#if !defined(REALLY_CLANG) namespace test_template_argument_deduction_for_class_templates { - // TODO: test it with clang++ from git - template struct pair { @@ -31946,8 +33192,6 @@ } } -#endif // !defined(REALLY_CLANG) -*/ namespace test_non_type_auto_template_parameters { @@ -31961,14 +33205,9 @@ } -/* P0217R3 should be supported in clang 4.0.0, but test code dumps core - In addition, gcc 7.0.1 fails on the last test - MTP -#if !defined(REALLY_CLANG) namespace test_structured_bindings { - // TODO: test it with clang++ from git - int arr[2] = { 1, 2 }; std::pair pr = { 1, 2 }; @@ -32000,15 +33239,10 @@ const auto [ x3, y3 ] = f3(); } -#endif // !defined(REALLY_CLANG) -*/ - // P0012R1: clang >= 4 namespace test_exception_spec_type_system { - // TODO: test it with clang++ from git - struct Good {}; struct Bad {}; @@ -32054,15 +33288,16 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ax_cv_cxx_compile_cxx17=yes -else +else $as_nop ax_cv_cxx_compile_cxx17=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5 -$as_echo "$ax_cv_cxx_compile_cxx17" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5 +printf "%s\n" "$ax_cv_cxx_compile_cxx17" >&6; } if test x$ax_cv_cxx_compile_cxx17 = xyes; then ac_success=yes fi @@ -32072,12 +33307,13 @@ if test x$ac_success = xno; then for alternative in ${ax_cxx_compile_alternatives}; do switch="-std=gnu++${alternative}" - cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 +printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; } +if eval test \${$cachevar+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32091,6 +33327,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -32107,11 +33344,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -32166,7 +33405,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -32469,23 +33708,6 @@ -/* We don't want compiler-specific tests for R so these conditional - tests are commented out. - - For C++17 features supported by compiler see - https://gcc.gnu.org/projects/cxx-status.html#cxx1z for gcc - http://clang.llvm.org/cxx_status.html for clang - http://en.cppreference.com/w/cpp/compiler_support for an overview - -#if defined(__clang__) - #define REALLY_CLANG -#else - #if defined(__GNUC__) - #define REALLY_GCC - #endif -#endif -*/ - #include #include #include @@ -32493,18 +33715,12 @@ namespace cxx17 { -/* Not listed as supported by clang 4 - MTP -#if !defined(REALLY_CLANG) namespace test_constexpr_lambdas { - // TODO: test it with clang++ from git - constexpr int foo = [](){return 42;}(); } -#endif // !defined(REALLY_CLANG) -*/ namespace test::nested_namespace::definitions { @@ -32739,13 +33955,9 @@ } -/* P0091R3 not supported by clang 4.0.0 - MTP -#if !defined(REALLY_CLANG) namespace test_template_argument_deduction_for_class_templates { - // TODO: test it with clang++ from git - template struct pair { @@ -32764,8 +33976,6 @@ } } -#endif // !defined(REALLY_CLANG) -*/ namespace test_non_type_auto_template_parameters { @@ -32779,14 +33989,9 @@ } -/* P0217R3 should be supported in clang 4.0.0, but test code dumps core - In addition, gcc 7.0.1 fails on the last test - MTP -#if !defined(REALLY_CLANG) namespace test_structured_bindings { - // TODO: test it with clang++ from git - int arr[2] = { 1, 2 }; std::pair pr = { 1, 2 }; @@ -32818,15 +34023,10 @@ const auto [ x3, y3 ] = f3(); } -#endif // !defined(REALLY_CLANG) -*/ - // P0012R1: clang >= 4 namespace test_exception_spec_type_system { - // TODO: test it with clang++ from git - struct Good {}; struct Bad {}; @@ -32872,17 +34072,18 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval $cachevar=yes -else +else $as_nop eval $cachevar=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXX="$ac_save_CXX" fi eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXX="$CXX $switch" if test -n "$CXXCPP" ; then @@ -32897,12 +34098,13 @@ if test x$ac_success = xno; then for alternative in ${ax_cxx_compile_alternatives}; do for switch in -std=c++${alternative} -std=sun${alternative}; do - cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 +printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; } +if eval test \${$cachevar+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32916,6 +34118,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -32932,11 +34135,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -32991,7 +34196,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -33294,23 +34499,6 @@ -/* We don't want compiler-specific tests for R so these conditional - tests are commented out. - - For C++17 features supported by compiler see - https://gcc.gnu.org/projects/cxx-status.html#cxx1z for gcc - http://clang.llvm.org/cxx_status.html for clang - http://en.cppreference.com/w/cpp/compiler_support for an overview - -#if defined(__clang__) - #define REALLY_CLANG -#else - #if defined(__GNUC__) - #define REALLY_GCC - #endif -#endif -*/ - #include #include #include @@ -33318,18 +34506,12 @@ namespace cxx17 { -/* Not listed as supported by clang 4 - MTP -#if !defined(REALLY_CLANG) namespace test_constexpr_lambdas { - // TODO: test it with clang++ from git - constexpr int foo = [](){return 42;}(); } -#endif // !defined(REALLY_CLANG) -*/ namespace test::nested_namespace::definitions { @@ -33564,13 +34746,9 @@ } -/* P0091R3 not supported by clang 4.0.0 - MTP -#if !defined(REALLY_CLANG) namespace test_template_argument_deduction_for_class_templates { - // TODO: test it with clang++ from git - template struct pair { @@ -33589,8 +34767,6 @@ } } -#endif // !defined(REALLY_CLANG) -*/ namespace test_non_type_auto_template_parameters { @@ -33604,14 +34780,9 @@ } -/* P0217R3 should be supported in clang 4.0.0, but test code dumps core - In addition, gcc 7.0.1 fails on the last test - MTP -#if !defined(REALLY_CLANG) namespace test_structured_bindings { - // TODO: test it with clang++ from git - int arr[2] = { 1, 2 }; std::pair pr = { 1, 2 }; @@ -33643,15 +34814,10 @@ const auto [ x3, y3 ] = f3(); } -#endif // !defined(REALLY_CLANG) -*/ - // P0012R1: clang >= 4 namespace test_exception_spec_type_system { - // TODO: test it with clang++ from git - struct Good {}; struct Bad {}; @@ -33697,17 +34863,18 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval $cachevar=yes -else +else $as_nop eval $cachevar=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXX="$ac_save_CXX" fi eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXX="$CXX $switch" if test -n "$CXXCPP" ; then @@ -33724,11 +34891,12 @@ fi if test x$ac_success = xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5 -$as_echo_n "checking whether $CXX supports C++17 features by default... " >&6; } -if ${ax_cv_cxx_compile_cxx17+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5 +printf %s "checking whether $CXX supports C++17 features by default... " >&6; } +if test ${ax_cv_cxx_compile_cxx17+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus @@ -33740,6 +34908,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -33756,11 +34925,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -33815,7 +34986,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -34118,23 +35289,6 @@ -/* We don't want compiler-specific tests for R so these conditional - tests are commented out. - - For C++17 features supported by compiler see - https://gcc.gnu.org/projects/cxx-status.html#cxx1z for gcc - http://clang.llvm.org/cxx_status.html for clang - http://en.cppreference.com/w/cpp/compiler_support for an overview - -#if defined(__clang__) - #define REALLY_CLANG -#else - #if defined(__GNUC__) - #define REALLY_GCC - #endif -#endif -*/ - #include #include #include @@ -34142,18 +35296,12 @@ namespace cxx17 { -/* Not listed as supported by clang 4 - MTP -#if !defined(REALLY_CLANG) namespace test_constexpr_lambdas { - // TODO: test it with clang++ from git - constexpr int foo = [](){return 42;}(); } -#endif // !defined(REALLY_CLANG) -*/ namespace test::nested_namespace::definitions { @@ -34388,13 +35536,9 @@ } -/* P0091R3 not supported by clang 4.0.0 - MTP -#if !defined(REALLY_CLANG) namespace test_template_argument_deduction_for_class_templates { - // TODO: test it with clang++ from git - template struct pair { @@ -34413,8 +35557,6 @@ } } -#endif // !defined(REALLY_CLANG) -*/ namespace test_non_type_auto_template_parameters { @@ -34428,14 +35570,9 @@ } -/* P0217R3 should be supported in clang 4.0.0, but test code dumps core - In addition, gcc 7.0.1 fails on the last test - MTP -#if !defined(REALLY_CLANG) namespace test_structured_bindings { - // TODO: test it with clang++ from git - int arr[2] = { 1, 2 }; std::pair pr = { 1, 2 }; @@ -34467,15 +35604,10 @@ const auto [ x3, y3 ] = f3(); } -#endif // !defined(REALLY_CLANG) -*/ - // P0012R1: clang >= 4 namespace test_exception_spec_type_system { - // TODO: test it with clang++ from git - struct Good {}; struct Bad {}; @@ -34521,15 +35653,16 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ax_cv_cxx_compile_cxx17=yes -else +else $as_nop ax_cv_cxx_compile_cxx17=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5 -$as_echo "$ax_cv_cxx_compile_cxx17" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5 +printf "%s\n" "$ax_cv_cxx_compile_cxx17" >&6; } if test x$ax_cv_cxx_compile_cxx17 = xyes; then ac_success=yes fi @@ -34548,8 +35681,8 @@ fi if test x$ac_success = xno; then HAVE_CXX17=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5 -$as_echo "$as_me: No compiler with C++17 support was found" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5 +printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;} else HAVE_CXX17=1 fi @@ -34617,11 +35750,12 @@ switch="" if test "x${CXX20STD}" != x; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features" >&5 -$as_echo_n "checking whether $CXX supports C++20 features... " >&6; } -if ${ax_cv_cxx_compile_cxx20+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features" >&5 +printf %s "checking whether $CXX supports C++20 features... " >&6; } +if test ${ax_cv_cxx_compile_cxx20+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus @@ -34633,6 +35767,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -34649,11 +35784,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -34708,7 +35845,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -35011,23 +36148,6 @@ -/* We don't want compiler-specific tests for R so these conditional - tests are commented out. - - For C++17 features supported by compiler see - https://gcc.gnu.org/projects/cxx-status.html#cxx1z for gcc - http://clang.llvm.org/cxx_status.html for clang - http://en.cppreference.com/w/cpp/compiler_support for an overview - -#if defined(__clang__) - #define REALLY_CLANG -#else - #if defined(__GNUC__) - #define REALLY_GCC - #endif -#endif -*/ - #include #include #include @@ -35035,18 +36155,12 @@ namespace cxx17 { -/* Not listed as supported by clang 4 - MTP -#if !defined(REALLY_CLANG) namespace test_constexpr_lambdas { - // TODO: test it with clang++ from git - constexpr int foo = [](){return 42;}(); } -#endif // !defined(REALLY_CLANG) -*/ namespace test::nested_namespace::definitions { @@ -35281,13 +36395,9 @@ } -/* P0091R3 not supported by clang 4.0.0 - MTP -#if !defined(REALLY_CLANG) namespace test_template_argument_deduction_for_class_templates { - // TODO: test it with clang++ from git - template struct pair { @@ -35306,8 +36416,6 @@ } } -#endif // !defined(REALLY_CLANG) -*/ namespace test_non_type_auto_template_parameters { @@ -35321,14 +36429,9 @@ } -/* P0217R3 should be supported in clang 4.0.0, but test code dumps core - In addition, gcc 7.0.1 fails on the last test - MTP -#if !defined(REALLY_CLANG) namespace test_structured_bindings { - // TODO: test it with clang++ from git - int arr[2] = { 1, 2 }; std::pair pr = { 1, 2 }; @@ -35360,15 +36463,10 @@ const auto [ x3, y3 ] = f3(); } -#endif // !defined(REALLY_CLANG) -*/ - // P0012R1: clang >= 4 namespace test_exception_spec_type_system { - // TODO: test it with clang++ from git - struct Good {}; struct Bad {}; @@ -35414,15 +36512,16 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ax_cv_cxx_compile_cxx20=yes -else +else $as_nop ax_cv_cxx_compile_cxx20=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx20" >&5 -$as_echo "$ax_cv_cxx_compile_cxx20" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx20" >&5 +printf "%s\n" "$ax_cv_cxx_compile_cxx20" >&6; } if test x$ax_cv_cxx_compile_cxx20 = xyes; then ac_success=yes fi @@ -35432,12 +36531,13 @@ if test x$ac_success = xno; then for alternative in ${ax_cxx_compile_alternatives}; do switch="-std=gnu++${alternative}" - cachevar=`$as_echo "ax_cv_cxx_compile_cxx20_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++20 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx20_$switch" | $as_tr_sh` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features with $switch" >&5 +printf %s "checking whether $CXX supports C++20 features with $switch... " >&6; } +if eval test \${$cachevar+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35451,6 +36551,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -35467,11 +36568,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -35526,7 +36629,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -35829,23 +36932,6 @@ -/* We don't want compiler-specific tests for R so these conditional - tests are commented out. - - For C++17 features supported by compiler see - https://gcc.gnu.org/projects/cxx-status.html#cxx1z for gcc - http://clang.llvm.org/cxx_status.html for clang - http://en.cppreference.com/w/cpp/compiler_support for an overview - -#if defined(__clang__) - #define REALLY_CLANG -#else - #if defined(__GNUC__) - #define REALLY_GCC - #endif -#endif -*/ - #include #include #include @@ -35853,18 +36939,12 @@ namespace cxx17 { -/* Not listed as supported by clang 4 - MTP -#if !defined(REALLY_CLANG) namespace test_constexpr_lambdas { - // TODO: test it with clang++ from git - constexpr int foo = [](){return 42;}(); } -#endif // !defined(REALLY_CLANG) -*/ namespace test::nested_namespace::definitions { @@ -36099,13 +37179,9 @@ } -/* P0091R3 not supported by clang 4.0.0 - MTP -#if !defined(REALLY_CLANG) namespace test_template_argument_deduction_for_class_templates { - // TODO: test it with clang++ from git - template struct pair { @@ -36124,8 +37200,6 @@ } } -#endif // !defined(REALLY_CLANG) -*/ namespace test_non_type_auto_template_parameters { @@ -36139,14 +37213,9 @@ } -/* P0217R3 should be supported in clang 4.0.0, but test code dumps core - In addition, gcc 7.0.1 fails on the last test - MTP -#if !defined(REALLY_CLANG) namespace test_structured_bindings { - // TODO: test it with clang++ from git - int arr[2] = { 1, 2 }; std::pair pr = { 1, 2 }; @@ -36178,15 +37247,10 @@ const auto [ x3, y3 ] = f3(); } -#endif // !defined(REALLY_CLANG) -*/ - // P0012R1: clang >= 4 namespace test_exception_spec_type_system { - // TODO: test it with clang++ from git - struct Good {}; struct Bad {}; @@ -36232,17 +37296,18 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval $cachevar=yes -else +else $as_nop eval $cachevar=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXX="$ac_save_CXX" fi eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXX="$CXX $switch" if test -n "$CXXCPP" ; then @@ -36257,12 +37322,13 @@ if test x$ac_success = xno; then for alternative in ${ax_cxx_compile_alternatives}; do for switch in -std=c++${alternative} -std=sun${alternative}; do - cachevar=`$as_echo "ax_cv_cxx_compile_cxx20_$switch" | $as_tr_sh` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features with $switch" >&5 -$as_echo_n "checking whether $CXX supports C++20 features with $switch... " >&6; } -if eval \${$cachevar+:} false; then : - $as_echo_n "(cached) " >&6 -else + cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx20_$switch" | $as_tr_sh` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features with $switch" >&5 +printf %s "checking whether $CXX supports C++20 features with $switch... " >&6; } +if eval test \${$cachevar+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_CXX="$CXX" CXX="$CXX $switch" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36276,6 +37342,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -36292,11 +37359,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -36351,7 +37420,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -36654,23 +37723,6 @@ -/* We don't want compiler-specific tests for R so these conditional - tests are commented out. - - For C++17 features supported by compiler see - https://gcc.gnu.org/projects/cxx-status.html#cxx1z for gcc - http://clang.llvm.org/cxx_status.html for clang - http://en.cppreference.com/w/cpp/compiler_support for an overview - -#if defined(__clang__) - #define REALLY_CLANG -#else - #if defined(__GNUC__) - #define REALLY_GCC - #endif -#endif -*/ - #include #include #include @@ -36678,18 +37730,12 @@ namespace cxx17 { -/* Not listed as supported by clang 4 - MTP -#if !defined(REALLY_CLANG) namespace test_constexpr_lambdas { - // TODO: test it with clang++ from git - constexpr int foo = [](){return 42;}(); } -#endif // !defined(REALLY_CLANG) -*/ namespace test::nested_namespace::definitions { @@ -36924,13 +37970,9 @@ } -/* P0091R3 not supported by clang 4.0.0 - MTP -#if !defined(REALLY_CLANG) namespace test_template_argument_deduction_for_class_templates { - // TODO: test it with clang++ from git - template struct pair { @@ -36949,8 +37991,6 @@ } } -#endif // !defined(REALLY_CLANG) -*/ namespace test_non_type_auto_template_parameters { @@ -36964,14 +38004,9 @@ } -/* P0217R3 should be supported in clang 4.0.0, but test code dumps core - In addition, gcc 7.0.1 fails on the last test - MTP -#if !defined(REALLY_CLANG) namespace test_structured_bindings { - // TODO: test it with clang++ from git - int arr[2] = { 1, 2 }; std::pair pr = { 1, 2 }; @@ -37003,15 +38038,10 @@ const auto [ x3, y3 ] = f3(); } -#endif // !defined(REALLY_CLANG) -*/ - // P0012R1: clang >= 4 namespace test_exception_spec_type_system { - // TODO: test it with clang++ from git - struct Good {}; struct Bad {}; @@ -37057,17 +38087,18 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : eval $cachevar=yes -else +else $as_nop eval $cachevar=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXX="$ac_save_CXX" fi eval ac_res=\$$cachevar - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if eval test x\$$cachevar = xyes; then CXX="$CXX $switch" if test -n "$CXXCPP" ; then @@ -37084,11 +38115,12 @@ fi if test x$ac_success = xno; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features by default" >&5 -$as_echo_n "checking whether $CXX supports C++20 features by default... " >&6; } -if ${ax_cv_cxx_compile_cxx20+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++20 features by default" >&5 +printf %s "checking whether $CXX supports C++20 features by default... " >&6; } +if test ${ax_cv_cxx_compile_cxx20+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus @@ -37100,6 +38132,7 @@ namespace cxx11 { + namespace test_static_assert { @@ -37116,11 +38149,13 @@ struct Base { + virtual ~Base() {} virtual void f() {} }; struct Derived : public Base { + virtual ~Derived() override {} virtual void f() override {} }; @@ -37175,7 +38210,7 @@ } int - test(const int c, volatile int v) + test(const int c, volatile int v) // 'volatile is deprecated in C++20' { static_assert(is_same::value == true, ""); static_assert(is_same::value == false, ""); @@ -37478,23 +38513,6 @@ -/* We don't want compiler-specific tests for R so these conditional - tests are commented out. - - For C++17 features supported by compiler see - https://gcc.gnu.org/projects/cxx-status.html#cxx1z for gcc - http://clang.llvm.org/cxx_status.html for clang - http://en.cppreference.com/w/cpp/compiler_support for an overview - -#if defined(__clang__) - #define REALLY_CLANG -#else - #if defined(__GNUC__) - #define REALLY_GCC - #endif -#endif -*/ - #include #include #include @@ -37502,18 +38520,12 @@ namespace cxx17 { -/* Not listed as supported by clang 4 - MTP -#if !defined(REALLY_CLANG) namespace test_constexpr_lambdas { - // TODO: test it with clang++ from git - constexpr int foo = [](){return 42;}(); } -#endif // !defined(REALLY_CLANG) -*/ namespace test::nested_namespace::definitions { @@ -37748,13 +38760,9 @@ } -/* P0091R3 not supported by clang 4.0.0 - MTP -#if !defined(REALLY_CLANG) namespace test_template_argument_deduction_for_class_templates { - // TODO: test it with clang++ from git - template struct pair { @@ -37773,8 +38781,6 @@ } } -#endif // !defined(REALLY_CLANG) -*/ namespace test_non_type_auto_template_parameters { @@ -37788,14 +38794,9 @@ } -/* P0217R3 should be supported in clang 4.0.0, but test code dumps core - In addition, gcc 7.0.1 fails on the last test - MTP -#if !defined(REALLY_CLANG) namespace test_structured_bindings { - // TODO: test it with clang++ from git - int arr[2] = { 1, 2 }; std::pair pr = { 1, 2 }; @@ -37827,15 +38828,10 @@ const auto [ x3, y3 ] = f3(); } -#endif // !defined(REALLY_CLANG) -*/ - // P0012R1: clang >= 4 namespace test_exception_spec_type_system { - // TODO: test it with clang++ from git - struct Good {}; struct Bad {}; @@ -37881,15 +38877,16 @@ #endif _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ax_cv_cxx_compile_cxx20=yes -else +else $as_nop ax_cv_cxx_compile_cxx20=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx20" >&5 -$as_echo "$ax_cv_cxx_compile_cxx20" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx20" >&5 +printf "%s\n" "$ax_cv_cxx_compile_cxx20" >&6; } if test x$ax_cv_cxx_compile_cxx20 = xyes; then ac_success=yes fi @@ -37908,8 +38905,8 @@ fi if test x$ac_success = xno; then HAVE_CXX20=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++20 support was found" >&5 -$as_echo "$as_me: No compiler with C++20 support was found" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++20 support was found" >&5 +printf "%s\n" "$as_me: No compiler with C++20 support was found" >&6;} else HAVE_CXX20=1 fi @@ -37954,13 +38951,24 @@ -## Set default compiler to C++11 if available +## Set default C++ compiler to C++14 if available, otherwise C++11 +## Do not set if neither is available. if test -n "${CXX}" && test -z "${CXXSTD}"; then - if test -n "${CXX11}"; then + if test -n "${CXX14}"; then + CXX=${CXX14} + CXXSTD=${CXX14STD} + CXXFLAGS=${CXX14FLAGS} + CXXPICFLAGS=${CXX14PICFLAGS} + elif test -n "${CXX11}"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: C++14 is not available so the default C++ standard is C++11" >&5 +printf "%s\n" "$as_me: WARNING: C++14 is not available so the default C++ standard is C++11" >&2;} CXX=${CXX11} CXXSTD=${CXX11STD} CXXFLAGS=${CXX11FLAGS} CXXPICFLAGS=${CXX11PICFLAGS} + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Neither C++14 nor C++11 is available so no default C++ compiler is set" >&5 +printf "%s\n" "$as_me: WARNING: Neither C++14 nor C++11 is available so no default C++ compiler is set" >&2;} fi fi @@ -37976,29 +38984,32 @@ OPENMP_CXXFLAGS= # Check whether --enable-openmp was given. -if test "${enable_openmp+set}" = set; then : +if test ${enable_openmp+y} +then : enableval=$enable_openmp; fi if test "$enable_openmp" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 -$as_echo_n "checking for $CXX option to support OpenMP... " >&6; } -if ${ac_cv_prog_cxx_openmp+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 +printf %s "checking for $CXX option to support OpenMP... " >&6; } +if test ${ac_cv_prog_cxx_openmp+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _OPENMP - choke me +#error "OpenMP not supported" #endif #include -int main () { return omp_get_num_threads (); } +int main (void) { return omp_get_num_threads (); } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_prog_cxx_openmp='none needed' -else +else $as_nop ac_cv_prog_cxx_openmp='unsupported' for ac_option in -xopenmp -fopenmp -qopenmp \ -openmp -mp -omp -qsmp=omp -homp \ @@ -38010,16 +39021,17 @@ /* end confdefs.h. */ #ifndef _OPENMP - choke me +#error "OpenMP not supported" #endif #include -int main () { return omp_get_num_threads (); } +int main (void) { return omp_get_num_threads (); } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_prog_cxx_openmp=$ac_option fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS=$ac_save_CXXFLAGS if test "$ac_cv_prog_cxx_openmp" != unsupported; then @@ -38027,11 +39039,11 @@ fi done fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5 -$as_echo "$ac_cv_prog_cxx_openmp" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5 +printf "%s\n" "$ac_cv_prog_cxx_openmp" >&6; } case $ac_cv_prog_cxx_openmp in #( "none needed" | unsupported) ;; #( @@ -38087,7 +39099,7 @@ DYLIB_LDFLAGS="${DYLIB_LDFLAGS}${separator}${R_OPENMP_CFLAGS}" fi -$as_echo "#define HAVE_OPENMP 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENMP 1" >>confdefs.h fi elif test "x${main_ld_was_given}" = xno -a "${MAIN_LD}" = "\$(CC)" -a \ @@ -38109,7 +39121,7 @@ DYLIB_LDFLAGS="${DYLIB_LDFLAGS}${separator}${OPENMP_CFLAGS}" fi -$as_echo "#define HAVE_OPENMP 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENMP 1" >>confdefs.h else R_OPENMP_CFLAGS= @@ -38143,11 +39155,12 @@ CFLAGS="${CFLAGS} ${OPENMP_CFLAGS}" ## Other things one might want to try for ancient systems ## -Kthread (Sequent) -pthreads (Solaris/gcc, but -pthread works) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for option providing pthread_kill" >&5 -$as_echo_n "checking for option providing pthread_kill... " >&6; } -if ${r_cv_search_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for option providing pthread_kill" >&5 +printf %s "checking for option providing pthread_kill... " >&6; } +if test ${r_cv_search_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop r_opts_save_CFLAGS=$CFLAGS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -38155,9 +39168,6 @@ /* 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 pthread_kill (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -38168,7 +39178,7 @@ #endif #endif int -main () +main (void) { return pthread_kill (); ; @@ -38182,26 +39192,29 @@ r_res=$r_opt CFLAGS="$r_opt $r_opts_save_CFLAGS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : r_cv_search_pthread_kill=$r_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${r_cv_search_pthread_kill+:} false; then : + if test ${r_cv_search_pthread_kill+y} +then : break fi done - if ${r_cv_search_pthread_kill+:} false; then : + if test ${r_cv_search_pthread_kill+y} +then : -else +else $as_nop r_cv_search_pthread_kill=no fi rm conftest.$ac_ext CFLAGS=$r_save_CFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_search_pthread_kill" >&5 -$as_echo "$r_cv_search_pthread_kill" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_search_pthread_kill" >&5 +printf "%s\n" "$r_cv_search_pthread_kill" >&6; } r_res=$r_cv_search_pthread_kill CFLAGS=${r_save_CFLAGS} @@ -38233,17 +39246,17 @@ esac ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads are supported" >&5 -$as_echo_n "checking whether POSIX threads are supported... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads are supported" >&5 +printf %s "checking whether POSIX threads are supported... " >&6; } if test -n "${have_pthread}"; then -$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h +printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -38269,22 +39282,22 @@ ### * Checks for library functions. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" -if test "x$ac_cv_type_off_t" = xyes; then : +if test "x$ac_cv_type_off_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_OFF_T 1 -_ACEOF +printf "%s\n" "#define HAVE_OFF_T 1" >>confdefs.h fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 -$as_echo_n "checking for working alloca.h... " >&6; } -if ${ac_cv_working_alloca_h+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +printf %s "checking for working alloca.h... " >&6; } +if test ${ac_cv_working_alloca_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -38297,7 +39310,7 @@ #endif #endif int -main () +main (void) { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; @@ -38305,47 +39318,47 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_working_alloca_h=yes -else +else $as_nop ac_cv_working_alloca_h=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 -$as_echo "$ac_cv_working_alloca_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +printf "%s\n" "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then -$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 -$as_echo_n "checking for alloca... " >&6; } -if ${ac_cv_func_alloca_works+:} false; then : - $as_echo_n "(cached) " >&6 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +printf %s "checking for alloca... " >&6; } +if test ${ac_cv_func_alloca_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test $ac_cv_working_alloca_h = yes; then + ac_cv_func_alloca_works=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER +#include +#include +#ifndef alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca +# elif defined _MSC_VER # include # define alloca _alloca # else -# ifdef HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -void *alloca (size_t); -# endif -# endif +# ifdef __cplusplus +extern "C" # endif +void *alloca (size_t); # endif #endif @@ -38358,7 +39371,7 @@ #endif #endif int -main () +main (void) { char *p = (char *) alloca (1); if (p) return 0; @@ -38366,20 +39379,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_func_alloca_works=yes -else +else $as_nop ac_cv_func_alloca_works=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 -$as_echo "$ac_cv_func_alloca_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 +printf "%s\n" "$ac_cv_func_alloca_works" >&6; } +fi if test $ac_cv_func_alloca_works = yes; then -$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h +printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions @@ -38389,58 +39404,19 @@ ALLOCA=\${LIBOBJDIR}alloca.$ac_objext -$as_echo "#define C_ALLOCA 1" >>confdefs.h - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 -$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } -if ${ac_cv_os_cray+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if defined CRAY && ! defined CRAY2 -webecray -#else -wenotbecray -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "webecray" >/dev/null 2>&1; then : - ac_cv_os_cray=yes -else - ac_cv_os_cray=no -fi -rm -f conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 -$as_echo "$ac_cv_os_cray" >&6; } -if test $ac_cv_os_cray = yes; then - for ac_func in _getb67 GETB67 getb67; do - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - -cat >>confdefs.h <<_ACEOF -#define CRAY_STACKSEG_END $ac_func -_ACEOF - - break -fi +printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h - done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 -$as_echo_n "checking stack direction for C alloca... " >&6; } -if ${ac_cv_c_stack_direction+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +printf %s "checking stack direction for C alloca... " >&6; } +if test ${ac_cv_c_stack_direction+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : ac_cv_c_stack_direction=0 -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -38461,9 +39437,10 @@ return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_c_stack_direction=1 -else +else $as_nop ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -38471,28 +39448,24 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 -$as_echo "$ac_cv_c_stack_direction" >&6; } -cat >>confdefs.h <<_ACEOF -#define STACK_DIRECTION $ac_cv_c_stack_direction -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +printf "%s\n" "$ac_cv_c_stack_direction" >&6; } +printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h fi -ac_fn_c_check_decl "$LINENO" "alloca" "ac_cv_have_decl_alloca" "#ifdef HAVE_ALLOCA_H +ac_fn_check_decl "$LINENO" "alloca" "ac_cv_have_decl_alloca" "#ifdef HAVE_ALLOCA_H # include #endif -" -if test "x$ac_cv_have_decl_alloca" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_alloca" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ALLOCA $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_ALLOCA $ac_have_decl" >>confdefs.h ## C99 functions: @@ -38508,12 +39481,13 @@ ## powl nearbyintl and rintl are only used in format.c for ac_func in expm1 hypot log1p log1pl log2 log10 nearbyint nearbyintl powl rintl do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -38527,7 +39501,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -38537,20 +39511,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -38572,12 +39548,13 @@ ## va_copy is C99: required as from R 2.13.0 for ac_func in va_copy do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -38591,7 +39568,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -38601,20 +39578,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -38624,36 +39603,28 @@ as_fn_error $? "Building R requires the 'va_copy' system call" "$LINENO" 5 fi ## isblank should be a macro according to C99. It was missing on Solaris 8 -for ac_func in isblank -do : - ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" -if test "x$ac_cv_func_isblank" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_ISBLANK 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank" +if test "x$ac_cv_func_isblank" = xyes +then : + printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h fi -done ## Solaris libsunmath -for ac_header in sunmath.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "sunmath.h" "ac_cv_header_sunmath_h" "$ac_includes_default" -if test "x$ac_cv_header_sunmath_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SUNMATH_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "sunmath.h" "ac_cv_header_sunmath_h" "$ac_includes_default" +if test "x$ac_cv_header_sunmath_h" = xyes +then : + printf "%s\n" "#define HAVE_SUNMATH_H 1" >>confdefs.h fi -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cospi in -lsunmath" >&5 -$as_echo_n "checking for cospi in -lsunmath... " >&6; } -if ${ac_cv_lib_sunmath_cospi+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cospi in -lsunmath" >&5 +printf %s "checking for cospi in -lsunmath... " >&6; } +if test ${ac_cv_lib_sunmath_cospi+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsunmath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38662,9 +39633,6 @@ /* 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 cospi (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -38675,28 +39643,28 @@ #endif #endif int -main () +main (void) { return cospi (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_sunmath_cospi=yes -else +else $as_nop ac_cv_lib_sunmath_cospi=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_cospi" >&5 -$as_echo "$ac_cv_lib_sunmath_cospi" >&6; } -if test "x$ac_cv_lib_sunmath_cospi" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBSUNMATH 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_cospi" >&5 +printf "%s\n" "$ac_cv_lib_sunmath_cospi" >&6; } +if test "x$ac_cv_lib_sunmath_cospi" = xyes +then : + printf "%s\n" "#define HAVE_LIBSUNMATH 1" >>confdefs.h LIBS="-lsunmath $LIBS" @@ -38707,13 +39675,15 @@ ## For now, do not define _GNU_SOURCE here. ## All but pown have long been in Solaris' libsunmath ## macOS has __cospi __sinpi __tanpi -for ac_func in atanpi atan2pi cospi exp10 pown sinpi tanpi __cospi __sinpi __tanpi + + for ac_func in atanpi atan2pi cospi exp10 pown sinpi tanpi __cospi __sinpi __tanpi do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` + as_ac_var=`printf "%s\n" "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 : +if eval test \"x\$"$as_ac_var"\" = x"yes" +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 #include @@ -38721,33 +39691,41 @@ #include #endif fi -done +done ## fseeko/ftello are POSIX, may be macros ## matherr is SVID, redefined in arithmetic.c if present -for ac_func in fseeko ftello matherr -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 `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" +if test "x$ac_cv_func_fseeko" = xyes +then : + printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello" +if test "x$ac_cv_func_ftello" = xyes +then : + printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr" +if test "x$ac_cv_func_matherr" = xyes +then : + printf "%s\n" "#define HAVE_MATHERR 1" >>confdefs.h fi -done ## POSIX functions for ac_func in fcntl do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -38761,7 +39739,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -38771,20 +39749,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -38792,12 +39772,13 @@ for ac_func in getgrgid do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -38811,7 +39792,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -38821,33 +39802,36 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done -for ac_func in getpwuid +for ac_func in getpwnam getpwuid do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -38861,7 +39845,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -38871,20 +39855,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -38892,12 +39878,13 @@ for ac_func in kill sigaction sigaltstack sigemptyset do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -38911,7 +39898,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -38921,20 +39908,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -38942,12 +39931,13 @@ for ac_func in fdopen popen do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -38961,7 +39951,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -38971,20 +39961,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -38995,12 +39987,13 @@ fi for ac_func in getline do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39014,7 +40007,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39024,20 +40017,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39045,12 +40040,13 @@ for ac_func in select do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_SYS_SELECT_H @@ -39069,7 +40065,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39079,20 +40075,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39113,12 +40111,13 @@ ## Windows has neither setenv nor unsetenv for ac_func in setenv unsetenv do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39132,7 +40131,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39142,20 +40141,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39163,12 +40164,13 @@ for ac_func in getrlimit setrlimit getrusage getpriority do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39182,7 +40184,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39192,20 +40194,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39213,12 +40217,13 @@ for ac_func in chmod mkfifo stat umask do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39232,7 +40237,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39242,20 +40247,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39266,12 +40273,13 @@ fi for ac_func in gettimeofday utimes do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39285,7 +40293,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39295,20 +40303,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39316,12 +40326,13 @@ for ac_func in times do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39335,7 +40346,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39345,20 +40356,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39366,12 +40379,13 @@ for ac_func in gmtime_r localtime_r do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39385,7 +40399,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39395,20 +40409,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39416,12 +40432,13 @@ for ac_func in nl_langinfo do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39435,7 +40452,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39445,20 +40462,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39466,12 +40485,13 @@ for ac_func in access chdir execv ftruncate getcwd geteuid getuid link readlink symlink sysconf do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_UNISTD_H @@ -39487,7 +40507,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39497,20 +40517,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39519,12 +40541,13 @@ ## Linux-specific feature allowing us to fix CPU affinity for parallel for ac_func in sched_setaffinity sched_getaffinity do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39538,7 +40561,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39548,20 +40571,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39570,12 +40595,13 @@ ## utime was declared obsolescent in POSIX 2008 (use utimes instead) for ac_func in utime do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39589,7 +40615,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39599,20 +40625,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39621,12 +40649,13 @@ ## POSIX.1-2008 preferred form for ac_func in utimensat do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39640,7 +40669,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39650,20 +40679,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39673,7 +40704,7 @@ case "${host_os}" in darwin1[0123456].*) -$as_echo "#define MACOS_SIERRA 1" >>confdefs.h +printf "%s\n" "#define MACOS_SIERRA 1" >>confdefs.h ;; esac @@ -39682,11 +40713,12 @@ ## Some OSes need -lrt: Linux (for glibc versions before 2.17), Solaris, ## not FreeBSD. ## Unsurprising, as POSIX 2008 moved it from its timers section to base. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 -$as_echo_n "checking for clock_gettime in -lrt... " >&6; } -if ${ac_cv_lib_rt_clock_gettime+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 +printf %s "checking for clock_gettime in -lrt... " >&6; } +if test ${ac_cv_lib_rt_clock_gettime+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39695,9 +40727,6 @@ /* 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 clock_gettime (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -39708,28 +40737,28 @@ #endif #endif int -main () +main (void) { return clock_gettime (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_rt_clock_gettime=yes -else +else $as_nop ac_cv_lib_rt_clock_gettime=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 -$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } -if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBRT 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 +printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } +if test "x$ac_cv_lib_rt_clock_gettime" = xyes +then : + printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h LIBS="-lrt $LIBS" @@ -39737,12 +40766,13 @@ for ac_func in clock_gettime do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39756,7 +40786,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39766,20 +40796,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39793,12 +40825,13 @@ *) for ac_func in timespec_get do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -39812,7 +40845,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39822,20 +40855,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -39846,103 +40881,82 @@ ## We need setenv or putenv. It seems that everyone does have ## putenv, as earlier versions of R would have failed without it. ## It is not always declared, so we do not require a declaration. -for ac_func in putenv -do : - ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" -if test "x$ac_cv_func_putenv" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_PUTENV 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" +if test "x$ac_cv_func_putenv" = xyes +then : + printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h fi -done -ac_fn_c_check_decl "$LINENO" "putenv" "ac_cv_have_decl_putenv" "#include -" -if test "x$ac_cv_have_decl_putenv" = xyes; then : +ac_fn_check_decl "$LINENO" "putenv" "ac_cv_have_decl_putenv" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_putenv" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PUTENV $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_PUTENV $ac_have_decl" >>confdefs.h ## this is a GNU extension so usually hidden. Not in Solaris 10 -for ac_func in vasprintf -do : - ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" -if test "x$ac_cv_func_vasprintf" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_VASPRINTF 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" +if test "x$ac_cv_func_vasprintf" = xyes +then : + printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h fi -done -ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "#include -" -if test "x$ac_cv_have_decl_vasprintf" = xyes; then : +ac_fn_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_vasprintf" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_VASPRINTF $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_VASPRINTF $ac_have_decl" >>confdefs.h ## mempcpy is a GNU extension used by the included gettext. Not in Solaris 10 -for ac_func in mempcpy -do : - ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" -if test "x$ac_cv_func_mempcpy" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MEMPCPY 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" +if test "x$ac_cv_func_mempcpy" = xyes +then : + printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h fi -done ## realpath is POSIX 2001 (and BSD) ## Some early GNU libc systems had it in unistd.h. -for ac_func in realpath -do : - ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" -if test "x$ac_cv_func_realpath" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_REALPATH 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" +if test "x$ac_cv_func_realpath" = xyes +then : + printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h fi -done -ac_fn_c_check_decl "$LINENO" "realpath" "ac_cv_have_decl_realpath" "#include +ac_fn_check_decl "$LINENO" "realpath" "ac_cv_have_decl_realpath" "#include #ifdef HAVE_UNISTD_H #include #endif -" -if test "x$ac_cv_have_decl_realpath" = xyes; then : +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_realpath" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_REALPATH $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_REALPATH $ac_have_decl" >>confdefs.h ## glob is POSIX: we have a substitute on Windows ## assume without checking that if we have glob we also have globfree for ac_func in glob do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_GLOB_H @@ -39958,7 +40972,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -39968,103 +40982,94 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done -for ac_func in dladdr dlsym -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 `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" +if test "x$ac_cv_func_dladdr" = xyes +then : + printf "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h fi -done +ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" +if test "x$ac_cv_func_dlsym" = xyes +then : + printf "%s\n" "#define HAVE_DLSYM 1" >>confdefs.h -ac_fn_c_check_decl "$LINENO" "dladdr" "ac_cv_have_decl_dladdr" "#include -" -if test "x$ac_cv_have_decl_dladdr" = xyes; then : +fi + +ac_fn_check_decl "$LINENO" "dladdr" "ac_cv_have_decl_dladdr" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_dladdr" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_DLADDR $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include -" -if test "x$ac_cv_have_decl_dlsym" = xyes; then : +printf "%s\n" "#define HAVE_DECL_DLADDR $ac_have_decl" >>confdefs.h +ac_fn_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_dlsym" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_DLSYM $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_DLSYM $ac_have_decl -_ACEOF - -ac_fn_c_check_decl "$LINENO" "RTLD_DEFAULT" "ac_cv_have_decl_RTLD_DEFAULT" "#include -" -if test "x$ac_cv_have_decl_RTLD_DEFAULT" = xyes; then : +ac_fn_check_decl "$LINENO" "RTLD_DEFAULT" "ac_cv_have_decl_RTLD_DEFAULT" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_RTLD_DEFAULT" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_RTLD_DEFAULT $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "RTLD_NEXT" "ac_cv_have_decl_RTLD_NEXT" "#include -" -if test "x$ac_cv_have_decl_RTLD_NEXT" = xyes; then : +printf "%s\n" "#define HAVE_DECL_RTLD_DEFAULT $ac_have_decl" >>confdefs.h +ac_fn_check_decl "$LINENO" "RTLD_NEXT" "ac_cv_have_decl_RTLD_NEXT" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_RTLD_NEXT" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_RTLD_NEXT $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_RTLD_NEXT $ac_have_decl -_ACEOF - -for ac_header in thread.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default" -if test "x$ac_cv_header_thread_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_THREAD_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default" +if test "x$ac_cv_header_thread_h" = xyes +then : + printf "%s\n" "#define HAVE_THREAD_H 1" >>confdefs.h fi -done - for ac_func in thr_stksegment do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40081,7 +41086,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -40091,20 +41096,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -40145,50 +41152,43 @@ if test $ac_cv_type_off_t=yes -a $ac_cv_func_fseeko=yes -a $ac_cv_func_ftello=yes; then -$as_echo "#define HAVE_OFF_T 1" >>confdefs.h +printf "%s\n" "#define HAVE_OFF_T 1" >>confdefs.h fi ## IEEE 754. We rely on this in e.g. the working log test. -for ac_func in isnan -do : - ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan" -if test "x$ac_cv_func_isnan" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_ISNAN 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan" +if test "x$ac_cv_func_isnan" = xyes +then : + printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h fi -done -ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include -" -if test "x$ac_cv_have_decl_isfinite" = xyes; then : +ac_fn_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_isfinite" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ISFINITE $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include -" -if test "x$ac_cv_have_decl_isnan" = xyes; then : +printf "%s\n" "#define HAVE_DECL_ISFINITE $ac_have_decl" >>confdefs.h +ac_fn_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include +" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_isnan" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_ISNAN $ac_have_decl" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ISNAN $ac_have_decl -_ACEOF - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have IEEE 754 floating-point arithmetic" >&5 -$as_echo_n "checking whether you have IEEE 754 floating-point arithmetic... " >&6; } -if ${r_cv_ieee_754+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether you have IEEE 754 floating-point arithmetic" >&5 +printf %s "checking whether you have IEEE 754 floating-point arithmetic... " >&6; } +if test ${r_cv_ieee_754+y} +then : + printf %s "(cached) " >&6 +else $as_nop if (test "${ac_cv_func_isnan}" = yes \ || test "${ac_cv_have_decl_isnan}" = yes); then r_cv_ieee_754=yes @@ -40196,11 +41196,11 @@ r_cv_ieee_754=no fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_ieee_754" >&5 -$as_echo "$r_cv_ieee_754" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_ieee_754" >&5 +printf "%s\n" "$r_cv_ieee_754" >&6; } if test "${r_cv_ieee_754}" = yes; then -$as_echo "#define IEEE_754 1" >>confdefs.h +printf "%s\n" "#define IEEE_754 1" >>confdefs.h else as_fn_error $? "IEEE 754 floating-point arithmetic is required" "$LINENO" 5 @@ -40209,14 +41209,16 @@ ## check if putenv can substitute for unsetenv - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv(\"FOO\") can unset an environment variable" >&5 -$as_echo_n "checking whether putenv(\"FOO\") can unset an environment variable... " >&6; } -if ${r_cv_putenv_unset+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether putenv(\"FOO\") can unset an environment variable" >&5 +printf %s "checking whether putenv(\"FOO\") can unset an environment variable... " >&6; } +if test ${r_cv_putenv_unset+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_putenv_unset=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40239,9 +41241,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_putenv_unset=yes -else +else $as_nop r_cv_putenv_unset=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40249,24 +41252,26 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_putenv_unset" >&5 -$as_echo "$r_cv_putenv_unset" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_putenv_unset" >&5 +printf "%s\n" "$r_cv_putenv_unset" >&6; } if test $r_cv_putenv_unset = yes; then -$as_echo "#define HAVE_PUTENV_UNSET 1" >>confdefs.h +printf "%s\n" "#define HAVE_PUTENV_UNSET 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv(\"FOO=\") can unset an environment variable" >&5 -$as_echo_n "checking whether putenv(\"FOO=\") can unset an environment variable... " >&6; } -if ${r_cv_putenv_unset2+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether putenv(\"FOO=\") can unset an environment variable" >&5 +printf %s "checking whether putenv(\"FOO=\") can unset an environment variable... " >&6; } +if test ${r_cv_putenv_unset2+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_putenv_unset2=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40289,9 +41294,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_putenv_unset2=yes -else +else $as_nop r_cv_putenv_unset2=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40299,12 +41305,12 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_putenv_unset2" >&5 -$as_echo "$r_cv_putenv_unset2" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_putenv_unset2" >&5 +printf "%s\n" "$r_cv_putenv_unset2" >&6; } if test $r_cv_putenv_unset2 = yes; then -$as_echo "#define HAVE_PUTENV_UNSET2 1" >>confdefs.h +printf "%s\n" "#define HAVE_PUTENV_UNSET2 1" >>confdefs.h fi @@ -40314,11 +41320,12 @@ ## check whether nl_langinfo(CODESET) is in langinfo.h ## defines HAVE_LANGINFO_CODESET if it's there - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 -$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } -if ${am_cv_langinfo_codeset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 +printf %s "checking for nl_langinfo and CODESET... " >&6; } +if test ${am_cv_langinfo_codeset+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -40331,27 +41338,28 @@ #endif #endif int -main () +main (void) { -char* cs = nl_langinfo(CODESET); +char* cs = nl_langinfo(CODESET); return !cs; ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : am_cv_langinfo_codeset=yes -else +else $as_nop am_cv_langinfo_codeset=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 -$as_echo "$am_cv_langinfo_codeset" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 +printf "%s\n" "$am_cv_langinfo_codeset" >&6; } if test $am_cv_langinfo_codeset = yes; then -$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h +printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h fi @@ -40367,10 +41375,11 @@ ## mkdtemp is not on Solaris 10, added in POSIX 2008 ## strdup strncasecmp were first required in POSIX 2001. ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" -if test "x$ac_cv_func_mkdtemp" = xyes; then : - $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h +if test "x$ac_cv_func_mkdtemp" = xyes +then : + printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h -else +else $as_nop case " $LIBOBJS " in *" mkdtemp.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext" @@ -40378,12 +41387,12 @@ esac fi - ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" -if test "x$ac_cv_func_strdup" = xyes; then : - $as_echo "#define HAVE_STRDUP 1" >>confdefs.h +if test "x$ac_cv_func_strdup" = xyes +then : + printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h -else +else $as_nop case " $LIBOBJS " in *" strdup.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strdup.$ac_objext" @@ -40391,12 +41400,12 @@ esac fi - ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" -if test "x$ac_cv_func_strncasecmp" = xyes; then : - $as_echo "#define HAVE_STRNCASECMP 1" >>confdefs.h +if test "x$ac_cv_func_strncasecmp" = xyes +then : + printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h -else +else $as_nop case " $LIBOBJS " in *" strncasecmp.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" @@ -40405,45 +41414,39 @@ fi - ## Enable declarations in Defn.h? -ac_fn_c_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" "$ac_includes_default" -if test "x$ac_cv_have_decl_mkdtemp" = xyes; then : +ac_fn_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_mkdtemp" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_MKDTEMP $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" -if test "x$ac_cv_have_decl_strdup" = xyes; then : +printf "%s\n" "#define HAVE_DECL_MKDTEMP $ac_have_decl" >>confdefs.h +ac_fn_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_strdup" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRDUP $ac_have_decl -_ACEOF -ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" -if test "x$ac_cv_have_decl_strncasecmp" = xyes; then : +printf "%s\n" "#define HAVE_DECL_STRDUP $ac_have_decl" >>confdefs.h +ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_strncasecmp" = xyes +then : ac_have_decl=1 -else +else $as_nop ac_have_decl=0 fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRNCASECMP $ac_have_decl -_ACEOF +printf "%s\n" "#define HAVE_DECL_STRNCASECMP $ac_have_decl" >>confdefs.h -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 -$as_echo_n "checking for library containing connect... " >&6; } -if ${ac_cv_search_connect+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 +printf %s "checking for library containing connect... " >&6; } +if test ${ac_cv_search_connect+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40451,9 +41454,6 @@ /* 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 connect (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -40464,51 +41464,57 @@ #endif #endif int -main () +main (void) { return connect (); ; return 0; } _ACEOF -for ac_lib in '' socket; do +for ac_lib in '' socket +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_connect=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_connect+:} false; then : + if test ${ac_cv_search_connect+y} +then : break fi done -if ${ac_cv_search_connect+:} false; then : +if test ${ac_cv_search_connect+y} +then : -else +else $as_nop ac_cv_search_connect=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 -$as_echo "$ac_cv_search_connect" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 +printf "%s\n" "$ac_cv_search_connect" >&6; } ac_res=$ac_cv_search_connect -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi # gethostbyname was removed in POSIX 2008 (in favour of getaddrinfo, POSIX 2001) -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 -$as_echo_n "checking for library containing gethostbyname... " >&6; } -if ${ac_cv_search_gethostbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 +printf %s "checking for library containing gethostbyname... " >&6; } +if test ${ac_cv_search_gethostbyname+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40516,9 +41522,6 @@ /* 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 gethostbyname (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -40529,41 +41532,46 @@ #endif #endif int -main () +main (void) { return gethostbyname (); ; return 0; } _ACEOF -for ac_lib in '' nsl socket; do +for ac_lib in '' nsl socket +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_gethostbyname=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_gethostbyname+:} false; then : + if test ${ac_cv_search_gethostbyname+y} +then : break fi done -if ${ac_cv_search_gethostbyname+:} false; then : +if test ${ac_cv_search_gethostbyname+y} +then : -else +else $as_nop ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 -$as_echo "$ac_cv_search_gethostbyname" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 +printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi @@ -40572,11 +41580,12 @@ ## 2018: Sun RPC is being unbundled from glibc, at least in Fedora 28 ## (https://fedoraproject.org/wiki/Changes/SunRPCRemoval) ## Use libtirpc instead, which has been a possible source since ca 2007 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdr_string" >&5 -$as_echo_n "checking for library containing xdr_string... " >&6; } -if ${ac_cv_search_xdr_string+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing xdr_string" >&5 +printf %s "checking for library containing xdr_string... " >&6; } +if test ${ac_cv_search_xdr_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40584,9 +41593,6 @@ /* 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 xdr_string (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -40597,53 +41603,60 @@ #endif #endif int -main () +main (void) { return xdr_string (); ; return 0; } _ACEOF -for ac_lib in '' nsl tirpc; do +for ac_lib in '' nsl tirpc +do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi - if ac_fn_c_try_link "$LINENO"; then : + if ac_fn_c_try_link "$LINENO" +then : ac_cv_search_xdr_string=$ac_res fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext - if ${ac_cv_search_xdr_string+:} false; then : + if test ${ac_cv_search_xdr_string+y} +then : break fi done -if ${ac_cv_search_xdr_string+:} false; then : +if test ${ac_cv_search_xdr_string+y} +then : -else +else $as_nop ac_cv_search_xdr_string=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdr_string" >&5 -$as_echo "$ac_cv_search_xdr_string" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdr_string" >&5 +printf "%s\n" "$ac_cv_search_xdr_string" >&6; } ac_res=$ac_cv_search_xdr_string -if test "$ac_res" != no; then : +if test "$ac_res" != no +then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working calloc" >&5 -$as_echo_n "checking for working calloc... " >&6; } -if ${r_cv_func_calloc_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working calloc" >&5 +printf %s "checking for working calloc... " >&6; } +if test ${r_cv_func_calloc_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_func_calloc_works=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40654,9 +41667,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_func_calloc_works=yes -else +else $as_nop r_cv_func_calloc_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40664,23 +41678,25 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_func_calloc_works" >&5 -$as_echo "$r_cv_func_calloc_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_func_calloc_works" >&5 +printf "%s\n" "$r_cv_func_calloc_works" >&6; } if test "x${r_cv_func_calloc_works}" = xyes; then -$as_echo "#define HAVE_WORKING_CALLOC 1" >>confdefs.h +printf "%s\n" "#define HAVE_WORKING_CALLOC 1" >>confdefs.h fi if test "${ac_cv_have_decl_isfinite}" = "yes"; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working isfinite" >&5 -$as_echo_n "checking for working isfinite... " >&6; } -if ${r_cv_func_isfinite_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working isfinite" >&5 +printf %s "checking for working isfinite... " >&6; } +if test ${r_cv_func_isfinite_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_func_isfinite_works=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40696,9 +41712,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_func_isfinite_works=yes -else +else $as_nop r_cv_func_isfinite_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40706,11 +41723,11 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_func_isfinite_works" >&5 -$as_echo "$r_cv_func_isfinite_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_func_isfinite_works" >&5 +printf "%s\n" "$r_cv_func_isfinite_works" >&6; } if test "x${r_cv_func_isfinite_works}" = xyes; then -$as_echo "#define HAVE_WORKING_ISFINITE 1" >>confdefs.h +printf "%s\n" "#define HAVE_WORKING_ISFINITE 1" >>confdefs.h fi @@ -40718,14 +41735,16 @@ ## check accuracy of log1p ## issues are probably ancient history: ## reported for NetBSD 1.6 and OpenBSD 3.2 (both 2002). -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working log1p" >&5 -$as_echo_n "checking for working log1p... " >&6; } -if ${r_cv_func_log1p_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working log1p" >&5 +printf %s "checking for working log1p... " >&6; } +if test ${r_cv_func_log1p_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_func_log1p_works=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40759,9 +41778,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_func_log1p_works=yes -else +else $as_nop r_cv_func_log1p_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40769,11 +41789,11 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_func_log1p_works" >&5 -$as_echo "$r_cv_func_log1p_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_func_log1p_works" >&5 +printf "%s\n" "$r_cv_func_log1p_works" >&6; } if test "x${r_cv_func_log1p_works}" = xyes; then -$as_echo "#define HAVE_WORKING_LOG1P 1" >>confdefs.h +printf "%s\n" "#define HAVE_WORKING_LOG1P 1" >>confdefs.h RMATH_HAVE_WORKING_LOG1P="# define HAVE_WORKING_LOG1P 1" else @@ -40781,23 +41801,28 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftell works correctly on files opened for append" >&5 -$as_echo_n "checking whether ftell works correctly on files opened for append... " >&6; } -if ${r_cv_working_ftell+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftell works correctly on files opened for append" >&5 +printf %s "checking whether ftell works correctly on files opened for append... " >&6; } +if test ${r_cv_working_ftell+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_working_ftell=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include +#ifdef HAVE_UNISTD_H +# include // for unlink +#endif -main() { +int main() { FILE *fp; - int pos; + long pos; fp = fopen("testit", "wb"); fwrite("0123456789\n", 11, 1, fp); @@ -40810,9 +41835,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_working_ftell=yes -else +else $as_nop r_cv_working_ftell=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40820,23 +41846,25 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_working_ftell" >&5 -$as_echo "$r_cv_working_ftell" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_working_ftell" >&5 +printf "%s\n" "$r_cv_working_ftell" >&6; } if test "x${r_cv_working_ftell}" = xyes; then -$as_echo "#define HAVE_WORKING_FTELL 1" >>confdefs.h +printf "%s\n" "#define HAVE_WORKING_FTELL 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sigaction" >&5 -$as_echo_n "checking for working sigaction... " >&6; } -if ${r_cv_func_sigaction_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working sigaction" >&5 +printf %s "checking for working sigaction... " >&6; } +if test ${r_cv_func_sigaction_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_func_sigaction_works=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40858,9 +41886,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_func_sigaction_works=yes -else +else $as_nop r_cv_func_sigaction_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40868,11 +41897,11 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_func_sigaction_works" >&5 -$as_echo "$r_cv_func_sigaction_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_func_sigaction_works" >&5 +printf "%s\n" "$r_cv_func_sigaction_works" >&6; } if test "x${r_cv_func_sigaction_works}" = xyes; then -$as_echo "#define HAVE_WORKING_SIGACTION 1" >>confdefs.h +printf "%s\n" "#define HAVE_WORKING_SIGACTION 1" >>confdefs.h fi @@ -40885,14 +41914,16 @@ esac fi if test "${use_internal_tzcode}" != yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mktime sets errno" >&5 -$as_echo_n "checking whether mktime sets errno... " >&6; } -if ${r_cv_mktime_errno+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mktime sets errno" >&5 +printf %s "checking whether mktime sets errno... " >&6; } +if test ${r_cv_mktime_errno+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_mktime_errno=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -40914,9 +41945,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_mktime_errno=yes -else +else $as_nop r_cv_mktime_errno=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40924,29 +41956,31 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_mktime_errno" >&5 -$as_echo "$r_cv_mktime_errno" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_mktime_errno" >&5 +printf "%s\n" "$r_cv_mktime_errno" >&6; } if test "${r_cv_mktime_errno}" = yes; then -$as_echo "#define MKTIME_SETS_ERRNO /**/" >>confdefs.h +printf "%s\n" "#define MKTIME_SETS_ERRNO /**/" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mktime works correctly outside 1902-2037" >&5 -$as_echo_n "checking whether mktime works correctly outside 1902-2037... " >&6; } -if ${r_cv_working_mktime+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mktime works correctly outside 1902-2037" >&5 +printf %s "checking whether mktime works correctly outside 1902-2037... " >&6; } +if test ${r_cv_working_mktime+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_working_mktime=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include -main() { +int main() { if(sizeof(time_t) < 8) exit(1); struct tm tm; @@ -40970,9 +42004,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_working_mktime=yes -else +else $as_nop r_cv_working_mktime=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -40980,50 +42015,93 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_working_mktime" >&5 -$as_echo "$r_cv_working_mktime" >&6; } -if test "x${r_cv_working_mktime}" = xyes; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_working_mktime" >&5 +printf "%s\n" "$r_cv_working_mktime" >&6; } +if test "x${r_cv_working_mktime}" = xyes; then + +printf "%s\n" "#define HAVE_WORKING_64BIT_MKTIME 1" >>confdefs.h + +fi + +fi + +if test x${use_internal_iswxxxxx} = xdefault; then +case "${host_os}" in + darwin*) + use_internal_iswxxxxx=yes; + ;; + aix*) + use_internal_iswxxxxx=yes; + ;; + solaris*) + use_internal_iswxxxxx=yes; + ;; +esac +fi +if test x${use_internal_iswxxxxx} = xyes; then + +printf "%s\n" "#define USE_RI18N_FNS 1" >>confdefs.h + +fi -$as_echo "#define HAVE_WORKING_64BIT_MKTIME 1" >>confdefs.h +if test x${use_internal_wcwidth} = xyes; then +printf "%s\n" "#define USE_RI18N_WIDTH 1" >>confdefs.h + +fi + +if test x${use_internal_towlower} = xdefault; then +case "${host_os}" in + darwin*) + use_internal_towlower=yes; + ;; + solaris*) + use_internal_towlower=yes; + ;; +esac fi +if test x${use_internal_towlower} = xyes; then + +printf "%s\n" "#define USE_RI18N_CASE 1" >>confdefs.h fi -ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default" -if test "x$ac_cv_header_complex_h" = xyes; then : +ac_fn_c_check_header_compile "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default" +if test "x$ac_cv_header_complex_h" = xyes +then : r_c99_complex=yes -else +else $as_nop r_c99_complex=no fi - if test "${r_c99_complex}" = "yes"; then ac_fn_c_check_type "$LINENO" "double complex" "ac_cv_type_double_complex" "#include " -if test "x$ac_cv_type_double_complex" = xyes; then : +if test "x$ac_cv_type_double_complex" = xyes +then : -else +else $as_nop r_c99_complex=no fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 double complex is supported" >&5 -$as_echo_n "checking whether C99 double complex is supported... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${r_c99_complex}" >&5 -$as_echo "${r_c99_complex}" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C99 double complex is supported" >&5 +printf %s "checking whether C99 double complex is supported... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${r_c99_complex}" >&5 +printf "%s\n" "${r_c99_complex}" >&6; } if test "${r_c99_complex}" = "no"; then as_fn_error $? "Support for C99 double complex type is required." "$LINENO" 5 fi for ac_func in cabs carg cexp clog csqrt cpow ccos csin ctan \ cacos casin catan ccosh csinh ctanh do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -41037,7 +42115,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -41047,34 +42125,38 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ctanh" >&5 -$as_echo_n "checking for working ctanh... " >&6; } -if ${r_cv_func_ctanh_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working ctanh" >&5 +printf %s "checking for working ctanh... " >&6; } +if test ${r_cv_func_ctanh_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_func_ctanh_works=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -41099,9 +42181,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_func_ctanh_works=yes -else +else $as_nop r_cv_func_ctanh_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -41109,21 +42192,22 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_func_ctanh_works" >&5 -$as_echo "$r_cv_func_ctanh_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_func_ctanh_works" >&5 +printf "%s\n" "$r_cv_func_ctanh_works" >&6; } if test "x${r_cv_func_ctanh_works}" = xyes; then -$as_echo "#define HAVE_WORKING_CTANH 1" >>confdefs.h +printf "%s\n" "#define HAVE_WORKING_CTANH 1" >>confdefs.h fi ## BSD extensions -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'struct tm' includes tm_zone" >&5 -$as_echo_n "checking whether 'struct tm' includes tm_zone... " >&6; } -if ${r_cv_have_tm_zone+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether 'struct tm' includes tm_zone" >&5 +printf %s "checking whether 'struct tm' includes tm_zone... " >&6; } +if test ${r_cv_have_tm_zone+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -41137,26 +42221,28 @@ } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : r_cv_have_tm_zone=yes -else +else $as_nop r_cv_have_tm_zone=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_tm_zone" >&5 -$as_echo "$r_cv_have_tm_zone" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_tm_zone" >&5 +printf "%s\n" "$r_cv_have_tm_zone" >&6; } if test "x${r_cv_have_tm_zone}" = xyes; then -$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h +printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'struct tm' includes tm_gmtoff" >&5 -$as_echo_n "checking whether 'struct tm' includes tm_gmtoff... " >&6; } -if ${r_cv_have_tm_gmtoff+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether 'struct tm' includes tm_gmtoff" >&5 +printf %s "checking whether 'struct tm' includes tm_gmtoff... " >&6; } +if test ${r_cv_have_tm_gmtoff+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -41171,18 +42257,19 @@ } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : r_cv_have_tm_gmtoff=yes -else +else $as_nop r_cv_have_tm_gmtoff=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_tm_gmtoff" >&5 -$as_echo "$r_cv_have_tm_gmtoff" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_tm_gmtoff" >&5 +printf "%s\n" "$r_cv_have_tm_gmtoff" >&6; } if test "x${r_cv_have_tm_gmtoff}" = xyes; then -$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h +printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h fi @@ -41223,11 +42310,12 @@ if test "${acx_blas_ok}" = no; then if test "x${BLAS_LIBS}" != x; then r_save_LIBS="${LIBS}"; LIBS="${BLAS_LIBS} ${LIBS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in ${BLAS_LIBS}" >&5 -$as_echo_n "checking for ${dgemm} in ${BLAS_LIBS}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in ${BLAS_LIBS}" >&5 +printf %s "checking for ${dgemm} in ${BLAS_LIBS}... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ void ${xerbla}(char *srname, int *info){} + void ${dgemm}(); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus @@ -41237,30 +42325,42 @@ #endif #endif int -main () +main (void) { ${dgemm}() ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : acx_blas_ok=yes -else +else $as_nop BLAS_LIBS="" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_blas_ok}" >&5 -$as_echo "${acx_blas_ok}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${acx_blas_ok}" >&5 +printf "%s\n" "${acx_blas_ok}" >&6; } LIBS="${r_save_LIBS}" + if test "${acx_blas_ok}" = no; then + as_fn_error $? "BLAS was specified but not available" "$LINENO" 5 + fi fi fi if test "${acx_blas_ok}" = no; then - as_ac_var=`$as_echo "ac_cv_func_${dgemm}" | $as_tr_sh` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: searching for an external BLAS" >&5 +printf "%s\n" "$as_me: searching for an external BLAS" >&6;} +fi + +if test "${acx_blas_ok}" = no; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: searching for BLAS in default libraries" >&5 +printf "%s\n" "$as_me: searching for BLAS in default libraries" >&6;} + as_ac_var=`printf "%s\n" "ac_cv_func_${dgemm}" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "${dgemm}" "$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 @@ -41268,12 +42368,15 @@ # BLAS in OpenBLAS library? (http://xianyi.github.com/OpenBLAS/) if test "${acx_blas_ok}" = no; then - as_ac_Lib=`$as_echo "ac_cv_lib_openblas_$sgemm" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lopenblas" >&5 -$as_echo_n "checking for $sgemm in -lopenblas... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: searching for OpenBLAS" >&5 +printf "%s\n" "$as_me: searching for OpenBLAS" >&6;} + as_ac_Lib=`printf "%s\n" "ac_cv_lib_openblas_$sgemm" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lopenblas" >&5 +printf %s "checking for $sgemm in -lopenblas... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lopenblas $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41282,9 +42385,6 @@ /* 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 $sgemm (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -41295,26 +42395,28 @@ #endif #endif int -main () +main (void) { return $sgemm (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else +else $as_nop eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : acx_blas_ok=yes BLAS_LIBS="-lopenblas" fi @@ -41322,11 +42424,14 @@ fi if test "${acx_blas_ok}" = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5 -$as_echo_n "checking for ATL_xerbla in -latlas... " >&6; } -if ${ac_cv_lib_atlas_ATL_xerbla+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: searching for ATLAS" >&5 +printf "%s\n" "$as_me: searching for ATLAS" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5 +printf %s "checking for ATL_xerbla in -latlas... " >&6; } +if test ${ac_cv_lib_atlas_ATL_xerbla+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-latlas $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41335,9 +42440,6 @@ /* 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 ATL_xerbla (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -41348,31 +42450,34 @@ #endif #endif int -main () +main (void) { return ATL_xerbla (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_atlas_ATL_xerbla=yes -else +else $as_nop ac_cv_lib_atlas_ATL_xerbla=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5 -$as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; } -if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes; then : - as_ac_Lib=`$as_echo "ac_cv_lib_f77blas_${dgemm}" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in -lf77blas" >&5 -$as_echo_n "checking for ${dgemm} in -lf77blas... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5 +printf "%s\n" "$ac_cv_lib_atlas_ATL_xerbla" >&6; } +if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes +then : + as_ac_Lib=`printf "%s\n" "ac_cv_lib_f77blas_${dgemm}" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in -lf77blas" >&5 +printf %s "checking for ${dgemm} in -lf77blas... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lf77blas -latlas $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41381,9 +42486,6 @@ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char ${dgemm} (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -41394,26 +42496,28 @@ #endif #endif int -main () +main (void) { return ${dgemm} (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else +else $as_nop eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : acx_blas_ok=yes BLAS_LIBS="-lf77blas -latlas" fi @@ -41423,12 +42527,15 @@ fi if test "${acx_blas_ok}" = no; then - as_ac_Lib=`$as_echo "ac_cv_lib_blas_${dgemm}" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in -lblas" >&5 -$as_echo_n "checking for ${dgemm} in -lblas... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: searching for PhiPACK" >&5 +printf "%s\n" "$as_me: searching for PhiPACK" >&6;} + as_ac_Lib=`printf "%s\n" "ac_cv_lib_blas_${dgemm}" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in -lblas" >&5 +printf %s "checking for ${dgemm} in -lblas... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41437,9 +42544,6 @@ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char ${dgemm} (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -41450,32 +42554,35 @@ #endif #endif int -main () +main (void) { return ${dgemm} (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else +else $as_nop eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : - as_ac_Lib=`$as_echo "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dgemm in -ldgemm" >&5 -$as_echo_n "checking for $dgemm in -ldgemm... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : + as_ac_Lib=`printf "%s\n" "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $dgemm in -ldgemm" >&5 +printf %s "checking for $dgemm in -ldgemm... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldgemm -lblas $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41484,9 +42591,6 @@ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char $dgemm (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -41497,32 +42601,35 @@ #endif #endif int -main () +main (void) { return $dgemm (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else +else $as_nop eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : - as_ac_Lib=`$as_echo "ac_cv_lib_sgemm_${sgemm}" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sgemm} in -lsgemm" >&5 -$as_echo_n "checking for ${sgemm} in -lsgemm... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : + as_ac_Lib=`printf "%s\n" "ac_cv_lib_sgemm_${sgemm}" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sgemm} in -lsgemm" >&5 +printf %s "checking for ${sgemm} in -lsgemm... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsgemm -lblas $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41531,9 +42638,6 @@ /* 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 ${sgemm} (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -41544,26 +42648,28 @@ #endif #endif int -main () +main (void) { return ${sgemm} (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else +else $as_nop eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : acx_blas_ok=yes BLAS_LIBS="-lsgemm -ldgemm -lblas" fi @@ -41576,8 +42682,10 @@ if test "${acx_blas_ok}" = no; then if test "x$GCC" != xyes; then # only works with Sun CC - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in -lsunperf" >&5 -$as_echo_n "checking for ${dgemm} in -lsunperf... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: searching for Sun Performance library" >&5 +printf "%s\n" "$as_me: searching for Sun Performance library" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in -lsunperf" >&5 +printf %s "checking for ${dgemm} in -lsunperf... " >&6; } r_save_LIBS="${LIBS}" LIBS="-xlic_lib=sunperf -lsunmath ${LIBS}" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41586,9 +42694,6 @@ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char ${dgemm} (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -41599,37 +42704,41 @@ #endif #endif int -main () +main (void) { return ${dgemm} (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : R_sunperf=yes -else +else $as_nop R_sunperf=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "${R_sunperf}" = yes; then BLAS_LIBS="-xlic_lib=sunperf -lsunmath" acx_blas_ok=yes fi LIBS="${r_save_LIBS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_blas_ok}" >&5 -$as_echo "${acx_blas_ok}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${acx_blas_ok}" >&5 +printf "%s\n" "${acx_blas_ok}" >&6; } fi fi if test "${acx_blas_ok}" = no; then - as_ac_Lib=`$as_echo "ac_cv_lib_blas_${dgemm}" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in -lblas" >&5 -$as_echo_n "checking for ${dgemm} in -lblas... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: searching for IBM ESSL" >&5 +printf "%s\n" "$as_me: searching for IBM ESSL" >&6;} + as_ac_Lib=`printf "%s\n" "ac_cv_lib_blas_${dgemm}" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in -lblas" >&5 +printf %s "checking for ${dgemm} in -lblas... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41638,9 +42747,6 @@ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char ${dgemm} (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -41651,32 +42757,35 @@ #endif #endif int -main () +main (void) { return ${dgemm} (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else +else $as_nop eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : - as_ac_Lib=`$as_echo "ac_cv_lib_essl_${dgemm}" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in -lessl" >&5 -$as_echo_n "checking for ${dgemm} in -lessl... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : + as_ac_Lib=`printf "%s\n" "ac_cv_lib_essl_${dgemm}" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in -lessl" >&5 +printf %s "checking for ${dgemm} in -lessl... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lessl -lblas ${FLIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41685,9 +42794,6 @@ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char ${dgemm} (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -41698,26 +42804,28 @@ #endif #endif int -main () +main (void) { return ${dgemm} (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else +else $as_nop eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : acx_blas_ok=yes BLAS_LIBS="-lessl -lblas" fi @@ -41727,12 +42835,15 @@ fi if test "${acx_blas_ok}" = no; then - as_ac_Lib=`$as_echo "ac_cv_lib_blas_${dgemm}" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in -lblas" >&5 -$as_echo_n "checking for ${dgemm} in -lblas... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: searching for generic BLAS library" >&5 +printf "%s\n" "$as_me: searching for generic BLAS library" >&6;} + as_ac_Lib=`printf "%s\n" "ac_cv_lib_blas_${dgemm}" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${dgemm} in -lblas" >&5 +printf %s "checking for ${dgemm} in -lblas... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lblas $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41741,9 +42852,6 @@ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char ${dgemm} (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -41754,26 +42862,28 @@ #endif #endif int -main () +main (void) { return ${dgemm} (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else +else $as_nop eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : acx_blas_ok=yes; BLAS_LIBS="-lblas" fi @@ -41781,11 +42891,12 @@ if test "${acx_blas_ok}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether double complex BLAS can be used" >&5 -$as_echo_n "checking whether double complex BLAS can be used... " >&6; } - if ${r_cv_zdotu_is_usable+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether double complex BLAS can be used" >&5 +printf %s "checking whether double complex BLAS can be used... " >&6; } + if test ${r_cv_zdotu_is_usable+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftestf.f < 1.0d-10) then iflag = 1 else @@ -41851,19 +42963,19 @@ rm -Rf conftest conftest.* conftestf.* core if test -n "${r_cv_zdotu_is_usable}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else case "${BLAS_LIBS}" in *Accelerate* | *vecLib*) ## for vecLib we have a work-around by using cblas_..._sub - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } use_veclib_g95fix=yes ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } BLAS_LIBS= acx_blas_ok="no" ;; @@ -41871,11 +42983,12 @@ fi fi if test "${acx_blas_ok}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BLAS is complete" >&5 -$as_echo_n "checking whether the BLAS is complete... " >&6; } - if ${r_cv_complete_blas+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the BLAS is complete" >&5 +printf %s "checking whether the BLAS is complete... " >&6; } + if test ${r_cv_complete_blas+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.c < #include "confdefs.h" @@ -41886,6 +42999,86 @@ #endif void F77_SYMBOL(xerbla)(char *srname, int *info) {} +// declare (with empty args) before use. + void F77_SYMBOL(dasum)(); + void F77_SYMBOL(daxpy)(); + void F77_SYMBOL(dcopy)(); + void F77_SYMBOL(ddot)(); + void F77_SYMBOL(dgbmv)(); + void F77_SYMBOL(dgemm)(); + void F77_SYMBOL(dgemv)(); + void F77_SYMBOL(dger)(); + void F77_SYMBOL(dnrm2)(); + void F77_SYMBOL(drot)(); + void F77_SYMBOL(drotg)(); + void F77_SYMBOL(drotm)(); + void F77_SYMBOL(drotmg)(); + void F77_SYMBOL(dsbmv)(); + void F77_SYMBOL(dscal)(); + void F77_SYMBOL(dsdot)(); + void F77_SYMBOL(dspmv)(); + void F77_SYMBOL(dspr)(); + void F77_SYMBOL(dspr2)(); + void F77_SYMBOL(dswap)(); + void F77_SYMBOL(dsymm)(); + void F77_SYMBOL(dsymv)(); + void F77_SYMBOL(dsyr)(); + void F77_SYMBOL(dsyr2)(); + void F77_SYMBOL(dsyr2k)(); + void F77_SYMBOL(dsyrk)(); + void F77_SYMBOL(dtbmv)(); + void F77_SYMBOL(dtbsv)(); + void F77_SYMBOL(dtpmv)(); + void F77_SYMBOL(dtpsv)(); + void F77_SYMBOL(dtrmm)(); + void F77_SYMBOL(dtrmv)(); + void F77_SYMBOL(dtrsm)(); + void F77_SYMBOL(dtrsv)(); + void F77_SYMBOL(idamax)(); + void F77_SYMBOL(lsame)(); +#ifdef HAVE_FORTRAN_DOUBLE_COMPLEX +/* cmplxblas */ + void F77_SYMBOL(dcabs1)(); + void F77_SYMBOL(dzasum)(); + void F77_SYMBOL(dznrm2)(); + void F77_SYMBOL(izamax)(); + void F77_SYMBOL(zaxpy)(); + void F77_SYMBOL(zcopy)(); + void F77_SYMBOL(zdotc)(); + void F77_SYMBOL(zdotu)(); + void F77_SYMBOL(zdrot)(); + void F77_SYMBOL(zdscal)(); + void F77_SYMBOL(zgbmv)(); + void F77_SYMBOL(zgemm)(); + void F77_SYMBOL(zgemv)(); + void F77_SYMBOL(zgerc)(); + void F77_SYMBOL(zgeru)(); + void F77_SYMBOL(zhbmv)(); + void F77_SYMBOL(zhemm)(); + void F77_SYMBOL(zhemv)(); + void F77_SYMBOL(zher)(); + void F77_SYMBOL(zherk)(); + void F77_SYMBOL(zher2)(); + void F77_SYMBOL(zher2k)(); + void F77_SYMBOL(zhpmv)(); + void F77_SYMBOL(zhpr)(); + void F77_SYMBOL(zhpr2)(); + void F77_SYMBOL(zrotg)(); + void F77_SYMBOL(zscal)(); + void F77_SYMBOL(zswap)(); + void F77_SYMBOL(zsymm)(); + void F77_SYMBOL(zsyr2k)(); + void F77_SYMBOL(zsyrk)(); + void F77_SYMBOL(ztbmv)(); + void F77_SYMBOL(ztbsv)(); + void F77_SYMBOL(ztpmv)(); + void F77_SYMBOL(ztpsv)(); + void F77_SYMBOL(ztrmm)(); + void F77_SYMBOL(ztrmv)(); + void F77_SYMBOL(ztrsm)(); + void F77_SYMBOL(ztrsv)(); +#endif + void blas_set () { F77_SYMBOL(dasum)(); F77_SYMBOL(daxpy)(); @@ -41995,8 +43188,8 @@ r_cv_complete_blas=no BLAS_LIBS="" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${r_cv_complete_blas}" >&5 -$as_echo "${r_cv_complete_blas}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${r_cv_complete_blas}" >&5 +printf "%s\n" "${r_cv_complete_blas}" >&6; } fi LIBS="${acx_blas_save_LIBS}" @@ -42060,11 +43253,12 @@ dgemm=dgemm xerbla=xerbla fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external BLAS is visible through libRblas" >&5 -$as_echo_n "checking whether external BLAS is visible through libRblas... " >&6; } - if ${r_cv_blas0_passthrough+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether external BLAS is visible through libRblas" >&5 +printf %s "checking whether external BLAS is visible through libRblas... " >&6; } + if test ${r_cv_blas0_passthrough+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftestl.c <&5 -$as_echo "yes" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking can it be fixed by using -sub_umbrella" >&5 -$as_echo_n "checking can it be fixed by using -sub_umbrella... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking can it be fixed by using -sub_umbrella" >&5 +printf %s "checking can it be fixed by using -sub_umbrella... " >&6; } ac_test_BLAS_LIBS=`echo "${BLAS_LIBS}"|sed -e s/-framework/-sub_umbrella/` rm -f libconftest.dylib echo "${CC} ${CFLAGS} conftestl.c ${SHLIB_LDFLAGS} -o libconftest${DYLIB_EXT} ${LIBS} ${BLAS_LIBS} ${ac_test_BLAS_LIBS}" >&5 @@ -42119,12 +43313,12 @@ fi if test -n "${r_cv_blas0_passthrough}"; then r_cv_blas0_passthrough=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } BLAS_LIBS0="${BLAS_LIBS} ${ac_test_BLAS_LIBS}" else -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } as_fn_error $? "Cannot build Rblas shared library such that it makes external BLAS visible. An alternative is to use internal BLAS instead and replace libRblas.dylib with the external BLAS library after R is built." "$LINENO" 5 @@ -42191,9 +43385,10 @@ LIBS="${BLAS_LIBS} ${FLIBS} ${LIBS}" if test "${acx_lapack_ok}" = no; then - as_ac_var=`$as_echo "ac_cv_func_${lapack}" | $as_tr_sh` + as_ac_var=`printf "%s\n" "ac_cv_func_${lapack}" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "${lapack}" "$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 @@ -42202,17 +43397,14 @@ if test "${acx_lapack_ok}" = no; then if test "x${LAPACK_LIBS}" != x; then r_save_LIBS="${LIBS}"; LIBS="${LAPACK_LIBS} ${LIBS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${lapack} in ${LAPACK_LIBS}" >&5 -$as_echo_n "checking for ${lapack} in ${LAPACK_LIBS}... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${lapack} in ${LAPACK_LIBS}" >&5 +printf %s "checking for ${lapack} in ${LAPACK_LIBS}... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 ${lapack} (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -42223,34 +43415,36 @@ #endif #endif int -main () +main (void) { return ${lapack} (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : acx_lapack_ok=yes -else +else $as_nop LAPACK_LIBS="" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_lapack_ok}" >&5 -$as_echo "${acx_lapack_ok}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${acx_lapack_ok}" >&5 +printf "%s\n" "${acx_lapack_ok}" >&6; } LIBS="${r_save_LIBS}" fi fi if test "${acx_lapack_ok}" = no; then - as_ac_Lib=`$as_echo "ac_cv_lib_lapack_${lapack}" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${lapack} in -llapack" >&5 -$as_echo_n "checking for ${lapack} in -llapack... " >&6; } -if eval \${$as_ac_Lib+:} false; then : - $as_echo_n "(cached) " >&6 -else + as_ac_Lib=`printf "%s\n" "ac_cv_lib_lapack_${lapack}" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${lapack} in -llapack" >&5 +printf %s "checking for ${lapack} in -llapack... " >&6; } +if eval test \${$as_ac_Lib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-llapack $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42259,9 +43453,6 @@ /* 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 ${lapack} (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -42272,26 +43463,28 @@ #endif #endif int -main () +main (void) { return ${lapack} (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Lib=yes" -else +else $as_nop eval "$as_ac_Lib=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi eval ac_res=\$$as_ac_Lib - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_ac_Lib"\" = x"yes" +then : acx_lapack_ok=yes; LAPACK_LIBS="-llapack" fi @@ -42318,24 +43511,20 @@ ### * Checks for system services. ## iconv headers and function. -for ac_header in iconv.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" -if test "x$ac_cv_header_iconv_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_ICONV_H 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" +if test "x$ac_cv_header_iconv_h" = xyes +then : + printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h fi -done - unset ac_cv_func_iconv -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 -$as_echo_n "checking for iconv... " >&6; } -if ${ac_cv_func_iconv+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 +printf %s "checking for iconv... " >&6; } +if test ${ac_cv_func_iconv+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_func_iconv="no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42353,7 +43542,7 @@ #endif #endif int -main () +main (void) { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); @@ -42362,10 +43551,11 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_func_iconv=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_func_iconv" != yes; then r_save_LIBS="$LIBS" @@ -42385,7 +43575,7 @@ #endif #endif int -main () +main (void) { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); @@ -42394,10 +43584,11 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_func_iconv="in libiconv" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_func_iconv" = no; then LIBS="$r_save_LIBS" @@ -42405,21 +43596,23 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_iconv" >&5 -$as_echo "$ac_cv_func_iconv" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_iconv" >&5 +printf "%s\n" "$ac_cv_func_iconv" >&6; } if test "$ac_cv_func_iconv" != no; then -$as_echo "#define HAVE_ICONV 1" >>confdefs.h +printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv accepts \"UTF-8\", \"latin1\", \"ASCII\" and \"UCS-*\"" >&5 -$as_echo_n "checking whether iconv accepts \"UTF-8\", \"latin1\", \"ASCII\" and \"UCS-*\"... " >&6; } -if ${r_cv_iconv_latin1+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iconv accepts \"UTF-8\", \"latin1\", \"ASCII\" and \"UCS-*\"" >&5 +printf %s "checking whether iconv accepts \"UTF-8\", \"latin1\", \"ASCII\" and \"UCS-*\"... " >&6; } +if test ${r_cv_iconv_latin1+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_iconv_latin1=yes -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -42480,9 +43673,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_iconv_latin1=yes -else +else $as_nop r_cv_iconv_latin1=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -42490,8 +43684,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_iconv_latin1" >&5 -$as_echo "$r_cv_iconv_latin1" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_iconv_latin1" >&5 +printf "%s\n" "$r_cv_iconv_latin1" >&6; } ## on Windows we supply iconv ourselves case "${host_os}" in @@ -42503,14 +43697,16 @@ as_fn_error $? "a suitable iconv is essential" "$LINENO" 5 fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv accepts \"CP1252\"" >&5 -$as_echo_n "checking whether iconv accepts \"CP1252\"... " >&6; } -if ${r_cv_iconv_cp1252+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iconv accepts \"CP1252\"" >&5 +printf %s "checking whether iconv accepts \"CP1252\"... " >&6; } +if test ${r_cv_iconv_cp1252+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_iconv_cp1252=yes -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -42544,9 +43740,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_iconv_cp1252=yes -else +else $as_nop r_cv_iconv_cp1252=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -42554,8 +43751,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_iconv_cp1252" >&5 -$as_echo "$r_cv_iconv_cp1252" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_iconv_cp1252" >&5 +printf "%s\n" "$r_cv_iconv_cp1252" >&6; } ## on Windows we supply iconv ourselves case "${host_os}" in @@ -42565,15 +43762,16 @@ esac if test "$r_cv_iconv_cp1252" = yes; then -$as_echo "#define HAVE_ICONV_CP1252 1" >>confdefs.h +printf "%s\n" "#define HAVE_ICONV_CP1252 1" >>confdefs.h fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconvlist" >&5 -$as_echo_n "checking for iconvlist... " >&6; } -if ${ac_cv_func_iconvlist+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconvlist" >&5 +printf %s "checking for iconvlist... " >&6; } +if test ${ac_cv_func_iconvlist+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_func_iconvlist="no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42582,7 +43780,7 @@ #ifdef HAVE_ICONV_H #include #endif -static int count_one (unsigned int namescount, char * *names, void *data) +static int count_one (unsigned int namescount, const char * const *names, void *data) {return 0;} #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -42593,25 +43791,26 @@ #endif #endif int -main () +main (void) { iconvlist(count_one, NULL); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_func_iconvlist=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_iconvlist" >&5 -$as_echo "$ac_cv_func_iconvlist" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_iconvlist" >&5 +printf "%s\n" "$ac_cv_func_iconvlist" >&6; } if test "$ac_cv_func_iconvlist" = yes; then -$as_echo "#define HAVE_ICONVLIST 1" >>confdefs.h +printf "%s\n" "#define HAVE_ICONVLIST 1" >>confdefs.h fi @@ -42643,11 +43842,12 @@ done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 -$as_echo_n "checking for iconv... " >&6; } -if ${am_cv_func_iconv+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 +printf %s "checking for iconv... " >&6; } +if test ${am_cv_func_iconv+y} +then : + printf %s "(cached) " >&6 +else $as_nop am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no @@ -42664,7 +43864,7 @@ #endif #endif int -main () +main (void) { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); @@ -42673,10 +43873,11 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : am_cv_func_iconv=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" @@ -42694,7 +43895,7 @@ #endif #endif int -main () +main (void) { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); @@ -42703,28 +43904,29 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 -$as_echo "$am_cv_func_iconv" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 +printf "%s\n" "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then -$as_echo "#define HAVE_ICONV 1" >>confdefs.h +printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 -$as_echo_n "checking how to link with libiconv... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 -$as_echo "$LIBICONV" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 +printf %s "checking how to link with libiconv... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 +printf "%s\n" "$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= @@ -42734,11 +43936,12 @@ if test "$am_cv_func_iconv" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 -$as_echo_n "checking for iconv declaration... " >&6; } - if ${am_cv_proto_iconv+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 +printf %s "checking for iconv declaration... " >&6; } + if test ${am_cv_proto_iconv+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -42764,31 +43967,30 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : am_cv_proto_iconv_arg1="" -else +else $as_nop am_cv_proto_iconv_arg1="const" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- }$am_cv_proto_iconv" >&5 -$as_echo "${ac_t:- +printf "%s\n" "${ac_t:- }$am_cv_proto_iconv" >&6; } -cat >>confdefs.h <<_ACEOF -#define ICONV_CONST $am_cv_proto_iconv_arg1 -_ACEOF +printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h fi @@ -42796,18 +43998,18 @@ ## check sufficient support for MBCS want_mbcs_support=yes -for ac_header in wchar.h wctype.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" +if test "x$ac_cv_header_wchar_h" = xyes +then : + printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" +if test "x$ac_cv_header_wctype_h" = xyes +then : + printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h -done +fi for ac_header in wchar wctype; do as_ac_var=`echo "ac_cv_header_${ac_header}_h"` @@ -42819,12 +44021,13 @@ if test "$want_mbcs_support" = yes ; then for ac_func in mbrtowc wcrtomb wcscoll wcsftime wcstod do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -42838,7 +44041,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -42848,20 +44051,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -42869,12 +44074,13 @@ for ac_func in mbstowcs wcstombs do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -42888,7 +44094,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -42898,33 +44104,36 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done - for ac_func in wctrans iswblank wctype iswctype + for ac_func in wctrans wctype iswctype do -as_ac_Symbol=`$as_echo "ac_cv_have_decl_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 -$as_echo_n "checking whether $ac_func exists and is declared... " >&6; } -if eval \${$as_ac_Symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -42939,7 +44148,7 @@ #endif #endif int -main () +main (void) { #ifndef $ac_func char *p = (char *) $ac_func; @@ -42949,20 +44158,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$as_ac_Symbol=yes" -else +else $as_nop eval "$as_ac_Symbol=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$as_ac_Symbol - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if test `eval 'as_val=${'$as_ac_Symbol'};$as_echo "$as_val"'` = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi @@ -42979,25 +44190,78 @@ done fi if test "$want_mbcs_support" = yes ; then + for ac_func in wcwidth wcswidth +do +as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_$ac_func" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_func exists and is declared" >&5 +printf %s "checking whether $ac_func exists and is declared... " >&6; } +if eval test \${$as_ac_Symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +#ifdef FC_DUMMY_MAIN +#ifndef FC_DUMMY_MAIN_EQ_F77 +# ifdef __cplusplus + extern "C" +# endif + int FC_DUMMY_MAIN() { return 1; } +#endif +#endif +int +main (void) +{ +#ifndef $ac_func + char *p = (char *) $ac_func; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + eval "$as_ac_Symbol=yes" +else $as_nop + eval "$as_ac_Symbol=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$as_ac_Symbol + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if test `eval 'as_val=${'$as_ac_Symbol'};printf "%s\n" "$as_val"'` = yes +then : + cat >>confdefs.h <<_ACEOF +#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +fi +if test "$want_mbcs_support" = yes ; then ac_fn_c_check_type "$LINENO" "wctrans_t" "ac_cv_type_wctrans_t" "#include #include " -if test "x$ac_cv_type_wctrans_t" = xyes; then : +if test "x$ac_cv_type_wctrans_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_WCTRANS_T 1 -_ACEOF +printf "%s\n" "#define HAVE_WCTRANS_T 1" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "mbstate_t" "ac_cv_type_mbstate_t" "#include #include " -if test "x$ac_cv_type_mbstate_t" = xyes; then : +if test "x$ac_cv_type_mbstate_t" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_MBSTATE_T 1 -_ACEOF +printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h fi @@ -43016,16 +44280,18 @@ ## support for ICU if test "$use_ICU" = yes ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5 -$as_echo_n "checking for ICU... " >&6; } -if ${r_cv_icu+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5 +printf %s "checking for ICU... " >&6; } +if test ${r_cv_icu+y} +then : + printf %s "(cached) " >&6 +else $as_nop r_save_LIBS="${LIBS}" LIBS="${LIBS} -licuuc -licui18n" -if test "$cross_compiling" = yes; then : +if test "$cross_compiling" = yes +then : r_cv_icu=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -43051,9 +44317,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_icu=yes -else +else $as_nop r_cv_icu=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -43063,11 +44330,11 @@ LIBS="${r_save_LIBS}" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_icu" >&5 -$as_echo "$r_cv_icu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_icu" >&5 +printf "%s\n" "$r_cv_icu" >&6; } if test "x${r_cv_icu}" = xyes; then -$as_echo "#define USE_ICU 1" >>confdefs.h +printf "%s\n" "#define USE_ICU 1" >>confdefs.h LIBS="${LIBS} -licuuc -licui18n" else @@ -43077,11 +44344,12 @@ if test "$use_ICU" = no ; then case "${host_os}" in darwin*) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucol_open in -licucore" >&5 -$as_echo_n "checking for ucol_open in -licucore... " >&6; } -if ${ac_cv_lib_icucore_ucol_open+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucol_open in -licucore" >&5 +printf %s "checking for ucol_open in -licucore... " >&6; } +if test ${ac_cv_lib_icucore_ucol_open+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-licucore $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43090,9 +44358,6 @@ /* 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 ucol_open (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -43103,40 +44368,40 @@ #endif #endif int -main () +main (void) { return ucol_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_icucore_ucol_open=yes -else +else $as_nop ac_cv_lib_icucore_ucol_open=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_icucore_ucol_open" >&5 -$as_echo "$ac_cv_lib_icucore_ucol_open" >&6; } -if test "x$ac_cv_lib_icucore_ucol_open" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBICUCORE 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_icucore_ucol_open" >&5 +printf "%s\n" "$ac_cv_lib_icucore_ucol_open" >&6; } +if test "x$ac_cv_lib_icucore_ucol_open" = xyes +then : + printf "%s\n" "#define HAVE_LIBICUCORE 1" >>confdefs.h LIBS="-licucore $LIBS" -else +else $as_nop as_fn_error $? "library 'icucore' is required for ICU" "$LINENO" 5 fi -$as_echo "#define USE_ICU_APPLE 1" >>confdefs.h +printf "%s\n" "#define USE_ICU_APPLE 1" >>confdefs.h -$as_echo "#define USE_ICU 1" >>confdefs.h +printf "%s\n" "#define USE_ICU 1" >>confdefs.h use_ICU=yes ;; @@ -43147,12 +44412,13 @@ ## X11. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 -$as_echo_n "checking for X... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5 +printf %s "checking for X... " >&6; } # Check whether --with-x was given. -if test "${with_x+set}" = set; then : +if test ${with_x+y} +then : withval=$with_x; fi @@ -43163,12 +44429,49 @@ else case $x_includes,$x_libraries in #( *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( - *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : - $as_echo_n "(cached) " >&6 -else + *,NONE | NONE,*) if test ${ac_cv_have_x+y} +then : + printf %s "(cached) " >&6 +else $as_nop # One or both of the vars are not set, and there is no cached value. -ac_x_includes=no ac_x_libraries=no -rm -f -r conftest.dir +ac_x_includes=no +ac_x_libraries=no +# Do we need to do anything special at all? +ac_save_LIBS=$LIBS +LIBS="-lX11 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#ifdef FC_DUMMY_MAIN +#ifndef FC_DUMMY_MAIN_EQ_F77 +# ifdef __cplusplus + extern "C" +# endif + int FC_DUMMY_MAIN() { return 1; } +#endif +#endif +int +main (void) +{ +XrmInitialize () + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + # We can compile and link X programs with no special options. + ac_x_includes= + ac_x_libraries= +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS="$ac_save_LIBS" +# If that didn't work, only try xmkmf and file system searches +# for native compilation. +if test x"$ac_x_includes" = xno && test "$cross_compiling" = no +then : + rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' @@ -43207,7 +44510,7 @@ rm -f -r conftest.dir fi -# Standard set of common directories for X headers. + # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include @@ -43234,6 +44537,8 @@ /usr/local/include/X11R5 /usr/local/include/X11R4 +/opt/X11/include + /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 @@ -43255,10 +44560,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # We can compile using X headers with no special include directory. ac_x_includes= -else +else $as_nop for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir @@ -43287,20 +44593,21 @@ #endif #endif int -main () +main (void) { XrmInitialize () ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= -else +else $as_nop LIBS=$ac_save_LIBS -for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` +for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do @@ -43311,19 +44618,21 @@ done done fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no +fi +# Record the results. case $ac_x_includes,$ac_x_libraries in #( - no,* | *,no | *\'*) + no,* | *,no | *\'*) : # Didn't find X, or a directory has "'" in its name. - ac_cv_have_x="have_x=no";; #( - *) + ac_cv_have_x="have_x=no" ;; #( + *) : # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ - ac_x_libraries='$ac_x_libraries'" + ac_x_libraries='$ac_x_libraries'" ;; esac fi ;; #( @@ -43333,8 +44642,8 @@ fi # $with_x != no if test "$have_x" != yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 -$as_echo "$have_x" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 +printf "%s\n" "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. @@ -43344,14 +44653,14 @@ ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 -$as_echo "libraries $x_libraries, headers $x_includes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 +printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; } fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. -$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h +printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else @@ -43364,8 +44673,8 @@ X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 -$as_echo_n "checking whether -R must be followed by a space... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 +printf %s "checking whether -R must be followed by a space... " >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes @@ -43381,18 +44690,19 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +if ac_fn_c_try_link "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" -else +else $as_nop LIBS="$ac_xsave_LIBS -R $x_libraries" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -43406,25 +44716,26 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +if ac_fn_c_try_link "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 -$as_echo "neither works" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 +printf "%s\n" "neither works" >&6; } fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ac_c_werror_flag=$ac_xsave_c_werror_flag LIBS=$ac_xsave_LIBS @@ -43447,9 +44758,6 @@ /* 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 XOpenDisplay (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -43460,21 +44768,23 @@ #endif #endif int -main () +main (void) { return XOpenDisplay (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 -$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } -if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 +printf %s "checking for dnet_ntoa in -ldnet... " >&6; } +if test ${ac_cv_lib_dnet_dnet_ntoa+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43483,9 +44793,6 @@ /* 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 dnet_ntoa (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -43496,34 +44803,37 @@ #endif #endif int -main () +main (void) { return dnet_ntoa (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dnet_dnet_ntoa=yes -else +else $as_nop ac_cv_lib_dnet_dnet_ntoa=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 -$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } -if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 +printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; } +if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes +then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 -$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } -if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 +printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; } +if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43532,9 +44842,6 @@ /* 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 dnet_ntoa (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -43545,31 +44852,33 @@ #endif #endif int -main () +main (void) { return dnet_ntoa (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dnet_stub_dnet_ntoa=yes -else +else $as_nop ac_cv_lib_dnet_stub_dnet_ntoa=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 -$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } -if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 +printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } +if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes +then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" @@ -43582,16 +44891,18 @@ # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" -if test "x$ac_cv_func_gethostbyname" = xyes; then : +if test "x$ac_cv_func_gethostbyname" = xyes +then : fi if test $ac_cv_func_gethostbyname = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 -$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } -if ${ac_cv_lib_nsl_gethostbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 +printf %s "checking for gethostbyname in -lnsl... " >&6; } +if test ${ac_cv_lib_nsl_gethostbyname+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43600,9 +44911,6 @@ /* 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 gethostbyname (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -43613,34 +44921,37 @@ #endif #endif int -main () +main (void) { return gethostbyname (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_nsl_gethostbyname=yes -else +else $as_nop ac_cv_lib_nsl_gethostbyname=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 -$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } -if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 +printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } +if test "x$ac_cv_lib_nsl_gethostbyname" = xyes +then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 -$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } -if ${ac_cv_lib_bsd_gethostbyname+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 +printf %s "checking for gethostbyname in -lbsd... " >&6; } +if test ${ac_cv_lib_bsd_gethostbyname+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43649,9 +44960,6 @@ /* 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 gethostbyname (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -43662,25 +44970,27 @@ #endif #endif int -main () +main (void) { return gethostbyname (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bsd_gethostbyname=yes -else +else $as_nop ac_cv_lib_bsd_gethostbyname=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 -$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } -if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 +printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; } +if test "x$ac_cv_lib_bsd_gethostbyname" = xyes +then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi @@ -43695,16 +45005,18 @@ # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" -if test "x$ac_cv_func_connect" = xyes; then : +if test "x$ac_cv_func_connect" = xyes +then : fi if test $ac_cv_func_connect = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 -$as_echo_n "checking for connect in -lsocket... " >&6; } -if ${ac_cv_lib_socket_connect+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 +printf %s "checking for connect in -lsocket... " >&6; } +if test ${ac_cv_lib_socket_connect+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43713,9 +45025,6 @@ /* 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 connect (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -43726,25 +45035,27 @@ #endif #endif int -main () +main (void) { return connect (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_socket_connect=yes -else +else $as_nop ac_cv_lib_socket_connect=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 -$as_echo "$ac_cv_lib_socket_connect" >&6; } -if test "x$ac_cv_lib_socket_connect" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 +printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } +if test "x$ac_cv_lib_socket_connect" = xyes +then : X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi @@ -43752,16 +45063,18 @@ # Guillermo Gomez says -lposix is necessary on A/UX. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" -if test "x$ac_cv_func_remove" = xyes; then : +if test "x$ac_cv_func_remove" = xyes +then : fi if test $ac_cv_func_remove = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 -$as_echo_n "checking for remove in -lposix... " >&6; } -if ${ac_cv_lib_posix_remove+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 +printf %s "checking for remove in -lposix... " >&6; } +if test ${ac_cv_lib_posix_remove+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43770,9 +45083,6 @@ /* 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 remove (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -43783,25 +45093,27 @@ #endif #endif int -main () +main (void) { return remove (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_posix_remove=yes -else +else $as_nop ac_cv_lib_posix_remove=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 -$as_echo "$ac_cv_lib_posix_remove" >&6; } -if test "x$ac_cv_lib_posix_remove" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 +printf "%s\n" "$ac_cv_lib_posix_remove" >&6; } +if test "x$ac_cv_lib_posix_remove" = xyes +then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi @@ -43809,16 +45121,18 @@ # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" -if test "x$ac_cv_func_shmat" = xyes; then : +if test "x$ac_cv_func_shmat" = xyes +then : fi if test $ac_cv_func_shmat = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 -$as_echo_n "checking for shmat in -lipc... " >&6; } -if ${ac_cv_lib_ipc_shmat+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 +printf %s "checking for shmat in -lipc... " >&6; } +if test ${ac_cv_lib_ipc_shmat+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43827,9 +45141,6 @@ /* 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 shmat (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -43840,25 +45151,27 @@ #endif #endif int -main () +main (void) { return shmat (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_ipc_shmat=yes -else +else $as_nop ac_cv_lib_ipc_shmat=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 -$as_echo "$ac_cv_lib_ipc_shmat" >&6; } -if test "x$ac_cv_lib_ipc_shmat" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 +printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; } +if test "x$ac_cv_lib_ipc_shmat" = xyes +then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi @@ -43874,11 +45187,12 @@ # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 -$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } -if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 +printf %s "checking for IceConnectionNumber in -lICE... " >&6; } +if test ${ac_cv_lib_ICE_IceConnectionNumber+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43887,9 +45201,6 @@ /* 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 IceConnectionNumber (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -43900,25 +45211,27 @@ #endif #endif int -main () +main (void) { return IceConnectionNumber (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_ICE_IceConnectionNumber=yes -else +else $as_nop ac_cv_lib_ICE_IceConnectionNumber=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 -$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } -if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 +printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } +if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes +then : X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi @@ -43931,19 +45244,20 @@ ## now we look for Xt and its header: it seems Intrinsic.h is key. r_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}" - ac_fn_c_check_header_mongrel "$LINENO" "X11/Intrinsic.h" "ac_cv_header_X11_Intrinsic_h" "$ac_includes_default" -if test "x$ac_cv_header_X11_Intrinsic_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "X11/Intrinsic.h" "ac_cv_header_X11_Intrinsic_h" "$ac_includes_default" +if test "x$ac_cv_header_X11_Intrinsic_h" = xyes +then : fi - CPPFLAGS="${r_save_CPPFLAGS}" if test "${ac_cv_header_X11_Intrinsic_h}" = yes ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtToolkitInitialize in -lXt" >&5 -$as_echo_n "checking for XtToolkitInitialize in -lXt... " >&6; } -if ${ac_cv_lib_Xt_XtToolkitInitialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XtToolkitInitialize in -lXt" >&5 +printf %s "checking for XtToolkitInitialize in -lXt... " >&6; } +if test ${ac_cv_lib_Xt_XtToolkitInitialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lXt ${X_LIBS} -lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43952,9 +45266,6 @@ /* 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 XtToolkitInitialize (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -43965,27 +45276,29 @@ #endif #endif int -main () +main (void) { return XtToolkitInitialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_Xt_XtToolkitInitialize=yes -else +else $as_nop ac_cv_lib_Xt_XtToolkitInitialize=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtToolkitInitialize" >&5 -$as_echo "$ac_cv_lib_Xt_XtToolkitInitialize" >&6; } -if test "x$ac_cv_lib_Xt_XtToolkitInitialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtToolkitInitialize" >&5 +printf "%s\n" "$ac_cv_lib_Xt_XtToolkitInitialize" >&6; } +if test "x$ac_cv_lib_Xt_XtToolkitInitialize" = xyes +then : have_Xt=yes -else +else $as_nop have_Xt=no fi @@ -43996,7 +45309,7 @@ fi if test "x${use_X11}" = "xyes"; then -$as_echo "#define HAVE_X11 1" >>confdefs.h +printf "%s\n" "#define HAVE_X11 1" >>confdefs.h X_LIBS="${X_LIBS} -lX11 -lXt" else @@ -44004,8 +45317,8 @@ as_fn_error $? "--with-x=yes (default) and X11 headers/libs are not available" "$LINENO" 5 fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: using X11 ... ${use_X11}" >&5 -$as_echo "using X11 ... ${use_X11}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using X11 ... ${use_X11}" >&5 +printf "%s\n" "using X11 ... ${use_X11}" >&6; } if test "x${use_X11}" = "xyes"; then BUILD_X11_TRUE= @@ -44022,16 +45335,17 @@ CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}" ac_fn_c_check_type "$LINENO" "KeySym" "ac_cv_type_KeySym" "#include " -if test "x$ac_cv_type_KeySym" = xyes; then : +if test "x$ac_cv_type_KeySym" = xyes +then : r_cv_type_keysym=yes -else +else $as_nop r_cv_type_keysym=no fi CPPFLAGS="${r_save_CPPFLAGS}" if test "${r_cv_type_keysym}" = yes; then -$as_echo "#define HAVE_KEYSYM 1" >>confdefs.h +printf "%s\n" "#define HAVE_KEYSYM 1" >>confdefs.h fi fi @@ -44039,19 +45353,20 @@ if test "${use_X11}" = yes; then r_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}" - ac_fn_c_check_header_mongrel "$LINENO" "X11/Xmu/Atoms.h" "ac_cv_header_X11_Xmu_Atoms_h" "$ac_includes_default" -if test "x$ac_cv_header_X11_Xmu_Atoms_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "X11/Xmu/Atoms.h" "ac_cv_header_X11_Xmu_Atoms_h" "$ac_includes_default" +if test "x$ac_cv_header_X11_Xmu_Atoms_h" = xyes +then : fi - CPPFLAGS="${r_save_CPPFLAGS}" if test "${ac_cv_header_X11_Xmu_Atoms_h}" = yes ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuInternAtom in -lXmu" >&5 -$as_echo_n "checking for XmuInternAtom in -lXmu... " >&6; } -if ${ac_cv_lib_Xmu_XmuInternAtom+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XmuInternAtom in -lXmu" >&5 +printf %s "checking for XmuInternAtom in -lXmu... " >&6; } +if test ${ac_cv_lib_Xmu_XmuInternAtom+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lXmu ${X_LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44060,9 +45375,6 @@ /* 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 XmuInternAtom (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -44073,33 +45385,35 @@ #endif #endif int -main () +main (void) { return XmuInternAtom (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_Xmu_XmuInternAtom=yes -else +else $as_nop ac_cv_lib_Xmu_XmuInternAtom=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5 -$as_echo "$ac_cv_lib_Xmu_XmuInternAtom" >&6; } -if test "x$ac_cv_lib_Xmu_XmuInternAtom" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuInternAtom" >&5 +printf "%s\n" "$ac_cv_lib_Xmu_XmuInternAtom" >&6; } +if test "x$ac_cv_lib_Xmu_XmuInternAtom" = xyes +then : use_Xmu=yes -else +else $as_nop use_Xmu=no fi if test "${use_Xmu}" = yes; then -$as_echo "#define HAVE_X11_Xmu 1" >>confdefs.h +printf "%s\n" "#define HAVE_X11_Xmu 1" >>confdefs.h X_LIBS="${X_LIBS} -lXmu" fi @@ -44109,16 +45423,17 @@ if test "x${want_cairo}" = "xyes"; then if test "x${PKG_CONFIG}" = "x"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: not checking for cairo as pkg-config is not present" >&5 -$as_echo "$as_me: not checking for cairo as pkg-config is not present" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not checking for cairo as pkg-config is not present" >&5 +printf "%s\n" "$as_me: not checking for cairo as pkg-config is not present" >&6;} else save_CPPFLAGS=${CPPFLAGS} save_LIBS=${LIBS} - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pkg-config knows about cairo and pango" >&5 -$as_echo_n "checking whether pkg-config knows about cairo and pango... " >&6; } -if ${r_cv_has_pangocairo+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pkg-config knows about cairo and pango" >&5 +printf %s "checking whether pkg-config knows about cairo and pango... " >&6; } +if test ${r_cv_has_pangocairo+y} +then : + printf %s "(cached) " >&6 +else $as_nop if "${PKG_CONFIG}" --exists pangocairo; then r_cv_has_pangocairo="yes" else @@ -44126,10 +45441,13 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_has_pangocairo" >&5 -$as_echo "$r_cv_has_pangocairo" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_has_pangocairo" >&5 +printf "%s\n" "$r_cv_has_pangocairo" >&6; } if test "x${r_cv_has_pangocairo}" = "xyes"; then modlist="pangocairo" + ## These tests are useful for existence of features but + ## because cairo is built as a single library they + ## currently make no difference to CPPFLAGS nor LIBS for module in cairo-png; do if "${PKG_CONFIG}" --exists ${module}; then modlist="${modlist} ${module}" @@ -44147,30 +45465,42 @@ modlist="${modlist} cairo-svg" r_cairo_svg=yes fi - if "${PKG_CONFIG}" --exists cairo-xlib; then - xmodlist="${modlist} cairo-xlib" - else - xmodlist="${modlist}" - fi + if "${PKG_CONFIG}" --exists cairo-xlib; then + xmodlist="${modlist} cairo-xlib" + r_cairo_xlib=yes + else + xmodlist="${modlist}" + fi CAIRO_CPPFLAGS=`"${PKG_CONFIG}" --cflags ${modlist}` CAIROX11_CPPFLAGS=`"${PKG_CONFIG}" --cflags ${xmodlist}` - CAIRO_LIBS=`"${PKG_CONFIG}" --libs ${modlist}` - CAIROX11_LIBS=`"${PKG_CONFIG}" --libs ${xmodlist}` + ## Static builds may currently be impossible as harfbuzz + ## requires graphite2 and that does not support static building. + if test "x$use_static_cairo" = xyes; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using static pangocairo" >&5 +printf "%s\n" "$as_me: using static pangocairo" >&6;} + CAIRO_LIBS=`"${PKG_CONFIG}" --static --libs ${modlist}` + CAIROX11_LIBS=`"${PKG_CONFIG}" --static --libs ${xmodlist}` + else + CAIRO_LIBS=`"${PKG_CONFIG}" --libs ${modlist}` + CAIROX11_LIBS=`"${PKG_CONFIG}" --libs ${xmodlist}` + fi CPPFLAGS="${CPPFLAGS} ${CAIRO_CPPFLAGS}" LIBS="${LIBS} ${CAIRO_LIBS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo including pango is >= 1.2 and works" >&5 -$as_echo_n "checking whether cairo including pango is >= 1.2 and works... " >&6; } -if ${r_cv_cairo_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cairo including pango is >= 1.2 and works" >&5 +printf %s "checking whether cairo including pango is >= 1.2 and works... " >&6; } +if test ${r_cv_cairo_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include -#include +//#include +#include #if CAIRO_VERSION < 10200 #error cairo version >= 1.2 required #endif @@ -44183,27 +45513,29 @@ } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : r_cv_cairo_works=yes -else +else $as_nop r_cv_cairo_works=no CAIRO_LIBS= CAIRO_CFLAGS= fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_cairo_works" >&5 -$as_echo "$r_cv_cairo_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_cairo_works" >&5 +printf "%s\n" "$r_cv_cairo_works" >&6; } CPPFLAGS=${save_CPPFLAGS} LIBS=${save_LIBS} else ## no pangocairo, check for just cairo - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pkg-config knows about cairo" >&5 -$as_echo_n "checking whether pkg-config knows about cairo... " >&6; } -if ${r_cv_has_cairo+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pkg-config knows about cairo" >&5 +printf %s "checking whether pkg-config knows about cairo... " >&6; } +if test ${r_cv_has_cairo+y} +then : + printf %s "(cached) " >&6 +else $as_nop if "${PKG_CONFIG}" --exists cairo; then r_cv_has_cairo="yes" else @@ -44211,8 +45543,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_has_cairo" >&5 -$as_echo "$r_cv_has_cairo" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_has_cairo" >&5 +printf "%s\n" "$r_cv_has_cairo" >&6; } if test "x${r_cv_has_cairo}" = "xyes"; then modlist="cairo" ## on Linux, cairo-ft brings in header paths : @@ -44236,42 +45568,42 @@ fi if "${PKG_CONFIG}" --exists cairo-xlib; then xmodlist="${modlist} cairo-xlib" + r_cairo_xlib=yes else xmodlist="${modlist}" fi CAIRO_CPPFLAGS=`"${PKG_CONFIG}" --cflags ${modlist}` CAIROX11_CPPFLAGS=`"${PKG_CONFIG}" --cflags ${xmodlist}` - case "${host_os}" in - darwin*) - ## This is for static macOS build - ## FIXME: doing that unconditionally is really not a good idea + if test "x$use_static_cairo" = xyes; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using static cairo" >&5 +printf "%s\n" "$as_me: using static cairo" >&6;} CAIRO_LIBS=`"${PKG_CONFIG}" --static --libs ${modlist}` CAIROX11_LIBS=`"${PKG_CONFIG}" --static --libs ${xmodlist}` - ;; - *) + else CAIRO_LIBS=`"${PKG_CONFIG}" --libs ${modlist}` CAIROX11_LIBS=`"${PKG_CONFIG}" --libs ${xmodlist}` - ;; - esac + fi CPPFLAGS="${CPPFLAGS} ${CAIRO_CPPFLAGS} ${CAIROX11_CPPFLAGS}" LIBS="${LIBS} ${CAIRO_LIBS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cairo is >= 1.2 and works" >&5 -$as_echo_n "checking whether cairo is >= 1.2 and works... " >&6; } -if ${r_cv_cairo_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cairo is >= 1.2 and works" >&5 +printf %s "checking whether cairo is >= 1.2 and works... " >&6; } +if test ${r_cv_cairo_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include -#include +//#include +#include #if CAIRO_VERSION < 10200 #error cairo version >= 1.2 required #endif int main(void) { - cairo_t *CC; + cairo_t *CC = NULL; // silence picky compilers cairo_arc(CC, 0.0, 0.0, 1.0, 0.0, 6.28); cairo_select_font_face (CC, "Helvetica", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD); @@ -44279,19 +45611,22 @@ } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : r_cv_cairo_works=yes -else +else $as_nop r_cv_cairo_works=no CAIRO_LIBS= CAIRO_CFLAGS= + CAIROX11_LIBS= + CAIROX11_CFLAGS= fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_cairo_works" >&5 -$as_echo "$r_cv_cairo_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_cairo_works" >&5 +printf "%s\n" "$r_cv_cairo_works" >&6; } CPPFLAGS=${save_CPPFLAGS} LIBS=${save_LIBS} fi @@ -44300,27 +45635,32 @@ if test "x${r_cv_has_pangocairo}" = xyes; then -$as_echo "#define HAVE_PANGOCAIRO 1" >>confdefs.h +printf "%s\n" "#define HAVE_PANGOCAIRO 1" >>confdefs.h fi if test "x${r_cv_cairo_works}" = xyes; then -$as_echo "#define HAVE_WORKING_CAIRO 1" >>confdefs.h +printf "%s\n" "#define HAVE_WORKING_CAIRO 1" >>confdefs.h + + if test "x${r_cairo_xlib}" = xyes; then + +printf "%s\n" "#define HAVE_WORKING_X11_CAIRO 1" >>confdefs.h + fi fi if test "x${r_cairo_pdf}" = xyes; then -$as_echo "#define HAVE_CAIRO_PDF 1" >>confdefs.h +printf "%s\n" "#define HAVE_CAIRO_PDF 1" >>confdefs.h fi if test "x${r_cairo_ps}" = xyes; then -$as_echo "#define HAVE_CAIRO_PS 1" >>confdefs.h +printf "%s\n" "#define HAVE_CAIRO_PS 1" >>confdefs.h fi if test "x${r_cairo_svg}" = xyes; then -$as_echo "#define HAVE_CAIRO_SVG 1" >>confdefs.h +printf "%s\n" "#define HAVE_CAIRO_SVG 1" >>confdefs.h fi @@ -44344,11 +45684,12 @@ darwin*) ## check for CoreFoundation framework (chances are much higher ## that we can build AQUA if this one is present) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFStringGetSystemEncoding in CoreFoundation framework" >&5 -$as_echo_n "checking for CFStringGetSystemEncoding in CoreFoundation framework... " >&6; } -if ${r_cv_check_fw_CoreFoundation+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFStringGetSystemEncoding in CoreFoundation framework" >&5 +printf %s "checking for CFStringGetSystemEncoding in CoreFoundation framework... " >&6; } +if test ${r_cv_check_fw_CoreFoundation+y} +then : + printf %s "(cached) " >&6 +else $as_nop r_cv_check_fw_save_LIBS=$LIBS r_cv_check_fw_CoreFoundation=no LIBS="-framework CoreFoundation $LIBS" @@ -44358,9 +45699,6 @@ /* 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 CFStringGetSystemEncoding (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -44371,31 +45709,31 @@ #endif #endif int -main () +main (void) { return CFStringGetSystemEncoding (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : r_cv_check_fw_CoreFoundation="-framework CoreFoundation" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$r_cv_check_fw_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_check_fw_CoreFoundation" >&5 -$as_echo "$r_cv_check_fw_CoreFoundation" >&6; } - if test "$r_cv_check_fw_CoreFoundation" != no; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_check_fw_CoreFoundation" >&5 +printf "%s\n" "$r_cv_check_fw_CoreFoundation" >&6; } + if test "$r_cv_check_fw_CoreFoundation" != no +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_COREFOUNDATION_FW 1 -_ACEOF +printf "%s\n" "#define HAVE_COREFOUNDATION_FW 1" >>confdefs.h have_CoreFoundation_fw=yes -else +else $as_nop have_CoreFoundation_fw=no fi @@ -44412,15 +45750,15 @@ if test -n "${r_cv_check_fw_CoreFoundation}" ; then use_aqua=yes else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: requested 'aqua' but CoreFoundation was not found" >&5 -$as_echo "$as_me: WARNING: requested 'aqua' but CoreFoundation was not found" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: requested 'aqua' but CoreFoundation was not found" >&5 +printf "%s\n" "$as_me: WARNING: requested 'aqua' but CoreFoundation was not found" >&2;} fi ;; esac fi if test "${use_aqua}" = yes; then -$as_echo "#define HAVE_AQUA 1" >>confdefs.h +printf "%s\n" "#define HAVE_AQUA 1" >>confdefs.h fi @@ -44453,11 +45791,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TCL_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_TCL_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $TCL_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_TCL_CONFIG="$TCL_CONFIG" # Let the user override the test with a path. @@ -44467,11 +45806,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TCL_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_TCL_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -44483,11 +45826,11 @@ fi TCL_CONFIG=$ac_cv_path_TCL_CONFIG if test -n "$TCL_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG" >&5 -$as_echo "$TCL_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG" >&5 +printf "%s\n" "$TCL_CONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -44495,11 +45838,12 @@ done if test -z "${TCL_CONFIG}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh in library (sub)directories" >&5 -$as_echo_n "checking for tclConfig.sh in library (sub)directories... " >&6; } -if ${r_cv_path_TCL_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh in library (sub)directories" >&5 +printf %s "checking for tclConfig.sh in library (sub)directories... " >&6; } +if test ${r_cv_path_TCL_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop for ldir in /usr/local/${LIBnn} /usr/${LIBnn} /${LIBnn} /opt/lib /sw/lib /opt/csw/lib /usr/sfw/lib /opt/freeware/lib; do for dir in \ ${ldir} \ @@ -44513,11 +45857,11 @@ fi if test -n "${r_cv_path_TCL_CONFIG}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${r_cv_path_TCL_CONFIG}" >&5 -$as_echo "${r_cv_path_TCL_CONFIG}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${r_cv_path_TCL_CONFIG}" >&5 +printf "%s\n" "${r_cv_path_TCL_CONFIG}" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test -n "${r_cv_path_TCL_CONFIG}"; then @@ -44528,11 +45872,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TK_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_TK_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $TK_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_TK_CONFIG="$TK_CONFIG" # Let the user override the test with a path. @@ -44542,11 +45887,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TK_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_TK_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -44558,11 +45907,11 @@ fi TK_CONFIG=$ac_cv_path_TK_CONFIG if test -n "$TK_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TK_CONFIG" >&5 -$as_echo "$TK_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TK_CONFIG" >&5 +printf "%s\n" "$TK_CONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -44570,11 +45919,12 @@ done if test -z "${TK_CONFIG}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh in library (sub)directories" >&5 -$as_echo_n "checking for tkConfig.sh in library (sub)directories... " >&6; } -if ${r_cv_path_TK_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh in library (sub)directories" >&5 +printf %s "checking for tkConfig.sh in library (sub)directories... " >&6; } +if test ${r_cv_path_TK_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop for ldir in /usr/local/${LIBnn} /usr/${LIBnn} /${LIBnn} /opt/lib /sw/lib /opt/csw/lib /usr/sfw/lib /opt/freeware/lib; do for dir in \ ${ldir} \ @@ -44588,11 +45938,11 @@ fi if test -n "${r_cv_path_TK_CONFIG}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${r_cv_path_TK_CONFIG}" >&5 -$as_echo "${r_cv_path_TK_CONFIG}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${r_cv_path_TK_CONFIG}" >&5 +printf "%s\n" "${r_cv_path_TK_CONFIG}" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test -n "${r_cv_path_TK_CONFIG}"; then @@ -44612,8 +45962,8 @@ . ${TCL_CONFIG} if test ${TCL_MAJOR_VERSION} -lt 8; then warn_tcltk_version="Tcl/Tk support requires Tcl version >= 8" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_tcltk_version}" >&5 -$as_echo "$as_me: WARNING: ${warn_tcltk_version}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_tcltk_version}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_tcltk_version}" >&2;} have_tcltk=no fi fi @@ -44622,8 +45972,8 @@ . ${TK_CONFIG} if test ${TK_MAJOR_VERSION} -lt 8; then warn_tcltk_version="Tcl/Tk support requires Tk version >= 8" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_tcltk_version}" >&5 -$as_echo "$as_me: WARNING: ${warn_tcltk_version}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_tcltk_version}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_tcltk_version}" >&2;} have_tcltk=no fi fi @@ -44633,8 +45983,8 @@ if test ${TCL_MAJOR_VERSION} -ne ${TK_MAJOR_VERSION} \ || test ${TCL_MINOR_VERSION} -ne ${TK_MINOR_VERSION}; then warn_tcltk_version="Tcl and Tk major or minor versions disagree" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_tcltk_version}" >&5 -$as_echo "$as_me: WARNING: ${warn_tcltk_version}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_tcltk_version}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_tcltk_version}" >&2;} have_tcltk=no fi fi @@ -44652,13 +46002,13 @@ if test -n ${TCL_INCLUDE_SPEC} ; then r_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${TCL_INCLUDE_SPEC}" - ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default" -if test "x$ac_cv_header_tcl_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default" +if test "x$ac_cv_header_tcl_h" = xyes +then : TCLTK_CPPFLAGS="${TCL_INCLUDE_SPEC}" found_tcl_h=yes fi - CPPFLAGS="${r_save_CPPFLAGS}" fi if test "${found_tcl_h}" = no; then @@ -44675,24 +46025,25 @@ ${TCL_PREFIX}/include/tcl${TCL_VERSION}/generic \ ${TCL_PREFIX}/include/tcl${TCL_VERSION} \ ${TCL_PREFIX}/include; do - as_ac_Header=`$as_echo "ac_cv_header_${dir}/tcl.h" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "${dir}/tcl.h" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + as_ac_Header=`printf "%s\n" "ac_cv_header_${dir}/tcl.h" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "${dir}/tcl.h" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes" +then : TCLTK_CPPFLAGS="-I${dir}" found_tcl_h=yes break fi - done fi fi if test "${found_tcl_h}" = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcl.h" >&5 -$as_echo_n "checking for tcl.h... " >&6; } -if ${r_cv_header_tcl_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcl.h" >&5 +printf %s "checking for tcl.h... " >&6; } +if test ${r_cv_header_tcl_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -44704,16 +46055,17 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : r_cv_header_tcl_h=yes -else +else $as_nop r_cv_header_tcl_h=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_tcl_h" >&5 -$as_echo "$r_cv_header_tcl_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_tcl_h" >&5 +printf "%s\n" "$r_cv_header_tcl_h" >&6; } if test "${r_cv_header_tcl_h}" = yes; then found_tcl_h=yes @@ -44732,13 +46084,13 @@ if test -n ${TK_INCLUDE_SPEC} ; then r_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${TCLTK_CPPFLAGS} ${TK_XINCLUDES} ${TK_INCLUDE_SPEC}" - ac_fn_c_check_header_mongrel "$LINENO" "tk.h" "ac_cv_header_tk_h" "$ac_includes_default" -if test "x$ac_cv_header_tk_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "tk.h" "ac_cv_header_tk_h" "$ac_includes_default" +if test "x$ac_cv_header_tk_h" = xyes +then : TCLTK_CPPFLAGS="${TCLTK_CPPFLAGS} ${TK_INCLUDE_SPEC}" found_tk_h=yes fi - found_tk_by_config=yes CPPFLAGS="${r_save_CPPFLAGS}" fi @@ -44763,25 +46115,26 @@ ${TK_PREFIX}/include/tk${TK_VERSION} \ ${TK_PREFIX}/include/tcl${TK_VERSION} \ ${TK_PREFIX}/include; do - as_ac_Header=`$as_echo "ac_cv_header_${dir}/tk.h" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "${dir}/tk.h" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + as_ac_Header=`printf "%s\n" "ac_cv_header_${dir}/tk.h" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "${dir}/tk.h" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes" +then : TCLTK_CPPFLAGS="${TCLTK_CPPFLAGS} -I${dir}" found_tk_h=yes break fi - done CPPFLAGS="${r_save_CPPFLAGS}" fi fi if test "${found_tk_h}" = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tk.h" >&5 -$as_echo_n "checking for tk.h... " >&6; } -if ${r_cv_header_tk_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tk.h" >&5 +printf %s "checking for tk.h... " >&6; } +if test ${r_cv_header_tk_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -44793,16 +46146,17 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : r_cv_header_tk_h=yes -else +else $as_nop r_cv_header_tk_h=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_tk_h" >&5 -$as_echo "$r_cv_header_tk_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_tk_h" >&5 +printf "%s\n" "$r_cv_header_tk_h" >&6; } if test "{r_cv_header_tk_h}" = yes; then found_tk_h=yes @@ -44829,11 +46183,12 @@ . ${TCL_CONFIG} TCLTK_LIBS="${TCL_LIB_SPEC}" else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateInterp in -ltcl" >&5 -$as_echo_n "checking for Tcl_CreateInterp in -ltcl... " >&6; } -if ${ac_cv_lib_tcl_Tcl_CreateInterp+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateInterp in -ltcl" >&5 +printf %s "checking for Tcl_CreateInterp in -ltcl... " >&6; } +if test ${ac_cv_lib_tcl_Tcl_CreateInterp+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ltcl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44842,9 +46197,6 @@ /* 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 Tcl_CreateInterp (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -44855,27 +46207,29 @@ #endif #endif int -main () +main (void) { return Tcl_CreateInterp (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_tcl_Tcl_CreateInterp=yes -else +else $as_nop ac_cv_lib_tcl_Tcl_CreateInterp=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl_Tcl_CreateInterp" >&5 -$as_echo "$ac_cv_lib_tcl_Tcl_CreateInterp" >&6; } -if test "x$ac_cv_lib_tcl_Tcl_CreateInterp" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl_Tcl_CreateInterp" >&5 +printf "%s\n" "$ac_cv_lib_tcl_Tcl_CreateInterp" >&6; } +if test "x$ac_cv_lib_tcl_Tcl_CreateInterp" = xyes +then : TCLTK_LIBS=-ltcl -else +else $as_nop have_tcltk=no fi @@ -44887,11 +46241,12 @@ . ${TK_CONFIG} TCLTK_LIBS="${TCLTK_LIBS} ${TK_LIB_SPEC} ${TK_XLIBSW}" else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk_Init in -ltk" >&5 -$as_echo_n "checking for Tk_Init in -ltk... " >&6; } -if ${ac_cv_lib_tk_Tk_Init+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk_Init in -ltk" >&5 +printf %s "checking for Tk_Init in -ltk... " >&6; } +if test ${ac_cv_lib_tk_Tk_Init+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ltk ${TCLTK_LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44900,9 +46255,6 @@ /* 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 Tk_Init (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -44913,28 +46265,28 @@ #endif #endif int -main () +main (void) { return Tk_Init (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_tk_Tk_Init=yes -else +else $as_nop ac_cv_lib_tk_Tk_Init=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tk_Tk_Init" >&5 -$as_echo "$ac_cv_lib_tk_Tk_Init" >&6; } -if test "x$ac_cv_lib_tk_Tk_Init" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBTK 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tk_Tk_Init" >&5 +printf "%s\n" "$ac_cv_lib_tk_Tk_Init" >&6; } +if test "x$ac_cv_lib_tk_Tk_Init" = xyes +then : + printf "%s\n" "#define HAVE_LIBTK 1" >>confdefs.h LIBS="-ltk $LIBS" @@ -44948,11 +46300,12 @@ ## (ac_cv_lib_tk_Tk_Init in our case) if set. As using unset ## is not portable shell programming according to the Autoconf ## docs, we use Tk_SafeInit in the test with X11 libs added. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk_SafeInit in -ltk" >&5 -$as_echo_n "checking for Tk_SafeInit in -ltk... " >&6; } -if ${ac_cv_lib_tk_Tk_SafeInit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk_SafeInit in -ltk" >&5 +printf %s "checking for Tk_SafeInit in -ltk... " >&6; } +if test ${ac_cv_lib_tk_Tk_SafeInit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ltk ${TCLTK_LIBS} ${X_LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44961,9 +46314,6 @@ /* 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 Tk_SafeInit (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -44974,27 +46324,29 @@ #endif #endif int -main () +main (void) { return Tk_SafeInit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_tk_Tk_SafeInit=yes -else +else $as_nop ac_cv_lib_tk_Tk_SafeInit=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tk_Tk_SafeInit" >&5 -$as_echo "$ac_cv_lib_tk_Tk_SafeInit" >&6; } -if test "x$ac_cv_lib_tk_Tk_SafeInit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tk_Tk_SafeInit" >&5 +printf "%s\n" "$ac_cv_lib_tk_Tk_SafeInit" >&6; } +if test "x$ac_cv_lib_tk_Tk_SafeInit" = xyes +then : TCLTK_LIBS="${TCLTK_LIBS} -ltk ${X_LIBS}" -else +else $as_nop have_tcltk=no fi @@ -45029,11 +46381,12 @@ fi if test "${have_tcltk}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling/linking Tcl/Tk code works" >&5 -$as_echo_n "checking whether compiling/linking Tcl/Tk code works... " >&6; } -if ${r_cv_tcltk_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling/linking Tcl/Tk code works" >&5 +printf %s "checking whether compiling/linking Tcl/Tk code works... " >&6; } +if test ${r_cv_tcltk_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -45058,7 +46411,7 @@ #endif #endif int -main () +main (void) { static char * p1 = (char *) Tcl_Init; static char * p2 = (char *) Tk_Init; @@ -45067,12 +46420,13 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : r_cv_tcltk_works=yes -else +else $as_nop r_cv_tcltk_works=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS="${r_save_CPPFLAGS}" LIBS="${r_save_LIBS}" @@ -45083,8 +46437,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_tcltk_works" >&5 -$as_echo "$r_cv_tcltk_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_tcltk_works" >&5 +printf "%s\n" "$r_cv_tcltk_works" >&6; } have_tcltk=${r_cv_tcltk_works} fi @@ -45096,7 +46450,7 @@ fi if test "${have_tcltk}" = yes; then -$as_echo "#define HAVE_TCLTK 1" >>confdefs.h +printf "%s\n" "#define HAVE_TCLTK 1" >>confdefs.h use_tcltk=yes else @@ -45108,11 +46462,12 @@ ## BSD networking. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD networking" >&5 -$as_echo_n "checking for BSD networking... " >&6; } -if ${r_cv_bsd_networking+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD networking" >&5 +printf %s "checking for BSD networking... " >&6; } +if test ${r_cv_bsd_networking+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test "${ac_cv_header_netdb_h}" = yes \ && test "${ac_cv_header_arpa_inet_h}" = yes \ && test "${ac_cv_header_netinet_in_h}" = yes \ @@ -45124,25 +46479,25 @@ as_fn_error $? "BSD networking functions are required" "$LINENO" 5 fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_bsd_networking" >&5 -$as_echo "$r_cv_bsd_networking" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_bsd_networking" >&5 +printf "%s\n" "$r_cv_bsd_networking" >&6; } ## XDR headers and library routines. -ac_fn_c_check_header_mongrel "$LINENO" "rpc/types.h" "ac_cv_header_rpc_types_h" "$ac_includes_default" -if test "x$ac_cv_header_rpc_types_h" = xyes; then : +ac_fn_c_check_header_compile "$LINENO" "rpc/types.h" "ac_cv_header_rpc_types_h" "$ac_includes_default" +if test "x$ac_cv_header_rpc_types_h" = xyes +then : fi - if test "${ac_cv_header_rpc_types_h}" = yes ; then ac_fn_c_check_header_compile "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "#include " -if test "x$ac_cv_header_rpc_xdr_h" = xyes; then : +if test "x$ac_cv_header_rpc_xdr_h" = xyes +then : fi - fi if test "${ac_cv_header_rpc_types_h}" = yes && \ test "${ac_cv_header_rpc_xdr_h}" = yes && \ @@ -45157,20 +46512,20 @@ ## on include path to find /usr/include/tirpc/netconfig.h save_CPPFLAGS=${CPPFLAGS} CPPFLAGS="${CPPFLAGS} -I/usr/include/tirpc" - ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/types.h" "ac_cv_header_tirpc_rpc_types_h" "$ac_includes_default" -if test "x$ac_cv_header_tirpc_rpc_types_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "tirpc/rpc/types.h" "ac_cv_header_tirpc_rpc_types_h" "$ac_includes_default" +if test "x$ac_cv_header_tirpc_rpc_types_h" = xyes +then : fi - if test "${ac_cv_header_tirpc_rpc_types_h}" = yes ; then ac_fn_c_check_header_compile "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "#include " -if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then : +if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes +then : fi - fi if test "${ac_cv_header_tirpc_rpc_types_h}" = yes && \ test "${ac_cv_header_tirpc_rpc_xdr_h}" = yes && @@ -45180,10 +46535,10 @@ fi CPPFLAGS="${save_CPPFLAGS}" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDR support" >&5 -$as_echo_n "checking for XDR support... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${r_xdr}" >&5 -$as_echo "${r_xdr}" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDR support" >&5 +printf %s "checking for XDR support... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${r_xdr}" >&5 +printf "%s\n" "${r_xdr}" >&6; } if test "x${r_xdr}" = xno; then BUILD_XDR_TRUE= BUILD_XDR_FALSE='#' @@ -45196,11 +46551,12 @@ ## zlib headers and libraries. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateInit2_ in -lz" >&5 -$as_echo_n "checking for inflateInit2_ in -lz... " >&6; } -if ${ac_cv_lib_z_inflateInit2_+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateInit2_ in -lz" >&5 +printf %s "checking for inflateInit2_ in -lz... " >&6; } +if test ${ac_cv_lib_z_inflateInit2_+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45209,9 +46565,6 @@ /* 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 inflateInit2_ (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -45222,49 +46575,53 @@ #endif #endif int -main () +main (void) { return inflateInit2_ (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_z_inflateInit2_=yes -else +else $as_nop ac_cv_lib_z_inflateInit2_=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateInit2_" >&5 -$as_echo "$ac_cv_lib_z_inflateInit2_" >&6; } -if test "x$ac_cv_lib_z_inflateInit2_" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateInit2_" >&5 +printf "%s\n" "$ac_cv_lib_z_inflateInit2_" >&6; } +if test "x$ac_cv_lib_z_inflateInit2_" = xyes +then : have_zlib=yes -else +else $as_nop have_zlib=no fi if test "${have_zlib}" = yes; then - ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" -if test "x$ac_cv_header_zlib_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" +if test "x$ac_cv_header_zlib_h" = xyes +then : have_zlib=yes -else +else $as_nop have_zlib=no fi - fi if test "${have_zlib}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if zlib version >= 1.2.5" >&5 -$as_echo_n "checking if zlib version >= 1.2.5... " >&6; } -if ${r_cv_header_zlib_h+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if zlib version >= 1.2.5" >&5 +printf %s "checking if zlib version >= 1.2.5... " >&6; } +if test ${r_cv_header_zlib_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_header_zlib_h=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -45283,9 +46640,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_header_zlib_h=yes -else +else $as_nop r_cv_header_zlib_h=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -45293,69 +46651,29 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_zlib_h" >&5 -$as_echo "$r_cv_header_zlib_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_zlib_h" >&5 +printf "%s\n" "$r_cv_header_zlib_h" >&6; } have_zlib=${r_cv_header_zlib_h} fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib support suffices" >&5 -$as_echo_n "checking whether zlib support suffices... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether zlib support suffices" >&5 +printf %s "checking whether zlib support suffices... " >&6; } if test "${have_zlib}" != yes; then as_fn_error $? "zlib library and headers are required" "$LINENO" 5 else LIBS="-lz ${LIBS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking mmap support for zlib" >&5 -$as_echo_n "checking mmap support for zlib... " >&6; } -if ${r_cv_zlib_mmap+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - r_cv_zlib_mmap=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include -#include -#include -caddr_t hello() { - exit(mmap((caddr_t)0, (off_t)0, PROT_READ, MAP_SHARED, 0, (off_t)0)); -} - -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - r_cv_zlib_mmap=no -else - r_cv_zlib_mmap=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_zlib_mmap" >&5 -$as_echo "$r_cv_zlib_mmap" >&6; } - -fi - if test "x${have_zlib}" = xno && test "x${r_cv_zlib_mmap}" = xyes; then - USE_MMAP_ZLIB_TRUE= - USE_MMAP_ZLIB_FALSE='#' -else - USE_MMAP_ZLIB_TRUE='#' - USE_MMAP_ZLIB_FALSE= + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi - ## bzlib headers and libraries. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzlibVersion in -lbz2" >&5 -$as_echo_n "checking for BZ2_bzlibVersion in -lbz2... " >&6; } -if ${ac_cv_lib_bz2_BZ2_bzlibVersion+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzlibVersion in -lbz2" >&5 +printf %s "checking for BZ2_bzlibVersion in -lbz2... " >&6; } +if test ${ac_cv_lib_bz2_BZ2_bzlibVersion+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbz2 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45364,9 +46682,6 @@ /* 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 BZ2_bzlibVersion (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -45377,52 +46692,53 @@ #endif #endif int -main () +main (void) { return BZ2_bzlibVersion (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bz2_BZ2_bzlibVersion=yes -else +else $as_nop ac_cv_lib_bz2_BZ2_bzlibVersion=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzlibVersion" >&5 -$as_echo "$ac_cv_lib_bz2_BZ2_bzlibVersion" >&6; } -if test "x$ac_cv_lib_bz2_BZ2_bzlibVersion" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzlibVersion" >&5 +printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzlibVersion" >&6; } +if test "x$ac_cv_lib_bz2_BZ2_bzlibVersion" = xyes +then : have_bzlib=yes -else +else $as_nop have_bzlib=no fi if test "${have_bzlib}" = yes; then - for ac_header in bzlib.h + for ac_header in bzlib.h do : - ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" -if test "x$ac_cv_header_bzlib_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_BZLIB_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" +if test "x$ac_cv_header_bzlib_h" = xyes +then : + printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h have_bzlib=yes -else +else $as_nop have_bzlib=no fi done - fi if test "x${have_bzlib}" = xyes; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if bzip2 version >= 1.0.6" >&5 -$as_echo_n "checking if bzip2 version >= 1.0.6... " >&6; } -if ${r_cv_have_bzlib+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if bzip2 version >= 1.0.6" >&5 +printf %s "checking if bzip2 version >= 1.0.6... " >&6; } +if test ${r_cv_have_bzlib+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -45431,9 +46747,10 @@ r_save_LIBS="${LIBS}" LIBS="-lbz2 ${LIBS}" -if test "$cross_compiling" = yes; then : +if test "$cross_compiling" = yes +then : r_cv_have_bzlib=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -45448,9 +46765,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_have_bzlib=yes -else +else $as_nop r_cv_have_bzlib=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -45465,17 +46783,17 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_bzlib" >&5 -$as_echo "$r_cv_have_bzlib" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_bzlib" >&5 +printf "%s\n" "$r_cv_have_bzlib" >&6; } fi if test "x${r_cv_have_bzlib}" = xno; then have_bzlib=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bzip2 support suffices" >&5 -$as_echo_n "checking whether bzip2 support suffices... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether bzip2 support suffices" >&5 +printf %s "checking whether bzip2 support suffices... " >&6; } if test "x${have_bzlib}" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } LIBS="-lbz2 ${LIBS}" else as_fn_error $? "bzip2 library and headers are required" "$LINENO" 5 @@ -45483,11 +46801,12 @@ ## LZMA headers and libraries from xz-utils -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_version_number in -llzma" >&5 -$as_echo_n "checking for lzma_version_number in -llzma... " >&6; } -if ${ac_cv_lib_lzma_lzma_version_number+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_version_number in -llzma" >&5 +printf %s "checking for lzma_version_number in -llzma... " >&6; } +if test ${ac_cv_lib_lzma_lzma_version_number+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-llzma $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45496,9 +46815,6 @@ /* 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 lzma_version_number (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -45509,52 +46825,53 @@ #endif #endif int -main () +main (void) { return lzma_version_number (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_lzma_lzma_version_number=yes -else +else $as_nop ac_cv_lib_lzma_lzma_version_number=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_version_number" >&5 -$as_echo "$ac_cv_lib_lzma_lzma_version_number" >&6; } -if test "x$ac_cv_lib_lzma_lzma_version_number" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_version_number" >&5 +printf "%s\n" "$ac_cv_lib_lzma_lzma_version_number" >&6; } +if test "x$ac_cv_lib_lzma_lzma_version_number" = xyes +then : have_lzma=yes -else +else $as_nop have_lzma=no fi if test "${have_lzma}" = yes; then - for ac_header in lzma.h + for ac_header in lzma.h do : - ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" -if test "x$ac_cv_header_lzma_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LZMA_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" +if test "x$ac_cv_header_lzma_h" = xyes +then : + printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h have_lzma=yes -else +else $as_nop have_lzma=no fi done - fi if test "x${have_lzma}" = xyes; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if lzma version >= 5.0.3" >&5 -$as_echo_n "checking if lzma version >= 5.0.3... " >&6; } -if ${r_cv_have_lzma+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lzma version >= 5.0.3" >&5 +printf %s "checking if lzma version >= 5.0.3... " >&6; } +if test ${r_cv_have_lzma+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -45563,9 +46880,10 @@ r_save_LIBS="${LIBS}" LIBS="-llzma ${LIBS}" -if test "$cross_compiling" = yes; then : +if test "$cross_compiling" = yes +then : r_cv_have_lzma=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -45581,9 +46899,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_have_lzma=yes -else +else $as_nop r_cv_have_lzma=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -45598,15 +46917,15 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_lzma" >&5 -$as_echo "$r_cv_have_lzma" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_lzma" >&5 +printf "%s\n" "$r_cv_have_lzma" >&6; } fi if test "x${r_cv_have_lzma}" = xno; then have_lzma=no fi if test "x${have_lzma}" = xyes; then -$as_echo "#define HAVE_LZMA 1" >>confdefs.h +printf "%s\n" "#define HAVE_LZMA 1" >>confdefs.h LIBS="-llzma ${LIBS}" else @@ -45624,11 +46943,12 @@ else # Extract the first word of "pcre2-config", so it can be a program name with args. set dummy pcre2-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PCRE2_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PCRE2_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PCRE2_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PCRE2_CONFIG="$PCRE2_CONFIG" # Let the user override the test with a path. @@ -45638,11 +46958,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PCRE2_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PCRE2_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -45654,11 +46978,11 @@ fi PCRE2_CONFIG=$ac_cv_path_PCRE2_CONFIG if test -n "$PCRE2_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE2_CONFIG" >&5 -$as_echo "$PCRE2_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCRE2_CONFIG" >&5 +printf "%s\n" "$PCRE2_CONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -45674,22 +46998,23 @@ r_save_LIBS="${LIBS}" LIBS="${PCRE2_LIBS} ${LIBS}" -$as_echo "#define PCRE2_CODE_UNIT_WIDTH 8" >>confdefs.h +printf "%s\n" "#define PCRE2_CODE_UNIT_WIDTH 8" >>confdefs.h - ac_fn_c_check_header_mongrel "$LINENO" "pcre2.h" "ac_cv_header_pcre2_h" "$ac_includes_default" -if test "x$ac_cv_header_pcre2_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "pcre2.h" "ac_cv_header_pcre2_h" "$ac_includes_default" +if test "x$ac_cv_header_pcre2_h" = xyes +then : have_pcre2=yes -else +else $as_nop have_pcre2=no fi - if test "x${have_pcre2}" = "xyes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_8 in -lpcre2-8" >&5 -$as_echo_n "checking for pcre2_compile_8 in -lpcre2-8... " >&6; } -if ${ac_cv_lib_pcre2_8_pcre2_compile_8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_8 in -lpcre2-8" >&5 +printf %s "checking for pcre2_compile_8 in -lpcre2-8... " >&6; } +if test ${ac_cv_lib_pcre2_8_pcre2_compile_8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpcre2-8 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45698,9 +47023,6 @@ /* 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 pcre2_compile_8 (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -45711,39 +47033,43 @@ #endif #endif int -main () +main (void) { return pcre2_compile_8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pcre2_8_pcre2_compile_8=yes -else +else $as_nop ac_cv_lib_pcre2_8_pcre2_compile_8=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_8_pcre2_compile_8" >&5 -$as_echo "$ac_cv_lib_pcre2_8_pcre2_compile_8" >&6; } -if test "x$ac_cv_lib_pcre2_8_pcre2_compile_8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_8_pcre2_compile_8" >&5 +printf "%s\n" "$ac_cv_lib_pcre2_8_pcre2_compile_8" >&6; } +if test "x$ac_cv_lib_pcre2_8_pcre2_compile_8" = xyes +then : have_pcre2=yes -else +else $as_nop have_pcre2=no fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PCRE2 has Unicode support" >&5 -$as_echo_n "checking if PCRE2 has Unicode support... " >&6; } -if ${r_cv_have_pcre2utf+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PCRE2 has Unicode support" >&5 +printf %s "checking if PCRE2 has Unicode support... " >&6; } +if test ${r_cv_have_pcre2utf+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_have_pcre2utf=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -45757,9 +47083,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_have_pcre2utf=yes -else +else $as_nop r_cv_have_pcre2utf=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -45767,11 +47094,11 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_pcre2utf" >&5 -$as_echo "$r_cv_have_pcre2utf" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_pcre2utf" >&5 +printf "%s\n" "$r_cv_have_pcre2utf" >&6; } if test "x${r_cv_have_pcre2utf}" = "xyes"; then -$as_echo "#define HAVE_PCRE2 1" >>confdefs.h +printf "%s\n" "#define HAVE_PCRE2 1" >>confdefs.h else CPPFLAGS="${r_save_CPPFLAGS}" @@ -45785,11 +47112,12 @@ if test "x${r_cv_have_pcre2utf}" != xyes && test "x${use_pcre1}" = xyes; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_fullinfo in -lpcre" >&5 -$as_echo_n "checking for pcre_fullinfo in -lpcre... " >&6; } -if ${ac_cv_lib_pcre_pcre_fullinfo+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_fullinfo in -lpcre" >&5 +printf %s "checking for pcre_fullinfo in -lpcre... " >&6; } +if test ${ac_cv_lib_pcre_pcre_fullinfo+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpcre $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45798,9 +47126,6 @@ /* 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 pcre_fullinfo (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -45811,43 +47136,45 @@ #endif #endif int -main () +main (void) { return pcre_fullinfo (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pcre_pcre_fullinfo=yes -else +else $as_nop ac_cv_lib_pcre_pcre_fullinfo=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_fullinfo" >&5 -$as_echo "$ac_cv_lib_pcre_pcre_fullinfo" >&6; } -if test "x$ac_cv_lib_pcre_pcre_fullinfo" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_fullinfo" >&5 +printf "%s\n" "$ac_cv_lib_pcre_pcre_fullinfo" >&6; } +if test "x$ac_cv_lib_pcre_pcre_fullinfo" = xyes +then : have_pcre=yes -else +else $as_nop have_pcre=no fi if test "${have_pcre}" = yes; then - for ac_header in pcre.h pcre/pcre.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" +if test "x$ac_cv_header_pcre_h" = xyes +then : + printf "%s\n" "#define HAVE_PCRE_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "pcre/pcre.h" "ac_cv_header_pcre_pcre_h" "$ac_includes_default" +if test "x$ac_cv_header_pcre_pcre_h" = xyes +then : + printf "%s\n" "#define HAVE_PCRE_PCRE_H 1" >>confdefs.h -done +fi if test "${ac_cv_header_pcre_h}" = no \ && test "${ac_cv_header_pcre_pcre_h}" = no; then @@ -45857,14 +47184,16 @@ if test "x${have_pcre}" = xyes; then r_save_LIBS="${LIBS}" LIBS="-lpcre ${LIBS}" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if PCRE1 version >= 8.32 and has UTF-8 support" >&5 -$as_echo_n "checking if PCRE1 version >= 8.32 and has UTF-8 support... " >&6; } -if ${r_cv_have_pcre832+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PCRE1 version >= 8.32 and has UTF-8 support" >&5 +printf %s "checking if PCRE1 version >= 8.32 and has UTF-8 support... " >&6; } +if test ${r_cv_have_pcre832+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_have_pcre832=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -45895,9 +47224,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_have_pcre832=yes -else +else $as_nop r_cv_have_pcre832=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -45905,8 +47235,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_pcre832" >&5 -$as_echo "$r_cv_have_pcre832" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_pcre832" >&5 +printf "%s\n" "$r_cv_have_pcre832" >&6; } fi if test "x${r_cv_have_pcre832}" != xyes; then have_pcre=no @@ -45917,26 +47247,27 @@ r_cv_have_pcre832=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PCRE support suffices" >&5 -$as_echo_n "checking whether PCRE support suffices... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether PCRE support suffices" >&5 +printf %s "checking whether PCRE support suffices... " >&6; } if test "x${r_cv_have_pcre2utf}" != xyes && \ test "x${r_cv_have_pcre832}" != xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } as_fn_error $? "PCRE2 library and headers are required, or use --with-pcre1 and PCRE >= 8.32 with UTF-8 support" "$LINENO" 5 else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } fi ## tre headers and libraries. if test "x${use_system_tre}" = xyes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tre_regncompb in -ltre" >&5 -$as_echo_n "checking for tre_regncompb in -ltre... " >&6; } -if ${ac_cv_lib_tre_tre_regncompb+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tre_regncompb in -ltre" >&5 +printf %s "checking for tre_regncompb in -ltre... " >&6; } +if test ${ac_cv_lib_tre_tre_regncompb+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ltre $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45945,9 +47276,6 @@ /* 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 tre_regncompb (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -45958,49 +47286,49 @@ #endif #endif int -main () +main (void) { return tre_regncompb (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_tre_tre_regncompb=yes -else +else $as_nop ac_cv_lib_tre_tre_regncompb=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tre_tre_regncompb" >&5 -$as_echo "$ac_cv_lib_tre_tre_regncompb" >&6; } -if test "x$ac_cv_lib_tre_tre_regncompb" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tre_tre_regncompb" >&5 +printf "%s\n" "$ac_cv_lib_tre_tre_regncompb" >&6; } +if test "x$ac_cv_lib_tre_tre_regncompb" = xyes +then : have_tre=yes -else +else $as_nop have_tre=no fi if test "${have_tre}" = yes; then - for ac_header in tre/tre.h + for ac_header in tre/tre.h do : - ac_fn_c_check_header_mongrel "$LINENO" "tre/tre.h" "ac_cv_header_tre_tre_h" "$ac_includes_default" -if test "x$ac_cv_header_tre_tre_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_TRE_TRE_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "tre/tre.h" "ac_cv_header_tre_tre_h" "$ac_includes_default" +if test "x$ac_cv_header_tre_tre_h" = xyes +then : + printf "%s\n" "#define HAVE_TRE_TRE_H 1" >>confdefs.h have_tre=yes -else +else $as_nop have_tre=no fi done - fi if test "x${have_tre}" = xyes; then -$as_echo "#define HAVE_TRE 1" >>confdefs.h +printf "%s\n" "#define HAVE_TRE 1" >>confdefs.h LIBS="-ltre ${LIBS}" fi @@ -46021,11 +47349,12 @@ # Extract the first word of "curl-config", so it can be a program name with args. set dummy curl-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_CURL_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_CURL_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $CURL_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path. @@ -46035,11 +47364,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_CURL_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -46051,11 +47384,11 @@ fi CURL_CONFIG=$ac_cv_path_CURL_CONFIG if test -n "$CURL_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5 -$as_echo "$CURL_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5 +printf "%s\n" "$CURL_CONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -46075,30 +47408,30 @@ CPPFLAGS="${CURL_CPPFLAGS} ${CPPFLAGS}" r_save_LIBS="${LIBS}" LIBS="${CURL_LIBS} ${LIBS}" -for ac_header in curl/curl.h + for ac_header in curl/curl.h do : - ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default" -if test "x$ac_cv_header_curl_curl_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_CURL_CURL_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default" +if test "x$ac_cv_header_curl_curl_h" = xyes +then : + printf "%s\n" "#define HAVE_CURL_CURL_H 1" >>confdefs.h have_libcurl=yes -else +else $as_nop have_libcurl=no fi done - if test "x${have_libcurl}" = "xyes"; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcurl is version 7 and >= 7.28.0" >&5 -$as_echo_n "checking if libcurl is version 7 and >= 7.28.0... " >&6; } -if ${r_cv_have_curl722+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libcurl is version 7 and >= 7.28.0" >&5 +printf %s "checking if libcurl is version 7 and >= 7.28.0... " >&6; } +if test ${r_cv_have_curl728+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_have_curl728=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -46120,9 +47453,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_have_curl728=yes -else +else $as_nop r_cv_have_curl728=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -46130,22 +47464,24 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_curl722" >&5 -$as_echo "$r_cv_have_curl722" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_curl728" >&5 +printf "%s\n" "$r_cv_have_curl728" >&6; } fi if test "x${r_cv_have_curl728}" = xno; then have_libcurl=no fi if test "x${have_libcurl}" = "xyes"; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcurl supports https" >&5 -$as_echo_n "checking if libcurl supports https... " >&6; } -if ${r_cv_have_curl_https+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libcurl supports https" >&5 +printf %s "checking if libcurl supports https... " >&6; } +if test ${r_cv_have_curl_https+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_have_curl_https=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -46163,9 +47499,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_have_curl_https=yes -else +else $as_nop r_cv_have_curl_https=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -46173,15 +47510,15 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_curl_https" >&5 -$as_echo "$r_cv_have_curl_https" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_curl_https" >&5 +printf "%s\n" "$r_cv_have_curl_https" >&6; } fi if test "x${r_cv_have_curl_https}" = xno; then have_libcurl=no fi if test "x${have_libcurl}" = xyes; then -$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBCURL 1" >>confdefs.h CPPFLAGS="${r_save_CPPFLAGS}" LIBS="${r_save_LIBS}" @@ -46198,19 +47535,27 @@ BITMAP_CPPFLAGS= BITMAP_LIBS= if test "${use_jpeglib}" = yes; then - save_CPPFLAGS=${CPPFLAGS} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config knows about libjpeg" >&5 +printf %s "checking if pkg-config knows about libjpeg... " >&6; } + save_CPPFLAGS=${CPPFLAGS} ## IJG version 9c (Jan 2018) has support as libjpeg. ## libjpeg-turbo has had this for a while. if "${PKG_CONFIG}" --exists libjpeg; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } JPG_CPPFLAGS=`"${PKG_CONFIG}" --cflags libjpeg` JPG_LIBS=`"${PKG_CONFIG}" --libs libjpeg` CPPFLAGS="${CPPFLAGS} ${JPG_CPPFLAGS}" + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: run 'pkg-config --print-errors libjpeg' for further info" >&5 +printf "%s\n" "no: run 'pkg-config --print-errors libjpeg' for further info" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jpeglib version >= 6b" >&5 -$as_echo_n "checking if jpeglib version >= 6b... " >&6; } -if ${r_cv_header_jpeglib_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if jpeglib version >= 6b" >&5 +printf %s "checking if jpeglib version >= 6b... " >&6; } +if test ${r_cv_header_jpeglib_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -46220,25 +47565,27 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : r_cv_header_jpeglib_h=yes -else +else $as_nop r_cv_header_jpeglib_h=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_jpeglib_h" >&5 -$as_echo "$r_cv_header_jpeglib_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_jpeglib_h" >&5 +printf "%s\n" "$r_cv_header_jpeglib_h" >&6; } CPPFLAGS=${save_CPPFLAGS} have_jpeg=${r_cv_header_jpeglib_h} if test "${have_jpeg}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 -$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } -if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 +printf %s "checking for jpeg_destroy_compress in -ljpeg... " >&6; } +if test ${ac_cv_lib_jpeg_jpeg_destroy_compress+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ljpeg ${JPG_LIBS} ${LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46247,9 +47594,6 @@ /* 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 jpeg_destroy_compress (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -46260,27 +47604,29 @@ #endif #endif int -main () +main (void) { return jpeg_destroy_compress (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_jpeg_jpeg_destroy_compress=yes -else +else $as_nop ac_cv_lib_jpeg_jpeg_destroy_compress=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 -$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } -if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 +printf "%s\n" "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } +if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes +then : have_jpeg=yes -else +else $as_nop have_jpeg=no fi @@ -46292,20 +47638,25 @@ BITMAP_LIBS=-ljpeg fi -$as_echo "#define HAVE_JPEG 1" >>confdefs.h +printf "%s\n" "#define HAVE_JPEG 1" >>confdefs.h fi fi if test "${use_libpng}" = yes; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config knows about libpng" >&5 +printf %s "checking if pkg-config knows about libpng... " >&6; } if "${PKG_CONFIG}" --exists libpng; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } save_CPPFLAGS=${CPPFLAGS} PNG_CPPFLAGS=`"${PKG_CONFIG}" --cflags libpng` CPPFLAGS="${CPPFLAGS} ${PNG_CPPFLAGS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng version >= 1.2.7" >&5 -$as_echo_n "checking if libpng version >= 1.2.7... " >&6; } -if ${r_cv_header_png_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libpng version >= 1.2.7" >&5 +printf %s "checking if libpng version >= 1.2.7... " >&6; } +if test ${r_cv_header_png_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -46315,26 +47666,28 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : r_cv_header_png_h=yes -else +else $as_nop r_cv_header_png_h=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_png_h" >&5 -$as_echo "$r_cv_header_png_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_png_h" >&5 +printf "%s\n" "$r_cv_header_png_h" >&6; } have_png=${r_cv_header_png_h} CPPFLAGS=${save_CPPFLAGS} if test "${have_png}" = yes; then PNG_LIBS=`"${PKG_CONFIG}" --libs libpng` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_write_struct in -lpng" >&5 -$as_echo_n "checking for png_create_write_struct in -lpng... " >&6; } -if ${ac_cv_lib_png_png_create_write_struct+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for png_create_write_struct in -lpng" >&5 +printf %s "checking for png_create_write_struct in -lpng... " >&6; } +if test ${ac_cv_lib_png_png_create_write_struct+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpng ${PNG_LIBS} ${LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46343,9 +47696,6 @@ /* 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 png_create_write_struct (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -46356,37 +47706,43 @@ #endif #endif int -main () +main (void) { return png_create_write_struct (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_png_png_create_write_struct=yes -else +else $as_nop ac_cv_lib_png_png_create_write_struct=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_write_struct" >&5 -$as_echo "$ac_cv_lib_png_png_create_write_struct" >&6; } -if test "x$ac_cv_lib_png_png_create_write_struct" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_write_struct" >&5 +printf "%s\n" "$ac_cv_lib_png_png_create_write_struct" >&6; } +if test "x$ac_cv_lib_png_png_create_write_struct" = xyes +then : have_png=yes -else +else $as_nop have_png=no fi if test "${have_png}" = no; then + unset ac_cv_lib_png_png_create_write_struct + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpng with static libs" >&5 +printf "%s\n" "$as_me: checking for libpng with static libs" >&6;} PNG_LIBS=`"${PKG_CONFIG}" --static --libs libpng` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_write_struct in -lpng" >&5 -$as_echo_n "checking for png_create_write_struct in -lpng... " >&6; } -if ${ac_cv_lib_png_png_create_write_struct+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for png_create_write_struct in -lpng" >&5 +printf %s "checking for png_create_write_struct in -lpng... " >&6; } +if test ${ac_cv_lib_png_png_create_write_struct+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpng ${PNG_LIBS} ${LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46395,9 +47751,6 @@ /* 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 png_create_write_struct (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -46408,27 +47761,29 @@ #endif #endif int -main () +main (void) { return png_create_write_struct (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_png_png_create_write_struct=yes -else +else $as_nop ac_cv_lib_png_png_create_write_struct=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_write_struct" >&5 -$as_echo "$ac_cv_lib_png_png_create_write_struct" >&6; } -if test "x$ac_cv_lib_png_png_create_write_struct" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_write_struct" >&5 +printf "%s\n" "$ac_cv_lib_png_png_create_write_struct" >&6; } +if test "x$ac_cv_lib_png_png_create_write_struct" = xyes +then : have_png=yes -else +else $as_nop have_png=no fi @@ -46438,43 +47793,49 @@ BITMAP_CPPFLAGS="${BITMAP_CPPFLAGS} ${PNG_CPPFLAGS}" BITMAP_LIBS="${BITMAP_LIBS} ${PNG_LIBS}" -$as_echo "#define HAVE_PNG 1" >>confdefs.h +printf "%s\n" "#define HAVE_PNG 1" >>confdefs.h fi + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: run 'pkg-config --print-errors libpng' for further info" >&5 +printf "%s\n" "no: run 'pkg-config --print-errors libpng' for further info" >&6; } fi fi if test "${use_libtiff}" = yes; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config knows about libtiff" >&5 +printf %s "checking if pkg-config knows about libtiff... " >&6; } mod= ## pkg-config support was introduced in libtiff 4.0.0 ## I guess the module name might change in future, so ## program defensively here. if "${PKG_CONFIG}" --exists libtiff-4; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } mod=libtiff-4 + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: run 'pkg-config --print-errors libtiff-4' for further info" >&5 +printf "%s\n" "no: run 'pkg-config --print-errors libtiff-4' for further info" >&6; } fi if test -n "${mod}"; then save_CPPFLAGS=${CPPFLAGS} TIF_CPPFLAGS=`"${PKG_CONFIG}" --cflags ${mod}` CPPFLAGS="${CPPFLAGS} ${TIF_CPPFLAGS}" - for ac_header in tiffio.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" -if test "x$ac_cv_header_tiffio_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_TIFFIO_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" +if test "x$ac_cv_header_tiffio_h" = xyes +then : + printf "%s\n" "#define HAVE_TIFFIO_H 1" >>confdefs.h fi -done - CPPFLAGS=${save_CPPFLAGS} if test "x${ac_cv_header_tiffio_h}" = xyes ; then TIF_LIBS=`"${PKG_CONFIG}" --libs ${mod}` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 -$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } -if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 +printf %s "checking for TIFFOpen in -ltiff... " >&6; } +if test ${ac_cv_lib_tiff_TIFFOpen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ltiff ${TIF_LIBS} ${BITMAP_LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46483,9 +47844,6 @@ /* 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 TIFFOpen (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -46496,37 +47854,43 @@ #endif #endif int -main () +main (void) { return TIFFOpen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_tiff_TIFFOpen=yes -else +else $as_nop ac_cv_lib_tiff_TIFFOpen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 -$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } -if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 +printf "%s\n" "$ac_cv_lib_tiff_TIFFOpen" >&6; } +if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes +then : have_tiff=yes -else +else $as_nop have_tiff=no fi if test "x${have_tiff}" = xno; then + unset ac_cv_lib_tiff_TIFFOpen + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtiff with static libs" >&5 +printf "%s\n" "$as_me: checking for libtiff with static libs" >&6;} TIF_LIBS=`"${PKG_CONFIG}" --static --libs ${mod}` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 -$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } -if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 +printf %s "checking for TIFFOpen in -ltiff... " >&6; } +if test ${ac_cv_lib_tiff_TIFFOpen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ltiff ${TIF_LIBS} ${BITMAP_LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46535,9 +47899,6 @@ /* 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 TIFFOpen (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -46548,34 +47909,36 @@ #endif #endif int -main () +main (void) { return TIFFOpen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_tiff_TIFFOpen=yes -else +else $as_nop ac_cv_lib_tiff_TIFFOpen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 -$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } -if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 +printf "%s\n" "$ac_cv_lib_tiff_TIFFOpen" >&6; } +if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes +then : have_tiff=yes -else +else $as_nop have_tiff=no fi fi if test "x${have_tiff}" = xyes; then -$as_echo "#define HAVE_TIFF 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIFF 1" >>confdefs.h BITMAP_LIBS="${TIF_LIBS} ${BITMAP_LIBS}" BITMAP_CPPFLAGS="${BITMAP_CPPFLAGS} ${TIF_CPPFLAGS}" @@ -46590,11 +47953,12 @@ BITMAP_CPPFLAGS= BITMAP_LIBS= if test "${use_jpeglib}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jpeglib version >= 6b" >&5 -$as_echo_n "checking if jpeglib version >= 6b... " >&6; } -if ${r_cv_header_jpeglib_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if jpeglib version >= 6b" >&5 +printf %s "checking if jpeglib version >= 6b... " >&6; } +if test ${r_cv_header_jpeglib_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -46604,24 +47968,26 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : r_cv_header_jpeglib_h=yes -else +else $as_nop r_cv_header_jpeglib_h=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_jpeglib_h" >&5 -$as_echo "$r_cv_header_jpeglib_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_jpeglib_h" >&5 +printf "%s\n" "$r_cv_header_jpeglib_h" >&6; } have_jpeg=${r_cv_header_jpeglib_h} if test "${have_jpeg}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 -$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } -if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 +printf %s "checking for jpeg_destroy_compress in -ljpeg... " >&6; } +if test ${ac_cv_lib_jpeg_jpeg_destroy_compress+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ljpeg ${LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46630,9 +47996,6 @@ /* 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 jpeg_destroy_compress (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -46643,27 +48006,29 @@ #endif #endif int -main () +main (void) { return jpeg_destroy_compress (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_jpeg_jpeg_destroy_compress=yes -else +else $as_nop ac_cv_lib_jpeg_jpeg_destroy_compress=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 -$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } -if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 +printf "%s\n" "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } +if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes +then : have_jpeg=yes -else +else $as_nop have_jpeg=no fi @@ -46671,16 +48036,17 @@ if test "${have_jpeg}" = yes; then BITMAP_LIBS="-ljpeg" -$as_echo "#define HAVE_JPEG 1" >>confdefs.h +printf "%s\n" "#define HAVE_JPEG 1" >>confdefs.h fi fi if test "${use_libpng}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5 -$as_echo_n "checking for main in -lz... " >&6; } -if ${ac_cv_lib_z_main+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5 +printf %s "checking for main in -lz... " >&6; } +if test ${ac_cv_lib_z_main+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46696,36 +48062,39 @@ #endif #endif int -main () +main (void) { return main (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_z_main=yes -else +else $as_nop ac_cv_lib_z_main=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5 -$as_echo "$ac_cv_lib_z_main" >&6; } -if test "x$ac_cv_lib_z_main" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5 +printf "%s\n" "$ac_cv_lib_z_main" >&6; } +if test "x$ac_cv_lib_z_main" = xyes +then : have_png=yes -else +else $as_nop have_png=no fi if test "${have_png}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng version >= 1.2.7" >&5 -$as_echo_n "checking if libpng version >= 1.2.7... " >&6; } -if ${r_cv_header_png_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libpng version >= 1.2.7" >&5 +printf %s "checking if libpng version >= 1.2.7... " >&6; } +if test ${r_cv_header_png_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -46735,25 +48104,27 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then : + $EGREP "yes" >/dev/null 2>&1 +then : r_cv_header_png_h=yes -else +else $as_nop r_cv_header_png_h=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_png_h" >&5 -$as_echo "$r_cv_header_png_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_header_png_h" >&5 +printf "%s\n" "$r_cv_header_png_h" >&6; } have_png=${r_cv_header_png_h} fi if test "${have_png}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_write_struct in -lpng" >&5 -$as_echo_n "checking for png_create_write_struct in -lpng... " >&6; } -if ${ac_cv_lib_png_png_create_write_struct+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for png_create_write_struct in -lpng" >&5 +printf %s "checking for png_create_write_struct in -lpng... " >&6; } +if test ${ac_cv_lib_png_png_create_write_struct+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpng -lz ${LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46762,9 +48133,6 @@ /* 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 png_create_write_struct (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -46775,27 +48143,29 @@ #endif #endif int -main () +main (void) { return png_create_write_struct (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_png_png_create_write_struct=yes -else +else $as_nop ac_cv_lib_png_png_create_write_struct=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_write_struct" >&5 -$as_echo "$ac_cv_lib_png_png_create_write_struct" >&6; } -if test "x$ac_cv_lib_png_png_create_write_struct" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_write_struct" >&5 +printf "%s\n" "$ac_cv_lib_png_png_create_write_struct" >&6; } +if test "x$ac_cv_lib_png_png_create_write_struct" = xyes +then : have_png=yes -else +else $as_nop have_png=no fi @@ -46803,30 +48173,26 @@ if test "${have_png}" = yes; then BITMAP_LIBS="${BITMAP_LIBS} -lpng -lz" -$as_echo "#define HAVE_PNG 1" >>confdefs.h +printf "%s\n" "#define HAVE_PNG 1" >>confdefs.h fi fi if test "${use_libtiff}" = yes; then - for ac_header in tiffio.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" -if test "x$ac_cv_header_tiffio_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_TIFFIO_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" +if test "x$ac_cv_header_tiffio_h" = xyes +then : + printf "%s\n" "#define HAVE_TIFFIO_H 1" >>confdefs.h fi -done - if test "x${ac_cv_header_tiffio_h}" = xyes ; then # may need to resolve jpeg routines - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 -$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } -if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 +printf %s "checking for TIFFOpen in -ltiff... " >&6; } +if test ${ac_cv_lib_tiff_TIFFOpen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ltiff ${BITMAP_LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46835,9 +48201,6 @@ /* 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 TIFFOpen (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -46848,54 +48211,57 @@ #endif #endif int -main () +main (void) { return TIFFOpen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_tiff_TIFFOpen=yes -else +else $as_nop ac_cv_lib_tiff_TIFFOpen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 -$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } -if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 +printf "%s\n" "$ac_cv_lib_tiff_TIFFOpen" >&6; } +if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes +then : have_tiff=yes -else +else $as_nop have_tiff=no fi if test "x${have_tiff}" = xyes; then -$as_echo "#define HAVE_TIFF 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIFF 1" >>confdefs.h BITMAP_LIBS="-ltiff ${BITMAP_LIBS}" else # tiff 4.0.x may need lzma too: SU's static build does + # OTOH, it will normally be in LIBS at this point in configure unset ac_cv_lib_tiff_TIFFOpen - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 -$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } -if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtiff with -llzma" >&5 +printf "%s\n" "$as_me: checking for libtiff with -llzma" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 +printf %s "checking for TIFFOpen in -ltiff... " >&6; } +if test ${ac_cv_lib_tiff_TIFFOpen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-ltiff -llzma ${BITMAP_LIBS} -llzma $LIBS" +LIBS="-ltiff -llzma ${BITMAP_LIBS} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 TIFFOpen (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -46906,39 +48272,106 @@ #endif #endif int -main () +main (void) { return TIFFOpen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_tiff_TIFFOpen=yes -else +else $as_nop ac_cv_lib_tiff_TIFFOpen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 -$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } -if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 +printf "%s\n" "$ac_cv_lib_tiff_TIFFOpen" >&6; } +if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes +then : have_tiff=yes -else +else $as_nop have_tiff=no fi if test "x${have_tiff}" = xyes; then -$as_echo "#define HAVE_TIFF 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIFF 1" >>confdefs.h BITMAP_LIBS="-ltiff -llzma ${BITMAP_LIBS}" else have_tiff=no fi fi + if test "x${have_tiff}" != xyes; then + # tiff >= 4.1.0 may need webp too: + # (actually, it could also need jbig zstd libdeflate ....) + unset ac_cv_lib_tiff_TIFFOpen + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtiff with -lwebp" >&5 +printf "%s\n" "$as_me: checking for libtiff with -lwebp" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 +printf %s "checking for TIFFOpen in -ltiff... " >&6; } +if test ${ac_cv_lib_tiff_TIFFOpen+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-ltiff -lwebp -llzma ${BITMAP_LIBS} $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* 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. */ +char TIFFOpen (); +#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 TIFFOpen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_tiff_TIFFOpen=yes +else $as_nop + ac_cv_lib_tiff_TIFFOpen=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + 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_tiff_TIFFOpen" >&5 +printf "%s\n" "$ac_cv_lib_tiff_TIFFOpen" >&6; } +if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes +then : + have_tiff=yes +else $as_nop + have_tiff=no +fi + + if test "x${have_tiff}" = xyes; then + +printf "%s\n" "#define HAVE_TIFF 1" >>confdefs.h + + BITMAP_LIBS="-ltiff -lwebp -llzma ${BITMAP_LIBS}" + else + have_tiff=no + fi + fi fi fi @@ -46947,14 +48380,16 @@ fi ## POSIX times. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether leap seconds are treated according to POSIX" >&5 -$as_echo_n "checking whether leap seconds are treated according to POSIX... " >&6; } -if ${r_cv_sys_posix_leapseconds+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether leap seconds are treated according to POSIX" >&5 +printf %s "checking whether leap seconds are treated according to POSIX... " >&6; } +if test ${r_cv_sys_posix_leapseconds+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_sys_posix_leapseconds=yes -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -46974,9 +48409,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_sys_posix_leapseconds=no -else +else $as_nop r_cv_sys_posix_leapseconds=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -46984,42 +48420,44 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_sys_posix_leapseconds" >&5 -$as_echo "$r_cv_sys_posix_leapseconds" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_sys_posix_leapseconds" >&5 +printf "%s\n" "$r_cv_sys_posix_leapseconds" >&6; } if test "x${r_cv_sys_posix_leapseconds}" = xyes; then -$as_echo "#define HAVE_POSIX_LEAPSECONDS 1" >>confdefs.h +printf "%s\n" "#define HAVE_POSIX_LEAPSECONDS 1" >>confdefs.h fi ## stat times -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 -$as_echo_n "checking for inline... " >&6; } -if ${ac_cv_c_inline+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +printf %s "checking for inline... " >&6; } +if test ${ac_cv_c_inline+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } +static $ac_kw foo_t static_foo (void) {return 0; } +$ac_kw foo_t foo (void) {return 0; } #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_inline=$ac_kw fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 -$as_echo "$ac_cv_c_inline" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +printf "%s\n" "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; @@ -47039,40 +48477,22 @@ - for ac_header in $ac_header_list -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - - - ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include #include " -if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 -$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; } -if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 +printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; } +if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -47094,7 +48514,7 @@ #endif #endif int -main () +main (void) { st.st_atim = ts; @@ -47103,51 +48523,49 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes -else +else $as_nop ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 -$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 +printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then -$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h +printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h fi -else +else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include #include " -if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h -else +else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include #include " -if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h -else +else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include #include " -if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then : +if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes +then : -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1 -_ACEOF +printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h fi @@ -47162,44 +48580,46 @@ ## R profiling. if test "${want_R_profiling}" = yes; then + for ac_func in setitimer do : ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" -if test "x$ac_cv_func_setitimer" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SETITIMER 1 -_ACEOF +if test "x$ac_cv_func_setitimer" = xyes +then : + printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h -$as_echo "#define R_PROFILING 1" >>confdefs.h +printf "%s\n" "#define R_PROFILING 1" >>confdefs.h -else +else $as_nop want_R_profiling="no" fi -done +done fi ## R profiling. if test "${want_memory_profiling}" = yes; then -$as_echo "#define R_MEMORY_PROFILING 1" >>confdefs.h +printf "%s\n" "#define R_MEMORY_PROFILING 1" >>confdefs.h fi ## Large-file-support # Check whether --enable-largefile was given. -if test "${enable_largefile+set}" = set; then : +if test ${enable_largefile+y} +then : enableval=$enable_largefile; fi if test "$enable_largefile" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 -$as_echo_n "checking for special C compiler options needed for large files... " >&6; } -if ${ac_cv_sys_largefile_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 +printf %s "checking for special C compiler options needed for large files... " >&6; } +if test ${ac_cv_sys_largefile_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_sys_largefile_CC=no if test "$GCC" != yes; then ac_save_CC=$CC @@ -47213,7 +48633,7 @@ We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -47226,39 +48646,42 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF - if ac_fn_c_try_compile "$LINENO"; then : + if ac_fn_c_try_compile "$LINENO" +then : break fi -rm -f core conftest.err conftest.$ac_objext +rm -f core conftest.err conftest.$ac_objext conftest.beam CC="$CC -n32" - if ac_fn_c_try_compile "$LINENO"; then : + if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_largefile_CC=' -n32'; break fi -rm -f core conftest.err conftest.$ac_objext +rm -f core conftest.err conftest.$ac_objext conftest.beam break done CC=$ac_save_CC rm -f conftest.$ac_ext fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 -$as_echo "$ac_cv_sys_largefile_CC" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 +printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } if test "$ac_cv_sys_largefile_CC" != no; then CC=$CC$ac_cv_sys_largefile_CC fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 -$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } -if ${ac_cv_sys_file_offset_bits+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } +if test ${ac_cv_sys_file_offset_bits+y} +then : + printf %s "(cached) " >&6 +else $as_nop while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -47267,7 +48690,7 @@ We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -47280,17 +48703,18 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_file_offset_bits=no; break fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _FILE_OFFSET_BITS 64 @@ -47299,7 +48723,7 @@ We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -47312,38 +48736,38 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_file_offset_bits=64; break fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_sys_file_offset_bits=unknown break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 -$as_echo "$ac_cv_sys_file_offset_bits" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 +printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } case $ac_cv_sys_file_offset_bits in #( no | unknown) ;; *) -cat >>confdefs.h <<_ACEOF -#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits -_ACEOF +printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h ;; esac rm -rf conftest* if test $ac_cv_sys_file_offset_bits = unknown; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 -$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } -if ${ac_cv_sys_large_files+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 +printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } +if test ${ac_cv_sys_large_files+y} +then : + printf %s "(cached) " >&6 +else $as_nop while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -47352,7 +48776,7 @@ We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -47365,17 +48789,18 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_large_files=no; break fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _LARGE_FILES 1 @@ -47384,7 +48809,7 @@ We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -47397,42 +48822,40 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_large_files=1; break fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_sys_large_files=unknown break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 -$as_echo "$ac_cv_sys_large_files" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 +printf "%s\n" "$ac_cv_sys_large_files" >&6; } case $ac_cv_sys_large_files in #( no | unknown) ;; *) -cat >>confdefs.h <<_ACEOF -#define _LARGE_FILES $ac_cv_sys_large_files -_ACEOF +printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h ;; esac rm -rf conftest* fi - - fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 -$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } -if ${ac_cv_sys_largefile_source+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 +printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } +if test ${ac_cv_sys_largefile_source+y} +then : + printf %s "(cached) " >&6 +else $as_nop while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -47447,7 +48870,7 @@ #endif #endif int -main () +main (void) { int (*fp) (FILE *, off_t, int) = fseeko; return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); @@ -47455,10 +48878,11 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_sys_largefile_source=no; break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -47474,7 +48898,7 @@ #endif #endif int -main () +main (void) { int (*fp) (FILE *, off_t, int) = fseeko; return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); @@ -47482,23 +48906,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_sys_largefile_source=1; break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ac_cv_sys_largefile_source=unknown break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 -$as_echo "$ac_cv_sys_largefile_source" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 +printf "%s\n" "$ac_cv_sys_largefile_source" >&6; } case $ac_cv_sys_largefile_source in #( no | unknown) ;; *) -cat >>confdefs.h <<_ACEOF -#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source -_ACEOF +printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h ;; esac rm -rf conftest* @@ -47508,7 +48931,7 @@ # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. if test $ac_cv_sys_largefile_source != unknown; then -$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h +printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h fi @@ -47516,33 +48939,26 @@ ## Valgrind instrumentation if test ${valgrind_level} -eq 0; then -$as_echo "#define NVALGRIND 1" >>confdefs.h +printf "%s\n" "#define NVALGRIND 1" >>confdefs.h elif test "${use_system_valgrind}" = yes; then - for ac_header in valgrind/memcheck.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" -if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_VALGRIND_MEMCHECK_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" +if test "x$ac_cv_header_valgrind_memcheck_h" = xyes +then : + printf "%s\n" "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h fi -done - fi -cat >>confdefs.h <<_ACEOF -#define VALGRIND_LEVEL ${valgrind_level} -_ACEOF +printf "%s\n" "#define VALGRIND_LEVEL ${valgrind_level}" >>confdefs.h if test "x${use_internal_tzcode}" = xyes; then -$as_echo "#define USE_INTERNAL_MKTIME 1" >>confdefs.h +printf "%s\n" "#define USE_INTERNAL_MKTIME 1" >>confdefs.h fi if test "x${use_internal_tzcode}" = xyes; then @@ -47557,14 +48973,16 @@ ## KERN_USRSTACK support (BSD, Darwin, ...) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether KERN_USRSTACK sysctl is supported" >&5 -$as_echo_n "checking whether KERN_USRSTACK sysctl is supported... " >&6; } -if ${r_cv_kern_usrstack+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether KERN_USRSTACK sysctl is supported" >&5 +printf %s "checking whether KERN_USRSTACK sysctl is supported... " >&6; } +if test ${r_cv_kern_usrstack+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_kern_usrstack=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -47584,9 +49002,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_kern_usrstack=yes -else +else $as_nop r_cv_kern_usrstack=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -47594,12 +49013,12 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_kern_usrstack" >&5 -$as_echo "$r_cv_kern_usrstack" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_kern_usrstack" >&5 +printf "%s\n" "$r_cv_kern_usrstack" >&6; } if test $r_cv_kern_usrstack = yes; then -$as_echo "#define HAVE_KERN_USRSTACK 1" >>confdefs.h +printf "%s\n" "#define HAVE_KERN_USRSTACK 1" >>confdefs.h fi @@ -47607,14 +49026,16 @@ ## check for visible __libc_stack_end on Linux case "${host_os}" in linux*) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visible __lib_stack_end" >&5 -$as_echo_n "checking for visible __lib_stack_end... " >&6; } -if ${r_cv_libc_stack_end+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for visible __lib_stack_end" >&5 +printf %s "checking for visible __lib_stack_end... " >&6; } +if test ${r_cv_libc_stack_end+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : r_cv_libc_stack_end=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -47629,9 +49050,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_libc_stack_end=yes -else +else $as_nop r_cv_libc_stack_end=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -47639,12 +49061,12 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_libc_stack_end" >&5 -$as_echo "$r_cv_libc_stack_end" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_libc_stack_end" >&5 +printf "%s\n" "$r_cv_libc_stack_end" >&6; } if test "${r_cv_libc_stack_end}" = yes; then -$as_echo "#define HAVE_LIBC_STACK_END 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBC_STACK_END 1" >>confdefs.h fi esac @@ -47659,11 +49081,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_R_PRINTCMD+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_R_PRINTCMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$R_PRINTCMD"; then ac_cv_prog_R_PRINTCMD="$R_PRINTCMD" # Let the user override the test. else @@ -47671,11 +49094,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_R_PRINTCMD="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -47686,11 +49113,11 @@ fi R_PRINTCMD=$ac_cv_prog_R_PRINTCMD if test -n "$R_PRINTCMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R_PRINTCMD" >&5 -$as_echo "$R_PRINTCMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $R_PRINTCMD" >&5 +printf "%s\n" "$R_PRINTCMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -47699,19 +49126,18 @@ fi -cat >>confdefs.h <<_ACEOF -#define R_PRINTCMD "${R_PRINTCMD}" -_ACEOF +printf "%s\n" "#define R_PRINTCMD \"${R_PRINTCMD}\"" >>confdefs.h ## Default paper size. # Extract the first word of "paperconf", so it can be a program name with args. set dummy paperconf; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PAPERCONF+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PAPERCONF+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PAPERCONF in [\\/]* | ?:[\\/]*) ac_cv_path_PAPERCONF="$PAPERCONF" # Let the user override the test with a path. @@ -47721,11 +49147,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PAPERCONF="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PAPERCONF="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -47738,11 +49168,11 @@ fi PAPERCONF=$ac_cv_path_PAPERCONF if test -n "$PAPERCONF"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAPERCONF" >&5 -$as_echo "$PAPERCONF" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PAPERCONF" >&5 +printf "%s\n" "$PAPERCONF" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -47800,11 +49230,12 @@ ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5 -$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } -if ${ac_cv_fc_srcext_f90+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5 +printf %s "checking for Fortran flag to compile .f90 files... " >&6; } +if test ${ac_cv_fc_srcext_f90+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=f90 ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= @@ -47820,17 +49251,18 @@ end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : ac_cv_fc_srcext_f90=$ac_flag; break fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done rm -f conftest.$ac_objext conftest.f90 ac_fcflags_srcext=$ac_fcflags_srcext_save fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 -$as_echo "$ac_cv_fc_srcext_f90" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 +printf "%s\n" "$ac_cv_fc_srcext_f90" >&6; } if test "x$ac_cv_fc_srcext_f90" = xunknown; then dummy=0 else @@ -47854,11 +49286,12 @@ ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f95 files" >&5 -$as_echo_n "checking for Fortran flag to compile .f95 files... " >&6; } -if ${ac_cv_fc_srcext_f95+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f95 files" >&5 +printf %s "checking for Fortran flag to compile .f95 files... " >&6; } +if test ${ac_cv_fc_srcext_f95+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=f95 ac_fcflags_srcext_save=$ac_fcflags_srcext ac_fcflags_srcext= @@ -47874,17 +49307,18 @@ end _ACEOF -if ac_fn_fc_try_compile "$LINENO"; then : +if ac_fn_fc_try_compile "$LINENO" +then : ac_cv_fc_srcext_f95=$ac_flag; break fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done rm -f conftest.$ac_objext conftest.f95 ac_fcflags_srcext=$ac_fcflags_srcext_save fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f95" >&5 -$as_echo "$ac_cv_fc_srcext_f95" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f95" >&5 +printf "%s\n" "$ac_cv_fc_srcext_f95" >&6; } if test "x$ac_cv_fc_srcext_f95" = xunknown; then dummy=0 else @@ -47909,16 +49343,18 @@ OPENMP_FCFLAGS= # Check whether --enable-openmp was given. -if test "${enable_openmp+set}" = set; then : +if test ${enable_openmp+y} +then : enableval=$enable_openmp; fi if test "$enable_openmp" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $FC option to support OpenMP" >&5 -$as_echo_n "checking for $FC option to support OpenMP... " >&6; } -if ${ac_cv_prog_fc_openmp+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $FC option to support OpenMP" >&5 +printf %s "checking for $FC option to support OpenMP... " >&6; } +if test ${ac_cv_prog_fc_openmp+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat > conftest.$ac_ext <<_ACEOF program main @@ -47929,9 +49365,10 @@ end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : ac_cv_prog_fc_openmp='none needed' -else +else $as_nop ac_cv_prog_fc_openmp='unsupported' for ac_option in -xopenmp -fopenmp -qopenmp \ -openmp -mp -omp -qsmp=omp -homp \ @@ -47949,10 +49386,11 @@ end _ACEOF -if ac_fn_fc_try_link "$LINENO"; then : +if ac_fn_fc_try_link "$LINENO" +then : ac_cv_prog_fc_openmp=$ac_option fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext FCFLAGS=$ac_save_FCFLAGS if test "$ac_cv_prog_fc_openmp" != unsupported; then @@ -47960,11 +49398,11 @@ fi done fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_openmp" >&5 -$as_echo "$ac_cv_prog_fc_openmp" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_openmp" >&5 +printf "%s\n" "$ac_cv_prog_fc_openmp" >&6; } case $ac_cv_prog_fc_openmp in #( "none needed" | unsupported) ;; #( @@ -48009,7 +49447,7 @@ "x${ac_cv_prog_fc_openmp}" != "xunsupported"; then ## next macro is copied into Rconfig.h -$as_echo "#define SUPPORT_OPENMP 1" >>confdefs.h +printf "%s\n" "#define SUPPORT_OPENMP 1" >>confdefs.h fi ## This assumes that OpenMP support in the C compiler includes compilation by FC @@ -48128,11 +49566,12 @@ ## Recommended packages. if test "${use_recommended_packages}" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recommended packages" >&5 -$as_echo_n "checking for recommended packages... " >&6; } -if ${r_cv_misc_recommended_packages+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recommended packages" >&5 +printf %s "checking for recommended packages... " >&6; } +if test ${r_cv_misc_recommended_packages+y} +then : + printf %s "(cached) " >&6 +else $as_nop r_cv_misc_recommended_packages=yes recommended_pkgs=`grep '^R_PKGS_RECOMMENDED *=' \ ${srcdir}/share/make/vars.mk | sed 's/.*=//'` @@ -48144,8 +49583,8 @@ fi done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_misc_recommended_packages" >&5 -$as_echo "$r_cv_misc_recommended_packages" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_misc_recommended_packages" >&5 +printf "%s\n" "$r_cv_misc_recommended_packages" >&6; } use_recommended_packages=${r_cv_misc_recommended_packages} if test "x${r_cv_misc_recommended_packages}" = xno; then as_fn_error $? "Some of the recommended packages are missing @@ -48164,42 +49603,49 @@ # i18n support. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 -$as_echo_n "checking whether NLS is requested... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +printf %s "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. -if test "${enable_nls+set}" = set; then : +if test ${enable_nls+y} +then : enableval=$enable_nls; USE_NLS=$enableval -else +else $as_nop USE_NLS=yes fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -$as_echo "$USE_NLS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +printf "%s\n" "$USE_NLS" >&6; } if test "${USE_NLS}" = "yes"; then echo echo "Configuring src/extra/intl directory" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 +printf %s "checking for a race-free mkdir -p... " >&6; } if test -z "$MKDIR_P"; then - if ${ac_cv_path_mkdir+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${ac_cv_path_mkdir+y} +then : + printf %s "(cached) " >&6 +else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ + as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue + case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir ('*'coreutils) '* | \ + 'BusyBox '* | \ 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; esac done @@ -48210,7 +49656,7 @@ fi test -d ./--version && rmdir ./--version - if test "${ac_cv_path_mkdir+set}" = set; then + if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a @@ -48220,22 +49666,16 @@ MKDIR_P="$ac_install_sh -d" fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } - - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +printf "%s\n" "$MKDIR_P" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 -$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } -if ${ac_cv_gnu_library_2+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 +printf %s "checking whether we are using the GNU C Library 2 or newer... " >&6; } +if test ${ac_cv_gnu_library_2+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -48248,18 +49688,19 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + $EGREP "Lucky GNU user" >/dev/null 2>&1 +then : ac_cv_gnu_library_2=yes -else +else $as_nop ac_cv_gnu_library_2=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 -$as_echo "$ac_cv_gnu_library_2" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 +printf "%s\n" "$ac_cv_gnu_library_2" >&6; } GLIBC2="$ac_cv_gnu_library_2" @@ -48267,11 +49708,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else @@ -48279,11 +49721,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -48294,11 +49740,11 @@ fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +printf "%s\n" "$RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -48307,11 +49753,12 @@ ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else @@ -48319,11 +49766,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -48334,11 +49785,11 @@ fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +printf "%s\n" "$ac_ct_RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then @@ -48346,8 +49797,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB @@ -48361,11 +49812,12 @@ CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 -$as_echo_n "checking for simple visibility declarations... " >&6; } - if ${gl_cv_cc_visibility+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 +printf %s "checking for simple visibility declarations... " >&6; } + if test ${gl_cv_cc_visibility+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" @@ -48384,24 +49836,25 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_cc_visibility=yes -else +else $as_nop gl_cv_cc_visibility=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 -$as_echo "$gl_cv_cc_visibility" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 +printf "%s\n" "$gl_cv_cc_visibility" >&6; } if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 @@ -48410,17 +49863,16 @@ -cat >>confdefs.h <<_ACEOF -#define HAVE_VISIBILITY $HAVE_VISIBILITY -_ACEOF +printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 -$as_echo_n "checking for stdint.h... " >&6; } -if ${gl_cv_header_stdint_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 +printf %s "checking for stdint.h... " >&6; } +if test ${gl_cv_header_stdint_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -48434,56 +49886,60 @@ #endif #endif int -main () +main (void) { uintmax_t i = (uintmax_t) -1; return !i; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_stdint_h=yes -else +else $as_nop gl_cv_header_stdint_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 -$as_echo "$gl_cv_header_stdint_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 +printf "%s\n" "$gl_cv_header_stdint_h" >&6; } if test $gl_cv_header_stdint_h = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_STDINT_H_WITH_UINTMAX 1 -_ACEOF +printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h fi - - - - - - -for ac_func in getpagesize -do : - ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" -if test "x$ac_cv_func_getpagesize" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETPAGESIZE 1 -_ACEOF - -fi +ac_func= +for ac_item in $ac_func_c_list +do + if test $ac_func; then + ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func + if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then + echo "#define $ac_item 1" >> confdefs.h + fi + ac_func= + else + ac_func=$ac_item + fi done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 -$as_echo_n "checking for working mmap... " >&6; } -if ${ac_cv_func_mmap_fixed_mapped+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_mmap_fixed_mapped=no -else + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 +printf %s "checking for working mmap... " >&6; } +if test ${ac_cv_func_mmap_fixed_mapped+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. + linux*) ac_cv_func_mmap_fixed_mapped=yes ;; + # If we don't know, assume the worst. + *) ac_cv_func_mmap_fixed_mapped=no ;; + esac +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default @@ -48515,10 +49971,6 @@ #include #include -#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H -char *malloc (); -#endif - /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE # ifdef _SC_PAGESIZE @@ -48552,7 +50004,7 @@ #endif /* no HAVE_GETPAGESIZE */ int -main () +main (void) { char *data, *data2, *data3; const char *cdata2; @@ -48620,12 +50072,15 @@ if (*(data + i) != *(data3 + i)) return 14; close (fd); + free (data); + free (data3); return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : ac_cv_func_mmap_fixed_mapped=yes -else +else $as_nop ac_cv_func_mmap_fixed_mapped=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -48633,24 +50088,26 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 -$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 +printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } if test $ac_cv_func_mmap_fixed_mapped = yes; then -$as_echo "#define HAVE_MMAP 1" >>confdefs.h +printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h fi rm -f conftest.mmap conftest.txt - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 -$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } -if ${gt_cv_int_divbyzero_sigfpe+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 +printf %s "checking whether integer division by zero raises SIGFPE... " >&6; } +if test ${gt_cv_int_divbyzero_sigfpe+y} +then : + printf %s "(cached) " >&6 +else $as_nop - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : # Guess based on the CPU. case "$host_cpu" in @@ -48660,7 +50117,7 @@ gt_cv_int_divbyzero_sigfpe="guessing no";; esac -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -48701,9 +50158,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gt_cv_int_divbyzero_sigfpe=yes -else +else $as_nop gt_cv_int_divbyzero_sigfpe=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -48712,24 +50170,23 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 -$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 +printf "%s\n" "$gt_cv_int_divbyzero_sigfpe" >&6; } case "$gt_cv_int_divbyzero_sigfpe" in *yes) value=1;; *) value=0;; esac -cat >>confdefs.h <<_ACEOF -#define INTDIV0_RAISES_SIGFPE $value -_ACEOF +printf "%s\n" "#define INTDIV0_RAISES_SIGFPE $value" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 -$as_echo_n "checking for inttypes.h... " >&6; } -if ${gl_cv_header_inttypes_h+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 +printf %s "checking for inttypes.h... " >&6; } +if test ${gl_cv_header_inttypes_h+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -48743,36 +50200,36 @@ #endif #endif int -main () +main (void) { uintmax_t i = (uintmax_t) -1; return !i; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gl_cv_header_inttypes_h=yes -else +else $as_nop gl_cv_header_inttypes_h=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 -$as_echo "$gl_cv_header_inttypes_h" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 +printf "%s\n" "$gl_cv_header_inttypes_h" >&6; } if test $gl_cv_header_inttypes_h = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_INTTYPES_H_WITH_UINTMAX 1 -_ACEOF +printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 -$as_echo_n "checking for unsigned long long int... " >&6; } -if ${ac_cv_type_unsigned_long_long_int+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 +printf %s "checking for unsigned long long int... " >&6; } +if test ${ac_cv_type_unsigned_long_long_int+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ unsigned long long int ull = 18446744073709551615ULL; @@ -48788,7 +50245,7 @@ #endif #endif int -main () +main (void) { unsigned long long int ullmax = 18446744073709551615ull; return (ull << 63 | ull >> 63 | ull << i | ull >> i @@ -48797,19 +50254,20 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_type_unsigned_long_long_int=yes -else +else $as_nop ac_cv_type_unsigned_long_long_int=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 -$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 +printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; } if test $ac_cv_type_unsigned_long_long_int = yes; then -$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h +printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h fi @@ -48818,7 +50276,7 @@ ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int if test $ac_cv_type_unsigned_long_long = yes; then -$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h +printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h fi @@ -48831,35 +50289,29 @@ && ac_type='unsigned long long' \ || ac_type='unsigned long' -cat >>confdefs.h <<_ACEOF -#define uintmax_t $ac_type -_ACEOF +printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h else -$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h +printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h fi - for ac_header in inttypes.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" -if test "x$ac_cv_header_inttypes_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_INTTYPES_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" +if test "x$ac_cv_header_inttypes_h" = xyes +then : + printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h fi -done - if test $ac_cv_header_inttypes_h = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 -$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } -if ${gt_cv_inttypes_pri_broken+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 +printf %s "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } +if test ${gt_cv_inttypes_pri_broken+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -48877,29 +50329,28 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gt_cv_inttypes_pri_broken=no -else +else $as_nop gt_cv_inttypes_pri_broken=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 -$as_echo "$gt_cv_inttypes_pri_broken" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 +printf "%s\n" "$gt_cv_inttypes_pri_broken" >&6; } fi if test "$gt_cv_inttypes_pri_broken" = yes; then -cat >>confdefs.h <<_ACEOF -#define PRI_MACROS_BROKEN 1 -_ACEOF +printf "%s\n" "#define PRI_MACROS_BROKEN 1" >>confdefs.h PRI_MACROS_BROKEN=1 else @@ -48911,7 +50362,8 @@ # Check whether --enable-threads was given. -if test "${enable_threads+set}" = set; then : +if test ${enable_threads+y} +then : enableval=$enable_threads; case "$host_os" in osf*) gl_use_threads=no ;; *) gl_use_threads=yes ;; @@ -48927,7 +50379,7 @@ # groks . cc also understands the flag -pthread, but # we don't use it because 1. gcc-2.95 doesn't understand -pthread, # 2. putting a flag into CPPFLAGS that has an effect on the linker - # causes the AC_TRY_LINK test below to succeed unexpectedly, + # causes the AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) test below to succeed unexpectedly, # leading to wrong values of LIBTHREAD and LTLIBTHREAD. CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; @@ -48963,9 +50415,10 @@ # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : +if test ${with_gnu_ld+y} +then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else +else $as_nop with_gnu_ld=no fi @@ -48985,8 +50438,8 @@ ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw @@ -49015,15 +50468,16 @@ ;; esac elif test "$with_gnu_ld" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +printf %s "checking for GNU ld... " >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +printf %s "checking for non-GNU ld... " >&6; } fi -if ${acl_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${acl_cv_path_LD+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$LD"; then acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do @@ -49052,18 +50506,19 @@ LD="$acl_cv_path_LD" if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${acl_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +printf %s "checking if the linker ($LD) is GNU ld... " >&6; } +if test ${acl_cv_prog_gnu_ld+y} +then : + printf %s "(cached) " >&6 +else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 -$as_echo "$acl_cv_prog_gnu_ld" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 +printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 -$as_echo_n "checking for shared library run path origin... " >&6; } -if ${acl_cv_rpath+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 +printf %s "checking for shared library run path origin... " >&6; } +if test ${acl_cv_rpath+y} +then : + printf %s "(cached) " >&6 +else $as_nop CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh @@ -49094,8 +50551,8 @@ acl_cv_rpath=done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 -$as_echo "$acl_cv_rpath" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 +printf "%s\n" "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" @@ -49106,9 +50563,10 @@ acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then : +if test ${enable_rpath+y} +then : enableval=$enable_rpath; : -else +else $as_nop enable_rpath=yes fi @@ -49119,11 +50577,12 @@ acl_libdirstem2= case "$host_os" in solaris*) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 -$as_echo_n "checking for 64-bit host... " >&6; } -if ${gl_cv_solaris_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 +printf %s "checking for 64-bit host... " >&6; } +if test ${gl_cv_solaris_64bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -49133,17 +50592,18 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "sixtyfour bits" >/dev/null 2>&1; then : + $EGREP "sixtyfour bits" >/dev/null 2>&1 +then : gl_cv_solaris_64bit=yes -else +else $as_nop gl_cv_solaris_64bit=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 -$as_echo "$gl_cv_solaris_64bit" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 +printf "%s\n" "$gl_cv_solaris_64bit" >&6; } if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in @@ -49184,8 +50644,8 @@ LIBMULTITHREAD= LTLIBMULTITHREAD= if test "$gl_use_threads" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 -$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 +printf %s "checking whether imported symbols can be declared weak... " >&6; } gl_have_weak=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -49200,31 +50660,32 @@ #endif #endif int -main () +main (void) { xyzzy(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_have_weak=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5 -$as_echo "$gl_have_weak" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5 +printf "%s\n" "$gl_have_weak" >&6; } if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that # it groks . It's added above, in gl_LOCK_EARLY_BODY. - ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" -if test "x$ac_cv_header_pthread_h" = xyes; then : + ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" +if test "x$ac_cv_header_pthread_h" = xyes +then : gl_have_pthread_h=yes -else +else $as_nop gl_have_pthread_h=no fi - if test "$gl_have_pthread_h" = yes; then # Other possible tests: # -lpthreads (FSU threads, PCthreads) @@ -49245,7 +50706,7 @@ #endif #endif int -main () +main (void) { pthread_mutex_lock((pthread_mutex_t*)0); pthread_mutexattr_init((pthread_mutexattr_t*)0); @@ -49253,21 +50714,23 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_have_pthread=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.) if test -n "$gl_have_pthread"; then # The program links fine without libpthread. But it may actually # need to link with libpthread in order to create multiple threads. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 -$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 +printf %s "checking for pthread_kill in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49276,9 +50739,6 @@ /* 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 pthread_kill (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -49289,25 +50749,27 @@ #endif #endif int -main () +main (void) { return pthread_kill (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pthread_pthread_kill=yes -else +else $as_nop ac_cv_lib_pthread_pthread_kill=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } -if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } +if test "x$ac_cv_lib_pthread_pthread_kill" = xyes +then : LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread # On Solaris and HP-UX, most pthread functions exist also in libc. # Therefore pthread_in_use() needs to actually try to create a @@ -49316,7 +50778,7 @@ case "$host_os" in solaris* | hpux*) -$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h +printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h esac @@ -49324,11 +50786,12 @@ else # Some library is needed. Try libpthread and libc_r. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 -$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 +printf %s "checking for pthread_kill in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49337,9 +50800,6 @@ /* 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 pthread_kill (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -49350,25 +50810,27 @@ #endif #endif int -main () +main (void) { return pthread_kill (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_pthread_pthread_kill=yes -else +else $as_nop ac_cv_lib_pthread_pthread_kill=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } -if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } +if test "x$ac_cv_lib_pthread_pthread_kill" = xyes +then : gl_have_pthread=yes LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread @@ -49376,11 +50838,12 @@ if test -z "$gl_have_pthread"; then # For FreeBSD 4. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 -$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } -if ${ac_cv_lib_c_r_pthread_kill+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 +printf %s "checking for pthread_kill in -lc_r... " >&6; } +if test ${ac_cv_lib_c_r_pthread_kill+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lc_r $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49389,9 +50852,6 @@ /* 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 pthread_kill (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 @@ -49402,25 +50862,27 @@ #endif #endif int -main () +main (void) { return pthread_kill (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_c_r_pthread_kill=yes -else +else $as_nop ac_cv_lib_c_r_pthread_kill=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 -$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } -if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 +printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } +if test "x$ac_cv_lib_c_r_pthread_kill" = xyes +then : gl_have_pthread=yes LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r @@ -49431,12 +50893,12 @@ if test -n "$gl_have_pthread"; then gl_threads_api=posix -$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h +printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if test $gl_have_weak = yes; then -$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h +printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h LIBTHREAD= LTLIBTHREAD= @@ -49446,9 +50908,10 @@ # pthread_rwlock_* functions. ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include " -if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : +if test "x$ac_cv_type_pthread_rwlock_t" = xyes +then : -$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h +printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h fi @@ -49465,7 +50928,7 @@ #endif #endif int -main () +main (void) { #if __FreeBSD__ == 4 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." @@ -49477,12 +50940,13 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h +printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi @@ -49504,17 +50968,18 @@ #endif #endif int -main () +main (void) { thr_self(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_have_solaristhread=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" if test -n "$gl_have_solaristhread"; then @@ -49524,11 +50989,11 @@ LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" -$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h +printf "%s\n" "#define USE_SOLARIS_THREADS 1" >>confdefs.h if test $gl_have_weak = yes; then -$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h +printf "%s\n" "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h LIBTHREAD= LTLIBTHREAD= @@ -49543,11 +51008,12 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 -$as_echo_n "checking how to link with libpth... " >&6; } -if ${ac_cv_libpth_libs+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 +printf %s "checking how to link with libpth... " >&6; } +if test ${ac_cv_libpth_libs+y} +then : + printf %s "(cached) " >&6 +else $as_nop @@ -49571,7 +51037,8 @@ # Check whether --with-libpth-prefix was given. -if test "${with_libpth_prefix+set}" = set; then : +if test ${with_libpth_prefix+y} +then : withval=$with_libpth_prefix; if test "X$withval" = "Xno"; then use_additional=no @@ -50016,8 +51483,8 @@ ac_cv_libpth_prefix="$LIBPTH_PREFIX" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 -$as_echo "$ac_cv_libpth_libs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 +printf "%s\n" "$ac_cv_libpth_libs" >&6; } LIBPTH="$ac_cv_libpth_libs" LTLIBPTH="$ac_cv_libpth_ltlibs" INCPTH="$ac_cv_libpth_cppflags" @@ -50067,17 +51534,18 @@ #endif #endif int -main () +main (void) { pth_self(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gl_have_pth=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" if test -n "$gl_have_pth"; then @@ -50087,12 +51555,12 @@ LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" -$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h +printf "%s\n" "#define USE_PTH_THREADS 1" >>confdefs.h if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if test $gl_have_weak = yes; then -$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h +printf "%s\n" "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h LIBTHREAD= LTLIBTHREAD= @@ -50111,16 +51579,16 @@ }; then gl_threads_api=win32 -$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h +printf "%s\n" "#define USE_WIN32_THREADS 1" >>confdefs.h fi fi fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 -$as_echo_n "checking for multithread API to use... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 -$as_echo "$gl_threads_api" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 +printf %s "checking for multithread API to use... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 +printf "%s\n" "$gl_threads_api" >&6; } @@ -50148,55 +51616,158 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : -$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h +printf "%s\n" "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default" +if test "x$ac_cv_header_argz_h" = xyes +then : + printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" +if test "x$ac_cv_header_inttypes_h" = xyes +then : + printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" +if test "x$ac_cv_header_limits_h" = xyes +then : + printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h - for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ - stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \ - argz_next __fsetlocking -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 `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +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 -done +ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_param_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h +fi + ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" +if test "x$ac_cv_func_getcwd" = xyes +then : + printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 -$as_echo_n "checking whether feof_unlocked is declared... " >&6; } -if ${ac_cv_have_decl_feof_unlocked+:} false; then : - $as_echo_n "(cached) " >&6 -else +fi +ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid" +if test "x$ac_cv_func_getegid" = xyes +then : + printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" +if test "x$ac_cv_func_geteuid" = xyes +then : + printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid" +if test "x$ac_cv_func_getgid" = xyes +then : + printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" +if test "x$ac_cv_func_getuid" = xyes +then : + printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" +if test "x$ac_cv_func_mempcpy" = xyes +then : + printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap" +if test "x$ac_cv_func_munmap" = xyes +then : + printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy" +if test "x$ac_cv_func_stpcpy" = xyes +then : + printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" +if test "x$ac_cv_func_strcasecmp" = xyes +then : + printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" +if test "x$ac_cv_func_strdup" = xyes +then : + printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" +if test "x$ac_cv_func_strtoul" = xyes +then : + printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" +if test "x$ac_cv_func_tsearch" = xyes +then : + printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "argz_count" "ac_cv_func_argz_count" +if test "x$ac_cv_func_argz_count" = xyes +then : + printf "%s\n" "#define HAVE_ARGZ_COUNT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "argz_stringify" "ac_cv_func_argz_stringify" +if test "x$ac_cv_func_argz_stringify" = xyes +then : + printf "%s\n" "#define HAVE_ARGZ_STRINGIFY 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "argz_next" "ac_cv_func_argz_next" +if test "x$ac_cv_func_argz_next" = xyes +then : + printf "%s\n" "#define HAVE_ARGZ_NEXT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "__fsetlocking" "ac_cv_func___fsetlocking" +if test "x$ac_cv_func___fsetlocking" = xyes +then : + printf "%s\n" "#define HAVE___FSETLOCKING 1" >>confdefs.h + +fi + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 +printf %s "checking whether feof_unlocked is declared... " >&6; } +if test ${ac_cv_have_decl_feof_unlocked+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -50209,7 +51780,7 @@ #endif #endif int -main () +main (void) { #ifndef feof_unlocked @@ -50220,32 +51791,32 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_have_decl_feof_unlocked=yes -else +else $as_nop ac_cv_have_decl_feof_unlocked=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 -$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 +printf "%s\n" "$ac_cv_have_decl_feof_unlocked" >&6; } if test $ac_cv_have_decl_feof_unlocked = yes; then gt_value=1 else gt_value=0 fi -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FEOF_UNLOCKED $gt_value -_ACEOF +printf "%s\n" "#define HAVE_DECL_FEOF_UNLOCKED $gt_value" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 -$as_echo_n "checking whether fgets_unlocked is declared... " >&6; } -if ${ac_cv_have_decl_fgets_unlocked+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 +printf %s "checking whether fgets_unlocked is declared... " >&6; } +if test ${ac_cv_have_decl_fgets_unlocked+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -50258,7 +51829,7 @@ #endif #endif int -main () +main (void) { #ifndef fgets_unlocked @@ -50269,24 +51840,23 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_have_decl_fgets_unlocked=yes -else +else $as_nop ac_cv_have_decl_fgets_unlocked=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 -$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 +printf "%s\n" "$ac_cv_have_decl_fgets_unlocked" >&6; } if test $ac_cv_have_decl_fgets_unlocked = yes; then gt_value=1 else gt_value=0 fi -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FGETS_UNLOCKED $gt_value -_ACEOF +printf "%s\n" "#define HAVE_DECL_FGETS_UNLOCKED $gt_value" >>confdefs.h @@ -50319,11 +51889,12 @@ done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 -$as_echo_n "checking for iconv... " >&6; } -if ${am_cv_func_iconv+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 +printf %s "checking for iconv... " >&6; } +if test ${am_cv_func_iconv+y} +then : + printf %s "(cached) " >&6 +else $as_nop am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no @@ -50340,7 +51911,7 @@ #endif #endif int -main () +main (void) { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); @@ -50349,10 +51920,11 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : am_cv_func_iconv=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" @@ -50370,7 +51942,7 @@ #endif #endif int -main () +main (void) { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); @@ -50379,28 +51951,29 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 -$as_echo "$am_cv_func_iconv" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 +printf "%s\n" "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then -$as_echo "#define HAVE_ICONV 1" >>confdefs.h +printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 -$as_echo_n "checking how to link with libiconv... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 -$as_echo "$LIBICONV" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 +printf %s "checking how to link with libiconv... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 +printf "%s\n" "$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= @@ -50410,11 +51983,12 @@ if test "$am_cv_func_iconv" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 -$as_echo_n "checking for iconv declaration... " >&6; } - if ${am_cv_proto_iconv+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 +printf %s "checking for iconv declaration... " >&6; } + if test ${am_cv_proto_iconv+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -50440,40 +52014,40 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : am_cv_proto_iconv_arg1="" -else +else $as_nop am_cv_proto_iconv_arg1="const" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- }$am_cv_proto_iconv" >&5 -$as_echo "${ac_t:- +printf "%s\n" "${ac_t:- }$am_cv_proto_iconv" >&6; } -cat >>confdefs.h <<_ACEOF -#define ICONV_CONST $am_cv_proto_iconv_arg1 -_ACEOF +printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5 -$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; } -if ${gt_cv_nl_locale_name+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5 +printf %s "checking for NL_LOCALE_NAME macro... " >&6; } +if test ${gt_cv_nl_locale_name+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -50487,27 +52061,28 @@ #endif #endif int -main () +main (void) { char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES)); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gt_cv_nl_locale_name=yes -else +else $as_nop gt_cv_nl_locale_name=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5 -$as_echo "$gt_cv_nl_locale_name" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5 +printf "%s\n" "$gt_cv_nl_locale_name" >&6; } if test $gt_cv_nl_locale_name = yes; then -$as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h +printf "%s\n" "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h fi @@ -50515,11 +52090,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_INTLBISON+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_INTLBISON+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$INTLBISON"; then ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. else @@ -50527,11 +52103,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_INTLBISON="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -50542,11 +52122,11 @@ fi INTLBISON=$ac_cv_prog_INTLBISON if test -n "$INTLBISON"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 -$as_echo "$INTLBISON" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 +printf "%s\n" "$INTLBISON" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -50556,8 +52136,8 @@ if test -z "$INTLBISON"; then ac_verc_fail=yes else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 -$as_echo_n "checking version of bison... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 +printf %s "checking version of bison... " >&6; } ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; @@ -50565,19 +52145,20 @@ ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 -$as_echo "$ac_prog_version" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 +printf "%s\n" "$ac_prog_version" >&6; } fi if test $ac_verc_fail = yes; then INTLBISON=: fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 -$as_echo_n "checking for long long int... " >&6; } -if ${ac_cv_type_long_long_int+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 +printf %s "checking for long long int... " >&6; } +if test ${ac_cv_type_long_long_int+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ long long int ll = 9223372036854775807ll; @@ -50595,7 +52176,7 @@ #endif #endif int -main () +main (void) { long long int llmax = 9223372036854775807ll; return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) @@ -50604,28 +52185,30 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_type_long_long_int=yes -else +else $as_nop ac_cv_type_long_long_int=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 -$as_echo "$ac_cv_type_long_long_int" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 +printf "%s\n" "$ac_cv_type_long_long_int" >&6; } if test $ac_cv_type_long_long_int = yes; then -$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 -$as_echo_n "checking for long double... " >&6; } -if ${gt_cv_c_long_double+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 +printf %s "checking for long double... " >&6; } +if test ${gt_cv_c_long_double+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test "$GCC" = yes; then gt_cv_c_long_double=yes else @@ -50646,30 +52229,32 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gt_cv_c_long_double=yes -else +else $as_nop gt_cv_c_long_double=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 -$as_echo "$gt_cv_c_long_double" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 +printf "%s\n" "$gt_cv_c_long_double" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 -$as_echo_n "checking for wchar_t... " >&6; } -if ${gt_cv_c_wchar_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 +printf %s "checking for wchar_t... " >&6; } +if test ${gt_cv_c_wchar_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -50683,34 +52268,36 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gt_cv_c_wchar_t=yes -else +else $as_nop gt_cv_c_wchar_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 -$as_echo "$gt_cv_c_wchar_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 +printf "%s\n" "$gt_cv_c_wchar_t" >&6; } if test $gt_cv_c_wchar_t = yes; then -$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h +printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 -$as_echo_n "checking for wint_t... " >&6; } -if ${gt_cv_c_wint_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 +printf %s "checking for wint_t... " >&6; } +if test ${gt_cv_c_wint_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -50724,36 +52311,38 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gt_cv_c_wint_t=yes -else +else $as_nop gt_cv_c_wint_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 -$as_echo "$gt_cv_c_wint_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 +printf "%s\n" "$gt_cv_c_wint_t" >&6; } if test $gt_cv_c_wint_t = yes; then -$as_echo "#define HAVE_WINT_T 1" >>confdefs.h +printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 -$as_echo_n "checking for intmax_t... " >&6; } -if ${gt_cv_c_intmax_t+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 +printf %s "checking for intmax_t... " >&6; } +if test ${gt_cv_c_intmax_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -50775,7 +52364,7 @@ #endif #endif int -main () +main (void) { intmax_t x = -1; return !x; @@ -50783,30 +52372,33 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : gt_cv_c_intmax_t=yes -else +else $as_nop gt_cv_c_intmax_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 -$as_echo "$gt_cv_c_intmax_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 +printf "%s\n" "$gt_cv_c_intmax_t" >&6; } if test $gt_cv_c_intmax_t = yes; then -$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h +printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 -$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } -if ${gt_cv_func_printf_posix+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 +printf %s "checking whether printf() supports POSIX/XSI format strings... " >&6; } +if test ${gt_cv_func_printf_posix+y} +then : + printf %s "(cached) " >&6 +else $as_nop - if test "$cross_compiling" = yes; then : + if test "$cross_compiling" = yes +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -50817,15 +52409,16 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "notposix" >/dev/null 2>&1; then : + $EGREP "notposix" >/dev/null 2>&1 +then : gt_cv_func_printf_posix="guessing no" -else +else $as_nop gt_cv_func_printf_posix="guessing yes" fi -rm -f conftest* +rm -rf conftest* -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -50841,9 +52434,10 @@ return (strcmp (buf, "55 33") != 0); } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : gt_cv_func_printf_posix=yes -else +else $as_nop gt_cv_func_printf_posix=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -50852,22 +52446,23 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 -$as_echo "$gt_cv_func_printf_posix" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 +printf "%s\n" "$gt_cv_func_printf_posix" >&6; } case $gt_cv_func_printf_posix in *yes) -$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h +printf "%s\n" "#define HAVE_POSIX_PRINTF 1" >>confdefs.h ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 -$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } -if ${ac_cv_gnu_library_2_1+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 +printf %s "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } +if test ${ac_cv_gnu_library_2_1+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -50880,40 +52475,37 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + $EGREP "Lucky GNU user" >/dev/null 2>&1 +then : ac_cv_gnu_library_2_1=yes -else +else $as_nop ac_cv_gnu_library_2_1=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 -$as_echo "$ac_cv_gnu_library_2_1" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 +printf "%s\n" "$ac_cv_gnu_library_2_1" >&6; } GLIBC21="$ac_cv_gnu_library_2_1" - for ac_header in stdint.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" -if test "x$ac_cv_header_stdint_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STDINT_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = xyes +then : + printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h fi -done - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 -$as_echo_n "checking for SIZE_MAX... " >&6; } - if ${gl_cv_size_max+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 +printf %s "checking for SIZE_MAX... " >&6; } + if test ${gl_cv_size_max+y} +then : + printf %s "(cached) " >&6 +else $as_nop gl_cv_size_max= cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50929,27 +52521,28 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Found it" >/dev/null 2>&1; then : + $EGREP "Found it" >/dev/null 2>&1 +then : gl_cv_size_max=yes fi -rm -f conftest* +rm -rf conftest* if test -z "$gl_cv_size_max"; then - if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include -#include "; then : + if ac_fn_c_compute_int "$LINENO" "size_t_bits_minus_1" "sizeof (size_t) * CHAR_BIT - 1" "#include +#include " +then : -else +else $as_nop size_t_bits_minus_1= fi + if ac_fn_c_compute_int "$LINENO" "fits_in_uint" "sizeof (size_t) <= sizeof (unsigned int)" "#include " +then : - if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include "; then : - -else +else $as_nop fits_in_uint= fi - if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then if test $fits_in_uint = 1; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50967,17 +52560,18 @@ #endif #endif int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : fits_in_uint=0 fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $fits_in_uint = 1; then gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" @@ -50991,38 +52585,32 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 -$as_echo "$gl_cv_size_max" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 +printf "%s\n" "$gl_cv_size_max" >&6; } if test "$gl_cv_size_max" != yes; then -cat >>confdefs.h <<_ACEOF -#define SIZE_MAX $gl_cv_size_max -_ACEOF +printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h fi - for ac_header in stdint.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" -if test "x$ac_cv_header_stdint_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STDINT_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = xyes +then : + printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h fi -done - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 -$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } -if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 +printf %s "checking for CFPreferencesCopyAppValue... " >&6; } +if test ${gt_cv_func_CFPreferencesCopyAppValue+y} +then : + printf %s "(cached) " >&6 +else $as_nop gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51037,34 +52625,36 @@ #endif #endif int -main () +main (void) { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gt_cv_func_CFPreferencesCopyAppValue=yes -else +else $as_nop gt_cv_func_CFPreferencesCopyAppValue=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 -$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 +printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then -$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h +printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 -$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } -if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 +printf %s "checking for CFLocaleCopyCurrent... " >&6; } +if test ${gt_cv_func_CFLocaleCopyCurrent+y} +then : + printf %s "(cached) " >&6 +else $as_nop gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51079,27 +52669,28 @@ #endif #endif int -main () +main (void) { CFLocaleCopyCurrent(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gt_cv_func_CFLocaleCopyCurrent=yes -else +else $as_nop gt_cv_func_CFLocaleCopyCurrent=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 -$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 +printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then -$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h +printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= @@ -51114,47 +52705,86 @@ ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" -if test "x$ac_cv_type_ptrdiff_t" = xyes; then : +if test "x$ac_cv_type_ptrdiff_t" = xyes +then : -else +else $as_nop -$as_echo "#define ptrdiff_t long" >>confdefs.h +printf "%s\n" "#define ptrdiff_t long" >>confdefs.h fi - for ac_header in stddef.h stdlib.h string.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" +if test "x$ac_cv_header_stddef_h" = xyes +then : + printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes +then : + printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "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_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen -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 `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +fi + + ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" +if test "x$ac_cv_func_asprintf" = xyes +then : + printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h fi -done +ac_fn_c_check_func "$LINENO" "fwprintf" "ac_cv_func_fwprintf" +if test "x$ac_cv_func_fwprintf" = xyes +then : + printf "%s\n" "#define HAVE_FWPRINTF 1" >>confdefs.h +fi +ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" +if test "x$ac_cv_func_putenv" = xyes +then : + printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h +fi +ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" +if test "x$ac_cv_func_setenv" = xyes +then : + printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 -$as_echo_n "checking whether _snprintf is declared... " >&6; } -if ${ac_cv_have_decl__snprintf+:} false; then : - $as_echo_n "(cached) " >&6 -else +fi +ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" +if test "x$ac_cv_func_setlocale" = xyes +then : + printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" +if test "x$ac_cv_func_snprintf" = xyes +then : + printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen" +if test "x$ac_cv_func_wcslen" = xyes +then : + printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h + +fi + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 +printf %s "checking whether _snprintf is declared... " >&6; } +if test ${ac_cv_have_decl__snprintf+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -51167,7 +52797,7 @@ #endif #endif int -main () +main (void) { #ifndef _snprintf @@ -51178,32 +52808,32 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_have_decl__snprintf=yes -else +else $as_nop ac_cv_have_decl__snprintf=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 -$as_echo "$ac_cv_have_decl__snprintf" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 +printf "%s\n" "$ac_cv_have_decl__snprintf" >&6; } if test $ac_cv_have_decl__snprintf = yes; then gt_value=1 else gt_value=0 fi -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL__SNPRINTF $gt_value -_ACEOF +printf "%s\n" "#define HAVE_DECL__SNPRINTF $gt_value" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 -$as_echo_n "checking whether _snwprintf is declared... " >&6; } -if ${ac_cv_have_decl__snwprintf+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 +printf %s "checking whether _snwprintf is declared... " >&6; } +if test ${ac_cv_have_decl__snwprintf+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -51216,7 +52846,7 @@ #endif #endif int -main () +main (void) { #ifndef _snwprintf @@ -51227,33 +52857,33 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_have_decl__snwprintf=yes -else +else $as_nop ac_cv_have_decl__snwprintf=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 -$as_echo "$ac_cv_have_decl__snwprintf" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 +printf "%s\n" "$ac_cv_have_decl__snwprintf" >&6; } if test $ac_cv_have_decl__snwprintf = yes; then gt_value=1 else gt_value=0 fi -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL__SNWPRINTF $gt_value -_ACEOF +printf "%s\n" "#define HAVE_DECL__SNWPRINTF $gt_value" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 -$as_echo_n "checking whether getc_unlocked is declared... " >&6; } -if ${ac_cv_have_decl_getc_unlocked+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 +printf %s "checking whether getc_unlocked is declared... " >&6; } +if test ${ac_cv_have_decl_getc_unlocked+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -51266,7 +52896,7 @@ #endif #endif int -main () +main (void) { #ifndef getc_unlocked @@ -51277,24 +52907,23 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_have_decl_getc_unlocked=yes -else +else $as_nop ac_cv_have_decl_getc_unlocked=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 -$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 +printf "%s\n" "$ac_cv_have_decl_getc_unlocked" >&6; } if test $ac_cv_have_decl_getc_unlocked = yes; then gt_value=1 else gt_value=0 fi -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETC_UNLOCKED $gt_value -_ACEOF +printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $gt_value" >>confdefs.h @@ -51323,11 +52952,12 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 -$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } -if ${am_cv_langinfo_codeset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 +printf %s "checking for nl_langinfo and CODESET... " >&6; } +if test ${am_cv_langinfo_codeset+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -51340,36 +52970,38 @@ #endif #endif int -main () +main (void) { -char* cs = nl_langinfo(CODESET); +char* cs = nl_langinfo(CODESET); return !cs; ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : am_cv_langinfo_codeset=yes -else +else $as_nop am_cv_langinfo_codeset=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 -$as_echo "$am_cv_langinfo_codeset" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 +printf "%s\n" "$am_cv_langinfo_codeset" >&6; } if test $am_cv_langinfo_codeset = yes; then -$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h +printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 -$as_echo_n "checking for LC_MESSAGES... " >&6; } -if ${gt_cv_val_LC_MESSAGES+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 +printf %s "checking for LC_MESSAGES... " >&6; } +if test ${gt_cv_val_LC_MESSAGES+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -51382,26 +53014,27 @@ #endif #endif int -main () +main (void) { return LC_MESSAGES ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gt_cv_val_LC_MESSAGES=yes -else +else $as_nop gt_cv_val_LC_MESSAGES=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 -$as_echo "$gt_cv_val_LC_MESSAGES" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 +printf "%s\n" "$gt_cv_val_LC_MESSAGES" >&6; } if test $gt_cv_val_LC_MESSAGES = yes; then -$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h +printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h fi @@ -51441,11 +53074,12 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 -$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } -if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 +printf %s "checking for CFPreferencesCopyAppValue... " >&6; } +if test ${gt_cv_func_CFPreferencesCopyAppValue+y} +then : + printf %s "(cached) " >&6 +else $as_nop gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51460,34 +53094,36 @@ #endif #endif int -main () +main (void) { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gt_cv_func_CFPreferencesCopyAppValue=yes -else +else $as_nop gt_cv_func_CFPreferencesCopyAppValue=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 -$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 +printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then -$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h +printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 -$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } -if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 +printf %s "checking for CFLocaleCopyCurrent... " >&6; } +if test ${gt_cv_func_CFLocaleCopyCurrent+y} +then : + printf %s "(cached) " >&6 +else $as_nop gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51502,27 +53138,28 @@ #endif #endif int -main () +main (void) { CFLocaleCopyCurrent(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gt_cv_func_CFLocaleCopyCurrent=yes -else +else $as_nop gt_cv_func_CFLocaleCopyCurrent=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 -$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 +printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then -$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h +printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= @@ -51553,18 +53190,19 @@ if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 -$as_echo_n "checking whether included gettext is requested... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 +printf %s "checking whether included gettext is requested... " >&6; } # Check whether --with-included-gettext was given. -if test "${with_included_gettext+set}" = set; then : +if test ${with_included_gettext+y} +then : withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval -else +else $as_nop nls_cv_force_use_gnu_gettext=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 -$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 +printf "%s\n" "$nls_cv_force_use_gnu_gettext" >&6; } nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then @@ -51586,11 +53224,12 @@ gt_expression_test_code= fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 -$as_echo_n "checking for GNU gettext in libc... " >&6; } -if eval \${$gt_func_gnugettext_libc+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 +printf %s "checking for GNU gettext in libc... " >&6; } +if eval test \${$gt_func_gnugettext_libc+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -51606,7 +53245,7 @@ #endif #endif int -main () +main (void) { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings @@ -51614,17 +53253,18 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$gt_func_gnugettext_libc=yes" -else +else $as_nop eval "$gt_func_gnugettext_libc=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$gt_func_gnugettext_libc - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then @@ -51650,7 +53290,8 @@ # Check whether --with-libintl-prefix was given. -if test "${with_libintl_prefix+set}" = set; then : +if test ${with_libintl_prefix+y} +then : withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no @@ -52089,11 +53730,12 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 -$as_echo_n "checking for GNU gettext in libintl... " >&6; } -if eval \${$gt_func_gnugettext_libintl+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 +printf %s "checking for GNU gettext in libintl... " >&6; } +if eval test \${$gt_func_gnugettext_libintl+y} +then : + printf %s "(cached) " >&6 +else $as_nop gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" @@ -52117,7 +53759,7 @@ #endif #endif int -main () +main (void) { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") @@ -52125,12 +53767,13 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$gt_func_gnugettext_libintl=yes" -else +else $as_nop eval "$gt_func_gnugettext_libintl=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" @@ -52153,7 +53796,7 @@ #endif #endif int -main () +main (void) { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") @@ -52161,21 +53804,22 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi eval ac_res=\$$gt_func_gnugettext_libintl - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } fi if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ @@ -52221,20 +53865,20 @@ if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then -$as_echo "#define ENABLE_NLS 1" >>confdefs.h +printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h else USE_NLS=no fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 -$as_echo_n "checking whether to use NLS... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -$as_echo "$USE_NLS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 +printf %s "checking whether to use NLS... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +printf "%s\n" "$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 -$as_echo_n "checking where the gettext function comes from... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 +printf %s "checking where the gettext function comes from... " >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" @@ -52244,18 +53888,18 @@ else gt_source="included intl directory" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 -$as_echo "$gt_source" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 +printf "%s\n" "$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 -$as_echo_n "checking how to link with libintl... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 -$as_echo "$LIBINTL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 +printf %s "checking how to link with libintl... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 +printf "%s\n" "$LIBINTL" >&6; } for element in $INCINTL; do haveit= @@ -52282,10 +53926,10 @@ fi -$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h -$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h +printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h fi @@ -52357,11 +54001,12 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenMP SIMD reduction is supported" >&5 -$as_echo_n "checking whether OpenMP SIMD reduction is supported... " >&6; } -if ${r_cv_openmp_simdred+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenMP SIMD reduction is supported" >&5 +printf %s "checking whether OpenMP SIMD reduction is supported... " >&6; } +if test ${r_cv_openmp_simdred+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -52371,9 +54016,10 @@ r_save_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} ${R_OPENMP_CFLAGS}" -if test "$cross_compiling" = yes; then : +if test "$cross_compiling" = yes +then : r_cv_openmp_simdred=no -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -52409,9 +54055,10 @@ } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : r_cv_openmp_simdred=yes -else +else $as_nop r_cv_openmp_simdred=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -52421,56 +54068,56 @@ CFLAGS="${r_save_CFLAGS}" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_openmp_simdred" >&5 -$as_echo "$r_cv_openmp_simdred" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r_cv_openmp_simdred" >&5 +printf "%s\n" "$r_cv_openmp_simdred" >&6; } if test "x${r_cv_openmp_simdred}" = xyes; then -$as_echo "#define HAVE_OPENMP_SIMDRED 1" >>confdefs.h +printf "%s\n" "#define HAVE_OPENMP_SIMDRED 1" >>confdefs.h fi ### shell for use in scripts: we allow R_SHELL to set the script, -### since some AIX systems have zsh as sh. +### since some AIX and macOS systems have zsh as sh. : ${R_SHELL=${SHELL}} -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using as R_SHELL for scripts ... ${R_SHELL}" >&5 -$as_echo "using as R_SHELL for scripts ... ${R_SHELL}" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using as R_SHELL for scripts ... ${R_SHELL}" >&5 +printf "%s\n" "using as R_SHELL for scripts ... ${R_SHELL}" >&6; } ### * Win32 overrides case "${host_os}" in mingw*) -$as_echo "#define HAVE_ICONV 1" >>confdefs.h +printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h -$as_echo "#define HAVE_ICONVLIST 1" >>confdefs.h +printf "%s\n" "#define HAVE_ICONVLIST 1" >>confdefs.h -$as_echo "#define HAVE_ICONV_H 1" >>confdefs.h +printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h -$as_echo "#define HAVE_JPEG 1" >>confdefs.h +printf "%s\n" "#define HAVE_JPEG 1" >>confdefs.h -$as_echo "#define HAVE_PNG 1" >>confdefs.h +printf "%s\n" "#define HAVE_PNG 1" >>confdefs.h -$as_echo "#define HAVE_POSIX_SETJMP 1" >>confdefs.h +printf "%s\n" "#define HAVE_POSIX_SETJMP 1" >>confdefs.h -$as_echo "#define HAVE_TCLTK 1" >>confdefs.h +printf "%s\n" "#define HAVE_TCLTK 1" >>confdefs.h -$as_echo "#define HAVE_TIFF 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIFF 1" >>confdefs.h -$as_echo "#define HAVE_TIMES 1" >>confdefs.h +printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h want_R_profiling=yes -$as_echo "#define R_PROFILING 1" >>confdefs.h +printf "%s\n" "#define R_PROFILING 1" >>confdefs.h ;; esac @@ -52518,8 +54165,8 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -52549,15 +54196,15 @@ /^ac_cv_env_/b end t clear :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else @@ -52571,8 +54218,8 @@ fi fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -52589,7 +54236,7 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" @@ -52684,10 +54331,6 @@ as_fn_error $? "conditional \"BUILD_XDR\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -if test -z "${USE_MMAP_ZLIB_TRUE}" && test -z "${USE_MMAP_ZLIB_FALSE}"; then - as_fn_error $? "conditional \"USE_MMAP_ZLIB\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi if test -z "${BUILD_TRE_TRUE}" && test -z "${BUILD_TRE_FALSE}"; then as_fn_error $? "conditional \"BUILD_TRE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -52713,8 +54356,8 @@ ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL @@ -52737,14 +54380,16 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +as_nop=: +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else +else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -52754,46 +54399,46 @@ fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || @@ -52802,13 +54447,6 @@ 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 #(( @@ -52817,8 +54455,12 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS @@ -52830,30 +54472,10 @@ as_myself=$0 fi if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] @@ -52866,13 +54488,14 @@ as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -52899,18 +54522,20 @@ { eval $1=; unset $1;} } as_unset=as_fn_unset + # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else +else $as_nop as_fn_append () { eval $1=\$$1\$2 @@ -52922,12 +54547,13 @@ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else +else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` @@ -52958,7 +54584,7 @@ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -52980,6 +54606,10 @@ 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*) @@ -52993,6 +54623,12 @@ 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 @@ -53034,7 +54670,7 @@ as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -53043,7 +54679,7 @@ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -53105,8 +54741,8 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by R $as_me 4.0.3, which was -generated by GNU Autoconf 2.69. Invocation command line was +This file was extended by R $as_me 4.1.2, which was +generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -53169,14 +54805,16 @@ R home page: ." _ACEOF +ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` +ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -R config.status 4.0.3 -configured by $0, generated by GNU Autoconf 2.69, +R config.status 4.1.2 +configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -53216,15 +54854,15 @@ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; + printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; + printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" @@ -53232,7 +54870,7 @@ --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; @@ -53241,7 +54879,7 @@ as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; + printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; @@ -53269,7 +54907,7 @@ if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" @@ -53283,7 +54921,7 @@ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX - $as_echo "$ac_log" + printf "%s\n" "$ac_log" } >&5 _ACEOF @@ -53868,9 +55506,9 @@ # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files + test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers + test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree @@ -54240,7 +55878,7 @@ esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done @@ -54248,17 +55886,17 @@ # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | + ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac @@ -54275,7 +55913,7 @@ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | +printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -54299,9 +55937,9 @@ case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -54363,8 +56001,8 @@ case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' @@ -54413,9 +56051,9 @@ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -54431,27 +56069,27 @@ # if test x"$ac_file" != x-; then { - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -$as_echo "$as_me: $ac_file is unchanged" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} + :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +printf "%s\n" "$as_me: executing $ac_file commands" >&6;} ;; esac @@ -54999,6 +56637,7 @@ esac + ltmain=$ac_aux_dir/ltmain.sh @@ -55355,8 +56994,8 @@ $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi @@ -55684,7 +57323,7 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: R is now configured for ${host} Source directory: ${srcdir} @@ -55694,6 +57333,7 @@ Fortran fixed-form compiler: ${r_f77_compiler} Default C++ compiler: ${r_cxx_compiler} + C++11 compiler: ${r_cxx11_compiler} C++14 compiler: ${r_cxx14_compiler} C++17 compiler: ${r_cxx17_compiler} C++20 compiler: ${r_cxx20_compiler} @@ -55710,7 +57350,7 @@ Recommended packages: ${use_recommended_packages} " >&5 -$as_echo " +printf "%s\n" " R is now configured for ${host} Source directory: ${srcdir} @@ -55720,6 +57360,7 @@ Fortran fixed-form compiler: ${r_f77_compiler} Default C++ compiler: ${r_cxx_compiler} + C++11 compiler: ${r_cxx11_compiler} C++14 compiler: ${r_cxx14_compiler} C++17 compiler: ${r_cxx17_compiler} C++20 compiler: ${r_cxx20_compiler} @@ -55737,67 +57378,68 @@ Recommended packages: ${use_recommended_packages} " >&6; } if test -n "${warn_f77_cc_double_complex}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_f77_cc_double_complex}" >&5 -$as_echo "$as_me: WARNING: ${warn_f77_cc_double_complex}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_f77_cc_double_complex}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_f77_cc_double_complex}" >&2;} fi if test -n "${warn_xcompile_sizeof_long}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_xcompile_sizeof_long}" >&5 -$as_echo "$as_me: WARNING: ${warn_xcompile_sizeof_long}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_xcompile_sizeof_long}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_xcompile_sizeof_long}" >&2;} fi if test -n "${warn_type_socklen}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_type_socklen}" >&5 -$as_echo "$as_me: WARNING: ${warn_type_socklen}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_type_socklen}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_type_socklen}" >&2;} fi if test -n "${warn_cxxpicflags}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_cxxpicflags}" >&5 -$as_echo "$as_me: WARNING: ${warn_cxxpicflags}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_cxxpicflags}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_cxxpicflags}" >&2;} fi if test -n "${warn_shlib_cxxldflags}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_shlib_cxxldflags}" >&5 -$as_echo "$as_me: WARNING: ${warn_shlib_cxxldflags}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_shlib_cxxldflags}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_shlib_cxxldflags}" >&2;} fi if test -n "${warn_cxxpicflags}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_cxxpicflags}" >&5 -$as_echo "$as_me: WARNING: ${warn_cxxpicflags}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_cxxpicflags}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_cxxpicflags}" >&2;} fi if test -n "${warn_fcpicflags}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_fcpicflags}" >&5 -$as_echo "$as_me: WARNING: ${warn_fcpicflags}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_fcpicflags}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_fcpicflags}" >&2;} fi if test -n "${warn_tcltk_version}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_tcltk_version}" >&5 -$as_echo "$as_me: WARNING: ${warn_tcltk_version}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_tcltk_version}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_tcltk_version}" >&2;} fi if test -n "${warn_info}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_info}" >&5 -$as_echo "$as_me: WARNING: ${warn_info}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_info}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_info}" >&2;} fi if test -n "${warn_pdf1}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdf1}" >&5 -$as_echo "$as_me: WARNING: ${warn_pdf1}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdf1}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_pdf1}" >&2;} fi if test -n "${warn_pdf2}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdf2}" >&5 -$as_echo "$as_me: WARNING: ${warn_pdf2}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdf2}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_pdf2}" >&2;} fi if test -n "${warn_pdf3}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdf3}" >&5 -$as_echo "$as_me: WARNING: ${warn_pdf3}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdf3}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_pdf3}" >&2;} fi if test -n "${warn_pager}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pager}" >&5 -$as_echo "$as_me: WARNING: ${warn_pager}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pager}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_pager}" >&2;} fi if test -n "${warn_browser}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_browser}" >&5 -$as_echo "$as_me: WARNING: ${warn_browser}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_browser}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_browser}" >&2;} fi if test -n "${warn_pdfviewer}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdfviewer}" >&5 -$as_echo "$as_me: WARNING: ${warn_pdfviewer}" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${warn_pdfviewer}" >&5 +printf "%s\n" "$as_me: WARNING: ${warn_pdfviewer}" >&2;} fi ### Local variables: *** ### mode: outline-minor *** ### outline-regexp: "### [*]+" *** ### End: *** + diff -Nru r-base-4.0.3/configure.ac r-base-4.1.2/configure.ac --- r-base-4.0.3/configure.ac 2020-08-03 22:15:05.000000000 +0000 +++ r-base-4.1.2/configure.ac 2021-09-19 22:15:01.000000000 +0000 @@ -2,7 +2,7 @@ ### ### Process this file with autoconf to produce a configure script. ### -### Copyright (C) 1998-2019 R Core Team +### Copyright (C) 1998-2021 R Core Team ### ### This file is part of R. ### @@ -79,7 +79,7 @@ ## exclude some unsupported OSes case "${host_os}" in ## Darwin 1.3.1 was macOS 10.0, 1.4.1 was 10.1, 5 is 10.2 etc - ## with 18 being 10.14. + ## with 19 being 10.15 (Catalina) and 20 being 11 (Big Sur) ## We no longer support < 10.6 (Snow Leopard, Darwin 10) ## https://en.wikipedia.org/wiki/Darwin_OS darwin1.*) @@ -96,6 +96,25 @@ R_PLATFORM="${host}" AC_SUBST(R_PLATFORM) + +dnl config.guess deliberately overrides the cpu/arch as repoorted by +dnl uname -m (or -p) to use one almost unknown to Mac users. So +dnl we need a macro for a more familiar name. +MAC_CPU= +case "${host_os}" in + darwin*) + case "${host_cpu}" in + aarch64) + MAC_CPU="arm64" + ;; + *) + MAC_CPU="${host_cpu}" + ;; + esac + AC_SUBST(MAC_CPU) + ;; +esac + R_OS="${host_os}" AC_SUBST(R_OS) @@ -495,6 +514,25 @@ [use_internal_tzcode=${withval}], [use_internal_tzcode=default]) +AC_ARG_WITH([internal-towlower], +[AS_HELP_STRING([--with-internal-towlower],[use internal code for towlower/upper @<:@no, yes on macOS and Solaris@:>@])], +[use_internal_towlower=${withval}], +[use_internal_towlower=default]) + +AC_ARG_WITH([internal-iswxxxxx], +[AS_HELP_STRING([--with-internal-iswxxxxx],[use internal iswprint etc. @<:@no, yes on macOS, Solaris and AIX@:>@])], +[use_internal_iswxxxxx=${withval}], +[use_internal_iswxxxxx=default]) + +AC_ARG_WITH([internal-wcwidth], +[AS_HELP_STRING([--with-internal-wcwidth],[use internal wcwidth @<:@yes@:>@])], +[use_internal_wcwidth=${withval}], +[use_internal_wcwidth=yes]) + +AC_ARG_WITH([internal-tzcode], +[AS_HELP_STRING([--with-internal-tzcode],[use internal time-zone code @<:@no, yes on macOS@:>@])], +[use_internal_tzcode=${withval}], +[use_internal_tzcode=default]) ## ## Completely disable using libtool for building shlibs until libtool @@ -527,6 +565,21 @@ AM_CONDITIONAL(BYTE_COMPILE_PACKAGES, [test "x${want_byte_compiled_packages}" = xyes]) +AC_ARG_WITH([static-cairo], +[AS_HELP_STRING([--with-static-cairo],[allow for the use of static cairo libraries @<:@no, yes on macOS@:>@])], +[use_static_cairo=${withval}], +[use_static_cairo=default]) +if test "x$use_static_cairo" = xdefault; then + case "${host_os}" in + darwin*) + use_static_cairo=yes + ;; + *) + use_static_cairo=no + ;; + esac +fi + ### ** Precious variables. AC_ARG_VAR([R_PRINTCMD], @@ -678,15 +731,15 @@ ## Search for cairographics needs pkg-config, ## helps find jpeg, libpng and libtiff. -AC_PATH_TOOL(PKG_CONFIG, pkg-config , [], - [$PATH:/usr/local/bin:/ext/bin:/ext:/sw/bin:/opt/bin]) -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) +AC_PATH_PROGS(PKG_CONFIG, [ pkg-config pkgconf ], []) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config (or pkgconf) utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's default search path]) AC_PROG_CC AC_PROG_GCC_TRADITIONAL -AC_GNU_SOURCE ## see note above +dnl AC_GNU_SOURCE ## see note above +AC_USE_SYSTEM_EXTENSIONS ## see note above AC_PROG_CPP R_PROG_CPP_CPPFLAGS @@ -809,16 +862,18 @@ ## ## This actually comes from libtool.m4. -AC_CHECK_LIBM +LT_LIB_M AC_SUBST(LIBM) ## -## AC_CHECK_LIBM computes LIBM but does not add to LIBS, hence we do +## LT_LIB_M computes LIBM but does not add to LIBS, hence we do ## the following as well. +## This gives: 'sin' is a builtin with type 'double (double)' AC_CHECK_LIB(m, sin) AC_CHECK_LIB(dl, dlopen) ## Readline. if test "${use_readline}" = yes; then + dnl in libedit both headers exist as links to editline/readline.h AC_CHECK_HEADERS(readline/history.h readline/readline.h) r_save_LIBS="${LIBS}" LIBS= @@ -841,12 +896,15 @@ if test "${use_readline}" = no; then AC_MSG_ERROR([--with-readline=yes (default) and headers/libs are not available]) else - ## the NetBSD emulation supplied by macOS does not have these + ## the NetBSD emulation (libedit) supplied by macOS did not have these, + ## but it does now (10.13) have history_truncate_file + ## it has tilde_expand, which is documented to be like tilde_expand_word + ## 'does tilde expansion of strings of type ``~user/foo'' AC_CHECK_FUNCS(history_truncate_file tilde_expand_word) - ## rl_completion_matches is >= 4.2. - ## rl_resize_terminal is >= 4.0 ane we use it only for >= 6.3. - ## rl_callback_sigcleanup is in pre-releases for 7.0, not yet used. - R_CHECK_FUNCS([rl_callback_sigcleanup rl_completion_matches rl_resize_terminal rl_sort_completion_matches], + ## rl_completion_matches is >= 4.2 (emulation has it) + ## rl_resize_terminal is >= 4.0 but we use it only for >= 6.3. + ## rl_sort_completion_matches is >= 6.0 (not in emulation) + R_CHECK_FUNCS([rl_completion_matches rl_resize_terminal rl_sort_completion_matches], [#include #include ] ) @@ -858,7 +916,6 @@ ### * Checks for header files. -AC_HEADER_STDC AC_HEADER_DIRENT ## we also assume readdir and closedir if test "${ac_cv_search_opendir}" = "no"; then @@ -897,7 +954,6 @@ ### * Checks for types. -AC_TYPE_SIGNAL ## liblzma uses uint64_t: used unconditionally in src/main/util.c AC_TYPE_UINT64_T AC_CHECK_TYPES([int64_t, int_fast64_t]) @@ -1065,7 +1121,7 @@ AC_DEFINE(HAVE_NO_SYMBOL_UNDERSCORE) ;; hpux*) -dnl leave this in as not easily overridden by userx +dnl leave this in as not easily overridden by users AC_DEFINE(HAVE_NO_SYMBOL_UNDERSCORE) dnl case "${CC}" in dnl cc|c89) @@ -1101,7 +1157,7 @@ ;; *) SAFE_FFLAGS="${FFLAGS}" - :: + ;; esac else SAFE_FFLAGS="${FFLAGS}" @@ -1736,13 +1792,22 @@ R_STDCXX([17], [CXX17], [CXX14]) R_STDCXX([20], [CXX20], [CXX17]) -## Set default compiler to C++11 if available +## Set default C++ compiler to C++14 if available, otherwise C++11 +## Do not set if neither is available. if test -n "${CXX}" && test -z "${CXXSTD}"; then - if test -n "${CXX11}"; then + if test -n "${CXX14}"; then + CXX=${CXX14} + CXXSTD=${CXX14STD} + CXXFLAGS=${CXX14FLAGS} + CXXPICFLAGS=${CXX14PICFLAGS} + elif test -n "${CXX11}"; then + AC_MSG_WARN([C++14 is not available so the default C++ standard is C++11]) CXX=${CXX11} CXXSTD=${CXX11STD} CXXFLAGS=${CXX11FLAGS} CXXPICFLAGS=${CXX11PICFLAGS} + else + AC_MSG_WARN([Neither C++14 nor C++11 is available so no default C++ compiler is set]) fi fi @@ -1897,7 +1962,7 @@ ## POSIX functions R_CHECK_FUNCS([fcntl], [#include ]) R_CHECK_FUNCS([getgrgid], [#include ]) -R_CHECK_FUNCS([getpwuid], [#include ]) +R_CHECK_FUNCS([getpwnam getpwuid], [#include ]) R_CHECK_FUNCS([kill sigaction sigaltstack sigemptyset], [#include ]) R_CHECK_FUNCS([fdopen popen], [#include ]) if test "${ac_cv_have_decl_popen}" = "no"; then @@ -2090,6 +2155,41 @@ R_FUNC_MKTIME fi +if test x${use_internal_iswxxxxx} = xdefault; then +case "${host_os}" in + darwin*) + use_internal_iswxxxxx=yes; + ;; + aix*) + use_internal_iswxxxxx=yes; + ;; + solaris*) + use_internal_iswxxxxx=yes; + ;; +esac +fi +if test x${use_internal_iswxxxxx} = xyes; then + AC_DEFINE(USE_RI18N_FNS, 1, [Define to 1 to use internal `iswprint' etc.]) +fi + +if test x${use_internal_wcwidth} = xyes; then + AC_DEFINE(USE_RI18N_WIDTH, 1, [Define to 1 to use internal `wcwidth']) +fi + +if test x${use_internal_towlower} = xdefault; then +case "${host_os}" in + darwin*) + use_internal_towlower=yes; + ;; + solaris*) + use_internal_towlower=yes; + ;; +esac +fi +if test x${use_internal_towlower} = xyes; then + AC_DEFINE(USE_RI18N_CASE, 1, [Define to 1 to use internal code for `towlower' and `towupper'.]) +fi + R_C99_COMPLEX R_FUNC_CTANH @@ -2662,7 +2762,7 @@ R_OPENMP_SIMDRED ### shell for use in scripts: we allow R_SHELL to set the script, -### since some AIX systems have zsh as sh. +### since some AIX and macOS systems have zsh as sh. : ${R_SHELL=${SHELL}} AC_SUBST(R_SHELL) AC_MSG_RESULT([using as R_SHELL for scripts ... ${R_SHELL}]) @@ -2934,6 +3034,7 @@ Fortran fixed-form compiler: ${r_f77_compiler} Default C++ compiler: ${r_cxx_compiler} + C++11 compiler: ${r_cxx11_compiler} C++14 compiler: ${r_cxx14_compiler} C++17 compiler: ${r_cxx17_compiler} C++20 compiler: ${r_cxx20_compiler} diff -Nru r-base-4.0.3/debian/changelog r-base-4.1.2/debian/changelog --- r-base-4.0.3/debian/changelog 2020-10-10 17:24:17.000000000 +0000 +++ r-base-4.1.2/debian/changelog 2021-11-02 21:23:29.000000000 +0000 @@ -1,9 +1,115 @@ -r-base (4.0.3-1.1804.0) bionic; urgency=medium +r-base (4.1.2-1.1804.0) bionic; urgency=medium - * Compilation for Ubuntu 18.04.4 LTS + * Compilation for Ubuntu 18.04.5 LTS * debian/control Changed dependency to generic tcl-dev and tk-dev - -- Michael Rutter Sat, 10 Oct 2020 17:24:17 +0000 + -- Michael Rutter Tue, 02 Nov 2021 21:23:29 +0000 + +r-base (4.1.2-1) unstable; urgency=medium + + * New upstream version released this morning + + * debian/control: Set Standards-Version: to current version + + -- Dirk Eddelbuettel Mon, 01 Nov 2021 06:00:06 -0500 + +r-base (4.1.1-2) unstable; urgency=medium + + * Binary rebuild for unstable following Debian 11 release + + -- Dirk Eddelbuettel Sun, 15 Aug 2021 08:53:59 -0500 + +r-base (4.1.1-1) experimental; urgency=medium + + * New upstream version released this morning (still using 'experimental' + while Debian is frozen) + + * debian/control: Updated versioned Build-Depends for gcc, g++, gfortan + to 4:4.9.2-2 (in oldstable); removed the one for liblapack-dev + + -- Dirk Eddelbuettel Tue, 10 Aug 2021 06:34:32 -0500 + +r-base (4.1.0-1) experimental; urgency=medium + + * New upstream version released this morning + + -- Dirk Eddelbuettel Tue, 18 May 2021 05:56:56 -0500 + +r-base (4.0.5.20210511-1) experimental; urgency=medium + + * First rc release (r80282) build of R 4.1.0 expected for May 18 + + -- Dirk Eddelbuettel Tue, 11 May 2021 06:57:15 -0500 + +r-base (4.0.5.20210504-1) experimental; urgency=medium + + * First beta release (r80259) build of R 4.1.0 expected for May 18 + + -- Dirk Eddelbuettel Tue, 04 May 2021 10:17:55 -0500 + +r-base (4.0.5.20210426-1) experimental; urgency=medium + + * Second alpha release (r80229) build of R 4.1.0 expected for May 18 + + -- Dirk Eddelbuettel Tue, 27 Apr 2021 07:19:36 -0500 + +r-base (4.0.5.20210419-1) experimental; urgency=medium + + * Initial alpha release (r80191) of R 4.1.0 expected for May 18 + + -- Dirk Eddelbuettel Mon, 19 Apr 2021 22:22:30 -0500 + +r-base (4.0.5-1) experimental; urgency=medium + + * New upstream version released this morning + + [ Patch tested in informal PPA prebuilt and also sent upstream ] + * debian/icon-class-patch/R.desktop: Updated with StartupWMClass=R_x11 + * debian/icon-class-patch/Rlogo.svg: Copy of the SVG logo for R + * debian/icon-class-patch/rlogo_icon.png.mpack: Updated with new log + * debian/patches/series: New patch + * debian/patches/x11-device-window-grouping: New patch thanks to Ivan Krylov + * debian/r-base-core.dirs: Create 48x48 icon dir + * debian/rules: Install svg logo too + + -- Dirk Eddelbuettel Wed, 31 Mar 2021 06:44:41 -0500 + +r-base (4.0.4-1.2010.3) groovy; urgency=medium + + * debian/r-base-core.dirs: Also create the directory + usr/share/icons/hicolor/scalable/apps for the svg logo + + -- Dirk Eddelbuettel Tue, 23 Mar 2021 11:05:17 -0500 + +r-base (4.0.4-1.2010.2) groovy; urgency=medium + + * icon-class-patch/R.desktop: Add 'StartupWMClass=R_x11' + * icon-class-patch/rlogo_icon.OLD.png.mpack: Renamed old icon + * icon-class-patch/rlogo_icon.png.mpack: New 48x48 png from svg + * icon-class-patch/Rlogo.svg: Copy of official logo + * debian/rules: Also install Rlogo.svg in 'scalable' icons dir + + * debian/patches/series: Deactivate unneeded grouping patch + + -- Dirk Eddelbuettel Tue, 23 Mar 2021 10:27:43 -0500 + +r-base (4.0.4-1.2010.1) groovy; urgency=medium + + * PPA build on Ubuntu 20.10 "groovy" + * src/modules/X11/devX11.c: Apply patch by Ivan Krylov (posted to r-devel + on 2021-03-22) enabling grouping of x11 plot device windows + + -- Dirk Eddelbuettel Mon, 22 Mar 2021 21:33:09 -0500 + +r-base (4.0.4-1) unstable; urgency=medium + + * New upstream version released this morning + + * debian/r-base-core.postinst: Improved logic for /usr/local/lib/R + creation (Closes: #982069) + * debian/watch: Updated + + -- Dirk Eddelbuettel Mon, 15 Feb 2021 06:58:58 -0600 r-base (4.0.3-1) unstable; urgency=medium diff -Nru r-base-4.0.3/debian/control r-base-4.1.2/debian/control --- r-base-4.0.3/debian/control 2020-10-10 17:24:17.000000000 +0000 +++ r-base-4.1.2/debian/control 2021-11-02 21:23:29.000000000 +0000 @@ -2,8 +2,8 @@ Section: gnu-r Priority: optional Maintainer: Dirk Eddelbuettel -Standards-Version: 4.5.0 -Build-Depends: gcc (>= 4:4.1.0), g++ (>= 4:4.1.0), gfortran (>= 4:4.1.0), libblas-dev, liblapack-dev (>= 3.1.1), tcl-dev, tk-dev, bison, groff-base, libncurses5-dev, libreadline-dev, debhelper-compat (= 11), texinfo (>= 4.1-2), libbz2-dev, liblzma-dev, libpcre2-dev, libpcre3-dev, libcurl4-openssl-dev | libcurl4-dev, xdg-utils, zlib1g-dev, libpng-dev, libjpeg-dev, libx11-dev, libxt-dev, x11proto-core-dev, libpango1.0-dev, libcairo2-dev, libtiff5-dev, xvfb, xauth, xfonts-base, texlive-base, texlive-latex-base, texlive-plain-generic, texlive-fonts-recommended, texlive-fonts-extra, texlive-extra-utils, texlive-latex-recommended, texlive-latex-extra, default-jdk [!arm !hppa !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386] | openjdk-10-jdk [!arm !hppa !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], mpack, bash-completion +Standards-Version: 4.6.0 +Build-Depends: gcc (>= 4:4.9.2-2), g++ (>= 4:4.9.2-2), gfortran (>= 4:4.9.2-2), libblas-dev, liblapack-dev, tcl-dev, tk-dev, bison, groff-base, libncurses5-dev, libreadline-dev, debhelper-compat (= 11), texinfo (>= 4.1-2), libbz2-dev, liblzma-dev, libpcre2-dev, libpcre3-dev, libcurl4-openssl-dev | libcurl4-dev, xdg-utils, zlib1g-dev, libpng-dev, libjpeg-dev, libx11-dev, libxt-dev, x11proto-core-dev, libpango1.0-dev, libcairo2-dev, libtiff5-dev, xvfb, xauth, xfonts-base, texlive-base, texlive-latex-base, texlive-plain-generic, texlive-fonts-recommended, texlive-fonts-extra, texlive-extra-utils, texlive-latex-recommended, texlive-latex-extra, default-jdk [!arm !hppa !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386] | openjdk-10-jdk [!arm !hppa !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], mpack, bash-completion Vcs-Browser: https://salsa.debian.org/edd/r-base Vcs-Git: https://salsa.debian.org/edd/r-base.git Homepage: http://www.r-project.org/ diff -Nru r-base-4.0.3/debian/icon-class-patch/R.desktop r-base-4.1.2/debian/icon-class-patch/R.desktop --- r-base-4.0.3/debian/icon-class-patch/R.desktop 2020-04-03 14:27:57.000000000 +0000 +++ r-base-4.1.2/debian/icon-class-patch/R.desktop 2021-04-27 12:17:10.000000000 +0000 @@ -8,3 +8,4 @@ Terminal=true StartupNotify=false Categories=Graphics;Science;Math; +StartupWMClass=R_x11 \ No newline at end of file diff -Nru r-base-4.0.3/debian/icon-class-patch/rlogo_icon.png.mpack r-base-4.1.2/debian/icon-class-patch/rlogo_icon.png.mpack --- r-base-4.0.3/debian/icon-class-patch/rlogo_icon.png.mpack 2020-04-03 14:27:57.000000000 +0000 +++ r-base-4.1.2/debian/icon-class-patch/rlogo_icon.png.mpack 2021-04-27 12:17:10.000000000 +0000 @@ -1,6 +1,6 @@ -Message-ID: <20222.1340326361@max.nulle.part> -Mime-Version: 1.0 -Subject: logo +Message-ID: <276199.1616512769@rob.eddelbuettel.com> +MIME-Version: 1.0 +Subject: logo file Content-Type: multipart/mixed; boundary="-" This is a MIME encoded message. Decode it with "munpack" @@ -10,90 +10,54 @@ Content-Type: application/octet-stream; name="rlogo_icon.png" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="rlogo_icon.png" -Content-MD5: nf6LO2ghBfua60YdcykYTg== +Content-MD5: /6nMarRR46H2lStPyiS3fg== -iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAAZiS0dE -AAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wGBhIrB/S1w1wAAAAZ -dEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAQs0lEQVRo3u1ZeXBd1X3+fvfc -5T29XftibbYk7/tGjA1JmCR1CCFNU4Y0paTphOApBJLJwkzp0JSsFEpIYzBpSWESJkDYXO+A -sQEbWZJleZVkLZZsLU+W3tPT2+92zukfthzjQDCUTv7xN3Nmztw755zfd377vcAVXMEVXMGf -E/RhF/74Z/eTaeeprLBKTeemGizbXiS42ygha4QQpZAIQSEv55yE4BYkJbngZyHFEIF6VU07 -phnek6PDp23D68XGhzfJ/3cCDzz0U0YKMUjMdBx7vZBivZRyLQAvABC9czsiguu6kFJCSgHO -BVzB4boOuOtCcGEJKZqlxA6V2PasmeslIvdXG5/gHymBB/79JxpjagkX/NOCiw0ScpVCChRF -ARFApMhzczrH4TwRRVHgui4gJYSQ4IKDcw7BheTchePYZDs2LMuCbdvgnB+WwKNSiJ22Y489 -9Z9PO/8nAj9/7EFF2LJGSPFFIeW3FUWpUhkDEYFIkVIKcl0XgAQpDCpjYIxdIADg/O3Ld8yl -kBBSwHVdOI4D13Gk7dhkmiZyuSxs2x4XUj4iOH+OKdrAr3/1JP/ABB755cNhIfhnpRT3KozN -1XUdBJIud5HJZiiTTkMC8BX4EQj44fUWnLtx7sLMm8jnszKXy5NpmrAdG5xzSCFARFCYAsZU -aJp2fuiSKQoEF7AcG/l8jtLpNCzLPMW5uB+QW55+8tn4ZRP4xaMPzxZc3E2k3O4t8IAxVZpm -HmfHz1IymUTA70d5WQWKS0rg9/nhOA7GJ8bl2FiU4vE4ElOTyOVyMPMmd1w3J4UwAdgS4Iwx -qaoqU1VVY0zxMMYKNF3XPB4Dfl8Afp8fTGXSdR1k0hmaSiZh29ZTnLsPPf+7zcfel8AjGx9e -Dcifaqr28VA4DMdx5PDwEI1GRxGJRDBr5izMqKqG3+9HIpGQA4MDGBg4RYOnBzExPm6nUumh -utr6EoUo3tDQWOn1eqNer3fCMIwkU1VLIZJCCMPlrt913GLTzBcmkgk3b+ZZJpOBaeaNQCAY -iITDMDwemKaJeDyObDbT4jju9//nhW1vvCeBX276xWoh+CbDMJaUlpTJidg4uk92k2PbmDdv -AebMnovCSCESiUnZ1dOFE8ePU1dXF86cOTPY2NCkrFqxMlxRWdFxzdprmxoaGvtVVVt7GTEi -B2BwaPiM3tvXw7pOdtHw8LB3aPg0VFUtLCoq1ohIxuMxSiQSPY7j3rZ98643/ojAxsf/o14K -8Zxu6Ctqqmtlb28PHTtxDIWFhVi1YjVmN82BlBI9vSdl28FWamlpQSKRyCxZtNRcuXLVyMpV -67KzZjUuBuBzXYdzzpngwrmcSEgKMcaY9Hk9GV+BPmTms9Te0V508FC7PHr8CDM8RnGBx0vj -ExOIxWInIOVf79jyatcFApt+vUl1LOs3mqbdPGvmLNnX10stbQdQU12LtVdfg6bGJqTTabR3 -HJR79u6hA83NVlFR8dA3vr7Bc+MNN3pCoVDx7rdP9gxHE1UA9EvzweVEc5e7Mp/LpBmJ/Iyy -cPaaNUtyfp9W1tzaHNv16g4lMTk5XzcMGh4eRiwW21ZZXv6l3z71rKkCAHeczzOm3FxaWoap -qSk0H3gb1dU1WHv1OiycvxCJxCTaDrbKrdu30oHm5vjVH1t75gf3/at37tx5xQA8ANB5cjDn -DZSwgd4T2tTkBCA/QGIlgiQCY3qRLxBGZ8/o+Ct7WuT661aOr//U2tL5c+brTz/zm60ne7uv -raysDCaTyeuHR0a/DOC/2cu/204pM/6sYXjK6mrq5Asv/Z4CwQBWrViN1SuvgmlZOHSkXW7Z -spn27dsfW7f22uObNj4eqampaQKgSSklEVHb0f6z4UhZUVvz65ovWAhN94JpBhRNBxQNxHQo -qgFF1c8PDYpqgKnnnzMNgrsyER+DbaX9xIzi1oNHDdvMDy5furBmxbKVBdlc9u3x8bF6XdfV -aDS66JOfWveYOpLquwqghZFwBJ1dnZTNZjF/3gIsWrAYuqaj+2QX9u/fR22tB601V109vunR -xysj4cgsKaUCQNIFeyEIKWGZJgrL6qCpOuT5pDy7oQZSKnDcP+QjhQhCCOTyeWRzOeTzFvL5 -PAXyWZj5lMyk4mCqFnny6ZfqF8ybFVu0YE7dTV+8uSCXzb7W29/72VMFp+r7evo/oXLO16uq -hnA4Irft2EKlZWWoq6tDRXkFJqcm0dvfK9va2qiyoip1z/fu8UbCkVoAlwj/Do+EQgpIUQAJ -1NWUy6EzA3T4YDPeYVRSQgLwB0IoKqmQhsdHuu6Bt6AMnBeRtyCARDwqoyOy5JnnNh+vr50R -DgT8pbf8zVev/vED9x+ZMWPG0qNHjt2gCiGWAxKpVJKSySTqautQWVEFpqqIxSbQ29tD0Wg0 -c/NNX5YrV66qAaBMm817mbS8aJacmqRdW34vj3e8mTU8/u7z5HFuD4UKS8pnVNfPLa2pbZRe -nx8FwWJiTEcgXApFAeITY9jxym5suO1vEQj4wRiLfPYz1595cfML6DjUsUwVQlQKIRGLTUDT -NPj8fgQDIbiui2QqieHhIUTCEXP5spV5AOz9hL/UOdPJKZhmXlTPqDy+Z/eOlaZp8ou0pU4l -050PPfrM2wpTvyC5IydjYyitqIUUEr5AmALBMMx8rtYyTWN63ZLFy8w9b77uKAqrUF2XS8Y4 -ppJJMIWBMRVMVcE5h2VZyGSzqKys8tfXz/ScL5E/UIyUkCAQNFVzPR4P83g87OL3oVBw/tdu -+cvw5t2d/XYuMcvOZkAgCClQ4PFCNwxpW1bAPec/EgAxxlZ6CwpOK4pCCud89FzNLgACuOPC -tu0LFaSqamCqClVV5EfdTclzh5ChGywUjLgqU+DY9gXihscAd2wy85kkEVwAdH6NopAiTNMc -VYTgHbZjA4BUFIZsNotEYhKAhMcwUFZaiqmpRCoajcYuOvTDtE40vX4aAIhzkRtPmHowFGhk -xGHbNogIGmPw6IZMxM8im072Goaev8gCDmQymSozbx5SpZRbLdO81+PxUDAYRDKdxGh0BDPr -ZyIYCqO2thatba16V1en+xefWQ8iosv1AwJgWTa8Pj/pIX/97v2dUrjckeeaNXJcnh4YTY1r -nmAd7AnlzNCgLKucR5xz1NVWyOjwIHUebcV1n1yXjUQiYnrfgcFTrLu7m3TN2Kree899Lff+ -yz3HLIsWRiKFMh6P0fDIEEZGRxAMBFFTUyubmhrD7YcP5gcHB/rq6uobplV5OSTypilnNc1X -IsXllfta+0AK6efbG6hMjVRWlUcUmcLuvbukJ1hNlTOqUVkelo5t0us7X8DQQOf4fz36s+JQ -KDTtxNZre15NHzlydPDj137ytXOlBBf3uTz/otfjpQKvV45PjFN3dyeWLl2OyooqWrF8JXbu -2hH49VNPRO/75x+cZgqrlVJeFglfsIROn+pGfHwIKlNBCl2wKCkFWt+KQ1U1rLvuc6iubZAQ -NnV1HqUdm5+VfV0t7re/dee+VatXrZ0uWfY3v/Vsa0vrlyYn4nc8vmkTZwCw78393VetWbVY -CD7X4/GSbdnSsk0CCEVFhdB1XaqqZrS2tQjbdqYWL1ysK4qi07m+UhIRtR7pP+v1hYu6T3Ro -pZUzwRiDlBKKwtDQtAClFfUoKqtBcXkdIiXVCBVVIVA0AwuWfAyrr7panjjWQbt3bqZXtr7o -vPnayxkrMxb70Q9/0HfXXXetURQlDCA9Eh1JvfjyC8u3bdu+b+H8pd/r7u6U6oWIQPKOfD7f -yIVYYOg6stms7D/VR1JKhMMRmjtnrpRCVL26e5cnb+a6b/ny31WEQuEaIlL+KH9dhIC/QFaU -BSg2YYO757Kv6yrgUpe2K4hzjr2v76LXtj0nDQ1uJOzvvv22r0TvvOPOIr/fvwiAYTt2sr+/ -t/OZ5343Z9v27YNSYsNLLz3PAeACgYd+8sjonXdvuDWbzf7W0fW5Ho8HmUxGDgyeoorySvj9 -PmpoaJC6rhe1tDbPTSWT4zdcf+PYnNlzPJqmFyrvYUqRsI9e3blNtry1iytMn1IYY6XlM4J1 -s+axopJSmZ6SZNsO1l13I2Y1NGbra8qdJfNqZno8BeUAUpOTcdba3nLq9T27V+/f13w6Nh7/ -+umBM/3T+78jqbQeOBhdsXp5m2VZ813XrQZAggtpmXkSQkDTdPJ6C2QoFPKOjA4XtR9qy8Ym -41M+r4cf64lmg6GS4u4THeq0CQEEM5fEW69tkbFo7+kNt91qzWmoyfsKPMlEMutTmK5yx5IA -YHgMymRynsHTYxV73moT42dHRsx8Irtt5xZ77949Cw8caOmIjoz+45nB4TcvlpldemMHW9pH -lq5YvM+27ZBj202242icc9i2JTnnpDKVdEOXwWAQjLFAX19v4fETR7KpHAtWzpjp7z7RoVwg -QIB0TQz2dYtw0HP00Y0PL7t6zVWFn77umqRlO/HuvmFPYWGhnsvnSUiCZeakrjO4ruvrOHwk -3NnZXtHfdzLU3n7o+YnxiW+NDo+1Xiqv+m5qf+KxJ3v+4fZb77As84BlWV/N5XKrPOk0pdJp -BHx+6fP7Sdd1hCOF0u8PUj6XKpsyxXQTIy9uVc8bFplmrvDUQF+X47iF2Wy6x6tbrqG6oVze -9IVCIRi+QuhGAU1OjMBxuTS8Af30mV6Mjfb8MH72zMOTk3bq3WRV3yv8PbHpqTSAx75y6037 -HMf5nGmZN6VSqSWThkEFBQXw+Xwo8HphGB54vAXQuPHen2oIpGrKrG07t8YYU7VEYrLY6/UW -VZZokfGkDV3zIj01gZKKmSgprwVjCrmOAzOXxvySyrMP/FtntqlaeVc52fslomNHToyvWbOs -OZM193HOOyzLctOZdHUyOaUnkylKpVPIZtJwEcSM6kbZfeIw/cEHAEU6sr/nBEFk9fqZM8Kp -VNJr23bF5GQ8HI0Os6mpDPzBMugak5Ztk8frg6oZcOy8dByHcrn0sv1v7Hr1xLG2sx+KAAC0 -Hzwqu453j3cd7z7UNKdhn+u4LwvO2yzLnMxks3oiHi9hejFmNiygk52HZWnlTLqIAPpPHqeJ -swMwzTQGBgYxMDCIoaEhjI2NdgpJXUUldYWkkCEEh+H1g6kaiEBScqRTyYDgrr5o6Yq9ncfa -rUtlUz5oTbb5+a0jW1/a0RIIBJ9wXf4d27JvOBs92RSMVO1SFMV9FxMiANKy3IHYROyHqWT6 -m6Zpfj6XzS6dmoxdX1xUcrtjmy9zASgKZGpqAiDAFyiEx+uTxaWVsGz+NUXR1rUcPKhctg+8 -H55+6hkOIHZ+4BNfCJ4lUqQQHEIIcCEACZCUAJHUNU/3jeu99+3YDXX3K3vs6X16ujbhG99+ -8PfctT5H0CKMQTqWSYqqI1RYTlY+Kz2+EKWzqR//7MEnWqbP+9Aa+FOtCwDU1DdidmM95jbW -Y25TPSqrqs4RIXK/8/094mLhpzF3ds0bZj7/LKAgFA6horQQ85rqsWjBfKz62FosWbYKIG2R -wvC1v7/tbv0j0cCl0HSP0tb6ljJ4qheD/T0X4qeUErZj0Z/6En73N25K3fG9n2/OZpLXDw/1 -V+cyU1AUNt31kISEy10kkub9gWBwM4CTHzmBRLS/93DbnsP5XNr4oyiqML2ouHjkT63/1nfv -2vvdOzdsjI4M3JLLpnPvVpmoqq5bxaG/uv2b//Tgpl/8yL7yh/AKruAK/vz4X/Kov7B8LyQX -AAAAAElFTkSuQmCC +iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAD6AAABQwGE+loq +AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAACXFJREFUaIG9mXtwVPUV +x7/n7iZIeMYyEhQ1YFHKwzK2INr6oLwGCJGXW5IgAq3soE5a0s6oM7Zu7dDRTqsCRQ0liCmP +cS3SGEGhaCCEYKNVR5BqWyCIQhhISIA8cHPPt3/s3s3d3Xs3Gx49Mzv3/n73/n77+Z57fuf8 +7q7gMlgwGPRcfXXWcBoyCtTBAAeTuIpkJggC2qiKZoJHoDgE4OOamqrPA4GAXup3y8UOrKio +6AdP2gyqziRxN4meBAESJEEifI7wOcn4dhOI96jcYpqt5TNnzmz8vwiorKweY1ILCcwB2c2C +ZZgYSdskwroY325RcKOhWDFjxrT9V0TAe1VVww2V35HMtSBivO0I20mbiPRF2wriNRJPzp6d +c/iyCPjwww/TmlsvFJF4mmQ6I16zw7t739HbCQJgGxdpt1Lx+4aGumV+vz900QIqKt4fKF7d +THKMs7e74n1n+Jh2VEB03B4g5PP5fHVdFlBZWT1Gwa0E+sV4O26hdtX7Dt52b5MQ4CuR9sk+ +n+9gygIqK6vvUbCcQK8OWBdvp+J9J29H2x2wdu9HxQMgcVrASXl5cz7uVMDu3dUjKawi2Tsh +1l297+Bt5XkB95H6hULqoTytwnqYzKBIb1J7k5oFGreSeivBns7w0fZJj2GOzcvLq3UVUF1d +ffU37fyY5A2x8Cl6X3mEgjU0dWfPnt0+GjduXLtbiNotEAgYQ4feeouIzCGZT3AobE/JelIA +Pmtu7j7G75/e4ihgV+XeIMn7Hb2d3PsVQn2+pmbf1stRXTdt+uvtCjwFckp8UVRy1YL5eY8m +CNi9uypXgbKU02R4wtNQ+fnUqRM2XCq0k23Y8PospRaD6NfxNEABf/Dgg/n7AMAAgIqKCq8C +z9oBnT8xC7McGhp2peABoKDg/jeoMobk5zYOMU3+0bpHAGDXrj33KxBM2fvKP9XU7P1ZfLgM +Ldx9JylvRdYfACt2wx0avdCxpsJfR9ssbKDqJyKy+XBDYxCv+8z169cPbDdlLyk3WGymcNxD +Cx/YZQCAQh5N2fvg2ilTJhQ6xbop8JLIBJAJMJNEJsFMAplKRvudj9ExN0FkNoGN2Zm9D964 ++J3b5s2b9xXIfJCmxWMoHgEAo7KycgCpd8WGh5P3CVJrzp89s0REGA8PAIjmHCY92h1uf1qJ +T0VuFmDPDf63xy9YMG8vyTVWvVDltOLi4gyjvV2mkBTrQmKsR9shmvyJz+f7xhG+A8kGEA8J +B0g3+Gh/hig2Zj+8NQvwLCNpRu7t7vGkjzdM0dGJwB2V0XZtfU7O5APJ4Z2AU4JE4tOKsWsY +8jy9aFHeMRLbLT7TxGgDipGuadL2AbEidfhEyORHJ/HxgrXg2sXlGSp82xYZI71KZsE1z0cX +9aGcaZM/SUWAe9xfckhleCh3ieo/LEZVDPCC7O1SpGxtfT81+HiwhHNV5ZpYgQCAQSTHAzAS +Q6rDDBojyG/WkGkWWx8vSbVtCZy8D0AOdQ3e1ZPmkeIJfqcx2Q/tWADhK0nnAvr7/f6ml14q +aSfhFaFpgDwbG+tx8CSUbL1UeJfFGbXa66pLAdYnCymS3cP9aI3wNRkEj7kVMDC6keqZGr5V +CBKhmZwfCAQUlOPJ1gOB5kjKzwh36jGD5Kdu3rd9hqQmoMNcUqm7jEDAIHRA7P2xZogcLykp +ySTpCRcz7DcI7HNOmzHr4k6SKf6C0Vm+d7Ybj4+dC6BfsrlM0zzQ1ia3WKyA7vWme7C9zWQI +ZFo43ccJCLcHbtny1lgA+zrFd4z7KLkn27/jsfBpx1aKiuEg5zoLjjrifBp7VQN1D0cy5JmG +hpNV3okTJzaVb31nK8kZVvjEeD/6IiNLUxHgFvcRGI8Az0QymxOkCzwAcGPtunFtuK04Jxw+ +EgwEAu0GANDUlY4L2VYflDo7GHzjjs4FWMBd20K4xX3k3nqvep5avvzlIQreSwKqWAVEXmhy +c6e+R+oeh9i3rw2DkJKysrJelwM+yeiE2kGRJbXrptUJ8RsSQuobRUX+/VEBAGCK8QuSag8d +xosBv9N6wfxLRUWFNxmA8zFepLOwuP4Wgvlfl+S8vnz5y1MJziV5QZWPWfNEBczOnfIByT/E +beDiwgqg8r4TdfUbtm3b1s0dzOm8SyHVBuWrphjDvl6bG1y5sngoyFcJCKlPFhU98t8EAQBg +hlp/BbLGMa0iRozvzJnz727YsHmwfXy77YXmEuK+joKCY69MX3CiZNrR559fPUpN3UmyH8nt +TU2nnrPfnJDbN5aV9feG+D6IbHcBFgxbCPz6qnR5wefzmYP8794toruTxX3qwlg5d0jDjoHd +W54A0YOQ/R5P6IeFhYVnkwoAgGCw7NsK3QnyRgfvh0PLtkZAHlDFihc+6nP0XChte+zWOQay +gZRJ4bY5HMAqgD3dRPVJN7FgyEl4RA+KeCYsXeo/Ec/qWl03bfrb9RBzG8kRCd63LfLoOgFx +uDH93Pp/9e3l7mE9efTPU7Os77j+p9uWgHzRKaSs89uvafry3uvOfL+wsPCUE2fS7UFpaWkP +jydjNYT5SbwfFXD0bBpKD2a6wBNphp4r+u6JZaT0FWEf02T/tV9ck3O61ZPuNobgyXT2ya5d +N67NidFw6rRs/vz5zQUFcwoEmkvy6/isZIe3xMSD2I/pHvYC8AzAx1W5RISz7uzf5Aofafa/ +gLMPuDEmFWBZfv6Py9tD6SNILiPYHF8fYhd3rMWnVWucJX5I7zb08HZswxO3EICAv0Qg4Mia +kgAAWLhwZuP8+XOfTPMym4onQNYmrAtbxnLKLDGiI9cFiqF9W+rjxVpzRI43Dzg86r5LEmBZ +fn7+6YUL8585evQ/N5km7qDgWYZrR8geMu7pkgDZRnIvqb9Vle99UN93FMB2O3SCI0Qfd+K5 +6P+J4+2554Ldd53qNu/T+m6rY2LYBuMRNi4d+eWPGhq+9VkgEPsD2cBFb24hOcMRPjKXEHcd +L51VdUUEAMAg//a7SboWMhInj5VMy3Iae+2i8klCTVZDAPDNutLZMaHU5RDqzFKptE52fG3O +30n82zaT03F6VkFwmH3cZRfgDt+ZCQUojh2TMJfQMIrsoy6zgGR/iXWuIg26FmCLUyq1nc/r +N3fTtVbfFXgC7qGjnTyK2nUzG5V8rWOejrG2Obt50r2F1j1JXky6btou5yj4Zzg3aCIApaGz +OUQ9L8Iw74kMAgRnIldg/RBA5WgsLk7Dan/of8Bay4NRSCQYAAAAAElFTkSuQmCC ----- diff -Nru r-base-4.0.3/debian/icon-class-patch/Rlogo.svg r-base-4.1.2/debian/icon-class-patch/Rlogo.svg --- r-base-4.0.3/debian/icon-class-patch/Rlogo.svg 1970-01-01 00:00:00.000000000 +0000 +++ r-base-4.1.2/debian/icon-class-patch/Rlogo.svg 2021-04-27 12:17:10.000000000 +0000 @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff -Nru r-base-4.0.3/debian/patches/series r-base-4.1.2/debian/patches/series --- r-base-4.0.3/debian/patches/series 2020-04-03 14:27:57.000000000 +0000 +++ r-base-4.1.2/debian/patches/series 2021-04-27 12:17:10.000000000 +0000 @@ -1,3 +1,4 @@ # gfortran8-changes # ppc64_change # powerpc_change +# x11-device-window-grouping diff -Nru r-base-4.0.3/debian/patches/x11-device-window-grouping r-base-4.1.2/debian/patches/x11-device-window-grouping --- r-base-4.0.3/debian/patches/x11-device-window-grouping 1970-01-01 00:00:00.000000000 +0000 +++ r-base-4.1.2/debian/patches/x11-device-window-grouping 2021-04-27 12:17:10.000000000 +0000 @@ -0,0 +1,54 @@ +Description: enable grouping of x11 plot windows + Patch posted by Ivan Krylov to r-devel today which permits multiple x11 + window to be grouped under a common root -- by defining that common root +Author: Ivan Krylov +Origin: r-devel list +Reviewed-By: Dirk Eddelbuettel +Last-Update: 2021-03-23 + +--- r-base-4.0.4.orig/src/modules/X11/devX11.c ++++ r-base-4.0.4/src/modules/X11/devX11.c +@@ -105,7 +105,7 @@ static Cursor cross_cursor = (Cursor) 0 + static Display *display; /* Display */ + static char dspname[101]=""; + static int screen; /* Screen */ +-static Window rootwin; /* Root Window */ ++static Window rootwin, group_leader; /* Root Window, Group leader */ + static Visual *visual; /* Visual */ + static int depth; /* Pixmap depth */ + static int Vclass; /* Visual class */ +@@ -1611,6 +1611,16 @@ X11_Open(pDevDesc dd, pX11Desc xd, const + PropModeReplace, + (const unsigned char*) rlogo_icon, 2 + 99*77); + ++ /* set the window group leader */ ++ XWMHints * hints; ++ hints = XAllocWMHints(); ++ if (hints) { ++ hints->window_group = group_leader; ++ hints->flags |= WindowGroupHint; ++ XSetWMHints(display, xd->window, hints); ++ XFree(hints); ++ } ++ + /* set up protocols so that window manager sends */ + /* me an event when user "destroys" window */ + _XA_WM_PROTOCOLS = XInternAtom(display, "WM_PROTOCOLS", 0); +@@ -2095,6 +2105,7 @@ static void X11_Close(pDevDesc dd) + if (numX11Devices == 0) { + int fd = ConnectionNumber(display); + /* Free Resources Here */ ++ XDestroyWindow(display, group_leader); + while (nfonts--) + R_XFreeFont(display, fontcache[nfonts].font); + nfonts = 0; +@@ -3084,6 +3095,9 @@ Rf_setX11Display(Display *dpy, double ga + #endif + screen = DefaultScreen(display); + rootwin = DefaultRootWindow(display); ++ group_leader = XCreateSimpleWindow( /* never mapped or visible */ ++ display, rootwin, 0, 0, 1, 1, 0, 0, 0 ++ ); + depth = DefaultDepth(display, screen); + visual = DefaultVisual(display, screen); + colormap = DefaultColormap(display, screen); diff -Nru r-base-4.0.3/debian/r-base-core.dirs r-base-4.1.2/debian/r-base-core.dirs --- r-base-4.0.3/debian/r-base-core.dirs 2020-04-03 14:27:57.000000000 +0000 +++ r-base-4.1.2/debian/r-base-core.dirs 2021-04-27 12:17:10.000000000 +0000 @@ -9,4 +9,5 @@ usr/share/R/include/ usr/share/texmf/tex/latex usr/share/icons/hicolor/48x48/apps +usr/share/icons/hicolor/scalable/apps usr/share/applications diff -Nru r-base-4.0.3/debian/r-base-core.postinst r-base-4.1.2/debian/r-base-core.postinst --- r-base-4.0.3/debian/r-base-core.postinst 2020-04-03 14:27:57.000000000 +0000 +++ r-base-4.1.2/debian/r-base-core.postinst 2021-04-27 12:17:10.000000000 +0000 @@ -40,17 +40,24 @@ #fi # edd 03 Apr 2003 cf Section 10.1.2 of Debian Policy + # edd 06 Feb 2021 #982069, with a nod to Python's debian/PVER-minimal.postinst.in + if [ -e /etc/staff-group-for-usr-local ]; then + perm=2775 + group=staff + else + perm=755 + group=root + fi if [ ! -e /usr/local/lib/R ]; then - if mkdir /usr/local/lib/R 2>/dev/null; then - chown root:staff /usr/local/lib/R - chmod 2775 /usr/local/lib/R - fi + mkdir -p /usr/local/lib/R 2> /dev/null || true + chmod $perm /usr/local/lib/R 2> /dev/null || true + chown root:$group /usr/local/lib/R 2> /dev/null || true fi - if [ ! -e /usr/local/lib/R/site-library ]; then - if mkdir /usr/local/lib/R/site-library 2>/dev/null; then - chown root:staff /usr/local/lib/R/site-library - chmod 2775 /usr/local/lib/R/site-library - fi + localsitelibrary=/usr/local/lib/R/site-library + if [ ! -e $localsitelibrary ]; then + mkdir -p $localsitelibrary 2> /dev/null || true + chmod $perm $localsitelibrary 2> /dev/null || true + chown root:$group $localsitelibrary 2> /dev/null || true fi #if [ -x /usr/bin/mktexlsr ]; then diff -Nru r-base-4.0.3/debian/rules r-base-4.1.2/debian/rules --- r-base-4.0.3/debian/rules 2020-04-30 20:36:23.000000000 +0000 +++ r-base-4.1.2/debian/rules 2021-04-27 12:17:10.000000000 +0000 @@ -616,10 +616,13 @@ ln -sv R/lib/libR.so . ) # edd 21 Jun 2012 add icon and desktop file from Philip Johnson's patch + # edd 23 Mar 2021 add svg logo and updated R.desktop with StartupWMClass hint (cd debian/icon-class-patch && munpack rlogo_icon.png.mpack) install -m 0644 debian/icon-class-patch/rlogo_icon.png \ debian/$(corepackage)/usr/share/icons/hicolor/48x48/apps - install -m 0644 debian/icon-class-patch/R.desktop \ + install -m 0644 debian/icon-class-patch/Rlogo.svg \ + debian/$(corepackage)/usr/share/icons/hicolor/scalable/apps/rlogo_icon.svg + install -m 0644 debian/icon-class-patch/R.desktop \ debian/$(corepackage)/usr/share/applications rm debian/icon-class-patch/rlogo_icon.png diff -Nru r-base-4.0.3/debian/watch r-base-4.1.2/debian/watch --- r-base-4.0.3/debian/watch 2020-05-28 17:26:27.000000000 +0000 +++ r-base-4.1.2/debian/watch 2021-04-27 12:17:10.000000000 +0000 @@ -1,5 +1,3 @@ -# format version number, currently 2; this line is compulsory! -version=2 - -# This is one format for an HTTP site, which is the same as the FTP format -http://cran.r-project.org/src/base/R-4/R-([-0-9\.]*).tar.gz +version=3 +opts="uversionmangle=s/-/\./" \ + https://cran.r-project.org/src/base/R-4/R-([-0-9\.]*).tar.gz diff -Nru r-base-4.0.3/doc/AUTHORS r-base-4.1.2/doc/AUTHORS --- r-base-4.0.3/doc/AUTHORS 2018-09-25 08:43:49.000000000 +0000 +++ r-base-4.1.2/doc/AUTHORS 2021-10-15 22:15:01.000000000 +0000 @@ -18,7 +18,7 @@ Uwe Ligges Thomas Lumley Martin Maechler -Martin Morgan +Sebastian Meyer Paul Murrell Martyn Plummer Brian Ripley @@ -28,8 +28,8 @@ Simon Urbanek plus Heiner Schwarte up to October 1999, Guido Masarotto up to June 2003, -Stefano Iacus up to July 2014, Seth Falcon up to August 2015 and Duncan Murdoch -up to September 2017. +Stefano Iacus up to July 2014, Seth Falcon up to August 2015, Duncan Murdoch +up to September 2017, and Martin Morgan up to June 2021. Current R-core members can be contacted via email to R-project.org diff -Nru r-base-4.0.3/doc/COPYRIGHTS r-base-4.1.2/doc/COPYRIGHTS --- r-base-4.0.3/doc/COPYRIGHTS 2020-08-08 22:15:02.000000000 +0000 +++ r-base-4.1.2/doc/COPYRIGHTS 2021-05-25 22:15:01.000000000 +0000 @@ -531,17 +531,35 @@ tools/config.quess tools/config.sub - Copyright 1992-2019 Free Software Foundation. + Copyright 1992-2021 Free Software Foundation. The Exception to GPL-3 applies. tools/install-sh Copyright (C) 1994 X Consortium -m4/cxx_11.m4 +tools/uniset + +is by Marcus Kuhn (https://www.cl.cam.ac.uk/~mgk25/) but contains +neither licence nor copyright claim. + +m4/cxx.m4 +Based on ax_cxx_compile_stdcxx.m4 # Copyright (c) 2008 Benjamin Kosnik # Copyright (c) 2012 Zack Weinberg # Copyright (c) 2013 Roy Stogner +# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov +# Copyright (c) 2015 Paul Norman +# Copyright (c) 2015 Moritz Klammler +# Copyright (c) 2016 Krzesimir Nowak +# Copyright (c) 2016, 2018 Krzesimir Nowak +# Copyright (c) 2019 Enji Cooper +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. This file is offered as-is, without any +# warranty. + m4/stat-time.m4 diff -Nru r-base-4.0.3/doc/CRAN_mirrors.csv r-base-4.1.2/doc/CRAN_mirrors.csv --- r-base-4.0.3/doc/CRAN_mirrors.csv 2020-03-26 23:02:38.000000000 +0000 +++ r-base-4.1.2/doc/CRAN_mirrors.csv 2021-04-19 22:02:02.000000000 +0000 @@ -1,93 +1,101 @@ Name,Country,City,URL,Host,Maintainer,OK,CountryCode,Comment -"0-Cloud [https]",0-Cloud,0-Cloud,https://cloud.r-project.org/,"Automatic redirection to servers worldwide, currently sponsored by Rstudio","winston # stdout.org",1,us,"secure_mirror_from_master" -"Algeria [https]",Algeria,Algiers,https://cran.usthb.dz/,"University of Science and Technology Houari Boumediene","Boukala m c ",1,dz, +"0-Cloud [https]",0-Cloud,0-Cloud,https://cloud.r-project.org/,"Automatic redirection to servers worldwide, currently sponsored by Rstudio","cran # rstudio.com",1,us,"secure_mirror_from_master" +"Algeria [https]",Algeria,Algiers,https://cran.usthb.dz/,"University of Science and Technology Houari Boumediene","Ahmed Guessoum ",1,dz, "Argentina (La Plata)",Argentina,"La Plata",http://mirror.fcaglp.unlp.edu.ar/CRAN/,"Universidad Nacional de La Plata","esuarez # Fcaglp.unlp.edu.ar",1,ar "Australia (Canberra) [https]",Australia,Canberra,https://cran.csiro.au/,CSIRO,"ben.tan # csiro.au, Jayesh.joshi # csiro.au, CSIROServiceDesk # csiro.au",1,au,"secure_mirror_from_master" "Australia (Melbourne 1) [https]",Australia,Melbourne,https://mirror.aarnet.edu.au/pub/CRAN/,AARNET,"",1,au,"secure_mirror_from_master" "Australia (Melbourne 2) [https]",Australia,Melbourne,https://cran.ms.unimelb.edu.au/,"School of Mathematics and Statistics, University of Melbourne","unix-ops # lists.unimelb.edu.au",1,au,"secure_mirror_from_master,maintainer_address_bounces" -"Australia (Perth) [https]",Australia,Perth,https://cran.curtin.edu.au/,"Curtin University of Technology","unix # curtin.edu.au",1,au,"secure_mirror_from_master" +"Australia (Perth) [https]",Australia,Perth,https://cran.curtin.edu.au/,"Curtin University","unix # curtin.edu.au",1,au,"secure_mirror_from_master" "Austria [https]",Austria,Wien,https://cran.wu.ac.at/,"Wirtschaftsuniversität Wien","CRAN # R-project.org",1,at,"secure_mirror_from_master" "Belgium (Antwerp) [https]",Belgium,Antwerp,https://www.freestatistics.org/cran/,"Patrick Wessa","patrick # wessa.net",1,be -"Belgium (Ghent) [https]",Belgium,Ghent,https://lib.ugent.be/CRAN/,"Ghent University Library","Patrick Hochstenbach ",1,be,"secure_mirror_from_master" +"Belgium (Brussels) [https]",Belgium,Brussels,https://ftp.belnet.be/mirror/CRAN/,"Belnet, the Belgian research and education network","ftpmaint # belnet.be",1,be "Brazil (BA) [https]",Brazil,Ilheus,https://nbcgib.uesc.br/mirrors/cran/,"Computational Biology Center at Universidade Estadual de Santa Cruz","Eduardo Almeida Costa ",1,br,"secure_mirror_from_master" "Brazil (PR) [https]",Brazil,Curitiba,https://cran-r.c3sl.ufpr.br/,"Universidade Federal do Parana","root # c3sl.ufpr.br",1,br,"secure_mirror_from_master" "Brazil (RJ) [https]",Brazil,"Rio de Janeiro",https://cran.fiocruz.br/,"Oswaldo Cruz Foundation, Rio de Janeiro","oswaldo.cruz # fiocruz.br",1,br,"secure_mirror_from_master" "Brazil (SP 1) [https]",Brazil,"Sao Paulo",https://vps.fmvz.usp.br/CRAN/,"University of Sao Paulo, Sao Paulo","Fernando Ferreira ",1,br,"secure_mirror_from_master" "Brazil (SP 2) [https]",Brazil,Piracicaba,https://brieger.esalq.usp.br/CRAN/,"University of Sao Paulo, Piracicaba","A Augusto F Garcia , augusto.garcia # usp.br",1,br,"secure_mirror_from_master" "Bulgaria [https]",Bulgaria,Sofia,https://ftp.uni-sofia.bg/CRAN/,"Sofia University","Alexander Velin ",1,bg,"secure_mirror_from_master" -"Canada (BC)",Canada,Burnaby,http://mirror.its.sfu.ca/mirror/CRAN/,"Simon Fraser University, Burnaby","research-support # sfu.ca",1,ca -"Canada (MB) [https]",Canada,Winnipeg,https://muug.ca/mirror/cran/,"Manitoba Unix User Group","mirror # muug.ca",1,ca +"Canada (BC) [https]",Canada,Burnaby,https://mirror.rcg.sfu.ca/mirror/CRAN/,"Simon Fraser University, Burnaby","research-support # sfu.ca",1,ca +"Canada (MB) [https]",Canada,Winnipeg,https://muug.ca/mirror/cran/,"Manitoba Unix User Group","mirror # muug.ca",1,ca,"secure_mirror_from_master" "Canada (NS) [https]",Canada,Halifax,https://mirror.its.dal.ca/cran/,"Dalhousie University, Halifax","mirror # lists.dal.ca",1,ca -"Canada (ON)",Canada,Toronto,http://cran.utstat.utoronto.ca/,"University of Toronto","Dermot Whelan ",1,ca -"Chile (Santiago) [https]",Chile,Santiago,https://cran.dcc.uchile.cl/,"Departamento de Ciencias de la Computación, Universidad de Chile","Mauricio Vargas ",1,cl, +"Canada (ON 1) [https]",Canada,Toronto,https://utstat.toronto.edu/cran/,"University of Toronto","Dermot Whelan ",1,ca +"Canada (ON 2) [https]",Canada,Toronto,https://cran.pacha.dev/,"DigitalOcean","Mauricio Vargas ",1,ca,"secure_mirror_from_master" +"Chile (Santiago) [https]",Chile,Santiago,https://cran.dcc.uchile.cl/,"Departamento de Ciencias de la Computación, Universidad de Chile","Mauricio Vargas ",1,cl,"secure_mirror_from_master" "Chile (Temuco) [https]",Chile,Temuco,https://cran.dme.ufro.cl/,"Departamento de Matemática y Estadística, Universidad de La Frontera","tic-dme # ufrontera.cl",1,cl -"China (Beijing) [https]",China,Beijing,https://mirrors.tuna.tsinghua.edu.cn/CRAN/,"TUNA Team, Tsinghua University","Justin Wong ",1,cn -"China (Hefei) [https]",China,Hefei,https://mirrors.ustc.edu.cn/CRAN/,"University of Science and Technology of China","mirrors # Ustc.edu.cn",1,cn +"China (Beijing 1) [https]",China,Beijing,https://mirrors.tuna.tsinghua.edu.cn/CRAN/,"TUNA Team, Tsinghua University","Justin Wong ",1,cn, +"China (Beijing 2) [https]",China,Beijing,https://mirrors.bfsu.edu.cn/CRAN/,"Beijing Foreign Studies University","Aron Xu ",1,cn,"secure_mirror_from_master" +"China (Hefei) [https]",China,Hefei,https://mirrors.ustc.edu.cn/CRAN/,"University of Science and Technology of China","mirrors # Ustc.edu.cn",1,cn,"secure_mirror_from_master" "China (Hong Kong) [https]",China,"Hong Kong",https://mirror-hk.koddos.net/CRAN/,"KoDDoS in Hong Kong","mirror # koddos.net",1,cn,"secure_mirror_from_master" "China (Guangzhou) [https]",China,Guangzhou,https://mirrors.e-ducation.cn/CRAN/,"Elite Education","x.liu # eliteu.cn",1,cn,"secure_mirror_from_master" "China (Lanzhou) [https]",China,Lanzhou,https://mirror.lzu.edu.cn/CRAN/,"Lanzhou University Open Source Society","oss.lzu.edu.cn # gmail.com",1,cn,"secure_mirror_from_master" -"China (Shanghai) [https]",China,Shanghai,https://mirrors.tongji.edu.cn/CRAN/,"Tongji University","mirrors # opentj.org",1,cn,"secure_mirror_from_master" -"Colombia (Cali) [https]",Colombia,Cali,https://www.icesi.edu.co/CRAN/,"Icesi University","adminred # Icesi.edu.co",0,co,"secure_mirror_from_master" +"China (Nanjing) [https]",China,Nanjing,https://mirrors.nju.edu.cn/CRAN/,"eScience Center, Nanjing University","my # yaoge123.com",1,cn,"secure_mirror_from_master" +"China (Shanghai 1) [https]",China,Shanghai,https://mirrors.tongji.edu.cn/CRAN/,"Tongji University","mirrors # opentj.org",1,cn,"secure_mirror_from_master" +"China (Shanghai 2) [https]",China,Shanghai,https://mirrors.sjtug.sjtu.edu.cn/cran/,"Shanghai Jiao Tong University","Alex Chi ",1,cn,"secure_mirror_from_master" +"China (Shenzhen) [https]",China,Shenzhen,https://mirrors.sustech.edu.cn/CRAN/,"Southern University of Science and Technology (SUSTech)","cra # sustech.edu.cn",1,cn +"Colombia (Cali) [https]",Colombia,Cali,https://www.icesi.edu.co/CRAN/,"Icesi University","adminred # Icesi.edu.co",1,co, "Costa Rica [https]","Costa Rica","San José",https://mirror.uned.ac.cr/cran/,"Distance State University (UNED)","rherrerav # uned.ac.cr",1,cr,"secure_mirror_from_master" "Czech Republic [https]","Czech Republic","Prague",https://mirrors.nic.cz/R/,"CZ.NIC, Prague","mirrors # nic.cz",1,cz,"maintainer_address_bounces" "Denmark [https]",Denmark,Aalborg,https://mirrors.dotsrc.org/cran/,"Aalborg University","staff # dotsrc.org",1,dk,"secure_mirror_from_master" -"East Asia [https]",0-Cloud-East-Asia,0-Cloud-East-Asia,"https://cran.asia/","Personnel Psychology Laboratory, Industrial Psychology Department, Kwangwoon University (sites: Tokyo, Seoul/Wonjoo, Singapore)","admin # cran.asia",1,asia,"secure_mirror_from_master" +"East Asia [https]",0-Cloud-East-Asia,0-Cloud-East-Asia,"https://cran.asia/","Personnel Psychology Laboratory, Kwangwoon University (sites: Seoul, Tokyo, Singapore, Manila, Bangalore)","admin # cran.asia",1,asia,"secure_mirror_from_master" "Ecuador (Cuenca) [https]",Ecuador,Cuenca,https://mirror.cedia.org.ec/CRAN/,CEDIA,"paul.bernal # cedia.org.ec",1,ec,"secure_mirror_from_master" "Ecuador (Quito) [https]",Ecuador,Quito,https://mirror.epn.edu.ec/CRAN/,Escuela Politécnica Nacional,"paul.bernal # cedia.org.ec",1,ec,"secure_mirror_from_master" "El Salvador","El Salvador","San Salvador",http://cran.salud.gob.sv/,"Ministry of Health (Ministerio de Salud)","mirror # salud.gob.sv",1,sv -"Estonia [https]",Estonia,Tartu,https://ftp.eenet.ee/pub/cran/,"EENet","eenet # eenet.ee",1,ee, +"Estonia [https]",Estonia,Tartu,https://ftp.eenet.ee/pub/cran/,"EENet","eenet # eenet.ee",1,ee,"secure_mirror_from_master" "France (Lyon 1) [https]",France,Lyon,https://pbil.univ-lyon1.fr/CRAN/,"Dept. of Biometry & Evol. Biology, University of Lyon","Jean Thioulouse ",1,fr,"secure_mirror_from_master" "France (Lyon 2) [https]",France,Lyon,https://mirror.ibcp.fr/pub/CRAN/,"CNRS IBCP, Lyon","alexis.michon # ibcp.fr",1,fr,"secure_mirror_from_master" "France (Marseille) [https]",France,Marseille,https://cran.biotools.fr/,"IBDM, Marseille","andrew.saurin # univ-amu.fr",1,fr,"secure_mirror_from_master" -"France (Montpellier) [https]",France,Montpellier,https://ftp.igh.cnrs.fr/pub/CRAN/,"Institut de Genetique Humaine, Montpellier","guillaume.gielly # igh.cnrs.fr",1,fr, +"France (Montpellier) [https]",France,Montpellier,https://ftp.igh.cnrs.fr/pub/CRAN/,"Institut de Genetique Humaine, Montpellier","guillaume.gielly # igh.cnrs.fr",1,fr,"secure_mirror_from_master" "France (Paris 1)",France,Paris,http://cran.irsn.fr/,"French Nuclear Safety Institute, Paris","yann.richet # irsn.fr",1,fr "Germany (Erlangen) [https]",Germany,Erlangen,https://ftp.fau.de/cran/,"Friedrich-Alexander-Universität Erlangen-Nürnberg (FAU)","rrze-ftp-admins # fau.de",1,de,"secure_mirror_from_master" -"Germany (Göttingen) [https]",Germany,Göttingen,https://ftp.gwdg.de/pub/misc/cran/,"GWDG Göttingen","ftpadmin # gwdg.de",1,de, +"Germany (Leipzig) [https]",Germany,Leipzig,https://mirror.dogado.de/cran/,"dogado GmbH","mirror # dogado.de",1,de,"secure_mirror_from_master" +"Germany (Göttingen) [https]",Germany,Göttingen,https://ftp.gwdg.de/pub/misc/cran/,"GWDG Göttingen","ftpadmin # gwdg.de",1,de,"secure_mirror_from_master" "Germany (Münster) [https]",Germany,Münster,https://cran.uni-muenster.de/,"University of Münster, Germany","Edzer Pebesma ",1,de,"secure_mirror_from_master" +"Germany (Nürnberg) [https]",Germany,Nürnberg,https://mirror.clientvps.com/CRAN/,ClientVPS,"info # clientvps.com",1,de "Germany (Regensburg) [https]",Germany,Regensburg,https://packages.othr.de/cran/,"OTH Regensburg","admin-storage # oth-regensburg.de",1,de,"secure_mirror_from_master" "Greece [https]",Greece,Crete,https://ftp.cc.uoc.gr/mirrors/CRAN/,"University of Crete","mirrors # Cc.uoc.gr",1,gr,"secure_mirror_from_master" "Hungary [https]",Hungary,Budapest,https://cran.rapporter.net/,"Rapporter.net, Budapest","Daróczi Gergely ",1,hu,"secure_mirror_from_master" "Iceland [https]",Iceland,Reykjavik,https://cran.hafro.is/,"Marine Research Institute","cran # hafro.is",1,is,"secure_mirror_from_master" +"India [https]",India,Bhubaneswar,https://mirror.niser.ac.in/cran/,"National Institute of Science Education and Research (NISER)","Subhankar Mishra ",1,in,"secure_mirror_from_master" "Indonesia (Jakarta) [https]",Indonesia,Jakarta,https://repo.bppt.go.id/cran/,"Agency for The Application and Assessment of Technology","Imam Cartealy ",1,id,"secure_mirror_from_master" -"Iran [https]",Iran,Mashhad,https://cran.um.ac.ir/,"Ferdowsi University of Mashhad","Majid Sarmad ",1,ir +"Iran [https]",Iran,Mashhad,https://cran.um.ac.ir/,"Ferdowsi University of Mashhad","Majid Sarmad ",1,ir,"secure_mirror_from_master" "Ireland [https]",Ireland,Dublin,https://ftp.heanet.ie/mirrors/cran.r-project.org/,"HEAnet,Dublin","mirrors # heanet.ie",1,ie, -"Italy (Milano)",Italy,Milano,http://cran.mirror.garr.it/mirrors/CRAN/,"Garr Mirror, Milano","mirror-service # garr.it",1,it +"Italy (Milano) [https]",Italy,Milano,https://cran.mirror.garr.it/CRAN/,"Garr Mirror, Milano","mirror-service # garr.it",1,it,"secure_mirror_from_master" "Italy (Padua) [https]",Italy,Padua,https://cran.stat.unipd.it/,"University of Padua","cran # stat.unipd.it",1,it,"secure_mirror_from_master" "Japan (Tokyo) [https]",Japan,Tokyo,https://cran.ism.ac.jp/,"The Institute of Statistical Mathematics, Tokyo","Junji Nakano ",1,jp,"secure_mirror_from_master" "Japan (Yonezawa) [https]",Japan,Yonezawa,https://ftp.yz.yamagata-u.ac.jp/pub/cran/,"Yamagata University","www-admin # ftp.yz.yamagata-u.ac.jp",1,jp, "Korea (Busan) [https]",Korea,Busan,https://ftp.harukasan.org/CRAN/,"Information and Database Systems Laboratory, Pukyong National University","Jongmin Kim ",1,kr, "Korea (Gyeongsan-si) [https]",Korea,Gyeongsan-si,https://cran.yu.ac.kr/,"Yeungnam University","sysop # yu.ac.kr",1,kr,"secure_mirror_from_master" -"Korea (Seoul 1) [https]",Korea,Seoul,https://cran.seoul.go.kr/,"Bigdata Campus, Seoul Metropolitan Govermment","leewj # seoul.go.kr",1,kr,"secure_mirror_from_master" +"Korea (Seoul 1) [https]",Korea,Seoul,https://cran.seoul.go.kr/,"Bigdata Campus, Seoul Metropolitan Govermment","bigdata # seoul.go.kr",1,kr,"secure_mirror_from_master" "Korea (Seoul 2)",Korea,Seoul,http://healthstat.snu.ac.kr/CRAN/,"Graduate School of Public Health, Seoul National University, Seoul","Sunghow # gmail.com",1,kr, "Korea (Ulsan) [https]",Korea,Ulsan,https://cran.biodisk.org/,"The Genome Institute of UNIST (Ulsan National Institute of Science and Technology)","ldsrman # gmail.com",1,kr,"secure_mirror_from_master" -"Malaysia",Malaysia,Serdang,http://wbc.upm.edu.my/cran/,"Univerisiti Putra Malaysia","Ng Keng Yap ",0,my,"secure_mirror_from_master" +"Malaysia [https]",Malaysia,Serdang,https://wbc.upm.edu.my/cran/,"Univerisiti Putra Malaysia","Ng Keng Yap ",1,my,"secure_mirror_from_master" "Mexico (Mexico City) [https]",Mexico,"Mexico City",https://cran.itam.mx/,"Instituto Tecnologico Autonomo de Mexico","Ernesto Barrios ",1,mx,"secure_mirror_from_master" "Mexico (Texcoco)",Mexico,Texcoco,http://www.est.colpos.mx/R-mirror/,"Colegio de Postgraduados, Texcoco","perpdgo # gmail.com",1,mx "Morocco [https]",Morocco,Rabat,https://mirror.marwan.ma/cran/,"MARWAN","noc # marwan.ma",1,ma,"secure_mirror_from_master" +"Netherlands [https]","Netherlands",Dronten,https://mirror.lyrahosting.com/CRAN/,"Lyra Hosting","admin # lyrahosting.com",1,nl,"secure_mirror_from_master" "New Zealand [https]","New Zealand",Auckland,https://cran.stat.auckland.ac.nz/,"University of Auckland","w.schmidt # auckland.ac.nz",1,nz "Norway [https]",Norway,Bergen,https://cran.uib.no/,"University of Bergen","sundrift # It.uib.no",1,no,"secure_mirror_from_master" "Philippines [https]",Philippines,"Quezon City",https://cran.stat.upd.edu.ph/,"University of the Philippines and PREGINET","Bert Mendoza , ops # pregi.net",1,ph,"secure_mirror_from_master" "Portugal (Lisbon) [https]",Portugal,Lisbon,https://cran.radicaldevelop.com/,"RadicalDevelop, Lda","geral # radicaldevelop.com",1,pt -"Portugal (Porto)",Portugal,Porto,http://cran.dcc.fc.up.pt/,"University of Porto","labcc # labcc.dcc.fc.up.pt",1,pt -"Russia [https]",Russia,Moscow,https://cran.cmm.msu.ru/,"Department of Biokinetics, Belozersky Institute of Physico-Chemical Biology, Lomonosov Moscow State University","viktor drobot ",1,ru,"secure_mirror_from_master" -"South Africa (Cape Town)","South Africa","Cape Town",http://r.adu.org.za/,"University of Cape Town","michael.brooks # uct.ac.za",1,za -"South Africa (Johannesburg)","South Africa",Johannesburg,http://cran.mirror.ac.za/,"TENET, Johannesburg","Patrick Holahan ",1,za +"Russia (Moscow) [https]",Russia,Moscow,https://cran.cmm.msu.ru/,"Department of Biokinetics, Belozersky Institute of Physico-Chemical Biology, Lomonosov Moscow State University","viktor drobot ",1,ru,"secure_mirror_from_master" +"Russia (Novosibirsk) [https]",Russia,Novosibirsk,https://mirror.truenetwork.ru/CRAN/,"Truenetwork","mirror # truenetwork.ru",1,ru +"South Africa (Johannesburg) [https]","South Africa",Johannesburg,https://cran.mirror.ac.za/,"TENET, Johannesburg","Patrick Holahan ",1,za,"secure_mirror_from_master" "Spain (A Coruña) [https]","Spain","A Coruña",https://ftp.cixug.es/CRAN/,"Oficina de software libre (CIXUG)","",1,es,"secure_mirror_from_master" -"Spain (Madrid) [https]",Spain,Madrid,https://cran.rediris.es/,"Spanish National Research Network, Madrid","Jose Manuel Macias ",1,es, -"Sweden [https]",Sweden,UmeÃ¥,https://ftp.acc.umu.se/mirror/CRAN/,"Academic Computer Club, UmeÃ¥ University","",1,se,"secure_mirror_from_master" +"Spain (Madrid) [https]",Spain,Madrid,https://cran.rediris.es/,"Spanish National Research Network, Madrid","Jose Manuel Macias ",1,es,"secure_mirror_from_master" +"Sweden (BorÃ¥s) [https]",Sweden,BorÃ¥s,https://ftpmirror1.infania.net/mirror/CRAN/,"Infania Networks","Mattias Björlin ",1,se,"secure_mirror_from_master" +"Sweden (UmeÃ¥) [https]",Sweden,UmeÃ¥,https://ftp.acc.umu.se/mirror/CRAN/,"Academic Computer Club, UmeÃ¥ University","",1,se,"secure_mirror_from_master" "Switzerland [https]",Switzerland,Zürich,https://stat.ethz.ch/CRAN/,"ETH Zürich","Martin.Maechler # R-project.org",1,ch,"secure_mirror_from_master" -"Taiwan (Chungli) [https]",Taiwan,Chungli,https://ftp.yzu.edu.tw/CRAN/,"Department of Computer Science and Engineering, Yuan Ze University","Peter Dave Hello ",1,tw "Taiwan (Taipei) [https]",Taiwan,Taipei,https://cran.csie.ntu.edu.tw/,"National Taiwan University, Taipei","b90098 # csie.ntu.edu.tw",1,tw,"secure_mirror_from_master" Thailand,Thailand,Hatyai,http://mirrors.psu.ac.th/pub/cran/,"Prince of Songkla University, Hatyai","wipat.s # psu.ac.th",1,th -"Turkey (Denizli) [https]",Turkey,Denizli,https://cran.pau.edu.tr/,"Pamukkale University, Denizli","Ugur Zeybek ",1,tr, +"Turkey (Denizli) [https]",Turkey,Denizli,https://cran.pau.edu.tr/,"Pamukkale University, Denizli","Ugur Zeybek ",1,tr,"secure_mirror_from_master" +"Turkey (Istanbul) [https]",Turkey,Istanbul,https://cran.gedik.edu.tr/,"Istanbul Gedik University","gedikedu # gedik.edu.tr",1,tr,"secure_mirror_from_master" "Turkey (Mersin) [https]",Turkey,Mersin,https://cran.ncc.metu.edu.tr/,"Middle East Technical University Northern Cyprus Campus, Mersin","Ahmed A. Zaim , ncc-cc # metu.edu.tr",1,tr,"secure_mirror_from_master" "UK (Bristol) [https]",UK,Bristol,https://www.stats.bris.ac.uk/R/,"University of Bristol","Oliver Johnson , it-zone-d # bristol.ac.uk",1,uk,"secure_mirror_from_master" "UK (London 1) [https]",UK,London,https://cran.ma.imperial.ac.uk/,"Imperial College London","andy.thomas # imperial.ac.uk",1,uk,"secure_mirror_from_master" "USA (IA) [https]",USA,Ames,https://mirror.las.iastate.edu/CRAN/,"Iowa State University, Ames, IA","statit # iastate.edu",1,us,"secure_mirror_from_master" "USA (IN)",USA,Bloomington,http://ftp.ussg.iu.edu/CRAN/,"Indiana University","rtadmin # indiana.edu",1,us "USA (KS) [https]",USA,Lawrence,https://rweb.crmda.ku.edu/cran/,"University of Kansas, Lawrence, KS","Paul Johnson ",1,us,"secure_mirror_from_master" -"USA (MI 1) [https]",USA,Houghton,https://cran.mtu.edu/,"Michigan Technological University, Houghton, MI","Robert Froese ",1,us,"secure_mirror_from_master" -"USA (MI 2) [https]",USA,"Ann Arbor",https://repo.miserver.it.umich.edu/cran/,"MBNI, University of Michigan, Ann Arbor, MI","linux-mirrors # umich.edu",1,us,"secure_mirror_from_master" +"USA (MI) [https]",USA,"Ann Arbor",https://repo.miserver.it.umich.edu/cran/,"MBNI, University of Michigan, Ann Arbor, MI","linux-mirrors # umich.edu",1,us,"secure_mirror_from_master" "USA (MO)",USA,"St. Louis",http://cran.wustl.edu/,"Washington University, St. Louis, MO","Jonathan Rapkin ",1,us, "USA (NC)",USA,Durham,http://archive.linux.duke.edu/cran/,"Duke University, Durham, NC","csi-linux-admins # duke.edu",1,us "USA (OH) [https]",USA,Cleveland,https://cran.case.edu/,"Case Western Reserve University, Cleveland, OH","""Alberto H. Santana"" ",1,us,"secure_mirror_from_master" @@ -95,5 +103,5 @@ "USA (PA 1)",USA,Pittsburgh,http://lib.stat.cmu.edu/R/CRAN/,"Statlib, Carnegie Mellon University, Pittsburgh, PA","Carl Skipper ",1,us "USA (PA 2)",USA,Pittsburgh,http://cran.mirrors.hoobly.com/,"Hoobly Classifieds, Pittsburgh, PA","Peter Grigor ",1,us "USA (TN) [https]",USA,"Oak Ridge",https://mirrors.nics.utk.edu/cran/,"National Institute for Computational Sciences, Oak Ridge, TN","help # nics.utk.edu",1,us,"secure_mirror_from_master" -"USA (TX 1) [https]",USA,Dallas,https://cran.revolutionanalytics.com/,"Revolution Analytics, Dallas, TX","David Smith ",1,us,"secure_mirror_from_master" +"USA (TX 1) [https]",USA,Dallas,https://cran.microsoft.com/,"Revolution Analytics, Dallas, TX","Joseph Chandy ",1,us,"secure_mirror_from_master" "Uruguay [https]",Uruguay,Montevideo,https://espejito.fder.edu.uy/cran/,"Facultad de Derecho, Universidad de la República","root # fder.edu.uy",1,uy,"secure_mirror_from_master" diff -Nru r-base-4.0.3/doc/FAQ r-base-4.1.2/doc/FAQ --- r-base-4.0.3/doc/FAQ 2020-10-10 07:01:00.000000000 +0000 +++ r-base-4.1.2/doc/FAQ 2021-11-01 08:00:53.000000000 +0000 @@ -1,6 +1,6 @@ R FAQ Frequently Asked Questions on R -Version 2020-08-03 +Version 2021-05-29 Kurt Hornik @@ -122,17 +122,17 @@ 1.1 Legalese ============ -This document is copyright © 1998-2020 by Kurt Hornik. +This document is copyright © 1998-2021 by Kurt Hornik. - This document is free software; 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 document is free software; 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 document 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. +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. Copies of the GNU General Public License versions are available at @@ -145,45 +145,44 @@ - From there, you can obtain versions converted to plain ASCII text, -GNU info, HTML, PDF, as well as the Texinfo source used for creating all -these formats using the GNU Texinfo system. + From there, you can obtain versions converted to plain ASCII text, GNU +info, HTML, PDF, as well as the Texinfo source used for creating all these +formats using the GNU Texinfo system. - You can also obtain the R FAQ from the 'doc/FAQ' subdirectory of a -CRAN site (*note What is CRAN?::). + You can also obtain the R FAQ from the 'doc/FAQ' subdirectory of a CRAN +site (*note What is CRAN?::). 1.3 Citing this document ======================== -In publications, please refer to this FAQ as Hornik (2020), "The R FAQ", -and give the above, _official_ URL: +In publications, please refer to this FAQ as Hornik (2021), "The R FAQ", and +give the above, _official_ URL: @Misc{, author = {Kurt Hornik}, title = {{R} {FAQ}}, - year = {2020}, + year = {2021}, url = {https://CRAN.R-project.org/doc/FAQ/R-FAQ.html} } 1.4 Notation ============ -Everything should be pretty standard. 'R>' is used for the R prompt, -and a '$' for the shell prompt (where applicable). +Everything should be pretty standard. 'R>' is used for the R prompt, and a +'$' for the shell prompt (where applicable). 1.5 Feedback ============ -Feedback via email to is of course most -welcome. +Feedback via email to is of course most welcome. - In particular, note that I do not have access to Windows or Mac -systems. Features specific to the Windows and macOS ports of R are -described in the "R for Windows FAQ" -(https://CRAN.R-project.org/bin/windows/base/rw-FAQ.html) and the "R for -Mac OS X FAQ" (https://CRAN.R-project.org/bin/macosx/RMacOSX-FAQ.html). -If you have information on Mac or Windows systems that you think should -be added to this document, please let me know. + In particular, note that I do not have access to Windows or Mac systems. +Features specific to the Windows and macOS ports of R are described in the +"R for Windows FAQ" +(https://CRAN.R-project.org/bin/windows/base/rw-FAQ.html) and the "R for Mac +OS X FAQ" (https://CRAN.R-project.org/bin/macosx/RMacOSX-FAQ.html). If you +have information on Mac or Windows systems that you think should be added to +this document, please let me know. 2 R Basics ********** @@ -191,50 +190,49 @@ 2.1 What is R? ============== -R is a system for statistical computation and graphics. It consists of -a language plus a run-time environment with graphics, a debugger, access -to certain system functions, and the ability to run programs stored in -script files. - - The design of R has been heavily influenced by two existing -languages: Becker, Chambers & Wilks' S (*note What is S?::) and -Sussman's Scheme (http://community.schemewiki.org/?scheme-faq). Whereas -the resulting language is very similar in appearance to S, the -underlying implementation and semantics are derived from Scheme. *Note -What are the differences between R and S?::, for further details. - - The core of R is an interpreted computer language which allows -branching and looping as well as modular programming using functions. -Most of the user-visible functions in R are written in R. It is possible -for the user to interface to procedures written in the C, C++, or -FORTRAN languages for efficiency. The R distribution contains -functionality for a large number of statistical procedures. Among these -are: linear and generalized linear models, nonlinear regression models, -time series analysis, classical parametric and nonparametric tests, -clustering and smoothing. There is also a large set of functions which -provide a flexible graphical environment for creating various kinds of -data presentations. Additional modules ("add-on packages") are -available for a variety of specific purposes (*note R Add-On +R is a system for statistical computation and graphics. It consists of a +language plus a run-time environment with graphics, a debugger, access to +certain system functions, and the ability to run programs stored in script +files. + + The design of R has been heavily influenced by two existing languages: +Becker, Chambers & Wilks' S (*note What is S?::) and Sussman's Scheme +(http://community.schemewiki.org/?scheme-faq). Whereas the resulting +language is very similar in appearance to S, the underlying implementation +and semantics are derived from Scheme. *Note What are the differences +between R and S?::, for further details. + + The core of R is an interpreted computer language which allows branching +and looping as well as modular programming using functions. Most of the +user-visible functions in R are written in R. It is possible for the user to +interface to procedures written in the C, C++, or FORTRAN languages for +efficiency. The R distribution contains functionality for a large number of +statistical procedures. Among these are: linear and generalized linear +models, nonlinear regression models, time series analysis, classical +parametric and nonparametric tests, clustering and smoothing. There is also +a large set of functions which provide a flexible graphical environment for +creating various kinds of data presentations. Additional modules ("add-on +packages") are available for a variety of specific purposes (*note R Add-On Packages::). R was initially written by Ross Ihaka and Robert Gentleman at the Department of Statistics of the University of Auckland in Auckland, New Zealand. In -addition, a large group of individuals has contributed to R by sending -code and bug reports. +addition, a large group of individuals has contributed to R by sending code +and bug reports. - Since mid-1997 there has been a core group (the "R Core Team") who -can modify the R source code archive. The group currently consists of -Doug Bates, John Chambers, Peter Dalgaard, Robert Gentleman, Kurt -Hornik, Ross Ihaka, Tomas Kalibera, Michael Lawrence, Friedrich Leisch, -Uwe Ligges, Thomas Lumley, Martin Maechler, Martin Morgan, Paul Murrell, -Martyn Plummer, Brian Ripley, Deepayan Sarkar, Duncan Temple Lang, Luke -Tierney, and Simon Urbanek. - - R has a home page at . It is free -software (https://www.gnu.org/philosophy/free-sw.html) distributed under -a GNU-style copyleft (https://www.gnu.org/copyleft/copyleft.html), and -an official part of the GNU (https://www.gnu.org/) project ("GNU S"). + Since mid-1997 there has been a core group (the "R Core Team") who can +modify the R source code archive. The group currently consists of Doug +Bates, John Chambers, Peter Dalgaard, Robert Gentleman, Kurt Hornik, Ross +Ihaka, Tomas Kalibera, Michael Lawrence, Friedrich Leisch, Uwe Ligges, +Thomas Lumley, Martin Maechler, Sebastian Meyer, Paul Murrell, Martyn +Plummer, Brian Ripley, Deepayan Sarkar, Duncan Temple Lang, Luke Tierney, +and Simon Urbanek. + + R has a home page at . It is free software +(https://www.gnu.org/philosophy/free-sw.html) distributed under a GNU-style +copyleft (https://www.gnu.org/copyleft/copyleft.html), and an official part +of the GNU (https://www.gnu.org/) project ("GNU S"). 2.2 What machines does R run on? ================================ @@ -243,28 +241,28 @@ operating systems. Support for Mac OS Classic ended with R 1.7.1. The current version of R will configure and build under a number of -common Unix-like (e.g., ) -platforms including CPU-linux-gnu for the i386, amd64/x86_64, alpha, -arm, arm64, hppa, mips/mipsel, powerpc, s390x and sparc CPUs (e.g., +common Unix-like (e.g., ) platforms +including CPU-linux-gnu for the i386, amd64/x86_64, alpha, arm, arm64, hppa, +mips/mipsel, powerpc, s390x and sparc CPUs (e.g., ), i386-hurd-gnu, CPU-kfreebsd-gnu for i386 and amd64, i386-pc-solaris, rs6000-ibm-aix, -sparc-sun-solaris, x86_64-apple-darwin, x86_64-unknown-freebsd and -x86_64-unknown-openbsd. +sparc-sun-solaris, x86_64-apple-darwin, aarch64-apple-darwin, +x86_64-unknown-freebsd and x86_64-unknown-openbsd. If you know about other platforms, please drop us a note. 2.3 What is the current version of R? ===================================== -R uses a 'major.minor.patchlevel' numbering scheme. Based on this, -there are the current release version of R ('r-release') as well as two +R uses a 'major.minor.patchlevel' numbering scheme. Based on this, there +are the current release version of R ('r-release') as well as two development versions of R, a patched version of the current release ('r-patched') and one working towards the next minor or eventually major ('r-devel') releases of R, respectively. New features are typically introduced in r-devel, while r-patched is for bug fixes mostly. - See for the current -versions of r-release, r-patched and r-devel. + See for the current versions of +r-release, r-patched and r-devel. 2.4 How can R be obtained? ========================== @@ -275,9 +273,8 @@ Sources are also available via , the R Subversion repository, but currently not via anonymous rsync (nor CVS). - Tarballs with daily snapshots of the r-devel and r-patched -development versions of R can be found at -. + Tarballs with daily snapshots of the r-devel and r-patched development +versions of R can be found at . 2.5 How can R be installed? =========================== @@ -289,48 +286,45 @@ prompt (of course, provided that the executable is in your path). If binaries are available for your platform (see *note Are there -Unix-like binaries for R?::), you can use these, following the -instructions that come with them. +Unix-like binaries for R?::), you can use these, following the instructions +that come with them. - Otherwise, you can compile and install R yourself, which can be done -very easily under a number of common Unix-like platforms (see *note What -machines does R run on?::). The file 'INSTALL' that comes with the R -distribution contains a brief introduction, and the "R Installation and -Administration" guide (*note What documentation exists for R?::) has -full details. - - Note that you need a FORTRAN compiler or perhaps 'f2c' in addition to -a C compiler to build R. - - In the simplest case, untar the R source code, change to the -directory thus created, and issue the following commands (at the shell -prompt): + Otherwise, you can compile and install R yourself, which can be done very +easily under a number of common Unix-like platforms (see *note What machines +does R run on?::). The file 'INSTALL' that comes with the R distribution +contains a brief introduction, and the "R Installation and Administration" +guide (*note What documentation exists for R?::) has full details. + + Note that you need a FORTRAN compiler or perhaps 'f2c' in addition to a C +compiler to build R. + + In the simplest case, untar the R source code, change to the directory +thus created, and issue the following commands (at the shell prompt): $ ./configure $ make - If these commands execute successfully, the R binary and a shell -script front-end called 'R' are created and copied to the 'bin' -directory. You can copy the script to a place where users can invoke -it, for example to '/usr/local/bin'. In addition, plain text help pages -as well as HTML and LaTeX versions of the documentation are built. + If these commands execute successfully, the R binary and a shell script +front-end called 'R' are created and copied to the 'bin' directory. You can +copy the script to a place where users can invoke it, for example to +'/usr/local/bin'. In addition, plain text help pages as well as HTML and +LaTeX versions of the documentation are built. Use 'make dvi' to create DVI versions of the R manuals, such as 'refman.dvi' (an R object reference index) and 'R-exts.dvi', the "R -Extension Writers Guide", in the 'doc/manual' subdirectory. These files -can be previewed and printed using standard programs such as 'xdvi' and -'dvips'. You can also use 'make pdf' to build PDF (Portable Document -Format) version of the manuals, and view these using e.g. Acrobat. -Manuals written in the GNU Texinfo system can also be converted to info -files suitable for reading online with Emacs or stand-alone GNU Info; -use 'make info' to create these versions (note that this requires -Makeinfo version 4.5). +Extension Writers Guide", in the 'doc/manual' subdirectory. These files can +be previewed and printed using standard programs such as 'xdvi' and 'dvips'. +You can also use 'make pdf' to build PDF (Portable Document Format) version +of the manuals, and view these using e.g. Acrobat. Manuals written in the +GNU Texinfo system can also be converted to info files suitable for reading +online with Emacs or stand-alone GNU Info; use 'make info' to create these +versions (note that this requires Makeinfo version 4.5). Finally, use 'make check' to find out whether your R system works correctly. - You can also perform a "system-wide" installation using 'make -install'. By default, this will install to the following directories: + You can also perform a "system-wide" installation using 'make install'. +By default, this will install to the following directories: '${prefix}/bin' the front-end shell script @@ -357,38 +351,37 @@ The 'bin/windows' directory of a CRAN site contains binaries for a base distribution and add-on packages from CRAN to run on Windows 7 and later (including 64-bit versions of Windows) on ix86 and x86_64 chips. The -Windows version of R was created by Robert Gentleman and Guido -Masarotto, Brian D. Ripley and Duncan Murdoch made substantial -contributions and it is now being maintained by other members of the R -Core team. +Windows version of R was created by Robert Gentleman and Guido Masarotto, +Brian D. Ripley and Duncan Murdoch made substantial contributions and it is +now being maintained by other members of the R Core team. - The same directory has links to snapshots of the r-patched and -r-devel versions of R. + The same directory has links to snapshots of the r-patched and r-devel +versions of R. See the "R for Windows FAQ" -(https://CRAN.R-project.org/bin/windows/base/rw-FAQ.html) for more -details. +(https://CRAN.R-project.org/bin/windows/base/rw-FAQ.html) for more details. 2.5.3 How can R be installed (Mac) ---------------------------------- The 'bin/macosx' directory of a CRAN site contains a standard Apple -installer package to run on macOS 10.9 ('Mavericks') and later. Once -downloaded and executed, the installer will install the current release -of R and R.app, the macOS GUI. This port of R for macOS is maintained -by Simon Urbanek (and previously by -Stefano Iacus). The "R for Mac macOS FAQ -(https://CRAN.R-project.org/bin/macosx/RMacOSX-FAQ.html) has more -details. +installer package to run on macOS 10.13 ('High Sierra') and later. Once +downloaded and executed, the installer will install the current release of R +and R.app, the macOS GUI. This port of R for macOS is maintained by Simon +Urbanek (and previously by Stefano Iacus). +The "R for macOS FAQ" +(https://CRAN.R-project.org/bin/macosx/RMacOSX-FAQ.html) has more details. Snapshots of the r-patched and r-devel versions of R are available as Apple installer packages at . + As from R 4.1.0 there are separate builds for ARM-based Macs (also known +as 'M1' or 'Apple Silicon') running macOS 11 ('Big Sur') or later. + 2.6 Are there Unix-like binaries for R? ======================================= -The 'bin/linux' directory of a CRAN site contains the following -packages. +The 'bin/linux' directory of a CRAN site contains the following packages. CPU Versions Provider ---------------------------------------------------------------- @@ -396,38 +389,36 @@ armel wheezy Johannes Ranke Ubuntu i386/amd64 lucid/precise/trusty Michael Rutter - Debian packages, maintained by Dirk Eddelbuettel, have long been part -of the Debian distribution, and can be accessed through APT, the Debian -package maintenance tool. Use e.g. 'apt-get install r-base -r-recommended' to install the R environment and recommended packages. -If you also want to build R packages from source, also run 'apt-get -install r-base-dev' to obtain the additional tools required for this. -So-called "backports" of the current R packages for at least the -"stable" distribution of Debian are provided by Johannes Ranke, and -available from CRAN. See - for details on -R Debian packages and installing the backports, which should also be -suitable for other Debian derivatives. Native backports for Ubuntu are -provided by Michael Rutter. - - R binaries for Fedora, maintained by Tom "Spot" Callaway, are -provided as part of the Fedora distribution and can be accessed through -'yum', the RPM installer/updater. Note that the "Software" application -(gnome-software), which is the default GUI for software installation in -Fedora 20, cannot be used to install R. It is therefore recommended to -use the yum command line tool. The Fedora R RPM is a "meta-package" -which installs all the user and developer components of R (available -separately as 'R-core' and 'R-devel'), as well as 'R-java', which -ensures that R is configured for use with Java. The R RPM also installs -the standalone R math library ('libRmath' and 'libRmath-devel'), -although this is not necessary to use R. When a new version of R is -released, there may be a delay of up to 2 weeks until the Fedora RPM -becomes publicly available, as it must pass through the statutory Fedora -review process. RPMs for a selection of R packages are also provided by -Fedora. The Extra Packages for Enterprise Linux (EPEL) project -() provides ports of the Fedora -RPMs for RedHat Enterprise Linux and compatible distributions (e.g., -Centos, Scientific Linux, Oracle Linux). + Debian packages, maintained by Dirk Eddelbuettel, have long been part of +the Debian distribution, and can be accessed through APT, the Debian package +maintenance tool. Use e.g. 'apt-get install r-base r-recommended' to +install the R environment and recommended packages. If you also want to +build R packages from source, also run 'apt-get install r-base-dev' to +obtain the additional tools required for this. So-called "backports" of the +current R packages for at least the "stable" distribution of Debian are +provided by Johannes Ranke, and available from CRAN. See + for details on R +Debian packages and installing the backports, which should also be suitable +for other Debian derivatives. Native backports for Ubuntu are provided by +Michael Rutter. + + R binaries for Fedora, maintained by Tom "Spot" Callaway, are provided as +part of the Fedora distribution and can be accessed through 'yum', the RPM +installer/updater. Note that the "Software" application (gnome-software), +which is the default GUI for software installation in Fedora 20, cannot be +used to install R. It is therefore recommended to use the yum command line +tool. The Fedora R RPM is a "meta-package" which installs all the user and +developer components of R (available separately as 'R-core' and 'R-devel'), +as well as 'R-java', which ensures that R is configured for use with Java. +The R RPM also installs the standalone R math library ('libRmath' and +'libRmath-devel'), although this is not necessary to use R. When a new +version of R is released, there may be a delay of up to 2 weeks until the +Fedora RPM becomes publicly available, as it must pass through the statutory +Fedora review process. RPMs for a selection of R packages are also provided +by Fedora. The Extra Packages for Enterprise Linux (EPEL) project +() provides ports of the Fedora RPMs +for RedHat Enterprise Linux and compatible distributions (e.g., Centos, +Scientific Linux, Oracle Linux). See for information about RPMs for openSUSE. @@ -438,64 +429,63 @@ 2.7 What documentation exists for R? ==================================== -Online documentation for most of the functions and variables in R -exists, and can be printed on-screen by typing 'help(NAME)' (or '?NAME') -at the R prompt, where NAME is the name of the topic help is sought for. -(In the case of unary and binary operators and control-flow special -forms, the name may need to be be quoted.) - - This documentation can also be made available as one reference manual -for on-line reading in HTML and PDF formats, and as hardcopy via LaTeX, -see *note How can R be installed?::. An up-to-date HTML version is -always available for web browsing at . +Online documentation for most of the functions and variables in R exists, +and can be printed on-screen by typing 'help(NAME)' (or '?NAME') at the R +prompt, where NAME is the name of the topic help is sought for. (In the +case of unary and binary operators and control-flow special forms, the name +may need to be be quoted.) + + This documentation can also be made available as one reference manual for +on-line reading in HTML and PDF formats, and as hardcopy via LaTeX, see +*note How can R be installed?::. An up-to-date HTML version is always +available for web browsing at . The R distribution also comes with the following manuals. - * "An Introduction to R" ('R-intro') includes information on data - types, programming elements, statistical modeling and graphics. - This document is based on the "Notes on S-PLUS" by Bill Venables - and David Smith. - * "Writing R Extensions" ('R-exts') currently describes the process - of creating R add-on packages, writing R documentation, R's system - and foreign language interfaces, and the R API. - * "R Data Import/Export" ('R-data') is a guide to importing and - exporting data to and from R. + * "An Introduction to R" ('R-intro') includes information on data types, + programming elements, statistical modeling and graphics. This document + is based on the "Notes on S-PLUS" by Bill Venables and David Smith. + * "Writing R Extensions" ('R-exts') currently describes the process of + creating R add-on packages, writing R documentation, R's system and + foreign language interfaces, and the R API. + * "R Data Import/Export" ('R-data') is a guide to importing and exporting + data to and from R. * "The R Language Definition" ('R-lang'), a first version of the "Kernighan & Ritchie of R", explains evaluation, parsing, object oriented programming, computing on the language, and so forth. * "R Installation and Administration" ('R-admin'). - * "R Internals" ('R-ints') is a guide to R's internal structures. - (Added in R 2.4.0.) + * "R Internals" ('R-ints') is a guide to R's internal structures. (Added + in R 2.4.0.) - An annotated bibliography (BibTeX format) of R-related publications -can be found at + An annotated bibliography (BibTeX format) of R-related publications can +be found at Books on R by R Core Team members include - John M. Chambers (2008), "Software for Data Analysis: Programming - with R". Springer, New York, ISBN 978-0-387-75935-7, - . + John M. Chambers (2008), "Software for Data Analysis: Programming with + R". Springer, New York, ISBN 978-0-387-75935-7, + . - Peter Dalgaard (2008), "Introductory Statistics with R", 2nd - edition. Springer, ISBN 978-0-387-79053-4, + Peter Dalgaard (2008), "Introductory Statistics with R", 2nd edition. + Springer, ISBN 978-0-387-79053-4, . - Robert Gentleman (2008), "R Programming for Bioinformatics". - Chapman & Hall/CRC, Boca Raton, FL, ISBN 978-1-420-06367-7, + Robert Gentleman (2008), "R Programming for Bioinformatics". Chapman & + Hall/CRC, Boca Raton, FL, ISBN 978-1-420-06367-7, . Stefano M. Iacus (2008), "Simulation and Inference for Stochastic Differential Equations: With R Examples". Springer, New York, ISBN 978-0-387-75838-1. - Deepayan Sarkar (2007), "Lattice: Multivariate Data Visualization - with R". Springer, New York, ISBN 978-0-387-75968-5. + Deepayan Sarkar (2007), "Lattice: Multivariate Data Visualization with + R". Springer, New York, ISBN 978-0-387-75968-5. W. John Braun and Duncan J. Murdoch (2007), "A First Course in - Statistical Programming with R". Cambridge University Press, - Cambridge, ISBN 978-0521872652. + Statistical Programming with R". Cambridge University Press, Cambridge, + ISBN 978-0521872652. P. Murrell (2005), "R Graphics", Chapman & Hall/CRC, ISBN: 1-584-88486-X, @@ -505,12 +495,12 @@ Statistics with S" (4th edition). Springer, ISBN 0-387-95457-0, . - Jose C. Pinheiro and Douglas M. Bates (2000), "Mixed-Effects Models - in S and S-Plus". Springer, ISBN 0-387-98957-0. + Jose C. Pinheiro and Douglas M. Bates (2000), "Mixed-Effects Models in + S and S-Plus". Springer, ISBN 0-387-98957-0. Last, but not least, Ross' and Robert's experience in designing and -implementing R is described in Ihaka & Gentleman (1996), "R: A Language -for Data Analysis and Graphics", _Journal of Computational and Graphical +implementing R is described in Ihaka & Gentleman (1996), "R: A Language for +Data Analysis and Graphics", _Journal of Computational and Graphical Statistics_, *5*, 299-314 (doi: 10.1080/10618600.1996.10474713 (https://doi.org/10.1080/10618600.1996.10474713)). @@ -528,8 +518,8 @@ year = YEAR, url = {https://www.R-project.org} } -where YEAR is the release year of the version of R used and can -determined as 'R.version$year'. +where YEAR is the release year of the version of R used and can determined +as 'R.version$year'. Citation strings (or BibTeX entries) for R and R packages can also be obtained by 'citation()'. @@ -537,36 +527,33 @@ 2.9 What mailing lists exist for R? =================================== -Thanks to Martin Maechler , there are -several mailing lists devoted to R, including the following: +Thanks to Martin Maechler , there are several +mailing lists devoted to R, including the following: 'R-announce' - A moderated list for major announcements about the development of R - and the availability of new code. + A moderated list for major announcements about the development of R and + the availability of new code. 'R-packages' A moderated list for announcements on the availability of new or enhanced contributed packages. 'R-help' - The 'main' R mailing list, for discussion about problems and - solutions using R, announcements (not covered by 'R-announce' and - 'R-packages') about the development of R and the availability of - new code. + The 'main' R mailing list, for discussion about problems and solutions + using R, announcements (not covered by 'R-announce' and 'R-packages') + about the development of R and the availability of new code. 'R-devel' - This list is for questions and discussion about code development in - R. + This list is for questions and discussion about code development in R. 'R-package-devel' A list which provides a forum for learning about the R package development process. -Please read the posting guide -(https://www.R-project.org/posting-guide.html) _before_ sending anything -to any mailing list. - - Note in particular that R-help is intended to be comprehensible to -people who want to use R to solve problems but who are not necessarily -interested in or knowledgeable about programming. Questions likely to -prompt discussion unintelligible to non-programmers (e.g., questions -involving C or C++) should go to R-devel. +Please read the posting guide (https://www.R-project.org/posting-guide.html) +_before_ sending anything to any mailing list. + + Note in particular that R-help is intended to be comprehensible to people +who want to use R to solve problems but who are not necessarily interested +in or knowledgeable about programming. Questions likely to prompt +discussion unintelligible to non-programmers (e.g., questions involving C or +C++) should go to R-devel. Convenient access to information on these lists, subscription, and archives is provided by the web interface at @@ -575,52 +562,51 @@ 'unsubscribe') in the _body_ of the message (not in the subject!) to . - Send email to to send a message to -everyone on the R-help mailing list. Subscription and posting to the -other lists is done analogously, with 'R-help' replaced by 'R-announce', -'R-packages', and 'R-devel', respectively. Note that the R-announce and -R-packages lists are gatewayed into R-help. Hence, you should subscribe -to either of them only in case you are not subscribed to R-help. - - It is recommended that you send mail to R-help rather than only to -the R Core developers (who are also subscribed to the list, of course). -This may save them precious time they can use for constantly improving -R, and will typically also result in much quicker feedback for yourself. - - Of course, in the case of bug reports it would be very helpful to -have code which reliably reproduces the problem. Also, make sure that -you include information on the system and version of R being used. See -*note R Bugs:: for more details. + Send email to to send a message to everyone +on the R-help mailing list. Subscription and posting to the other lists is +done analogously, with 'R-help' replaced by 'R-announce', 'R-packages', and +'R-devel', respectively. Note that the R-announce and R-packages lists are +gatewayed into R-help. Hence, you should subscribe to either of them only +in case you are not subscribed to R-help. + + It is recommended that you send mail to R-help rather than only to the R +Core developers (who are also subscribed to the list, of course). This may +save them precious time they can use for constantly improving R, and will +typically also result in much quicker feedback for yourself. + + Of course, in the case of bug reports it would be very helpful to have +code which reliably reproduces the problem. Also, make sure that you +include information on the system and version of R being used. See *note R +Bugs:: for more details. - See for more information on the -R mailing lists. + See for more information on the R +mailing lists. 2.10 What is CRAN? ================== -The "Comprehensive R Archive Network" (CRAN) is a collection of sites -which carry identical material, consisting of the R distribution(s), the +The "Comprehensive R Archive Network" (CRAN) is a collection of sites which +carry identical material, consisting of the R distribution(s), the contributed extensions, documentation for R, and binaries. - The CRAN master site at WU (Wirtschaftsuniversität Wien) in Austria -can be found at the URL + The CRAN master site at WU (Wirtschaftsuniversität Wien) in Austria can +be found at the URL and is mirrored daily to many sites around the world. See - for a complete list of -mirrors. Please use the CRAN site closest to you to reduce network -load. + for a complete list of mirrors. +Please use the CRAN site closest to you to reduce network load. From CRAN, you can obtain the latest official release of R, daily -snapshots of R (copies of the current source trees), as gzipped and -bzipped tar files, a wealth of additional contributed code, as well as -prebuilt binaries for various operating systems (Linux, Mac OS Classic, -macOS, and MS Windows). CRAN also provides access to documentation on -R, existing mailing lists and the R Bug Tracking system. +snapshots of R (copies of the current source trees), as gzipped and bzipped +tar files, a wealth of additional contributed code, as well as prebuilt +binaries for various operating systems (Linux, Mac OS Classic, macOS, and MS +Windows). CRAN also provides access to documentation on R, existing mailing +lists and the R Bug Tracking system. - Since March 2016, "old" material is made available from a central -CRAN archive server (). + Since March 2016, "old" material is made available from a central CRAN +archive server (). Please always use the URL of the master site when referring to CRAN. @@ -628,45 +614,43 @@ ========================================= R is released under the GNU General Public License (GPL), version 2 or -version 3. If you have any questions regarding the legality of using R -in any particular situation you should bring it up with your legal -counsel. We are in no position to offer legal advice. - - It is the opinion of the R Core Team that one can use R for -commercial purposes (e.g., in business or in consulting). The GPL, like -all Open Source licenses, permits all and any use of the package. It -only restricts distribution of R or of other programs containing code -from R. This is made clear in clause 6 ("No Discrimination Against -Fields of Endeavor") of the Open Source Definition -(https://opensource.org/docs/definition.html): - - The license must not restrict anyone from making use of the program - in a specific field of endeavor. For example, it may not restrict - the program from being used in a business, or from being used for - genetic research. +version 3. If you have any questions regarding the legality of using R in +any particular situation you should bring it up with your legal counsel. We +are in no position to offer legal advice. + + It is the opinion of the R Core Team that one can use R for commercial +purposes (e.g., in business or in consulting). The GPL, like all Open +Source licenses, permits all and any use of the package. It only restricts +distribution of R or of other programs containing code from R. This is made +clear in clause 6 ("No Discrimination Against Fields of Endeavor") of the +Open Source Definition (https://opensource.org/docs/definition.html): + + The license must not restrict anyone from making use of the program in + a specific field of endeavor. For example, it may not restrict the + program from being used in a business, or from being used for genetic + research. It is also explicitly stated in clause 0 of the GPL, which says in part - Activities other than copying, distribution and modification are - not covered by this License; they are outside its scope. The act - of running the Program is not restricted, and the output from the - Program is covered only if its contents constitute a work based on - the Program. + Activities other than copying, distribution and modification are not + covered by this License; they are outside its scope. The act of + running the Program is not restricted, and the output from the Program + is covered only if its contents constitute a work based on the Program. Most add-on packages, including all recommended ones, also explicitly allow commercial use in this way. A few packages are restricted to -"non-commercial use"; you should contact the author to clarify whether -these may be used or seek the advice of your legal counsel. +"non-commercial use"; you should contact the author to clarify whether these +may be used or seek the advice of your legal counsel. - None of the discussion in this section constitutes legal advice. The -R Core Team does not provide legal advice under any circumstances. + None of the discussion in this section constitutes legal advice. The R +Core Team does not provide legal advice under any circumstances. 2.12 Why is R named R? ====================== The name is partly based on the (first) names of the first two R authors -(Robert Gentleman and Ross Ihaka), and partly a play on the name of the -Bell Labs language 'S' (*note What is S?::). +(Robert Gentleman and Ross Ihaka), and partly a play on the name of the Bell +Labs language 'S' (*note What is S?::). 2.13 What is the R Foundation? ============================== @@ -677,21 +661,20 @@ computing, provide a reference point for individuals, institutions or commercial enterprises that want to support or interact with the R development community, and to hold and administer the copyright of R -software and documentation. See -for more information. +software and documentation. See for +more information. 2.14 What is R-Forge? ===================== -R-Forge () offers a central platform for -the development of R packages, R-related software and further projects. -It is based on GForge (https://en.wikipedia.org/wiki/GForge) offering -easy access to the best in SVN, daily built and checked packages, -mailing lists, bug tracking, message boards/forums, site hosting, -permanent file archival, full backups, and total web-based -administration. For more information, see the R-Forge web page and -Stefan Theußl and Achim Zeileis (2009), "Collaborative software -development using R-Forge", _The R Journal_, *1*(1):9-14. +R-Forge () offers a central platform for the +development of R packages, R-related software and further projects. It is +based on GForge (https://en.wikipedia.org/wiki/GForge) offering easy access +to the best in SVN, daily built and checked packages, mailing lists, bug +tracking, message boards/forums, site hosting, permanent file archival, full +backups, and total web-based administration. For more information, see the +R-Forge web page and Stefan Theußl and Achim Zeileis (2009), "Collaborative +software development using R-Forge", _The R Journal_, *1*(1):9-14. 3 R and S ********* @@ -700,77 +683,75 @@ ============== S is a very high level language and an environment for data analysis and -graphics. In 1998, the Association for Computing Machinery (ACM) -presented its Software System Award to John M. Chambers, the principal -designer of S, for +graphics. In 1998, the Association for Computing Machinery (ACM) presented +its Software System Award to John M. Chambers, the principal designer of S, +for the S system, which has forever altered the way people analyze, visualize, and manipulate data ... - S is an elegant, widely accepted, and enduring software system, - with conceptual integrity, thanks to the insight, taste, and effort - of John Chambers. - - The evolution of the S language is characterized by four books by -John Chambers and coauthors, which are also the primary references for -S. + S is an elegant, widely accepted, and enduring software system, with + conceptual integrity, thanks to the insight, taste, and effort of John + Chambers. + + The evolution of the S language is characterized by four books by John +Chambers and coauthors, which are also the primary references for S. * Richard A. Becker and John M. Chambers (1984), "S. An Interactive - Environment for Data Analysis and Graphics," Monterey: Wadsworth - and Brooks/Cole. + Environment for Data Analysis and Graphics," Monterey: Wadsworth and + Brooks/Cole. This is also referred to as the "_Brown Book_", and of historical interest only. - * Richard A. Becker, John M. Chambers and Allan R. Wilks (1988), "The - New S Language," London: Chapman & Hall. + * Richard A. Becker, John M. Chambers and Allan R. Wilks (1988), "The New + S Language," London: Chapman & Hall. - This book is often called the "_Blue Book_", and introduced what is - now known as S version 2. + This book is often called the "_Blue Book_", and introduced what is now + known as S version 2. - * John M. Chambers and Trevor J. Hastie (1992), "Statistical Models - in S," London: Chapman & Hall. + * John M. Chambers and Trevor J. Hastie (1992), "Statistical Models in + S," London: Chapman & Hall. This is also called the "_White Book_", and introduced S version 3, which added structures to facilitate statistical modeling in S. - * John M. Chambers (1998), "Programming with Data," New York: - Springer, ISBN 0-387-98503-4 - (). + * John M. Chambers (1998), "Programming with Data," New York: Springer, + ISBN 0-387-98503-4 (). This "_Green Book_" describes version 4 of S, a major revision of S - designed by John Chambers to improve its usefulness at every stage - of the programming process. + designed by John Chambers to improve its usefulness at every stage of + the programming process. - See for further + See for further information on the "Evolution of the S Language". 3.2 What is S-PLUS? =================== -S-PLUS is a value-added version of S currently sold by TIBCO Software -Inc (https://www.tibco.com/) as 'TIBCO Spotfire S+'. See +S-PLUS is a value-added version of S currently sold by TIBCO Software Inc +(https://www.tibco.com/) as 'TIBCO Spotfire S+'. See for more information. 3.3 What are the differences between R and S? ============================================= We can regard S as a language with three current implementations or -"engines", the "old S engine" (S version 3; S-PLUS 3.x and 4.x), the -"new S engine" (S version 4; S-PLUS 5.x and above), and R. Given this -understanding, asking for "the differences between R and S" really -amounts to asking for the specifics of the R implementation of the S -language, i.e., the difference between the R and S _engines_. +"engines", the "old S engine" (S version 3; S-PLUS 3.x and 4.x), the "new S +engine" (S version 4; S-PLUS 5.x and above), and R. Given this +understanding, asking for "the differences between R and S" really amounts +to asking for the specifics of the R implementation of the S language, i.e., +the difference between the R and S _engines_. - For the remainder of this section, "S" refers to the S engines and -not the S language. + For the remainder of this section, "S" refers to the S engines and not +the S language. 3.3.1 Lexical scoping --------------------- Contrary to other implementations of the S language, R has adopted an -evaluation model in which nested function definitions are lexically -scoped. This is analogous to the evaluation model in Scheme. +evaluation model in which nested function definitions are lexically scoped. +This is analogous to the evaluation model in Scheme. This difference becomes manifest when _free_ variables occur in a function. Free variables are those which are neither formal parameters @@ -797,21 +778,19 @@ S> cube(2) [1] 18 - In R, the "environment" created when 'cube()' was invoked is also -looked in: + In R, the "environment" created when 'cube()' was invoked is also looked +in: R> cube(2) [1] 8 - As a more "interesting" real-world problem, suppose you want to write -a function which returns the density function of the r-th order -statistic from a sample of size n from a (continuous) distribution. For -simplicity, we shall use both the cdf and pdf of the distribution as -explicit arguments. (Example compiled from various postings by Luke -Tierney.) + As a more "interesting" real-world problem, suppose you want to write a +function which returns the density function of the r-th order statistic from +a sample of size n from a (continuous) distribution. For simplicity, we +shall use both the cdf and pdf of the distribution as explicit arguments. +(Example compiled from various postings by Luke Tierney.) - The S-PLUS documentation for 'call()' basically suggests the -following: + The S-PLUS documentation for 'call()' basically suggests the following: dorder <- function(n, r, pfun, dfun) { f <- function(x) NULL @@ -826,13 +805,12 @@ f } -Rather tricky, isn't it? The code uses the fact that in S, functions -are just lists of special mode with the function body as the last -argument, and hence does not work in R (one could make the idea work, -though). +Rather tricky, isn't it? The code uses the fact that in S, functions are +just lists of special mode with the function body as the last argument, and +hence does not work in R (one could make the idea work, though). - A version which makes heavy use of 'substitute()' and seems to work -under both S and R is + A version which makes heavy use of 'substitute()' and seems to work under +both S and R is dorder <- function(n, r, pfun, dfun) { con <- round(exp(lgamma(n + 1) - lgamma(r) - lgamma(n - r + 1))) @@ -852,15 +830,15 @@ } } -This seems to be the "natural" implementation, and it works because the -free variables in the returned function can be looked up in the defining +This seems to be the "natural" implementation, and it works because the free +variables in the returned function can be looked up in the defining environment (this is lexical scope). - Note that what you really need is the function _closure_, i.e., the -body along with all variable bindings needed for evaluating it. Since -in the above version, the free variables in the value function are not -modified, you can actually use it in S as well if you abstract out the -closure operation into a function 'MC()' (for "make closure"): + Note that what you really need is the function _closure_, i.e., the body +along with all variable bindings needed for evaluating it. Since in the +above version, the free variables in the value function are not modified, +you can actually use it in S as well if you abstract out the closure +operation into a function 'MC()' (for "make closure"): dorder <- function(n, r, pfun, dfun) { con <- round(exp(lgamma(n + 1) - lgamma(r) - lgamma(n - r + 1))) @@ -870,10 +848,10 @@ list(con = con, pfun = pfun, dfun = dfun, r = r, n = n)) } - Given the appropriate definitions of the closure operator, this works -in both R and S, and is much "cleaner" than a substitute/eval solution -(or one which overrules the default scoping rules by using explicit -access to evaluation frames, as is of course possible in both R and S). + Given the appropriate definitions of the closure operator, this works in +both R and S, and is much "cleaner" than a substitute/eval solution (or one +which overrules the default scoping rules by using explicit access to +evaluation frames, as is of course possible in both R and S). For R, 'MC()' simply is @@ -899,206 +877,199 @@ } Similarly, most optimization (or zero-finding) routines need some -arguments to be optimized over and have other parameters that depend on -the data but are fixed with respect to optimization. With R scoping -rules, this is a trivial problem; simply make up the function with the -required definitions in the same environment and scoping takes care of -it. With S, one solution is to add an extra parameter to the function -and to the optimizer to pass in these extras, which however can only -work if the optimizer supports this. +arguments to be optimized over and have other parameters that depend on the +data but are fixed with respect to optimization. With R scoping rules, this +is a trivial problem; simply make up the function with the required +definitions in the same environment and scoping takes care of it. With S, +one solution is to add an extra parameter to the function and to the +optimizer to pass in these extras, which however can only work if the +optimizer supports this. Nested lexically scoped functions allow using function closures and -maintaining local state. A simple example (taken from Abelson and -Sussman) is obtained by typing 'demo("scoping")' at the R prompt. -Further information is provided in the standard R reference "R: A -Language for Data Analysis and Graphics" (*note What documentation -exists for R?::) and in Robert Gentleman and Ross Ihaka (2000), "Lexical -Scope and Statistical Computing", _Journal of Computational and -Graphical Statistics_, *9*, 491-508 (doi: 10.1080/10618600.2000.10474895 +maintaining local state. A simple example (taken from Abelson and Sussman) +is obtained by typing 'demo("scoping")' at the R prompt. Further +information is provided in the standard R reference "R: A Language for Data +Analysis and Graphics" (*note What documentation exists for R?::) and in +Robert Gentleman and Ross Ihaka (2000), "Lexical Scope and Statistical +Computing", _Journal of Computational and Graphical Statistics_, *9*, +491-508 (doi: 10.1080/10618600.2000.10474895 (https://doi.org/10.1080/10618600.2000.10474895)). - Nested lexically scoped functions also imply a further major -difference. Whereas S stores all objects as separate files in a -directory somewhere (usually '.Data' under the current directory), R -does not. All objects in R are stored internally. When R is started up -it grabs a piece of memory and uses it to store the objects. R performs -its own memory management of this piece of memory, growing and shrinking -its size as needed. Having everything in memory is necessary because it -is not really possible to externally maintain all relevant -"environments" of symbol/value pairs. This difference also seems to -make R _faster_ than S. + Nested lexically scoped functions also imply a further major difference. +Whereas S stores all objects as separate files in a directory somewhere +(usually '.Data' under the current directory), R does not. All objects in R +are stored internally. When R is started up it grabs a piece of memory and +uses it to store the objects. R performs its own memory management of this +piece of memory, growing and shrinking its size as needed. Having +everything in memory is necessary because it is not really possible to +externally maintain all relevant "environments" of symbol/value pairs. This +difference also seems to make R _faster_ than S. The down side is that if R crashes you will lose all the work for the -current session. Saving and restoring the memory "images" (the -functions and data stored in R's internal memory at any time) can be a -bit slow, especially if they are big. In S this does not happen, -because everything is saved in disk files and if you crash nothing is -likely to happen to them. (In fact, one might conjecture that the S -developers felt that the price of changing their approach to persistent -storage just to accommodate lexical scope was far too expensive.) -Hence, when doing important work, you might consider saving often (see -*note How can I save my workspace?::) to safeguard against possible -crashes. Other possibilities are logging your sessions, or have your R -commands stored in text files which can be read in using 'source()'. - - Note: If you run R from within Emacs (see *note R and Emacs::), you - can save the contents of the interaction buffer to a file and - conveniently manipulate it using 'ess-transcript-mode', as well as - save source copies of all functions and data used. +current session. Saving and restoring the memory "images" (the functions +and data stored in R's internal memory at any time) can be a bit slow, +especially if they are big. In S this does not happen, because everything +is saved in disk files and if you crash nothing is likely to happen to them. +(In fact, one might conjecture that the S developers felt that the price of +changing their approach to persistent storage just to accommodate lexical +scope was far too expensive.) Hence, when doing important work, you might +consider saving often (see *note How can I save my workspace?::) to +safeguard against possible crashes. Other possibilities are logging your +sessions, or have your R commands stored in text files which can be read in +using 'source()'. + + Note: If you run R from within Emacs (see *note R and Emacs::), you can + save the contents of the interaction buffer to a file and conveniently + manipulate it using 'ess-transcript-mode', as well as save source + copies of all functions and data used. 3.3.2 Models ------------ There are some differences in the modeling code, such as - * Whereas in S, you would use 'lm(y ~ x^3)' to regress 'y' on 'x^3', - in R, you have to insulate powers of numeric vectors (using 'I()'), - i.e., you have to use 'lm(y ~ I(x^3))'. - * The glm family objects are implemented differently in R and S. The - same functionality is available but the components have different - names. - * Option 'na.action' is set to '"na.omit"' by default in R, but not - set in S. + * Whereas in S, you would use 'lm(y ~ x^3)' to regress 'y' on 'x^3', in + R, you have to insulate powers of numeric vectors (using 'I()'), i.e., + you have to use 'lm(y ~ I(x^3))'. + * The glm family objects are implemented differently in R and S. The same + functionality is available but the components have different names. + * Option 'na.action' is set to '"na.omit"' by default in R, but not set + in S. * Terms objects are stored differently. In S a terms object is an - expression with attributes, in R it is a formula with attributes. - The attributes have the same names but are mostly stored - differently. + expression with attributes, in R it is a formula with attributes. The + attributes have the same names but are mostly stored differently. * Finally, in R 'y ~ x + 0' is an alternative to 'y ~ x - 1' for - specifying a model with no intercept. Models with no parameters at - all can be specified by 'y ~ 0'. + specifying a model with no intercept. Models with no parameters at all + can be specified by 'y ~ 0'. 3.3.3 Others ------------ -Apart from lexical scoping and its implications, R follows the S -language definition in the Blue and White Books as much as possible, and -hence really is an "implementation" of S. There are some intentional -differences where the behavior of S is considered "not clean". In -general, the rationale is that R should help you detect programming -errors, while at the same time being as compatible as possible with S. +Apart from lexical scoping and its implications, R follows the S language +definition in the Blue and White Books as much as possible, and hence really +is an "implementation" of S. There are some intentional differences where +the behavior of S is considered "not clean". In general, the rationale is +that R should help you detect programming errors, while at the same time +being as compatible as possible with S. Some known differences are the following. - * In R, if 'x' is a list, then 'x[i] <- NULL' and 'x[[i]] <- NULL' - remove the specified elements from 'x'. The first of these is - incompatible with S, where it is a no-op. (Note that you can set - elements to 'NULL' using 'x[i] <- list(NULL)'.) - - * In S, the functions named '.First' and '.Last' in the '.Data' - directory can be used for customizing, as they are executed at the - very beginning and end of a session, respectively. - - In R, the startup mechanism is as follows. Unless '--no-environ' - was given on the command line, R searches for site and user files - to process for setting environment variables. Then, R searches for - a site-wide startup profile unless the command line option + * In R, if 'x' is a list, then 'x[i] <- NULL' and 'x[[i]] <- NULL' remove + the specified elements from 'x'. The first of these is incompatible + with S, where it is a no-op. (Note that you can set elements to 'NULL' + using 'x[i] <- list(NULL)'.) + + * In S, the functions named '.First' and '.Last' in the '.Data' directory + can be used for customizing, as they are executed at the very beginning + and end of a session, respectively. + + In R, the startup mechanism is as follows. Unless '--no-environ' was + given on the command line, R searches for site and user files to + process for setting environment variables. Then, R searches for a + site-wide startup profile unless the command line option '--no-site-file' was given. This code is loaded in package *base*. - Then, unless '--no-init-file' was given, R searches for a user - profile file, and sources it into the user workspace. It then - loads a saved image of the user workspace from '.RData' in case - there is one (unless '--no-restore-data' or '--no-restore' were - specified). Next, a function '.First()' is run if found on the - search path. Finally, function '.First.sys' in the *base* package - is run. When terminating an R session, by default a function - '.Last' is run if found on the search path, followed by - '.Last.sys'. If needed, the functions '.First()' and '.Last()' - should be defined in the appropriate startup profiles. See the - help pages for '.First' and '.Last' for more details. - - * In R, 'T' and 'F' are just variables being set to 'TRUE' and - 'FALSE', respectively, but are not reserved words as in S and hence - can be overwritten by the user. (This helps e.g. when you have - factors with levels '"T"' or '"F"'.) Hence, when writing code you - should always use 'TRUE' and 'FALSE'. + Then, unless '--no-init-file' was given, R searches for a user profile + file, and sources it into the user workspace. It then loads a saved + image of the user workspace from '.RData' in case there is one (unless + '--no-restore-data' or '--no-restore' were specified). Next, a + function '.First()' is run if found on the search path. Finally, + function '.First.sys' in the *base* package is run. When terminating + an R session, by default a function '.Last' is run if found on the + search path, followed by '.Last.sys'. If needed, the functions + '.First()' and '.Last()' should be defined in the appropriate startup + profiles. See the help pages for '.First' and '.Last' for more + details. + + * In R, 'T' and 'F' are just variables being set to 'TRUE' and 'FALSE', + respectively, but are not reserved words as in S and hence can be + overwritten by the user. (This helps e.g. when you have factors with + levels '"T"' or '"F"'.) Hence, when writing code you should always use + 'TRUE' and 'FALSE'. * In R, 'dyn.load()' can only load _shared objects_, as created for example by 'R CMD SHLIB'. - * In R, 'attach()' currently only works for lists and data frames, - but not for directories. (In fact, 'attach()' also works for R - data files created with 'save()', which is analogous to attaching - directories in S.) Also, you cannot attach at position 1. + * In R, 'attach()' currently only works for lists and data frames, but + not for directories. (In fact, 'attach()' also works for R data files + created with 'save()', which is analogous to attaching directories in + S.) Also, you cannot attach at position 1. - * Categories do not exist in R, and never will as they are deprecated - now in S. Use factors instead. + * Categories do not exist in R, and never will as they are deprecated now + in S. Use factors instead. * In R, 'For()' loops are not necessary and hence not supported. - * In R, 'assign()' uses the argument 'envir=' rather than 'where=' as - in S. + * In R, 'assign()' uses the argument 'envir=' rather than 'where=' as in + S. * The random number generators are different, and the seeds have different length. - * R passes integer objects to C as 'int *' rather than 'long *' as in - S. + * R passes integer objects to C as 'int *' rather than 'long *' as in S. - * R has no single precision storage mode. However, as of version - 0.65.1, there is a single precision interface to C/FORTRAN - subroutines. + * R has no single precision storage mode. However, as of version 0.65.1, + there is a single precision interface to C/FORTRAN subroutines. * By default, 'ls()' returns the names of the objects in the current - (under R) and global (under S) environment, respectively. For - example, given + (under R) and global (under S) environment, respectively. For example, + given x <- 1; fun <- function() {y <- 1; ls()} - then 'fun()' returns '"y"' in R and '"x"' (together with the rest - of the global environment) in S. + then 'fun()' returns '"y"' in R and '"x"' (together with the rest of + the global environment) in S. - * R allows for zero-extent matrices (and arrays, i.e., some elements - of the 'dim' attribute vector can be 0). This has been determined - a useful feature as it helps reducing the need for special-case - tests for empty subsets. For example, if 'x' is a matrix, 'x[, - FALSE]' is not 'NULL' but a "matrix" with 0 columns. Hence, such - objects need to be tested for by checking whether their 'length()' - is zero (which works in both R and S), and not using 'is.null()'. + * R allows for zero-extent matrices (and arrays, i.e., some elements of + the 'dim' attribute vector can be 0). This has been determined a + useful feature as it helps reducing the need for special-case tests for + empty subsets. For example, if 'x' is a matrix, 'x[, FALSE]' is not + 'NULL' but a "matrix" with 0 columns. Hence, such objects need to be + tested for by checking whether their 'length()' is zero (which works in + both R and S), and not using 'is.null()'. * Named vectors are considered vectors in R but not in S (e.g., 'is.vector(c(a = 1:3))' returns 'FALSE' in S and 'TRUE' in R). * Data frames are not considered as matrices in R (i.e., if 'DF' is a - data frame, then 'is.matrix(DF)' returns 'FALSE' in R and 'TRUE' in - S). + data frame, then 'is.matrix(DF)' returns 'FALSE' in R and 'TRUE' in S). - * R by default uses treatment contrasts in the unordered case, - whereas S uses the Helmert ones. This is a deliberate difference - reflecting the opinion that treatment contrasts are more natural. - - * In R, the argument of a replacement function which corresponds to - the right hand side must be named 'value'. E.g., 'f(a) <- b' is - evaluated as 'a <- "f<-"(a, value = b)'. S always takes the last - argument, irrespective of its name. - - * In S, 'substitute()' searches for names for substitution in the - given expression in three places: the actual and the default - arguments of the matching call, and the local frame (in that - order). R looks in the local frame only, with the special rule to - use a "promise" if a variable is not evaluated. Since the local - frame is initialized with the actual arguments or the default - expressions, this is usually equivalent to S, until assignment - takes place. + * R by default uses treatment contrasts in the unordered case, whereas S + uses the Helmert ones. This is a deliberate difference reflecting the + opinion that treatment contrasts are more natural. + + * In R, the argument of a replacement function which corresponds to the + right hand side must be named 'value'. E.g., 'f(a) <- b' is evaluated + as 'a <- "f<-"(a, value = b)'. S always takes the last argument, + irrespective of its name. + + * In S, 'substitute()' searches for names for substitution in the given + expression in three places: the actual and the default arguments of the + matching call, and the local frame (in that order). R looks in the + local frame only, with the special rule to use a "promise" if a + variable is not evaluated. Since the local frame is initialized with + the actual arguments or the default expressions, this is usually + equivalent to S, until assignment takes place. - * In S, the index variable in a 'for()' loop is local to the inside - of the loop. In R it is local to the environment where the 'for()' + * In S, the index variable in a 'for()' loop is local to the inside of + the loop. In R it is local to the environment where the 'for()' statement is executed. * In S, 'tapply(simplify=TRUE)' returns a vector where R returns a one-dimensional array (which can have named dimnames). - * In S(-PLUS) the C locale is used, whereas in R the current - operating system locale is used for determining which characters - are alphanumeric and how they are sorted. This affects the set of - valid names for R objects (for example accented chars may be - allowed in R) and ordering in sorts and comparisons (such as - whether '"aA" < "Bb"' is true or false). From version 1.2.0 the - locale can be (re-)set in R by the 'Sys.setlocale()' function. + * In S(-PLUS) the C locale is used, whereas in R the current operating + system locale is used for determining which characters are alphanumeric + and how they are sorted. This affects the set of valid names for R + objects (for example accented chars may be allowed in R) and ordering + in sorts and comparisons (such as whether '"aA" < "Bb"' is true or + false). From version 1.2.0 the locale can be (re-)set in R by the + 'Sys.setlocale()' function. - * In S, 'missing(ARG)' remains 'TRUE' if ARG is subsequently - modified; in R it doesn't. + * In S, 'missing(ARG)' remains 'TRUE' if ARG is subsequently modified; in + R it doesn't. - * From R version 1.3.0, 'data.frame' strips 'I()' when creating - (column) names. + * From R version 1.3.0, 'data.frame' strips 'I()' when creating (column) + names. * In R, the string '"NA"' is not treated as a missing value in a character variable. Use 'as.character(NA)' to create a missing @@ -1108,51 +1079,48 @@ * In S, 'dump()', 'dput()' and 'deparse()' are essentially different interfaces to the same code. In R from version 2.0.0, this is only - true if the same 'control' argument is used, but by default it is - not. By default 'dump()' tries to write code that will evaluate to - reproduce the object, whereas 'dput()' and 'deparse()' default to - options for producing deparsed code that is readable. - - * In R, indexing a vector, matrix, array or data frame with '[' using - a character vector index looks only for exact matches (whereas '[[' - and '$' allow partial matches). In S, '[' allows partial matches. + true if the same 'control' argument is used, but by default it is not. + By default 'dump()' tries to write code that will evaluate to reproduce + the object, whereas 'dput()' and 'deparse()' default to options for + producing deparsed code that is readable. + + * In R, indexing a vector, matrix, array or data frame with '[' using a + character vector index looks only for exact matches (whereas '[[' and + '$' allow partial matches). In S, '[' allows partial matches. * S has a two-argument version of 'atan' and no 'atan2'. A call in S - such as 'atan(x1, x2)' is equivalent to R's 'atan2(x1, x2)'. - However, beware of named arguments since S's 'atan(x = a, y = b)' - is equivalent to R's 'atan2(y = a, x = b)' with the meanings of 'x' - and 'y' interchanged. (R used to have undocumented support for a - two-argument 'atan' with positional arguments, but this has been - withdrawn to avoid further confusion.) - - * Numeric constants with no fractional and exponent (i.e., only - integer) part are taken as integer in S-PLUS 6.x or later, but as - double in R. + such as 'atan(x1, x2)' is equivalent to R's 'atan2(x1, x2)'. However, + beware of named arguments since S's 'atan(x = a, y = b)' is equivalent + to R's 'atan2(y = a, x = b)' with the meanings of 'x' and 'y' + interchanged. (R used to have undocumented support for a two-argument + 'atan' with positional arguments, but this has been withdrawn to avoid + further confusion.) + + * Numeric constants with no fractional and exponent (i.e., only integer) + part are taken as integer in S-PLUS 6.x or later, but as double in R. There are also differences which are not intentional, and result from missing or incorrect code in R. The developers would appreciate hearing -about any deficiencies you may find (in a written report fully -documenting the difference as you see it). Of course, it would be -useful if you were to implement the change yourself and make sure it -works. +about any deficiencies you may find (in a written report fully documenting +the difference as you see it). Of course, it would be useful if you were to +implement the change yourself and make sure it works. 3.4 Is there anything R can do that S-PLUS cannot? ================================================== -Since almost anything you can do in R has source code that you could -port to S-PLUS with little effort there will never be much you can do in -R that you couldn't do in S-PLUS if you wanted to. (Note that using -lexical scoping may simplify matters considerably, though.) - - R offers several graphics features that S-PLUS does not, such as -finer handling of line types, more convenient color handling (via -palettes), gamma correction for color, and, most importantly, -mathematical annotation in plot texts, via input expressions reminiscent -of TeX constructs. See the help page for 'plotmath', which features an -impressive on-line example. More details can be found in Paul Murrell -and Ross Ihaka (2000), "An Approach to Providing Mathematical Annotation -in Plots", _Journal of Computational and Graphical Statistics_, *9*, -582-599 (doi: 10.1080/10618600.2000.10474900 +Since almost anything you can do in R has source code that you could port to +S-PLUS with little effort there will never be much you can do in R that you +couldn't do in S-PLUS if you wanted to. (Note that using lexical scoping +may simplify matters considerably, though.) + + R offers several graphics features that S-PLUS does not, such as finer +handling of line types, more convenient color handling (via palettes), gamma +correction for color, and, most importantly, mathematical annotation in plot +texts, via input expressions reminiscent of TeX constructs. See the help +page for 'plotmath', which features an impressive on-line example. More +details can be found in Paul Murrell and Ross Ihaka (2000), "An Approach to +Providing Mathematical Annotation in Plots", _Journal of Computational and +Graphical Statistics_, *9*, 582-599 (doi: 10.1080/10618600.2000.10474900 (https://doi.org/10.1080/10618600.2000.10474900)). 3.5 What is R-plus? @@ -1173,12 +1141,12 @@ ****************** Please refer to the CRAN task view on "Web Technologies and Services" -(), specifically -section "Web and Server Frameworks", for up-to-date information on R web -interface packages. +(), specifically section +"Web and Server Frameworks", for up-to-date information on R web interface +packages. - Early references on R web interfaces include Jeff Banfield (1999), -"Rweb: Web-based Statistical Analysis" (doi: 10.18637/jss.v004.i01 + Early references on R web interfaces include Jeff Banfield (1999), "Rweb: +Web-based Statistical Analysis" (doi: 10.18637/jss.v004.i01 (https://doi.org/10.18637/jss.v004.i01)), David Firth (2003), "CGIwithR: Facilities for processing web forms using R" (doi: 10.18637/jss.v008.i10 (https://doi.org/10.18637/jss.v008.i10)), and Angelo Mineo and Alfredo @@ -1207,14 +1175,14 @@ *graphics* R functions for base graphics. *grid* - A rewrite of the graphics layout capabilities, plus some support - for interaction. + A rewrite of the graphics layout capabilities, plus some support for + interaction. *methods* Formally defined methods and classes for R objects, plus other programming tools, as described in the Green Book. *parallel* - Support for parallel computation, including by forking and by - sockets, and random-number generation (added in R 2.14.0). + Support for parallel computation, including by forking and by sockets, + and random-number generation (added in R 2.14.0). *splines* Regression spline functions and classes. *stats* @@ -1228,28 +1196,26 @@ *utils* R utility functions. These "base packages" were substantially reorganized in R 1.9.0. The -former *base* was split into the four packages *base*, *graphics*, -*stats*, and *utils*. Packages *ctest*, *eda*, *modreg*, *mva*, *nls*, -*stepfun* and *ts* were merged into *stats*, package *lqs* returned to -the recommended package *MASS* -(https://CRAN.R-project.org/package=MASS), and package *mle* moved to -*stats4*. +former *base* was split into the four packages *base*, *graphics*, *stats*, +and *utils*. Packages *ctest*, *eda*, *modreg*, *mva*, *nls*, *stepfun* and +*ts* were merged into *stats*, package *lqs* returned to the recommended +package *MASS* (https://CRAN.R-project.org/package=MASS), and package *mle* +moved to *stats4*. 5.1.2 Add-on packages from CRAN ------------------------------- -The CRAN 'src/contrib' area contains a wealth of add-on packages, -including the following _recommended_ packages which are to be included -in all binary distributions of R. +The CRAN 'src/contrib' area contains a wealth of add-on packages, including +the following _recommended_ packages which are to be included in all binary +distributions of R. *KernSmooth* - Functions for kernel smoothing (and density estimation) - corresponding to the book "Kernel Smoothing" by M. P. Wand and M. - C. Jones, 1995. + Functions for kernel smoothing (and density estimation) corresponding + to the book "Kernel Smoothing" by M. P. Wand and M. C. Jones, 1995. *MASS* - Functions and datasets from the main package of Venables and - Ripley, "Modern Applied Statistics with S". (Contained in the 'VR' - bundle for R versions prior to 2.10.0.) + Functions and datasets from the main package of Venables and Ripley, + "Modern Applied Statistics with S". (Contained in the 'VR' bundle for R + versions prior to 2.10.0.) *Matrix* A Matrix package. (Recommended for R 2.9.0 or later.) *boot* @@ -1257,81 +1223,80 @@ Methods and Their Applications" by A. C. Davison and D. V. Hinkley, 1997, Cambridge University Press. *class* - Functions for classification (k-nearest neighbor and LVQ). - (Contained in the 'VR' bundle for R versions prior to 2.10.0.) + Functions for classification (k-nearest neighbor and LVQ). (Contained + in the 'VR' bundle for R versions prior to 2.10.0.) *cluster* Functions for cluster analysis. *codetools* Code analysis tools. (Recommended for R 2.5.0 or later.) *foreign* - Functions for reading and writing data stored by statistical - software like Minitab, S, SAS, SPSS, Stata, Systat, etc. + Functions for reading and writing data stored by statistical software + like Minitab, S, SAS, SPSS, Stata, Systat, etc. *lattice* Lattice graphics, an implementation of Trellis Graphics functions. *mgcv* - Routines for GAMs and other generalized ridge regression problems - with multiple smoothing parameter selection by GCV or UBRE. + Routines for GAMs and other generalized ridge regression problems with + multiple smoothing parameter selection by GCV or UBRE. *nlme* Fit and compare Gaussian linear and nonlinear mixed-effects models. *nnet* Software for single hidden layer perceptrons ("feed-forward neural - networks"), and for multinomial log-linear models. (Contained in - the 'VR' bundle for R versions prior to 2.10.0.) + networks"), and for multinomial log-linear models. (Contained in the + 'VR' bundle for R versions prior to 2.10.0.) *rpart* Recursive PARTitioning and regression trees. *spatial* - Functions for kriging and point pattern analysis from "Modern - Applied Statistics with S" by W. Venables and B. Ripley. - (Contained in the 'VR' bundle for R versions prior to 2.10.0.) + Functions for kriging and point pattern analysis from "Modern Applied + Statistics with S" by W. Venables and B. Ripley. (Contained in the + 'VR' bundle for R versions prior to 2.10.0.) *survival* Functions for survival analysis, including penalized likelihood. See the CRAN contributed packages page for more information. Many of these packages are categorized into CRAN Task Views (https://CRAN.R-project.org/web/views/), allowing to browse packages by -topic and providing tools to automatically install all packages for -special areas of interest. +topic and providing tools to automatically install all packages for special +areas of interest. 5.1.3 Add-on packages from Bioconductor --------------------------------------- Bioconductor (https://www.bioconductor.org/) is an open source and open -development software project for the analysis and comprehension of -genomic data. Most Bioconductor components are distributed as R add-on -packages. Initially most of the Bioconductor software packages +development software project for the analysis and comprehension of genomic +data. Most Bioconductor components are distributed as R add-on packages. +Initially most of the Bioconductor software packages (https://bioconductor.org/packages/release/BiocViews.html#___Software) focused primarily on DNA microarray data analysis. As the project has -matured, the functional scope of the software packages broadened to -include the analysis of all types of genomic data, such as SAGE, -sequence, or SNP data. In addition, there are metadata (annotation, CDF -and probe) and experiment data packages. See - for available packages and a -complete taxonomy via BioC Views. +matured, the functional scope of the software packages broadened to include +the analysis of all types of genomic data, such as SAGE, sequence, or SNP +data. In addition, there are metadata (annotation, CDF and probe) and +experiment data packages. See +for available packages and a complete taxonomy via BioC Views. 5.1.4 Other add-on packages --------------------------- -Many more packages are available from places other than the three -default repositories discussed above (CRAN, Bioconductor and Omegahat). -In particular, R-Forge provides a CRAN style repository at +Many more packages are available from places other than the three default +repositories discussed above (CRAN, Bioconductor and Omegahat). In +particular, R-Forge provides a CRAN style repository at . - More code has been posted to the R-help mailing list, and can be -obtained from the mailing list archive. + More code has been posted to the R-help mailing list, and can be obtained +from the mailing list archive. 5.2 How can add-on packages be installed? ========================================= (Unix-like only.) The add-on packages on CRAN come as gzipped tar files -named 'PKG_VERSION.tar.gz', which may in fact be "bundles" containing -more than one package. Let PATH be the path to such a package file. -Provided that 'tar' and 'gzip' are available on your system, type +named 'PKG_VERSION.tar.gz', which may in fact be "bundles" containing more +than one package. Let PATH be the path to such a package file. Provided +that 'tar' and 'gzip' are available on your system, type $ R CMD INSTALL PATH/PKG_VERSION.tar.gz at the shell prompt to install to the library tree rooted at the first -directory in your library search path (see the help page for -'.libPaths()' for details on how the search path is determined). +directory in your library search path (see the help page for '.libPaths()' +for details on how the search path is determined). To install to another tree (e.g., your private one), use @@ -1339,9 +1304,9 @@ where LIB gives the path to the library tree to install to. - Even more conveniently, you can install and automatically update -packages from within R if you have access to repositories such as CRAN. -See the help page for 'available.packages()' for more information. + Even more conveniently, you can install and automatically update packages +from within R if you have access to repositories such as CRAN. See the help +page for 'available.packages()' for more information. 5.3 How can add-on packages be used? ==================================== @@ -1414,10 +1379,10 @@ $ R CMD REMOVE PKG_1 ... PKG_N -to remove the packages PKG_1, ..., PKG_N from the library tree rooted at -the first directory given in 'R_LIBS' if this is set and non-null, and -from the default library otherwise. (Versions of R prior to 1.3.0 -removed from the default library by default.) +to remove the packages PKG_1, ..., PKG_N from the library tree rooted at the +first directory given in 'R_LIBS' if this is set and non-null, and from the +default library otherwise. (Versions of R prior to 1.3.0 removed from the +default library by default.) To remove from library LIB, do @@ -1426,37 +1391,35 @@ 5.5 How can I create an R package? ================================== -A package consists of a subdirectory containing a file 'DESCRIPTION' and -the subdirectories 'R', 'data', 'demo', 'exec', 'inst', 'man', 'po', -'src', and 'tests' (some of which can be missing). The package -subdirectory may also contain files 'INDEX', 'NAMESPACE', 'configure', -'cleanup', 'LICENSE', 'LICENCE', 'COPYING' and 'NEWS'. - - See section "Creating R packages" in 'Writing R Extensions', for -details. This manual is included in the R distribution, *note What -documentation exists for R?::, and gives information on package -structure, the configure and cleanup mechanisms, and on automated -package checking and building. - - R version 1.3.0 has added the function 'package.skeleton()' which -will set up directories, save data and code, and create skeleton help -files for a set of R functions and datasets. +A package consists of a subdirectory containing a file 'DESCRIPTION' and the +subdirectories 'R', 'data', 'demo', 'exec', 'inst', 'man', 'po', 'src', and +'tests' (some of which can be missing). The package subdirectory may also +contain files 'INDEX', 'NAMESPACE', 'configure', 'cleanup', 'LICENSE', +'LICENCE', 'COPYING' and 'NEWS'. - *Note What is CRAN?::, for information on uploading a package to -CRAN. + See section "Creating R packages" in 'Writing R Extensions', for details. +This manual is included in the R distribution, *note What documentation +exists for R?::, and gives information on package structure, the configure +and cleanup mechanisms, and on automated package checking and building. + + R version 1.3.0 has added the function 'package.skeleton()' which will +set up directories, save data and code, and create skeleton help files for a +set of R functions and datasets. + + *Note What is CRAN?::, for information on uploading a package to CRAN. 5.6 How can I contribute to R? ============================== -R is in active development and there is always a risk of bugs creeping -in. Also, the developers do not have access to all possible machines -capable of running R. So, simply using it and communicating problems is -certainly of great value. +R is in active development and there is always a risk of bugs creeping in. +Also, the developers do not have access to all possible machines capable of +running R. So, simply using it and communicating problems is certainly of +great value. The R Developer Page (https://developer.R-project.org/) acts as an -intermediate repository for more or less finalized ideas and plans for -the R statistical system. It contains (pointers to) TODO lists, RFCs, -various other writeups, ideas lists, and SVN miscellanea. +intermediate repository for more or less finalized ideas and plans for the R +statistical system. It contains (pointers to) TODO lists, RFCs, various +other writeups, ideas lists, and SVN miscellanea. 6 R and Emacs ************* @@ -1465,35 +1428,32 @@ ================================= There is an Emacs package called ESS ("Emacs Speaks Statistics") which -provides a standard interface between statistical programs and -statistical processes. It is intended to provide assistance for -interactive statistical programming and data analysis. Languages -supported include: S dialects (R, S 3/4, and S-PLUS -3.x/4.x/5.x/6.x/7.x), LispStat dialects (XLispStat, ViSta), SAS, Stata, -and BUGS. +provides a standard interface between statistical programs and statistical +processes. It is intended to provide assistance for interactive statistical +programming and data analysis. Languages supported include: S dialects (R, +S 3/4, and S-PLUS 3.x/4.x/5.x/6.x/7.x), LispStat dialects (XLispStat, +ViSta), SAS, Stata, and BUGS. ESS grew out of the need for bug fixes and extensions to S-mode 4.8 -(which was a GNU Emacs interface to S/S-PLUS version 3 only). The -current set of developers desired support for XEmacs, R, S4, and MS -Windows. In addition, with new modes being developed for R, Stata, and -SAS, it was felt that a unifying interface and framework for the user -interface would benefit both the user and the developer, by helping both -groups conform to standard Emacs usage. The end result is an increase -in efficiency for statistical programming and data analysis, over the -usual tools. - - R support contains code for editing R source code (syntactic -indentation and highlighting of source code, partial evaluations of -code, loading and error-checking of code, and source code revision -maintenance) and documentation (syntactic indentation and highlighting -of source code, sending examples to running ESS process, and -previewing), interacting with an inferior R process from within Emacs -(command-line editing, searchable command history, command-line -completion of R object and file names, quick access to object and search -lists, transcript recording, and an interface to the help system), and -transcript manipulation (recording and saving transcript files, -manipulating and editing saved transcripts, and re-evaluating commands -from transcript files). +(which was a GNU Emacs interface to S/S-PLUS version 3 only). The current +set of developers desired support for XEmacs, R, S4, and MS Windows. In +addition, with new modes being developed for R, Stata, and SAS, it was felt +that a unifying interface and framework for the user interface would benefit +both the user and the developer, by helping both groups conform to standard +Emacs usage. The end result is an increase in efficiency for statistical +programming and data analysis, over the usual tools. + + R support contains code for editing R source code (syntactic indentation +and highlighting of source code, partial evaluations of code, loading and +error-checking of code, and source code revision maintenance) and +documentation (syntactic indentation and highlighting of source code, +sending examples to running ESS process, and previewing), interacting with +an inferior R process from within Emacs (command-line editing, searchable +command history, command-line completion of R object and file names, quick +access to object and search lists, transcript recording, and an interface to +the help system), and transcript manipulation (recording and saving +transcript files, manipulating and editing saved transcripts, and +re-evaluating commands from transcript files). The latest stable version of ESS is available via CRAN or the ESS web page (https://ESS.R-project.org/). @@ -1503,67 +1463,62 @@ For help with ESS, send email to . Please send bug reports and suggestions on ESS to -. The easiest way to do this from is within -Emacs by typing 'M-x ess-submit-bug-report' or using the [ESS] or [iESS] -pulldown menus. +. The easiest way to do this from is within Emacs +by typing 'M-x ess-submit-bug-report' or using the [ESS] or [iESS] pulldown +menus. 6.2 Should I run R from within Emacs? ===================================== Yes, instead of just running it in a console, _definitely_. As an -alternative to other IDE's such as Rstudio, _possibly_, notably if you -are interested to use Emacs for other computer interaction. You'd be -using ESS, Emacs Speaks Statistics, see previous FAQ. +alternative to other IDE's such as Rstudio, _possibly_, notably if you are +interested to use Emacs for other computer interaction. You'd be using ESS, +Emacs Speaks Statistics, see previous FAQ. Inferior R mode provides a readline/history mechanism, object name -completion, and syntax-based highlighting of the interaction buffer -using Font Lock mode, as well as a very convenient interface to the R -help system. - - Of course, it also integrates nicely with the mechanisms for editing -R source using Emacs. One can write code in one Emacs buffer and send -whole or parts of it for execution to R; this is helpful for both data -analysis and programming. One can also seamlessly integrate with a -revision control system, in order to maintain a log of changes in your -programs and data, as well as to allow for the retrieval of past -versions of the code. - - In addition, it allows you to keep a record of your session, which -can also be used for error recovery through the use of the transcript -mode. +completion, and syntax-based highlighting of the interaction buffer using +Font Lock mode, as well as a very convenient interface to the R help system. - To specify command line arguments for the inferior R process, use -'C-u M-x R' for starting R. + Of course, it also integrates nicely with the mechanisms for editing R +source using Emacs. One can write code in one Emacs buffer and send whole +or parts of it for execution to R; this is helpful for both data analysis +and programming. One can also seamlessly integrate with a revision control +system, in order to maintain a log of changes in your programs and data, as +well as to allow for the retrieval of past versions of the code. + + In addition, it allows you to keep a record of your session, which can +also be used for error recovery through the use of the transcript mode. + + To specify command line arguments for the inferior R process, use 'C-u +M-x R' for starting R. 6.3 Debugging R from within Emacs ================================= -To debug R "from within Emacs", there are several possibilities. To use -the Emacs GUD (Grand Unified Debugger) library with the recommended -debugger GDB, type 'M-x gdb' and give the path to the R _binary_ as -argument. At the 'gdb' prompt, set 'R_HOME' and other environment -variables as needed (using e.g. 'set env R_HOME /path/to/R/', but see -also below), and start the binary with the desired arguments (e.g., 'run ---quiet'). - - If you have ESS, you can do 'C-u M-x R - d g d b ' -to start an inferior R process with arguments '-d gdb'. - - A third option is to start an inferior R process via ESS ('M-x R') -and then start GUD ('M-x gdb') giving the R binary (using its full path -name) as the program to debug. Use the program 'ps' to find the process -number of the currently running R process then use the 'attach' command -in gdb to attach it to that process. One advantage of this method is -that you have separate '*R*' and '*gud-gdb*' windows. Within the '*R*' -window you have all the ESS facilities, such as object-name completion, -that we know and love. - - When using GUD mode for debugging from within Emacs, you may find it -most convenient to use the directory with your code in it as the current -working directory and then make a symbolic link from that directory to -the R binary. That way '.gdbinit' can stay in the directory with the -code and be used to set up the environment and the search paths for the -source, e.g. as follows: +To debug R "from within Emacs", there are several possibilities. To use the +Emacs GUD (Grand Unified Debugger) library with the recommended debugger +GDB, type 'M-x gdb' and give the path to the R _binary_ as argument. At the +'gdb' prompt, set 'R_HOME' and other environment variables as needed (using +e.g. 'set env R_HOME /path/to/R/', but see also below), and start the binary +with the desired arguments (e.g., 'run --quiet'). + + If you have ESS, you can do 'C-u M-x R - d g d b ' to +start an inferior R process with arguments '-d gdb'. + + A third option is to start an inferior R process via ESS ('M-x R') and +then start GUD ('M-x gdb') giving the R binary (using its full path name) as +the program to debug. Use the program 'ps' to find the process number of +the currently running R process then use the 'attach' command in gdb to +attach it to that process. One advantage of this method is that you have +separate '*R*' and '*gud-gdb*' windows. Within the '*R*' window you have +all the ESS facilities, such as object-name completion, that we know and +love. + + When using GUD mode for debugging from within Emacs, you may find it most +convenient to use the directory with your code in it as the current working +directory and then make a symbolic link from that directory to the R binary. +That way '.gdbinit' can stay in the directory with the code and be used to +set up the environment and the search paths for the source, e.g. as follows: set env R_HOME /opt/R set env R_PAPERSIZE letter @@ -1604,33 +1559,33 @@ To remove all objects in the currently active environment (typically '.GlobalEnv'), you can do - rm(list = ls(all = TRUE)) + rm(list = ls(all.names = TRUE)) -(Without 'all = TRUE', only the objects with names not starting with a -'.' are removed.) +(Without 'all = TRUE', only the objects with names not starting with a '.' +are removed.) 7.4 How can I get eval() and D() to work? ========================================= -Strange things will happen if you use 'eval(print(x), envir = e)' or -'D(x^2, "x")'. The first one will either tell you that "'x'" is not -found, or print the value of the wrong 'x'. The other one will likely -return zero if 'x' exists, and an error otherwise. +Strange things will happen if you use 'eval(print(x), envir = e)' or 'D(x^2, +"x")'. The first one will either tell you that "'x'" is not found, or print +the value of the wrong 'x'. The other one will likely return zero if 'x' +exists, and an error otherwise. This is because in both cases, the first argument is evaluated in the -calling environment first. The result (which should be an object of -mode '"expression"' or '"call"') is then evaluated or differentiated. -What you (most likely) really want is obtained by "quoting" the first -argument upon surrounding it with 'expression()'. For example, +calling environment first. The result (which should be an object of mode +'"expression"' or '"call"') is then evaluated or differentiated. What you +(most likely) really want is obtained by "quoting" the first argument upon +surrounding it with 'expression()'. For example, R> D(expression(x^2), "x") 2 * x Although this behavior may initially seem to be rather strange, it is -perfectly logical. The "intuitive" behavior could easily be -implemented, but problems would arise whenever the expression is -contained in a variable, passed as a parameter, or is the result of a -function call. Consider for instance the semantics in cases like +perfectly logical. The "intuitive" behavior could easily be implemented, +but problems would arise whenever the expression is contained in a variable, +passed as a parameter, or is the result of a function call. Consider for +instance the semantics in cases like D2 <- function(e, n) D(D(e, n), n) @@ -1645,11 +1600,11 @@ ======================================= When a matrix with a single row or column is created by a subscripting -operation, e.g., 'row <- mat[2, ]', it is by default turned into a -vector. In a similar way if an array with dimension, say, 2 x 3 x 1 x 4 -is created by subscripting it will be coerced into a 2 x 3 x 4 array, -losing the unnecessary dimension. After much discussion this has been -determined to be a _feature_. +operation, e.g., 'row <- mat[2, ]', it is by default turned into a vector. +In a similar way if an array with dimension, say, 2 x 3 x 1 x 4 is created +by subscripting it will be coerced into a 2 x 3 x 4 array, losing the +unnecessary dimension. After much discussion this has been determined to be +a _feature_. To prevent this happening, add the option 'drop = FALSE' to the subscripting. For example, @@ -1658,26 +1613,24 @@ colmatrix <- mat[, 2, drop = FALSE] # creates a column matrix a <- b[1, 1, 1, drop = FALSE] # creates a 1 x 1 x 1 array - The 'drop = FALSE' option should be used defensively when -programming. For example, the statement + The 'drop = FALSE' option should be used defensively when programming. +For example, the statement somerows <- mat[index, ] -will return a vector rather than a matrix if 'index' happens to have -length 1, causing errors later in the code. It should probably be -rewritten as +will return a vector rather than a matrix if 'index' happens to have length +1, causing errors later in the code. It should probably be rewritten as somerows <- mat[index, , drop = FALSE] 7.6 How does autoloading work? ============================== -R has a special environment called '.AutoloadEnv'. Using -'autoload(NAME, PKG)', where NAME and PKG are strings giving the names -of an object and the package containing it, stores some information in -this environment. When R tries to evaluate NAME, it loads the -corresponding package PKG and reevaluates NAME in the new package's -environment. +R has a special environment called '.AutoloadEnv'. Using 'autoload(NAME, +PKG)', where NAME and PKG are strings giving the names of an object and the +package containing it, stores some information in this environment. When R +tries to evaluate NAME, it loads the corresponding package PKG and +reevaluates NAME in the new package's environment. Using this mechanism makes R behave as if the package was loaded, but does not occupy memory (yet). @@ -1687,11 +1640,11 @@ 7.7 How should I set options? ============================= -The function 'options()' allows setting and examining a variety of -global "options" which affect the way in which R computes and displays -its results. The variable '.Options' holds the current values of these -options, but should never directly be assigned to unless you want to -drive yourself crazy--simply pretend that it is a "read-only" variable. +The function 'options()' allows setting and examining a variety of global +"options" which affect the way in which R computes and displays its results. +The variable '.Options' holds the current values of these options, but +should never directly be assigned to unless you want to drive yourself +crazy--simply pretend that it is a "read-only" variable. For example, given @@ -1719,38 +1672,37 @@ 7.8 How do file names work in Windows? ====================================== -As R uses C-style string handling, '\' is treated as an escape -character, so that for example one can enter a newline as '\n'. When -you really need a '\', you have to escape it with another '\'. +As R uses C-style string handling, '\' is treated as an escape character, so +that for example one can enter a newline as '\n'. When you really need a +'\', you have to escape it with another '\'. - Thus, in filenames use something like '"c:\\data\\money.dat"'. You -can also replace '\' by '/' ('"c:/data/money.dat"'). + Thus, in filenames use something like '"c:\\data\\money.dat"'. You can +also replace '\' by '/' ('"c:/data/money.dat"'). 7.9 Why does plotting give a color allocation error? ==================================================== -On an X11 device, plotting sometimes, e.g., when running -'demo("image")', results in "Error: color allocation error". This is an -X problem, and only indirectly related to R. It occurs when applications -started prior to R have used all the available colors. (How many colors -are available depends on the X configuration; sometimes only 256 colors -can be used.) - - One application which is notorious for "eating" colors is Netscape. -If the problem occurs when Netscape is running, try (re)starting it with -either the '-no-install' (to use the default colormap) or the '-install' -(to install a private colormap) option. - - You could also set the 'colortype' of 'X11()' to '"pseudo.cube"' -rather than the default '"pseudo"'. See the help page for 'X11()' for -more information. +On an X11 device, plotting sometimes, e.g., when running 'demo("image")', +results in "Error: color allocation error". This is an X problem, and only +indirectly related to R. It occurs when applications started prior to R have +used all the available colors. (How many colors are available depends on +the X configuration; sometimes only 256 colors can be used.) + + One application which is notorious for "eating" colors is Netscape. If +the problem occurs when Netscape is running, try (re)starting it with either +the '-no-install' (to use the default colormap) or the '-install' (to +install a private colormap) option. + + You could also set the 'colortype' of 'X11()' to '"pseudo.cube"' rather +than the default '"pseudo"'. See the help page for 'X11()' for more +information. 7.10 How do I convert factors to numeric? ========================================= -It may happen that when reading numeric data into R (usually, when -reading in a file), they come in as factors. If 'f' is such a factor -object, you can use +It may happen that when reading numeric data into R (usually, when reading +in a file), they come in as factors. If 'f' is such a factor object, you +can use as.numeric(as.character(f)) @@ -1758,84 +1710,82 @@ as.numeric(levels(f))[as.integer(f)] - In any case, do not call 'as.numeric()' or their likes directly for -the task at hand (as 'as.numeric()' or 'unclass()' give the internal -codes). + In any case, do not call 'as.numeric()' or their likes directly for the +task at hand (as 'as.numeric()' or 'unclass()' give the internal codes). 7.11 Are Trellis displays implemented in R? =========================================== The recommended package *lattice* -(https://CRAN.R-project.org/package=lattice) (which is based on base -package *grid*) provides graphical functionality that is compatible with -most Trellis commands. +(https://CRAN.R-project.org/package=lattice) (which is based on base package +*grid*) provides graphical functionality that is compatible with most +Trellis commands. You could also look at 'coplot()' and 'dotchart()' which might do at -least some of what you want. Note also that the R version of 'pairs()' -is fairly general and provides most of the functionality of 'splom()', -and that R's default plot method has an argument 'asp' allowing to -specify (and fix against device resizing) the aspect ratio of the plot. +least some of what you want. Note also that the R version of 'pairs()' is +fairly general and provides most of the functionality of 'splom()', and that +R's default plot method has an argument 'asp' allowing to specify (and fix +against device resizing) the aspect ratio of the plot. - (Because the word "Trellis" has been claimed as a trademark we do not -use it in R. The name "lattice" has been chosen for the R equivalent.) + (Because the word "Trellis" has been claimed as a trademark we do not use +it in R. The name "lattice" has been chosen for the R equivalent.) 7.12 What are the enclosing and parent environments? ==================================================== Inside a function you may want to access variables in two additional -environments: the one that the function was defined in ("enclosing"), -and the one it was invoked in ("parent"). +environments: the one that the function was defined in ("enclosing"), and +the one it was invoked in ("parent"). - If you create a function at the command line or load it in a package -its enclosing environment is the global workspace. If you define a -function 'f()' inside another function 'g()' its enclosing environment -is the environment inside 'g()'. The enclosing environment for a -function is fixed when the function is created. You can find out the -enclosing environment for a function 'f()' using 'environment(f)'. - - The "parent" environment, on the other hand, is defined when you -invoke a function. If you invoke 'lm()' at the command line its parent -environment is the global workspace, if you invoke it inside a function -'f()' then its parent environment is the environment inside 'f()'. You -can find out the parent environment for an invocation of a function by -using 'parent.frame()' or 'sys.frame(sys.parent())'. - - So for most user-visible functions the enclosing environment will be -the global workspace, since that is where most functions are defined. -The parent environment will be wherever the function happens to be -called from. If a function 'f()' is defined inside another function -'g()' it will probably be used inside 'g()' as well, so its parent -environment and enclosing environment will probably be the same. - - Parent environments are important because things like model formulas -need to be evaluated in the environment the function was called from, -since that's where all the variables will be available. This relies on -the parent environment being potentially different with each invocation. - - Enclosing environments are important because a function can use -variables in the enclosing environment to share information with other -functions or with other invocations of itself (see the section on -lexical scoping). This relies on the enclosing environment being the -same each time the function is invoked. (In C this would be done with -static variables.) + If you create a function at the command line or load it in a package its +enclosing environment is the global workspace. If you define a function +'f()' inside another function 'g()' its enclosing environment is the +environment inside 'g()'. The enclosing environment for a function is fixed +when the function is created. You can find out the enclosing environment +for a function 'f()' using 'environment(f)'. + + The "parent" environment, on the other hand, is defined when you invoke a +function. If you invoke 'lm()' at the command line its parent environment +is the global workspace, if you invoke it inside a function 'f()' then its +parent environment is the environment inside 'f()'. You can find out the +parent environment for an invocation of a function by using 'parent.frame()' +or 'sys.frame(sys.parent())'. + + So for most user-visible functions the enclosing environment will be the +global workspace, since that is where most functions are defined. The +parent environment will be wherever the function happens to be called from. +If a function 'f()' is defined inside another function 'g()' it will +probably be used inside 'g()' as well, so its parent environment and +enclosing environment will probably be the same. + + Parent environments are important because things like model formulas need +to be evaluated in the environment the function was called from, since +that's where all the variables will be available. This relies on the parent +environment being potentially different with each invocation. + + Enclosing environments are important because a function can use variables +in the enclosing environment to share information with other functions or +with other invocations of itself (see the section on lexical scoping). This +relies on the enclosing environment being the same each time the function is +invoked. (In C this would be done with static variables.) Scoping _is_ hard. Looking at examples helps. It is particularly -instructive to look at examples that work differently in R and S and try -to see why they differ. One way to describe the scoping differences -between R and S is to say that in S the enclosing environment is -_always_ the global workspace, but in R the enclosing environment is -wherever the function was created. +instructive to look at examples that work differently in R and S and try to +see why they differ. One way to describe the scoping differences between R +and S is to say that in S the enclosing environment is _always_ the global +workspace, but in R the enclosing environment is wherever the function was +created. 7.13 How can I substitute into a plot label? ============================================ -Often, it is desired to use the value of an R object in a plot label, -e.g., a title. This is easily accomplished using 'paste()' if the label -is a simple character string, but not always obvious in case the label -is an expression (for refined mathematical annotation). In such a case, -either use 'parse()' on your pasted character string or use -'substitute()' on an expression. For example, if 'ahat' is an estimator -of your parameter a of interest, use +Often, it is desired to use the value of an R object in a plot label, e.g., +a title. This is easily accomplished using 'paste()' if the label is a +simple character string, but not always obvious in case the label is an +expression (for refined mathematical annotation). In such a case, either +use 'parse()' on your pasted character string or use 'substitute()' on an +expression. For example, if 'ahat' is an estimator of your parameter a of +interest, use title(substitute(hat(a) == ahat, list(ahat = ahat))) @@ -1853,55 +1803,54 @@ When creating data frames using 'data.frame()' or 'read.table()', R by default ensures that the variable names are syntactically valid. (The -argument 'check.names' to these functions controls whether variable -names are checked and adjusted by 'make.names()' if needed.) +argument 'check.names' to these functions controls whether variable names +are checked and adjusted by 'make.names()' if needed.) - To understand what names are "valid", one needs to take into account -that the term "name" is used in several different (but related) ways in -the language: - - 1. A _syntactic name_ is a string the parser interprets as this type - of expression. It consists of letters, numbers, and the dot and - (for versions of R at least 1.9.0) underscore characters, and - starts with either a letter or a dot not followed by a number. - Reserved words are not syntactic names. - 2. An _object name_ is a string associated with an object that is - assigned in an expression either by having the object name on the - left of an assignment operation or as an argument to the 'assign()' - function. It is usually a syntactic name as well, but can be any - non-empty string if it is quoted (and it is always quoted in the - call to 'assign()'). - - 3. An _argument name_ is what appears to the left of the equals sign - when supplying an argument in a function call (for example, - 'f(trim=.5)'). Argument names are also usually syntactic names, - but again can be anything if they are quoted. - - 4. An _element name_ is a string that identifies a piece of an object - (a component of a list, for example.) When it is used on the right - of the '$' operator, it must be a syntactic name, or quoted. - Otherwise, element names can be any strings. (When an object is - used as a database, as in a call to 'eval()' or 'attach()', the - element names become object names.) - - 5. Finally, a _file name_ is a string identifying a file in the - operating system for reading, writing, etc. It really has nothing - much to do with names in the language, but it is traditional to - call these strings file "names". + To understand what names are "valid", one needs to take into account that +the term "name" is used in several different (but related) ways in the +language: + + 1. A _syntactic name_ is a string the parser interprets as this type of + expression. It consists of letters, numbers, and the dot and (for + versions of R at least 1.9.0) underscore characters, and starts with + either a letter or a dot not followed by a number. Reserved words are + not syntactic names. + 2. An _object name_ is a string associated with an object that is assigned + in an expression either by having the object name on the left of an + assignment operation or as an argument to the 'assign()' function. It + is usually a syntactic name as well, but can be any non-empty string if + it is quoted (and it is always quoted in the call to 'assign()'). + + 3. An _argument name_ is what appears to the left of the equals sign when + supplying an argument in a function call (for example, 'f(trim=.5)'). + Argument names are also usually syntactic names, but again can be + anything if they are quoted. + + 4. An _element name_ is a string that identifies a piece of an object (a + component of a list, for example.) When it is used on the right of the + '$' operator, it must be a syntactic name, or quoted. Otherwise, + element names can be any strings. (When an object is used as a + database, as in a call to 'eval()' or 'attach()', the element names + become object names.) + + 5. Finally, a _file name_ is a string identifying a file in the operating + system for reading, writing, etc. It really has nothing much to do + with names in the language, but it is traditional to call these strings + file "names". 7.15 Are GAMs implemented in R? =============================== -Package *gam* (https://CRAN.R-project.org/package=gam) from CRAN -implements all the Generalized Additive Models (GAM) functionality as -described in the GAM chapter of the White Book. In particular, it -implements backfitting with both local regression and smoothing splines, -and is extendable. There is a 'gam()' function for GAMs in package -*mgcv* (https://CRAN.R-project.org/package=mgcv), but it is not an exact -clone of what is described in the White Book (no 'lo()' for example). -Package *gss* (https://CRAN.R-project.org/package=gss) can fit -spline-based GAMs too. And if you can accept regression splines you can -use 'glm()'. For Gaussian GAMs you can use 'bruto()' from package *mda* +Package *gam* (https://CRAN.R-project.org/package=gam) from CRAN implements +all the Generalized Additive Models (GAM) functionality as described in the +GAM chapter of the White Book. In particular, it implements backfitting +with both local regression and smoothing splines, and is extendable. There +is a 'gam()' function for GAMs in package *mgcv* +(https://CRAN.R-project.org/package=mgcv), but it is not an exact clone of +what is described in the White Book (no 'lo()' for example). Package *gss* +(https://CRAN.R-project.org/package=gss) can fit spline-based GAMs too. And +if you can accept regression splines you can use 'glm()'. For Gaussian GAMs +you can use 'bruto()' from package *mda* (https://CRAN.R-project.org/package=mda). 7.16 Why is the output not printed when I source() a file? @@ -1916,14 +1865,13 @@ summary(glm(y~x+z, family=binomial)) fits a logistic regression model, computes some summary information and -returns an object of class '"summary.glm"' (*note How should I write -summary methods?::). +returns an object of class '"summary.glm"' (*note How should I write summary +methods?::). If you type '1+1' or 'summary(glm(y~x+z, family=binomial))' at the command line the returned value is automatically printed (unless it is -'invisible()'), but in other circumstances, such as in a 'source()'d -file or inside a function it isn't printed unless you specifically print -it. +'invisible()'), but in other circumstances, such as in a 'source()'d file or +inside a function it isn't printed unless you specifically print it. To print the value use @@ -1938,18 +1886,17 @@ 7.17 Why does outer() behave strangely with my function? ======================================================== -As the help for 'outer()' indicates, it does not work on arbitrary -functions the way the 'apply()' family does. It requires functions that -are vectorized to work elementwise on arrays. As you can see by looking -at the code, 'outer(x, y, FUN)' creates two large vectors containing -every possible combination of elements of 'x' and 'y' and then passes -this to 'FUN' all at once. Your function probably cannot handle two -large vectors as parameters. - - If you have a function that cannot handle two vectors but can handle -two scalars, then you can still use 'outer()' but you will need to wrap -your function up first, to simulate vectorized behavior. Suppose your -function is +As the help for 'outer()' indicates, it does not work on arbitrary functions +the way the 'apply()' family does. It requires functions that are +vectorized to work elementwise on arrays. As you can see by looking at the +code, 'outer(x, y, FUN)' creates two large vectors containing every possible +combination of elements of 'x' and 'y' and then passes this to 'FUN' all at +once. Your function probably cannot handle two large vectors as parameters. + + If you have a function that cannot handle two vectors but can handle two +scalars, then you can still use 'outer()' but you will need to wrap your +function up first, to simulate vectorized behavior. Suppose your function +is foo <- function(x, y, happy) { stopifnot(length(x) == 1, length(y) == 1) # scalars only! @@ -1972,57 +1919,54 @@ ================================================================================== In a model such as '~A+B+A:B', R will report the difference in sums of -squares between the models '~1', '~A', '~A+B' and '~A+B+A:B'. If the -model were '~B+A+A:B', R would report differences between '~1', '~B', -'~A+B', and '~A+B+A:B' . In the first case the sum of squares for 'A' -is comparing '~1' and '~A', in the second case it is comparing '~B' and -'~B+A'. In a non-orthogonal design (i.e., most unbalanced designs) -these comparisons are (conceptually and numerically) different. - - Some packages report instead the sums of squares based on comparing -the full model to the models with each factor removed one at a time (the -famous 'Type III sums of squares' from SAS, for example). These do not -depend on the order of factors in the model. The question of which set -of sums of squares is the Right Thing provokes low-level holy wars on -R-help from time to time. - - There is no need to be agitated about the particular sums of squares -that R reports. You can compute your favorite sums of squares quite -easily. Any two models can be compared with 'anova(MODEL1, MODEL2)', -and 'drop1(MODEL1)' will show the sums of squares resulting from -dropping single terms. +squares between the models '~1', '~A', '~A+B' and '~A+B+A:B'. If the model +were '~B+A+A:B', R would report differences between '~1', '~B', '~A+B', and +'~A+B+A:B' . In the first case the sum of squares for 'A' is comparing '~1' +and '~A', in the second case it is comparing '~B' and '~B+A'. In a +non-orthogonal design (i.e., most unbalanced designs) these comparisons are +(conceptually and numerically) different. + + Some packages report instead the sums of squares based on comparing the +full model to the models with each factor removed one at a time (the famous +'Type III sums of squares' from SAS, for example). These do not depend on +the order of factors in the model. The question of which set of sums of +squares is the Right Thing provokes low-level holy wars on R-help from time +to time. + + There is no need to be agitated about the particular sums of squares that +R reports. You can compute your favorite sums of squares quite easily. Any +two models can be compared with 'anova(MODEL1, MODEL2)', and 'drop1(MODEL1)' +will show the sums of squares resulting from dropping single terms. 7.19 How do I produce PNG graphics in batch mode? ================================================= -Under a Unix-like, if your installation supports the 'type="cairo"' -option to the 'png()' device there should be no problems, and the -default settings should just work. This option is not available for -versions of R prior to 2.7.0, or without support for cairo. From R -2.7.0 'png()' by default uses the Quartz device on macOS, and that too -works in batch mode. - - Earlier versions of the 'png()' device used the X11 driver, which is -a problem in batch mode or for remote operation. If you have -Ghostscript you can use 'bitmap()', which produces a PostScript or PDF -file then converts it to any bitmap format supported by Ghostscript. On -some installations this produces ugly output, on others it is perfectly -satisfactory. Many systems now come with Xvfb from X.Org -(https://www.x.org/) (possibly as an optional install), which is an X11 -server that does not require a screen; and there is the *GDD* -(https://CRAN.R-project.org/package=GDD) package from CRAN, which -produces PNG, JPEG and GIF bitmaps without X11. +Under a Unix-like, if your installation supports the 'type="cairo"' option +to the 'png()' device there should be no problems, and the default settings +should just work. This option is not available for versions of R prior to +2.7.0, or without support for cairo. From R 2.7.0 'png()' by default uses +the Quartz device on macOS, and that too works in batch mode. + + Earlier versions of the 'png()' device used the X11 driver, which is a +problem in batch mode or for remote operation. If you have Ghostscript you +can use 'bitmap()', which produces a PostScript or PDF file then converts it +to any bitmap format supported by Ghostscript. On some installations this +produces ugly output, on others it is perfectly satisfactory. Many systems +now come with Xvfb from X.Org (https://www.x.org/) (possibly as an optional +install), which is an X11 server that does not require a screen; and there +is the *GDD* (https://CRAN.R-project.org/package=GDD) package from CRAN, +which produces PNG, JPEG and GIF bitmaps without X11. 7.20 How can I get command line editing to work? ================================================ The Unix-like command-line interface to R can only provide the inbuilt -command line editor which allows recall, editing and re-submission of -prior commands provided that the GNU readline library is available at -the time R is configured for compilation. Note that the 'development' -version of readline including the appropriate headers is needed: users -of Linux binary distributions will need to install packages such as -'libreadline-dev' (Debian) or 'readline-devel' (Red Hat). +command line editor which allows recall, editing and re-submission of prior +commands provided that the GNU readline library is available at the time R +is configured for compilation. Note that the 'development' version of +readline including the appropriate headers is needed: users of Linux binary +distributions will need to install packages such as 'libreadline-dev' +(Debian) or 'readline-devel' (Red Hat). 7.21 How can I turn a string into a variable? ============================================= @@ -2056,8 +2000,8 @@ lm(y ~ x + a) - At least in the first two cases it is often easier to just use a -list, and then you can easily index it by name + At least in the first two cases it is often easier to just use a list, +and then you can easily index it by name vars <- list(a = 1:10, b = rnorm(100), d = LETTERS) vars[["a"]] @@ -2067,44 +2011,42 @@ 7.22 Why do lattice/trellis graphics not work? ============================================== -The most likely reason is that you forgot to tell R to display the -graph. Lattice functions such as 'xyplot()' create a graph object, but -do not display it (the same is true of *ggplot2* -(https://CRAN.R-project.org/package=ggplot2) graphics, and Trellis -graphics in S-PLUS). The 'print()' method for the graph object produces -the actual display. When you use these functions interactively at the -command line, the result is automatically printed, but in 'source()' or -inside your own functions you will need an explicit 'print()' statement. +The most likely reason is that you forgot to tell R to display the graph. +Lattice functions such as 'xyplot()' create a graph object, but do not +display it (the same is true of *ggplot2* +(https://CRAN.R-project.org/package=ggplot2) graphics, and Trellis graphics +in S-PLUS). The 'print()' method for the graph object produces the actual +display. When you use these functions interactively at the command line, +the result is automatically printed, but in 'source()' or inside your own +functions you will need an explicit 'print()' statement. 7.23 How can I sort the rows of a data frame? ============================================= -To sort the rows within a data frame, with respect to the values in one -or more of the columns, simply use 'order()' (e.g., 'DF[order(DF$a, -DF[["b"]]), ]' to sort the data frame 'DF' on columns named 'a' and -'b'). +To sort the rows within a data frame, with respect to the values in one or +more of the columns, simply use 'order()' (e.g., 'DF[order(DF$a, DF[["b"]]), +]' to sort the data frame 'DF' on columns named 'a' and 'b'). 7.24 Why does the help.start() search engine not work? ====================================================== -The browser-based search engine in 'help.start()' utilizes a Java -applet. In order for this to function properly, a compatible version of -Java must installed on your system and linked to your browser, and both -Java _and_ JavaScript need to be enabled in your browser. - - There have been a number of compatibility issues with versions of -Java and of browsers. For further details please consult section -"Enabling search in HTML help" in 'R Installation and Administration'. -This manual is included in the R distribution, *note What documentation -exists for R?::, and its HTML version is linked from the HTML search -page. +The browser-based search engine in 'help.start()' utilizes a Java applet. +In order for this to function properly, a compatible version of Java must +installed on your system and linked to your browser, and both Java _and_ +JavaScript need to be enabled in your browser. + + There have been a number of compatibility issues with versions of Java +and of browsers. For further details please consult section "Enabling +search in HTML help" in 'R Installation and Administration'. This manual is +included in the R distribution, *note What documentation exists for R?::, +and its HTML version is linked from the HTML search page. 7.25 Why did my .Rprofile stop working when I updated R? ======================================================== Did you read the 'NEWS' file? For functions that are not in the *base* -package you need to specify the correct package namespace, since the -code will be run _before_ the packages are loaded. E.g., +package you need to specify the correct package namespace, since the code +will be run _before_ the packages are loaded. E.g., ps.options(horizontal = FALSE) help.start() @@ -2119,9 +2061,9 @@ 7.26 Where have all the methods gone? ===================================== -Many functions, particularly S3 methods, are now hidden in namespaces. -This has the advantage that they cannot be called inadvertently with -arguments of the wrong class, but it makes them harder to view. +Many functions, particularly S3 methods, are now hidden in namespaces. This +has the advantage that they cannot be called inadvertently with arguments of +the wrong class, but it makes them harder to view. To see the code for an S3 method (e.g., '[.terms') use @@ -2129,8 +2071,8 @@ To see the code for an unexported function 'foo()' in the namespace of package '"bar"' use 'bar:::foo'. Don't use these constructions to call -unexported functions in your own code--they are probably unexported for -a reason and may change without warning. +unexported functions in your own code--they are probably unexported for a +reason and may change without warning. 7.27 How can I create rotated axis labels? ========================================== @@ -2152,11 +2094,11 @@ ## Plot x axis label at line 6 (of 7) mtext(1, text = "X Axis Label", line = 6) -When plotting the x axis labels, we use 'srt = 45' for text rotation -angle, 'adj = 1' to place the right end of text at the tick marks, and -'xpd = TRUE' to allow for text outside the plot region. You can adjust -the value of the '0.25' offset as required to move the axis labels up or -down relative to the x axis. See '?par' for more information. +When plotting the x axis labels, we use 'srt = 45' for text rotation angle, +'adj = 1' to place the right end of text at the tick marks, and 'xpd = TRUE' +to allow for text outside the plot region. You can adjust the value of the +'0.25' offset as required to move the axis labels up or down relative to the +x axis. See '?par' for more information. Also see Figure 1 and associated code in Paul Murrell (2003), "Integrating grid Graphics Output with Base Graphics Output", _R News_, @@ -2165,44 +2107,42 @@ 7.28 Why is read.table() so inefficient? ======================================== -By default, 'read.table()' needs to read in everything as character -data, and then try to figure out which variables to convert to numerics -or factors. For a large data set, this takes considerable amounts of -time and memory. Performance can substantially be improved by using the -'colClasses' argument to specify the classes to be assumed for the -columns of the table. +By default, 'read.table()' needs to read in everything as character data, +and then try to figure out which variables to convert to numerics or +factors. For a large data set, this takes considerable amounts of time and +memory. Performance can substantially be improved by using the 'colClasses' +argument to specify the classes to be assumed for the columns of the table. 7.29 What is the difference between package and library? ======================================================== A "package" is a standardized collection of material extending R, e.g. -providing code, data, or documentation. A "library" is a place -(directory) where R knows to find packages it can use (i.e., which were -"installed"). R is told to use a package (to "load" it and add it to -the search path) via calls to the function 'library'. I.e., 'library()' -is employed to load a package from libraries containing packages. +providing code, data, or documentation. A "library" is a place (directory) +where R knows to find packages it can use (i.e., which were "installed"). R +is told to use a package (to "load" it and add it to the search path) via +calls to the function 'library'. I.e., 'library()' is employed to load a +package from libraries containing packages. - *Note R Add-On Packages::, for more details. See also Uwe Ligges -(2003), "R Help Desk: Package Management", _R News_, *3/3*, 37-39. + *Note R Add-On Packages::, for more details. See also Uwe Ligges (2003), +"R Help Desk: Package Management", _R News_, *3/3*, 37-39. 7.30 I installed a package but the functions are not there ========================================================== -To actually _use_ the package, it needs to be _loaded_ using -'library()'. +To actually _use_ the package, it needs to be _loaded_ using 'library()'. - See *note R Add-On Packages:: and *note What is the difference -between package and library?:: for more information. + See *note R Add-On Packages:: and *note What is the difference between +package and library?:: for more information. 7.31 Why doesn't R think these numbers are equal? ================================================= The only numbers that can be represented exactly in R's numeric type are -integers and fractions whose denominator is a power of 2. All other -numbers are internally rounded to (typically) 53 binary digits accuracy. -As a result, two floating point numbers will not reliably be equal -unless they have been computed by the same algorithm, and not always -even then. For example +integers and fractions whose denominator is a power of 2. All other numbers +are internally rounded to (typically) 53 binary digits accuracy. As a +result, two floating point numbers will not reliably be equal unless they +have been computed by the same algorithm, and not always even then. For +example R> a <- sqrt(2) R> a * a == 2 @@ -2212,22 +2152,21 @@ R> print(a * a, digits = 18) [1] 2.00000000000000044 - The function 'all.equal()' compares two objects using a numeric -tolerance of '.Machine$double.eps ^ 0.5'. If you want much greater -accuracy than this you will need to consider error propagation -carefully. + The function 'all.equal()' compares two objects using a numeric tolerance +of '.Machine$double.eps ^ 0.5'. If you want much greater accuracy than this +you will need to consider error propagation carefully. A discussion with many easily followed examples is in Appendix G -"Computational Precision and Floating Point Arithmetic", pages 753-771 -of _Statistical Analysis and Data Display: An Intermediate Course with -Examples in R_, Richard M. Heiberger and Burt Holland (Springer 2015, -second edition). This appendix is a free download from +"Computational Precision and Floating Point Arithmetic", pages 753-771 of +_Statistical Analysis and Data Display: An Intermediate Course with Examples +in R_, Richard M. Heiberger and Burt Holland (Springer 2015, second +edition). This appendix is a free download from . For more information, see e.g. David Goldberg (1991), "What Every Computer Scientist Should Know About Floating-Point Arithmetic", _ACM Computing Surveys_, *23/1*, 5-48, also available via -. +. Here is another example, this time using addition: @@ -2245,16 +2184,16 @@ 7.32 How can I capture or ignore errors in a long simulation? ============================================================= -Use 'try()', which returns an object of class '"try-error"' instead of -an error, or preferably 'tryCatch()', where the return value can be -configured more flexibly. For example +Use 'try()', which returns an object of class '"try-error"' instead of an +error, or preferably 'tryCatch()', where the return value can be configured +more flexibly. For example beta[i,] <- tryCatch(coef(lm(formula, data)), error = function(e) rep(NaN, 4)) -would return the coefficients if the 'lm()' call succeeded and would -return 'c(NaN, NaN, NaN, NaN)' if it failed (presumably there are -supposed to be 4 coefficients in this example). +would return the coefficients if the 'lm()' call succeeded and would return +'c(NaN, NaN, NaN, NaN)' if it failed (presumably there are supposed to be 4 +coefficients in this example). 7.33 Why are powers of negative numbers wrong? ============================================== @@ -2284,11 +2223,10 @@ 7.34 How can I save the result of each iteration in a loop into a separate file? ================================================================================ -One way is to use 'paste()' (or 'sprintf()') to concatenate a stem -filename and the iteration number while 'file.path()' constructs the -path. For example, to save results into files 'result1.rda', ..., -'result100.rda' in the subdirectory 'Results' of the current working -directory, one can use +One way is to use 'paste()' (or 'sprintf()') to concatenate a stem filename +and the iteration number while 'file.path()' constructs the path. For +example, to save results into files 'result1.rda', ..., 'result100.rda' in +the subdirectory 'Results' of the current working directory, one can use for(i in 1:100) { ## Calculations constructing "some_object" ... @@ -2299,35 +2237,32 @@ 7.35 Why are p-values not displayed when using lmer()? ====================================================== -Doug Bates has kindly provided an extensive response in a post to the -r-help list, which can be reviewed at +Doug Bates has kindly provided an extensive response in a post to the r-help +list, which can be reviewed at . 7.36 Why are there unwanted borders, lines or grid-like artifacts when viewing a plot saved to a PS or PDF file? ================================================================================================================ -This can occur when using functions such as 'polygon()', -'filled.contour()', 'image()' or other functions which may call these -internally. In the case of 'polygon()', you may observe unwanted -borders between the polygons even when setting the 'border' argument to -'NA' or '"transparent"'. +This can occur when using functions such as 'polygon()', 'filled.contour()', +'image()' or other functions which may call these internally. In the case +of 'polygon()', you may observe unwanted borders between the polygons even +when setting the 'border' argument to 'NA' or '"transparent"'. The source of the problem is the PS/PDF viewer when the plot is -anti-aliased. The details for the solution will be different depending -upon the viewer used, the operating system and may change over time. -For some common viewers, consider the following: +anti-aliased. The details for the solution will be different depending upon +the viewer used, the operating system and may change over time. For some +common viewers, consider the following: Acrobat Reader (cross platform) There are options in Preferences to enable/disable text smoothing, - image smoothing and line art smoothing. Disable line art - smoothing. + image smoothing and line art smoothing. Disable line art smoothing. Preview (macOS) - There is an option in Preferences to enable/disable anti-aliasing - of text and line art. Disable this option. + There is an option in Preferences to enable/disable anti-aliasing of + text and line art. Disable this option. GSview (cross platform) - There are settings for Text Alpha and Graphics Alpha. Change - Graphics Alpha from 4 bits to 1 bit to disable graphic - anti-aliasing. + There are settings for Text Alpha and Graphics Alpha. Change Graphics + Alpha from 4 bits to 1 bit to disable graphic anti-aliasing. gv (Unix-like X) There is an option to enable/disable anti-aliasing. Disable this option. @@ -2338,22 +2273,22 @@ From a console command line, use: $ kwriteconfig --file okularpartrc --group 'Dlg Performance' \ --key GraphicsAntialias Disabled - Then restart Okular. Change the final word to 'Enabled' to restore - the original setting. + Then restart Okular. Change the final word to 'Enabled' to restore the + original setting. 7.37 Why does backslash behave strangely inside strings? ======================================================== -This question most often comes up in relation to file names (see *note -How do file names work in Windows?::) but it also happens that people -complain that they cannot seem to put a single '\' character into a text -string unless it happens to be followed by certain other characters. - - To understand this, you have to distinguish between character strings -and _representations_ of character strings. Mostly, the representation -in R is just the string with a single or double quote at either end, but -there are strings that cannot be represented that way, e.g., strings -that themselves contain the quote character. So +This question most often comes up in relation to file names (see *note How +do file names work in Windows?::) but it also happens that people complain +that they cannot seem to put a single '\' character into a text string +unless it happens to be followed by certain other characters. + + To understand this, you have to distinguish between character strings and +_representations_ of character strings. Mostly, the representation in R is +just the string with a single or double quote at either end, but there are +strings that cannot be represented that way, e.g., strings that themselves +contain the quote character. So > str <- "This \"text\" is quoted" > str @@ -2362,28 +2297,27 @@ This "text" is quoted The _escape sequences_ '\"' and '\n' represent a double quote and the -newline character respectively. Printing text strings, using 'print()' -or by typing the name at the prompt will use the escape sequences too, -but the 'cat()' function will display the string as-is. Notice that -'"\n"' is a one-character string, not two; the backslash is not actually -in the string, it is just generated in the printed representation. +newline character respectively. Printing text strings, using 'print()' or +by typing the name at the prompt will use the escape sequences too, but the +'cat()' function will display the string as-is. Notice that '"\n"' is a +one-character string, not two; the backslash is not actually in the string, +it is just generated in the printed representation. > nchar("\n") [1] 1 > substring("\n", 1, 1) [1] "\n" - So how do you put a backslash in a string? For this, you have to -escape the escape character. I.e., you have to double the backslash. -as in + So how do you put a backslash in a string? For this, you have to escape +the escape character. I.e., you have to double the backslash. as in > cat("\\n", "\n") \n - Some functions, particularly those involving regular expression -matching, themselves use metacharacters, which may need to be escaped by -the backslash mechanism. In those cases you may need a _quadruple_ -backslash to represent a single literal one. + Some functions, particularly those involving regular expression matching, +themselves use metacharacters, which may need to be escaped by the backslash +mechanism. In those cases you may need a _quadruple_ backslash to represent +a single literal one. In versions of R up to 2.4.1 an unknown escape sequence like '\p' was quietly interpreted as just 'p'. Current versions of R emit a warning. @@ -2391,130 +2325,123 @@ 7.38 How can I put error bars or confidence bands on my plot? ============================================================= -Some functions will display a particular kind of plot with error bars, -such as the 'bar.err()' function in the *agricolae* +Some functions will display a particular kind of plot with error bars, such +as the 'bar.err()' function in the *agricolae* (https://CRAN.R-project.org/package=agricolae) package, the 'plotCI()' function in the *gplots* (https://CRAN.R-project.org/package=gplots) package, the 'plotCI()' and 'brkdn.plot()' functions in the *plotrix* -(https://CRAN.R-project.org/package=plotrix) package and the -'error.bars()', 'error.crosses()' and 'error.bars.by()' functions in the -*psych* (https://CRAN.R-project.org/package=psych) package. Within -these types of functions, some will accept the measures of dispersion -(e.g., 'plotCI'), some will calculate the dispersion measures from the -raw values ('bar.err', 'brkdn.plot'), and some will do both -('error.bars'). Still other functions will just display error bars, -like the dispersion function in the *plotrix* +(https://CRAN.R-project.org/package=plotrix) package and the 'error.bars()', +'error.crosses()' and 'error.bars.by()' functions in the *psych* +(https://CRAN.R-project.org/package=psych) package. Within these types of +functions, some will accept the measures of dispersion (e.g., 'plotCI'), +some will calculate the dispersion measures from the raw values ('bar.err', +'brkdn.plot'), and some will do both ('error.bars'). Still other functions +will just display error bars, like the dispersion function in the *plotrix* (https://CRAN.R-project.org/package=plotrix) package. Most of the above -functions use the 'arrows()' function in the base *graphics* package to -draw the error bars. +functions use the 'arrows()' function in the base *graphics* package to draw +the error bars. The above functions all use the base graphics system. The grid and -lattice graphics systems also have specific functions for displaying -error bars, e.g., the 'grid.arrow()' function in the *grid* package, and -the 'geom_errorbar()', 'geom_errorbarh()', 'geom_pointrange()', -'geom_linerange()', 'geom_crossbar()' and 'geom_ribbon()' functions in -the *ggplot2* (https://CRAN.R-project.org/package=ggplot2) package. In -the lattice system, error bars can be displayed with 'Dotplot()' or -'xYplot()' in the *Hmisc* (https://CRAN.R-project.org/package=Hmisc) -package and 'segplot()' in the *latticeExtra* +lattice graphics systems also have specific functions for displaying error +bars, e.g., the 'grid.arrow()' function in the *grid* package, and the +'geom_errorbar()', 'geom_errorbarh()', 'geom_pointrange()', +'geom_linerange()', 'geom_crossbar()' and 'geom_ribbon()' functions in the +*ggplot2* (https://CRAN.R-project.org/package=ggplot2) package. In the +lattice system, error bars can be displayed with 'Dotplot()' or 'xYplot()' +in the *Hmisc* (https://CRAN.R-project.org/package=Hmisc) package and +'segplot()' in the *latticeExtra* (https://CRAN.R-project.org/package=latticeExtra) package. 7.39 How do I create a plot with two y-axes? ============================================ Creating a graph with two y-axes, i.e., with two sorts of data that are -scaled to the same vertical size and showing separate vertical axes on -the left and right sides of the plot that reflect the original scales of -the data, is possible in R but is not recommended. The basic approach -for constructing such graphs is to use 'par(new=TRUE)' (see '?par'); -functions 'twoord.plot()' (in the *plotrix* -(https://CRAN.R-project.org/package=plotrix) package) and -'doubleYScale()' (in the *latticeExtra* -(https://CRAN.R-project.org/package=latticeExtra) package) automate the -process somewhat. +scaled to the same vertical size and showing separate vertical axes on the +left and right sides of the plot that reflect the original scales of the +data, is possible in R but is not recommended. The basic approach for +constructing such graphs is to use 'par(new=TRUE)' (see '?par'); functions +'twoord.plot()' (in the *plotrix* +(https://CRAN.R-project.org/package=plotrix) package) and 'doubleYScale()' +(in the *latticeExtra* (https://CRAN.R-project.org/package=latticeExtra) +package) automate the process somewhat. 7.40 How do I access the source code for a function? ==================================================== -In most cases, typing the name of the function will print its source -code. However, code is sometimes hidden in a namespace, or compiled. -For a complete overview on how to access source code, see Uwe Ligges -(2006), "Help Desk: Accessing the sources", _R News_, *6/4*, 43-45 +In most cases, typing the name of the function will print its source code. +However, code is sometimes hidden in a namespace, or compiled. For a +complete overview on how to access source code, see Uwe Ligges (2006), "Help +Desk: Accessing the sources", _R News_, *6/4*, 43-45 (). 7.41 Why does summary() report strange results for the R^2 estimate when I fit a linear model with no intercept? ================================================================================================================ -As described in '?summary.lm', when the intercept is zero (e.g., from 'y -~ x - 1' or 'y ~ x + 0'), 'summary.lm()' uses the formula R^2 = 1 - -Sum(R[i]^2) / Sum((y[i])^2) which is different from the usual R^2 = 1 - -Sum(R[i]^2) / Sum((y[i] - mean(y))^2). There are several reasons for -this: +As described in '?summary.lm', when the intercept is zero (e.g., from 'y ~ x +- 1' or 'y ~ x + 0'), 'summary.lm()' uses the formula R^2 = 1 - Sum(R[i]^2) +/ Sum((y[i])^2) which is different from the usual R^2 = 1 - Sum(R[i]^2) / +Sum((y[i] - mean(y))^2). There are several reasons for this: * Otherwise the R^2 could be negative (because the model with zero - intercept can fit _worse_ than the constant-mean model it is - implicitly compared to). + intercept can fit _worse_ than the constant-mean model it is implicitly + compared to). * If you set the slope to zero in the model with a line through the origin you get fitted values y*=0 - * The model with constant, non-zero mean is not nested in the model - with a line through the origin. + * The model with constant, non-zero mean is not nested in the model with + a line through the origin. All these come down to saying that if you know _a priori_ that E[Y]=0 -when x=0 then the 'null' model that you should compare to the fitted -line, the model where x doesn't explain any of the variance, is the -model where E[Y]=0 everywhere. (If you don't know a priori that E[Y]=0 -when x=0, then you probably shouldn't be fitting a line through the -origin.) +when x=0 then the 'null' model that you should compare to the fitted line, +the model where x doesn't explain any of the variance, is the model where +E[Y]=0 everywhere. (If you don't know a priori that E[Y]=0 when x=0, then +you probably shouldn't be fitting a line through the origin.) 7.42 Why is R apparently not releasing memory? ============================================== -This question is often asked in different flavors along the lines of "I -have removed objects in R and run 'gc()' and yet 'ps'/'top' still shows -the R process using a lot of memory", often on Linux machines. +This question is often asked in different flavors along the lines of "I have +removed objects in R and run 'gc()' and yet 'ps'/'top' still shows the R +process using a lot of memory", often on Linux machines. This is an artifact of the way the operating system (OS) allocates -memory. In general it is common that the OS is not capable of releasing -all unused memory. In extreme cases it is possible that even if R frees -almost all its memory, the OS can not release any of it due to its -design and thus tools such as 'ps' or 'top' will report substantial -amount of resident RAM used by the R process even though R has released -all that memory. In general such tools do _not_ report the actual -memory usage of the process but rather what the OS is reserving for that -process. - - The short answer is that this is a limitation of the memory allocator -in the operating system and there is nothing R can do about it. That -space is simply kept by the OS in the hope that R will ask for it later. -The following paragraph gives more in-depth answer with technical -details on how this happens. - - Most systems use two separate ways to allocate memory. For -allocation of large chunks they will use 'mmap' to map memory into the -process address space. Such chunks can be released immediately when -they are completely free, because they can reside anywhere in the -virtual memory. However, this is a relatively expensive operation and -many OSes have a limit on the number of such allocated chunks, so this -is only used for allocating large memory regions. For smaller -allocations the system can expand the data segment of the process -(historically using the 'brk' system call), but this whole area is -always contiguous. The OS can only move the end of this space, it -cannot create any "holes". Since this operation is fairly cheap, it is -used for allocations of small pieces of memory. However, the -side-effect is that even if there is just one byte that is in use at the -end of the data segment, the OS cannot release any memory at all, -because it cannot change the address of that byte. This is actually -more common than it may seem, because allocating a lot of intermediate -objects, then allocating a result object and removing all intermediate -objects is a very common practice. Since the result is allocated at the -end it will prevent the OS from releasing any memory used by the -intermediate objects. In practice, this is not necessarily a problem, -because modern operating systems can page out unused portions of the -virtual memory so it does not necessarily reduce the amount of real -memory available for other applications. Typically, small objects such -as strings or pairlists will be affected by this behavior, whereas large -objects such as long vectors will be allocated using 'mmap' and thus not -affected. On Linux (and possibly other Unix-like systems) it is -possible to use the 'mallinfo' system call (also see the mallinfo +memory. In general it is common that the OS is not capable of releasing all +unused memory. In extreme cases it is possible that even if R frees almost +all its memory, the OS can not release any of it due to its design and thus +tools such as 'ps' or 'top' will report substantial amount of resident RAM +used by the R process even though R has released all that memory. In +general such tools do _not_ report the actual memory usage of the process +but rather what the OS is reserving for that process. + + The short answer is that this is a limitation of the memory allocator in +the operating system and there is nothing R can do about it. That space is +simply kept by the OS in the hope that R will ask for it later. The +following paragraph gives more in-depth answer with technical details on how +this happens. + + Most systems use two separate ways to allocate memory. For allocation of +large chunks they will use 'mmap' to map memory into the process address +space. Such chunks can be released immediately when they are completely +free, because they can reside anywhere in the virtual memory. However, this +is a relatively expensive operation and many OSes have a limit on the number +of such allocated chunks, so this is only used for allocating large memory +regions. For smaller allocations the system can expand the data segment of +the process (historically using the 'brk' system call), but this whole area +is always contiguous. The OS can only move the end of this space, it cannot +create any "holes". Since this operation is fairly cheap, it is used for +allocations of small pieces of memory. However, the side-effect is that +even if there is just one byte that is in use at the end of the data +segment, the OS cannot release any memory at all, because it cannot change +the address of that byte. This is actually more common than it may seem, +because allocating a lot of intermediate objects, then allocating a result +object and removing all intermediate objects is a very common practice. +Since the result is allocated at the end it will prevent the OS from +releasing any memory used by the intermediate objects. In practice, this is +not necessarily a problem, because modern operating systems can page out +unused portions of the virtual memory so it does not necessarily reduce the +amount of real memory available for other applications. Typically, small +objects such as strings or pairlists will be affected by this behavior, +whereas large objects such as long vectors will be allocated using 'mmap' +and thus not affected. On Linux (and possibly other Unix-like systems) it +is possible to use the 'mallinfo' system call (also see the mallinfo (https://rforge.net/mallinfo) package) to query the allocator about the layout of the allocations, including the actually used memory as well as unused memory that cannot be released. @@ -2522,18 +2449,18 @@ 7.43 How can I enable secure https downloads in R? ================================================== -When R transfers files over HTTP (e.g., using the 'install.packages()' -or 'download.file()' function), a download method is chosen based on the -'download.file.method' option. There are several methods available and -the default behavior if no option is explicitly specified is to use R's -internal HTTP implementation. In most circumstances this internal -method will not support HTTPS URLs so you will need to override the -default: this is done automatically for such URLs as from R 3.2.2. - - R versions 3.2.0 and greater include two download methods -('"libcurl"' and '"wininet"') that both support HTTPS connections: we -recommend that you use these methods. The requisite code to add to -'.Rprofile' or 'Rprofile.site' is: +When R transfers files over HTTP (e.g., using the 'install.packages()' or +'download.file()' function), a download method is chosen based on the +'download.file.method' option. There are several methods available and the +default behavior if no option is explicitly specified is to use R's internal +HTTP implementation. In most circumstances this internal method will not +support HTTPS URLs so you will need to override the default: this is done +automatically for such URLs as from R 3.2.2. + + R versions 3.2.0 and greater include two download methods ('"libcurl"' +and '"wininet"') that both support HTTPS connections: we recommend that you +use these methods. The requisite code to add to '.Rprofile' or +'Rprofile.site' is: options(download.file.method = "wininet", url.method = "wininet") (Windows) @@ -2542,21 +2469,21 @@ (Method '"wininet"' is the default on Windows as from R 3.2.2.) - Note that the '"libcurl"' method may or may not have been compiled -in. In the case that it was not, i.e. 'capabilities("libcurl") == -FALSE', we recommend method '"wget"' on Linux and '"curl"' on macOS. It -is possible that system versions of '"libcurl"', 'wget' or 'curl' may -have been compiled without HTTPS support, but this is unlikely. As from -R 3.3.0 '"libcurl"' with HTTPS support is required except on Windows. + Note that the '"libcurl"' method may or may not have been compiled in. +In the case that it was not, i.e. 'capabilities("libcurl") == FALSE', we +recommend method '"wget"' on Linux and '"curl"' on macOS. It is possible +that system versions of '"libcurl"', 'wget' or 'curl' may have been compiled +without HTTPS support, but this is unlikely. As from R 3.3.0 '"libcurl"' +with HTTPS support is required except on Windows. 7.44 How can I get CRAN package binaries for outdated versions of R? ==================================================================== Since March 2016, Windows and macOS binaries of CRAN packages for old versions of R (released more than 5 years ago) are made available from a -central CRAN archive server instead of the CRAN mirrors. To get these, -one should set the CRAN "mirror" element of the 'repos' option -accordingly, by something like +central CRAN archive server instead of the CRAN mirrors. To get these, one +should set the CRAN "mirror" element of the 'repos' option accordingly, by +something like local({r <- getOption("repos") r["CRAN"] <- "http://CRAN-archive.R-project.org" options(repos = r) @@ -2571,22 +2498,22 @@ Suppose you want to provide a summary method for class '"foo"'. Then 'summary.foo()' should not print anything, but return an object of class -'"summary.foo"', _and_ you should write a method 'print.summary.foo()' -which nicely prints the summary information and invisibly returns its -object. This approach is preferred over having 'summary.foo()' print -summary information and return something useful, as sometimes you need -to grab something computed by 'summary()' inside a function or similar. -In such cases you don't want anything printed. +'"summary.foo"', _and_ you should write a method 'print.summary.foo()' which +nicely prints the summary information and invisibly returns its object. +This approach is preferred over having 'summary.foo()' print summary +information and return something useful, as sometimes you need to grab +something computed by 'summary()' inside a function or similar. In such +cases you don't want anything printed. 8.2 How can I debug dynamically loaded code? ============================================ -Roughly speaking, you need to start R inside the debugger, load the -code, send an interrupt, and then set the required breakpoints. +Roughly speaking, you need to start R inside the debugger, load the code, +send an interrupt, and then set the required breakpoints. - See section "Finding entry points in dynamically loaded code" in -'Writing R Extensions'. This manual is included in the R distribution, -*note What documentation exists for R?::. + See section "Finding entry points in dynamically loaded code" in 'Writing +R Extensions'. This manual is included in the R distribution, *note What +documentation exists for R?::. 8.3 How can I inspect R objects when debugging? =============================================== @@ -2599,26 +2526,25 @@ 8.4 How can I change compilation flags? ======================================= -Suppose you have C code file for dynloading into R, but you want to use -'R CMD SHLIB' with compilation flags other than the default ones (which -were determined when R was built). - - Starting with R 2.1.0, users can provide personal Makevars -configuration files in '$HOME/.R' to override the default flags. See -section "Add-on packages" in 'R Installation and Administration'. +Suppose you have C code file for dynloading into R, but you want to use 'R +CMD SHLIB' with compilation flags other than the default ones (which were +determined when R was built). + + Starting with R 2.1.0, users can provide personal Makevars configuration +files in '$HOME/.R' to override the default flags. See section "Add-on +packages" in 'R Installation and Administration'. For earlier versions of R, you could change the file -'R_HOME/etc/Makeconf' to reflect your preferences, or (at least for -systems using GNU Make) override them by the environment variable -'MAKEFLAGS'. See section "Creating shared objects" in 'Writing R -Extensions'. +'R_HOME/etc/Makeconf' to reflect your preferences, or (at least for systems +using GNU Make) override them by the environment variable 'MAKEFLAGS'. See +section "Creating shared objects" in 'Writing R Extensions'. 8.5 How can I debug S4 methods? =============================== -Use the 'trace()' function with argument 'signature=' to add calls to -the browser or any other code to the method that will be dispatched for -the corresponding signature. See '?trace' for details. +Use the 'trace()' function with argument 'signature=' to add calls to the +browser or any other code to the method that will be dispatched for the +corresponding signature. See '?trace' for details. 9 R Bugs ******** @@ -2626,144 +2552,137 @@ 9.1 What is a bug? ================== -If R executes an illegal instruction, or dies with an operating system -error message that indicates a problem in the program (as opposed to -something like "disk full"), then it is certainly a bug. If you call -'.C()', '.Fortran()', '.External()' or '.Call()' (or '.Internal()') -yourself (or in a function you wrote), you can always crash R by using -wrong argument types (modes). This is not a bug. +If R executes an illegal instruction, or dies with an operating system error +message that indicates a problem in the program (as opposed to something +like "disk full"), then it is certainly a bug. If you call '.C()', +'.Fortran()', '.External()' or '.Call()' (or '.Internal()') yourself (or in +a function you wrote), you can always crash R by using wrong argument types +(modes). This is not a bug. Taking forever to complete a command can be a bug, but you must make certain that it was really R's fault. Some commands simply take a long -time. If the input was such that you _know_ it should have been -processed quickly, report a bug. If you don't know whether the command -should take a long time, find out by looking in the manual or by asking -for assistance. - - If a command you are familiar with causes an R error message in a -case where its usual definition ought to be reasonable, it is probably a -bug. If a command does the wrong thing, that is a bug. But be sure you -know for certain what it ought to have done. If you aren't familiar -with the command, or don't know for certain how the command is supposed -to work, then it might actually be working right. For example, people -sometimes think there is a bug in R's mathematics because they don't -understand how finite-precision arithmetic works. Rather than jumping -to conclusions, show the problem to someone who knows for certain. -Unexpected results of comparison of decimal numbers, for example '0.28 * -100 != 28' or '0.1 + 0.2 != 0.3', are not a bug. *Note Why doesn't R -think these numbers are equal?::, for more details. - - Finally, a command's intended definition may not be best for -statistical analysis. This is a very important sort of problem, but it -is also a matter of judgment. Also, it is easy to come to such a -conclusion out of ignorance of some of the existing features. It is -probably best not to complain about such a problem until you have -checked the documentation in the usual ways, feel confident that you -understand it, and know for certain that what you want is not available. -If you are not sure what the command is supposed to do after a careful -reading of the manual this indicates a bug in the manual. The manual's -job is to make everything clear. It is just as important to report -documentation bugs as program bugs. However, we know that the +time. If the input was such that you _know_ it should have been processed +quickly, report a bug. If you don't know whether the command should take a +long time, find out by looking in the manual or by asking for assistance. + + If a command you are familiar with causes an R error message in a case +where its usual definition ought to be reasonable, it is probably a bug. If +a command does the wrong thing, that is a bug. But be sure you know for +certain what it ought to have done. If you aren't familiar with the +command, or don't know for certain how the command is supposed to work, then +it might actually be working right. For example, people sometimes think +there is a bug in R's mathematics because they don't understand how +finite-precision arithmetic works. Rather than jumping to conclusions, show +the problem to someone who knows for certain. Unexpected results of +comparison of decimal numbers, for example '0.28 * 100 != 28' or '0.1 + 0.2 +!= 0.3', are not a bug. *Note Why doesn't R think these numbers are +equal?::, for more details. + + Finally, a command's intended definition may not be best for statistical +analysis. This is a very important sort of problem, but it is also a matter +of judgment. Also, it is easy to come to such a conclusion out of ignorance +of some of the existing features. It is probably best not to complain about +such a problem until you have checked the documentation in the usual ways, +feel confident that you understand it, and know for certain that what you +want is not available. If you are not sure what the command is supposed to +do after a careful reading of the manual this indicates a bug in the manual. +The manual's job is to make everything clear. It is just as important to +report documentation bugs as program bugs. However, we know that the introductory documentation is seriously inadequate, so you don't need to report this. - If the online argument list of a function disagrees with the manual, -one of them must be wrong, so report the bug. + If the online argument list of a function disagrees with the manual, one +of them must be wrong, so report the bug. 9.2 How to report a bug ======================= When you decide that there is a bug, it is important to report it and to report it in a way which is useful. What is most useful is an exact -description of what commands you type, starting with the shell command -to run R, until the problem happens. Always include the version of R, -machine, and operating system that you are using; type 'version' in R to -print this. - - The most important principle in reporting a bug is to report _facts_, -not hypotheses or categorizations. It is always easier to report the -facts, but people seem to prefer to strain to posit explanations and -report them instead. If the explanations are based on guesses about how -R is implemented, they will be useless; others will have to try to -figure out what the facts must have been to lead to such speculations. -Sometimes this is impossible. But in any case, it is unnecessary work -for the ones trying to fix the problem. +description of what commands you type, starting with the shell command to +run R, until the problem happens. Always include the version of R, machine, +and operating system that you are using; type 'version' in R to print this. + + The most important principle in reporting a bug is to report _facts_, not +hypotheses or categorizations. It is always easier to report the facts, but +people seem to prefer to strain to posit explanations and report them +instead. If the explanations are based on guesses about how R is +implemented, they will be useless; others will have to try to figure out +what the facts must have been to lead to such speculations. Sometimes this +is impossible. But in any case, it is unnecessary work for the ones trying +to fix the problem. - For example, suppose that on a data set which you know to be quite -large the command + For example, suppose that on a data set which you know to be quite large +the command R> data.frame(x, y, z, monday, tuesday) -never returns. Do not report that 'data.frame()' fails for large data -sets. Perhaps it fails when a variable name is a day of the week. If -this is so then when others got your report they would try out the -'data.frame()' command on a large data set, probably with no day of the -week variable name, and not see any problem. There is no way in the -world that others could guess that they should try a day of the week -variable name. +never returns. Do not report that 'data.frame()' fails for large data sets. +Perhaps it fails when a variable name is a day of the week. If this is so +then when others got your report they would try out the 'data.frame()' +command on a large data set, probably with no day of the week variable name, +and not see any problem. There is no way in the world that others could +guess that they should try a day of the week variable name. Or perhaps the command fails because the last command you used was a -method for '"["()' that had a bug causing R's internal data structures -to be corrupted and making the 'data.frame()' command fail from then on. -This is why others need to know what other commands you have typed (or -read from your startup file). - - It is very useful to try and find simple examples that produce -apparently the same bug, and somewhat useful to find simple examples -that might be expected to produce the bug but actually do not. If you -want to debug the problem and find exactly what caused it, that is -wonderful. You should still report the facts as well as any -explanations or solutions. Please include an example that reproduces -(e.g., ) the problem, -preferably the simplest one you have found. - - Invoking R with the '--vanilla' option may help in isolating a bug. -This ensures that the site profile and saved data files are not read. - - Before you actually submit a bug report, you should check whether the -bug has already been reported and/or fixed. First, try the "Show open -bugs new-to-old" or the search facility on -. Second, consult -, which records changes -that will appear in the _next_ release of R, including bug fixes that do -not appear on the Bug Tracker. Third, if possible try the current -r-patched or r-devel version of R. If a bug has already been reported or -fixed, please do not submit further bug reports on it. Finally, check -carefully whether the bug is with R, or a contributed package. Bug +method for '"["()' that had a bug causing R's internal data structures to be +corrupted and making the 'data.frame()' command fail from then on. This is +why others need to know what other commands you have typed (or read from +your startup file). + + It is very useful to try and find simple examples that produce apparently +the same bug, and somewhat useful to find simple examples that might be +expected to produce the bug but actually do not. If you want to debug the +problem and find exactly what caused it, that is wonderful. You should +still report the facts as well as any explanations or solutions. Please +include an example that reproduces (e.g., +) the problem, preferably the +simplest one you have found. + + Invoking R with the '--vanilla' option may help in isolating a bug. This +ensures that the site profile and saved data files are not read. + + Before you actually submit a bug report, you should check whether the bug +has already been reported and/or fixed. First, try the "Show open bugs +new-to-old" or the search facility on . +Second, consult , which +records changes that will appear in the _next_ release of R, including bug +fixes that do not appear on the Bug Tracker. Third, if possible try the +current r-patched or r-devel version of R. If a bug has already been +reported or fixed, please do not submit further bug reports on it. Finally, +check carefully whether the bug is with R, or a contributed package. Bug reports on contributed packages should be sent first to the package maintainer, and only submitted to the R-bugs repository by package maintainers, mentioning the package in the subject line. A bug report can be generated using the function 'bug.report()'. For -reports on R this will open the Web page at -: for a contributed package it will open -the package's bug tracker Web page or help you compose an email to the -maintainer. - - There is a section of the bug repository for suggestions for -enhancements for R labelled 'wishlist'. Suggestions can be submitted in -the same ways as bugs, but please ensure that the subject line makes -clear that this is for the wishlist and not a bug report, for example by -starting with 'Wishlist:'. - - Comments on and suggestions for the Windows port of R should be sent -to . - - Corrections to and comments on message translations should be sent to -the last translator (listed at the top of the appropriate '.po' file) or -to the translation team as listed at +reports on R this will open the Web page at : +for a contributed package it will open the package's bug tracker Web page or +help you compose an email to the maintainer. + + There is a section of the bug repository for suggestions for enhancements +for R labelled 'wishlist'. Suggestions can be submitted in the same ways as +bugs, but please ensure that the subject line makes clear that this is for +the wishlist and not a bug report, for example by starting with 'Wishlist:'. + + Comments on and suggestions for the Windows port of R should be sent to +. + + Corrections to and comments on message translations should be sent to the +last translator (listed at the top of the appropriate '.po' file) or to the +translation team as listed at . 10 Acknowledgments ****************** -Of course, many many thanks to Robert and Ross for the R system, and to -the package writers and porters for adding to it. +Of course, many many thanks to Robert and Ross for the R system, and to the +package writers and porters for adding to it. - Special thanks go to Doug Bates, Peter Dalgaard, Paul Gilbert, -Stefano Iacus, Fritz Leisch, Jim Lindsey, Thomas Lumley, Martin -Maechler, Brian D. Ripley, Anthony Rossini, and Andreas Weingessel for -their comments which helped me improve this FAQ. + Special thanks go to Doug Bates, Peter Dalgaard, Paul Gilbert, Stefano +Iacus, Fritz Leisch, Jim Lindsey, Thomas Lumley, Martin Maechler, Brian D. +Ripley, Anthony Rossini, and Andreas Weingessel for their comments which +helped me improve this FAQ. More to come soon ... diff -Nru r-base-4.0.3/doc/html/about.html r-base-4.1.2/doc/html/about.html --- r-base-4.0.3/doc/html/about.html 2018-09-25 08:43:51.000000000 +0000 +++ r-base-4.1.2/doc/html/about.html 2021-06-19 22:15:01.000000000 +0000 @@ -3,10 +3,9 @@ R: About R + - - - +

About

@@ -45,5 +44,5 @@ independent" form which can be used to create versions for HTML, LaTeX, text, PDF etc. - +
diff -Nru r-base-4.0.3/doc/html/index-default.html r-base-4.1.2/doc/html/index-default.html --- r-base-4.0.3/doc/html/index-default.html 2018-09-25 08:43:49.000000000 +0000 +++ r-base-4.1.2/doc/html/index-default.html 2021-06-19 22:15:01.000000000 +0000 @@ -3,9 +3,9 @@ The R Language + - - +

Statistical Data Analysis @@ -72,5 +72,5 @@ - +

diff -Nru r-base-4.0.3/doc/html/NEWS.2.html r-base-4.1.2/doc/html/NEWS.2.html --- r-base-4.0.3/doc/html/NEWS.2.html 2018-09-25 08:43:49.000000000 +0000 +++ r-base-4.1.2/doc/html/NEWS.2.html 2021-08-19 22:15:01.000000000 +0000 @@ -1,7 +1,8 @@ R: R News + - +
NEWSR Documentation
@@ -135,11 +136,11 @@
  • The configure tests for Objective C and Objective -C++ now work on Mac OS 10.8 with Xcode 4.5.2 (PR#15107). +C++ now work on Mac OS 10.8 with Xcode 4.5.2 (PR#15107).

  • The cairo-based versions of X11() now work with -current versions of cairographics (e.g., 1.12.10). (PR#15168) +current versions of cairographics (e.g., 1.12.10). (PR#15168)

    A workaround for earlier versions of R is to use X11.options(type = "nbcairo"). @@ -163,7 +164,7 @@

    • beta(a, b) could overflow to infinity in its calculations when one of a and b was less than one. -(PR#15075) +(PR#15075)

    • lbeta(a, b) no longer gives NaN if a or @@ -171,7 +172,7 @@

    • bquote() is now able to substitute default arguments in -single-argument functions. (PR#15077) +single-argument functions. (PR#15077)

    • browseEnv(html = FALSE) would segfault if called from @@ -179,7 +180,7 @@

    • [[<- for lists (generic vectors) needed to increment -NAMED count when RHS is used more than once. (PR#15098) +NAMED count when RHS is used more than once. (PR#15098)

    • On Windows, warnings about opening a file or pipe with a @@ -188,7 +189,7 @@

    • The call() function did not duplicate its arguments. -(PR#15115) +(PR#15115)

    • TukeyHSD() could give NA results with some @@ -206,18 +207,18 @@

    • summaryRprof(memory = "both") mixed up the units of -Vcells and Ncells: it now works in bytes. (PR#15138) +Vcells and Ncells: it now works in bytes. (PR#15138)

    • -
    • tools::Rd2HTML() would sometimes delete text. (PR#15134) +

    • tools::Rd2HTML() would sometimes delete text. (PR#15134)

    • plot() failed for "table" objects containing -just one entry. (PR#15118) +just one entry. (PR#15118)

    • embedFonts() needed to quote some filepaths. -(PR#15149) +(PR#15149)

    • parallel::mccollect() handled NULL returns @@ -232,7 +233,7 @@

    • The report for optim(method = "L-BFGS-B", control = list(trace = 1)) reported the last completed and not the current iteration, unlike -other methods and trace levels. (PR#15103) +other methods and trace levels. (PR#15103)

    • qt(1e-12, 1.2) no longer gives NaN. @@ -261,11 +262,11 @@

    • Expressions involving user defined operators were not -always deparsed faithfully. (PR#15179) +always deparsed faithfully. (PR#15179)

    • The enc2utf8() function converted NA_character_ -to "NA" in non-UTF-8 locales. (PR#15201) +to "NA" in non-UTF-8 locales. (PR#15201)

    • The exclude argument to xtabs() was ignored @@ -313,7 +314,7 @@

    • The "Date" and "POSIXt" methods for cut() will accept an unsorted breaks argument (as the default method does, although this was undocumented). -(Wish of PR#14961.) +(Wish of PR#14961.)

    • Reference class methods (in the methods package) that @@ -346,7 +347,7 @@

    • model.matrix(~1, ...) now also contains the same -rownames that less trivial formulae produce. (Wish of PR#14992, +rownames that less trivial formulae produce. (Wish of PR#14992, changes the output of several packages.)

    • @@ -356,7 +357,7 @@
    • The included LAPACK has been updated to 3.4.1, with some patches from the current SVN sources. (Inter alia, this -resolves PR#14692.) +resolves PR#14692.)

    • file.copy(recursive = TRUE) has some additional @@ -505,7 +506,7 @@

    • When R CMD Rd2pdf is used with ‘inputenx.sty’, it allows further characters (mainly for Eastern European languages) by including ‘ix-utf8enc.dfu’ (if available). -(Wish of PR#14989.) +(Wish of PR#14989.)

    • R CMD build now omits several types of hidden @@ -652,7 +653,7 @@

      • On Windows, starting Rterm via R.exe -caused Ctrl-C to misbehave. (PR#14948) +caused Ctrl-C to misbehave. (PR#14948)

      • The tools::latexToUtf8() function missed conversions that @@ -660,20 +661,20 @@

      • Long timezone specifications (such as a file name preceded -by :) could crash as.POSIXlt. (PR#14945) +by :) could crash as.POSIXlt. (PR#14945)

      • R CMD build --resave-data could fail if there was no ‘data’ directory but there was an ‘R/sysdata.rda’ file. -(PR#14947) +(PR#14947)

      • is.na() misbehaved on a 0-column data frame. -(PR#14959) +(PR#14959)

      • anova.lmlist() failed if test was -supplied. (PR#14960) +supplied. (PR#14960)

        It was unable to compute Cp tests for object of class "lm" (it assumed class "glm"). @@ -700,11 +701,11 @@

      • In ns() and bs(), specifying knots = NULL is now equivalent to omitting it, also when df is -specified. (PR#14970) +specified. (PR#14970)

      • sprintf() did not accept numbered arguments ending -in zero. (PR#14975) +in zero. (PR#14975)

      • rWishart() could overflow the C stack and maybe crash @@ -726,11 +727,11 @@

      • pdf(compress = TRUE) did not delete temporary files -it created until the end of the R session. (PR#14991) +it created until the end of the R session. (PR#14991)

      • logLik() did not detect the error of applying it -to a multiple-response linear model. (PR#15000) +to a multiple-response linear model. (PR#15000)

      • file.copy(recursive = TRUE) did not always report @@ -738,12 +739,12 @@

      • qgeom() could return -1 for extremely small -q. (PR#14967) +q. (PR#14967)

      • smooth.spline() used DUP = FALSE which allowed its compiled C code to change the function: this was masked by the -default byte-compilation. (PR#14965) +default byte-compilation. (PR#14965)

      • In Windows, the GUI preferences for foreground color were @@ -751,7 +752,7 @@

      • On OS X, the Quartz versions of the bitmap devices did not -respect antialias = "none". (PR#15006) +respect antialias = "none". (PR#15006)

      • unique() and similar would infinite-loop if called on @@ -765,7 +766,7 @@

      • terms.formula() could exhaust the stack, and the stack check did not always catch this before the segfault. -(PR#15013) +(PR#15013)

      • sort.list(method = "radix") could give incorrect @@ -785,11 +786,11 @@ it was of length 0.

      • -
      • Protection added to do_system. (PR#15025) +

      • Protection added to do_system. (PR#15025)

      • Printing of vectors with names > 1000 characters now works -correctly rather than truncating. (PR#15028) +correctly rather than truncating. (PR#15028)

      • qr() for a complex matrix did not pivot the column names. @@ -808,7 +809,7 @@

      • lm.wfit() could segfault in R 2.15.1 if all the -weights were zero. (PR#15044) +weights were zero. (PR#15044)

      • A malformed package name could cause R CMD INSTALL @@ -831,11 +832,11 @@

      • The detection of the C stack direction is better protected -against compiler optimization. (PR#15011) +against compiler optimization. (PR#15011)

      • Long custom line types would sometimes segfault on the -cairographics-based devices. (PR#15055) +cairographics-based devices. (PR#15055)

      • tools::checkPoFile() unprotected too early in its C @@ -846,7 +847,7 @@ infinite-loop if any of the input functions returned NA or NaN. This is now an error for the gradient or Hessian, and a warning for the function (with the value replaced by -Inf). (In part, PR#15052.) +Inf). (In part, PR#15052.)

      • The code for creating coerce() methods could @@ -855,7 +856,7 @@

      • arima.sim() could give too long an output in some -corner cases (in part, PR#15068). +corner cases (in part, PR#15068).

      • anova.glm() with test = "Rao" didn't work when @@ -1105,7 +1106,7 @@

      • The residuals in the 5-number summary printed by summary() on an "lm" object are now explicitly labelled as weighted residuals when non-constant weights are -present. (Wish of PR#14840.) +present. (Wish of PR#14840.)

      • tracemem() reported that all objects were copied @@ -1118,26 +1119,26 @@

      • The plot() method for class "stepfun" only used the optional xval argument to compute xlim and -not the points at which to plot (as documented). (PR#14864) +not the points at which to plot (as documented). (PR#14864)

      • Names containing characters which need to be escaped were -not deparsed properly. (PR#14846) +not deparsed properly. (PR#14846)

      • Trying to update (recommended) packages in ‘R_HOME/library’ without write access is now dealt with more gracefully. Further, such package updates may be skipped (with a warning), when a newer installed version is already going to be -used from .libPaths(). (PR#14866) +used from .libPaths(). (PR#14866)

      • hclust() is now fast again (as up to end of 2003), -with a different fix for the "median"/"centroid" problem. (PR#4195). +with a different fix for the "median"/"centroid" problem. (PR#4195).

      • get_all_vars() failed when the data came entirely -from vectors in the global environment. (PR#14847) +from vectors in the global environment. (PR#14847)

      • R CMD check with _R_CHECK_NO_RECOMMENDED_ @@ -1151,7 +1152,7 @@

      • Missing default argument added to implicit S4 generic for -backsolve(). (PR#14883) +backsolve(). (PR#14883)

      • Some bugs have been fixed in handling load actions that @@ -1171,15 +1172,15 @@

      • On Windows, the compatibility function x11() had not kept up with changes to windows(), and issued -warnings about bad parameters. (PR#14880) +warnings about bad parameters. (PR#14880)

      • On Windows, the Sys.glob() function did not handle -UNC paths as it was designed to try to do. (PR#14884) +UNC paths as it was designed to try to do. (PR#14884)

      • In package parallel, clusterApply() and similar -failed to handle a (pretty pointless) length-1 argument. (PR#14898) +failed to handle a (pretty pointless) length-1 argument. (PR#14898)

      • Quartz Cocoa display reacted asynchronously to @@ -1230,7 +1231,7 @@

      • The replacement method for window() now works correctly for multiple time series of class "mts". -(PR#14925) +(PR#14925)

      • is.unsorted() gave incorrect results on non-atomic @@ -1251,18 +1252,18 @@

      • Using a string as a “call” in an error condition with options(showErrorCalls=TRUE) could cause a segfault. -(PR#14931) +(PR#14931)

      • The string "infinity" allowed by C99 was not accepted as a numerical string value by e.g. scan() and -as.numeric(). (PR#14933) +as.numeric(). (PR#14933)

      • In legend(), setting some entries of lwd to NA was inconsistent (depending on the graphics device) in whether it would suppress those lines; now it consistently does -so. (PR#14926) +so. (PR#14926)

      • by() failed for a zero-row data frame. (Reported by @@ -1276,16 +1277,16 @@

      • xgettext() and related functions sometimes returned -items that were not strings for translation. (PR#14935) +items that were not strings for translation. (PR#14935)

      • plot(<lm>, which=5) now correctly labels the factor level combinations for the special case where all -h[i,i] are the same. (PR#14837) +h[i,i] are the same. (PR#14837)

      • Sys.glob() caused a segfault if the first element of -path was NA_character. (PR#14990) +path was NA_character. (PR#14990)

      @@ -1358,18 +1359,18 @@

    • legend() gains a text.font argument. (Suggested -by Tim Paine, PR#14719.) +by Tim Paine, PR#14719.)

    • nchar() and nzchar() no longer accept factors -(as integer vectors). (Wish of PR#6899.) +(as integer vectors). (Wish of PR#6899.)

    • summary() behaves slightly differently (or more precisely, its print() method does). For numeric inputs, the number of NAs is printed as an integer and not a real. For dates and datetimes, the number of NAs is included in the printed output -(the latter being the wish of PR#14720). +(the latter being the wish of PR#14720).

      The "data.frame" method is more consistent with the default method: in particular it now applies zapsmall() to @@ -1414,7 +1415,7 @@

    • The traceback() function can now be called with an integer argument, to display a current stack trace. (Wish of -PR#14770.) +PR#14770.)

    • setGeneric() calls can be simplified when creating @@ -1451,7 +1452,7 @@

    • The internal R_Srcref variable is now updated before the browser stops on entering a function. (Suggestion of -PR#14818.) +PR#14818.)

    • There are ‘bare-bones’ functions .colSums(), @@ -1479,7 +1480,7 @@

    • The stepping in debugging and single-step browsing modes has changed slightly: now left braces at the start of the body are stepped over for if statements as well as for for and -while statements. (Wish of PR#14814.) +while statements. (Wish of PR#14814.)

    • library() no longer warns about a conflict with a @@ -1508,7 +1509,7 @@

    • The "difftime" replacement method of units tries harder to preserve other attributes of the argument. (Wish -of PR#14839.) +of PR#14839.)

    • poly(raw = TRUE) no longer requires more unique @@ -1782,7 +1783,7 @@

    • The convention for x %/% 0L for integer-mode x has been changed from 0L to NA_integer_. -(PR#14754) +(PR#14754)

    • The exportMethods directive in a ‘NAMESPACE’ @@ -1805,7 +1806,7 @@

    • merge() is no longer allowed (in some ways) to create a data frame with duplicate column names (which confused -PR#14786). +PR#14786).

    • Fixes for rendering raster images on X11 and Windows devices @@ -1822,7 +1823,7 @@

    • dev.copy2pdf(out.type = "cairo") gave an error. -(PR#14827) +(PR#14827)

    • Virtual classes (e.g., class unions) had a NULL @@ -1862,11 +1863,11 @@

    • Closed the <li> tag in pages generated by - Rd2HTML(). (PR#14841) + Rd2HTML(). (PR#14841)

    • Axis tick marks could go out of range when a log scale was -used. (PR#14833) +used. (PR#14833)

    • Signature objects in methods were not allocated as S4 @@ -1972,7 +1973,7 @@

    • readLines() could overflow a buffer if the last line -of the file was not terminated. (PR#14766) +of the file was not terminated. (PR#14766)

    • R CMD check could miss undocumented S4 objects in @@ -1981,20 +1982,20 @@

    • The HTML Help Search page had malformed links. -(PR#14769) +(PR#14769)

    • A couple of instances of lack of protection of SEXPs -have been squashed. (PR#14772, PR#14773) +have been squashed. (PR#14772, PR#14773)

    • image(x, useRaster=TRUE) misbehaved on single-column -x. (PR#14774) +x. (PR#14774)

    • Negative values for options("max.print") or the max argument to print.default() caused crashes. Now the former -are ignored and the latter trigger an error. (PR#14779) +are ignored and the latter trigger an error. (PR#14779)

    • The text of a function body containing more than 4096 @@ -2016,19 +2017,19 @@

    • pdf(file = NULL) would produce a spurious file named -‘NA’. (PR#14808) +‘NA’. (PR#14808)

    • list2env() did not check the type of its envir -argument. (PR#14807) +argument. (PR#14807)

    • svg() could segfault if called with a non-existent -file path. (PR#14790) +file path. (PR#14790)

    • make install can install to a path containing -+ characters. (PR#14798) ++ characters. (PR#14798)

    • The edit() function did not respect the @@ -2037,12 +2038,12 @@

    • predict.lm(*, type="terms", terms=*, se.fit=TRUE) did -not work. (PR#14817) +not work. (PR#14817)

    • There is a partial workaround for errors in the TRE regular-expressions engine with named classes and repeat counts of -at least 2 in a MBCS locale (PR#14408): these are avoided when +at least 2 in a MBCS locale (PR#14408): these are avoided when TRE is in 8-bit mode (e.g., for useBytes = TRUE and when all the data are ASCII).

      @@ -2215,7 +2216,7 @@

    • file.append() could return TRUE for failures. -(PR#14727) +(PR#14727)

    • gzcon() connections are no longer subject to garbage @@ -2250,11 +2251,11 @@

    • There was a sign error in part of the calculations for the -variance returned by KalmanSmooth(). (PR#14738) +variance returned by KalmanSmooth(). (PR#14738)

    • pbinom(10, 1e6, 0.01, log.p = TRUE) was NaN -thanks to the buggy fix to PR#14320 in R 2.11.0. (PR#14739) +thanks to the buggy fix to PR#14320 in R 2.11.0. (PR#14739)

    • RweaveLatex() now emulates auto-printing rather than @@ -2263,30 +2264,30 @@

    • duplicated() ignored fromLast for a -one-column data frame. (PR#14742) +one-column data frame. (PR#14742)

    • source() and related functions did not put the correct timestamp on the source references; srcfilecopy() has gained -a new argument timestamp to support this fix. (PR#14750) +a new argument timestamp to support this fix. (PR#14750)

    • srcfilecopy() has gained a new argument isFile and now records the working directory, to allow debuggers to find -the original source file. (PR#14826) +the original source file. (PR#14826)

    • LaTeX conversion of Rd files did not correctly handle -preformatted backslashes. (PR#14751) +preformatted backslashes. (PR#14751)

    • HTML conversion of Rd files did not handle markup within -tabular cells properly. (PR#14708) +tabular cells properly. (PR#14708)

    • source() on an empty file with keep.source = TRUE tried to read from stdin(), in R 2.14.0 only. -(PR#14753) +(PR#14753)

    • The code to check Rd files in packages would abort if @@ -2317,7 +2318,7 @@ 0.2: this changes slightly the vertical positioning of text in the margins (including axis annotations). This is mainly for consistency with other devices such as quartz() and -pdf(). (Wish of PR#14538.) +pdf(). (Wish of PR#14538.)

      There is a new graphics parameter "ylbias" which allows the y-line bias of the graphics device to be tweaked, @@ -2388,7 +2389,7 @@

    • regexpr() and gregexpr() with perl = TRUE allows Python-style named captures. (Wish and -contribution of PR#14518.) +contribution of PR#14518.)

    • The placement of ‘plotmath’ text in the margins of @@ -2396,11 +2397,11 @@ as ordinary text, so using ordinary and plotmath text on the same margin line will seem better aligned (but not exactly aligned, since ordinary text has descenders below the baseline and plotmath -places them on the baseline). (Related to PR#14537.) +places them on the baseline). (Related to PR#14537.)

    • sunflowerplot() now has a formula interface. -(Wish of PR#14541.) +(Wish of PR#14541.)

    • iconv() has a new argument toRaw to handle @@ -2427,14 +2428,14 @@

    • mosaicplot() gains a border argument. -(Wish of PR#14550.) +(Wish of PR#14550.)

    • smooth.spline() gains a tol argument which controls how different x values need to be to be treated as distinct. The default has been changed to be more reliable for inputs whose range is small compared to their maximum absolute -value. (Wish of PR#14452.) +value. (Wish of PR#14452.)

    • gl() runs faster by avoiding calling factor(). @@ -2751,7 +2752,7 @@

    • stars() gains a col.lines argument, thanks to -Dustin Sallings. (Wish of PR#14657.) +Dustin Sallings. (Wish of PR#14657.)

    • New function regmatches() for extracting or replacing @@ -2797,7 +2798,7 @@

    • Class "raster" gains an is.na method to avoid -confusion from the misuse of the matrix method (such as PR#14618). +confusion from the misuse of the matrix method (such as PR#14618).

    • The identical() function gains an @@ -2806,7 +2807,7 @@

    • pmin and pmax now warn if an argument is -partially recycled (wish of PR#14638). +partially recycled (wish of PR#14638).

    • The default for image(useRaster=) is now taken from @@ -3094,7 +3095,7 @@

    • installed.packages() now hashes the names of its cache files to avoid very rare problems with excessively long path -names. (PR#14669) +names. (PR#14669)

    • A top-level ‘COPYING’ file in a package is no longer @@ -3372,7 +3373,7 @@

    • Several stack trampling and overflow issues have been fixed in TRE, triggered by agrep and friends with long patterns. -(PR#14627) +(PR#14627)

    • (“design infelicity”) Field assignments in reference @@ -3404,15 +3405,15 @@

    • loglin() gave a spurious error when argument margin consisted of a single element of length one. -(PR#14690) +(PR#14690)

    • loess() is better protected against misuse, -e.g. zero-length span. (PR#14691) +e.g. zero-length span. (PR#14691)

    • HoltWinters() checks that the optimization -succeeded. (PR#14694) +succeeded. (PR#14694)

    • The (undocumented) inclusion of superclass objects in @@ -3431,7 +3432,7 @@

    • The "table" method for Axis() hardcoded side = 1, hence calls to plot(<vector>, <table>) -labelled the wrong axis. (PR#14699) +labelled the wrong axis. (PR#14699)

    • Creating a connection might fail under gctorture(TRUE). @@ -3472,7 +3473,7 @@

    • qgamma() for small shape underflows to 0 rather than sometimes giving NaN. -(PR#8528, PR#14710) +(PR#8528, PR#14710)

    • mapply() now gives an explicit error message (rather @@ -3517,7 +3518,7 @@

    • untar2() now works around errors generated with tar files that use more than the standard 6 digits for the -checksum. (PR#14654) +checksum. (PR#14654)

    • install.packages() with Ncpus > 1 guards @@ -3632,11 +3633,11 @@

    • Profiling stats::mle() fits with a fixed -parameter was not supported. (PR#14646) +parameter was not supported. (PR#14646)

    • retracemem() was still using positional matching. -(PR#14650) +(PR#14650)

    • The quantile method for "ecdf" objects now @@ -3672,16 +3673,16 @@

    • The print() method for class "summary.aov" did not pass on arguments such as signif.stars when -summary() was called on a single object. (PR#14684) +summary() was called on a single object. (PR#14684)

    • In rare cases ks.test() could return a p-value -very slightly less than 0 by rounding error. (PR#14671) +very slightly less than 0 by rounding error. (PR#14671)

    • If trunc() was called on a "POSIXlt" vector and the result was subsetted, all but the first element was -converted to NA. (PR#14679) +converted to NA. (PR#14679)

    • cbind() and rbind() could cause memory @@ -3707,7 +3708,7 @@

    • persp(box = TRUE) now warns if the surface extends outside the box (since occlusion for the box and axes is computed -assuming the box is a bounding box). (PR#202) +assuming the box is a bounding box). (PR#202)

    • RShowDoc() can now display the licences shipped with @@ -3741,7 +3742,7 @@

    • Binary reads (e.g., by readChar() and readBin()) -are now supported on clipboard connections. (Wish of PR#14593.) +are now supported on clipboard connections. (Wish of PR#14593.)

    • as.POSIXlt.factor() now passes ... to the @@ -3896,12 +3897,12 @@

    • plot.lm(which = 5) was intended to order factor levels in increasing order of mean standardized residual. It ordered the factor labels correctly, but could plot the wrong -group of residuals against the label. (PR#14545) +group of residuals against the label. (PR#14545)

    • mosaicplot() could clip the factor labels, and could overlap them with the cells if a non-default value of -cex.axis was used. (Related to PR#14550.) +cex.axis was used. (Related to PR#14550.)

    • dataframe[[row,col]] now dispatches on [[ @@ -3933,7 +3934,7 @@

    • c(), unlist(), cbind() and rbind() could silently overflow the maximum vector length -and cause a segfault. (PR#14571) +and cause a segfault. (PR#14571)

    • The fonts argument to X11(type = "Xlib") was @@ -3972,7 +3973,7 @@

    • The HTML help search sometimes produced bad links. -(PR#14608) +(PR#14608)

    • Command completion will no longer be broken if @@ -4053,7 +4054,7 @@

    • cmdscale(add = FALSE) now uses the more common definition that there is a representation in n-1 or less dimensions, and only dimensions corresponding to positive -eigenvalues are used. (Avoids confusion such as PR#14397.) +eigenvalues are used. (Avoids confusion such as PR#14397.)

    • Names used by c(), unlist(), cbind() @@ -4179,13 +4180,13 @@ for objects (such as data frames) from classes with methods for dim(). It also uses attr<-() in preference to the generics name<-(), dim<-() and dimnames<-(). -(Related to PR#14469.) +(Related to PR#14469.)

    • There is a new option "browserNLdisabled" to disable the use of an empty (e.g., via the ‘Return’ key) as a synonym for c in browser() or n under debug(). -(Wish of PR#14472.) +(Wish of PR#14472.)

    • example() gains optional new arguments @@ -4258,7 +4259,7 @@

    • R CMD REMOVE and remove.packages() now remove file R.css when removing all remaining packages in a -library tree. (Related to the wish of PR#14475: note that this +library tree. (Related to the wish of PR#14475: note that this file is no longer installed.)

    • @@ -4276,7 +4277,7 @@
    • bzfile() connections can now read from concatenated bzip2 files (including files written with bzfile(open = "a")) and files created by some other -compressors (such as the example of PR#14479). +compressors (such as the example of PR#14479).

    • The primitive function c() is now of type BUILTIN. @@ -4426,7 +4427,7 @@

    • The internal (C) function scientific(), at the heart of R's format.info(x), format(x), print(x), etc, for numeric x, has been re-written in order to provide -slightly more correct results, fixing PR#14491, notably in +slightly more correct results, fixing PR#14491, notably in border cases including when digits >= 16, thanks to substantial contributions (code and experiments) from Petr Savicky. This affects a noticeable amount of numeric output from @@ -4500,7 +4501,7 @@

    • factanal() now returns the rotation matrix if a rotation such as "promax" is used, and hence factor -correlations are displayed. (Wish of PR#12754.) +correlations are displayed. (Wish of PR#12754.)

    • The gctorture2() function provides a more refined @@ -4548,7 +4549,7 @@

    • Sweave() has options to produce PNG and JPEG figures, and to use a custom function to open a graphics device (see ?RweaveLatex).
      -(Based in part on the contribution of PR#14418.) +(Based in part on the contribution of PR#14418.)

    • The default for Sweave() is to produce only PDF @@ -4940,11 +4941,11 @@

    • Map() did not look up a character argument f -in the correct frame, thanks to lazy evaluation. (PR#14495) +in the correct frame, thanks to lazy evaluation. (PR#14495)

    • file.copy() did not tilde-expand from and to -when to was a directory. (PR#14507) +when to was a directory. (PR#14507)

    • It was possible (but very rare) for the loading test in @@ -4965,25 +4966,25 @@

    • data.frame(check.rows = TRUE) sometimes worked when -it should have detected an error. (PR#14530) +it should have detected an error. (PR#14530)

    • scan(sep= , strip.white=TRUE) sometimes stripped trailing spaces from within quoted strings. (The real bug in -PR#14522.) +PR#14522.)

    • The rank-correlation methods for cor() and cov() with use = "complete.obs" computed the ranks before removing missing values, whereas the documentation implied -incomplete cases were removed first. (PR#14488) +incomplete cases were removed first. (PR#14488)

      They also failed for 1-row matrices.

    • The perpendicular adjustment used in placing text and expressions in the margins of plots was not scaled by -par("mex"). (Part of PR#14532.) +par("mex"). (Part of PR#14532.)

    • Quartz Cocoa device now catches any Cocoa exceptions that @@ -4999,7 +5000,7 @@

    • R's internal filename completion now properly handles filenames with spaces in them even when the readline library is -used. This resolves PR#14452 provided the internal filename +used. This resolves PR#14452 provided the internal filename completion is used (e.g., by setting rc.settings(files = TRUE)).

      @@ -5049,7 +5050,7 @@

    • PDF output with a non-RGB color model used RGB for the line -stroke color. (PR#14511) +stroke color. (PR#14511)

    • stats4::BIC() assumed without checking that an object @@ -5058,7 +5059,7 @@

    • In some circumstances a one-sided mantelhaen.test() -reported the p-value for the wrong tail. (PR#14514) +reported the p-value for the wrong tail. (PR#14514)

    • Passing the invalid value lty = NULL to axis() @@ -5228,14 +5229,14 @@

    • If the filename extension (usually ‘.Rnw’) was not included in a call to Sweave(), source references would not -work properly and the keep.source option failed. (PR#14459) +work properly and the keep.source option failed. (PR#14459)

    • format.data.frame() now keeps zero character column names.

    • pretty(x) no longer raises an error when x -contains solely non-finite values. (PR#14468) +contains solely non-finite values. (PR#14468)

    • The plot.TukeyHSD() function now uses a line width of @@ -5266,17 +5267,17 @@ filepaths with two or more leading directories which were not in the zipfile and did not already exist. (It is unclear if such zipfiles are valid and the third-party C code used did not support -them, but PR#14462 created one.) +them, but PR#14462 created one.)

    • combn(n, m) now behaves more regularly for the border -case m = 0. (PR#14473) +case m = 0. (PR#14473)

    • The rendering of numbers in plotmath expressions (e.g., expression(10^2)) used the current settings for conversion to strings rather than setting the defaults, and so could be -affected by what has been done before. (PR#14477) +affected by what has been done before. (PR#14477)

    • The methods of napredict() and naresid() for @@ -5396,7 +5397,7 @@

    • reshape() now makes use of sep when forming -names during reshaping to wide format. (PR#14435) +names during reshaping to wide format. (PR#14435)

    • legend() allows the length of lines to be set by the @@ -5445,7 +5446,7 @@

      • seq.int() no longer sometimes evaluates arguments -twice. (PR#14388) +twice. (PR#14388)

      • The data.frame method of format() failed if a @@ -5463,7 +5464,7 @@

      • The TRE regular expressions engine could terminate R rather than give an error when given certain invalid regular expressions. -(PR#14398) +(PR#14398)

      • cmdscale(eig = TRUE) was documented to return n-1 @@ -5485,7 +5486,7 @@

      • download.file() could leave the destination file open -if the URL was not able to be opened. (PR#14414) +if the URL was not able to be opened. (PR#14414)

      • Assignment of an environment to functions or as an attribute @@ -5503,7 +5504,7 @@

      • ! dropped attributes such as names and dimensions from a -length-zero argument. (PR#14424) +length-zero argument. (PR#14424)

      • When list2env() created an environment it was missing @@ -5518,7 +5519,7 @@

      • The Fortran code used by nls(algorithm = "port") could infinite-loop when compiled with high optimization on a modern version of gcc, and SAFE_FFLAGS is now used -to make this less likely. (PR#14427, seen with 32-bit Windows +to make this less likely. (PR#14427, seen with 32-bit Windows using gcc 4.5.0 used from R 2.12.0.)

      • @@ -5529,7 +5530,7 @@

      • Backreferences to undefined patterns in -[g]sub(pcre = TRUE) could cause a segfault. (PR#14431) +[g]sub(pcre = TRUE) could cause a segfault. (PR#14431)

      • The format() (and hence the print()) method @@ -5568,12 +5569,12 @@

      • qr.X() with column names and pivoting now also pivots -the column names. (PR#14438) +the column names. (PR#14438)

      • unit.pmax() and unit.pmin() in package grid gave incorrect results when all inputs were of length 1. -(PR#14443) +(PR#14443)

      • The parser for ‘NAMESPACE’ files ignored misspelled @@ -5630,7 +5631,7 @@

      • difftime() now defaults to the "tzone" attribute of "POSIXlt" objects rather than to the current timezone as set by the default for the tz argument. (Wish -of PR#14182.) +of PR#14182.)

      • pretty() is now generic, with new methods for @@ -5658,15 +5659,15 @@ objects now insert linebreaks in long calls in the same way that the print() methods for "summary.[g]lm" objects have long done. This does change the layout of the examples for -a number of packages, e.g. MASS. (PR#14250) +a number of packages, e.g. MASS. (PR#14250)

      • constrOptim() can now be used with method -"SANN". (PR#14245) +"SANN". (PR#14245)

        It gains an argument hessian to be passed to optim(), which allows all the ... arguments to be -intended for f() and grad(). (PR#14071) +intended for f() and grad(). (PR#14071)

      • curve() now allows expr to be an object of @@ -5681,7 +5682,7 @@ "POSIX[cl]t" and "Date": the default method has been able to handle those classes for a long time. This inter alia allows a single date-time object to be -supplied, the wish of PR#14016. +supplied, the wish of PR#14016.

        The methods had a different default ("") for xlab.

        @@ -5769,7 +5770,7 @@

      • points() and lines() gain "table" -methods to match plot(). (Wish of PR#10472.) +methods to match plot(). (Wish of PR#10472.)

      • Sys.chmod() allows argument mode to be a @@ -5865,11 +5866,11 @@

      • format.pval() gains a ... argument to pass arguments such as nsmall to format(). (Wish of -PR#9574) +PR#9574)

      • legend() supports title.adj. (Wish of -PR#13415) +PR#13415)

      • Added support for subsetting "raster" objects, plus @@ -5974,7 +5975,7 @@

      • format() methods for date-time objects now attempt to make use of a "tzone" attribute with "%Z" and "%z" formats, but it is not always possible. (Wish of -PR#14358.) +PR#14358.)

      • tools::texi2dvi(file, clean = TRUE) now works in more @@ -6288,16 +6289,16 @@ in some cases in the extreme tails, e.g. dchisq(2000, 2, 1000), as a series expansion was truncated too early. -(PR#14105) +(PR#14105)

      • pt() is more accurate in the left tail for ncp -large, e.g. pt(-1000, 3, 200). (PR#14069) +large, e.g. pt(-1000, 3, 200). (PR#14069)

      • The default C function (R_binary) for binary ops now sets the S4 bit in the result if either argument is an S4 object. -(PR#13209) +(PR#13209)

      • source(echo=TRUE) failed to echo comments that @@ -6343,12 +6344,12 @@

      • The standard Unix-alike termination dialog to ask whether to save the workspace takes a EOF response as n to avoid -problems with a damaged terminal connection. (PR#14332) +problems with a damaged terminal connection. (PR#14332)

      • Added warn.unused argument to hist.default() to allow suppression of spurious warnings about graphical -parameters used with plot=FALSE. (PR#14341) +parameters used with plot=FALSE. (PR#14341)

      • predict.lm(), summary.lm(), and indeed @@ -6385,7 +6386,7 @@

      • writeBin() disallows attempts to write 2GB or -more in a single call. (PR#14362) +more in a single call. (PR#14362)

      • new() and getClass() will now work if Class @@ -6417,11 +6418,11 @@

      • Task callbacks could report the wrong expression when -the task involved parsing new code. (PR#14368) +the task involved parsing new code. (PR#14368)

      • getNamespaceVersion() failed; this was an -accidental change in 2.11.0. (PR#14374) +accidental change in 2.11.0. (PR#14374)

      • identical() returned FALSE for external @@ -6433,14 +6434,14 @@

      • tempfile() now always gives a random file name (even if the directory is specified) when called directly after -startup and before the R RNG had been used. (PR#14381) +startup and before the R RNG had been used. (PR#14381)

      • -
      • quantile(type=6) behaved inconsistently. (PR#14383) +

      • quantile(type=6) behaved inconsistently. (PR#14383)

      • backSpline(.) behaved incorrectly when the knot -sequence was decreasing. (PR#14386) +sequence was decreasing. (PR#14386)

      • The reference BLAS included in R was assuming that @@ -6454,16 +6455,16 @@ the device region (in which case, you draw nothing) was wrong for screen devices (which have [0, 0] at top-left). The symptom was (long) text disappearing when -resizing a screen window (to make it smaller). (PR#14391) +resizing a screen window (to make it smaller). (PR#14391)

      • model.frame(drop.unused.levels = TRUE) did not take into account NA values of factors when deciding to -drop levels. (PR#14393) +drop levels. (PR#14393)

      • library.dynam.unload required an absolute path for -libpath. (PR#14385) +libpath. (PR#14385)

        Both library() and loadNamespace() now record absolute paths for use by searchpaths() and @@ -6471,19 +6472,19 @@

      • The self-starting model NLSstClosestX failed if some -deviation was exactly zero. (PR#14384) +deviation was exactly zero. (PR#14384)

      • X11(type = "cairo") (and other devices such as png using cairographics) and which use Pango font selection now work around a bug in Pango when very small fonts (those with sizes between 0 and 1 in Pango's internal units) are requested. -(PR#14369) +(PR#14369)

      • Added workaround for the font problem with X11(type = "cairo") and similar on Mac OS X whereby italic and bold styles -were interchanged. (PR#13463 amongst many other reports.) +were interchanged. (PR#13463 amongst many other reports.)

      • source(chdir = TRUE) failed to reset the working @@ -6496,7 +6497,7 @@

      • Force Quartz to bring the on-screen display up-to-date immediately before the snapshot is taken by grid.cap() -in the Cocoa implementation. (PR#14260) +in the Cocoa implementation. (PR#14260)

      • model.frame had an unstated 500 byte limit on @@ -6567,7 +6568,7 @@

      • stripchart() could fail with an empty factor -level. (PR#14317) +level. (PR#14317)

      • Text help rendering of \tabular{} has been @@ -6594,7 +6595,7 @@

      • The internal strptime() could corrupt its copy of the -timezone which would then lead to spurious warnings. (PR#14338) +timezone which would then lead to spurious warnings. (PR#14338)

      • dir.create(recursive = TRUE) could fail if one of the @@ -6609,7 +6610,7 @@

      • Fixed font face for CID fonts in pdf() graphics output. -(PR#14326) +(PR#14326)

      • GERaster() now checks for width or height of zero and @@ -6619,7 +6620,7 @@

      • wilcox.test(x, y, conf.int = TRUE) failed with an unhelpful message if x and y were constant vectors, and -similarly in the one-sample case. (PR#14329) +similarly in the one-sample case. (PR#14329)

      • Improperly calling Recall() from outside a function @@ -6660,7 +6661,7 @@

      • approxfun(), approx(), splinefun() and spline() could be confused by x values that were different but so close as to print identically. -(PR#14377) +(PR#14377)

      @@ -6727,16 +6728,16 @@
      • The C function mkCharLenCE now no longer reads past len bytes (unlikely to be a problem except in user -code). (PR#14246) +code). (PR#14246)

      • On systems without any default LD_LIBRARY_PATH (not even ‘/usr/local/lib’), [DY]LIB_LIBRARY_PATH is now -set without a trailing colon. (PR#13637) +set without a trailing colon. (PR#13637)

      • More efficient implementation of utf8ToInt() on long -multi-byte strings with many multi-byte characters. (PR#14262) +multi-byte strings with many multi-byte characters. (PR#14262)

      • aggregate.ts() gave platform-dependent results due to @@ -6745,22 +6746,22 @@

      • package.skeleton() sometimes failed to fix filenames for ‘.R’ or ‘.Rd’ files to start with an alphanumeric. -(PR#14253) +(PR#14253)

        It also failed when only an S4 class without any methods was -defined. (PR#14280) +defined. (PR#14280)

      • splinefun(method = "monoH.FC") was not -quite monotone in rare cases. (PR#14215) +quite monotone in rare cases. (PR#14215)

      • Rhttpd no longer crashes due to SIGPIPE when -the client closes the connection prematurely. (PR#14266) +the client closes the connection prematurely. (PR#14266)

      • format.POSIXlt() could cause a stack overflow and -crash when used on very long vectors. (PR#14267) +crash when used on very long vectors. (PR#14267)

      • Rd2latex() incorrectly escaped special characters in @@ -6782,7 +6783,7 @@

      • cut(d, breaks = <n>) now also works for "Date" or "POSIXt" argument d. -(PR#14288) +(PR#14288)

      • memDecompress() could decompress incompletely rare @@ -6792,7 +6793,7 @@

      • The S4 initialize() methods for "matrix", "array", and "ts" have been fixed to call -validObject(). (PR#14284) +validObject(). (PR#14284)

      • R CMD INSTALL now behaves the same way with or @@ -6803,11 +6804,11 @@

      • [<-.data.frame was not quite careful enough in assigning (and potentially deleting) columns -right-to-left. (PR#14263) +right-to-left. (PR#14263)

      • rbeta(n, a, b) no longer occasionally returns -NaN for a >> 1 > b. (PR#14291) +NaN for a >> 1 > b. (PR#14291)

      • pnorm(x, log.p = TRUE) could return NaN not @@ -6817,13 +6818,13 @@

      • Compressed data files ‘*.(txt|tab|csv).(gz|bz2|xz)’ were not recognized for the list of data topics and hence for -packages using LazyData. (PR#14273) +packages using LazyData. (PR#14273)

      • textConnection() did an unnecessary translation on strings in a foreign encoding (e.g., UTF-8 strings on Windows) and so was slower than it could have been on very long input strings. -(PR#14286) +(PR#14286)

      • tools::Rd2txt() did not render poorly written Rd @@ -6839,7 +6840,7 @@

      • do.call()ing NextMethod in erroneous ways no -longer segfaults. (PR#13487) +longer segfaults. (PR#13487)

      @@ -6998,7 +6999,7 @@
    • bquote() has been extended to work on function definitions. (Wish of -PR#14031). +PR#14031).

    • detach() when applied to an object other than a @@ -7053,8 +7054,8 @@

    • length(<POSIXlt>) now returns the length of the corresponding abstract timedate-vector rather than always 9 (the -length of the underlying list structure). (Wish of PR#14073 -and PR#10507.) +length of the underlying list structure). (Wish of PR#14073 +and PR#10507.)

    • The readline completion backend no longer sorts @@ -7167,7 +7168,7 @@

    • interaction(drop=TRUE) uses less memory (related to -PR#14121). +PR#14121).

    • summary() methods have been added to the @@ -7216,7 +7217,7 @@ been reduced from 1e-7 to 1e-10, which should be ample for the double-precision calculations used in R. It ensures that the fuzz never comes into play with sequences of -integers (wish of PR#14169). +integers (wish of PR#14169).

    • The default value of RSiteSearch(restrict=) has been @@ -7235,12 +7236,12 @@

    • cor() and cov() now test for misuse with -non-numeric arguments, such as the non-bug report PR#14207. +non-numeric arguments, such as the non-bug report PR#14207.

    • pchisq(ncp =, log.p = TRUE) is more accurate for probabilities near one. E.g., pchisq(80, 4, ncp=1, - log.p=TRUE). (Maybe what was meant in PR#14216.) + log.p=TRUE). (Maybe what was meant in PR#14216.)

    • maintainer() has been added, to give convenient @@ -7437,7 +7438,7 @@

      • Using with(), eval() etc with a list with some unnamed elements now works. -(PR#14035) +(PR#14035)

      • The "quick" dispatch of S4 methods for primitive @@ -7494,20 +7495,20 @@

      • cor(A, B) where A is n x 1 and B a 1-dimensional array segfaulted or gave an internal error. (The case cor(B, A) was -PR#7116.) +PR#7116.)

      • cut.POSIXt() applied to a start value after the DST transition on a DST-change day could give the wrong time for -argument breaks in units of days or longer. (PR#14208) +argument breaks in units of days or longer. (PR#14208)

      • -
      • do_par() UNPROTECTed too early (PR#14214) +

      • do_par() UNPROTECTed too early (PR#14214)

      • Subassignment x[[....]] <- y didn't check for a zero-length right hand side, and inserted a rubbish -value. (PR#14217) +value. (PR#14217)

      • fisher.test() no longer gives a P-value very @@ -7546,7 +7547,7 @@

      • Extreme tail behavior of, pbeta() {and hence pf()}, e.g., pbeta(x, 3, 2200, lower.tail=FALSE, log.p=TRUE) now returns finite values instead of jumping to --Inf too early. (PR#14230). +-Inf too early. (PR#14230).

      • parse(text=x) misbehaved for objects x that @@ -7577,7 +7578,7 @@

      • read.fwf() misread multi-line records when n was specified. -(PR#14241) +(PR#14241)

      • all.equal(tolerance = e) passes the numeric @@ -7594,7 +7595,7 @@

      • gzcon( <textConnection> ), an error, no longer damages the connection (in a way to have it -segfault). (PR#14237) +segfault). (PR#14237)

      • All the results from hist() now use the nominal @@ -7608,7 +7609,7 @@

      • If xy[z].coords (used internally by many graphics functions) are given a list as x, they now check that the list has suitable names and give a more informative error -message. (PR#13936) +message. (PR#13936)

      @@ -7666,17 +7667,17 @@
      • Using read.table(header=TRUE) on a header with an embedded new line would copy part of the header into the data. -(PR#14103) +(PR#14103)

      • qpois(p = 1, lambda = 0) now gives 0 as for all other -p. (PR#14135) +p. (PR#14135)

      • Functions related to string comparison (e.g., unique(), match()) could cause crashes when used with strings not in the native encoding, e.g., UTF-8 strings -on Windows. (PR#14114 and PR#14125) +on Windows. (PR#14114 and PR#14125)

      • x[ , drop=TRUE] dropped an NA level even if it @@ -7694,7 +7695,7 @@

      • Help links containing special characters (e.g., "?") were not generated correctly when rendered in -HTML. (PR#14155) +HTML. (PR#14155)

      • lchoose(a, k) no longer wrongly gives NaN for @@ -7702,7 +7703,7 @@

      • ks.test() could give a p-value that was off by one -observation due to rounding error. (PR#14145) +observation due to rounding error. (PR#14145)

      • readBin()/readChar() when reading millions of @@ -7711,7 +7712,7 @@

      • R CMD SHLIB could fail if used with paths that -were not alphanumeric, e.g. contained +. (PR#14168) +were not alphanumeric, e.g. contained +. (PR#14168)

      • sprintf() was not re-entrant, which potentially @@ -7741,7 +7742,7 @@

      • [cr]bind(..., deparse.level=2) was not always giving names when documented to do so. (Discovered whilst investigating -PR#14189.) +PR#14189.)

      • match(incomparables=<non-NULL>) could in rare cases @@ -7749,12 +7750,12 @@

      • poisson.test() needed to pass argument -conf.level to binom.test(). (PR#14195) +conf.level to binom.test(). (PR#14195)

      • The "nls" method for df.residual() gave incorrect results for models fitted with na.action = - na.exclude. (PR#14194) + na.exclude. (PR#14194)

      • A change to options(scipen=) was only implemented @@ -7765,13 +7766,13 @@

      • prettyNum(drop0trailing=TRUE) did not handle signs of imaginary parts of complex numbers correctly (and this was used -by str(): PR#14201). +by str(): PR#14201).

      • system.time() had the sys.child component wrong (copied user.child instead) on systems with HAVE_GETRUSAGE. -(PR#14210) +(PR#14210)

      • Changing both line texture and line cap (end) resulted in the @@ -7794,7 +7795,7 @@

      • Startup files will now be found if their paths exceed 255 -bytes. (PR#14228) +bytes. (PR#14228)

      • contrasts<- (in the stats package) no longer has an @@ -7882,7 +7883,7 @@

        • trigamma(x) and other psigamma(x, n) calls -are now accurate for very large abs(x). (PR#14020) +are now accurate for very large abs(x). (PR#14020)

        • [g]sub(perl=FALSE, fixed=FALSE) could use excessive @@ -7892,7 +7893,7 @@

        • The default method of weighted.mean(na.rm = TRUE) did not omit weights for NA observations in 2.10.0. -(PR#14032) +(PR#14032)

        • [g]regexpr(pattern, fixed = TRUE) returned match @@ -7930,7 +7931,7 @@

        • There have been small fixes to the rendering of help, e.g. \command is now rendered verbatim -(so e.g. -- is not interpreted, PR#14045). +(so e.g. -- is not interpreted, PR#14045).

          Also, there are many small changes to help files where the new converters were not rendering them in the same way as before. @@ -7938,7 +7939,7 @@

        • available.packages() would fail when run on a repository with no packages meeting the filtering conditions. -(PR#14042) +(PR#14042)

        • rep(x, times, each = 2) gave invalid results when the @@ -7964,7 +7965,7 @@ regions for very small a. qgamma() now correctly returns 0 instead of NaN in similar extreme cases, and qgamma() no longer warns in the case of small -a, see (PR#12324). +a, see (PR#12324).

        • unname() now also removes names from a zero length vector. @@ -7975,20 +7976,20 @@

        • complete.cases() failed on a 0-column data frame -argument. (Underlies PR#14066.) +argument. (Underlies PR#14066.)

          It could return nonsensical results if no input determined the number of cases (seen in the no-segfault tests).

        • An error in nls() with a long formula could cause a -segfault. (PR#14059) +segfault. (PR#14059)

        • qchisq(p, df, ncp, lower.tail = FALSE) with ncp >= 80 was inaccurate for small p (as the help page said): it is now less inaccurate. (In part, -PR#13999.) +PR#13999.)

          For ncp less than but close to 80, pchisq() and qchisq() are more accurate for probabilities very close @@ -8001,7 +8002,7 @@

        • intToUtf8() could fail when asked to produce 10Mb or more strings, something it was never intended to do: unfortunately Windows crashed R (other OSes reported a lack of resources). -(PR#14068) +(PR#14068)

        • chisq.test() could fail when given argument @@ -8022,7 +8023,7 @@

        • bessel[JY](x, nu) with nu a negative integer (a singular case) is now correct, analogously to besselI(), -see PR#13556. +see PR#13556.

        • tools::file_path_as_absolute() doubled the file @@ -8030,11 +8031,11 @@ Windows) ‘"d:/afile"’ in a directory for which getwd() would return a path with a trailing separator (largely cosmetic, as reasonable file systems handle such a path -correctly). (Perhaps what was meant by PR#14078.) +correctly). (Perhaps what was meant by PR#14078.)

        • unsplit(drop = TRUE) applied to a data frame failed -to pass drop to the computation of row names. (PR#14084) +to pass drop to the computation of row names. (PR#14084)

        • The "difftime" method of mean() ignored its @@ -8060,7 +8061,7 @@

        • help.search() failed when the package argument was -specified. (PR#14113) +specified. (PR#14113)

        • switch(EXPR = "A") now returns NULL, as does @@ -8145,7 +8146,7 @@

        • New debugonce() function; further, getOption("deparse.max.lines") is now observed when debugging, from a code suggestion by John Brzustowski. -(PR#13647/8) +(PR#13647/8)

        • plot() methods for "stepfun" and hence @@ -8224,7 +8225,7 @@

        • The Kendall and Spearman methods of cor.test() can optionally use continuity correction when not computing exact -p-values. (The Kendall case is the wish of PR#13691.) +p-values. (The Kendall case is the wish of PR#13691.)

        • R now keeps track of line numbers during execution for code @@ -8239,7 +8240,7 @@

        • quantile.default() now disallows factors (wish of -PR#13631) and its help +PR#13631) and its help documents what numeric-like properties its input need to have to work correctly.

          @@ -8256,7 +8257,7 @@

        • as.data.frame() has an "aovproj" method. -(Wish of PR#13505) +(Wish of PR#13505)

        • as.character(x) for numeric x no longer @@ -8401,7 +8402,7 @@

        • New as.raw() method for "tclObj" objects (wish -of PR#13758). +of PR#13758).

        • Rd.sty now makes a better job of setting email addresses, @@ -8525,7 +8526,7 @@

        • stripchart() allows par bg to be passed in for the background colour for pch = 21 (wish of -PR#13984). +PR#13984).

        • New generic function .DollarNames() to enable class authors @@ -8965,7 +8966,7 @@

        • prettyNum(z, drop0trailing=TRUE) did not work correctly when z was a complex vector. Consequently, -str(z, ...) also did not. (PR#13985) +str(z, ...) also did not. (PR#13985)

        • make distclean removed too many files in @@ -9000,4 +9001,4 @@

          - +
diff -Nru r-base-4.0.3/doc/html/NEWS.3.html r-base-4.1.2/doc/html/NEWS.3.html --- r-base-4.0.3/doc/html/NEWS.3.html 2020-03-26 23:02:34.000000000 +0000 +++ r-base-4.1.2/doc/html/NEWS.3.html 2021-08-19 22:15:01.000000000 +0000 @@ -1,7 +1,9 @@ R: R News + - +
+
NEWSR Documentation
@@ -9,10 +11,16 @@

LATER NEWS

-

News for R 4.0.0 and later can be found in file ‘NEWS.Rd’ in the -R sources and files ‘NEWS’ and ‘doc/html/NEWS.html’ -in an R build. + +

    +
  • News for R 4.x.y can be found in HTML format at +NEWS.html, +and in text format in file +NEWS +in the ‘doc’ directory.

    +
+

CHANGES IN R 3.6.3

@@ -36,7 +44,7 @@
  • Fixed a C level integer overflow in rhyper(); reported -by Benjamin Tyner in PR#17694. +by Benjamin Tyner in PR#17694.

  • Uses of url(gzcon(.)) needing to extend buffer size @@ -45,7 +53,7 @@

  • predict(loess(..), se=TRUE) now errors out (instead of seg.faulting etc) for large sample sizes, thanks to a report and -patch by Benjamin Tyner in PR#17121. +patch by Benjamin Tyner in PR#17121.

  • tools:assertCondition(., "error") and hence @@ -56,7 +64,7 @@ formula sometimes wrongly eliminated the intercept from form, or (more rarely) added a garbage term (or seg.faulted !); the fix happened by simplifying the C-level logic of terms.formula(). -Reported by Mathias Ambühl in PR#16326. +Reported by Mathias Ambühl in PR#16326.

  • The error message from stopifnot(.., <error producing call>) @@ -65,7 +73,7 @@

  • On Windows, download.file(., , "wininet", headers=character()) -would fail; reported with patch proposal by Kevin Ushey in PR#17710. +would fail; reported with patch proposal by Kevin Ushey in PR#17710.

@@ -220,7 +228,7 @@
  • dgamma(x, shape, log=TRUE) now longer overflows to Inf for shape < 1 and very small x, fixing -PR#17577, reported by Jonathan Rougier. +PR#17577, reported by Jonathan Rougier.

  • Buffer overflow in building error messages fixed. Reported @@ -252,7 +260,7 @@

  • x %% L for finite x no longer returns NaN when L is infinite, nor suffers from cancellation -for large finite L, thanks to Long Qu's PR#17611. +for large finite L, thanks to Long Qu's PR#17611.

    Analogously, x %/% L and L %/% x suffer less from cancellation and return values corresponding to limits for large @@ -268,23 +276,23 @@

  • R_tryCatch no longer transfers control for all conditions. Reported and patch provided by Lionel Henry in -PR#17617. +PR#17617.

  • format(object.size(.), digits=NULL) now works, fixing -PR#17628 reported by Jonathan Carroll. +PR#17628 reported by Jonathan Carroll.

  • get_all_vars(f, d) now also works for cases, e.g. where d contains a matrix. Reported by Simon Wood in 2009 and patch -provided by Ben Bolker in PR#13624. +provided by Ben Bolker in PR#13624.

    Additionally, it now also works when some variables are data frames, -fixing PR#14905, reported by Patrick Breheny. +fixing PR#14905, reported by Patrick Breheny.

  • barplot() could get spacings wrong if there were exactly two -bars PR#15522. Patch by Michael Chirico. +bars PR#15522. Patch by Michael Chirico.

  • power.t.test() works in more cases when returning values @@ -292,7 +300,7 @@

  • dotchart(*, pch=., groups=.) now works better. Reported -by Robert and confirmed by Nic Rochette in PR#16953. +by Robert and confirmed by Nic Rochette in PR#16953.

  • canCoerce(obj, cl) no longer assumes @@ -305,7 +313,7 @@

  • readBin() and writeBin() of a rawConnection() now also work in large cases, thanks to a -report and proposal by Taeke Harkema in PR#17665. +report and proposal by Taeke Harkema in PR#17665.

  • @@ -361,15 +369,15 @@
    • On Windows, GUI package installation via menuInstallPkgs() -works again, thanks to Len Weil's and Duncan Murdoch's PR#17556. +works again, thanks to Len Weil's and Duncan Murdoch's PR#17556.

    • -
    • R CMD check on data() fixing PR#17558 +

    • R CMD check on data() fixing PR#17558 thanks to Duncan Murdoch.

    • quasi(*, variance = list(..)) now works more -efficiently, and should work in all cases fixing PR#17560. +efficiently, and should work in all cases fixing PR#17560. Further, quasi(var = mu(1-mu)) and quasi(var = "mu ^ 3") now work, and quasi(variance = "log(mu)") now gives a correct error message. @@ -377,7 +385,7 @@

    • Creation of lazy loading database during package installation is again robust to Rprofile changing the current working directory -(PR#17559). +(PR#17559).

    • boxplot(y ~ f, horizontal=TRUE) now produces correct x- @@ -385,14 +393,14 @@

    • rbind.data.frame() allows to keep <NA> levels -from factor columns (PR#17562) via new option factor.exclude. +from factor columns (PR#17562) via new option factor.exclude.

      Additionally, it works in one more case with matrix-columns which had been reported on 2017-01-16 by Krzysztof Banas.

    • Correct messaging in C++ pragma checks in tools code for -R CMD check, fixing PR#17566 thanks to Xavier Robin. +R CMD check, fixing PR#17566 thanks to Xavier Robin.

    • print()ing and auto-printing no longer differs for @@ -406,7 +414,7 @@

    • as.data.frame() treats 1D arrays the same as vectors, -PR#17570. +PR#17570.

    • Improvements in smoothEnds(x, *) working with @@ -415,7 +423,7 @@

    • vcov(glm(<quasi>), dispersion = *) works correctly -again, fixing PR#17571 thanks to Pavel Krivitsky. +again, fixing PR#17571 thanks to Pavel Krivitsky.

    • R CMD INSTALL of binary packages on Windows now @@ -470,7 +478,7 @@ distribution (used in sample(), for instance) has been changed. This addresses the fact, pointed out by Ottoboni and Stark, that the previous method made sample() noticeably -non-uniform on large populations. See PR#17494 for a +non-uniform on large populations. See PR#17494 for a discussion. The previous method can be requested using RNGkind() or RNGversion() if necessary for reproduction of old results. Thanks to Duncan Murdoch for @@ -499,7 +507,7 @@ for labels parallel to the axis, and 0.25 for perpendicular ones.

      -

      Perpendicular labels no longer overlap, fixing bug PR#17384. +

      Perpendicular labels no longer overlap, fixing bug PR#17384.

    • The default method of plot() gains new arguments @@ -561,7 +569,7 @@

    • trimws() gets new optional whitespace argument, allowing more extensive definitions of “space”, -such as including Unicode spaces (as wished in PR#17431). +such as including Unicode spaces (as wished in PR#17431).

    • weighted.mean() no longer coerces the weights to a @@ -607,11 +615,11 @@

    • The default method of summary() gets an option to choose the kind of quantile()s to use; wish of -PR#17438. +PR#17438.

    • Fitting multiple linear models via lm() does -work with matrix offsets, as suggested in PR#17407. +work with matrix offsets, as suggested in PR#17407.

    • The new functions mem.maxVSize() and @@ -690,7 +698,7 @@

    • getOption() is more efficient notably for the rare case when called with two arguments, from several contributors in -PR#17394. +PR#17394.

    • In .col(dim) and .row(dim), dim now may @@ -772,7 +780,7 @@

    • which(x) now also works when x is a long -vector, thanks to Suharto Anggono's PR#17201. NB: this +vector, thanks to Suharto Anggono's PR#17201. NB: this may return a double result, breaking the previous guarantee of an integer result.

      @@ -780,7 +788,7 @@
    • seq.default() is more careful to return an integer (as opposed to double) result when its arguments are large and/or classed objects; see comment #9 of -Suharto Anggono's PR#17497. +Suharto Anggono's PR#17497.

    • The plot() method for lm and glm fits, @@ -822,7 +830,7 @@

    • sessionInfo() now also contains RNGkind() and prints it when it differs from the default; based on a proposal and -patch by Gabe Becker in PR#17535. +patch by Gabe Becker in PR#17535. Also, RNGversion(getRversion()) works directly.

    • @@ -833,11 +841,11 @@

    • barplot() gets a formula method, thanks to a patch -proposal by Arni Magnusson in PR#17521. +proposal by Arni Magnusson in PR#17521.

    • pmax() and pmin(x) now also work for long -vectors, thanks to Suharto Anggono's PR#17533. +vectors, thanks to Suharto Anggono's PR#17533.

    • bxp() now warns when omitting duplicated arguments. @@ -870,7 +878,7 @@

    • Add update_PACKAGES() for incrementally updating a package repository index, instead of rebuilding the index from -scratch. Thanks to Gabe Becker in PR#17544 for the patch, based +scratch. Thanks to Gabe Becker in PR#17544 for the patch, based on part of his switchr package.

    @@ -1126,7 +1134,7 @@
  • var(f) and hence sd(f) now give an error for factor arguments; they gave a deprecation warning since R -3.2.3, PR#16564. +3.2.3, PR#16564.

  • Package tools' vignetteDepends() has been @@ -1179,7 +1187,7 @@

  • mantelhaen.test() no longer suffers from integer -overflow in largish cases, thanks to Ben Bolker's PR#17383. +overflow in largish cases, thanks to Ben Bolker's PR#17383.

  • Calling setGeneric("foo") in a package no longer @@ -1212,7 +1220,7 @@

  • Changes in print.*(), thanks to Lionel Henry's -patches in PR#17398: +patches in PR#17398:

      @@ -1247,12 +1255,12 @@
    • Calling install.packages() with a length zero -pkgs argument now is a no-op (PR#17422). +pkgs argument now is a no-op (PR#17422).

    • unlist(x) now returns a correct factor when -x is a nested list with factor leaves, fixing PR#12572 -and PR#17419. +x is a nested list with factor leaves, fixing PR#12572 +and PR#17419.

    • The documentation help(family) gives more details @@ -1262,12 +1270,12 @@

    • The documentation for attributes and `attributes<-` now gives x as name of the first and main argument which the implementation has been requiring, fixing -PR#17434. For consistency, the first argument name is also +PR#17434. For consistency, the first argument name is also changed from obj to x for `mostattributes<-`.

    • strwidth() now uses par("font") as default -font face (PR#17352). +font face (PR#17352).

    • plot(<table>, log="x") no longer warns about log. @@ -1277,15 +1285,15 @@ formats the test statistic and parameter directly and hence no longer rounds to units before the decimal point. Consequently, printing of t.test() results with a small number of digits -now shows non-large df's to the full precision (PR#17444). +now shows non-large df's to the full precision (PR#17444).

    • kruskal.test() and fligner.test() no longer -erroneously insist on numeric g group arguments (PR#16719). +erroneously insist on numeric g group arguments (PR#16719).

    • Printing a news db via the browser now does a much better -job (PR#17433). +job (PR#17433).

    • print.aov() missed column names in the multivariate case @@ -1314,7 +1322,7 @@ with more than 64 workers. Reported by Arunkumar Srinivasan.

    • -
    • as(1L, "double") now does coerce (PR#17457). +

    • as(1L, "double") now does coerce (PR#17457).

    • lm.influence(), influence.measures(), @@ -1328,13 +1336,13 @@

    • Fixes to convertColor() for chromatic adaptation; -thanks to Brodie Gaslam PR#17473. +thanks to Brodie Gaslam PR#17473.

    • Using \Sexpr[stage=install]{..} to create an ‘Rd’ section no longer gives a warning in R CMD check; problem originally posted by Gábor Csárdi, then reported -as PR#17479 with a partial patch by Duncan Murdoch. +as PR#17479 with a partial patch by Duncan Murdoch.

    • Parse data now include a special node for equal assignment. @@ -1369,7 +1377,7 @@

    • Subassignment to no/empty rows of a data frame is more consistent and typically a no-op in all cases instead of sometimes -an error; part of Emil Bode's PR#17483. +an error; part of Emil Bode's PR#17483.

    • Calls like formatC(*, zero.print = "< 0.001") no @@ -1378,7 +1386,7 @@

    • methods::formalArgs("<fn>") now finds the same -function as formals("<fn>"), fixing Emil Bode's PR#17499. +function as formals("<fn>"), fixing Emil Bode's PR#17499.

    • The methods package better handles duplicated class @@ -1387,15 +1395,15 @@

    • The default method of seq() now avoids integer overflow, thanks to the report and "cumsum" patch of Suharto -Anggono's PR#17497. +Anggono's PR#17497.

    • sub() no longer loses encodings for non-ASCII -replacements (PR#17509). +replacements (PR#17509).

    • Fix for rotated raster image on X11 device. (Partial -fix for PR#17148; thanks to Mikko Korpela). +fix for PR#17148; thanks to Mikko Korpela).

    • formula(model.frame(frml, ..)) now returns frml @@ -1404,7 +1412,7 @@

    • ar.ols() also returns scalar var.pred in -univariate case (PR#17517). +univariate case (PR#17517).

    • normalizePath() now treats NA path as non-existent @@ -1418,7 +1426,7 @@ approx(), splinefun() etc now warns again when there are ties and the caller did not specify ties. Further, it no longer duplicates x and y unnecessarily when x -is already sorted (PR#17515). +is already sorted (PR#17515).

    • strtoi("", base) now gives NA on all platforms, @@ -1443,7 +1451,7 @@

    • axTicks() no longer returns small “almost zero” numbers (in exponential format) instead of zero, fixing Ilario -Gelmetti's PR#17534. +Gelmetti's PR#17534.

    • isSymmetric(matrix(0, dimnames=list("A","b"))) is @@ -1459,11 +1467,11 @@

    • as.roman(3) <= 2:4 and all other comparisons now work, as do group "Summary" function calls such as max(as.roman(sample(20))) and as.roman(NA). -(Partly reported by Bill Dunlap in PR#17542.) +(Partly reported by Bill Dunlap in PR#17542.)

    • reformulate("x", response = "sin(y)") no longer produces -extra back quotes, PR#17359, and gains new optional argument +extra back quotes, PR#17359, and gains new optional argument env.

    • @@ -1474,7 +1482,7 @@

    • as.matrix.data.frame() now produces better strings from -logicals, thanks to PR#17548 from Gabe Becker. +logicals, thanks to PR#17548 from Gabe Becker.

    • The S4 generic signature of rowSums(), @@ -1483,11 +1491,11 @@

    • match(x, tab) now works for long character -vectors x, thanks to PR#17552 by Andreas Kersting. +vectors x, thanks to PR#17552 by Andreas Kersting.

    • Class unions are unloaded when their namespace is -unloaded (PR#17531, adapted from a patch by Brodie Gaslam). +unloaded (PR#17531, adapted from a patch by Brodie Gaslam).

    • selectMethod() is robust to ANY-truncation of method @@ -1533,7 +1541,7 @@

      • writeLines(readLines(fnam), fnam) now works as expected, -thanks to Peter Meissner's PR#17528. +thanks to Peter Meissner's PR#17528.

      • setClassUnion() no longer warns, but uses message() @@ -1600,7 +1608,7 @@

      • quade.test() now also works correctly when its -arguments are not yet sorted along groups, fixing PR#15842. +arguments are not yet sorted along groups, fixing PR#15842.

      • Installation on a Unix-alike tries harder to link to the @@ -1615,7 +1623,7 @@

      • hist() no longer integer overflows in very rare -cases, fixing PR#17450. +cases, fixing PR#17450.

      • untar() ignored a character compressed @@ -1632,7 +1640,7 @@

      • The tools-internal function called from R CMD INSTALL now gets a warnOption = 1 argument and only sets options(warn = warnOption) when that increases the warning -level (PR#17453). +level (PR#17453).

      • Analogously, the tools-internal function called from R CMD @@ -1641,11 +1649,11 @@ increased warning level.

      • -
      • Parse data now have deterministic parent nodes (PR#16041). +

      • Parse data now have deterministic parent nodes (PR#16041).

      • Calling match() with length one x and POSIXlt -table gave a segfault (PR#17459). +table gave a segfault (PR#17459).

      • Fork clusters could hang due to a race condition in cluster @@ -1661,25 +1669,25 @@

      • polym() and corresponding lm() prediction now -also work for a boundary "vector" case fixing PR#17474, +also work for a boundary "vector" case fixing PR#17474, reported by Alexandre Courtiol.

      • With a very large number of variables terms() could -segfault (PR#17480). +segfault (PR#17480).

      • cut(rep(0, 7)) now works, thanks to Joey Reid and -Benjamin Tyner (PR#16802). +Benjamin Tyner (PR#16802).

      • download.file(*, method = "curl", cacheOK = FALSE) should work now on Windows, thanks to Kevin Ushey's patch in -PR#17323. +PR#17323.

      • duplicated(<dataframe with 'f'>) now works, too, -thanks to Andreas Kersting's PR#17485; ditto for +thanks to Andreas Kersting's PR#17485; ditto for anyDuplicated().

      • @@ -1697,18 +1705,18 @@

      • <data frame>[TRUE, <new>] <- list(c1, c2) now works -correctly, thanks to Suharto Anggono's PR#15362 and Emil Bode's -patch in PR#17504. +correctly, thanks to Suharto Anggono's PR#15362 and Emil Bode's +patch in PR#17504.

      • seq.int(*, by=by, length=n) no longer wrongly “drops fractional parts” when by is integer, thanks -to Suharto Anggono's report PR#17506. +to Suharto Anggono's report PR#17506.

      • Buffering is disabled for file() connections to non-regular files (like sockets), as well as fifo() and -pipe() connections. Fixes PR#17470, reported by Chris +pipe() connections. Fixes PR#17470, reported by Chris Culnane.

      @@ -1732,7 +1740,7 @@

    • Calls with an S3 class are no longer evaluated when printed, -fixing part of PR#17398, thanks to a patch from Lionel Henry. +fixing part of PR#17398, thanks to a patch from Lionel Henry.

    • Allow file argument of Rscript to include space @@ -1753,12 +1761,12 @@

    • predict(fm, newdata) is now correct also for models where the formula has terms such as splines::ns(..) or -stats::poly(..), fixing PR#17414, based on a patch from +stats::poly(..), fixing PR#17414, based on a patch from Duncan Murdoch.

    • simulate.lm(glm(*, gaussian(link = <non-default>))) -has been corrected, fixing PR#17415 thanks to Alex Courtiol. +has been corrected, fixing PR#17415 thanks to Alex Courtiol.

    • unlist(x) no longer fails in some cases of nested @@ -1775,13 +1783,13 @@

    • Terminal connections (e.g., stdin) are no longer -buffered. Fixes PR#17432. +buffered. Fixes PR#17432.

    • deparse(x), dput(x) and dump() now respect c()'s argument names recursive and use.names, e.g., for x <- setNames(0, "recursive"), -thanks to Suharto Anggono's PR#17427. +thanks to Suharto Anggono's PR#17427.

    • Unbuffered connections now work with encoding conversion. @@ -1874,7 +1882,7 @@

    • New askYesNo() function and "askYesNo" option to ask the user binary response questions in a customizable but -consistent way. (Suggestion of PR#17242.) +consistent way. (Suggestion of PR#17242.)

    • New low level utilities ...elt(n) and ...length() @@ -1957,7 +1965,7 @@

    • type.convert() becomes a generic function, with additional methods that operate recursively over list and data.frame objects. Courtesy of Arni Magnusson -(PR#17269). +(PR#17269).

    • lower.tri(x) and upper.tri(x) only needing @@ -1968,7 +1976,7 @@

    • print() methods for "xgettext" and "xngettext" now use encodeString() which keeps, -e.g. "\n", visible. (Wish of PR#17298.) +e.g. "\n", visible. (Wish of PR#17298.)

    • package.skeleton() gains an optional encoding @@ -2003,7 +2011,7 @@

      The "quoteExpressions" option, also part of "all", no longer quote()s formulas as that may not re-parse -identically. (PR#17378) +identically. (PR#17378)

    • If the option setWidthOnResize is set and TRUE, @@ -2133,7 +2141,7 @@

    • New, partly experimental packageDate() which tries to get a valid "Date" object from a package ‘DESCRIPTION’ -file, thanks to suggestions in PR#17324. +file, thanks to suggestions in PR#17324.

    • tools::resaveRdaFiles() gains a version @@ -2143,7 +2151,7 @@

    • ar.yw(x) and hence by default ar(x) now work when x has NAs, mostly thanks to a patch by Pavel -Krivitsky in PR#17366. The ar.yw.default()'s AIC +Krivitsky in PR#17366. The ar.yw.default()'s AIC computations have become more efficient by using determinant().

      @@ -2254,7 +2262,7 @@
    • The "Date" and “date-time” classes "POSIXlt" and "POSIXct" now have a working -length<-() method, as wished in PR#17387. +length<-() method, as wished in PR#17387.

    • optim(*, control = list(warn.1d.NelderMead = FALSE)) @@ -2264,7 +2272,7 @@

    • matplot(.., panel.first = .) etc now work, as log becomes explicit argument and ... is passed to -plot() unevaluated, as suggested by Sebastian Meyer in PR#17386. +plot() unevaluated, as suggested by Sebastian Meyer in PR#17386.

    • Interrupts can be suspended while evaluating an expression @@ -2425,7 +2433,7 @@

    • nlm(f, ..) for the case where f() has a "hessian" attribute now computes -LL' = H + µI correctly. (PR#17249). +LL' = H + µI correctly. (PR#17249).

    • An S4 method that “rematches” to its generic and @@ -2439,7 +2447,7 @@

    • Connections are now written correctly with encoding -"UTF-16LE". (PR#16737). +"UTF-16LE". (PR#16737).

    • Evaluation of ..0 now signals an error. When @@ -2450,7 +2458,7 @@

    • (Windows mainly.) Unicode code points which require surrogate pairs in UTF-16 are now handled. All systems should properly handle surrogate pairs, even those systems that do not -need to make use of them. (PR#16098) +need to make use of them. (PR#16098)

    • stopifnot(e, e2, ...) now evaluates the @@ -2461,7 +2469,7 @@

    • path.expand() on Windows now accepts paths specified as UTF-8-encoded character strings even if not representable in the -current locale. (PR#17120) +current locale. (PR#17120)

    • line(x, y) now correctly computes the medians of the @@ -2475,7 +2483,7 @@

    • Fix for legend() when fill has multiple values the first of which is NA (all colours used to default to -par(fg)). (PR#17288) +par(fg)). (PR#17288)

    • installed.packages() did not remove the cached value @@ -2488,7 +2496,7 @@

    • aggregate(<data.frame>) no longer uses spurious names -in some cases. (PR#17283) +in some cases. (PR#17283)

    • object.size() now also works for long vectors. @@ -2496,7 +2504,7 @@

    • packageDescription() tries harder to solve re-encoding issues, notably seen in some Windows locales. This -fixes the citation() issue in PR#17291. +fixes the citation() issue in PR#17291.

    • poly(<matrix>, 3) now works, thanks to prompting by @@ -2505,7 +2513,7 @@

    • readLines() no longer segfaults on very large files with embedded '\0' (aka ‘nul’) characters. -(PR#17311) +(PR#17311)

    • ns() (package splines) now also works for a @@ -2519,7 +2527,7 @@

    • methods:::cbind() and methods:::rbind() avoid -deep recursion, thanks to Suharto Anggono via PR#17300. +deep recursion, thanks to Suharto Anggono via PR#17300.

    • Arithmetic with zero-column data frames now works more @@ -2553,7 +2561,7 @@

    • fisher.test(*, workspace = <n>) now may also increase the internal stack size which allows larger problem to be solved, -fixing PR#1662. +fixing PR#1662.

    • The methods package no longer directly copies slots @@ -2575,7 +2583,7 @@

    • seq.POSIXt(*, by = "<n> DSTdays") now should work -correctly in all cases and is faster. (PR#17342) +correctly in all cases and is faster. (PR#17342)

    • .C() when returning a logical vector now always maps @@ -2583,7 +2591,7 @@

    • Subassignment with zero length vectors now coerces as -documented (PR#17344).
      +documented (PR#17344).
      Further, x <- numeric(); x[1] <- character() now signals an error ‘replacement has length zero’ (or a translation of that) instead of doing nothing. @@ -2605,18 +2613,18 @@

    • mclapply(X, mc.cores) now follows its documentation and calls lapply() in case mc.cores = 1 also in the -case mc.preschedule is false. (PR#17373) +case mc.preschedule is false. (PR#17373)

    • aggregate(<data.frame>, drop=FALSE) no longer calls the function on <empty> parts but sets corresponding results to -NA. (Thanks to Suharto Anggono's patches in PR#17280). +NA. (Thanks to Suharto Anggono's patches in PR#17280).

    • The duplicated() method for data frames is now based on the list method (instead of string coercion). Consequently unique() is better distinguishing data frame rows, fixing -PR#17369 and PR#17381. The methods for matrices and arrays +PR#17369 and PR#17381. The methods for matrices and arrays are changed accordingly.

    • @@ -2645,14 +2653,14 @@

    • match.arg() more carefully chooses the environment -for constructing default choices, fixing PR#17401 as +for constructing default choices, fixing PR#17401 as proposed by Duncan Murdoch.

    • Deparsing of consecutive ! calls is now consistent with deparsing unary - and + calls and creates code that can be reparsed exactly; thanks to a patch by Lionel Henry in -PR#17397. (As a side effect, this uses fewer parentheses in +PR#17397. (As a side effect, this uses fewer parentheses in some other deparsing involving ! calls.)

    @@ -2725,7 +2733,7 @@
    • power.prop.test() now warns when it cannot solve the -problem, typically because of impossible constraints. (PR#17345) +problem, typically because of impossible constraints. (PR#17345)

    • removeSource() no longer erroneously removes @@ -2733,28 +2741,28 @@

    • nls(`NO [mol/l]` ~ f(t)) and nls(y ~ a) now -work. (Partly from PR#17367) +work. (Partly from PR#17367)

    • R CMD build checks for GNU cp rather -than assuming Linux has it. (PR#17370 says ‘Alpine +than assuming Linux has it. (PR#17370 says ‘Alpine Linux’ does not.)

    • Non-UTF-8 multibyte character handling fixed more -permanently (PR#16732). +permanently (PR#16732).

    • sum(<large ints>, <stuff>) is more consistent. -(PR#17372) +(PR#17372)

    • rf() and rbeta() now also work correctly when ncp is not scalar, notably when (partly) NA. -(PR#17375) +(PR#17375)

    • -
    • is.na(NULL) no longer warns. (PR#16107) +

    • is.na(NULL) no longer warns. (PR#16107)

    • R CMD INSTALL now correctly sets C++ compiler flags @@ -2853,7 +2861,7 @@

    • c() and unlist() are now more efficient in constructing the names(.) of their return value, thanks to -a proposal by Suharto Anggono. (PR#17284) +a proposal by Suharto Anggono. (PR#17284)

    @@ -2904,15 +2912,15 @@ connections did not signal errors when the writes failed, e.g. due to a disk being full. Errors will now be signalled if detected during the write, warnings if detected when -the connection is closed. (PR#17243) +the connection is closed. (PR#17243)

  • -
  • rt() assumed the ncp parameter was a scalar. (PR#17306) +

  • rt() assumed the ncp parameter was a scalar. (PR#17306)

  • menu(choices) with more than 10 choices which easily fit into one getOption("width")-line no longer erroneously -repeats choices. (PR#17312) +repeats choices. (PR#17312)

  • length()<- on a pairlist succeeds. @@ -2926,20 +2934,20 @@

  • Construction of names() for very large objects in c() and unlist() now works, thanks to Suharto -Anggono's patch proposals in PR#17292. +Anggono's patch proposals in PR#17292.

  • Resource leaks (and similar) reported by Steve Grubb fixed. -(PR#17314, PR#17316, PR#17317, PR#17318, PR#17319, PR#17320) +(PR#17314, PR#17316, PR#17317, PR#17318, PR#17319, PR#17320)

  • model.matrix(~1, mf) now gets the row names from mf also when they differ from 1:nrow(mf), fixing -PR#14992 thanks to the suggestion by Sebastian Meyer. +PR#14992 thanks to the suggestion by Sebastian Meyer.

  • sigma(fm) now takes the correct denominator degrees -of freedom for a fitted model with NA coefficients. (PR#17313) +of freedom for a fitted model with NA coefficients. (PR#17313)

  • hist(x, "FD") no longer “dies” with a somewhat @@ -2947,7 +2955,7 @@ IQR() zero: nclass.FD(x) tries harder to find a robust bin width h in the latter case, and hist.default(*, breaks) now checks and corrects a too large -breaks number. (PR#17274) +breaks number. (PR#17274)

  • callNextMethod() works for ... methods. @@ -2958,11 +2966,11 @@

  • Setting options(device = *) to an invalid function no -longer segfaults when plotting is initiated. (PR#15883) +longer segfaults when plotting is initiated. (PR#15883)

  • encodeString(<very large string>) no longer -segfaults. (PR#15885) +segfaults. (PR#15885)

  • It is again possible to use configure @@ -2975,7 +2983,7 @@ and only attempts to pass non-missing arguments from the generic.

  • -
  • readRDS(textConnection(.)) works again. (PR#17325) +

  • readRDS(textConnection(.)) works again. (PR#17325)

  • (1:n)[-n] no longer segfaults for n <- 2.2e9 @@ -2983,7 +2991,7 @@

  • x <- 1:2; tapply(x, list(x, x), function(x) "")[1,2] -now correctly returns NA. (PR#17333) +now correctly returns NA. (PR#17333)

  • Running of finalizers after explicit GC request moved from @@ -2997,21 +3005,21 @@ when using options(help_type = "html").

  • -
  • The X11 device no longer uses the Xlib backing store (PR#16497). +

  • The X11 device no longer uses the Xlib backing store (PR#16497).

  • array(character(), 1) now gives (a 1D array with) NA as has been documented for a long time as in the other cases of zero-length array initialization and also compatibly with matrix(character(), *). As mentioned there, this also -fixes PR#17333. +fixes PR#17333.

  • splineDesign(.., derivs = 4) no longer segfaults.

  • fisher.test(*, hybrid=TRUE) now (again) will use the -hybrid method when Cochran's conditions are met, fixing PR#16654. +hybrid method when Cochran's conditions are met, fixing PR#16654.

  • @@ -3039,11 +3047,11 @@
    • getParseData() gave incorrect column information when -code contained multi-byte characters. (PR#17254) +code contained multi-byte characters. (PR#17254)

    • Asking for help using expressions like ?stats::cor() -did not work. (PR#17250) +did not work. (PR#17250)

    • readRDS(url(....)) now works. @@ -3054,7 +3062,7 @@

    • Vignettes listed in ‘.Rbuildignore’ were not being -ignored properly. (PR#17246) +ignored properly. (PR#17246)

    • file.mtime() no longer returns NA on Windows when the @@ -3068,15 +3076,15 @@

    • (Windows only) The choose.files() function could return incorrect results when called with multi = FALSE. -(PR#17270) +(PR#17270)

    • aggregate(<data.frame>, drop = FALSE) now also works in -case of near-equal numbers in by. (PR#16918) +case of near-equal numbers in by. (PR#16918)

    • fourfoldplot() could encounter integer overflow when -calculating the odds ratio. (PR#17286) +calculating the odds ratio. (PR#17286)

    • parse() no longer gives spurious warnings when @@ -3091,7 +3099,7 @@

    • Non-UTF-8 multibyte character sets were not handled properly -in source references. (PR#16732) +in source references. (PR#16732)

    @@ -3224,7 +3232,7 @@

  • str(<looooooooong_string>) is no longer very slow; -inspired by Mikko Korpela's proposal in PR#16527. +inspired by Mikko Korpela's proposal in PR#16527.

  • str(x)'s default method is more “accurate” and @@ -3297,7 +3305,7 @@

  • addNA() is faster now, e.g. when applied twice. -(Part of PR#16895.) +(Part of PR#16895.)

  • New option rstandard(<lm>, type = "predicted") @@ -3355,7 +3363,7 @@

  • Speedup in simplify2array() and hence sapply() and mapply() (for the case of names and common length > 1), -thanks to Suharto Anggono's PR#17118. +thanks to Suharto Anggono's PR#17118.

  • table(x, exclude = NULL) now sets @@ -3368,7 +3376,7 @@

  • dump.frames() gets a new option include.GlobalEnv which allows to also dump the global -environment, thanks to Andreas Kersting's proposal in PR#17116. +environment, thanks to Andreas Kersting's proposal in PR#17116.

  • system.time() now uses message() instead of @@ -3473,7 +3481,7 @@

  • The default method for quantile(x, prob) should now -be monotone in prob, even in border cases, see PR#16672. +be monotone in prob, even in border cases, see PR#16672.

  • bug.report() now tries to extract an email address @@ -3580,7 +3588,7 @@ stack overflow, but because it is conservative may report a non-match (with a warning) in examples that matched before. By default it is enabled if any input string has 1000 or more bytes. -(PR#16757) +(PR#16757)

  • getGraphicsEvent() now works on @@ -3861,7 +3869,7 @@

  • For consistency with other package subdirectories, files named ‘*.r’ in the ‘tests’ directory are now recognized -as tests by R CMD check. (Wish of PR#17143.) +as tests by R CMD check. (Wish of PR#17143.)

  • R CMD build and R CMD check now use the @@ -3966,7 +3974,7 @@

  • Rotated symbols in plotmath expressions are now positioned -correctly on x11(type = "Xlib"). (PR#16948) +correctly on x11(type = "Xlib"). (PR#16948)

  • as<-() avoids an infinite loop when a virtual class @@ -3982,7 +3990,7 @@

  • Internal S4 dispatch sets .Generic in the method -frame for consistency with standardGeneric(). (PR#16929) +frame for consistency with standardGeneric(). (PR#16929)

  • Fix order(x, decreasing = TRUE) when x is an @@ -3990,8 +3998,8 @@ Dowle made to data.table.

  • -
  • Fix caching by callNextMethod(), resolves PR#16973 -and PR#16974. +

  • Fix caching by callNextMethod(), resolves PR#16973 +and PR#16974.

  • grouping() puts NAs last, to be consistent with the @@ -4000,12 +4008,12 @@

  • Point mass limit cases: qpois(-2, 0) now gives NaN with a warning and qgeom(1, 1) is 0. -(PR#16972) +(PR#16972)

  • table() no longer drops an "NaN" factor level, and better obeys exclude = <chr>, thanks to Suharto Anggono's -patch for PR#16936. Also, in the case of exclude = NULL +patch for PR#16936. Also, in the case of exclude = NULL and NAs, these are tabulated correctly (again).

    Further, table(1:2, exclude = 1, useNA = "ifany") no longer @@ -4040,11 +4048,11 @@

  • When in tabulate(bin, nbin) length(bin) is larger than the maximal integer, the result is now of type double and hence no longer silently overflows to wrong -values. (PR#17140) +values. (PR#17140)

  • as.character.factor() respects S4 inheritance when -checking the type of its argument. (PR#17141) +checking the type of its argument. (PR#17141)

  • The factor method for print() no longer sets @@ -4067,7 +4075,7 @@ pdf() graphics device no longer errors (then later segfaults). There is now a warning instead of error and compression is turned off for the device. Thanks to Alec -Wysoker (PR#17191). +Wysoker (PR#17191).

  • Asking for methods() on "|" returns only S3 @@ -4093,7 +4101,7 @@

  • rep(x, times) and rep.int(x, times) now work when times is larger than the largest value representable -in an integer vector. (PR#16932) +in an integer vector. (PR#16932)

  • download.file(method = "libcurl") does not check for @@ -4108,7 +4116,7 @@

  • str() no longer shows "list output truncated", in cases that list was not shown at all. Thanks to Neal Fultz -(PR#17219) +(PR#17219)

  • Fix for cairo_pdf() (and svg() and @@ -4134,15 +4142,15 @@

  • If a vignette in the ‘vignettes’ directory is listed in ‘.Rbuildignore’, R CMD build would not include it in the tarball, but would include it in the vignette database, -leading to a check warning. (PR#17246) +leading to a check warning. (PR#17246)

  • tools::latexToUtf8() infinite looped on certain -inputs. (PR#17138) +inputs. (PR#17138)

  • terms.formula() ignored argument names when determining -whether two terms were identical. (PR#17235) +whether two terms were identical. (PR#17235)

  • callNextMethod() was broken when called from a method @@ -4154,7 +4162,7 @@ generic (often leading to a segfault).

  • -
  • Fix problems in command completion: Crash (PR#17222) +

  • Fix problems in command completion: Crash (PR#17222) and junk display in Windows, handling special characters in filenames on all systems.

    @@ -4241,20 +4249,20 @@
    • vapply(x, *) now works with long vectors x. -(PR#17174) +(PR#17174)

    • isS3method("is.na.data.frame") and similar are -correct now. (PR#17171) +correct now. (PR#17171)

    • grepRaw(<long>, <short>, fixed = TRUE) now works, -thanks to a patch by Mikko Korpela. (PR#17132) +thanks to a patch by Mikko Korpela. (PR#17132)

    • Package installation into a library where the package exists via symbolic link now should work wherever -Sys.readlink() works, resolving PR#16725. +Sys.readlink() works, resolving PR#16725.

    • "Cincinnati" was missing an "n" in the @@ -4266,12 +4274,12 @@

    • getDLLRegisteredRoutines() now produces its warning -correctly when multiple DLLs match, thanks to Matt Dowle's PR#17184. +correctly when multiple DLLs match, thanks to Matt Dowle's PR#17184.

    • Sys.timezone() now returns non-NA also on platforms such as Ubuntu 14.04.5 LTS, thanks to Mikko Korpela's -PR#17186. +PR#17186.

    • format(x) for an illegal "POSIXlt" object @@ -4284,16 +4292,16 @@

    • (Windows only) dir.create() did not check the length of the path to create, and so could overflow a buffer and crash -R. (PR#17206) +R. (PR#17206)

    • On some systems, very small hexadecimal numbers in hex notation -would underflow to zero. (PR#17199) +would underflow to zero. (PR#17199)

    • pmin() and pmax() now work again for ordered factors and 0-length S3 classed objects, thanks to -Suharto Anggono's PR#17195 and PR#17200. +Suharto Anggono's PR#17195 and PR#17200.

    • bug.report() did not do any validity checking on a @@ -4319,7 +4327,7 @@

    • qbeta() underflowed too early in some very asymmetric -cases. (PR#17178) +cases. (PR#17178)

    • R CMD Rd2pdf had problems with packages with @@ -4383,7 +4391,7 @@ changed so that terminal window resizes were not signalled to readline: code has been added using a explicit signal handler to work around that (when R is compiled against readline ->= 6.3). (PR#16604) +>= 6.3). (PR#16604)

    • configure works better with Oracle Developer @@ -4440,11 +4448,11 @@

    • (Windows only) When using certain desktop themes in Windows 7 or higher, Alt-Tab could cause Rterm to stop -accepting input. (PR#14406; patch submitted by Jan Gleixner.) +accepting input. (PR#14406; patch submitted by Jan Gleixner.)

    • pretty(d, ..) behaves better for date-time d -(PR#16923). +(PR#16923).

    • When an S4 class name matches multiple classes in the S4 @@ -4464,7 +4472,7 @@

    • merge(df1, df2) now also works for data frames with column names "na.last", "decreasing", or -"method". (PR#17119) +"method". (PR#17119)

    • contour() caused a segfault if the labels @@ -4481,7 +4489,7 @@

    • (Windows only) R CMD SHLIB failed when a symbol in the resulting library had the same name as a keyword in -the ‘.def’ file. (PR#17130) +the ‘.def’ file. (PR#17130)

    • pmax() and pmin() now work with (more ?) @@ -4522,7 +4530,7 @@

    • rbeta(4, NA) and similarly rgamma() and rnbinom() now return NaN's with a warning, as other -r<dist>(), and as documented. (PR#17155) +r<dist>(), and as documented. (PR#17155)

    • Using options(checkPackageLicense = TRUE) no longer @@ -4531,15 +4539,15 @@

    • split(<very_long>, *) now works even when the split -off parts are long. (PR#17139) +off parts are long. (PR#17139)

    • min() and max() now also work correctly when -the argument list starts with character(0). (PR#17160) +the argument list starts with character(0). (PR#17160)

    • Subsetting very large matrices (prod(dim(.)) >= 2^31) -now works thanks to Michael Schubmehl's PR#17158. +now works thanks to Michael Schubmehl's PR#17158.

    • bartlett.test() used residual sums of squares @@ -4550,11 +4558,11 @@

    • plot(<lm>, which = *) now correctly labels the contour lines for the standardized residuals for which = 6. It also takes the correct p in case of singularities (also -for which = 5). (PR#17161) +for which = 5). (PR#17161)

    • xtabs(~ exclude) no longer fails from wrong scope, -thanks to Suharto Anggono's PR#17147. +thanks to Suharto Anggono's PR#17147.

    • Reference class calls to methods() did not @@ -4587,7 +4595,7 @@ when x was of length one, and either character and x and t only differed in their Encoding or when x and t where complex with NAs or NaNs. -(PR#16885.) +(PR#16885.)

    • unloadNamespace(ns) also works again when ns is a @@ -4602,10 +4610,10 @@

    • pretty(d, ..) for date-time d rarely failed -when "halfmonth" time steps were tried (PR#16923) and +when "halfmonth" time steps were tried (PR#16923) and on ‘inaccurate’ platforms such as 32-bit Windows or a configuration with --disable-long-double; see comment -#15 of PR#16761. +#15 of PR#16761.

    • In text.default(x, y, labels), the rarely(?) used @@ -4624,11 +4632,11 @@ search started by Ctrl-R in the readline-based Unix terminal interface is now supported when R was compiled against readline >= 6.0 (Ctrl-G always worked). -(PR#16603) +(PR#16603)

    • diff(<difftime>) now keeps the "units" -attribute, as subtraction already did, PR#16940. +attribute, as subtraction already did, PR#16940.

    @@ -4765,7 +4773,7 @@
  • read.table() now always uses the names for a named colClasses argument (previously names were only used when -colClasses was too short). (In part, wish of PR#16478.) +colClasses was too short). (In part, wish of PR#16478.)

  • (Windows only) download.file() with default @@ -4838,7 +4846,7 @@

  • match(x, table) is faster (sometimes by an order of magnitude) when x is of length one and incomparables -is unchanged, thanks to Peter Haverty (PR#16491). +is unchanged, thanks to Peter Haverty (PR#16491).

  • More consistent, partly not back-compatible behavior of @@ -4864,7 +4872,7 @@

  • On Unix-like platforms which support the getline C library function, system(*, intern = TRUE) no longer truncates (output) lines longer than 8192 characters, thanks to -Karl Millar. (PR#16544) +Karl Millar. (PR#16544)

  • rank() gains a ties.method = "last" option, @@ -4922,16 +4930,16 @@

  • tapply() has been made considerably more efficient without changing functionality, thanks to proposals from Peter -Haverty and Suharto Anggono. (PR#16640) +Haverty and Suharto Anggono. (PR#16640)

  • match.arg(arg) (the one-argument case) is faster; so -is sort.int(). (PR#16640) +is sort.int(). (PR#16652)

  • The format method for object_size objects now also accepts “binary” units such as "KiB" and e.g., -"Tb". (Partly from PR#16649.) +"Tb". (Partly from PR#16649.)

  • Profiling now records calls of the form foo::bar and @@ -4941,7 +4949,7 @@

  • New string utilities startsWith(x, prefix) and endsWith(x, suffix). Also provide speedups for some -grepl("^...", *) uses (related to proposals in PR#16490). +grepl("^...", *) uses (related to proposals in PR#16490).

  • Reference class finalizers run at exit, as well as on @@ -4949,7 +4957,7 @@

  • Avoid parallel dependency on stats for port -choice and random number seeds. (PR#16668) +choice and random number seeds. (PR#16668)

  • The radix sort algorithm and implementation from @@ -4992,7 +5000,7 @@ were set to the day before the start of the period being displayed. The display format has been changed, and the shift of the start day has been made conditional on right = TRUE (the -default). (PR#16679) +default). (PR#16679)

  • R now uses a new version of the logo (donated to the R @@ -5017,7 +5025,7 @@

  • as.roman(ch) now correctly deals with more diverse character vectors ch; also arithmetic with the resulting -roman numbers works in more cases. (PR#16779) +roman numbers works in more cases. (PR#16779)

  • prcomp() gains a new option rank. allowing to @@ -5211,7 +5219,7 @@

    • The API call logspace_sum introduced in R 3.2.0 is now remapped as an entry point to Rf_logspace_sum, and its -first argument has gained a const qualifier. (PR#16470) +first argument has gained a const qualifier. (PR#16470)

      Code using it will need to be reinstalled.

      @@ -5275,7 +5283,7 @@
    • A coef() method for class "maov" has been added to allow vcov() to work with multivariate -results. (PR#16380) +results. (PR#16380)

    • method = "libcurl" connections signal errors rather @@ -5285,7 +5293,7 @@

    • xpdrows.data.frame() was not checking for unique row names; in particular, this affected assignment to non-existing -rows via numerical indexing. (PR#16570) +rows via numerical indexing. (PR#16570)

    • tail.matrix() did not work for zero rows matrices, @@ -5293,11 +5301,11 @@

    • Data frames with a column named "stringsAsFactors" -now format and print correctly. (PR#16580) +now format and print correctly. (PR#16580)

    • cor() is now guaranteed to return a value with -absolute value less than or equal to 1. (PR#16638) +absolute value less than or equal to 1. (PR#16638)

    • Array subsetting now keeps names(dim(.)). @@ -5309,18 +5317,18 @@

    • The data.frame method of rbind() construction row.names works better in borderline integer cases, but -may change the names assigned. (PR#16666) +may change the names assigned. (PR#16666)

    • (X11 only) getGraphicsEvent() miscoded buttons and -missed mouse motion events. (PR#16700) +missed mouse motion events. (PR#16700)

    • methods(round) now also lists round.POSIXt.

    • tar() now works with the default files = NULL. -(PR#16716) +(PR#16716)

    • Jumps to outer contexts, for example in error recovery, now @@ -5333,7 +5341,7 @@ withCallingHandlers() and options("error") specifications are ignored when handling a C stack overflow error as attempting one of these would trigger a cascade of C stack -overflow errors. (These changes resolve PR#16753.) +overflow errors. (These changes resolve PR#16753.)

    • The spacing could be wrong when printing a complex array. @@ -5343,13 +5351,13 @@

    • pretty(d, n, min.n, *) for date-time objects d works again in border cases with large min.n, returns a labels attribute also for small-range dates and in such cases -its returned length is closer to the desired n. (PR#16761) +its returned length is closer to the desired n. (PR#16761) Additionally, it finally does cover the range of d, as it always claimed.

    • tsp(x) <- NULL did not handle correctly objects -inheriting from both "ts" and "mts". (PR#16769) +inheriting from both "ts" and "mts". (PR#16769)

    • install.packages() could give false errors when @@ -5359,16 +5367,16 @@

    • A bug fix in R 3.0.2 fixed problems with locator() in X11, but introduced problems in Windows. Now both should be -fixed. (PR#15700) +fixed. (PR#15700)

    • download.file() with method = "wininet" incorrectly warned of download file length difference when -reported length was unknown. (PR#16805) +reported length was unknown. (PR#16805)

    • diag(NULL, 1) crashed because of missed type -checking. (PR#16853) +checking. (PR#16853)

    @@ -5407,14 +5415,14 @@

  • summary(x) now prints with less rounding when -x contains infinite values. (Request of PR#16620.) +x contains infinite values. (Request of PR#16620.)

  • provideDimnames() gets an optional unique argument.

  • shQuote() gains type = "cmd2" for quoting -in cmd.exe in Windows. (Response to PR#16636.) +in cmd.exe in Windows. (Response to PR#16636.)

  • The data.frame method of rbind() gains an @@ -5478,19 +5486,19 @@

      -
    • kmeans(x, centers = <1-row>) now works. (PR#16623) +

    • kmeans(x, centers = <1-row>) now works. (PR#16623)

    • Vectorize() now checks for clashes in argument names. -(PR#16577) +(PR#16577)

    • file.copy(overwrite = FALSE) would signal a successful -copy when none had taken place. (PR#16576) +copy when none had taken place. (PR#16576)

    • ngettext() now uses the same default domain as -gettext(). (PR#14605) +gettext(). (PR#14605)

    • array(.., dimnames = *) now warns about @@ -5503,7 +5511,7 @@

    • heatmap() evaluated its add.expr argument -in the wrong environment. (PR#16583) +in the wrong environment. (PR#16583)

    • require() etc now give the correct entry of @@ -5522,35 +5530,35 @@

    • url connections with method = "libcurl" are -destroyed properly. (PR#16681) +destroyed properly. (PR#16681)

    • withCallingHandler() now (again) handles warnings -even during S4 generic's argument evaluation. (PR#16111) +even during S4 generic's argument evaluation. (PR#16111)

    • deparse(..., control = "quoteExpressions") -incorrectly quoted empty expressions. (PR#16686) +incorrectly quoted empty expressions. (PR#16686)

    • format()ting datetime objects ("POSIX[cl]?t") -could segfault or recycle wrongly. (PR#16685) +could segfault or recycle wrongly. (PR#16685)

    • plot.ts(<matrix>, las = 1) now does use las.

    • saveRDS(*, compress = "gzip") now works as -documented. (PR#16653) +documented. (PR#16653)

    • (Windows only) The Rgui front end did not always initialize the console properly, and could cause -R to crash. (PR#16698) +R to crash. (PR#16698)

    • dummy.coef.lm() now works in more cases, thanks to a -proposal by Werner Stahel (PR#16665). In addition, it now works +proposal by Werner Stahel (PR#16665). In addition, it now works for multivariate linear models ("mlm", manova) thanks to a proposal by Daniel Wollschlaeger.

      @@ -5561,12 +5569,12 @@
    • reorder() and midcache.dendrogram() now are non-recursive and hence applicable to somewhat deeply nested -dendrograms, thanks to a proposal by Suharto Anggono in PR#16424. +dendrograms, thanks to a proposal by Suharto Anggono in PR#16424.

    • cor.test() now calculates very small p values more accurately (affecting the result only in extreme not -statistically relevant cases). (PR#16704) +statistically relevant cases). (PR#16704)

    • smooth(*, do.ends=TRUE) did not always work correctly @@ -5585,21 +5593,21 @@

    • The figures in help pages such as ?points were accidentally damaged, and did not appear in R 3.2.3. -(PR#16708) +(PR#16708)

    • available.packages() sometimes deleted the wrong -file when cleaning up temporary files. (PR#16712) +file when cleaning up temporary files. (PR#16712)

    • The X11() device sometimes froze on Red Hat Enterprise Linux 6. It now waits for MapNotify events instead of Expose events, thanks to Siteshwar -Vashisht. (PR#16497) +Vashisht. (PR#16497)

    • [dpqr]nbinom(*, size=Inf, mu=.) now works as limit -case, for ‘dpq’ as the Poisson. (PR#16727)
      +case, for ‘dpq’ as the Poisson. (PR#16727)
      pnbinom() no longer loops infinitely in border cases.

    • @@ -5609,7 +5617,7 @@

    • summary.data.frame() now displays NAs in -Date columns in all cases. (PR#16709) +Date columns in all cases. (PR#16709)

    @@ -5627,7 +5635,7 @@
  • Some recently-added Windows time zone names have been added to the conversion table used to convert these to Olson names. (Including those relating to changes for Russia in Oct 2014, as in -PR#16503.) +PR#16503.)

  • (Windows) Compatibility information has been added to the @@ -5657,7 +5665,7 @@

  • (Windows only) Shortcuts for printing and saving have -been added to menus in Rgui.exe. (Request of PR#16572.) +been added to menus in Rgui.exe. (Request of PR#16572.)

  • loess(..., iterTrace=TRUE) now provides diagnostics @@ -5670,7 +5678,7 @@

  • View() now displays nested data frames in a more -friendly way. (Request with patch in PR#15915.) +friendly way. (Request with patch in PR#15915.)

  • @@ -5684,7 +5692,7 @@
  • The included configuration code for libintl has been updated to that from gettext version 0.19.5.1 — this should only affect how an external library is detected (and the -only known instance is under OpenBSD). (Wish of PR#16464.) +only known instance is under OpenBSD). (Wish of PR#16464.)

  • configure has a new argument @@ -5721,31 +5729,31 @@

    • regexpr(pat, x, perl = TRUE) with Python-style named capture did not work correctly when x contained NA -strings. (PR#16484) +strings. (PR#16484)

    • The description of dataset ToothGrowth has been -improved/corrected. (PR#15953) +improved/corrected. (PR#15953)

    • model.tables(type = "means") and hence TukeyHSD() now support "aov" fits without an -intercept term. (PR#16437) +intercept term. (PR#16437)

    • close() now reports the status of a pipe() connection opened with an explicit open argument. -(PR#16481) +(PR#16481)

    • Coercing a list without names to a data frame is faster if -the elements are very long. (PR#16467) +the elements are very long. (PR#16467)

    • (Unix-only) Under some rare circumstances piping the output from Rscript or R -f could result in attempting to close the input file twice, possibly crashing the -process. (PR#16500) +process. (PR#16500)

    • (Windows) Sys.info() was out of step with @@ -5763,13 +5771,13 @@

    • Removed some spurious warnings from configure about the -preprocessor not finding header files. (PR#15989) +preprocessor not finding header files. (PR#15989)

    • rchisq(*, df=0, ncp=0) now returns 0 instead of NaN, and dchisq(*, df=0, ncp=*) also no longer returns NaN in limit cases (where the limit is unique). -(PR#16521) +(PR#16521)

    • pchisq(*, df=0, ncp > 0, log.p=TRUE) no longer @@ -5783,7 +5791,7 @@

    • Help for which.min() is now more precise about -behavior with logical arguments. (PR#16532) +behavior with logical arguments. (PR#16532)

    • The print width of character strings marked as @@ -5796,13 +5804,13 @@

    • (Windows only) dir.create() did not always warn -when it failed to create a directory. (PR#16537) +when it failed to create a directory. (PR#16537)

    • When operating in a non-UTF-8 multibyte locale (e.g. an East Asian locale on Windows), grep() and related functions did not handle UTF-8 strings properly. -(PR#16264) +(PR#16264)

    • read.dcf() sometimes misread lines longer than 8191 @@ -5815,15 +5823,15 @@

    • The built-in HTTP server converted entire Content-Type to lowercase including parameters which -can cause issues for multi-part form boundaries (PR#16541). +can cause issues for multi-part form boundaries (PR#16541).

    • Modifying slots of S4 objects could fail when the -methods package was not attached. (PR#16545) +methods package was not attached. (PR#16545)

    • splineDesign(*, outer.ok=TRUE) (splines) is better now -(PR#16549), and interpSpline() now allows sparse=TRUE +(PR#16549), and interpSpline() now allows sparse=TRUE for speedup with non-small sizes.

    • @@ -5834,7 +5842,7 @@
    • The browser did not truncate the display of the function when exiting with options("deparse.max.lines") set. -(PR#16581) +(PR#16581)

    • When bs(*, Boundary.knots=) had boundary knots inside @@ -5843,25 +5851,25 @@

    • var() and hence sd() warn about -factor arguments which are deprecated now. (PR#16564) +factor arguments which are deprecated now. (PR#16564)

    • loess(*, weights = *) stored wrong weights and hence -gave slightly wrong predictions for newdata. (PR#16587) +gave slightly wrong predictions for newdata. (PR#16587)

    • aperm(a, *) now preserves names(dim(a)).

    • poly(x, ..) now works when either raw=TRUE or -coef is specified. (PR#16597) +coef is specified. (PR#16597)

    • data(package=*) is more careful in determining the path.

    • prettyNum(*, decimal.mark, big.mark): fixed bug -introduced when fixing PR#16411. +introduced when fixing PR#16411.

    @@ -5913,7 +5921,7 @@
  • configure now supports texinfo version 6.0, which (unlike the change from 4.x to 5.0) is a minor update. -(Wish of PR#16456.) +(Wish of PR#16456.)

  • (Non-Windows only) download.file() with default @@ -5973,7 +5981,7 @@

    • The libtool script generated by configure has been modified to support FreeBSD >= 10 -(PR#16410). +(PR#16410).

    @@ -5985,16 +5993,16 @@
    • The HTML help page links to demo code failed due to a change -in R 3.2.0. (PR#16432) +in R 3.2.0. (PR#16432)

    • If the na.action argument was used in model.frame(), the original data could be -modified. (PR#16436) +modified. (PR#16436)

    • getGraphicsEvent() could cause a crash if a graphics -window was closed while it was in use. (PR#16438) +window was closed while it was in use. (PR#16438)

    • matrix(x, nr, nc, byrow = TRUE) failed if x @@ -6003,7 +6011,7 @@

    • strptime() could overflow the allocated storage on the C stack when the timezone had a non-standard format much -longer than the standard formats. (Part of PR#16328.) +longer than the standard formats. (Part of PR#16328.)

    • options(OutDec = s) now signals a warning (which will @@ -6014,7 +6022,7 @@

    • prettyNum() gains a new option input.d.mark which together with other changes, e.g., the default for decimal.mark, fixes some format()ting variants with -non-default getOption("OutDec") such as in PR#16411. +non-default getOption("OutDec") such as in PR#16411.

    • download.packages() failed for type equal to @@ -6024,7 +6032,7 @@

    • The dendrogram method of labels() is much more efficient for large dendrograms, now using rapply(). -(Comment #15 of PR#15215) +(Comment #15 of PR#15215)

    • The "port" algorithm of nls() could give @@ -6044,7 +6052,7 @@

    • qt(*, df=Inf, ncp=.) now uses the natural -qnorm() limit instead of returning NaN. (PR#16475) +qnorm() limit instead of returning NaN. (PR#16475)

    • Auto-printing of S3 and S4 values now searches for @@ -6057,10 +6065,10 @@ returns class "poly" just like poly() which gets a new simple=FALSE option. They now lead to correct predict()ions, e.g., on subsets of the original data. -(PR#16239) +(PR#16239)

    • -
    • rhyper(nn, <large>) now works correctly. (PR#16489) +

    • rhyper(nn, <large>) now works correctly. (PR#16489)

    • ttkimage() did not (and could not) work so was @@ -6074,7 +6082,7 @@ tkimage.inuse(), tkimage.type(), tkimage.types(), -tkimage.width(). (PR#15372, PR#16450) +tkimage.width(). (PR#15372, PR#16450)

    • getClass("foo") now also returns a class definition when it is @@ -6142,7 +6150,7 @@

      • acf() and ccf() now guarantee values strictly -in [-1,1] (instead of sometimes very slightly outside). PR#15832. +in [-1,1] (instead of sometimes very slightly outside). PR#15832.

      • as.integer("111111111111") now gives NA (with a warning) as @@ -6163,42 +6171,42 @@

      • (Windows only) In some cases, the --clean option -to R CMD INSTALL could fail. (PR#16178) +to R CMD INSTALL could fail. (PR#16178)

      • (Windows only) choose.files() would occasionally include characters from the result of an earlier call in -the result of a later one. (PR#16270) +the result of a later one. (PR#16270)

      • A change in RSiteSearch() in R 3.2.0 caused it to -submit invalid URLs. (PR#16329) +submit invalid URLs. (PR#16329)

      • Rscript and command line R silently ignored incomplete statements at the end of a script; now they -are reported as parse errors. (PR#16350) +are reported as parse errors. (PR#16350)

      • -
      • Parse data for very long strings was not stored. (PR#16354) +

      • Parse data for very long strings was not stored. (PR#16354)

      • plotNode(), the workhorse of the plot method for "dendrogram"s is no longer recursive, thanks to Suharto -Anggono, and hence also works for deeply nested dendrograms. (PR#15215) +Anggono, and hence also works for deeply nested dendrograms. (PR#15215)

      • The parser could overflow internally when given numbers -in scientific format with extremely large exponents. (PR#16358) +in scientific format with extremely large exponents. (PR#16358)

      • If the CRAN mirror was not set, install.packages(type = "both") and related functions could repeatedly query the user for it. -(Part of PR#16362) +(Part of PR#16362)

      • The low-level functions .rowSums() etc. did not -check the length of their argument, so could segfault. (PR#16367) +check the length of their argument, so could segfault. (PR#16367)

      • The quietly argument of library() is now @@ -6213,7 +6221,7 @@

      • The .Primitive default methods of the logic operators, i.e., !, & and |, now give correct error messages when appropriate, e.g., for `&`(TRUE) or `!`(). -(PR#16385) +(PR#16385)

      • cummax(x) now correctly propagates NAs also @@ -6221,7 +6229,7 @@

      • summaryRprof() could fail when the profile contained -only two records. (PR#16395) +only two records. (PR#16395)

      • HTML vignettes opened using vignette() did not support @@ -6232,7 +6240,7 @@

      • arima(*, xreg = .) (for d >= 1) computes estimated variances based on a the number of effective -observations as in R version 3.0.1 and earlier. (PR#16278) +observations as in R version 3.0.1 and earlier. (PR#16278)

      • slotNames(.) is now correct for "signature" @@ -6277,13 +6285,13 @@

      • Functions in the Summary group duplicate less. -(PR#15798) +(PR#15798)

      • (Unix-alikes.) system(cmd, input = ) now uses ‘shell-execution-environment’ redirection, which will be more natural if cmd is not a single command (but requires a -POSIX-compliant shell). (Wish of PR#15508) +POSIX-compliant shell). (Wish of PR#15508)

      • read.fwf() and read.DIF() gain a @@ -6296,7 +6304,7 @@

      • pmatch() uses hashing in more cases and so is faster -at the expense of using more memory. (PR#15697) +at the expense of using more memory. (PR#15697)

      • pairs() gains new arguments to select sets of @@ -6342,7 +6350,7 @@ plot.ts() and quantile() when constructing labels and for the report from legend(trace = TRUE).

        -

        (In part, wish of PR#15819.) +

        (In part, wish of PR#15819.)

      • printNum() and hence format() and @@ -6455,7 +6463,7 @@

      • vapply(x, FUN, FUN.VALUE) is more efficient notably -for large length(FUN.VALUE); as extension of PR#16061. +for large length(FUN.VALUE); as extension of PR#16061.

      • as.table() now allows tables with one or more @@ -6482,7 +6490,7 @@

      • Speed-up from Peter Haverty for ls() and methods:::.requirePackage() speeding up package loading. -(PR#16133) +(PR#16133)

      • New get0() function, combining exists() and @@ -6497,7 +6505,7 @@

      • topenv() has been made .Internal() for -speedup, based on Peter Haverty's proposal in PR#16140. +speedup, based on Peter Haverty's proposal in PR#16140.

      • getOption() no longer calls options() in the main @@ -6630,7 +6638,7 @@

      • The matrix methods of cbind() and rbind() allow matrices as inputs which have 2^31 or more -elements. (For cbind(), wish of PR#16198.) +elements. (For cbind(), wish of PR#16198.)

      • The default method of image() has an explicit check @@ -6644,7 +6652,7 @@

      • BIC(mod) and BIC(mod, mod2) now give non-NA numbers for arima() fitted models, as nobs(mod) now gives the number of “used” observations for such models. -This fixes PR#16198, quite differently than proposed there. +This fixes PR#16198, quite differently than proposed there.

      • The print() methods for "htest", @@ -6665,7 +6673,7 @@

      • unzip() will now warn if it is able to detect truncation -when unpacking a file of 4GB or more (related to PR#16243). +when unpacking a file of 4GB or more (related to PR#16243).

      • methods() reports S4 in addition to S3 methods; @@ -6678,7 +6686,7 @@ and Reduce() now force arguments to the functions they apply in order to eliminate undesirable interactions between lazy evaluation and variable capture in closures. This resolves -PR#16093. +PR#16093.

      @@ -6698,7 +6706,7 @@ valgrind headers via configure option --with-system-valgrind-headers: note the possible future incompatibility of such headers discussed in the 'R Installation -and Administration' manual. (Wish of PR#16068.) +and Administration' manual. (Wish of PR#16068.)

    • The included version of liblzma has been updated to @@ -6969,16 +6977,16 @@

    • Fix missing() when arguments are propagated through -... . (PR#15707) +... . (PR#15707)

    • eigen(m) now defaults to symmetric = TRUE even when the dimnames are asymmetric if the matrix is otherwise -symmetric. (PR#16151) +symmetric. (PR#16151)

    • Fix issues with forwarding ... through -callGeneric() and callNextMethod(). (PR#16141) +callGeneric() and callNextMethod(). (PR#16141)

    • callGeneric() now works after a callNextMethod(). @@ -6994,7 +7002,7 @@

    • In qbeta() the inversion of pbeta() is much more sophisticated. This works better in corner cases some of -which failed completely previously (PR#15755), or were using +which failed completely previously (PR#15755), or were using too many iterations.

    • @@ -7003,7 +7011,7 @@

    • kmeans(x, k) would fail when nrow(x) >= 42949673. -(Comment 6 of PR#15364) +(Comment 6 of PR#15364)

    • ‘Abbreviated’ locale-specific day and month names @@ -7050,7 +7058,7 @@ place (a new vector is allocated for each invocation, which mimics the implicit duplication that occurred in R < 3.1.0); note that this is a change from the previously documented -behavior. (PR#15958) +behavior. (PR#15958)

    • icuSetCollate() now accepts locale = "ASCII" @@ -7065,7 +7073,7 @@

    • model.frame() (used by lm() and many other modelling functions) now warns when it drops contrasts -from factors. (Wish of PR#16119) +from factors. (Wish of PR#16119)

    • install.packages() and friends now accept the value @@ -7167,27 +7175,27 @@

    • The parser now gives an error if a null character is included -in a string using Unicode escapes. (PR#16046) +in a string using Unicode escapes. (PR#16046)

    • qr.Q() failed on complex arguments due to -pre-3.0(!) typo. (PR#16054) +pre-3.0(!) typo. (PR#16054)

    • abs() failed with named arguments when the argument -was complex. (PR#16047) +was complex. (PR#16047)

    • "noquote" objects may now be used as columns in -data frames. (PR#15997) +data frames. (PR#15997)

    • Some values with extremely long names were printed -incorrectly. (PR#15999) +incorrectly. (PR#15999)

    • Extremely large exponents on zero expressed in scientific -notation (e.g. 0.0e50000) could give NaN. (PR#15976) +notation (e.g. 0.0e50000) could give NaN. (PR#15976)

    • download.file() reported downloaded sizes as 0KB if @@ -7199,16 +7207,16 @@

    • drop.terms() dropped some of the attributes of the -object it was working with. (PR#16029) +object it was working with. (PR#16029)

    • (Windows.) The command completion in Rgui.exe -messed up the console. (PR#15791) +messed up the console. (PR#15791)

    • (Windows.) The choose.files() command returned a blank string when the user asked for a single file but cancelled -the request. (PR#16074) +the request. (PR#16074)

    • Math2 S4 group generics failed to correctly dispatch @@ -7224,7 +7232,7 @@

      Inter alia that fix gives the documented behaviour for substr(x, 1, 2) <- "" (subsequently reported as -PR#16214). +PR#16214).

    • Loading packages incorrectly defining an S4 generic followed @@ -7243,16 +7251,16 @@

    • power.t.test() and power.prop.test() now make use of the extendInt option of uniroot() and hence -work in more extreme cases. (PR#15792) +work in more extreme cases. (PR#15792)

    • If a package was updated and attached when its namespace was already loaded, it could end up with parts from one version and -parts from the other. (PR#16120) +parts from the other. (PR#16120)

    • tools:::.Rdconv() didn't accept --encoding= due -to a typo. (PR#16121) +to a typo. (PR#16121)

    • Unix-alike builds without a suitable makeinfo were @@ -7260,7 +7268,7 @@

    • save(*, ascii=TRUE) and load() now correctly -deal with NaN's. (PR#16137) +deal with NaN's. (PR#16137)

    • split.Date() retains fractional representations while @@ -7269,7 +7277,7 @@

    • R_ext/Lapack.h’ had not been updated for changes made by LAPACK to the argument lists of its (largely internal) -functions dlaed2 and dlaed3. (PR#16157) +functions dlaed2 and dlaed3. (PR#16157)

    • RShowDoc("NEWS", "txt") had not been updated for the @@ -7281,12 +7289,12 @@

    • mode(x) <- y would incorrectly evaluate x before -changing its mode. (PR#16215) +changing its mode. (PR#16215)

    • besselJ(1, 2^64) and besselY(..) now signal a warning, returning NaN instead of typically -segfaulting. (Issue 3 of PR#15554) +segfaulting. (Issue 3 of PR#15554)

    • HTML conversion of \href markup in ‘.Rd’ files @@ -7391,7 +7399,7 @@ if an R shared library has already been installed by e.g. install-libR in a library mentioned in LDFLAGS (and not in ‘your system's library directory’ -as documented). (Wish of PR#15790.) +as documented). (Wish of PR#15790.)

    • LaTeX package upquote is no longer required for R's @@ -7451,7 +7459,7 @@

    • A longstanding bug exhibited by nlminb() on Windows was traced to a compiler bug in gcc 4.6.3; a workaround has been -put in place. (PR#15244 and PR#15914). +put in place. (PR#15244 and PR#15914).

    • Rendering of \command in HTML versions of help pages @@ -7465,7 +7473,7 @@

    • drop1() failed if the scope argument had -no variables to drop. (PR#15935) +no variables to drop. (PR#15935)

    • edit() (and hence fix()) failed if @@ -7474,7 +7482,7 @@

    • callGeneric() could fail if the generic had -... as a formal argument. (PR#15937). +... as a formal argument. (PR#15937).

    • Forking in package parallel called C entry point @@ -7494,7 +7502,7 @@

    • The confint() method for nls() fits failed it these has specified parameter limits despite using an algorithm -other than "port". (PR#15960) +other than "port". (PR#15960)

    • Subclassing an S4 class failed if the class required @@ -7503,23 +7511,23 @@

    • removeSource() did not properly handle expressions containing arguments that were supplied as missing, e.g. -x[i,]. (PR#15957) +x[i,]. (PR#15957)

    • as.environment(list()) now works, and as.list() of such an environment is now the same as -list(). (PR#15926) +list(). (PR#15926)

    • Several tcltk functions failed when run in unusual -environments. (PR#15970) +environments. (PR#15970)

    • -
    • options(list()) now works (trivially). (PR#15979) +

    • options(list()) now works (trivially). (PR#15979)

    • merge(<dendrogram>, ..) now works correctly for two -‘independent’ dendrograms (PR#15648), and still compatibly +‘independent’ dendrograms (PR#15648), and still compatibly via adjust = "auto" e.g. for two branches of an existing dendrogram.

      @@ -7531,11 +7539,11 @@
    • (Windows only) If a user chose to install 64 bit R but not 32 bit R, the ‘bin/R’ and ‘bin/Rscript’ executables -failed to run. (PR#15981) +failed to run. (PR#15981)

    • Various possible buffer overruns have been prevented, -and missed memory protection added. (PR#15990) +and missed memory protection added. (PR#15990)

    • Rscript no longer passes --args to @@ -7550,30 +7558,30 @@

    • hist(x, breaks) is more robust in adding a small fuzz -to few breaks when some are very large. (PR#15988) +to few breaks when some are very large. (PR#15988)

    • sub() and gsub() did not handle regular expressions like "\s{2,}" properly if the text contained NA or non-ASCII elements in a UTF-8 locale. Part of this was due to a bug in the TRE library. -(PR#16009) +(PR#16009)

    • RShowDoc("NEWS") now displays the PDF version.

    • Matrices and arrays with last dimension zero did not print -at all or incompletely. (PR#16012) +at all or incompletely. (PR#16012)

    • plot.histogram() and hence hist() now respect the xaxs, yaxs and lab graphics parameters. -(PR#16021) +(PR#16021)

    • bw.SJ(x) and other bw.*() no longer segfault when -x contains non-finite values. (PR#16024) +x contains non-finite values. (PR#16024)

    • R CMD Rd2pdf unintentionally ignored its @@ -7590,7 +7598,7 @@

    • Work around a bug in OS X Yosemite where key environment variables may be duplicated causing issues in subprocesses. The duplicates are now removed on R startup (via -Rprofile). (PR#16042) +Rprofile). (PR#16042)

    • Adjust X11 auto-launch detection in DISPLAY on OS X to @@ -7647,7 +7655,7 @@

    • For some compilers, integer addition could overflow without a warning. R's internal code for both integer addition and -subtraction is more robust now. (PR#15774) +subtraction is more robust now. (PR#15774)

    • The function determining the default number of knots for @@ -7730,7 +7738,7 @@

    • Compilers/linkers were handling the visibility control in ‘src/extra/xz’ inconsistently (and apparently in some cases -incorrectly), so it has been simplified. (PR#15327) +incorrectly), so it has been simplified. (PR#15327)

    • (Windows) There is updated support for the use of ICU for @@ -7747,40 +7755,40 @@

      • dbinom(x, n), pbinom(), dpois(), etc, are slightly less restrictive in checking if n is -integer-valued. (Wish of PR#15734.) +integer-valued. (Wish of PR#15734.)

      • pchisq(x, df, ncp, log.p = TRUE) is more accurate and no longer underflows for small x and ncp < 80, e.g, for pchisq(1e-5, df = 100, ncp = 1, log = TRUE). -(Based on PR#15635 and a suggestion by Roby Joehanes.) +(Based on PR#15635 and a suggestion by Roby Joehanes.)

      • The s (“step into”) command in the debugger would cause R to step into expressions evaluated there, -not just into functions being debugged. (PR#15770) +not just into functions being debugged. (PR#15770)

      • The C code used by strptime() rejected time-zone offsets of more than +1200 (+1245, +1300 and -+1400 can occur). (PR#15768) ++1400 can occur). (PR#15768)

      • (Windows only.) png(type = "cairo", antialias = "gray") -was not accepted. (PR#15760) +was not accepted. (PR#15760)

      • Use of save(..., envir=) with named objects could -fail. (PR#15758) +fail. (PR#15758)

      • Sweave() mis-parsed Sexpr expressions that -contained backslashes. (PR#15779) +contained backslashes. (PR#15779)

      • The return value from options(foo = NULL) was not -the previous value of the option. (PR#15781) +the previous value of the option. (PR#15781)

      • enc2utf8() and enc2native() did not always @@ -7822,18 +7830,18 @@ ascertained which files are intended to be vignettes. This means that the VignetteBuilder packages have to be installed for package checking too.) -(Wish of PR#15775.) +(Wish of PR#15775.)

      • Misguided attempts to use chull() with non-finite -points now give an error (related to PR#15777). +points now give an error (related to PR#15777).

      • For a formula with exactly 32 variables the 32nd variable was aliased to the intercept in some C-level computations of terms, so that for example attempting to remove it would remove the intercept instead (and leave a corrupt internal structure). -(PR#15735) +(PR#15735)

      • anyDuplicated() silently returned wrong values when @@ -7848,11 +7856,11 @@

      • Hexadecimal constants such as 0x110p-5L which were incorrectly qualified by L were parsed incorrectly since R -3.0.0, with a slightly garbled warning. (PR#15753) +3.0.0, with a slightly garbled warning. (PR#15753)

      • system() returned success on some platforms even if -the system was unable to launch a process. (PR#15796) +the system was unable to launch a process. (PR#15796)

      • (Windows Rgui console.) Unbuffered output was @@ -7920,7 +7928,7 @@

      • numericDeriv() sometimes miscalculated the gradient. -(PR#15849, reported originally by Radford Neal) +(PR#15849, reported originally by Radford Neal)

      @@ -7952,7 +7960,7 @@
    • New function anyNA(), a version of any(is.na(.)) which is fast for atomic vectors, based on a -proposal by Tim Hesterberg. (Wish of PR#15239.) +proposal by Tim Hesterberg. (Wish of PR#15239.)

    • arrayInd(*, useNames = TRUE) and, analogously, @@ -8023,7 +8031,7 @@

    • combn(x, simplify = TRUE) now gives a factor result for factor input x (previously user error). -(Related to PR#15442.) +(Related to PR#15442.)

    • Added utils::fileSnapshot() and @@ -8032,14 +8040,14 @@

    • make.names(names, unique=TRUE) now tries to preserve -existing names. (Suggestion of PR#15452.) +existing names. (Suggestion of PR#15452.)

    • New functions cospi(x), sinpi(x), and tanpi(x), for more accurate computation of cos(pi*x), etc, both in R and the C API. Using these gains accuracy in some cases, e.g., inside lgamma() or -besselI(). (Suggested by Morten Welinder in PR#15529.) +besselI(). (Suggested by Morten Welinder in PR#15529.)

    • print.table(x, zero.print = ".") now also has an @@ -8069,7 +8077,7 @@

    • The "save.defaults" option can include a value for -compression_level. (Wish of PR#15579.) +compression_level. (Wish of PR#15579.)

    • colSums() and friends now have support for arrays and @@ -8081,7 +8089,7 @@

    • fft() now works with longer inputs, from the 12 -million previously supported up to 2 billion. (PR#15593) +million previously supported up to 2 billion. (PR#15593)

    • Complex svd() now uses LAPACK subroutine @@ -8117,7 +8125,7 @@

    • dnorm(x, log = FALSE) is more accurate (but somewhat -slower) for |x| > 5; as suggested in PR#15620. +slower) for |x| > 5; as suggested in PR#15620.

    • Some versions of the tiff() device have further @@ -8148,7 +8156,7 @@

    • arima() and makeARIMA() get a new optional argument SSinit, allowing the choice of a different state space initialization which has been observed -to be more reliable close to non-stationarity: see PR#14682. +to be more reliable close to non-stationarity: see PR#14682.

    • warning() has a new argument noBreaks., to @@ -8203,11 +8211,11 @@ returns a logical vector.

    • -
    • fifo() is now supported on Windows. (PR#15600) +

    • fifo() is now supported on Windows. (PR#15600)

    • sort.list(method = "radix") now allows negative -integers (wish of PR#15644). +integers (wish of PR#15644).

    • Some functionality of print.ts() is now available in @@ -8228,11 +8236,11 @@

    • The rightmost break for the "months", "quarters" and "years" cases of hist.POSIXlt() has been increased by a day. (Inter alia, -fixes PR#15717.) +fixes PR#15717.)

    • The handling of DF[i,] <- a where i is of -length 0 is improved. (Inter alia, fixes PR#15718.) +length 0 is improved. (Inter alia, fixes PR#15718.)

    • hclust() gains a new method "ward.D2" which @@ -8326,7 +8334,7 @@

    • There is a new option --use-system-tre to use a suitable system tre library: at present this means a version from their git repository, after corrections. -(Wish of PR#15660.) +(Wish of PR#15660.)

    @@ -8387,7 +8395,7 @@
    • The behaviour of the code browser has been made more -consistent, in part following the suggestions in PR#14985. +consistent, in part following the suggestions in PR#14985.

    • Calls to browser() are now consistent with calls @@ -8621,7 +8629,7 @@

    • getGraphicsEvent() caused 100% usage of one CPU in -Windows. (PR#15500) +Windows. (PR#15500)

    • nls() with no start argument may now work @@ -8660,32 +8668,32 @@

    • Some bugs in TRE have been corrected by updating from the git repository. This allows R to be installed on some -platforms for which this was a blocker (PR#15087 suggests Linux +platforms for which this was a blocker (PR#15087 suggests Linux on ARM and HP-UX).

    • ? applied to a call to an S4 generic failed in -several cases. (PR#15680) +several cases. (PR#15680)

    • The implicit S4 generics for primitives with ... in -their argument list were incorrect. (PR#15690) +their argument list were incorrect. (PR#15690)

    • -
    • Bug fixes to methods::callGeneric(). (PR#15691) +

    • Bug fixes to methods::callGeneric(). (PR#15691)

    • -
    • The bug fix to aggregrate() in PR#15004 introduced -a new bug in the case of no grouping variables. (PR#15699) +

    • The bug fix to aggregrate() in PR#15004 introduced +a new bug in the case of no grouping variables. (PR#15699)

    • In rare cases printing deeply nested lists overran a buffer -by one byte and on a few platforms segfaulted. (PR#15679) +by one byte and on a few platforms segfaulted. (PR#15679)

    • The dendrogram method of as.dendrogram() was hidden -accidentally, (PR#15703), and order.dendrogram(d) gave -too much for a leaf d. (PR#15702) +accidentally, (PR#15703), and order.dendrogram(d) gave +too much for a leaf d. (PR#15702)

    • R would try to kill processes on exit that have pids ever @@ -8695,13 +8703,13 @@

    • cophenetic() applied to a "dendrogram" object sometimes incorrectly returned a "Labels" attribute with -dimensions. (PR#15706) +dimensions. (PR#15706)

    • printCoefmat() called from quite a few print() methods now obeys small getOption("width") settings, line wrapping the "signif. codes" legend appropriately. -(PR#15708) +(PR#15708)

    • model.matrix() assumed that the stored dimnames for a @@ -8757,18 +8765,18 @@

    • The backtick may now be escaped in strings, to allow names -containing them to be constructed, e.g. `\``. (PR#15621) +containing them to be constructed, e.g. `\``. (PR#15621)

    • read.table(), readLines() and scan() now warn when an embedded nul is found in the input. (Related to -PR#15625 which was puzzled by the behaviour in this unsupported +PR#15625 which was puzzled by the behaviour in this unsupported case.)

    • (Windows only.) file.symlink() works around the undocumented restriction of the Windows system call to -backslashes. (Wish of PR#15631.) +backslashes. (Wish of PR#15631.)

    • KalmanForecast(fast = FALSE) is now the default, and @@ -8796,7 +8804,7 @@

    • available.packages() is better protected against corrupt metadata files. (A recurring problem with Debian package -shogun-r: PR#14713.) +shogun-r: PR#14713.)

    • Finalizers are marked to be run at garbage collection, but @@ -8875,11 +8883,11 @@

    • provideDimnames() failed for arrays with a 0 -dimension. (PR#15465) +dimension. (PR#15465)

    • rbind() and cbind() did not handle -list objects correctly. (PR#15468) +list objects correctly. (PR#15468)

    • replayPlot() now checks if it is replaying a plot @@ -8891,7 +8899,7 @@

    • plot.lm() would sometimes scramble the labels -in plot type 5. (PR#15458 and PR#14837) +in plot type 5. (PR#15458 and PR#14837)

    • min() did not handle NA_character_ values @@ -8899,7 +8907,7 @@

    • (Windows only.) readRegistry() would duplicate -default values for keys. (PR#15455) +default values for keys. (PR#15455)

    • str(..., strict.width = "cut") did not handle @@ -8908,11 +8916,11 @@

    • Removing subclass back-references when S4 classes were -removed or their namespace unloaded had several bugs (e.g., PR#15481). +removed or their namespace unloaded had several bugs (e.g., PR#15481).

    • aggregate() could fail when there were too many -levels present in the by argument. (PR#15004) +levels present in the by argument. (PR#15004)

    • namespaceImportFrom() needed to detect primitive @@ -8921,20 +8929,20 @@

    • getGraphicsEvent() did not exit when a user closed -the graphics window. (PR#15208) +the graphics window. (PR#15208)

    • Errors in vignettes were not always captured and displayed -properly. (PR#15495) +properly. (PR#15495)

    • contour() could fail when dealing with extremely -small z values. (PR#15454) +small z values. (PR#15454)

    • Several functions did not handle zero-length vectors properly, including browseEnv(), format(), gl(), -relist() and summary.data.frame(). (E.g., PR#15499) +relist() and summary.data.frame(). (E.g., PR#15499)

    • Sweave() did not restore the R output to the @@ -8946,7 +8954,7 @@

    • Illegal characters in the input caused parse() -(and thus source()) to segfault. (PR#15518) +(and thus source()) to segfault. (PR#15518)

    • The nonsensical use of nmax = 1 in @@ -8954,7 +8962,7 @@

    • qcauchy(p, *) is now fully accurate even when p is -very close to 1. (PR#15521) +very close to 1. (PR#15521)

    • The validmu() and valideta() functions in the @@ -8968,11 +8976,11 @@

    • Double-clicking outside of the list box (e.g., on the scrollbar) of a Tk listbox widget generated by tk_select.list() no -longer causes the window to close. (PR#15407) +longer causes the window to close. (PR#15407)

    • Improved handling of edge cases in -parallel::splitindices(). (PR#15552) +parallel::splitindices(). (PR#15552)

    • HTML display of results from help.search() and @@ -8980,7 +8988,7 @@

    • c() and related functions such as unlist() -converted raw vectors to invalid logical vectors. (PR#15535) +converted raw vectors to invalid logical vectors. (PR#15535)

    • (Windows only) When a call to system2() specified @@ -9014,16 +9022,16 @@

    • rowsum() has more support for matrices and data frames -with 2^31 or more elements. (PR#15587) +with 2^31 or more elements. (PR#15587)

    • predict(<lm object>, interval = "confidence", scale = - <something>) now works. (PR#15564) + <something>) now works. (PR#15564)

    • -
    • The bug fix in 3.0.2 for PR#15411 was too aggressive, +

    • The bug fix in 3.0.2 for PR#15411 was too aggressive, and sometimes removed spaces that should not have been removed. -(PR#15583) +(PR#15583)

    • Running R code in a tcltk callback failed to set the @@ -9041,14 +9049,14 @@

    • deparse() now deparses complex vectors in a way that -re-parses to the original values. (PR#15534, patch based on code +re-parses to the original values. (PR#15534, patch based on code submitted by Alex Bertram.)

    • In some extreme cases (more than 10^15) integer inputs to dpqrxxx() functions might have been rounded up by one (with a warning about being non-integer). -(PR#15624) +(PR#15624)

    • Plotting symbol pch = 14 had the triangle upside down @@ -9077,15 +9085,15 @@

    • pbeta(x, a, b, log.p = TRUE) sometimes underflowed to zero for very small and very differently sized a, b. -(PR#15641) +(PR#15641)

    • approx() and approxfun() now handle infinite -values with the "constant" method. (PR#15655) +values with the "constant" method. (PR#15655)

    • stripchart() again respects reversed limits in -xlim and ylim. (PR#15664) +xlim and ylim. (PR#15664)

    @@ -9122,7 +9130,7 @@

  • str(x) is considerably faster for very large lists, -or factors with 100,000 levels, the latter as in PR#15337. +or factors with 100,000 levels, the latter as in PR#15337.

  • col2rgb() now converts factors to character strings @@ -9180,7 +9188,7 @@

  • Methods invoked by NextMethod() had a different dynamic parent to the generic. This was causing trouble where S3 methods invoked via lazy evaluation could lose track of -their generic. (PR#15267) +their generic. (PR#15267)

  • Code for the negative binomial distribution now treats the case @@ -9192,12 +9200,12 @@

  • read.dcf() no longer has a limit of 8191 bytes per -line. (Wish of PR#15250.) +line. (Wish of PR#15250.)

  • formatC(x) no longer copies the class of x to the result, to avoid misuse creating invalid objects as in -PR#15303. A warning is given if a class is discarded. +PR#15303. A warning is given if a class is discarded.

  • Dataset npk has been copied from MASS to @@ -9207,12 +9215,12 @@

  • The initialization of the regression coefficients for non-degenerate differenced models in arima() has been -changed and in some examples avoids a local maximum. (PR#15396) +changed and in some examples avoids a local maximum. (PR#15396)

  • termplot() now has an argument transform.x to control the display of individual terms in the plot. -(PR#15329) +(PR#15329)

  • format() now supports digits = 0, to @@ -9508,20 +9516,20 @@

    • help.request() could not determine the current version -of R on CRAN. (PR#15241) +of R on CRAN. (PR#15241)

    • On Windows, file.info() failed on root directories unless -the path was terminated with an explicit ".". (PR#15302) +the path was terminated with an explicit ".". (PR#15302)

    • The regmatches<-() replacement function mishandled -results coming from regexpr(). (PR#15311) +results coming from regexpr(). (PR#15311)

    • The help for setClass() and representation() still suggested the deprecated argument -representation=. (PR#15312) +representation=. (PR#15312)

    • R CMD config failed in an installed build of R @@ -9546,7 +9554,7 @@

    • qr.coef() and related functions did not properly coerce -real vectors to complex when necessary. (PR#15332) +real vectors to complex when necessary. (PR#15332)

    • ftable(a) now fixes up empty dimnames such @@ -9559,13 +9567,13 @@

    • Parsing code was changing the length field of vectors and -confusing the memory manager. (PR#15345) +confusing the memory manager. (PR#15345)

    • The Fortran routine ZHER2K in the reference BLAS had a comment-out bug in two places. This caused trouble with eigen() for Hermitian matrices. -(PR#15345 and report from Robin Hankin) +(PR#15345 and report from Robin Hankin)

    • vignette() and browseVignettes() did not @@ -9575,12 +9583,12 @@

    • Two warning/error messages have been corrected: the (optional) warning produced by a partial name match with a pairlist, the error message from a zero-length argument to -the : operator. (Found by Radford Neal; PR#15358, -PR#15356) +the : operator. (Found by Radford Neal; PR#15358, +PR#15356)

    • svd() returned NULL rather than omitting -components as documented. (Found by Radford Neal; PR#15360) +components as documented. (Found by Radford Neal; PR#15360)

    • mclapply() and mcparallel() with @@ -9594,28 +9602,28 @@

    • log(), signif() and round() now raise an -error if a single named argument is not named x. (PR#15361) +error if a single named argument is not named x. (PR#15361)

    • deparse() now deparses raw vectors in a form that -is syntactically correct. (PR#15369) +is syntactically correct. (PR#15369)

    • The jpeg driver in Sweave created a JPEG file, but gave -it a ‘.png’ extension. (PR#15370) +it a ‘.png’ extension. (PR#15370)

    • Deparsing of infix operators with named arguments is -improved. (PR#15350) +improved. (PR#15350)

    • mget(), seq.int() and numericDeriv() -did not duplicate arguments properly. (PR#15352, PR#15353, -PR#15354) +did not duplicate arguments properly. (PR#15352, PR#15353, +PR#15354)

    • kmeans(algorithm = "Hartigan-Wong") now always stops -iterating in the QTran stage. (PR#15364). +iterating in the QTran stage. (PR#15364).

    • read.dcf() re-allocated incorrectly and so could @@ -9628,37 +9636,37 @@

    • add1.glm() miscalculated F-statistics when df > 1. (Bill -Dunlap, PR#15386). +Dunlap, PR#15386).

    • stem() now discards infinite inputs rather than -hanging. (PR#15376) +hanging. (PR#15376)

    • The parser now enforces C99 syntax for floating point hexadecimal constants (e.g., 0x1.1p0), rather than returning -unintended values for malformed constants. (PR#15234) +unintended values for malformed constants. (PR#15234)

    • model.matrix() now works with very long LHS -names (more than 500 bytes). (PR#15377) +names (more than 500 bytes). (PR#15377)

    • integrate() reverts to the pre-2.12.0 behaviour: from 2.12.0 to 3.0.1 it sometimes failed to achieve the requested tolerance and reported error estimates that were exceeded. -(PR#15219) +(PR#15219)

    • strptime() now handles %W fields with value -0. (PR#15915) +0. (PR#15915)

    • R is now better protected against people trying to interact -with the console in startup code. (PR#15325) +with the console in startup code. (PR#15325)

    • -
    • Subsetting 1D arrays often lost dimnames (PR#15301). +

    • Subsetting 1D arrays often lost dimnames (PR#15301).

    • Unary + on a logical vector did not coerce to @@ -9666,7 +9674,7 @@

    • na.omit() and na.exclude() added a row -to a zero-row data frame. (PR#15399) +to a zero-row data frame. (PR#15399)

    • All the (where necessary cut-down) vignettes are installed @@ -9683,12 +9691,12 @@

    • (Windows only) Starting R with R (instead of Rterm or Rgui) would lose any -zero-length strings from the command line arguments. (PR#15406) +zero-length strings from the command line arguments. (PR#15406)

    • Errors in the encoding specified on the command line via --encoding=foo were not handled properly. -(PR#15405) +(PR#15405)

    • If x is a symbol, is.vector(x, "name") now @@ -9697,7 +9705,7 @@

    • R CMD rtags works on platforms (such as OS X) -with a XSI-conformant shell command echo. (PR#15231) +with a XSI-conformant shell command echo. (PR#15231)

    • is.unsorted(NA) returns false as documented (rather than @@ -9729,19 +9737,19 @@

    • (Windows) system2() now respects specifying stdout and stderr as files if called from -Rgui. (PR#15393) +Rgui. (PR#15393)

    • Closing an x11() device whilst locator() or -identify() is in progress no longer hangs R. (PR#15253) +identify() is in progress no longer hangs R. (PR#15253)

    • list.dirs(full.names = FALSE) was not implemented. -(PR#15170) +(PR#15170)

    • format() sometimes added unnecessary spaces. -(PR#15411) +(PR#15411)

    • all.equal(check.names = FALSE) would ignore the request @@ -9749,16 +9757,16 @@

    • The symbol set by tools::Rd2txt_options(itemBullet=) -was not respected in some locales. (PR#15435) +was not respected in some locales. (PR#15435)

    • mcMap() was not exported by package -parallel. (PR#15439) +parallel. (PR#15439)

    • plot() for TukeyHSD objects did not balance dev.hold() and dev.flush() calls on multi-page plots. -(PR#15449) +(PR#15449)

    @@ -9871,7 +9879,7 @@
  • as.POSIXct.numeric was coercing origin using the tz argument and not "GMT" as documented -(PR#14973). +(PR#14973).

  • The active binding to assign fields in reference classes @@ -9881,7 +9889,7 @@

  • str(d) no longer gives an error when names(d) -contain illegal multibyte strings (PR#15247). +contain illegal multibyte strings (PR#15247).

  • Profiling of built-in functions with line.profiling= @@ -9889,17 +9897,17 @@

  • citation(pkg) dropped the header and footer specified -in the ‘CITATION’ file (PR#15257). +in the ‘CITATION’ file (PR#15257).

  • Quotes were handled differently when reading the first line and reading the rest, so read.table() misread some files -that contained quote characters (PR#15245). +that contained quote characters (PR#15245).

  • cat() with sep a character vector of length greater than one and more than one argument was using separators -inconsistently (PR#15261). +inconsistently (PR#15261).

  • On Windows in R 3.0.0, savePlot() failed because of @@ -9925,7 +9933,7 @@

  • In R 3.0.0, identify() and locator() did not record information correctly, so replaying a graph (e.g., by -copying it to another device) would fail. (PR#15271) +copying it to another device) would fail. (PR#15271)

  • Calling file.copy() or dirname() with the @@ -9942,7 +9950,7 @@

  • as.dendrogram()'s hclust method uses less memory and hence gets considerably faster for large (n ~ 1000) -clusterings, thanks to Daniel Müllner. (PR#15174) +clusterings, thanks to Daniel Müllner. (PR#15174)

  • The return value when all workers failed from @@ -9953,18 +9961,18 @@

  • In R 3.0.0, when help() found multiple pages with the same alias, the HTML display of all the selections was not -produced. (PR#15282) +produced. (PR#15282)

  • splinefun(method="monoH.FC") now produces a function with first argument named x and allows -deriv=3, as documented. (PR#15273) +deriv=3, as documented. (PR#15273)

  • summaryRprof() would only read the first chunksize lines of an Rprof file produced with line.profiling=TRUE. By default, this is the first 100 -seconds. (PR#15288) +seconds. (PR#15288)

  • lsfit() produced an incorrect error message when @@ -9974,7 +9982,7 @@

  • Binary operations on equal length vectors copied the class name from the second operand when the first had no -class name, but did not set the object bit. (PR#15299) +class name, but did not set the object bit. (PR#15299)

  • The trace() method for reference generator objects @@ -9983,7 +9991,7 @@

  • write.table() did not check that factors were constructed correctly, and so caused a segment fault when -writing bad ones. (PR#15300) +writing bad ones. (PR#15300)

  • The internal HTTP server no longer chokes on POST requests @@ -10118,7 +10126,7 @@

  • as.tclObj() has been extended to handle raw vectors. Previously, it only worked in the other direction. -(Contributed by Charlie Friedemann, PR#14939.) +(Contributed by Charlie Friedemann, PR#14939.)

  • New functions cite() and citeNatbib() have @@ -10142,7 +10150,7 @@

  • pairs() has a new log argument, to allow some or all variables to be plotted on logarithmic scale. -(In part, wish of PR#14919.) +(In part, wish of PR#14919.)

  • split() gains a sep argument. @@ -10183,7 +10191,7 @@

  • merge() works in more cases where the data frames -include matrices. (Wish of PR#14974.) +include matrices. (Wish of PR#14974.)

  • optimize() and uniroot() no longer use a @@ -10287,7 +10295,7 @@

  • termplot() gains a new argument plot = FALSE which returns information to allow the plots to be modified for use as part of other plots, but does not plot them. -(Contributed by Terry Therneau, PR#15076.) +(Contributed by Terry Therneau, PR#15076.)

  • quartz.save(), formerly an undocumented part of @@ -10378,11 +10386,11 @@

  • Sys.which() now returns NA (not "") for -NA inputs (related to PR#15147). +NA inputs (related to PR#15147).

  • The print() method for class "htest" gives -fewer trailing spaces (wish of PR#15124). +fewer trailing spaces (wish of PR#15124).

    Also print output from HoltWinters(), nls() and others.

    @@ -10405,7 +10413,7 @@

  • close() now returns an integer status where available, -invisibly. (Wish of PR#15088.) +invisibly. (Wish of PR#15088.)

  • The internal method of tar() can now store paths too @@ -10472,7 +10480,7 @@

  • The print method for objects of class "table" now detects tables with 0-extents and prints the results as, e.g., -< table of extent 0 x 1 x 2 >. (Wish of PR#15198.) +< table of extent 0 x 1 x 2 >. (Wish of PR#15198.)

  • Deparsing involving calls to anonymous functions has been @@ -11200,7 +11208,7 @@

  • When R CMD build is run in an encoding other than the one specified in the package's ‘DESCRIPTION’ file it tries harder to expand the authors@R field in the specified -encoding. (PR#14958) +encoding. (PR#14958)

  • If R CMD INSTALL is required to expand the @@ -11235,7 +11243,7 @@

  • In Windows, tcltk windows were not always properly constructed. -(PR#15150) +(PR#15150)

  • The internal functions implementing parse(), @@ -11252,7 +11260,7 @@

  • setHook(hookname, value, action="replace") set the hook to be the value, rather than a list containing the value as -documented. (PR#15167) +documented. (PR#15167)

  • If a package used a ‘NEWS.Rd’ file, the main HTML @@ -11272,12 +11280,12 @@

  • pbeta(.28, 1/2, 2200, lower.tail=FALSE, log.p=TRUE) is no longer -Inf; ditto for corresponding pt() and pf() calls, such as pt(45, df=5000, lower.tail=FALSE, - log.p=TRUE). (PR#15162) + log.p=TRUE). (PR#15162)

  • The Windows graphics device would crash R if a user attempted to load the graphics history from a variable that was -not a saved history. (PR#15230) +not a saved history. (PR#15230)

  • The workspace size for the predict() @@ -11291,7 +11299,7 @@

  • Calling cat() on a malformed UTF-8 string could cause -the Windows GUI to lock up. (PR#15227) +the Windows GUI to lock up. (PR#15227)

  • removeClass(cc) gave "node stack overflow" for some @@ -11317,4 +11325,4 @@ - +

  • diff -Nru r-base-4.0.3/doc/html/NEWS.html r-base-4.1.2/doc/html/NEWS.html --- r-base-4.0.3/doc/html/NEWS.html 2020-10-10 07:03:10.000000000 +0000 +++ r-base-4.1.2/doc/html/NEWS.html 2021-11-01 08:03:12.000000000 +0000 @@ -1,12 +1,1300 @@ R: R News + - +
    NEWSR Documentation

    R News

    +

    CHANGES IN R 4.1.2

    + + + +

    C-LEVEL FACILITIES

    + + +
      +
    • The workaround in headers ‘R.h’ and ‘Rmath.h’ +(using namespace std;) for the Oracle Developer Studio +compiler is no longer needed now C++11 is required so has been +removed. A couple more usages of log() (which should have +been std::log()) with an int argument are reported on +Solaris. +

      +
    • +
    • The undocumented limit of 4095 bytes on messages from the +S-compatibility macros PROBLEM and MESSAGE is now +documented and longer messages will be silently truncated rather +than potentially causing segfaults. +

      +
    • +
    • If the R_NO_SEGV_HANDLER environment variable is +non-empty, the signal handler for SEGV/ILL/BUS signals (which +offers recovery user interface) is not set. This allows more +reliable debugging of crashes that involve the console. +

      +
    + + + + +

    DEPRECATED AND DEFUNCT

    + + +
      +
    • The legacy S-compatibility macros PROBLEM, +MESSAGE, ERROR, WARN, WARNING, +RECOVER, ... are deprecated and will be hidden in R +4.2.0. R's native interface of Rf_error and +Rf_warning has long been preferred. +

      +
    + + + + +

    BUG FIXES

    + + +
      +
    • .mapply(F, dots, .) no longer segfaults when +dots is not a list and uses match.fun(F) as +always documented; reported by Andrew Simmons in PR#18164. +

      +
    • +
    • hist(<Date>, ...) and hist(<POSIXt>, ...) +no longer pass arguments for rect() (such as col and +density) to axis(). (Thanks to Sebastian Meyer's +PR#18171.) +

      +
    • +
    • \Sexpr{ch} now preserves Encoding(ch). (Thanks to +report and patch by Jeroen Ooms in PR#18152.) +

      +
    • +
    • Setting the RNG to "Marsaglia-Multicarry" e.g., by +RNGkind(), now warns in more places, thanks to +André Gillibert's report and patch in PR#18168. +

      +
    • +
    • gray(numeric(), alpha=1/2) no longer segfaults, fixing +PR#18183, reported by Till Krenz. +

      +
    • +
    • Fixed dnbinom(x, size=<very_small>, .., log=TRUE) +regression, reported by Martin Morgan. +

      +
    • +
    • as.Date.POSIXlt(x) now keeps names(x), thanks to +Davis Vaughan's report and patch in PR#18188. +

      +
    • +
    • model.response() now strips an "AsIs" class typically, +thanks to Duncan Murdoch's report and other discussants in PR#18190. +

      +
    • +
    • try() is considerably faster in case of an error and +long call, as e.g., from some do.call(). Thanks to +Alexander Kaever's suggestion posted to R-devel. +

      +
    • +
    • qqline(y = <object>) such as y=I(.), now works, +see also PR#18190. +

      +
    • +
    • Non-integer mgp par() settings are now handled +correctly in axis() and mtext(), thanks to Mikael +Jagan and Duncan Murdoch's report and suggestion in PR#18194. +

      +
    • +
    • formatC(x) returns length zero character() now, +rather than "" when x is of length zero, as documented, +thanks to Davis Vaughan's post to R-devel. +

      +
    • +
    • removeSource(fn) now retains (other) attributes(fn). +

      +
    + + + + +

    CHANGES IN R 4.1.1

    + + + +

    NEW FEATURES

    + + +
      +
    • require(pkg, quietly = TRUE) is quieter and in +particular does not warn if the package is not found. +

      +
    + + + + +

    DEPRECATED AND DEFUNCT

    + + +
      +
    • Use of ftp:// URIs should be regarded as +deprecated, with on-going support confined to method = + "libcurl" and not routinely tested. (Nowadays no major browser +supports them.) +

      +
    • +
    • The non-default method = "internal" is deprecated for +http:// and ftp:// URIs for both +download.file and url. +

      +
    • +
    • On Windows, method = "wininet" is deprecated for +http://, https:// and ftp:// URIs for both +download.file and url. (A warning is only given for +ftp://.) +

      +

      For ftp:// URIs the default method is now "libcurl" +if available (which it is on CRAN builds). +

      +

      method = "wininet" remains the default for http:// +and https:// URIs but if libcurl is available, using +method = "libcurl" is preferred. +

      +
    + + + + +

    INSTALLATION

    + + +
      +
    • make check now works also without a LaTeX +installation. (Thanks to Sebastian Meyer's PR#18103.) +

      +
    + + + + +

    BUG FIXES

    + + +
      +
    • make check-devel works again in an R build +configured with --without-recommended-packages. +

      +
    • +
    • qnbinom(p, size, mu) for large size/mu is correct +now in a range of cases (PR#18095); similarly for the (size, + prob) parametrization of the negative binomial. Also qpois() +and qbinom() are better and or faster for extreme cases. The +underlying C code has been modularized and is common to all four cases +of discrete distributions. +

      +
    • +
    • gap.axis is now part of the axis() arguments which +are passed from bxp(), and hence boxplot(). (Thanks to +Martin Smith's report and suggestions in PR#18109.) +

      +
    • +
    • .First and .Last can again be set from the site +profile. +

      +
    • +
    • seq.int(from, to, *) and seq.default(..) now work +better in large range cases where from-to is infinite where +the two boundaries are finite. +

      +
    • +
    • all.equal(x,y) now returns TRUE correctly also +when several entries of abs(x) and abs(y) are close to +.Machine$double.xmax, the largest finite numeric. +

      +
    • +
    • model.frame() now clears the object bit when removing the +class attribute of a value via na.action (PR#18100). +

      +
    • +
    • charClass() now works with multi-character +strings on Windows (PR#18104, fixed by Bill Dunlap). +

      +
    • +
    • encodeString() on Solaris now works again in Latin-1 +encoding on characters represented differently in UTF-8. Support for +surrogate pairs on Solaris has been improved. +

      +
    • +
    • file.show() on Windows now works with non-ASCII path +names representable in the current native encoding (PR#18132). +

      +
    • +
    • Embedded R on Windows can now find R home directory via the +registry even when installed only for the current user (PR#18135). +

      +
    • +
    • pretty(x) with finite x now returns finite values +also in the case where the extreme x values are close in size +to the maximal representable number .Machine$double.xmax. +

      +

      Also, it's been tweaked for very small ranges and when a boundary is +close (or equal) to zero; e.g., pretty(c(0,1e-317)) no longer +has negative numbers, currently still warning about a very small +range, and pretty(2^-(1024 - 2^-1/(c(24,10)))) is more accurate. +

      +
    • +
    • The error message for not finding vignette files when weaving +has correct file sizes now. (Thanks to Sebastian Meyer's PR#18154.) +

      +
    • +
    • dnbinom(20, <large>, 1) now correctly gives 0, and +similar cases are more accurate with underflow precaution. +(Reported by Francisco Vera Alcivar in PR#18072.) +

      +
    + + + + +

    CHANGES IN R 4.1.0

    + + + +

    FUTURE DIRECTIONS

    + + +
      +
    • It is planned that the 4.1.x series will be the last to +support 32-bit Windows, with production of binary packages for +that series continuing until early 2023. +

      +
    + + + + +

    SIGNIFICANT USER-VISIBLE CHANGES

    + + +
      +
    • Data set esoph in package datasets now provides +the correct numbers of controls; previously it had the numbers of +cases added to these. (Reported by Alexander Fowler in PR#17964.) +

      +
    + + + + +

    NEW FEATURES

    + + +
      +
    • www.omegahat.net is no longer one of the repositories +known by default to setRepositories(). (Nowadays it only +provides source packages and is often unavailable.) + +

      +
    • +
    • Function package_dependencies() (in package +tools) can now use different dependency types for direct and +recursive dependencies. +

      +
    • +
    • The checking of the size of tarball in +R CMD check --as-cran <pkg> may be tweaked via the new +environment variable +_R_CHECK_CRAN_INCOMING_TARBALL_THRESHOLD_, as suggested in +PR#17777 by Jan Gorecki. +

      +
    • +
    • Using c() to combine a factor with other factors now +gives a factor, an ordered factor when combining ordered factors +with identical levels. +

      +
    • +
    • apply() gains a simplify argument to allow +disabling of simplification of results. +

      +
    • +
    • The format() method for class "ftable" gets a +new option justify. (Suggested by Thomas Soeiro.) +

      +
    • +
    • New ...names() utility. (Proposed by Neal Fultz in +PR#17705.) +

      +
    • +
    • type.convert() now warns when its as.is argument +is not specified, as the help file always said it should. In +that case, the default is changed to TRUE in line with its +change in read.table() (related to stringsAsFactors) in +R 4.0.0. +

      +
    • +
    • When printing list arrays, classed objects are now shown +via their format() value if this is a short enough +character string, or by giving the first elements of their class +vector and their length. +

      +
    • +
    • capabilities() gets new entry "Rprof" which is +TRUE when R has been configured with the equivalent of +--enable-R-profiling (as it is by default). (Related to +Michael Orlitzky's report PR#17836.) +

      +
    • +
    • str(xS4) now also shows extraneous attributes of an +S4 object xS4. +

      +
    • +
    • Rudimentary support for vi-style tags in rtags() and +R CMD rtags has been added. (Based on a patch from Neal +Fultz in PR#17214.) +

      +
    • +
    • checkRdContents() is now exported from tools; it +and also checkDocFiles() have a new option chkInternal +allowing to check Rd files marked with keyword "internal" as +well. The latter can be activated for R CMD check via +environment variable _R_CHECK_RD_INTERNAL_TOO_. +

      +
    • +
    • New functions numToBits() and numToInts() +extend the raw conversion utilities to (double precision) +numeric. +

      +
    • +
    • Functions URLencode() and URLdecode() in +package utils now work on vectors of URIs. +(Based on patch from Bob Rudis submitted with PR#17873.) +

      +
    • +
    • path.expand() can expand ~user on most +Unix-alikes even when readline is not in use. It tries +harder to expand ~, for example should environment variable +HOME be unset. +

      +
    • +
    • For HTML help (both dynamic and static), Rd file links to +help pages in external packages are now treated as references to +topics rather than file names, and fall back to a file link only +if the topic is not found in the target package. The earlier rule +which prioritized file names over topics can be restored by +setting the environment variable _R_HELP_LINKS_TO_TOPICS_ to +a false value. +

      +
    • +
    • c() now removes NULL arguments before +dispatching to methods, thus simplifying the implementation of +c() methods, but for back compatibility keeps +NULL when it is the first argument. (From a report and +patch proposal by Lionel Henry in PR#17900.) +

      +
    • +
    • Vectorize()'s result function's environment no longer +keeps unneeded objects. +

      +
    • +
    • Function ...elt() now propagates visibility +consistently with ..n. (Thanks to Lionel Henry's +PR#17905.) +

      +
    • +
    • capture.output() no longer uses non-standard +evaluation to evaluate its arguments. This makes evaluation of +functions like parent.frame() more consistent. (Thanks to +Lionel Henry's PR#17907.) +

      +
    • +
    • packBits(bits, type="double") now works as inverse of +numToBits(). (Thanks to Bill Dunlap's proposal in +PR#17914.) +

      +
    • +
    • curlGetHeaders() has two new arguments, +timeout to specify the timeout for that call (overriding +getOption("timeout")) and TLS to specify the minimum +TLS protocol version to be used for https:// URIs +(inter alia providing a means to check for sites using +deprecated TLS versions 1.0 and 1.1). +

      +
    • +
    • For nls(), an optional constant scaleOffset +may be added to the denominator of the relative offset convergence +test for cases where the fit of a model is expected to be exact, +thanks to a proposal by John Nash. nls(*, trace=TRUE) now +also shows the convergence criterion. +

      +
    • +
    • Numeric differentiation via numericDeriv() +gets new optional arguments eps and central, the +latter for taking central divided differences. The latter can be +activated for nls() via nls.control(nDcentral = + TRUE). +

      +
    • +
    • nls() now passes the trace and control +arguments to getInitial(), notably for all self-starting models, +so these can also be fit in zero-noise situations via a +scaleOffset. For this reason, the initial function of a +selfStart model must now have ... in its argument list. +

      +
    • +
    • bquote(splice = TRUE) can now splice expression +vectors with attributes: this makes it possible to splice the +result of parse(keep.source = TRUE). (Report and patch +provided by Lionel Henry in PR#17869.) +

      +
    • +
    • textConnection() gets an optional name argument. +

      +
    • +
    • get(), exists(), and get0() now signal +an error if the first argument has length greater than 1. +Previously additional elements were silently ignored. (Suggested +by Antoine Fabri on R-devel.) +

      +
    • +
    • R now provides a shorthand notation for creating functions, +e.g. \(x) x + 1 is parsed as function(x) x + 1. +

      +
    • +
    • R now provides a simple native forward pipe syntax +|>. The simple form of the forward pipe inserts the +left-hand side as the first argument in the right-hand side call. +The pipe implementation as a syntax transformation was motivated +by suggestions from Jim Hester and Lionel Henry. +

      +
    • +
    • all.equal(f, g) for functions now by default also +compares their environment(.)s, notably via new +all.equal method for class function. Comparison of +nls() fits, e.g., may now need all.equal(m1, m2, + check.environment = FALSE). +

      +
    • +
    • .libPaths() gets a new option include.site, +allowing to not include the site library. (Thanks to Dario +Strbenac's suggestion and Gabe Becker's PR#18016.) +

      +
    • +
    • Lithuanian translations are now available. (Thanks to +Rimantas Žakauskas.) +

      +
    • +
    • names() now works for DOTSXP objects. On the +other hand, in ‘R-lang’, the R language manual, we now warn +against relying on the structure or even existence of such +dot-dot-dot objects. +

      +
    • +
    • all.equal() no longer gives an error on DOTSXP +objects. +

      + +
    • +
    • capabilities("cairo") now applies only to the +file-based devices as it is now possible (if very unusual) to +build R with Cairo support for those but not for X11(). +

      +
    • +
    • There is optional support for tracing the progress of +loadNamespace() — see its help. +

      +
    • +
    • (Not Windows.) +l10n_info() reports an additional element, the name of the +encoding as reported by the OS (which may differ from the +encoding part (if any) of the result from +Sys.getlocale("LC_CTYPE"). +

      +
    • +
    • New function gregexec() which generalizes regexec() +to find all disjoint matches and all substrings +corresponding to parenthesized subexpressions of the given regular +expression. (Contributed by Brodie Gaslam.) +

      +
    • +
    • New function charClass() in package utils to +query the wide-character classification functions in use (such as +iswprint). +

      +
    • +
    • The names of quantile()'s result no longer depend on the +global getOption("digits"), but quantile() gets a new +optional argument digits = 7 instead. +

      +
    • +
    • grep(), sub(), regexp and variants work +considerably faster for long factors with few levels. (Thanks to +Michael Chirico's PR#18063.) +

      +
    • +
    • Provide grouping of x11() graphics windows within +a window manager such as Gnome or Unity; thanks to a +patch by Ivan Krylov posted to R-devel. +

      +
    • +
    • The split() method for class data.frame now +allows the f argument to be specified as a formula. +

      +
    • +
    • sprintf now warns on arguments unused by the format +string. +

      +
    • +
    • New palettes "Rocket" and "Mako" for +hcl.colors() (approximating palettes of the same name +from the viridisLite package). +

      +

      Contributed by Achim Zeileis. +

      +
    • +
    • The base environment and its namespace are now locked (so +one can no longer add bindings to these or remove from these). +

      +
    • +
    • Rterm handling of multi-byte characters has been +improved, allowing use of such characters when supported by the +current locale. +

      +
    • +
    • Rterm now accepts ALT+ +xxxxxxxx sequences to +enter Unicode characters as hex digits. +

      +
    • +
    • Environment variable LC_ALL on Windows now takes +precedence over LC_CTYPE and variables for other supported +categories, matching the POSIX behaviour. +

      +
    • +
    • duplicated() and anyDuplicated() are now +optimized for integer and real vectors that are known to be sorted +via the ALTREP framework. Contributed by Gabriel Becker via PR#17993. +

      +
    + + + + +

    GRAPHICS

    + + +
      +
    • The graphics engine version, R_GE_version, has been +bumped to 14 and so packages that provide graphics devices +should be reinstalled. +

      +
    • +
    • Graphics devices should now specify deviceVersion to +indicate what version of the graphics engine they support. +

      +
    • +
    • Graphics devices can now specify deviceClip. If +TRUE, the graphics engine will never perform any clipping +of output itself. +

      +

      The clipping that the graphics engine does perform (for both +canClip = TRUE and canClip = FALSE) has been +improved to avoid producing unnecessary artifacts in clipped +output. +

      +
    • +
    • The grid package now allows gpar(fill) to be +a linearGradient(), a radialGradient(), or a +pattern(). The viewport(clip) can now also be +a grob, which defines a clipping path, and there is a new +viewport(mask) that can also be a grob, which defines +a mask. +

      +

      These new features are only supported so far on the Cairo-based +graphics devices and on the pdf() device. +

      +
    • +
    • (Not Windows.) +A warning is given when a Cairo-based type is specified for a +png(), jpeg(), tiff() or bmp() +device but Cairo is unsupported (so type = "Xlib" +is tried instead). +

      +
    • +
    • grSoftVersion() now reports the versions of FreeType +and FontConfig if they are used directly (not via Pango), +as is most commonly done on macOS. +

      +
    + + + + +

    C-LEVEL FACILITIES

    + + +
      +
    • The standalonelibRmath’ math library and R's C +API now provide log1pexp() again as documented, and gain +log1mexp(). +

      +
    + + + + +

    INSTALLATION on a UNIX-ALIKE

    + + +
      +
    • configure checks for a program pkgconf +if program pkg-config is not found. These are now only +looked for on the path (like almost all other programs) so if needed +specify a full path to the command in PKG_CONFIG, for example +in file ‘config.site’. +

      +
    • +
    • C99 function iswblank is required – it was last seen +missing ca 2003 so the workaround has been removed. +

      +
    • +
    • There are new configure options +--with-internal-iswxxxxx, +--with-internal-towlower and +--with-internal-wcwidth which allows the system functions +for wide-character classification, case-switching and width +(wcwidth and wcswidth) to be replaced by internal +ones. The first has long been used on macOS, AIX (and Windows) +but this enables it to be unselected there and selected for other +platforms (it is the new default on Solaris). The second is new +in this version of R and is selected by default on macOS and +Solaris. The third has long been the default and remains so as it +contains customizations for East Asian languages. +

      +

      System versions of these functions are often minimally implemented +(sometimes only for ASCII characters) and may not cover the full +range of Unicode points: for example Solaris (and Windows) only +cover the Basic Multilingual Plane. +

      +
    • +
    • Cairo installations without X11 are more likely to be +detected by configure, when the file-based Cairo +graphics devices will be available but not X11(type = + "cairo"). +

      +
    • +
    • There is a new configure option +--with-static-cairo which is the default on macOS. This +should be used when only static cairo (and where relevant, Pango) +libraries are available. +

      +
    • +
    • Cairo-based graphics devices on platforms without Pango but +with FreeType/FontConfig will make use of the latter for font selection. +

      +
    + + + + +

    LINK-TIME OPTIMIZATION on a UNIX-ALIKE

    + + +
      +
    • Configuring with flag --enable-lto=R now also uses +LTO when installing the recommended packages. +

      +
    • +
    • R CMD INSTALL and R CMD SHLIB have a new +flag --use-LTO to use LTO when compiling code, for use +with R configured with --enable-lto=R. For R +configured with --enable-lto, they have the new flag +--no-use-LTO. +

      +

      Packages can opt in or out of LTO compilation via a +UseLTO field in the ‘DESCRIPTION’ file. (As usual this +can be overridden by the command-line flags.) +

      +
    + + + + +

    BUILDING R on Windows

    + + +
      +
    • for GCC >= 8, FC_LEN_T is defined in +‘config.h’ and hence character lengths are passed from C to +Fortran in inter alia BLAS and LAPACK calls. +

      +
    • +
    • There is a new text file +‘src/gnuwin32/README.compilation’, which outlines how C/Fortran +code compilation is organized and documents new features: +

      + +
        +
      • R can be built with Link-Time Optimization with a +suitable compiler – doing so with GCC 9.2 showed several +inconsistencies which have been corrected. +

        +
      • +
      • There is support for cross-compiling the C and Fortran +code in R and standard packages on suitable (Linux) platforms. +This is mainly intended to allow developers to test later +versions of compilers – for example using GCC 9.2 or 10.x has +detected issues that GCC 8.3 in Rtools40 does not. +

        +
      • +
      • There is experimental support for cross-building R +packages with C, C++ and/or Fortran code. +

        +
      + +
    • +
    • The R installer can now be optionally built to support a single +architecture (only 64-bit or only 32-bit). +

      +
    + + + + +

    PACKAGE INSTALLATION

    + + +
      +
    • The default C++ standard has been changed to C++14 where +available (which it is on all currently checked platforms): if not +(as before) C++11 is used if available otherwise C++ is not +supported. +

      +

      Packages which specify C++11 will still be installed using C++11. +

      +

      C++14 compilers may give deprecation warnings, most often for +std::random_shuffle (deprecated in C++14 and removed in +C++17). Either specify C++11 (see ‘Writing R Extensions’) +or modernize the code and if needed specify C++14. The latter has +been supported since R 3.4.0 so the package's ‘DESCRIPTION’ +would need to include something like +

      +
      +     Depends: R (>= 3.4)
      +
      +
    + + + + +

    PACKAGE INSTALLATION on Windows

    + + +
      +
    • R CMD INSTALL and R CMD SHLIB make use +of their flag --use-LTO when the LTO_OPT make +macro is set in file ‘etc/${R_ARCH}/Makeconf’ or in a +personal/site ‘Makevars’ file. (For details see +‘Writing R Extensions’ §4.5.) +

      +

      This provides a valuable check on code consistency. It does work +with GCC 8.3 as in Rtools40, but that does not detect everything +the CRAN checks with current GCC do. +

      +
    + + + + +

    PACKAGE INSTALLATION on macOS

    + + +
      +
    • The default personal library directory on builds with +--enable-aqua (including CRAN builds) now +differs by CPU type, one of +

      +
      +      ~/Library/R/x86_64/x.y/library
      +      ~/Library/R/arm64/x.y/library
      +
      +

      This uses the CPU type R (and hence the packages) were built for, +so when a x86_64 build of R is run under Rosetta emulation on +an arm64 Mac, the first is used. +

      +
    + + + + +

    UTILITIES

    + + +
      +
    • R CMD check can now scan package functions for +bogus return statements, which were possibly intended as +return() calls (wish of PR#17180, patch by Sebastian +Meyer). This check can be activated via the new environment +variable _R_CHECK_BOGUS_RETURN_, true for --as-cran. +

      +
    • +
    • R CMD build omits tarballs and binaries of +previous builds from the top-level package directory. +(PR#17828, patch by Sebastian Meyer.) +

      +
    • +
    • R CMD check now runs sanity checks on the use of +LazyData, for example that a ‘data’ directory is +present and that LazyDataCompression is not specified +without LazyData and has a documented value. For packages +with large LazyData databases without specifying +LazyDataCompression, there is a reference to the code given +in ‘Writing R Extensions’ §1.1.6 to test the choice of +compression (as in all the CRAN packages tested a +non-default method was preferred). +

      +
    • +
    • R CMD build removes LazyData and +LazyDataCompression fields from the ‘DESCRIPTION’ file +of packages without a ‘data’ directory. +

      +
    + + + + +

    ENCODING-RELATED CHANGES

    + + +
      +
    • The parser now treats \Unnnnnnnn escapes larger than +the upper limit for Unicode points (\U10FFFF) as an error +as they cannot be represented by valid UTF-8. +

      +

      Where such escapes are used for outputting non-printable +(including unassigned) characters, 6 hex digits are used (rather +than 8 with leading zeros). For clarity, braces are used, for +example \U{0effff}. +

      +
    • +
    • The parser now looks for non-ASCII spaces on Solaris (as +previously on most other OSes). +

      +
    • +
    • There are warnings (including from the parser) on the use of +unpaired surrogate Unicode points such as \uD834. (These +cannot be converted to valid UTF-8.) +

      +
    • +
    • Functions nchar(), tolower(), toupper() +and chartr() and those using regular expressions have more +support for inputs with a marked Latin-1 encoding. +

      +
    • +
    • The character-classification functions used (by default) to +replace the system iswxxxxx functions on Windows, macOS and +AIX have been updated to Unicode 13.0.0. +

      +

      The character-width tables have been updated to include new +assignments in Unicode 13.0.0. This included treating all control +characters as having zero width. +

      +
    • +
    • The code for evaluating default (extended) regular +expressions now uses the same character-classification functions +as the rest of R (previously they differed on Windows, macOS and +AIX). +

      +
    • +
    • There is a build-time option to replace the system's +wide-character wctrans C function by tables shipped with +R: use configure option +--with-internal-towlower or (on Windows) +-DUSE_RI18N_CASE in CFLAGS when building R. This +may be needed to allow tolower() and toupper() to +work with Unicode characters beyond the Basic Multilingual Plane +where not supported by system functions (e.g. on Solaris where it +is the new default). +

      +
    • +
    • R is more careful when truncating UTF-8 and other multi-byte +strings that are too long to be printed, passed to the system or +libraries or placed into an internal buffer. Truncation will no +longer produce incomplete multibyte characters. +

      +
    + + + + +

    DEPRECATED AND DEFUNCT

    + + +
      +
    • Function plclust() from the package stats and +package.dependencies(), pkgDepends(), +getDepList(), installFoundDepends(), and +vignetteDepends() from package tools are defunct. +

      +
    • +
    • Defunct functions checkNEWS() and readNEWS() from +package tools and CRAN.packages() from utils have +been removed. +

      +
    • +
    • R CMD config CXXCPP is defunct (it was deprecated +in R 3.6.2). +

      +
    • +
    • parallel::detectCores() drops support for Irix +(retired in 2013). +

      +
    • +
    • The LINPACK argument to chol.default(), +chol2inv(), solve.default() and svd() has +been defunct since R 3.1.0. It was silently ignored up to R +4.0.3 but now gives an error. +

      +
    • +
    • Subsetting/indexing, such as ddd[*] or ddd$x +on a DOTSXP (dot-dot-dot) object ddd has been +disabled; it worked by accident only and was undocumented. +

      +
    + + + + +

    BUG FIXES

    + + +
      +
    • Many more C-level allocations (mainly by malloc and +strdup) are checked for success with suitable alternative +actions. +

      +
    • +
    • Bug fix for replayPlot(); this was turning off +graphics engine display list recording if a recorded plot was +replayed in the same session. The impact of the bug became +visible if resize the device after replay OR if attempted another +savePlot() after replay (empty display list means empty +screen on resize or empty saved plot). +

      +
    • +
    • R CMD check etc now warn when a package exports +non-existing S4 classes or methods, also in case of no +“methods” presence. (Reported by Alex Bertram; +reproducible example and patch by Sebastian Meyer in PR#16662.) +

      +
    • +
    • boxplot() now also accepts calls for labels such +as ylab, the same as plot(). (Reported by Marius Hofert.) +

      +
    • +
    • The help page for xtabs() now correctly states that +addNA is setting na.action = na.pass among others. +(Reported as PR#17770 by Thomas Soeiro.) +

      +
    • +
    • The R CMD check <pkg> gives a longer and more +comprehensible message when ‘DESCRIPTION’ misses dependencies, +e.g., in Imports:. (Thanks to the contributors of PR#17179.) +

      +
    • +
    • update.default() now calls the generic update() +on the formula to work correctly for models with extended formulas. +(As reported and suggested by Neal Fultz in PR#17865.) +

      +
    • +
    • The horizontal position of leaves in a dendrogram is now +correct also with center = FALSE. (PR#14938, patch from +Sebastian Meyer.) +

      +
    • +
    • all.equal.POSIXt() no longer warns about and +subsequently ignores inconsistent "tzone" attributes, but +describes the difference in its return value (PR#17277). +This check can be disabled via the new argument +check.tzone = FALSE as suggested by Sebastian Meyer. +

      +
    • +
    • as.POSIXct() now populates the "tzone" +attribute from its tz argument when x is a logical +vector consisting entirely of NA values. +

      +
    • +
    • x[[2^31]] <- v now works. (Thanks to the report and +patch by Suharto Anggono in PR#17330.) +

      +
    • +
    • In log-scale graphics, axis() ticks and label positions +are now computed more carefully and symmetrically in their range, +typically providing more ticks, fulfilling wishes +in PR#17936. The change really corresponds to an improved +axisTicks() (package grDevices), potentially influencing +grid and lattice, for example. +

      +
    • +
    • qnorm(<very large negative>, log.p=TRUE) is now correct +to at least five digits where it was catastrophically wrong, +previously. +

      +
    • +
    • sum(df) and similar "Summary"- and +"Math"-group member functions now work for data frames +df with logical columns, notably also of zero +rows. (Reported to R-devel by Martin “b706”.) +

      +
    • +
    • unsplit() had trouble with tibbles due to unsound use of +rep(NA, len)-indexing, which should use NA_integer_ +(Reported to R-devel by Mario Annau.) +

      +
    • +
    • pnorm(x, log.p = TRUE) underflows to -Inf slightly +later. +

      +
    • +
    • show(<hidden S4 generic>) prints better and without +quotes for non-hidden S4 generics. +

      +
    • +
    • read.table() and relatives treated an "NA" column name as +missing when check.names = FALSE PR#18007. +

      +
    • +
    • Parsing strings containing UTF-16 surrogate pairs such as +"\uD834\uDD1E" works better on some (uncommon) platforms. +sprintf("%X", utf8ToInt("\uD834\uDD1E")) should now give +"1D11E" on all platforms. + +

      +
    • +
    • identical(x,y) is no longer true for differing +DOTSXP objects, fixing PR#18032. +

      +
    • +
    • str() now works correctly for DOTSXP and related +exotics, even when these are doomed. +

      +

      Additionally, it no longer fails for lists with a class and +“irregular” method definitions such that e.g. lapply(*) will +necessarily fail, as currently for different igraph objects. +

      +
    • +
    • Message translation domains, e.g., for errors and warnings, are +now correctly determined also when e.g., a base function is +called from “top-level” function (i.e., defined in globalenv()), +thanks to a patch from Joris Goosen fixing PR#17998. +

      +
    • +
    • Too long lines in environment files (e.g., ‘Renviron’) no +longer crash R. This limit has been increased to 100,000 bytes. +(PR#18001.) +

      +
    • +
    • There is a further workaround for FreeType giving +incorrect italic font faces with cairo-based graphics devices on +macOS. +

      +
    • +
    • add_datalist(*, force = TRUE) (from package +tools) now actually updates an existing ‘data/datalist’ +file for new content. (Thanks to a report and patch by Sebastian +Meyer in PR#18048.) +

      +
    • +
    • cut.Date() and cut.POSIXt() could produce an +empty last interval for breaks = "months" or breaks = + "years". (Reported as PR#18053 by Christopher Carbone.) +

      +
    • +
    • Detection of the encoding of ‘regular’ macOS locales +such as en_US (which is UTF-8) had been broken by a macOS +change: fortunately these are now rarely used with +en_US.UTF-8 being preferred. +

      +
    • +
    • sub() and gsub(pattern, repl, x, *) now keep +attributes of x such as names() also when +pattern is NA (PR#18079). +

      +
    • +
    • Time differences ("difftime" objects) get a replacement +and a rep() method to keep "units" consistent. +(Thanks to a report and patch by Nicolas Bennett in PR#18066.) +

      +
    • +
    • The \RdOpts macro, setting defaults for \Sexpr +options in an Rd file, had been ineffective since R 2.12.0: it +now works again. +(Thanks to a report and patch by Sebastian Meyer in PR#18073.) +

      +
    • +
    • mclapply and pvec no longer accidentally terminate +parallel processes started before by mcparallel or related +calls in package parallel (PR#18078). +

      +
    • +
    • grep and other functions for evaluating (extended) +regular expressions handle in Unicode also strings not explicitly +flagged UTF-8, but flagged native when running in UTF-8 locale. +

      +
    • +
    • Fixed a crash in fifo implementation on Windows +(PR#18031). +

      +
    • +
    • Binary mode in fifo on Windows is now properly detected +from argument open (PR#15600, PR#18031). +

      +
    + + + + +

    CHANGES IN R 4.0.5

    + + + +

    BUG FIXES

    + + +
      +
    • The change to the internal table in R 4.0.4 for +iswprint has been reverted: it contained some errors in +printability of ‘East Asian’ characters. +

      +
    • +
    • For packages using LazyData, R CMD build +ignored the --resave-data option and the +BuildResaveData field of the ‘DESCRIPTION’ file (in R +versions 4.0.0 to 4.0.4). +

      +
    + + + + +

    CHANGES IN R 4.0.4

    + + + +

    NEW FEATURES

    + + +
      +
    • File ‘share/texmf/tex/latex/jss.cls’ has been updated +to work with LaTeX versions since Oct 2020. +

      +
    • +
    • Unicode character width tables (as used by +nchar(, type = "w")) have been updated to Unicode 12.1 +by Brodie Gaslam (PR#17781), including many emoji. +

      +
    • +
    • The internal table for iswprint (used on Windows, +macOS and AIX) has been updated to include many recent Unicode +characters. +

      +
    + + + + +

    INSTALLATION on a UNIX-ALIKE

    + + +
      +
    • If an external BLAS is specified by --with-blas=foo +or via environment variable BLAS_LIBS is not found, +this is now a configuration error. The previous behaviour was not +clear from the documentation: it was to continue the search as if +--with-blas=yes was specified. +

      +
    + + + + +

    BUG FIXES

    + + +
      +
    • all.equal(x,y) now “sees” the two different +NAs in factors, thanks to Bill Dunlap and others in +PR#17897. +

      +
    • +
    • (~ NULL)[1] and similar formula subsetting now works, +thanks to a report and patch by Henrik Bengtsson in PR#17935. +Additionally, subsetting leaving an empty formula now works too, +thanks to suggestions by Suharto Anggono. +

      +
    • +
    • .traceback(n) keeps source references again, as before +R 4.0.0, fixing a regression; introduced by the PR#17580, reported +including two patch proposals by Brodie Gaslam. +

      +
    • +
    • unlist(plst, recursive=FALSE) no longer drops content +for pairlists with list components, thanks to the report and patch +by Suharto Anggono in PR#17950. +

      +
    • +
    • iconvlist() now also works on MUSL based (Linux) +systems, from a report and patch suggestion by Wesley Chan in +PR#17970. +

      +
    • +
    • round() and signif() no longer tolerate wrong +argument names, notably in 1-argument calls; reported by Shane +Mueller on R-devel (mailing list); later reported as PR#17976. +

      +
    • +
    • .Machine has longdouble.* elements only if +capabilities("long.double") is true, as documented. +(Previously they were included if the platform had long + double identical to double, as ARM does.) +

      +
    • +
    • p.adjust(numeric(), n=0) now works, fixing PR#18002. +

      +
    • +
    • identical(x,y) no longer prints "Unknown Type .." for +typeof(x) == "..." objects. +

      +
    • +
    • Fix (auto-)print()ing of named complex vectors, see +PR#17868 and PR#18019. +

      +
    • +
    • all.equal(<language>, <...>) now works, fixing PR#18029. +

      +
    • +
    • as.data.frame.list(L, row.names=NULL) now behaves in line +with data.frame(), disregarding names of components of +L, fixing PR#18034, reported by Kevin Tappe. +

      +
    • +
    • checkRdaFiles(ff)$version is now correct also when +ff contains files of different versions, thanks to a report +and patch from Sebastian Meyer in PR#18041. +

      +
    • +
    • macOS: Quartz device live drawing could fail (no plot is shown) +if the system changes the drawing context after view update (often +the case since macOS Big Sur). System log may show +"CGContextDelegateCreateForContext: invalid context" error. +

      +
    + + + +

    CHANGES IN R 4.0.3

    @@ -31,7 +1319,7 @@

  • The default value for options("timeout") can be set -from enviromnent variable R_DEFAULT_INTERNET_TIMEOUT, still +from environment variable R_DEFAULT_INTERNET_TIMEOUT, still defaulting to 60 (seconds) if that is not set or invalid.

    This may be needed when child R processes are doing downloads, @@ -95,7 +1383,7 @@

  • addmargins(*, ..) now also works when fn() is a -local function, thanks to bug report and patch PR#17124 from Alex +local function, thanks to bug report and patch PR#17124 from Alex Bertram.

  • @@ -108,22 +1396,22 @@
  • chisq.test(*, simulate.p.value=TRUE) and r2dtable() now work correctly for large table entries (in the millions). Reported by Sebastian Meyer and investigated by more -helpers in PR#16184. +helpers in PR#16184.

  • Low-level socket read/write operations have been fixed to correctly signal communication errors. Previously, such errors could lead to a segfault due to invalid memory access. Reported -and debugged by Dmitriy Selivanov in PR#17850. +and debugged by Dmitriy Selivanov in PR#17850.

  • quantile(x, pr) works more consistently for pr -values slightly outside [0,1], thanks to Suharto Anggono's PR#17891. +values slightly outside [0,1], thanks to Suharto Anggono's PR#17891.

    Further, quantile(x, prN, names=FALSE) now works even when -prN contains NAs, thanks to Anggono's PR#17892. +prN contains NAs, thanks to Anggono's PR#17892. Ditto for ordered factors or Date objects -when type = 1 or 3, thanks to PR#17899. +when type = 1 or 3, thanks to PR#17899.

  • Libcurl-based internet access, including @@ -133,19 +1421,19 @@

  • as.Date(<char>) now also works with an initial -"", thanks to Michael Chirico's PR#17909. +"", thanks to Michael Chirico's PR#17909.

  • isS3stdGeneric(f) now detects an S3 generic also when it -it is trace()d, thanks to Gabe Becker's PR#17917. +it is trace()d, thanks to Gabe Becker's PR#17917.

  • R_allocLD() has been fixed to return memory aligned for -long double type PR#16534. +long double type PR#16534.

  • fisher.test() no longer segfaults when called again after -its internal stack has been exceeded PR#17904. +its internal stack has been exceeded PR#17904.

  • Accessing a long vector represented by a compact integer @@ -154,27 +1442,27 @@

  • duplicated() now works also for strings with multiple -encodings inside a single vector PR#17809. +encodings inside a single vector PR#17809.

  • phyper(11, 15, 0, 12, log.p=TRUE) no longer gives -NaN; reported as PR#17271 by Alexey Stukalov. +NaN; reported as PR#17271 by Alexey Stukalov.

  • -
  • Fix incorrect calculation in logLik.nls() PR#16100, patch +

  • Fix incorrect calculation in logLik.nls() PR#16100, patch from Sebastian Meyer.

  • A very old bug could cause a segfault in model.matrix() -when terms involved logical variables. Part of PR#17879. +when terms involved logical variables. Part of PR#17879.

  • model.frame.default() allowed data = 1, leading to -involuntary variable capture (rest of PR#17879). +involuntary variable capture (rest of PR#17879).

  • tar() no longer skips non-directory files, thanks to a -patch by Sebastian Meyer, fixing the remaining part of PR#16716. +patch by Sebastian Meyer, fixing the remaining part of PR#16716.

  • @@ -202,7 +1490,7 @@
    • Paths with non-ASCII characters caused problems for -package loading on Windows PR#17833. +package loading on Windows PR#17833.

    • Using tcltk widgets no longer crashes R on @@ -210,11 +1498,11 @@

    • source(*, echo=TRUE) no longer fails in some cases with -empty lines; reported by Bill Dunlap in PR#17769. +empty lines; reported by Bill Dunlap in PR#17769.

    • on.exit() now correctly matches named arguments, thanks -to PR#17815 (including patch) by Brodie Gaslam. +to PR#17815 (including patch) by Brodie Gaslam.

    • regexpr(*, perl=TRUE) no longer returns incorrect @@ -271,7 +1559,7 @@

    • Fix parallel::mclapply(..., mc.preschedule=FALSE) -to handle raw vector results correctly. PR#17779 +to handle raw vector results correctly. PR#17779

    • Computing the base value, i.e., 2, “everywhere”, @@ -282,11 +1570,11 @@

    • In R 4.0.0, sort.list(x) when is.object(x) was true, e.g., for x <- I(letters), was accidentally using method = "radix". Consequently, e.g., merge(<data.frame>) -was much slower than previously; reported in PR#17794. +was much slower than previously; reported in PR#17794.

    • plot(y ~ x, ylab = quote(y[i])) now works, as e.g., for -xlab; related to PR#10525. +xlab; related to PR#10525.

    • parallel::detect.cores(all.tests = TRUE) tries a @@ -423,7 +1711,7 @@

    • DF2formula(), the utility for the data frame method of formula(), now works without parsing and explicit evaluation, -starting from Suharto Anggono's suggestion in PR#17555. +starting from Suharto Anggono's suggestion in PR#17555.

    • approxfun() and approx() gain a new argument @@ -443,7 +1731,7 @@ signalled (.Traceback), now contains the calls rather than the deparse()d calls, deferring the deparsing to the user-level functions .traceback() and -traceback(). This fulfils the wish of PR#17580, reported +traceback(). This fulfils the wish of PR#17580, reported including two patch proposals by Brodie Gaslam.

    • @@ -522,14 +1810,14 @@
    • n2mfrow() gains an option asp = 1 to specify the aspect ratio, fulfilling the wish and extending the proposal of -Michael Chirico in PR#17648. +Michael Chirico in PR#17648.

    • For head(x, n) and tail() the default and other S3 methods notably for vector n, e.g. to get a “corner” of a matrix, has been extended to array's of higher dimension thanks to the patch proposal by Gabe Becker in -PR#17652. Consequently, optional argument addrownums is +PR#17652. Consequently, optional argument addrownums is deprecated and replaced by the (more general) argument keepnums. An invalid second argument n now leads to typically more easily readable error messages. @@ -554,7 +1842,7 @@

    • New function deparse1() produces one string, wrapping deparse(), to be used typically in -deparse1(substitute(*)), e.g., to fix PR#17671. +deparse1(substitute(*)), e.g., to fix PR#17671.

    • wilcox.test() enhancements: In the (non-paired) @@ -620,7 +1908,7 @@

    • stopifnot() now allows customizing error messages via -argument names, thanks to a patch proposal by Neal Fultz in PR#17688. +argument names, thanks to a patch proposal by Neal Fultz in PR#17688.

    • unlink() gains a new argument expand to disable @@ -699,7 +1987,7 @@

    • For consistency, N <- NULL; N[[1]] <- val now turns N into a list also when val) has length one. This enables dimnames(r1)[[1]] <- "R1" for a 1-row matrix -r1, fixing PR#17719 reported by Serguei Sokol. +r1, fixing PR#17719 reported by Serguei Sokol.

    • deparse(..), dump(..), and dput(x, @@ -739,7 +2027,7 @@

    • New function tryInvokeRestart() to invoke a specified restart if one is available and return without signaling an error if no such restart is found. Contributed by Lionel Henry in -PR#17598. +PR#17598.

    • str(x) now shows the length of attributes in some @@ -749,7 +2037,7 @@

    • Rprof() gains a new argument filter.callframes to request that intervening call frames due to lazy evaluation or explicit eval() calls be omitted from the recorded profile -data. Contributed by Lionel Henry in PR#17595. +data. Contributed by Lionel Henry in PR#17595.

    • The handling of ${FOO-bar} and ${FOO:-bar} @@ -763,7 +2051,7 @@

    • New classes argument for suppressWarnings() and suppressMessages() to selectively suppress only warnings or messages that inherit from particular classes. -Based on patch from Lionel Henry submitted with PR#17619. +Based on patch from Lionel Henry submitted with PR#17619.

    • New function activeBindingFunction() retrieves the @@ -794,11 +2082,11 @@

    • normalizePath() now resolves symbolic links and normalizes case of long names of path elements in case-insensitive -folders (PR#17165). +folders (PR#17165).

    • md5sum() supports UTF-8 file names with characters -that cannot be translated to the native encoding (PR#17633). +that cannot be translated to the native encoding (PR#17633).

    • Rterm gains a new option --workspace to @@ -809,7 +2097,7 @@

    • Rterm now accepts ALT+xxx sequences also with NumLock on. Tilde can be pasted with an Italian keyboard -(PR#17679). +(PR#17679).

    • R falls back to copying when junction creation fails during @@ -850,7 +2138,7 @@

    • Defunct functions mem.limits(), .readRDS(), -.saveRDS(),..find.package(), and .path.package() +.saveRDS(), .find.package(), and .path.package() from package base and allGenerics(), getAccess(), getAllMethods(), getClassName(), getClassPackage(), getExtends(), @@ -995,19 +2283,19 @@

    • Long-standing issue where the X11 device could lose events -shortly after startup has been addressed (PR#16702). +shortly after startup has been addressed (PR#16702).

    • The data.frame method for rbind() no longer drops <NA> levels from factor columns by default -(PR#17562). +(PR#17562).

    • available.packages() and hence install.packages() now pass their ... argument to download.file(), -fulfilling the wish of PR#17532; subsequently, +fulfilling the wish of PR#17532; subsequently, available.packages() gets new argument quiet, solving -PR#17573. +PR#17573.

    • stopifnot() gets new argument exprObject to allow @@ -1032,7 +2320,7 @@

    • postscript(.., title = *) now signals an error when the title string contains a character which would produce corrupt -PostScript, thanks to PR#17607 by Daisuko Ogawa. +PostScript, thanks to PR#17607 by Daisuko Ogawa.

    • Certain Ops (notably comparison such as ==) now @@ -1043,7 +2331,7 @@ and only once.

    • -
    • write.dcf() no longer mangles field names (PR#17589). +

    • write.dcf() no longer mangles field names (PR#17589).

    • Primitive replacement functions no longer mutate a @@ -1060,13 +2348,13 @@

    • The Fortran code for calculating the coefficients component in lm.influence() was very inefficient. It has -(for now) been replaced with much faster R code (PR#17624). +(for now) been replaced with much faster R code (PR#17624).

    • cm.colors(n) etc no longer append the code for alpha = 1, "FF", to all colors. Hence all eight *.colors() functions and rainbow() behave -consistently and have the same non-explicit default (PR#17659). +consistently and have the same non-explicit default (PR#17659).

    • dnorm had a problematic corner case with sd == @@ -1088,23 +2376,23 @@

    • In plot.lm, Cook's distance was computed from unweighted residuals, leading to inconsistencies. Replaced with usual weighted -version. (PR#16056) +version. (PR#16056)

    • Time-series ts(*, start, end, frequency) with fractional frequency are supported more consistently; thanks to a report from Johann Kleinbub and analysis and patch by -Duncan Murdoch in PR#17669. +Duncan Murdoch in PR#17669.

    • In case of errors mcmapply() now preserves attributes of returned "try-error" objects and avoids simplification, -overriding SIMPLIFY to FALSE. (PR#17653) +overriding SIMPLIFY to FALSE. (PR#17653)

    • as.difftime() gets new optional tz = "UTC" argument which should fix behaviour during -daylight-savings-changeover days, fixing PR#16764, thanks to +daylight-savings-changeover days, fixing PR#16764, thanks to proposals and analysis by Johannes Ranke and Kirill Müller.

    • @@ -1112,13 +2400,13 @@ “to nearest” by measuring and “to even”; thanks to a careful algorithm originally prompted by the report from Adam Wheeler and then others, in -PR#17668.
      round(x, dig) for negative digits +PR#17668.
      round(x, dig) for negative digits is much more rational now, notably for large |dig|.

    • Inheritance information on S4 classes is maintained more consistently, particularly in the case of class unions (in part -due to PR#17596 and a report from Ezra Tucker). +due to PR#17596 and a report from Ezra Tucker).

    • is() behaves more robustly when its argument @@ -1142,12 +2430,12 @@

    • Operator ? now has lower precedence than = to work as documented, so = behaves like <- in help -expressions (PR#16710). +expressions (PR#16710).

    • smoothEnds(x) now returns integer type in both cases when x is integer, thanks to a -report and proposal by Bill Dunlap PR#17693. +report and proposal by Bill Dunlap PR#17693.

    • The methods package does a better job of tracking @@ -1158,7 +2446,7 @@

    • subset() had problems with 0-col dataframes (reported -by Bill Dunlap, PR#17721). +by Bill Dunlap, PR#17721).

    • Several cases of integer overflow detected by the @@ -1203,13 +2491,13 @@

    • anova.glm() and anova.glmlist() computed incorrect score (Rao) tests in no-intercept cases. (André -Gillibert, PR#17734) +Gillibert, PR#17735)

    • summaryRprof() now should work correctly for the Rprof(*, memory.profiling=TRUE) case with small chunk size (and "tseries" or similar) thanks to a patch proposal by Benjamin -Tyner, in PR#15886. +Tyner, in PR#15886.

    • xgettext() ignores strings passed to @@ -1221,17 +2509,17 @@

    • data(package = "P") for P in base and stats no longer reports the data sets from package datasets (which it did for back compatibility for 16 years), -fixing PR#17730. +fixing PR#17730.

    • x[[Inf]] (returning NULL) no longer leads to undefined behavior, thanks to a report by Kirill Müller in -PR#17756. Further, x[[-Inf]] and x[[-n]] now give +PR#17756. Further, x[[-Inf]] and x[[-n]] now give more helpful error messages.

    • Gamma() family sometimes had trouble storing -link name PR#15891 +link name PR#15891

    @@ -1244,17 +2532,17 @@
    • Sys.glob() now supports all characters from the Unicode Basic Multilingual Plane, no longer corrupting -some (less commonly used) characters (PR#17638). +some (less commonly used) characters (PR#17638).

    • Rterm now correctly displays multi-byte-coded characters representable in the current native encoding (at least on Windows 10 they were sometimes omitted, -PR#17632). +PR#17632).

    • scan() issues with UTF-8 data when running in a DBCS -locale have been resolved (PR#16520, PR#16584). +locale have been resolved (PR#16520, PR#16584).

    • Rterm now accepts enhanced/arrow keys also with @@ -1272,7 +2560,7 @@

    • Problems with UTF-16 surrogate pairs have been fixed in several functions, including tolower() and -toupper() (PR#17645). +toupper() (PR#17645).

    @@ -1297,4 +2585,4 @@ - +
    diff -Nru r-base-4.0.3/doc/html/Notes r-base-4.1.2/doc/html/Notes --- r-base-4.0.3/doc/html/Notes 2018-09-25 08:43:49.000000000 +0000 +++ r-base-4.1.2/doc/html/Notes 2021-04-28 22:15:01.000000000 +0000 @@ -1,6 +1,6 @@ The 'new' R logo was added in early 2016. -Rlogo.svg is the master copy, and is copyighted. See its text comment +Rlogo.svg is the master copy, and is copyrighted. See its text comment and doc/COPYRIGHTS for its licence. Rlogo.pdf is a conversion to scalable PDF, done by rsvg-convert. diff -Nru r-base-4.0.3/doc/html/packages-head-utf8.html r-base-4.1.2/doc/html/packages-head-utf8.html --- r-base-4.0.3/doc/html/packages-head-utf8.html 2018-09-25 08:43:49.000000000 +0000 +++ r-base-4.1.2/doc/html/packages-head-utf8.html 2021-06-19 22:15:01.000000000 +0000 @@ -1,8 +1,9 @@ R: Package Index + - +

    Package Index


    diff -Nru r-base-4.0.3/doc/html/R-admin.html r-base-4.1.2/doc/html/R-admin.html --- r-base-4.0.3/doc/html/R-admin.html 2020-10-10 07:05:15.000000000 +0000 +++ r-base-4.1.2/doc/html/R-admin.html 2021-11-01 08:05:01.000000000 +0000 @@ -1,8 +1,8 @@ - - + + R Installation and Administration @@ -26,7 +27,6 @@ - @@ -34,28 +34,18 @@