From: Michal Schmidt Date: Wed, 14 Nov 2012 13:44:05 +0000 Subject: [PATCH] configure.ac: fix FTBFS with new glibc glibc moved clock_* functions from librt to the core libc. As a result, clock_gettime is no more a suitable symbol to use when finding librt. Look for mq_open instead. Reference: http://www.sourceware.org/git/gitweb.cgi?p=glibc.git&h=6e6249d0b461b952d0f544792372663feb6d792a Fixes a FTBFS in Fedora Rawhide. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b31b62f28915..b9a36e69cc29 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,7 @@ AC_PREFIX_DEFAULT([/usr]) AC_PATH_PROG([XSLTPROC], [xsltproc]) AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x) -AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([POSIX RT library not found])]) +AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([POSIX RT library not found])]) PKG_CHECK_MODULES(BLKID, blkid >= 2.20)