]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Port build procedure to AIX 7.1
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 18 Jul 2020 01:42:26 +0000 (18:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 18 Jul 2020 01:43:38 +0000 (18:43 -0700)
* lib/freeze.mk (MY_AUTOM4TE, build_libdir, m4f_dependencies):
Prefer ‘$(top_build_prefix)’ to ‘$(top_builddir)/’.
The difference matters on AIX 7.1, where ‘make’ doesn’t know that
bin/autom4te and ./bin/autom4te are the same file,
and gets confused about dependencies without this change.
‘$(top_build_prefix)bin/autom4te’ expands to ‘bin/automake’
whereas ‘$(top_builddir)/bin/autom4te’ expands to
‘./bin/automake’, and the former works where the latter doesn’t.

lib/freeze.mk

index f067cf134d50ed0346967407c1b500213557cb35..ee1d6fcd3735e5096651da3c659c5c67ea31513e 100644 (file)
@@ -31,8 +31,8 @@ AUTOM4TE_CFG = lib/autom4te.cfg
 # apply to us.
 MY_AUTOM4TE =                                                                  \
        autom4te_perllibdir='$(top_srcdir)'/lib                                 \
-       AUTOM4TE_CFG='$(AUTOM4TE_CFG)'         $(top_builddir)/bin/autom4te     \
-               -B '$(top_builddir)'/lib -B '$(top_srcdir)'/lib        # keep ` '
+       AUTOM4TE_CFG='$(AUTOM4TE_CFG)'         $(top_build_prefix)bin/autom4te  \
+               -B '$(top_build_prefix)'lib -B '$(top_srcdir)'/lib        # keep ` '
 
 # When processing the file with diversion disabled, there must be no
 # output but comments and empty lines.
@@ -55,9 +55,9 @@ MY_AUTOM4TE =                                                                 \
 # Some day we should explain to Automake how to use autom4te to compute
 # the dependencies...
 src_libdir   = $(top_srcdir)/lib
-build_libdir = $(top_builddir)/lib
+build_libdir = $(top_build_prefix)lib
 
-m4f_dependencies = $(top_builddir)/bin/autom4te $(AUTOM4TE_CFG)
+m4f_dependencies = $(top_build_prefix)bin/autom4te $(AUTOM4TE_CFG)
 
 m4sugar_m4f_dependencies =                     \
        $(m4f_dependencies)                     \