| 1 |
$Id: README 59748 2021-06-29 01:19:16Z karl $ |
| 2 |
Copyright 2009-2021 Karl Berry <[email protected]> |
| 3 |
Copyright 2009-2012 Peter Breitenlohner <[email protected]> |
| 4 |
You may freely use, modify and/or distribute this file. |
| 5 |
|
| 6 |
This m4/ directory is the central repository for Autoconf macros needed |
| 7 |
to build the TeX Live (TL) tree. They are incorporated into the |
| 8 |
configure scripts. |
| 9 |
|
| 10 |
(1) Public macros such as libtool.m4 used to build the libraries and |
| 11 |
programs in the TL subdirectories libs/*/, utils/*/, and texk/*/ that |
| 12 |
are owned by the TL tree, i.e., either not maintained independently or |
| 13 |
with a proxy Makefile.am using an (essentially) unmodified source tree, |
| 14 |
bypassing the original/upstream build system, whatever it may be. |
| 15 |
|
| 16 |
Note: the files libtool.m4 and ../build-aux/ltmain.sh must be kept in sync. |
| 17 |
|
| 18 |
(2) `Public' macros for the TL build system and for the TL libraries in the |
| 19 |
subdirectories libs/*/, texk/kpathsea/, and texk/ptexenc/, used to configure |
| 20 |
programs and other libraries requiring these TL libraries. The macros are |
| 21 |
designed with the aim that programs maintained independently can be built as |
| 22 |
part of the TL tree or without TL (using installed versions of the required |
| 23 |
libraries), ideally using the same unmodified sources. |
| 24 |
|
| 25 |
(3) `Private' macros for the TL infrastructure, only used in directories |
| 26 |
owned by the TL tree. |
| 27 |
|
| 28 |
kpse-pkgs.m4: defines lists of subdirectories libs/Lib/, utils/Util/, and |
| 29 |
tex/Prog/ with libraries and programs that can be built as part of |
| 30 |
the TL tree. |
| 31 |
|
| 32 |
kpse-setup.m4: macros that walk through these lists to provide configure |
| 33 |
options. They depend on configure fragments */*/ac/withenable.ac |
| 34 |
defining the dependencies between these libraries and programs. |
| 35 |
|
| 36 |
|
| 37 |
--- See also the sibling top-level am/ directory, which contains |
| 38 |
fragments for our Makefile.am files. |
| 39 |
|
| 40 |
|
| 41 |
---- "Obsolete" AC_* macros in Autoconf. |
| 42 |
|
| 43 |
In Autoconf 2.70, many commonly used AC_ macros were designated obsolete |
| 44 |
(though they still work fine), and now their use generates warnings. In |
| 45 |
the case of TeX Live, many hundreds of warnings, obscuring any real |
| 46 |
diagnostics. Therefore our top-level reautoconf script now passes |
| 47 |
-Wno-obsolete to autoreconf in order to eliminate the "obsolete" |
| 48 |
warnings (so glad this option is provided). |
| 49 |
|
| 50 |
To undo this and see the warnings, our reautoconf can be given the option |
| 51 |
--warn-obsolete. One reason to do this would be to work on updating our |
| 52 |
configure.ac/etc. source files (an onerous task); and communicate |
| 53 |
changes to upstream (even more onerously), who probably won't want to |
| 54 |
require the latest Autoconf anyway (though we can). All in all, it feels |
| 55 |
like a tremendous amount of time to spend merely to end up in the same |
| 56 |
place, with no discernible benefit. Thus there is no particular |
| 57 |
timeframe, or, apparently, need, for fixing the warnings. |
| 58 |
|
| 59 |
Most of the obsolete macros are straightforward to replace with the new |
| 60 |
"approved" macros, and described in the Autoconf manual. In a few cases |
| 61 |
(marked with "caveat" in the list below), however, the replacement is |
| 62 |
not obvious or does not have exactly the same behavior, and therefore |
| 63 |
requires further checking. |
| 64 |
|
| 65 |
The following is a terse list of the deprecated macros used in TL |
| 66 |
(typically many times each), and the replacement given in the Autoconf |
| 67 |
manual -- which needs to be referenced to do any actual work in this |
| 68 |
area; these are just hints about what's going on. |
| 69 |
|
| 70 |
AC_ERROR - replaced by AC_MSG_ERROR |
| 71 |
AC_FOREACH - alias of m4_foreach_w |
| 72 |
AC_HEADER_STDC - This macro is obsolescent. Its sole effect ... |
| 73 |
AC_HELP_STRING - replaced by AS_HELP_STRING |
| 74 |
AC_LANG_C - Same as AC_LANG([C]) |
| 75 |
AC_LANG_CPLUSPLUS - Same as AC_LANG([C++]) |
| 76 |
AC_PROG_CC_C99 - now done by AC_PROG_CC |
| 77 |
AC_TRY_COMPILE - same as AC_COMPILE_IFELSE(... |
| 78 |
AC_TRY_LINK - Same as: AC_LINK_IFELSE(... |
| 79 |
AC_TRY_RUN - same as AC_RUN_IFELSE(... |
| 80 |
AC_TYPE_SIGNAL - just use void |
| 81 |
AC_UNISTD_H - same as AC_CHECK_HEADERS([unistd.h]) |
| 82 |
|
| 83 |
AC_HEADER_TIME - (caveat) although it does still define TIME_WITH_SYS_TIME |
| 84 |
|
| 85 |
AC_PROG_LEX - (caveat) still does this if neither the yywrap nor |
| 86 |
the noyywrap option is given. |
| 87 |
|
| 88 |
AC_FUNC_VFORK - (caveat) does not appear in manual (except in index). |
| 89 |
Same as AC_FUNC_FORK? |