[poppler] [patch] Allow to build without cairo
Brad Hards
bradh at frogmouth.net
Fri Mar 4 02:45:15 PST 2005
If you don't have cairo, the ./configure script dies (unless you use
--disable-cairo-output), but there is a more pleasant way. With this patch,
cairo is used if available.
diff -u -4 -p -r1.1.1.1 configure.ac
--- configure.ac 3 Mar 2005 19:45:58 -0000 1.1.1.1
+++ configure.ac 4 Mar 2005 10:39:54 -0000
@@ -112,12 +112,14 @@ AM_CONDITIONAL(BUILD_SPLASH_OUTPUT, test
AC_ARG_ENABLE(cairo-output,
AC_HELP_STRING([--disable-cairo-output],
[Don't build the cairo graphics backend.]),,
enable_cairo_output="yes")
-AM_CONDITIONAL(BUILD_CAIRO_OUTPUT, test x$enable_cairo_output = xyes)
if test x$enable_cairo_output = xyes; then
- PKG_CHECK_MODULES(CAIRO, cairo >= 0.3)
+ PKG_CHECK_MODULES(CAIRO, cairo >= 0.3,
+ [enable_cairo_output="yes"],
+ [enable_cairo_output="no"])
fi
+AM_CONDITIONAL(BUILD_CAIRO_OUTPUT, test x$enable_cairo_output = xyes)
AC_ARG_ENABLE(gtk-test,
AC_HELP_STRING([--disable-gtk-test],
[Don't compile GTK+ test program.]),,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20050304/a9720460/attachment.pgp
More information about the poppler
mailing list