summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/configure
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-07-15 15:46:02 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-07-15 15:46:02 +0000
commite4042723eabd6f9efb9b68034395b7d0ea999b82 (patch)
tree4e6d6da912c4eacb83aad667d10f7827643f53f9 /Build/source/texk/web2c/configure
parente8b6183a1df246ebab704b4bc737a10fe08051da (diff)
LuaTeX: Distinguish poppler >= 0.25 or <= 0.24
git-svn-id: svn://tug.org/texlive/trunk@34619 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/configure')
-rwxr-xr-xBuild/source/texk/web2c/configure51
1 files changed, 51 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/configure b/Build/source/texk/web2c/configure
index 7c08b276ced..d725ddae395 100755
--- a/Build/source/texk/web2c/configure
+++ b/Build/source/texk/web2c/configure
@@ -23741,6 +23741,57 @@ _ACEOF
+# Check of poppler 0.25 or better
+eval CPPFLAGS=\"$POPPLER_INCLUDES \$CPPFLAGS\"
+eval LIBS=\"$POPPLER_LIBS \$LIBS\"
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for StructTreeRoot.h (poppler 0.25 or better)" >&5
+$as_echo_n "checking for StructTreeRoot.h (poppler 0.25 or better)... " >&6; }
+if ${kpse_cv_have_StructTreeRoot_h+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+ac_link="./libtool --mode=link --tag=CXX $ac_link"
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdio.h>
+#include <StructTreeRoot.h>
+int
+main ()
+{
+PDFDoc *doc;
+ Dict *dict;
+ StructTreeRoot root(doc, dict);
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ kpse_cv_have_StructTreeRoot_h=yes
+else
+ kpse_cv_have_StructTreeRoot_h=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+ac_link="./libtool --mode=link --tag=CC $ac_link"
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_StructTreeRoot_h" >&5
+$as_echo "$kpse_cv_have_StructTreeRoot_h" >&6; }
+if test "x$kpse_cv_have_StructTreeRoot_h" = xyes; then
+
+$as_echo "#define HAVE_STRUCTTREEROOT_H 1" >>confdefs.h
+
+fi
CPPFLAGS=$kpse_save_CPPFLAGS
LIBS=$kpse_save_LIBS