From 469d80f6b3dcfc2900f0faf5ab553fb3531c41f9 Mon Sep 17 00:00:00 2001 From: Eduardo Lima Date: Wed, 21 Dec 2005 21:29:39 +0000 Subject: Included option in configure to make ps backend compilation optional with 2005-12-21 Eduardo Lima * Makefile.am: * configure.ac: * backend/Makefile.am: * backend/ev-document-factory.c: * shell/ev-document-types.c: Included option in configure to make ps backend compilation optional with --disable-ps. --- (limited to 'backend') diff --git a/backend/Makefile.am b/backend/Makefile.am index 75509e6..97f9910 100644 --- a/backend/Makefile.am +++ b/backend/Makefile.am @@ -45,8 +45,12 @@ libevbackend_la_SOURCES= \ ev-document-misc.c libevbackend_la_LIBADD = \ - $(top_builddir)/pdf/libpdfdocument.la \ + $(top_builddir)/pdf/libpdfdocument.la + +if ENABLE_PS +libevbackend_la_LIBADD += \ $(top_builddir)/ps/libpsdocument.la +endif if ENABLE_PIXBUF libevbackend_la_LIBADD += \ diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c index 1cf3014..a695c45 100644 --- a/backend/ev-document-factory.c +++ b/backend/ev-document-factory.c @@ -28,7 +28,9 @@ #include "ev-poppler.h" #include "pixbuf-document.h" #include "tiff-document.h" +#ifdef ENABLE_PS #include "ps-document.h" +#endif #ifdef ENABLE_DVI #include "dvi-document.h" #endif @@ -53,10 +55,12 @@ const EvDocumentType document_types[] = { /* PDF: */ {"application/pdf", EV_BACKEND_PDF, pdf_document_get_type}, +#ifdef ENABLE_PS /* Postscript: */ {"application/postscript", EV_BACKEND_PS, ps_document_get_type}, {"application/x-gzpostscript", EV_BACKEND_PS, ps_document_get_type}, {"image/x-eps", EV_BACKEND_PS, ps_document_get_type}, +#endif #ifdef ENABLE_TIFF /* Tiff: */ -- cgit v0.9.1