1 dnl Process this file with autoconf to produce a configure script.
3 dnl Copyright (C) 2013, 2014 Peter Breitenlohner <tex-live@tug.org>
5 dnl This file is free software; the copyright holder
6 dnl gives unlimited permission to copy and/or distribute it,
7 dnl with or without modifications, as long as this notice is preserved.
9 m4_include([version.ac])[] dnl define lua52_version
10 AC_INIT([lua52 (TeX Live)], lua52_version, [tex-k@tug.org])
12 AC_CONFIG_SRCDIR([lua52-src/src/lua.c])
13 AC_CONFIG_AUX_DIR([../../build-aux])
14 AC_CONFIG_MACRO_DIR([../../m4])
22 AC_SUBST([LUA52VERSION], [lua52_version])
23 KPSE_LT_VERSION([lua52])
27 KPSE_DLL_NAME([texlua52], [texlua52])
29 AC_CONFIG_HEADERS([config.h])[]dnl unused, to avoid zillions of -D's on command line
31 AM_CONDITIONAL([build], [test "x$enable_build" != xno])
33 AC_SEARCH_LIBS([sqrt], [m])
36 KPSE_LARGEFILE([LUA52_DEFINES])
38 if test "x$ac_cv_header_stdc" = xyes; then
39 LUA52_DEFINES="$LUA52_DEFINES -DHAVE_UNISTD_H"
42 AC_SUBST([LUA52_TREE], [lua52-src])
44 AC_CONFIG_FILES([Makefile include/Makefile texlua52.pc])