diff options
author | Jim Meyering <jim@meyering.net> | 2003-12-19 21:48:35 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-12-19 21:48:35 +0000 |
commit | ddf8b7b638f6a9a78d7b761ec86900aa4d1a05b1 (patch) | |
tree | 79b85052becb04d4e2bcdb0aed56dfecd6ca09b9 /m4 | |
parent | 02dd87543e9469badff41864c33b70153ad6b9c2 (diff) | |
download | coreutils-ddf8b7b638f6a9a78d7b761ec86900aa4d1a05b1.tar.xz |
(gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME if no library is required.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/clock_time.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/clock_time.m4 b/m4/clock_time.m4 index e7e4e29ac..6cd7c6a3b 100644 --- a/m4/clock_time.m4 +++ b/m4/clock_time.m4 @@ -1,4 +1,4 @@ -# clock_time.m4 serial 2 +# clock_time.m4 serial 3 dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General @@ -17,7 +17,8 @@ AC_DEFUN([gl_CLOCK_TIME], # library, inducing unnecessary run-time overhead. fetish_saved_libs=$LIBS AC_SEARCH_LIBS(clock_gettime, [rt posix4], - [LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) + [LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime + test -z "$LIB_CLOCK_GETTIME" && LIB_CLOCK_GETTIME=]) AC_SUBST(LIB_CLOCK_GETTIME) AC_CHECK_FUNCS(clock_gettime clock_settime) LIBS=$fetish_saved_libs |