Debian Codegraph @

m4/kpse-pkgs.m4

raw
1 # $Id: kpse-pkgs.m4 77435 2026-01-21 17:39:52Z karl $
2 # Private Autoconf macros for the TeX Live (TL) tree.
3 # Copyright 2016-2025 Karl Berry <[email protected]>
4 # Copyright 2009-2015 Peter Breitenlohner <[email protected]>
5 #
6 # This file is free software; the copyright holder
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # ------------------------------ #
11 # Define lists of sub-packages. #
12 # ------------------------------ #
13
14 # Hopefully these lists are defined here and nowhere else.
15 # Note: directories in these lists need not exist.
16
17 # KPSE_LIBS_PKGS()
18 # ----------------
19 # Define two lists of library sub-packages:
20 # generic libraries, i.e., subdirs 'libs/*', that can be used by
21 # utility and TeXk sub-packages
22 # and
23 # TeX specific libraries, i.e., subdirs 'texk/*', that can only
24 # be used by TeXk sub-packages and can't use generic libraries
25 # Each library must precede required other libraries (if any).
26 AC_DEFUN([KPSE_LIBS_PKGS], [dnl
27 m4_define([kpse_libs_pkgs], [dnl
28 pplib
29 harfbuzz
30 icu
31 teckit
32 graphite2
33 zziplib
34 xpdf
35 mpfi
36 mpfr
37 gmp
38 cairo
39 pixman
40 gd
41 potrace
42 freetype2
43 libpng
44 libpaper
45 luajit
46 lua53
47 zlib
48 ])[]dnl
49 m4_define([kpse_texlibs_pkgs], [dnl
50 ptexenc
51 kpathsea
52 ])]) # KPSE_LIBS_PKGS
53
54 # KPSE_ALL_SYSTEM_FLAGS()
55 # -----------------------
56 # Generate flags for all potential system libraries available,
57 # only used at top-level.
58 AC_DEFUN([KPSE_ALL_SYSTEM_FLAGS], [dnl
59 AC_REQUIRE([KPSE_LIBS_PREPARE])[]dnl
60 AC_REQUIRE([KPSE_KPATHSEA_SYSTEM_FLAGS])[]dnl
61 AC_REQUIRE([KPSE_PTEXENC_SYSTEM_FLAGS])[]dnl
62 AC_REQUIRE([KPSE_ZLIB_SYSTEM_FLAGS])[]dnl
63 AC_REQUIRE([KPSE_PPLIB_SYSTEM_FLAGS])[]dnl
64 AC_REQUIRE([KPSE_POTRACE_SYSTEM_FLAGS])[]dnl
65 AC_REQUIRE([KPSE_LIBPAPER_SYSTEM_FLAGS])[]dnl
66 AC_REQUIRE([KPSE_LIBPNG_SYSTEM_FLAGS])[]dnl
67 AC_REQUIRE([KPSE_FREETYPE2_SYSTEM_FLAGS])[]dnl
68 AC_REQUIRE([KPSE_GD_SYSTEM_FLAGS])[]dnl
69 AC_REQUIRE([KPSE_PIXMAN_SYSTEM_FLAGS])[]dnl
70 AC_REQUIRE([KPSE_CAIRO_SYSTEM_FLAGS])[]dnl
71 AC_REQUIRE([KPSE_GMP_SYSTEM_FLAGS])[]dnl
72 AC_REQUIRE([KPSE_MPFR_SYSTEM_FLAGS])[]dnl
73 AC_REQUIRE([KPSE_MPFI_SYSTEM_FLAGS])[]dnl
74 AC_REQUIRE([KPSE_XPDF_SYSTEM_FLAGS])[]dnl
75 AC_REQUIRE([KPSE_ZZIPLIB_SYSTEM_FLAGS])[]dnl
76 AC_REQUIRE([KPSE_GRAPHITE2_SYSTEM_FLAGS])[]dnl
77 AC_REQUIRE([KPSE_TECKIT_SYSTEM_FLAGS])[]dnl
78 AC_REQUIRE([KPSE_ICU_SYSTEM_FLAGS])[]dnl
79 AC_REQUIRE([KPSE_HARFBUZZ_SYSTEM_FLAGS])[]dnl
80 AC_REQUIRE([KPSE_LUAJIT_SYSTEM_FLAGS])[]dnl
81 ]) # KPSE_ALL_SYSTEM_FLAGS
82
83 # KPSE_UTILS_PKGS()
84 # -----------------
85 # Define the list of utility sub-packages, i.e., subdirs 'utils/*'.
86 AC_DEFUN([KPSE_UTILS_PKGS], [dnl
87 m4_define([kpse_utils_pkgs], [dnl
88 autosp
89 axodraw2
90 devnag
91 lacheck
92 m-tx
93 pmx
94 ps2eps
95 t1utils
96 texdoctk
97 tpic2pdftex
98 vlna
99 xindy
100 xml2pmx
101 xpdfopen
102 ])]) # KPSE_UTILS_PKGS
103
104 # KPSE_TEXK_PKGS()
105 # ----------------
106 # Define the list of TeXk sub-packages, i.e., subdirs 'texk/*',
107 # excluding 'texk/kpathsea'.
108 AC_DEFUN([KPSE_TEXK_PKGS], [dnl
109 m4_define([kpse_texk_pkgs], [dnl
110 web2c
111 afm2pl
112 bibtex-x
113 chktex
114 cjkutils
115 detex
116 dtl
117 dvi2tty
118 dvidvi
119 dviljk
120 dviout-util
121 dvipdfm-x
122 dvipng
123 dvipos
124 dvipsk
125 dvisvgm
126 gregorio
127 gsftopk
128 lcdf-typetools
129 makeindexk
130 makejvf
131 mendexk
132 musixtnt
133 ps2pk
134 psutils
135 seetexk
136 tex4htk
137 ttf2pk2
138 ttfdump
139 upmendex
140 xdvik
141 xdvipsk
142 texlive
143 ])]) # KPSE_TEXK_PKGS
144
145 # ------------------------------- #
146 # Loop over one of these lists. #
147 # ------------------------------- #
148
149 # KPSE_FOR_PKGS(LIST, ACTION)
150 # ---------------------------
151 # Run the shell code ACTION for each element Kpse_Pkg in kpse_LIST_pkgs,
152 # with Kpse_pkg a sanitized version of Kpse_Pkg for shell variables and
153 # Kpse_PKG a sanitized (upper case) version for make variables.
154 AC_DEFUN([KPSE_FOR_PKGS],
155 [AC_REQUIRE([KPSE_LIBS_PKGS])AC_REQUIRE([KPSE_UTILS_PKGS])AC_REQUIRE([KPSE_TEXK_PKGS])[]dnl
156 AC_FOREACH([Kpse_Pkg], kpse_$1_pkgs,
157 [m4_pushdef([Kpse_pkg], AS_TR_SH(Kpse_Pkg))[]dnl
158 m4_pushdef([Kpse_PKG], AS_TR_CPP(Kpse_Pkg))[]dnl
159 $2[]dnl
160 m4_popdef([Kpse_pkg])m4_popdef([Kpse_PKG])[]dnl
161 ])]) # KPSE_FOR_PKGS