(tar_save_LIBS): Bugfix. Thanks Adrian

Bunk <bunk@fs.tum.de> for reporting.
This commit is contained in:
Sergey Poznyakoff
2003-11-11 15:01:13 +00:00
parent 4414f1a82c
commit f6be77cada

View File

@@ -152,8 +152,10 @@ jm_XSTRTOUMAX
# Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
tar_save_LIBS=$LIBS tar_save_LIBS=$LIBS
LIB_CLOCK_GETTIME= LIB_CLOCK_GETTIME=
AC_SEARCH_LIBS(clock_gettime, [rt posix4], AC_SEARCH_LIBS(clock_gettime, [rt posix4])
[LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) case "$ac_cv_search_clock_gettime" in
-l*) LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime;;
esac
AC_SUBST(LIB_CLOCK_GETTIME) AC_SUBST(LIB_CLOCK_GETTIME)
AC_CHECK_FUNCS(clock_gettime) AC_CHECK_FUNCS(clock_gettime)
LIBS=$tar_save_LIBS LIBS=$tar_save_LIBS