Changeset 204 for trunk/configure.ac

Show
Ignore:
Timestamp:
06/10/06 04:36:58 (2 years ago)
Author:
jordi
Message:

The functions I used to fix ticket #28 (named links in some PDF's) where only available in Poppler versions 0.5.2 and upper. Since Poppler versions 0.5.0 and 0.5.1 also works with those documents I added a check for the current version of poppler and made to conditionaly compile the named links part based on the version found.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r182 r204  
    4040AC_SUBST([POPPLER_CFLAGS]) 
    4141AC_SUBST([POPPLER_LIBS]) 
     42dnl Check if we have poppler version 0.5.2 or higher. 
     43PKG_CHECK_EXISTS([poppler-glib >= 0.5.2], [have_popppler_052=yes]) 
     44if test "x$have_poppler_052" = "xyes"; then 
     45    AC_DEFINE([HAVE_POPPLER_0_5_2], [1], [Define to 1 if you have Poppler version 0.5.2 or higher.]) 
     46fi 
     47 
    4248 
    4349dnl CPPUnit library