~matttbe/ubuntu/raring/poppler/lp1072129

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2011-12-05 17:23:02 UTC
  • mfrom: (1.7.1)
  • Revision ID: package-import@ubuntu.com-20111205172302-tmhrk7s9hikjsa79
Tags: 0.18.2-0ubuntu1
* New upstream version, bugs fixed in the new version (lp: #869850):
  - lines and graphics wrongly rendered (lp: #603929) (lp: #780169)
  - rendering issues on some documents (lp: #784154)
  - some pages are displayed blank (lp: #817626)
* debian/control, debian/rules:
  - updated for the libpoppler and libpoppler-glib soname changes
* drop patches included in the new version
* debian/libpoppler-glib-dev.install:
  - drop deprecated test-poppler-glib
* debian/rules: 
  - drop deprecated qt3 and abiword configure options

Show diffs side-by-side

added added

removed removed

Lines of Context:
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])
5
5
 
6
6
AC_PREREQ(2.59)
114
114
dnl ##### Checks for header files.
115
115
AC_PATH_XTRA
116
116
AC_HEADER_DIRENT
 
117
AC_CHECK_HEADERS([stdint.h])
117
118
 
118
119
dnl ##### Switch over to C++.  This will make the checks below a little
119
120
dnl ##### bit stricter (requiring function prototypes in include files).
173
174
AH_TEMPLATE([ENABLE_LIBOPENJPEG],
174
175
            [Use libopenjpeg instead of builtin jpeg2000 decoder.])
175
176
 
 
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")
 
183
 
 
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"])
 
195
fi
 
196
 
 
197
if test x$enable_libtiff = xyes; then
 
198
  LIBTIFF_LIBS="-ltiff"
 
199
  AC_SUBST(LIBTIFF_LIBS)
 
200
  AC_DEFINE(ENABLE_LIBTIFF)
 
201
fi
 
202
 
 
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.])
 
207
fi
176
208
 
177
209
dnl ##### Checks for library functions.
178
210
AC_CHECK_FUNCS(popen mkstemp mkstemps)
377
409
  POPPLER_GLIB_DISABLE_SINGLE_INCLUDES=""
378
410
 
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])
395
428
 
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")
404
436
  fi
405
437
  enable_poppler_glib="no"
406
 
  GLIB_REQ=""
407
438
fi
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)
411
 
 
412
 
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
413
 
 
414
 
dnl
415
 
dnl GDK
416
 
dnl
417
 
AC_ARG_ENABLE(gdk,
418
 
              AC_HELP_STRING([--disable-gdk],
419
 
                             [Compile without gdk.]),
420
 
              enable_gdk=$enableval,
421
 
              enable_gdk="try")
422
 
 
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,
428
 
                      [enable_gdk="yes"],
429
 
                      [enable_gdk="no"])
430
 
  fi
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"
437
 
  else
438
 
    enable_gdk="no"
439
 
    GDK_FEATURE=""
440
 
    GDK_REQ=""
441
 
  fi
442
 
else
443
 
  enable_gdk="no"
444
 
  GDK_REQ=""
445
 
fi
446
 
AM_CONDITIONAL(BUILD_WITH_GDK, test x$enable_gdk = xyes)
447
 
AC_SUBST(GDK_CFLAGS)
448
 
AC_SUBST(GDK_LIBS)
449
 
AC_SUBST(GDK_FEATURE)
450
 
AC_SUBST(GDK_REQ)
451
 
 
452
442
AC_SUBST(POPPLER_GLIB_DISABLE_DEPRECATED)
453
443
AC_SUBST(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES)
454
444
 
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")
460
 
 
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"])
467
 
fi
468
 
AC_SUBST(POPPLER_QT_CXXFLAGS)
469
 
AC_SUBST(POPPLER_QT_LIBS)
470
 
 
471
 
AM_CONDITIONAL(BUILD_POPPLER_QT, test "x$enable_poppler_qt" = "xyes")
 
445
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
472
446
 
473
447
dnl 
474
448
dnl Try Qt4
556
530
fi
557
531
AM_CONDITIONAL(BUILD_GTK_TEST, test x$enable_gtk_test = xyes -a x$enable_poppler_glib = xyes)
558
532
 
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"])
570
 
fi
571
 
 
572
 
AM_CONDITIONAL(BUILD_ABIWORD_OUTPUT, test x$enable_abiword_output = xyes)
573
 
 
574
533
AC_ARG_ENABLE(utils,
575
534
              AC_HELP_STRING([--disable-utils],
576
535
                             [Don't compile poppler command line utils.]),
647
606
glib/reference/version.xml
648
607
glib/demo/Makefile
649
608
test/Makefile
650
 
qt/Makefile
651
609
qt4/Makefile
652
610
qt4/src/Makefile
653
611
qt4/tests/Makefile
663
621
poppler-splash-uninstalled.pc
664
622
poppler-glib.pc
665
623
poppler-glib-uninstalled.pc
666
 
poppler-qt.pc
667
 
poppler-qt-uninstalled.pc
668
624
poppler-qt4.pc
669
625
poppler-qt4-uninstalled.pc
670
626
poppler-cpp.pc
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"