build: Check for clock_gettime with -lrt

This commit is contained in:
Marcel Holtmann 2013-09-09 14:21:49 -07:00
parent 6972187adf
commit cfb34d25b9
2 changed files with 1 additions and 2 deletions

View File

@ -22,7 +22,6 @@ AC_DEFUN([COMPILER_FLAGS], [
with_cflags="$with_cflags -Wcast-align"
with_cflags="$with_cflags -DG_DISABLE_DEPRECATED"
fi
AC_SUBST([WARNING_CFLAGS], $with_cflags)
])

View File

@ -40,7 +40,7 @@ AC_ARG_ENABLE(threads, AC_HELP_STRING([--enable-threads],
AC_CHECK_FUNC(signalfd, dummy=yes,
AC_MSG_ERROR(signalfd support is required))
AC_CHECK_FUNC(clock_gettime, dummy=yes,
AC_CHECK_LIB(rt, clock_gettime, dummy=yes,
AC_MSG_ERROR(realtime clock support is required))
AC_CHECK_LIB(pthread, pthread_create, dummy=yes,