--- configure.orig 2024-02-01 22:56:12 UTC +++ configure @@ -1098,6 +1098,8 @@ with_system_teckit with_mpfi_libdir with_system_zziplib with_system_teckit +with_teckit_includes +with_teckit_libdir with_system_graphite2 with_system_harfbuzz with_system_icu @@ -27404,11 +27406,6 @@ echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=pplib, libn PPLIB_INCLUDES="-I$kpse_BLD/libs/pplib/include" PPLIB_LIBS="$kpse_BLD/libs/pplib/libpplib.a" PPLIB_DEPEND='${top_builddir}/../../libs/pplib/libpplib.a' - PPLIB_RULE='# Rebuild libpplib -$(PPLIB_DEPEND): ${top_builddir}/../../libs/pplib/include/pplib.h - cd ${top_builddir}/../../libs/pplib && $(MAKE) $(AM_MAKEFLAGS) rebuild -${top_builddir}/../../libs/pplib/include/pplib.h: - cd ${top_builddir}/../../libs/pplib && $(MAKE) $(AM_MAKEFLAGS) rebuild' ##tldbg _KPSE_LIB_FLAGS: Setup zlib (-lz) flags. echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=zlib, libname=z, options=, tlincl=-IBLD/libs/zlib/include, tllib=BLD/libs/zlib/libz.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/zlib/include/zconf.h.' >&5 @@ -27496,117 +27493,6 @@ esac ;; esac -##tldbg _KPSE_LIB_FLAGS: Setup lua53 (-ltexlua53) flags. -echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=lua53, libname=texlua53, options=lt tree, tlincl=-IBLD/libs/lua53/include, tllib=BLD/libs/lua53/libtexlua53.la, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/lua53/include/lua.h.' >&5 -##tldbg _KPSE_LIB_FLAGS_TL: lua53 (texlua53) lt tree. - LUA53_INCLUDES="-I$kpse_BLD/libs/lua53/include" - LUA53_LIBS="$kpse_BLD/libs/lua53/libtexlua53.la" - LUA53_DEPEND='${top_builddir}/../../libs/lua53/libtexlua53.la' - LUA53_RULE='# Rebuild libtexlua53 -$(LUA53_DEPEND): ${top_builddir}/../../libs/lua53/include/lua.h - cd ${top_builddir}/../../libs/lua53 && $(MAKE) $(AM_MAKEFLAGS) rebuild -${top_builddir}/../../libs/lua53/include/lua.h: - cd ${top_builddir}/../../libs/lua53 && $(MAKE) $(AM_MAKEFLAGS) rebuild' - -##tldbg _KPSE_LIB_FLAGS: Setup lua52 (-ltexlua52) flags. -echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=lua52, libname=texlua52, options=lt tree, tlincl=-IBLD/libs/lua52/include, tllib=BLD/libs/lua52/libtexlua52.la, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/lua52/include/lua.h.' >&5 -##tldbg _KPSE_LIB_FLAGS_TL: lua52 (texlua52) lt tree. - LUA52_INCLUDES="-I$kpse_BLD/libs/lua52/include" - LUA52_LIBS="$kpse_BLD/libs/lua52/libtexlua52.la" - LUA52_DEPEND='${top_builddir}/../../libs/lua52/libtexlua52.la' - LUA52_RULE='# Rebuild libtexlua52 -$(LUA52_DEPEND): ${top_builddir}/../../libs/lua52/include/lua.h - cd ${top_builddir}/../../libs/lua52 && $(MAKE) $(AM_MAKEFLAGS) rebuild -${top_builddir}/../../libs/lua52/include/lua.h: - cd ${top_builddir}/../../libs/lua52 && $(MAKE) $(AM_MAKEFLAGS) rebuild' - -echo 'tldbg:KPSE_LUAJIT_FLAGS called.' >&5 -##tldbg _KPSE_LIB_FLAGS: Setup luajit (-ltexluajit) flags. -echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=luajit, libname=texluajit, options=lt tree, tlincl=-IBLD/libs/luajit/include, tllib=BLD/libs/luajit/libtexluajit.la, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/luajit/include/luajit.h.' >&5 -##tldbg _KPSE_LIB_FLAGS_TL: luajit (texluajit) lt tree. - LUAJIT_INCLUDES="-I$kpse_BLD/libs/luajit/include" - LUAJIT_LIBS="$kpse_BLD/libs/luajit/libtexluajit.la" - LUAJIT_DEPEND='${top_builddir}/../../libs/luajit/libtexluajit.la' - LUAJIT_RULE='# Rebuild libtexluajit -$(LUAJIT_DEPEND): ${top_builddir}/../../libs/luajit/include/luajit.h - cd ${top_builddir}/../../libs/luajit && $(MAKE) $(AM_MAKEFLAGS) rebuild -${top_builddir}/../../libs/luajit/include/luajit.h: - cd ${top_builddir}/../../libs/luajit && $(MAKE) $(AM_MAKEFLAGS) rebuild' -# -# checking for openbsd for additional jit libraries needed, which is the -# case for clang; no point in going to the trouble elsewhere since no -# other system needs it. -case $build_os in -openbsd*) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking on openbsd if additional jit libraries are needed" >&5 -printf %s "checking on openbsd if additional jit libraries are needed... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include "stdint.h" - typedef struct _Unwind_Context _Unwind_Context; - extern uintptr_t _Unwind_GetCFA(_Unwind_Context *); -int -main (void) -{ -_Unwind_Context *ctx; - _Unwind_GetCFA(ctx); - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -else case e in #( - e) - jitlibs="-lc++abi -lpthread" - save_LIBS=$LIBS - LIBS="$LIBS $jitlibs" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include "stdint.h" - typedef struct _Unwind_Context _Unwind_Context; - extern uintptr_t _Unwind_GetCFA(_Unwind_Context *); -int -main (void) -{ -_Unwind_Context *ctx; - _Unwind_GetCFA(ctx); - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$jitlibs\"" >&5 -printf "%s\n" "\"$jitlibs\"" >&6; } - LIBLUAJIT_LDEXTRA="$LIBLUAJIT_LDEXTRA $jitlibs" - -else case e in #( - e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} -as_fn_error $? "luajit could not be linked -See 'config.log' for more details" "$LINENO" 5; } - ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - LIBS=$save_LIBS - - ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - ;; -esac -echo 'tldbg:KPSE_LUAJIT_FLAGS done.' >&5 - ##tldbg _KPSE_LIB_FLAGS: Setup libpng (-lpng) flags. echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=libpng, libname=png, options=, tlincl=-IBLD/libs/libpng/include, tllib=BLD/libs/libpng/libpng.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/libpng/include/png.h.' >&5 ##tldbg _KPSE_LIB_FLAGS_TL: libpng (png) . @@ -28106,49 +27992,38 @@ test "x$kpse_cv_have_win32" = xno || XPDF_LIBS="$XPDF_ fi test "x$kpse_cv_have_win32" = xno || XPDF_LIBS="$XPDF_LIBS -lgdi32" -##tldbg _KPSE_LIB_FLAGS: Setup zziplib (-lzzip) flags. -echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=zziplib, libname=zzip, options=, tlincl=-IBLD/libs/zziplib/include, tllib=BLD/libs/zziplib/libzzip.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/zziplib/include/zzip/zzip.h.' >&5 -##tldbg _KPSE_LIB_FLAGS_TL: zziplib (zzip) . - -# Check whether --with-system-zziplib was given. -if test ${with_system_zziplib+y} -then : - withval=$with_system_zziplib; -fi -if test "x$with_system_zziplib" = xyes; then - if $PKG_CONFIG zziplib --atleast-version=0.12; then - ZZIPLIB_INCLUDES=`$PKG_CONFIG zziplib --cflags` - ZZIPLIB_LIBS=`$PKG_CONFIG zziplib --libs` -elif test "x$need_zziplib:$with_system_zziplib" = xyes:yes; then - as_fn_error $? "did not find zziplib 0.12 or better" "$LINENO" 5 -fi -else - ZZIPLIB_INCLUDES="-I$kpse_BLD/libs/zziplib/include" - ZZIPLIB_LIBS="$kpse_BLD/libs/zziplib/libzzip.a" - ZZIPLIB_DEPEND='${top_builddir}/../../libs/zziplib/libzzip.a' - ZZIPLIB_RULE='# Rebuild libzzip -$(ZZIPLIB_DEPEND): ${top_builddir}/../../libs/zziplib/include/zzip/zzip.h - cd ${top_builddir}/../../libs/zziplib && $(MAKE) $(AM_MAKEFLAGS) rebuild -${top_builddir}/../../libs/zziplib/include/zzip/zzip.h: - cd ${top_builddir}/../../libs/zziplib && $(MAKE) $(AM_MAKEFLAGS) rebuild' -fi - ##tldbg _KPSE_LIB_FLAGS: Setup teckit (-lTECkit) flags. echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=teckit, libname=TECkit, options=, tlincl=-IBLD/libs/teckit/include, tllib=BLD/libs/teckit/libTECkit.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/teckit/include/teckit/TECkit_Common.h.' >&5 ##tldbg _KPSE_LIB_FLAGS_TL: teckit (TECkit) . -# Check whether --with-system-teckit was given. +# Check whether --with-teckit-includes was given. +if test "${with_teckit_includes+set}" = set; then : + withval=$with_teckit_includes; +fi + +# Check whether --with-teckit-libdir was given. +if test "${with_teckit_libdir+set}" = set; then : + withval=$with_teckit_libdir; +fi if test ${with_system_teckit+y} then : withval=$with_system_teckit; fi if test "x$with_system_teckit" = xyes; then - if $PKG_CONFIG teckit; then - TECKIT_INCLUDES=`$PKG_CONFIG teckit --cflags` - TECKIT_LIBS=`$PKG_CONFIG teckit --libs` -elif test "x$need_teckit:$with_system_teckit" = xyes:yes; then - as_fn_error $? "did not find teckit" "$LINENO" 5 -fi + if test "x$with_teckit_includes" != x && test "x$with_teckit_includes" != xyes; then + TECKIT_INCLUDES="-I$with_mpfr_includes" + fi + if test "x$with_teckit_libdir" != x && test "x$with_teckit_libdir" != xyes; then + TECKIT_LIBS="-L$with_teckit_libdir -lTECkit" + fi + if test "x$TECKIT_INCLUDES" = x && test "x$TECKIT_LIBS" = x; then + if $PKG_CONFIG teckit; then + TECKIT_INCLUDES=`$PKG_CONFIG teckit --cflags` + TECKIT_LIBS=`$PKG_CONFIG teckit --libs` + elif test "x$need_teckit:$with_system_teckit" = xyes:yes; then + as_fn_error $? "did not find teckit" "$LINENO" 5 + fi + fi else TECKIT_INCLUDES="-I$kpse_BLD/libs/teckit/include" TECKIT_LIBS="$kpse_BLD/libs/teckit/libTECkit.a"