diff --git a/configure.ac b/configure.ac index 238f3d7..c235486 100644 --- a/configure.ac +++ b/configure.ac @@ -570,6 +570,12 @@ fi if test "x$poppler_glib" = "xyes" -a "x$cairo_svg" = "xyes"; then AC_DEFINE(HAVE_POPPLER_GLIB, 1, [Use libpoppler-glib and Cairo-SVG for PDF import]) fi + +dnl Some poppler internal headers have '#include ' +dnl So we need to also include the parent directory of the poppler include path. +poppler_include=`echo $POPPLER_CFLAGS | sed 's/\/poppler//'` +POPPLER_CFLAGS="$POPPLER_CFLAGS $poppler_include" + AC_SUBST(POPPLER_CFLAGS) AC_SUBST(POPPLER_LIBS)