# Some globals.
-# We do not operate in threaded mode.
-$perl_threads = 0;
-
+ # Support AC_CONFIG_MACRO_DIRS also with older autoconf.
+ # FIXME: To be removed in Automake 1.14, once we can assume autoconf
+ # 2.70 or later.
+ # FIXME: keep in sync with 'internal/ac-config-macro-dirs.m4'.
+ my $ac_config_macro_dirs_fallback =
+ 'm4_ifndef([AC_CONFIG_MACRO_DIRS], [' .
+ 'm4_defun([_AM_CONFIG_MACRO_DIRS], [])' .
+ 'm4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])' .
+ '])';
+
# Include paths for searching macros. We search macros in this order:
# user-supplied directories first, then the directory containing the
# automake macros, and finally the system-wide directories for
BEGIN
{
- my $perllibdir = $ENV{'perllibdir'} || '@datadir@/@PACKAGE@-@APIVERSION@';
- unshift @INC, (split '@PATH_SEPARATOR@', $perllibdir);
+ @Automake::perl_libdirs = ('@datadir@/@PACKAGE@-@APIVERSION@')
+ unless @Automake::perl_libdirs;
+ unshift @INC, @Automake::perl_libdirs;
-
- # Override SHELL. This is required on DJGPP so that system() uses
- # bash, not COMMAND.COM which doesn't quote arguments properly.
- # Other systems aren't expected to use $SHELL when Automake
- # runs, but it should be safe to drop the "if DJGPP" guard if
- # it turns up other systems need the same thing. After all,
- # if SHELL is used, ./configure's SHELL is always better than
- # the user's SHELL (which may be something like tcsh).
- $ENV{'SHELL'} = '@SHELL@' if exists $ENV{'DJDIR'};
}
use Class::Struct ();
AC_REQUIRE_AUX_FILE => 1,
AC_SUBST_TRACE => 1,
AM_AUTOMAKE_VERSION => 1,
- AM_PROG_MKDIR_P => 0, # FIXME: to be removed in 1.14
AM_CONDITIONAL => 2,
- _AM_EXTRA_RECURSIVE_TARGETS => 1,
+ AM_EXTRA_RECURSIVE_TARGETS => 1,
AM_GNU_GETTEXT => 0,
AM_GNU_GETTEXT_INTL_SUBDIR => 0,
AM_INIT_AUTOMAKE => 0,
/^$am_beta_version_rx$/ { print \"beta version\"; exit(0); }
{ print \"development snapshot\"; }"]`
- test "$am_release_type" = stable || cat <<EOF
+ # '$silent' is set to yes if configure is passed the '--quiet' option.
+ test "$am_release_type" = stable || test "$silent" = yes || cat <<EOF
-WARNING: You are about to use a $am_release_type of automake.
+WARNING: You are about to use a $am_release_type of Automake-NG.
WARNING: It might easily suffer from new bugs or regressions.
WARNING: You are strongly advised not to use it in production code.
.PHONY uninstall-am: uninstall-%DIR%PYTHON
uninstall-%DIR%PYTHON:
@$(NORMAL_UNINSTALL)
- @list='$(%DIR%_PYTHON)'; test -n "$(%NDIR%dir)" || list=; \
-?BASE? py_files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
-?!BASE? $(am__nobase_strip_setup); py_files=`$(am__nobase_strip)`; \
- test -n "$$py_files" || exit 0; \
- dir='$(DESTDIR)$(%NDIR%dir)'; \
-## Also remove the .pyc and .pyo byte compiled versions.
-## This is somewhat tricky, because for newer pythons we have to take
-## PEP-3147 into account.
- pyc_files=`echo "$$py_files" | sed 's|$$|c|'`; \
- pyo_files=`echo "$$py_files" | sed 's|$$|o|'`; \
- py_files_pep3147=`echo "$$py_files" | $(am__pep3147_tweak)`; \
- echo "$$py_files_pep3147";\
- pyc_files_pep3147=`echo "$$py_files_pep3147" | sed 's|$$|c|'`; \
- pyo_files_pep3147=`echo "$$py_files_pep3147" | sed 's|$$|o|'`; \
- st=0; \
- for files in \
- "$$py_files" \
- "$$pyc_files" \
- "$$pyo_files" \
-## Installation of '.py' files is not influenced by PEP-3147, so it
-## is correct *not* to have $pyfiles_pep3147 here.
- "$$pyc_files_pep3147" \
- "$$pyo_files_pep3147" \
- ; do \
- $(am__uninstall_files_from_dir) || st=$$?; \
- done; \
- exit $$st
+ $(call am.uninst.cmd,$(%NDIR%dir), \
- $(foreach i,\
- ?BASE? $(notdir $(%DIR%_PYTHON)), \
- ?!BASE? $(patsubst $(srcdir)/%,%,$(%DIR%_PYTHON)), \
- ## Also remove the '.pyc' and '.py'o byte-compiled versions.
- $(i) $(i)c $(i)o))
++ $(strip $(foreach i, $(patsubst %.py,%, \
++?BASE? $(notdir $(%DIR%_PYTHON))), \
++?!BASE? $(patsubst $(srcdir)/%,%,$(%DIR%_PYTHON))), \
++ $i.py \
++## Also remove the '.pyc' and '.pyo' byte-compiled versions, catering
++## to PEP-3147. Note that installation of '.py' files is *not*
++## influenced by that PEP.
++ $(foreach e, pyc pyo, \
++ $i.$e $(dir $i)__pycache__/$(notdir $i).*.$e))))
endif %?INSTALL%
## These check avoids accidental configure substitutions in the source.
## There are exactly 8 lines that should be modified from automake.in to
- ## automake, and 10 lines that should be modified from aclocal.in to
+ ## automake, and 9 lines that should be modified from aclocal.in to
## aclocal.
--automake_diff_no = 8
- aclocal_diff_no = 10
++automake_diff_no = 7
+ aclocal_diff_no = 9
sc_diff_automake sc_diff_aclocal: sc_diff_% :
@set +e; tmp=$*-diffs.tmp; \
diff -u $(srcdir)/$*.in $* > $$tmp; test $$? -eq 1 || exit 1; \
# Overriding pythondir and pyexecdir at make time should be enough.
./configure --prefix="$cwd/bad-prefix"
-pythondir=$py_site pyexecdir=$py_site
-export pythondir pyexecdir
-check_install -e
+
- xMAKE () { $MAKE pythondir="$py_site" pyexecdir="$py_site" "$@"; }
-
- export pythondir pyexecdir
- xMAKE install
++check_install pythondir="$py_site" pyexecdir="$py_site"
test ! -e bad-prefix
- xMAKE test-install
- xMAKE test-run
- xMAKE uninstall
- xMAKE test-uninstall
-$MAKE test-run
-check_uninstall -e
--unset pythondir pyexecdir
++$MAKE test-run pythondir="$py_site" pyexecdir="$py_site"
++check_uninstall pythondir="$py_site" pyexecdir="$py_site"
# Also check that the distribution is self-contained, for completeness.
$MAKE distcheck