diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/Makefile.am | 6 | ||||
-rw-r--r-- | backend/ev-document-factory.c | 4 |
2 files changed, 9 insertions, 1 deletions
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: */ |