Debian Codegraph @

libs/lua53/configure.ac

raw
1 dnl Process this file with autoconf to produce a configure script.
2 dnl
3 dnl Copyright (C) 2013, 2014 Peter Breitenlohner <[email protected]>
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 lua53_version
10 AC_INIT([lua53 (TeX Live)], lua53_version, [[email protected]])
11 AC_PREREQ([2.65])
12 AC_CONFIG_SRCDIR([lua53-src/src/lua.c])
13 AC_CONFIG_AUX_DIR([../../build-aux])
14 AC_CONFIG_MACRO_DIR([../../m4])
15
16 KPSE_BASIC([lua53])
17
18 AC_PROG_CC
19 AC_PROG_CC_C99
20 AC_PROG_RANLIB
21 AC_PROG_LN_S
22
23 AC_SUBST([LUA53VERSION], [lua53_version])
24 KPSE_LT_VERSION([lua53])
25
26 LT_INIT([win32-dll])
27
28 KPSE_DLL_NAME([texlua], [texlua])
29
30 AC_CONFIG_HEADERS([config.h])[]dnl unused, to avoid zillions of -D's on command line
31
32 AM_CONDITIONAL([build], [test "x$enable_build" != xno])
33
34 AC_SEARCH_LIBS([pow], [m])
35
36 KPSE_LUA53_DEFINES
37 KPSE_LARGEFILE([LUA53_DEFINES])
38
39 if test "x$ac_cv_header_stdc" = xyes; then
40 LUA53_DEFINES="$LUA53_DEFINES -DHAVE_UNISTD_H"
41 fi
42
43 LUA53_DEFINES="$LUA53_DEFINES -DLUA_COMPAT_5_2"
44 LUA53_CFLAGS="-DLUA_COMPAT_5_2"
45
46 AC_SUBST([LUA53_TREE], [lua53-src])
47
48 AC_CONFIG_FILES([Makefile include/Makefile texlua53.pc])
49
50 AC_OUTPUT