Use AC_SEARCH_LIBS instead of AC_CHECK_LIB so we don't pull in librt

unless we actually need it.
This commit is contained in:
Dag-Erling Smørgrav 2014-10-30 14:32:46 +00:00 committed by des
parent 86e7cd9eb1
commit 44230ff5e3

View file

@ -62,7 +62,7 @@ AC_CHECK_FUNCS([utrace])
save_LIBS="${LIBS}"
LIBS=""
AC_CHECK_LIB(rt, clock_gettime)
AC_SEARCH_LIBS([clock_gettime], [rt])
RT_LIBS="${LIBS}"
LIBS="${save_LIBS}"
AC_SUBST(RT_LIBS)