Commit c3c05085 authored by Radford Neal's avatar Radford Neal

Files from R-2.14.0.

parent 2779b419

Too many changes to show.

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

This diff is collapsed.
......@@ -29,6 +29,7 @@ Makeconf: $(srcdir)/Makeconf.in $(top_builddir)/config.status
@cd $(top_builddir) && $(SHELL) ./config.status $@
ACLOCAL_M4 = aclocal.m4
## NB: this is duplicated in m4/Makefile.in
ACINCLUDE_DEPENDENCIES = \
m4/R.m4 \
m4/bigendian.m4 \
......@@ -37,7 +38,8 @@ ACINCLUDE_DEPENDENCIES = \
m4/codeset.m4 \
m4/gettext.m4 m4/gettext-lib.m4 \
m4/java.m4 \
m4/libtool.m4 m4/ltoptions.m4 m4/ltversion.m4 m4/ltsugar.m4 m4/lt~obsolete.m4
m4/libtool.m4 m4/ltoptions.m4 m4/ltversion.m4 m4/ltsugar.m4 m4/lt~obsolete.m4 \
m4/stat-time.m4
CONFIGURE_DEPENDENCIES = $(srcdir)/VERSION
config.status: $(srcdir)/configure
@$(SHELL) ./config.status --recheck
......@@ -195,15 +197,17 @@ distdir: $(DISTFILES) vignettes
| (cd $(distdir); $(TAR) -x -f -)) \
|| exit 1; \
done
@cp library/grid/doc/*.pdf $(distdir)/src/library/grid/inst/doc
@cp library/utils/doc/*.pdf $(distdir)/src/library/utils/inst/doc
@for d in grid parallel utils; do \
mkdir -p $(distdir)/src/library/$${d}/inst/doc; \
cp library/$${d}/doc/*.pdf $(distdir)/src/library/$${d}/inst/doc; \
done
@(cd $(distdir); tools/link-recommended)
dvi info pdf:
info pdf:
-@(cd doc && $(MAKE) $@)
install-dvi install-info install-pdf:
install-info install-pdf:
-@(cd doc/manual && $(MAKE) $@)
uninstall-dvi uninstall-info uninstall-pdf:
uninstall-info uninstall-pdf:
-@(cd doc/manual && $(MAKE) $@)
install-tests:
......@@ -220,23 +224,4 @@ check check-devel check-all check-recommended:
reset-recommended:
@(cd src/library/Recommended && $(MAKE) clean)
## This is a temporary target -- we'll do a better job soon
bytecode: all
@if test ! -e $(top_builddir)/library/compiler; \
then $(ECHO) "install the compiler first"; exit 1; fi
exit
@for pkg in $(R_PKGS_BASE); do \
$(ECHO) compiling code in package \"$${pkg}\"; \
touch $(top_builddir)/src/library/$${pkg}/all.R; \
(cd $(top_builddir)/src/library/$${pkg}; \
R_COMPILE_PKGS=1 R_COMPILER_SUPPRESS_ALL=1 $(MAKE)) \
done
@for pkg in $(R_PKGS_RECOMMENDED); do \
$(ECHO) compiling code in package \"$${pkg}\"; \
R_COMPILE_PKGS=1 R_COMPILER_SUPPRESS_ALL=1 \
$(top_builddir)/bin/R CMD INSTALL \
-l $(top_builddir)/library \
$(srcdir)/src/library/Recommended/$${pkg}.tgz; \
done
TAGS:
This diff is collapsed.
No preview for this file type
Revision: 57111
Last Changed Date: 2011-09-30
Revision: 57496
Last Changed Date: 2011-10-31
This diff is collapsed.
......@@ -109,6 +109,9 @@ case "${host_os}" in
esac
AC_SUBST(R_OSTYPE)
R_CONFIG_ARGS="${ac_configure_args}"
AC_SUBST(R_CONFIG_ARGS)
### ** Defaults.
## NB: autoconf loads such files too
......@@ -436,6 +439,15 @@ AC_ARG_WITH([ICU],
[R_ARG_USE(ICU)],
[use_ICU=yes])
## Byte-compilation of packages.
AC_ARG_ENABLE([byte-compiled-packages],
[AS_HELP_STRING([--enable-byte-compiled-packages],
[byte-compile base and recommended packages @<:@yes@:>@])],
[want_byte_compiled_packages="${enableval}"],
[want_byte_compiled_packages=yes])
AM_CONDITIONAL(BYTE_COMPILE_PACKAGES,
[test "x${want_byte_compiled_packages}" = xyes])
### ** Precious variables.
AC_ARG_VAR([R_PRINTCMD],
......@@ -731,8 +743,8 @@ AC_SUBST(READLINE_LIBS)
### * Checks for header files.
AC_HEADER_STDC
AC_HEADER_TIME
AC_HEADER_DIRENT
## we also assume readdir and closedir
if test "${ac_cv_search_opendir}" = "no"; then
AC_MSG_ERROR([Building R requires the 'opendir' system call])
fi
......@@ -740,17 +752,26 @@ AC_HEADER_SYS_WAIT
## <NOTE>
## Some of these are also checked for when Autoconf computes the default
## includes.
##
## The following headers are POSIX: dlfcn.h fcntl.h glob.h grp.h
## pwd.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
## dl.h seems to be for HP-UX
## floatingpoint.h is on FreeBSD and Solaris, originating in SysV.
## (It is probably only used for fpsetmask on FreeBSD).
## fpu_control.h is only used on Linux, for the obsolete __setfpucw.
## sys/param.h is one way to get PATH_MAX.
AC_CHECK_HEADERS(arpa/inet.h dl.h dlfcn.h elf.h fcntl.h floatingpoint.h \
fpu_control.h glob.h grp.h locale.h \
netdb.h netinet/in.h pwd.h strings.h \
sys/param.h sys/select.h sys/socket.h sys/stat.h sys/resource.h \
sys/time.h sys/times.h sys/utsname.h time.h unistd.h)
fpu_control.h glob.h grp.h netdb.h netinet/in.h pwd.h strings.h \
sys/param.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)
## </NOTE>
## <NOTE>
## These are C99 headers but some C code (written to work also
## without assuming C99) may need the corresponding conditionals.
AC_CHECK_HEADERS(errno.h inttypes.h limits.h stdarg.h stdbool.h \
AC_CHECK_HEADERS(errno.h inttypes.h limits.h locale.h stdarg.h stdbool.h \
stdint.h string.h)
## only vsnprintf.c requires stdarg.h
## </NOTE>
R_HEADER_SETJMP
......@@ -801,10 +822,6 @@ AC_CHECK_SIZEOF(long long)
AC_CHECK_SIZEOF(double)
AC_CHECK_SIZEOF(long double)
AC_CHECK_SIZEOF(size_t)
dnl AC_CHECK_SIZEOF(time_t, [
dnl #include <stdio.h>
dnl #include <time.h>
dnl ])
R_PROG_CC_MAKEFRAG
R_PROG_CC_LO_MAKEFRAG
......@@ -839,6 +856,14 @@ AC_LANG_POP(C++)
R_PROG_OBJC_MAKEFRAG
R_PROG_OBJC_RUNTIME
## FSF builds of gcc (and maybe others?) need -fobjc-exceptions otherwise
## @try and friends don't work
R_PROG_OBJC_FLAG([-fobjc-exceptions],
R_SH_VAR_ADD(OBJCFLAGS, [-fobjc-exceptions]))
## FIXME: checks for Foundation are not darwin-specifc at all. In fact the whole
## point of R_OBJC_FOUNDATION is to detect foundation classes on other
## platforms (on Darwin we already *know* that is it -framework Foundation
## but not so on Linux!), so the following was not intended to be conditonal.
case "${host_os}" in
darwin*)
R_OBJC_FOUNDATION
......@@ -1062,6 +1087,8 @@ AC_SUBST(OBJC_LIBS)
AC_SUBST(OBJCFLAGS)
AC_SUBST(OBJCXXFLAGS)
R_ABI
### ** DLL stuff.
## We need to determine the following:
......@@ -1716,9 +1743,6 @@ fi
## isblank should be a macro according to C99. It was missing on Solaris 8
AC_CHECK_FUNCS(isblank)
## time is C89
R_CHECK_FUNCS([time], [#include <time.h>])
## fseeko/ftello are POSIX, may be macros
## matherr is SVID, redefined in arithmetic.c if present
AC_CHECK_FUNCS(fseeko ftello matherr)
......@@ -1727,24 +1751,33 @@ AC_CHECK_FUNCS(fseeko ftello matherr)
R_CHECK_FUNCS([fcntl], [#include <fcntl.h>])
R_CHECK_FUNCS([getgrgid], [#include <grp.h>])
R_CHECK_FUNCS([getpwuid], [#include <pwd.h>])
R_CHECK_FUNCS([sigaction sigaltstack sigemptyset], [#include <signal.h>])
R_CHECK_FUNCS([kill sigaction sigaltstack sigemptyset], [#include <signal.h>])
R_CHECK_FUNCS([fdopen popen], [#include <stdio.h>])
if test "${ac_cv_have_decl_popen}" = "no"; then
AC_MSG_ERROR([Building R requires the 'popen' system call])
fi
## Windows has neither setenv nor unsetenv
R_CHECK_FUNCS([setenv unsetenv], [#include <stdlib.h>])
R_CHECK_FUNCS([getrlimit getrusage], [#include <sys/resource.h>])
R_CHECK_FUNCS([getrlimit 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])
fi
R_CHECK_FUNCS([gettimeofday], [#include <sys/time.h>])
R_CHECK_FUNCS([gettimeofday utimes], [#include <sys/time.h>])
R_CHECK_FUNCS([times], [#include <sys/times.h>])
R_CHECK_FUNCS([access chdir execv ftruncate getcwd getuid link readlink symlink sysconf],
R_CHECK_FUNCS([access chdir execv ftruncate getcwd geteuid getuid link readlink symlink sysconf],
[#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif])
## This was declared obsolescent in POSIX 2008 (use utimes instead)
R_CHECK_FUNCS([utime], [#include <utime.h>])
## clock_gettime is POSIX 1993, but not on MacOS X
## Some OSes need -lrt: Linux, Solaris, not FreeBSD.
## Unsurprising, as POSIX 2008 moved it from its timers section to base.
R_CHECK_FUNCS([clock_gettime], [#include <time.h>])
if test "${ac_cv_have_decl_clock_gettime}" = "yes"; then
AC_CHECK_LIB(rt, clock_gettime)
fi
## 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.
......@@ -1763,11 +1796,14 @@ AC_CHECK_DECLS([realpath], , , [#include <stdlib.h>
#include <unistd.h>
#endif])
## glob is POSIX: we have a substitute on Windows
## assume without checking that if we have glob we also have globfree
R_CHECK_FUNCS([glob], [#ifdef HAVE_GLOB_H
# include <glob.h>
#endif])
## Lots of uses of getwd(), file.access(), Sys.glob()
## Lots of uses of getwd(), file.access(), Sys.glob().
## We don't need times() except as a fallback for getrusage and
## clock_gettime/gettimeofday -- but it is older and always there.
case "${host_os}" in
mingw*)
;;
......@@ -1784,9 +1820,12 @@ case "${host_os}" in
if test "${ac_cv_search_chdir}" = "no"; then
AC_MSG_ERROR([Building R requires the 'chdir' system call])
fi
if test "${ac_cv_search_times}" = "no"; then
AC_MSG_ERROR([Building R requires the 'times' system call])
fi
;;
esac
## We also use getlogin isatty rename unlink without checking.
## <NOTE>
## No need checking for bcopy bzero memcpy even though ifnames
......@@ -1836,13 +1875,14 @@ fi
AC_SUBST(RMATH_HAVE_LOG1P)
## Do we need substitutes?
## mkdtemp is not on Solaris
AC_REPLACE_FUNCS(acosh asinh atanh mkdtemp snprintf strdup strncasecmp vsnprintf)
## mkdtemp is not on Solaris, added in POSIX 2008
## strdup strncasecmp were first required in POSIX 2008.
AC_REPLACE_FUNCS([mkdtemp strdup strncasecmp])
## Enable declarations in Defn.h?
AC_CHECK_DECLS([acosh, asinh, atanh], , , [#include <math.h>])
AC_CHECK_DECLS([mkdtemp, snprintf, strdup, strncasecmp, vsnprintf])
AC_CHECK_DECLS([mkdtemp, strdup, strncasecmp])
AC_SEARCH_LIBS(connect, [socket])
# gethostbyname was removed in POSIX 2008 (in favour of getaddrinfo, POSIX 2004)
AC_SEARCH_LIBS(gethostbyname, [nsl socket])
AC_SEARCH_LIBS(xdr_string, [nsl tirpc])
R_FUNC___SETFPUCW
......@@ -2043,6 +2083,7 @@ R_X11_Xmu
if test "x${want_cairo}" = "xyes"; then
R_PANGO_CAIRO
fi
AM_CONDITIONAL(BUILD_DEVCAIRO, [test "x${r_cv_cairo_works}" = xyes])