From 2bee772bed19a55f666d7106c02735f14c0084e4 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 1 May 2006 11:28:35 +0000 Subject: *** empty log message *** --- configure.in | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index b31bf49..40b5f75 100644 --- a/configure.in +++ b/configure.in @@ -35,8 +35,8 @@ if test x$with_client != xno && test -z "$CLIENT"; then gw_CHECK_QT # CXXFLAGS="$CXXFLAGS $QT_CXXLAGS" # LDFLAGS="$LDFLAGS $QT_LDADD" - AC_SUBST(QT_CXXFLAGS) - AC_SUBST(QT_LDADD) + AC_SUBST(QT_CXXFLAGS) + AC_SUBST(QT_LDADD) dnl ====================== dnl Check for the Xv extension @@ -50,7 +50,17 @@ if test x$with_client != xno && test -z "$CLIENT"; then AC_CHECK_HEADER(libraw1394/raw1394.h, , AC_MSG_ERROR([*** libraw1394 headers not found!])) AC_CHECK_LIB(raw1394, raw1394_get_userdata, , AC_MSG_ERROR([*** libraw1394 not found!])) - AC_OUTPUT(client/Makefile) + dnl ====================== + dnl Check for the cairo library + dnl ====================== + AC_CHECK_HEADER(cairo/cairo-features.h, , AC_MSG_ERROR([*** cairo headers not found!])) + CAIRO_CXXFLAGS="`pkg-config --cflags cairo` -I/usr/local/include" + AC_SUBST(CAIRO_CXXFLAGS) + AC_CHECK_LIB(svg-cairo, svg_cairo_create, , AC_MSG_ERROR([*** libcairo not found!])) + CAIRO_LDFLAGS="`pkg-config --libs cairo` -lsvg -lsvg-cairo" + AC_SUBST(CAIRO_LDFLAGS) + + AC_OUTPUT(client/Makefile) dnl Make code aware of the gui AC_DEFINE([USE_CLIENT], [], [Is defined if the project is configured to compile with client]) -- cgit v1.2.3