Debian Codegraph @

texk/chktex/configure.ac

raw
1 dnl Process this file with autoconf to produce a configure script.
2 dnl
3 dnl Copyright (C) 2010-2015 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 dnl *********************************************************************
10 dnl
11 dnl Adapted for TeX Live from chktex-src/configure.in
12 dnl
13 dnl *********************************************************************
14 dnl
15 m4_include([version.ac])[] dnl define chktex_version
16 AC_INIT([ChkTeX (TeX Live)], chktex_version, [[email protected]])
17 AC_PREREQ([2.65])
18 AC_CONFIG_SRCDIR([chktex-src/ChkTeX.c])
19 AC_CONFIG_AUX_DIR([../../build-aux])
20 AC_CONFIG_MACRO_DIR([../../m4])
21
22 dnl Common code for all programs using libkpathsea.
23 KPSE_COMMON([chktex])
24
25 dnl Need latex, dvips, and ps2pdf to build ChkTeX.pdf
26 KPSE_CHECK_LATEX
27 AC_CHECK_PROGS([DVIPS], [dvips], [no])
28 AC_CHECK_PROGS([PS2PDF], [ps2pdf], [no])
29
30 dnl Checks for header files.
31 AC_CHECK_HEADERS([stat.h stdarg.h sys/stat.h])
32
33 dnl Checks for library functions.
34 AC_FUNC_VPRINTF
35 AC_CHECK_FUNCS([access closedir fileno isatty opendir readdir stat strcasecmp strdup strlwr])
36
37 dnl Checks for declarations.
38 AC_CHECK_DECLS([stpcpy])
39
40 AC_CONFIG_HEADERS([config.h])
41
42 dnl For TeX Live we always use Posix extended regular expressions
43 AC_DEFINE([TEX_LIVE], 1, [Define to 1 for a TeX Live build.])
44 AC_DEFINE([HAVE_PCRE], 0, [Whether PCRE can be used for user warnings.])
45 AC_DEFINE([HAVE_POSIX_ERE], 1, [Whether POSIX ERE can be used for user warnings.])
46
47 KPSE_COND_MINGW32
48 KPSE_COND_WIN32_WRAP
49
50 AC_SUBST([CHKTEX_TREE], [chktex-src])
51 AC_SUBST([PERL5], ['/usr/bin/env perl'])
52
53 KPSE_KPATHSEA_FLAGS
54
55 AC_CONFIG_FILES([Makefile ChkTeX.t:chktex-src/ChkTeX.tex.in])
56 AC_CONFIG_FILES([deweb.pl:chktex-src/deweb.in], [chmod +x deweb.pl])
57
58 AC_OUTPUT