Debian Codegraph @

texk/bibtex-x/configure.ac

raw
1 dnl $Id: configure.ac 77476 2026-01-25 02:25:04Z takuji $
2 dnl Process this file with autoconf to produce a configure script.
3 dnl
4 dnl Copyright 2015-2026 Karl Berry <[email protected]>
5 dnl Copyright 2009-2015 Peter Breitenlohner <[email protected]>
6 dnl
7 dnl This file is free software; the copyright holder
8 dnl gives unlimited permission to copy and/or distribute it,
9 dnl with or without modifications, as long as this notice is preserved.
10 dnl
11 AC_INIT([extended BibTeX (TeX Live)], [4.03], [[email protected]])
12 AC_PREREQ([2.65])
13 AC_CONFIG_SRCDIR([bibtex-1.c])
14 AC_CONFIG_AUX_DIR([../../build-aux])
15 AC_CONFIG_MACRO_DIR([../../m4])
16
17 dnl Common code for all programs using libkpathsea.
18 KPSE_COMMON([bibtex-x], [no-define])
19
20 m4_include([ac/bibtex-x.ac])
21
22 AC_CONFIG_HEADERS([config.h])
23
24 m4_include([../../version.ac])[] dnl define tex_live_version
25 AC_DEFINE([TL_VERSION], ["TeX Live tex_live_version()"],
26 [Define to the current TeX Live version string.])
27
28 AC_PROG_CXX
29 KPSE_CXX_HACK
30
31 AC_SEARCH_LIBS([pow], [m])
32
33 dnl BibTeX8 needs kpathsea even if bibtexu is disabled.
34 KPSE_KPATHSEA_FLAGS
35
36 if test "x$enable_bibtexu" != xno; then
37 dnl As of ICU 65.1, ICU requires -lpthread on x86_64-linux and, most
38 dnl likely, on other platforms. See upmendex/configure.ac for more info.
39 KPSE_SEARCH_LIBS([PTHREAD_LIB], [pthread_create], [pthread])
40 KPSE_ICU_FLAGS([icuio icui18n], [--ldflags-icuio])
41 fi
42
43 AM_CONDITIONAL([BIBTEX8], [test "x$enable_bibtex8" != xno])
44 AM_CONDITIONAL([BIBTEXU], [test "x$enable_bibtexu" != xno])
45
46 AC_CONFIG_FILES([Makefile])
47
48 AC_OUTPUT