1 # Private macros for the TeX Live (TL) tree.
2 # Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org>
4 # This file is free software; the copyright holder
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
8 ## ------------------------------ ##
9 ## Define lists of sub-packages. ##
10 ## ------------------------------ ##
12 # Hopefully these lists are defined here and nowhere else.
13 # Note: directories in these lists need not exist.
17 # Define two lists of library sub-packages:
18 # generic libraries, i.e., subdirs 'libs/*', that can be used by
19 # utility and TeXk sub-packages
21 # TeX specific libraries, i.e., subdirs 'texk/*', that can only
22 # be used by TeXk sub-packages and can't use generic libraries
23 # Each library must precede required other libraries (if any).
24 AC_DEFUN([KPSE_LIBS_PKGS], [dnl
25 m4_define([kpse_libs_pkgs], [dnl
46 m4_define([kpse_texlibs_pkgs], [dnl
51 # KPSE_ALL_SYSTEM_FLAGS()
52 # -----------------------
53 # Generate flags for all potential system libraries available,
54 # only used at top-level.
55 AC_DEFUN([KPSE_ALL_SYSTEM_FLAGS], [dnl
56 AC_REQUIRE([KPSE_LIBS_PREPARE])[]dnl
57 AC_REQUIRE([KPSE_KPATHSEA_SYSTEM_FLAGS])[]dnl
58 AC_REQUIRE([KPSE_PTEXENC_SYSTEM_FLAGS])[]dnl
59 AC_REQUIRE([KPSE_ZLIB_SYSTEM_FLAGS])[]dnl
60 AC_REQUIRE([KPSE_LIBPAPER_SYSTEM_FLAGS])[]dnl
61 AC_REQUIRE([KPSE_LIBPNG_SYSTEM_FLAGS])[]dnl
62 AC_REQUIRE([KPSE_FREETYPE2_SYSTEM_FLAGS])[]dnl
63 AC_REQUIRE([KPSE_GD_SYSTEM_FLAGS])[]dnl
64 AC_REQUIRE([KPSE_POTRACE_SYSTEM_FLAGS])[]dnl
65 AC_REQUIRE([KPSE_PIXMAN_SYSTEM_FLAGS])[]dnl
66 AC_REQUIRE([KPSE_CAIRO_SYSTEM_FLAGS])[]dnl
67 AC_REQUIRE([KPSE_GMP_SYSTEM_FLAGS])[]dnl
68 AC_REQUIRE([KPSE_MPFR_SYSTEM_FLAGS])[]dnl
69 AC_REQUIRE([KPSE_POPPLER_SYSTEM_FLAGS])[]dnl
70 AC_REQUIRE([KPSE_XPDF_SYSTEM_FLAGS])[]dnl
71 AC_REQUIRE([KPSE_ZZIPLIB_SYSTEM_FLAGS])[]dnl
72 AC_REQUIRE([KPSE_GRAPHITE2_SYSTEM_FLAGS])[]dnl
73 AC_REQUIRE([KPSE_TECKIT_SYSTEM_FLAGS])[]dnl
74 AC_REQUIRE([KPSE_ICU_SYSTEM_FLAGS])[]dnl
75 AC_REQUIRE([KPSE_HARFBUZZ_SYSTEM_FLAGS])[]dnl
76 ]) # KPSE_ALL_SYSTEM_FLAGS
80 # Define the list of utility sub-packages, i.e., subdirs 'utils/*'.
81 AC_DEFUN([KPSE_UTILS_PKGS], [dnl
82 m4_define([kpse_utils_pkgs], [dnl
94 ])]) # KPSE_UTILS_PKGS
98 # Define the list of TeXk sub-packages, i.e., subdirs 'texk/*',
99 # excluding 'texk/kpathsea'.
100 AC_DEFUN([KPSE_TEXK_PKGS], [dnl
101 m4_define([kpse_texk_pkgs], [dnl
131 ])]) # KPSE_TEXK_PKGS
135 ## ------------------------------- ##
136 ## Loop over one of these lists. ##
137 ## ------------------------------- ##
139 # KPSE_FOR_PKGS(LIST, ACTION)
140 # ---------------------------
141 # Run the shell code ACTION for each element Kpse_Pkg in kpse_LIST_pkgs,
142 # with Kpse_pkg a sanitized version of Kpse_Pkg for shell variables and
143 # Kpse_PKG a sanitized (upper case) version for make variables.
144 AC_DEFUN([KPSE_FOR_PKGS],
145 [AC_REQUIRE([KPSE_LIBS_PKGS])AC_REQUIRE([KPSE_UTILS_PKGS])AC_REQUIRE([KPSE_TEXK_PKGS])[]dnl
146 AC_FOREACH([Kpse_Pkg], kpse_$1_pkgs,
147 [m4_pushdef([Kpse_pkg], AS_TR_SH(Kpse_Pkg))[]dnl
148 m4_pushdef([Kpse_PKG], AS_TR_CPP(Kpse_Pkg))[]dnl
150 m4_popdef([Kpse_pkg])m4_popdef([Kpse_PKG])[]dnl