Don't set LIB_CLOCK_GETTIME to 'none required'; set it to

the empty string instead.
This commit is contained in:
Paul Eggert 2001-11-25 07:48:26 +00:00
parent 9b53dc8757
commit 23689a884b

View File

@ -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