The R Project SVN R

Rev

Rev 77172 | Rev 78110 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 77172 Rev 77176
Line 1923... Line 1923...
1923
AC_SUBST(MACOS_SIERRA)
1923
AC_SUBST(MACOS_SIERRA)
1924
## clock_gettime is POSIX 1993, but not on macOS prior to 10.12 (Sierra)
1924
## clock_gettime is POSIX 1993, but not on macOS prior to 10.12 (Sierra)
1925
## Some OSes need -lrt: Linux (for glibc versions before 2.17), Solaris,
1925
## Some OSes need -lrt: Linux (for glibc versions before 2.17), Solaris,
1926
## not FreeBSD. 
1926
## not FreeBSD. 
1927
## Unsurprising, as POSIX 2008 moved it from its timers section to base.
1927
## Unsurprising, as POSIX 2008 moved it from its timers section to base.
1928
## timespec_get is C11.
-
 
1929
AC_CHECK_LIB(rt, clock_gettime)
1928
AC_CHECK_LIB(rt, clock_gettime)
1930
R_CHECK_FUNCS([clock_gettime timespec_get], [#include <time.h>])
1929
R_CHECK_FUNCS([clock_gettime], [#include <time.h>])
-
 
1930
## timespec_get is C11.
-
 
1931
## macOS added timespec_get in 10.15 but used 10.15's SDK for 10.14 (Darwin 18)
-
 
1932
case "${host_os}" in
-
 
1933
   darwin1[[012345678]].*)
-
 
1934
   ;;
-
 
1935
   *)
-
 
1936
     R_CHECK_FUNCS([timespec_get], [#include <time.h>])
-
 
1937
   ;;
-
 
1938
esac
1931
## We need setenv or putenv.  It seems that everyone does have
1939
## We need setenv or putenv.  It seems that everyone does have
1932
## putenv, as earlier versions of R would have failed without it.
1940
## putenv, as earlier versions of R would have failed without it.
1933
## It is not always declared, so we do not require a declaration.
1941
## It is not always declared, so we do not require a declaration.
1934
AC_CHECK_FUNCS(putenv)
1942
AC_CHECK_FUNCS(putenv)
1935
AC_CHECK_DECLS([putenv], , , [#include <stdlib.h>])
1943
AC_CHECK_DECLS([putenv], , , [#include <stdlib.h>])