fix getsup (HH)
[luatex.git] / source / libs / lua52 / configure.ac
blob77c0928964b4fe895e1bb7780687eb000aaa5e1c
1 dnl Process this file with autoconf to produce a configure script.
2 dnl
3 dnl   Copyright (C) 2013, 2014 Peter Breitenlohner <tex-live@tug.org>
4 dnl
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.
8 dnl
9 m4_include([version.ac])[] dnl define lua52_version
10 AC_INIT([lua52 (TeX Live)], lua52_version, [tex-k@tug.org])
11 AC_PREREQ([2.65])
12 AC_CONFIG_SRCDIR([lua52-src/src/lua.c])
13 AC_CONFIG_AUX_DIR([../../build-aux])
14 AC_CONFIG_MACRO_DIR([../../m4])
16 KPSE_BASIC([lua52])
18 AC_PROG_CC
19 AC_PROG_RANLIB
20 AC_PROG_LN_S
22 AC_SUBST([LUA52VERSION], [lua52_version])
23 KPSE_LT_VERSION([lua52])
25 LT_INIT([win32-dll])
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])
35 KPSE_LUA52_DEFINES
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])
46 AC_OUTPUT