Link with -lrt if necessary

(cherry picked from commit 524b2086403944979636b71a5a609ace60a1cf54)
This commit is contained in:
Martin 2015-12-11 12:51:50 +01:00
parent d0fb217078
commit be56ca1521
2 changed files with 8 additions and 0 deletions

View File

@ -97,5 +97,9 @@ then
AC_PROG_OBJCXX
fi
AC_SEARCH_LIBS([clock_gettime], [rt posix4],
[test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$LIBS $ac_cv_search_clock_gettime"],
[AC_MSG_FAILURE([No library for clock_gettime found])] )
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

View File

@ -107,5 +107,9 @@ then
fi
AC_SUBST([WITH_FUSEPLUGIN_CXXFLAGS])
AC_SEARCH_LIBS([clock_gettime], [rt posix4],
[test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$LIBS $ac_cv_search_clock_gettime"],
[AC_MSG_FAILURE([No library for clock_gettime found])] )
AC_CONFIG_FILES([Makefile])
AC_OUTPUT