beta-0.89.2
[luatex.git] / source / texk / web2c / web2c / configure.ac
blob3beca468860ff332f41f622a9986d962527dfe60
1 dnl Process this file with Autoconf to produce a configure script for Web2c.
2 dnl
3 dnl   Copyright (C) 2009-2015 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 dnl --------------------------------------------------------
10 dnl
11 dnl This directory is configured separately, because here we create tools
12 dnl that have to run on the build system.
13 dnl
14 m4_include([../../../version.ac])[] dnl define tex_live_version
15 AC_INIT([Web2C Tools], tex_live_version(), [tex-k@tug.org])
16 AC_PREREQ([2.63])
17 dnl 
18 dnl We don't use (for example) tex/tex.web because people who only want
19 dnl to build part of the distribution may not have any given program.
20 dnl Even main.c isn't guaranteed, but then nothing is, really ...
21 AC_CONFIG_SRCDIR([main.c])
22 AC_CONFIG_AUX_DIR([../../../build-aux])
23 AC_CONFIG_MACRO_DIR([../../../m4])
25 dnl Common code for all programs using libkpathsea.
26 KPSE_COMMON([web2c convert])
28 AC_PROG_YACC
29 KPSE_PROG_LEX
31 AC_CHECK_FUNCS([strerror])
32 AC_CHECK_HEADERS([errno.h])
33 AC_CHECK_SIZEOF([int])
34 AC_CHECK_SIZEOF([long])
35 AC_CHECK_SIZEOF([void *])
36 AC_TYPE_UINTPTR_T
38 dnl Check if <ctype.h> declares isascii.
39 AC_CHECK_DECLS([isascii], [], [], [[#include <ctype.h>]])
41 dnl Write output here, instead of putting a zillion -D's on the command line.
42 AC_CONFIG_HEADERS([kpathsea/c-auto.h:c-auto.in])
44 AC_CONFIG_FILES([Makefile])
46 AC_OUTPUT