From 23689a884bbf814bb7fca5fff4952109f3fa00fa Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 25 Nov 2001 07:48:26 +0000 Subject: [PATCH] Don't set LIB_CLOCK_GETTIME to 'none required'; set it to the empty string instead. --- configure.ac | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index eb5ba59..6bbd948 100644 --- a/configure.ac +++ b/configure.ac @@ -78,9 +78,13 @@ jm_AC_PREREQ_XSTRTOUMAX # Check for clock_gettime and its library. Solaris puts it in -lrt or # -lposix4, but we don't want to link that library unless we have to. diff_saved_libs=$LIBS -AC_SEARCH_LIBS(clock_gettime, [rt posix4], - [LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime], - [LIB_CLOCK_GETTIME=]) +AC_SEARCH_LIBS(clock_gettime, [rt posix4]) +case $ac_cv_search_clock_gettime in +no | 'none required') + LIB_CLOCK_GETTIME=;; +*) + LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime;; +esac AC_SUBST([LIB_CLOCK_GETTIME]) AC_CHECK_FUNCS(clock_gettime) LIBS=$diff_saved_libs