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.
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
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
48 m4_define([kpse_texlibs_pkgs], [dnl
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
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
97 ])]) # KPSE_UTILS_PKGS
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
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
155 m4_popdef([Kpse_pkg])m4_popdef([Kpse_PKG])[]dnl