diff options
author | Jim Meyering <jim@meyering.net> | 1999-12-23 11:55:58 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-12-23 11:55:58 +0000 |
commit | c94e2142389ee9d8c05c0cdd1c69e66d6e6385a2 (patch) | |
tree | 08bece253e1c22d58b33c8825897b44cb6b8cb53 | |
parent | 5db04594ae83c35b8de429d4e28c727487f225d0 (diff) | |
download | coreutils-c94e2142389ee9d8c05c0cdd1c69e66d6e6385a2.tar.xz |
Check for clock_gettime (moved from fileutils/configure.in)
Check for gettimeofday.
-rw-r--r-- | m4/jm-macros.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index 30ce55c59..2dd2d818b 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -63,6 +63,13 @@ AC_DEFUN(jm_MACROS, dnl ...: warning: AC_TRY_RUN called without default to allow cross compiling AC_FUNC_SETVBUF_REVERSED + # used by sleep and shred + # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. + # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. + AC_SEARCH_LIBS(clock_gettime, [rt posix4]) + AC_CHECK_FUNCS(clock_gettime) + AC_CHECK_FUNCS(gettimeofday) + AM_FUNC_GETLINE if test $am_cv_func_working_getline != yes; then AC_CHECK_FUNCS(getdelim) |