fix getsup (HH)
[luatex.git] / source / m4 / kpse-pkgs.m4
blob382a1d5be1e0a7a3e6ac5727ce298308858e89d9
1 # $Id: kpse-pkgs.m4 39962 2016-03-07 19:26:54Z karl $
2 # Private Autoconf macros for the TeX Live (TL) tree.
3 # Copyright 2016 Karl Berry <tex-live@tug.org>
4 # Copyright 2009-2015 Peter Breitenlohner <tex-live@tug.org>
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.
10 ## ------------------------------ ##
11 ## Define lists of sub-packages.  ##
12 ## ------------------------------ ##
14 # Hopefully these lists are defined here and nowhere else.
15 # Note: directories in these lists need not exist.
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 harfbuzz
29 icu
30 teckit
31 graphite2
32 zziplib
33 xpdf
34 poppler
35 mpfr
36 gmp
37 cairo
38 pixman
39 potrace
41 freetype2
42 libpng
43 libpaper
44 luajit
45 lua52
46 zlib
47 ])[]dnl
48 m4_define([kpse_texlibs_pkgs], [dnl
49 ptexenc
50 kpathsea
51 ])]) # KPSE_LIBS_PKGS
53 # KPSE_ALL_SYSTEM_FLAGS()
54 # -----------------------
55 # Generate flags for all potential system libraries available,
56 # only used at top-level.
57 AC_DEFUN([KPSE_ALL_SYSTEM_FLAGS], [dnl
58 AC_REQUIRE([KPSE_LIBS_PREPARE])[]dnl
59 AC_REQUIRE([KPSE_KPATHSEA_SYSTEM_FLAGS])[]dnl
60 AC_REQUIRE([KPSE_PTEXENC_SYSTEM_FLAGS])[]dnl
61 AC_REQUIRE([KPSE_ZLIB_SYSTEM_FLAGS])[]dnl
62 AC_REQUIRE([KPSE_LIBPAPER_SYSTEM_FLAGS])[]dnl
63 AC_REQUIRE([KPSE_LIBPNG_SYSTEM_FLAGS])[]dnl
64 AC_REQUIRE([KPSE_FREETYPE2_SYSTEM_FLAGS])[]dnl
65 AC_REQUIRE([KPSE_GD_SYSTEM_FLAGS])[]dnl
66 AC_REQUIRE([KPSE_POTRACE_SYSTEM_FLAGS])[]dnl
67 AC_REQUIRE([KPSE_PIXMAN_SYSTEM_FLAGS])[]dnl
68 AC_REQUIRE([KPSE_CAIRO_SYSTEM_FLAGS])[]dnl
69 AC_REQUIRE([KPSE_GMP_SYSTEM_FLAGS])[]dnl
70 AC_REQUIRE([KPSE_MPFR_SYSTEM_FLAGS])[]dnl
71 AC_REQUIRE([KPSE_POPPLER_SYSTEM_FLAGS])[]dnl
72 AC_REQUIRE([KPSE_XPDF_SYSTEM_FLAGS])[]dnl
73 AC_REQUIRE([KPSE_ZZIPLIB_SYSTEM_FLAGS])[]dnl
74 AC_REQUIRE([KPSE_GRAPHITE2_SYSTEM_FLAGS])[]dnl
75 AC_REQUIRE([KPSE_TECKIT_SYSTEM_FLAGS])[]dnl
76 AC_REQUIRE([KPSE_ICU_SYSTEM_FLAGS])[]dnl
77 AC_REQUIRE([KPSE_HARFBUZZ_SYSTEM_FLAGS])[]dnl
78 ]) # KPSE_ALL_SYSTEM_FLAGS
80 # KPSE_UTILS_PKGS()
81 # -----------------
82 # Define the list of utility sub-packages, i.e., subdirs 'utils/*'.
83 AC_DEFUN([KPSE_UTILS_PKGS], [dnl
84 m4_define([kpse_utils_pkgs], [dnl
85 autosp
86 devnag
87 lacheck
88 m-tx
89 pmx
90 ps2eps
91 t1utils
92 texdoctk
93 tpic2pdftex
94 vlna
95 xindy
96 xpdfopen
97 ])]) # KPSE_UTILS_PKGS
99 # KPSE_TEXK_PKGS()
100 # ----------------
101 # Define the list of TeXk sub-packages, i.e., subdirs 'texk/*',
102 # excluding 'texk/kpathsea'.
103 AC_DEFUN([KPSE_TEXK_PKGS], [dnl
104 m4_define([kpse_texk_pkgs], [dnl
105 web2c
106 afm2pl
107 bibtex-x
108 chktex
109 cjkutils
110 detex
112 dvi2tty
113 dvidvi
114 dviljk
115 dvipdfm-x
116 dvipng
117 dvipos
118 dvipsk
119 dvisvgm
120 gregorio
121 gsftopk
122 lcdf-typetools
123 makeindexk
124 makejvf
125 mendexk
126 musixtnt
127 ps2pk
128 psutils
129 seetexk
130 tex4htk
131 ttf2pk2
132 ttfdump
133 upmendex
134 xdvik
135 texlive
136 ])]) # KPSE_TEXK_PKGS
140 ## ------------------------------- ##
141 ##  Loop over one of these lists.  ##
142 ## ------------------------------- ##
144 # KPSE_FOR_PKGS(LIST, ACTION)
145 # ---------------------------
146 # Run the shell code ACTION for each element Kpse_Pkg in kpse_LIST_pkgs,
147 # with Kpse_pkg a sanitized version of Kpse_Pkg for shell variables and
148 # Kpse_PKG a sanitized (upper case) version for make variables.
149 AC_DEFUN([KPSE_FOR_PKGS],
150 [AC_REQUIRE([KPSE_LIBS_PKGS])AC_REQUIRE([KPSE_UTILS_PKGS])AC_REQUIRE([KPSE_TEXK_PKGS])[]dnl
151 AC_FOREACH([Kpse_Pkg], kpse_$1_pkgs,
152 [m4_pushdef([Kpse_pkg], AS_TR_SH(Kpse_Pkg))[]dnl
153 m4_pushdef([Kpse_PKG], AS_TR_CPP(Kpse_Pkg))[]dnl
154 $2[]dnl
155 m4_popdef([Kpse_pkg])m4_popdef([Kpse_PKG])[]dnl
156 ])]) # KPSE_FOR_PKGS