summaryrefslogtreecommitdiff
path: root/Build/source/m4
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2018-01-17 18:00:12 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2018-01-17 18:00:12 +0000
commitf100e939b3262ac391fe767d591d1a316ab59f3a (patch)
tree53787d7aa79da3a8b10df0049cfe623cf0f2bd89 /Build/source/m4
parent345e6b3ddab394ae88cd0d916992bc2bc0f8695d (diff)
Luatex 1.07 --- luatex and luatex53
git-svn-id: svn://tug.org/texlive/trunk@46348 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4')
-rw-r--r--Build/source/m4/kpse-lua53-flags.m434
-rw-r--r--Build/source/m4/kpse-pkgs.m41
2 files changed, 35 insertions, 0 deletions
diff --git a/Build/source/m4/kpse-lua53-flags.m4 b/Build/source/m4/kpse-lua53-flags.m4
new file mode 100644
index 00000000000..1de4269a79a
--- /dev/null
+++ b/Build/source/m4/kpse-lua53-flags.m4
@@ -0,0 +1,34 @@
+# Public macros for the TeX Live (TL) tree.
+# Copyright (C) 2013, 2014 Peter Breitenlohner <tex-live@tug.org>
+#
+# This file is free software; the copyright holder
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# KPSE_LUA53_FLAGS
+# ----------------
+# Set the make variables LUA53_INCLUDES and LUA53_LIBS to the CPPFLAGS and
+# LIBS required for the `-ltexlua53' library in libs/lua53/ of the TL tree.
+AC_DEFUN([KPSE_LUA53_FLAGS], [dnl
+_KPSE_LIB_FLAGS([lua53], [texlua53], [lt tree],
+ [-IBLD/libs/lua53/include], [BLD/libs/lua53/libtexlua53.la], [],
+ [], [${top_builddir}/../../libs/lua53/include/lua.h])[]dnl
+]) # KPSE_LUA53_FLAGS
+
+# KPSE_LUA53_DEFINES
+# ------------------
+# Set the make variable LUA53_DEFINES to the CPPFLAGS required when
+# compiling or using the `-ltexlua53' library.
+AC_DEFUN([KPSE_LUA53_DEFINES], [dnl
+AC_REQUIRE([KPSE_CHECK_WIN32])[]dnl
+AC_SUBST([LUA53_DEFINES], ['-DLUA_COMPAT_MODULE -DLUA_COMPAT_5_2 -DLUAI_HASHLIMIT=6'])
+if test "x$kpse_cv_have_win32" = xno; then
+ LUA53_DEFINES="$LUA53_DEFINES -DLUA_USE_POSIX"
+ AC_SEARCH_LIBS([dlopen], [dl])
+ if test "x$ac_cv_search_dlopen" != xno; then
+ AC_CHECK_HEADER([dlfcn.h],
+ [LUA53_DEFINES="$LUA53_DEFINES -DLUA_USE_DLOPEN"],
+ [], [AC_INCLUDES_DEFAULT])
+ fi
+fi
+]) # KPSE_LUA53_DEFINES
diff --git a/Build/source/m4/kpse-pkgs.m4 b/Build/source/m4/kpse-pkgs.m4
index 60f26206198..3e58df1087b 100644
--- a/Build/source/m4/kpse-pkgs.m4
+++ b/Build/source/m4/kpse-pkgs.m4
@@ -43,6 +43,7 @@ libpng
libpaper
luajit
lua52
+lua53
zlib
])[]dnl
m4_define([kpse_texlibs_pkgs], [dnl