152 |
# Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. |
# Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. |
153 |
tar_save_LIBS=$LIBS |
tar_save_LIBS=$LIBS |
154 |
LIB_CLOCK_GETTIME= |
LIB_CLOCK_GETTIME= |
155 |
AC_SEARCH_LIBS(clock_gettime, [rt posix4], |
AC_SEARCH_LIBS(clock_gettime, [rt posix4]) |
156 |
[LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) |
case "$ac_cv_search_clock_gettime" in |
157 |
|
-l*) LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime;; |
158 |
|
esac |
159 |
AC_SUBST(LIB_CLOCK_GETTIME) |
AC_SUBST(LIB_CLOCK_GETTIME) |
160 |
AC_CHECK_FUNCS(clock_gettime) |
AC_CHECK_FUNCS(clock_gettime) |
161 |
LIBS=$tar_save_LIBS |
LIBS=$tar_save_LIBS |