1
1
m4_define([poppler_version_major],[0])
2
m4_define([poppler_version_minor],[16])
3
m4_define([poppler_version_micro],[7])
2
m4_define([poppler_version_minor],[18])
3
m4_define([poppler_version_micro],[2])
4
4
m4_define([poppler_version],[poppler_version_major.poppler_version_minor.poppler_version_micro])
173
174
AH_TEMPLATE([ENABLE_LIBOPENJPEG],
174
175
[Use libopenjpeg instead of builtin jpeg2000 decoder.])
177
dnl ##### Test for libtiff
178
AC_ARG_ENABLE(libtiff,
179
AC_HELP_STRING([--disable-libtiff],
180
[Don't build against libtiff.]),
181
enable_libtiff=$enableval,
182
enable_libtiff="try")
184
if test x$enable_libtiff = xyes; then
185
AC_CHECK_LIB([tiff], [TIFFOpen],,
186
AC_MSG_ERROR("*** libtiff library not found ***"))
187
AC_CHECK_HEADERS([tiffio.h],,
188
AC_MSG_ERROR("*** libtiff headers not found ***"))
189
elif test x$enable_libtiff = xtry; then
190
AC_CHECK_LIB([tiff], [TIFFOpen],
191
[enable_libtiff="yes"],
192
[enable_libtiff="no"])
193
AC_CHECK_HEADERS([tiffio.h],,
194
[enable_libtiff="no"])
197
if test x$enable_libtiff = xyes; then
198
LIBTIFF_LIBS="-ltiff"
199
AC_SUBST(LIBTIFF_LIBS)
200
AC_DEFINE(ENABLE_LIBTIFF)
203
AM_CONDITIONAL(BUILD_LIBTIFF, test x$enable_libtiff = xyes)
204
AH_TEMPLATE([ENABLE_LIBTIFF], [Build against libtiff.])
205
if test x$enable_libtiff = xyes; then
206
AC_DEFINE(ENABLE_LIBTIFF, 1, [Build against libtiff.])
177
209
dnl ##### Checks for library functions.
178
210
AC_CHECK_FUNCS(popen mkstemp mkstemps)
377
409
POPPLER_GLIB_DISABLE_SINGLE_INCLUDES=""
379
411
GLIB_REQUIRED=2.18
412
AC_SUBST(GLIB_REQUIRED)
380
413
AC_ARG_ENABLE(poppler-glib,
381
414
AC_HELP_STRING([--disable-poppler-glib],
382
415
[Don't compile poppler glib wrapper.]),
393
426
# Check for introspection
394
427
GOBJECT_INTROSPECTION_CHECK([0.6.7])
396
GLIB_REQ="glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION"
397
429
AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
398
430
POPPLER_GLIB_DISABLE_DEPRECATED="$POPPLER_GLIB_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED"
399
431
POPPLER_GLIB_DISABLE_SINGLE_INCLUDES="$POPPLER_GLIB_DISABLE_SINGLE_INCLUDES -DG_DISABLE_SINGLE_INCLUDES"
403
435
AC_MSG_ERROR("Cairo output is required to build glib frontend")
405
437
enable_poppler_glib="no"
408
439
AM_CONDITIONAL(BUILD_POPPLER_GLIB, test x$enable_poppler_glib = xyes)
409
440
AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
410
441
AC_SUBST(GLIB_REQ)
412
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
418
AC_HELP_STRING([--disable-gdk],
419
[Compile without gdk.]),
420
enable_gdk=$enableval,
423
if test x$enable_poppler_glib = xyes; then
424
if test x$enable_gdk = xyes; then
425
PKG_CHECK_MODULES(GDK, gdk-2.0)
426
elif test x$enable_gdk = xtry; then
427
PKG_CHECK_MODULES(GDK, gdk-2.0,
431
if test x$enable_gdk = xyes; then
432
GDK_REQ="gdk-2.0 gdk-pixbuf-2.0"
433
AC_DEFINE(POPPLER_WITH_GDK,[1], [Have GDK])
434
GDK_FEATURE="#define POPPLER_WITH_GDK 1"
435
POPPLER_GLIB_DISABLE_DEPRECATED="$POPPLER_GLIB_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED"
436
POPPLER_GLIB_DISABLE_SINGLE_INCLUDES="$POPPLER_GLIB_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES"
446
AM_CONDITIONAL(BUILD_WITH_GDK, test x$enable_gdk = xyes)
449
AC_SUBST(GDK_FEATURE)
452
442
AC_SUBST(POPPLER_GLIB_DISABLE_DEPRECATED)
453
443
AC_SUBST(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES)
455
AC_ARG_ENABLE(poppler-qt,
456
AC_HELP_STRING([--disable-poppler-qt],
457
[Don't compile poppler qt wrapper.]),
458
enable_poppler_qt=$enableval,
459
enable_poppler_qt="try")
461
if test x$enable_poppler_qt = xyes; then
462
POPPLER_FIND_QT(POPPLER_QT,,)
463
elif test x$enable_poppler_qt = xtry; then
464
POPPLER_FIND_QT(POPPLER_QT,
465
[enable_poppler_qt="yes"],
466
[enable_poppler_qt="no"])
468
AC_SUBST(POPPLER_QT_CXXFLAGS)
469
AC_SUBST(POPPLER_QT_LIBS)
471
AM_CONDITIONAL(BUILD_POPPLER_QT, test "x$enable_poppler_qt" = "xyes")
445
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
557
531
AM_CONDITIONAL(BUILD_GTK_TEST, test x$enable_gtk_test = xyes -a x$enable_poppler_glib = xyes)
559
AC_ARG_ENABLE(abiword-output,
560
AC_HELP_STRING([--disable-abiword-output],
561
[Don't build the abiword backend.]),
562
enable_abiword_output=$enableval,
563
enable_abiword_output="try")
564
if test x$enable_abiword_output = xyes; then
565
PKG_CHECK_MODULES(ABIWORD, libxml-2.0)
566
elif test x$enable_abiword_output = xtry; then
567
PKG_CHECK_MODULES(ABIWORD, libxml-2.0,
568
[enable_abiword_output="yes"],
569
[enable_abiword_output="no"])
572
AM_CONDITIONAL(BUILD_ABIWORD_OUTPUT, test x$enable_abiword_output = xyes)
574
533
AC_ARG_ENABLE(utils,
575
534
AC_HELP_STRING([--disable-utils],
576
535
[Don't compile poppler command line utils.]),
676
632
echo " font configuration: $with_font_configuration"
677
633
echo " splash output: $enable_splash_output"
678
634
echo " cairo output: $enable_cairo_output"
679
echo " abiword output: $enable_abiword_output"
680
echo " qt wrapper: $enable_poppler_qt"
681
635
echo " qt4 wrapper: $enable_poppler_qt4"
682
636
echo " glib wrapper: $enable_poppler_glib"
683
echo " use GDK: $enable_gdk"
684
637
echo " introspection: $found_introspection"
685
638
echo " cpp wrapper: $enable_poppler_cpp"
686
639
echo " use gtk-doc: $enable_gtk_doc"
687
640
echo " use libjpeg: $enable_libjpeg"
688
641
echo " use libpng: $enable_libpng"
642
echo " use libtiff: $enable_libtiff"
689
643
echo " use zlib: $enable_zlib"
690
644
echo " use libcurl: $enable_libcurl"
691
645
echo " use libopenjpeg: $enable_libopenjpeg"