summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-10-30 15:04:46 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-10-30 15:04:46 +0000
commit4afb5b7cc665c984e6c979614ea1cf7065780bfe (patch)
treed8c944d90aa482e9418caa96406f51789d1f2cdf /configure.ac
parent8595ac3d9b110a5c0fe46ccaaddc620d4c8681a1 (diff)
downloadxine-lib-4afb5b7cc665c984e6c979614ea1cf7065780bfe.tar.gz
xine-lib-4afb5b7cc665c984e6c979614ea1cf7065780bfe.tar.bz2
better check for posix timers
CVS patchset: 7092 CVS date: 2004/10/30 15:04:46
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e8951b28c..28427ccaf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -257,7 +257,6 @@ dnl WIN32 platform
AC_SUBST(WIN32_CPPFLAGS)
AM_CONDITIONAL(WIN32, test x$SYS = "xmingw32")
-
dnl ---------------------------------------------
dnl dynamic linker
dnl ---------------------------------------------
@@ -443,6 +442,16 @@ AC_SUBST(ZLIB_INCLUDES)
AC_SUBST(ZLIB_LIBS)
AC_SUBST(ZLIB_LIBS_CONFIG)
+dnl ---------------------------------------------
+dnl check posix timers
+dnl ---------------------------------------------
+
+AC_CHECK_LIB(rt, clock_getres,
+ [RT_LIBS="-lrt"
+ AC_DEFINE(HAVE_POSIX_TIMERS,1,
+ [Define this if you have POSIX timers.])],
+ AC_MSG_RESULT([*** no POSIX timers available.]))
+AC_SUBST(RT_LIBS)
dnl ---------------------------------------------
dnl Check for OpenGL & [GLut | GLU]