Commit a3b326b8 authored by Radford Neal's avatar Radford Neal

Files from R-3.5.0

parent 00884e9e

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

......@@ -27,7 +27,7 @@ install-R-framework:
@(cd "$(DESTDIR)$(R_FRAMEWORK_DIR)/Versions" && \
ln -f -s -n $(FW_VERSION) Current)
@(if [ -e "$(DESTDIR)$(R_FRAMEWORK_DIR)/Resources" -a ! -L "$(DESTDIR)$(R_FRAMEWORK_DIR)/Resources" ]; then \
rm -rf "$(DESTDIR)$(R_FRAMEWORK_DIR)/Resources.old"; mv "$(DESTDIR)$(R_FRAMEWORK_DIR)/Resources" "$(DESTDIR)$(R_FRAMEWORK_DIR)/Resources.old"; \
rm -Rf "$(DESTDIR)$(R_FRAMEWORK_DIR)/Resources.old"; mv "$(DESTDIR)$(R_FRAMEWORK_DIR)/Resources" "$(DESTDIR)$(R_FRAMEWORK_DIR)/Resources.old"; \
fi)
@(cd "$(DESTDIR)$(R_FRAMEWORK_DIR)" && \
ln -f -s -n Versions/Current/PrivateHeaders PrivateHeaders&& \
......@@ -64,12 +64,12 @@ install-R-framework:
@(cp -R $(top_srcdir)/src/include/* "$(DESTDIR)$(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders/" && \
cp src/include/config.h "$(DESTDIR)$(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders/" && \
chmod a+r "$(DESTDIR)$(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders/config.h"; \
find "$(DESTDIR)$(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders" -name .svn | xargs rm -rf)
find "$(DESTDIR)$(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders" -name .svn | xargs rm -Rf)
@(install_name_tool -change libR.dylib \
"$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/libR.dylib" \
"$(DESTDIR)$(Rexecbindir2)/R")
@(if [ -n "${R_ARCH}" ]; then \
rm -rf "$(DESTDIR)$(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders${R_ARCH}" && \
rm -Rf "$(DESTDIR)$(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders${R_ARCH}" && \
mkdir "$(DESTDIR)$(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders${R_ARCH}" && \
cp src/include/config.h "$(DESTDIR)$(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders${R_ARCH}/config.h"; \
chmod a+r "$(DESTDIR)$(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders${R_ARCH}/config.h"; \
......
......@@ -142,7 +142,7 @@ uninstall:
@for f in $(INSTFILES) $(NON_SVN_INSTFILES); do \
rm -f "$(DESTDIR)$(rhome)/$${f}"; \
done
@rm -rf "$(DESTDIR)$(Rexecbindir)" "$(DESTDIR)$(rhome)/lib"
@rm -Rf "$(DESTDIR)$(Rexecbindir)" "$(DESTDIR)$(rhome)/lib"
@rmdir "$(DESTDIR)$(rhome)" 2>/dev/null \
|| $(ECHO) " dir $(DESTDIR)$(rhome) not removed"
@rm -f "$(DESTDIR)${libdir}/libR$(R_DYLIB_EXT)"
......@@ -158,15 +158,15 @@ distclean: clean
@(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
@rm -f po/Makefile
-@rm -rf bin include lib library modules gnome
-@rm -Rf bin include lib library modules gnome
@if test -f non-tarball ; then \
rm -f $(NON_SVN_INSTFILES) non-tarball doc/FAQ doc/RESOURCES doc/html/resources.html doc/html/NEWS.html; \
fi
@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
rm -f $(NON_SVN_INSTFILES); \
rm -rf $(SUBDIRS) $(SUBDIRS_WITH_NO_BUILD); \
rm -Rf $(SUBDIRS) $(SUBDIRS_WITH_NO_BUILD); \
fi
-@rm -rf libconftest.dSYM
-@rm -Rf libconftest.dSYM
-@rm -f Makeconf Makefile Makefile.bak Makefrag.* \
config.cache config.log config.status libtool stamp-java \
$(ACLOCAL_M4) acinclude.m4 $(distdir).tar.gz
......@@ -175,9 +175,10 @@ maintainer-clean: distclean
@$(ECHO) "deletes files that may need special rules to rebuild"
@(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
-@(cd $(srcdir) && rm -rf autom4te.cache)
-@(cd $(srcdir) && rm -Rf autom4te.cache)
dist: dist-unix
## GNU gzip 1.8 warns that env var GZIP is obsolescent for gzip, so use as arg
dist-unix: distdir
-chmod -R a+r $(distdir)
-chmod -R go-w $(distdir)
......@@ -186,11 +187,11 @@ dist-unix: distdir
if test $(distdir) != $${dirname} ; then \
mv $(distdir) $${dirname}; \
fi ; \
GZIP=$(GZIP) $(TAR) czf $${distname}.tar.gz $${dirname}; \
rm -rf $${dirname}
$(TAR) cf $${distname}.tar $${dirname} && $(R_GZIPCMD) $(GZIP) $${distname}.tar; \
rm -Rf $${dirname}
dist-win:
distdir: $(DISTFILES) vignettes
@rm -rf $(distdir)
@rm -Rf $(distdir)
@mkdir $(distdir)
@-chmod 755 $(distdir)
@for f in $(DISTFILES); do \
......
Revision: 74408
Last Changed Date: 2018-03-15
Revision: 74626
Last Changed Date: 2018-04-23
Someone to Lean On
Joy in Playing
This diff is collapsed.
......@@ -2,7 +2,7 @@
###
### Process this file with autoconf to produce a configure script.
###
### Copyright (C) 1998-2017 R Core Team
### Copyright (C) 1998-2018 R Core Team
###
### This file is part of R.
###
......@@ -290,7 +290,7 @@ AC_ARG_ENABLE([BLAS-shlib],
## As from R 3.2.0 split up -L... and -lR
if test "${want_R_shlib}" = yes; then
LIBR0="-L\$(R_HOME)/lib\$(R_ARCH)"
LIBR0="-L\"\$(R_HOME)/lib\$(R_ARCH)\""
LIBR1=-lR
else
LIBR0=
......@@ -436,7 +436,7 @@ AC_ARG_WITH([system-valgrind-headers],
[use_system_valgrind=no])
AC_ARG_WITH([internal-tzcode],
[AS_HELP_STRING([--with-internal-tzcode],[use internal time-zone code @<:@no@:>@])],
[AS_HELP_STRING([--with-internal-tzcode],[use internal time-zone code @<:@no, yes on macOS@:>@])],
[use_internal_tzcode=${withval}],
[use_internal_tzcode=default])
......@@ -550,10 +550,10 @@ AC_ARG_VAR([R_SHELL],
if test -z "${r_arch}"; then
R_ARCH=
R_XTRA_CPPFLAGS2="-I\$(R_INCLUDE_DIR)"
R_XTRA_CPPFLAGS2="-I\"\$(R_INCLUDE_DIR)\""
else
R_ARCH="/${r_arch}"
R_XTRA_CPPFLAGS2="-I\$(R_INCLUDE_DIR) -I\$(R_INCLUDE_DIR)/${r_arch}"
R_XTRA_CPPFLAGS2="-I\"\$(R_INCLUDE_DIR)\" -I\"\$(R_INCLUDE_DIR)/${r_arch}\""
fi
AC_DEFINE_UNQUOTED(R_ARCH, "${r_arch}",
[Define this to use architecture-dependent subdirectories of this name.])
......@@ -574,12 +574,7 @@ AC_MSG_RESULT([${BUILDDIR_IS_SRCDIR}])
### * Checks for programs.
R_MISSING_PROG(ACLOCAL, aclocal)
R_MISSING_PROG(AUTOCONF, autoconf)
R_MISSING_PROG(AUTOMAKE, automake)
R_MISSING_PROG(AUTOHEADER, autoheader)
AC_PROG_LN_S
AC_PROG_YACC
R_PROG_AR
R_PROG_INSTALL
......@@ -606,13 +601,29 @@ AC_PATH_PROGS(R_BZIPCMD, [${BZIP} bzip2], "")
R_PROG_BROWSER
## PDF viewer
R_PROG_PDFVIEWER
## Noweb - used for maintainer mode only
## Noweb (notangle), aclocal, autoconf, autoheader - maintainer mode only
R_MISSING_PROG(ACLOCAL, aclocal,
R_MNT_WARN([[aclocal is missing - aclocal.m4 cannot be updated!]])
)
R_MISSING_PROG(AUTOCONF, autoconf,
R_MNT_WARN([[autoconf is missing - configure cannot be updated!]])
)
R_MISSING_PROG(AUTOHEADER, autoheader,
R_MNT_WARN([[autoheader is missing - header file templates like config.h.in cannot be updated!]])
)
AC_PROG_YACC
if test "${YACC}" = yacc ; then
## yacc is the default value even when yacc is not found
AC_CHECK_PROG(JUSTYACC, yacc, yes)
if test "x${JUSTYACC}" != xyes ; then
R_MNT_WARN([[yacc is missing - parsers cannot be updated!]])
fi
fi
AC_PATH_PROG(NOTANGLE, notangle, false)
if test "${NOTANGLE}" = false ; then
if test "x${use_maintainer_mode}" = xyes; then
AC_MSG_WARN([notangle is missing - byte-code compiler source cannot be updated!])
fi
NOTANGLE=notangle
R_MNT_WARN([[notangle is missing - byte-code compiler source cannot be updated!]])
NOTANGLE=notangle
fi
## javareconf needs this
AC_PATH_PROG(REALPATH, realpath, false)
......@@ -1102,11 +1113,21 @@ case "${host_os}" in
;;
esac
## This was -ffloat-store on all gfortran/g77 platforms prior to 3.5.0
## Suggestion adopted from https://gcc.gnu.org/wiki/FloatingPointMath
## It was already the default on 32-bit macOS
if test "${SAFE_FFLAGS+set}" != set; then
if test "x${ac_cv_f77_compiler_gnu}" = xyes; then
SAFE_FFLAGS="${FFLAGS} -ffloat-store"
case "${host_cpu}" in
i*86|x86_64)
SAFE_FFLAGS="${FFLAGS} -msse2 -mfpmath=sse"
;;
*)
SAFE_FFLAGS="${FFLAGS}"
::
esac
else
SAFE_FFLAGS=${FFLAGS}
SAFE_FFLAGS="${FFLAGS}"
fi
fi
......@@ -1795,14 +1816,29 @@ AC_CHECK_DECLS([alloca], , ,
## C99 functions:
## not all C99 runtimes are complete,
## but we have substitutes for expm1 hypot log1p and (internally) nearbyint[l]
## FreeBSD used to lack log1pl, but 10 seems to have it.
## FreeBSD 8.2 lacks log2
## FreeBSD 7.3 lacks nearbyintl/rintl (nearbyint appeared in 5.2)
## Apparently rint was once broken on HP-UX: undefine HAVE_RINT for such platforms
## Cygwin and FreeBSD lacked powl (FreeBSD 10 seems to have it).
## but we had substitutes for expm1 hypot log1p and (internally) nearbyint[l]
## FreeBSD used to lack log1pl, but 6.0 had it
## FreeBSD 8.3 first had log2
## FreeBSD 8.3 first had nearbyintl/rintl (from 2012)
## https://www.freebsd.org/cgi/man.cgi?query=log&apropos=0&sektion=3&manpath=FreeBSD+11-current&format=html will give an overview.
## Cygwin and FreeBSD lacked powl (FreeBSD 10.4 (2017-10) has it).
## Cygwin had rintl but not nearbyintl
R_CHECK_FUNCS([expm1 hypot log1p log1pl log2 log10 nearbyint nearbyintl powl rint rintl], [#include <math.h>])
## https://cygwin.com/cygwin-api/compatibility.html says it now has powl and nearbyintl .
## powl nearbyintl and rintl are only used in format.c
R_CHECK_FUNCS([expm1 hypot log1p log1pl log2 log10 nearbyint nearbyintl powl rintl], [#include <math.h>])
## require these from R 3.5.0.
if test "${ac_cv_have_decl_expm1}" = "no"; then
AC_MSG_ERROR([Building R requires the 'expm1' C99 function])
fi
if test "${ac_cv_have_decl_hypot}" = "no"; then
AC_MSG_ERROR([Building R requires the 'hypot' C99 function])
fi
if test "${ac_cv_have_decl_log1p}" = "no"; then
AC_MSG_ERROR([Building R requires the 'log1p' C99 function])
fi
if test "${ac_cv_have_decl_nearbyint}" = "no"; then
AC_MSG_ERROR([Building R requires the 'nearbyint' C99 function])
fi
## va_copy is C99: required as from R 2.13.0
R_CHECK_FUNCS([va_copy], [#include <stdarg.h>])
if test "${ac_cv_have_decl_va_copy}" = "no"; then
......@@ -1861,7 +1897,7 @@ case "${host_os}" in
esac
## Windows has neither setenv nor unsetenv
R_CHECK_FUNCS([setenv unsetenv], [#include <stdlib.h>])
R_CHECK_FUNCS([getrlimit getrusage getpriority], [#include <sys/resource.h>])
R_CHECK_FUNCS([getrlimit setrlimit getrusage getpriority], [#include <sys/resource.h>])
R_CHECK_FUNCS([chmod mkfifo stat umask], [#include <sys/stat.h>])
if test "${ac_cv_have_decl_stat}" = "no"; then
AC_MSG_ERROR([Building R requires the 'stat' system call])
......@@ -1919,6 +1955,11 @@ R_CHECK_FUNCS([glob], [#ifdef HAVE_GLOB_H
AC_CHECK_FUNCS([dladdr dlsym])
AC_CHECK_DECLS([dladdr,dlsym], , , [#include<dlfcn.h>])
AC_CHECK_DECLS([RTLD_DEFAULT,RTLD_NEXT], , , [#include<dlfcn.h>])
AC_CHECK_HEADERS([thread.h])
R_CHECK_FUNCS([thr_stksegment], [
#include <thread.h>
#include <signal.h>
])
## Lots of uses of getwd(), file.access(), Sys.glob().
## We don't need times() except as a fallback for getrusage and
......@@ -1974,24 +2015,6 @@ AM_LANGINFO_CODESET
## a) that would comment out #undef statements in Rmath.h.in and
## b) Rmath.h should be a self-contained file for standalone Rmath use.
## </NOTE>
if test "${ac_cv_have_decl_expm1}" = yes; then
RMATH_HAVE_EXPM1="# define HAVE_EXPM1 1"
else
RMATH_HAVE_EXPM1="# undef HAVE_EXPM1"
fi
AC_SUBST(RMATH_HAVE_EXPM1)
if test "${ac_cv_have_decl_hypot}" = yes; then
RMATH_HAVE_HYPOT="# define HAVE_HYPOT 1"
else
RMATH_HAVE_HYPOT="# undef HAVE_HYPOT"
fi
AC_SUBST(RMATH_HAVE_HYPOT)
if test "${ac_cv_have_decl_log1p}" = yes; then
RMATH_HAVE_LOG1P="# define HAVE_LOG1P 1"