diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-02-22 11:09:16 -0500 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2022-01-24 09:33:20 -0500 |
commit | c48fdb81191c8b7c7c0dde6141b861b178a6a284 (patch) | |
tree | e3ce8a899112643dbc29f7f44d86db044e3238b4 /tests | |
parent | b0d5d2d3eb05cf765c44f0499a622a99319d629f (diff) | |
download | autoconf-c48fdb81191c8b7c7c0dde6141b861b178a6a284.tar.gz |
add new AC_PROG_AR helper
This mirrors the existing RANLIB and related toolchain macros that
autoconf already exports. Some projects assume `ar` is available
which isn't always safe, so provide a macro that probes the full
toolchain settings.
This also makes it easier to use AC_REQUIRE with the macro instead
of duplicating the AC_CHECK_TOOL call in projects.
* lib/autoconf/programs.m4 (AC_PROG_AR): New macro.
* doc/autoconf.texi: Document it.
* tests/local.at (_AT_CHECK_ENV): Allow $AR output variable.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/local.at | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/local.at b/tests/local.at index 4135ad9a..cf907ada 100644 --- a/tests/local.at +++ b/tests/local.at @@ -399,7 +399,7 @@ if test -f state-env.before && test -f state-env.after; then [GFC|F77_DUMMY_MAIN|f77_(case|underscore)], [FC(_DUMMY_MAIN|FLAGS|LIBS|FLAGS_[fF]|_MODEXT|_MODINC|_MODOUT|_DEFINE)?], [ALLOCA|GETLOADAVG_LIBS|KMEM_GROUP|NEED_SETGID|POW_LIB], - [AWK|LEX|LEXLIB|LEX_OUTPUT_ROOT|LN_S|M4|MKDIR_P|RANLIB|SET_MAKE|YACC], + [AWK|LEX|LEXLIB|LEX_OUTPUT_ROOT|LN_S|M4|MKDIR_P|AR|RANLIB|SET_MAKE|YACC], [GREP|[EF]GREP|SED], [[_@]|.[*@%:@?$].], [argv|ARGC|LINENO|BASH_ARGC|BASH_ARGV|OLDPWD|PIPESTATUS|RANDOM], |