-splash_in_source='$(splash_objects)'
-xpdf_in_source='$(xpdf_objects)'
-
-dnl if test "x$USE_POPPLER" = "xtrue"; then
-dnl xpdf_in_source=
-dnl splash_in_source=
-dnl AC_DEFINE([HAVE_POPPLER],[1],[use poppler])
-dnl PKG_CHECK_MODULES([POPPLER],[poppler poppler-splash],,[poppler_pkgconfig=no])
-dnl if test "x$poppler_pkgconfig" = "xno"; then
-dnl AC_LANG_PUSH([C++])
-dnl AC_CHECK_HEADERS([OutputDev.h],[
-dnl AC_CHECK_LIB([poppler],[main],,[])
-dnl ],[AC_MSG_ERROR([No poppler library found. This library is required.])])
-dnl AC_LANG_POP
-dnl else
-dnl CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
-dnl AC_DEFINE([HAVE_POPPLER], [1])
-dnl LIBS="$LIBS $POPPLER_LIBS"
-dnl fi
-dnl fi
+xpdf_in_source=
+splash_in_source=
+xpdf_include=
+
+if test "x$USE_POPPLER" = "xtrue"; then
+ AC_DEFINE([HAVE_POPPLER],[1],[use poppler])
+ PKG_CHECK_MODULES([POPPLER],[poppler poppler-splash],,[poppler_pkgconfig=no])
+ if test "x$poppler_pkgconfig" = "xno"; then
+ AC_LANG_PUSH([C++])
+ AC_CHECK_HEADERS([OutputDev.h],[
+ AC_CHECK_LIB([poppler],[main],,[])
+ ],[AC_MSG_ERROR([No poppler library found. This library is required.])])
+ AC_LANG_POP
+ else
+ CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
+ LIBS="$LIBS $POPPLER_LIBS"
+ AC_DEFINE([HAVE_POPPLER], [1])
+ fi
+else
+ splash_in_source='$(splash_objects)'
+ xpdf_in_source='$(xpdf_objects)'
+ xpdf_include=' -I xpdf '
+fi