1
1
dnl Process this file with autoconf to produce a configure script.
4
AC_INIT([Evince],[2.22.1],[http://bugzilla.gnome.org/enter_bug.cgi?product=evince],[evince])
4
AC_INIT([Evince],[2.22.1.1],[http://bugzilla.gnome.org/enter_bug.cgi?product=evince],[evince])
5
5
AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip])
224
224
AC_CHECK_FUNCS(poppler_page_get_image)
225
225
LIBS=$evince_save_LIBS
227
POPPLER_MAJOR_VERSION=`$PKG_CONFIG --modversion poppler-glib | sed 's/0\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\?/\1/'`
228
POPPLER_MINOR_VERSION=`$PKG_CONFIG --modversion poppler-glib | sed 's/0\.\([[0-9]]*\)\(\.\([[0-9]]*\)\)\?/\3/'`
229
if test -z "$POPPLER_MINOR_VERSION"; then
230
POPPLER_MINOR_VERSION=0
227
poppler_version=`$PKG_CONFIG --modversion poppler-glib`
228
if test x$poppler_version = x0.6; then
229
poppler_version=0.6.0
231
POPPLER_MAJOR_VERSION=`echo $poppler_version | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\).*/\2 /'`
232
POPPLER_MINOR_VERSION=`echo $poppler_version | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\).*/\3 /'`
233
234
AC_DEFINE_UNQUOTED([POPPLER_MAJOR_VERSION], $POPPLER_MAJOR_VERSION, [Poppler major version number])
234
235
AC_DEFINE_UNQUOTED([POPPLER_MINOR_VERSION], $POPPLER_MINOR_VERSION, [Poppler minor version number])
236
237
PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf, enable_cairo_pdf=yes, enable_cairo_pdf=no)
237
if test x$enable_cairo_pdf == xyes; then
238
if test x$enable_cairo_pdf = xyes; then
238
239
AC_DEFINE([HAVE_CAIRO_PDF], [1], [defined if cairo-pdf is available])
241
242
PKG_CHECK_MODULES(CAIRO_PS, cairo-ps, enable_cairo_ps=yes, enable_cairo_ps=no)
242
if test x$enable_cairo_ps == xyes; then
243
if test x$enable_cairo_ps = xyes; then
243
244
AC_DEFINE([HAVE_CAIRO_PS], [1], [defined if cairo-ps is available])