diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-04-04 10:51:24 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-04-04 12:00:44 -0700 |
commit | 31193bbd13cd2807d8ccaa2ba5b072303d5425e7 (patch) | |
tree | c253dff5d25bab13efefecbe4fe622e9b08de85c /configure.ac | |
parent | a1b65e3de9e1b74f75c07f0513befa250e66268a (diff) | |
download | gzip-31193bbd13cd2807d8ccaa2ba5b072303d5425e7.tar.gz |
build: support --program-prefix etc.
Problem reported by Antonio Diaz Diaz via Dagobert Michelsen in:
https://bugs.gnu.org/16876
* Makefile.am (.in): Substitute for 'gzip', 'zdiff', 'zgrep'.
($(GZIP_TRANSFORMED), $(ZDIFF_TRANSFORMED), $(ZGREP_TRANSFORMED)):
New rules to build forwarding shell scripts, if needed.
Add these files to BUILT_SOURCES and MOSTLY_CLEANFILES if needed.
* configure.ac (GZIP_TRANSFORMED, ZDIFF_TRANSFORMED, ZGREP_TRANSFORMED):
New substituted vars.
(GZIP_IS_TRANSFORMED, ZDIFF_IS_TRANSFORMED, ZGREP_IS_TRANSFORMED):
New Automake conditions.
* gunzip.in, gzexe.in, zcat.in, zcmp.in, zdiff.in, zegrep.in:
* zfgrep.in, zforce.in, zgrep.in, zless.in, zmore.in, znew.in:
Quote possibly-transformed subcommand names.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d9c77da..1809d4a 100644 --- a/configure.ac +++ b/configure.ac @@ -278,6 +278,16 @@ else fi AC_SUBST([ASFLAGS_config]) +GZIP_TRANSFORMED=` echo gzip | sed "$program_transform_name"` +ZDIFF_TRANSFORMED=`echo zdiff | sed "$program_transform_name"` +ZGREP_TRANSFORMED=`echo zgrep | sed "$program_transform_name"` +AC_SUBST([GZIP_TRANSFORMED]) +AC_SUBST([ZDIFF_TRANSFORMED]) +AC_SUBST([ZGREP_TRANSFORMED]) +AM_CONDITIONAL([GZIP_IS_TRANSFORMED], [test "$GZIP_TRANSFORMED" != gzip]) +AM_CONDITIONAL([ZDIFF_IS_TRANSFORMED], [test "$ZDIFF_TRANSFORMED" != zdiff]) +AM_CONDITIONAL([ZGREP_IS_TRANSFORMED], [test "$ZGREP_TRANSFORMED" != zgrep]) + AC_C_CONST AC_CHECK_HEADERS_ONCE(fcntl.h limits.h memory.h time.h sys/sdt.h) AC_CHECK_FUNCS_ONCE([chown fchmod fchown lstat siginterrupt]) |