Commit be42c2e7 authored by Francis Dupont's avatar Francis Dupont
Browse files

[RT#35643] fixed -lrt in LIBS

parent a3799a38
......@@ -16216,17 +16216,21 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
have_clock_gt=yes
have_clock_gt=rt
fi
fi
if test "$have_clock_gt" = "yes"; then
if test "$have_clock_gt" != "no"; then
$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
fi
if test "$have_clock_gt" = "rt"; then
LIBS="-lrt $LIBS"
fi
#
# was --with-libxml2 specified?
#
......
......@@ -1962,13 +1962,17 @@ AC_SUBST(PKCS11_TEST)
have_clock_gt=no
AC_CHECK_FUNC(clock_gettime,have_clock_gt=yes,)
if test "$have_clock_gt" = "no"; then
AC_CHECK_LIB(rt,clock_gettime,have_clock_gt=yes,)
AC_CHECK_LIB(rt,clock_gettime,have_clock_gt=rt,)
fi
if test "$have_clock_gt" = "yes"; then
if test "$have_clock_gt" != "no"; then
AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define if clock_gettime is available.])
fi
if test "$have_clock_gt" = "rt"; then
LIBS="-lrt $LIBS"
fi
#
# was --with-libxml2 specified?
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment