mirror of
https://https.git.savannah.gnu.org/git/diffutils.git
synced 2026-01-27 18:04:32 +00:00
Don't set LIB_CLOCK_GETTIME to 'none required'; set it to
the empty string instead.
This commit is contained in:
parent
9b53dc8757
commit
23689a884b
10
configure.ac
10
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user