[cairo-commit] configure.in perf/Makefile.am

Behdad Esfahbod behdad at kemper.freedesktop.org
Sat Jun 9 10:48:13 PDT 2007


 configure.in     |    4 ++++
 perf/Makefile.am |    3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

New commits:
diff-tree 1d86c7fa888918c32eb13adb084de78883e17c84 (from 85d045f2675cf191ea1d1af66ad4cd9e57d58e67)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Sat Jun 9 13:48:13 2007 -0400

    [perf] Link to librt if available
    
    This is needed on Solaris, but also works on Linux.

diff --git a/configure.in b/configure.in
index fc01e59..bef5d55 100644
--- a/configure.in
+++ b/configure.in
@@ -608,6 +608,9 @@ AC_CHECK_HEADERS([sched.h], [
   ])
 ])
 
+AC_CHECK_LIB(rt, sched_yield, [RT_LIBS=-lrt], [RT_LIBS=])
+CAIROPERF_LIBS=$RT_LIBS
+
 dnl ===========================================================================
 dnl Checks for misc headers
 AC_CHECK_HEADERS([libgen.h])
@@ -707,6 +710,7 @@ AC_SUBST(CAIRO_LDADD)
 AC_SUBST(CAIRO_LIBS)
 AC_SUBST(PIXMAN_CFLAGS)
 AC_SUBST(PIXMAN_LDADD)
+AC_SUBST(CAIROPERF_LIBS)
 
 dnl ===========================================================================
 dnl Check for gtk-doc and docbook
diff --git a/perf/Makefile.am b/perf/Makefile.am
index c185efb..481e8bc 100644
--- a/perf/Makefile.am
+++ b/perf/Makefile.am
@@ -54,7 +54,8 @@ cairo_perf_diff_files_SOURCES =	\
 	cairo-stats.h
 
 LDADD = $(top_builddir)/boilerplate/libcairoboilerplate.la \
-	$(top_builddir)/src/libcairo.la
+	$(top_builddir)/src/libcairo.la \
+	$(CAIROPERF_LIBS)
 
 $(top_builddir)/boilerplate/libcairoboilerplate.la: $(top_builddir)/src/libcairo.la
 	cd $(top_builddir)/boilerplate && $(MAKE) $(AM_MAKEFLAGS) libcairoboilerplate.la


More information about the cairo-commit mailing list