ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
(_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
builddir, buildpath, top_builddir, and top_buildpath.
(_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
the current directory.
* lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
variables *before* changing the current directory.
Skip nonexistent dirs.
* doc/autoconf.texi (Preset Output Variables): Document these
variables.
* lib/autotest/general.m4: Do not reset AT_victims.
Don't compute at_srcdir nor at_top_srcdir.
* tests/tools.at: Hence use top_srcdir.
* tests/Makefile.am, tests/autoconf, tests/autoheader,
* tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
Remove.
* tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
* tests/wrapsh.in, tests/autoupdate.in: New.
* tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
* configure.ac: Build the position independent wrappers.
* man/Makefile.am: Now that test wrappers are position
independent, use them and drop dark envvar magic.
+2001-09-23 Akim Demaille <akim@epita.fr>
+
+ * lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
+ ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
+ (_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
+ builddir, buildpath, top_builddir, and top_buildpath.
+ (_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
+ the current directory.
+ * lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
+ variables *before* changing the current directory.
+ Skip nonexistent dirs.
+ * doc/autoconf.texi (Preset Output Variables): Document these
+ variables.
+
+ * lib/autotest/general.m4: Do not reset AT_victims.
+ Don't compute at_srcdir nor at_top_srcdir.
+
+ * tests/tools.at: Hence use top_srcdir.
+
+ * tests/Makefile.am, tests/autoconf, tests/autoheader,
+ * tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
+ Remove.
+ * tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
+ * tests/wrapsh.in, tests/autoupdate.in: New.
+ * tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
+ * configure.ac: Build the position independent wrappers.
+
+ * man/Makefile.am: Now that test wrappers are position
+ independent, use them and drop dark envvar magic.
+
2001-09-23 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi (Common Shell Constructs): Rename as...
# Automake is unable to look into our special aclocal.m4...
AMTAR = @AMTAR@
-
+AWK = @AWK@
## -------------------- ##
## Forwarding targets. ##
# Automake is unable to look into our special aclocal.m4...
AMTAR = @AMTAR@
+AWK = @AWK@
pkgdata_DATA = INSTALL
MAKEINFO = @MAKEINFO@ --no-headers --no-validate --no-split
fi
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
mkdir $(distdir)
+ $(mkinstalldirs) $(distdir)/tests
@for file in $(DISTFILES); do \
if test -f $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
** Documentation
- AC_INIT
Argument requirements, output variables, defined macros.
-- Autotest
- First sketch of its documentation.
+- M4sugar, M4sh, Autotest
+ First sketch.
- Double quoting macros
AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and AC_TRY_RUN.
- Licensing
The Autoconf manual is now distributed under the terms of the GNU FDL.
-** $LINENO
- Is now used instead of hard coded line numbers.
+** configure
+- $LINENO
+ Now used instead of hard coded line numbers.
This eases the comparison of `configure's, and diminishes the
pressure over control version archives.
Automatic replacement for shells that don't support this feature.
+- New output variables
+ @builddir@, @top_builddir@, @srcpath@, @top_srcpath@, @buildpath@,
+ @top_buildpath@.
** autom4te
New executable, used by the Autoconf suite to cache and speed up
** Generic macros
- AC_CONFIG_COMMANDS, HEADERS, FILES, LINKS.
- Provide the user with srcdir, ac_top_srcdir, ac_top_builddir, ac_srcdir.
+ Provide the user with srcdir, ac_srcdir, ac_top_srcdir, ac_builddir,
+ ac_top_builddir, ac_srcpath, ac_top_srcpath, ac_buildpath,
+ ac_top_buildpath.
+
\f
* Major changes in Autoconf 2.52
** Documentation
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed
-test x"${MISSING+set}" = xset ||
- MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+
+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
am_missing_run="$MISSING --run "
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
fi
-# expand $ac_aux_dir to an absolute path
-am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
-
for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
rmdir .deps 2>/dev/null
# test to see if srcdir already configured
-if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
+if test "`cd $srcdir && pwd`" != "`pwd`" &&
test -f $srcdir/config.status; then
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
# the ones we care about.
-# Autoconf 2.50 always computes EXEEXT. However we need to be
-# compatible with 2.13, for now. So we always define EXEEXT, but we
-# don't compute it.
-
-# Similar for OBJEXT -- only we only use OBJEXT if the user actually
-# requests that it be used. This is a bit dumb.
-: ${OBJEXT=o}
-
# Some tools Automake needs.
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
# We need awk for the "check" target. The system "awk" is bad on
# some platforms.
-# Initialize the test suite.
-# Some of our bins are location independant, e.g., ifnames.
-# We don't need wrappers for them.
+# Initialize the test suite and build position independent wrappers.
ac_config_commands="$ac_config_commands tests/package.m4"
ac_config_commands="$ac_config_commands tests/atconfig"
fi
+ac_config_files="$ac_config_files tests/autoconf:tests/wrapsh.in"
+
+ac_config_files="$ac_config_files tests/autoheader:tests/wrappl.in"
+
+ac_config_files="$ac_config_files tests/autom4te"
+
+ac_config_files="$ac_config_files tests/autoreconf"
+
+ac_config_files="$ac_config_files tests/autoscan:tests/wrappl.in"
+
+ac_config_files="$ac_config_files tests/autoupdate"
+
+ac_config_files="$ac_config_files tests/ifnames:tests/wrappl.in"
+
# Extract the first word of "expr", so it can be a program name with args.
set dummy expr; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
case "$ac_config_target" in
# Handling of arguments.
"tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
+ "tests/autoconf" ) CONFIG_FILES="$CONFIG_FILES tests/autoconf:tests/wrapsh.in" ;;
+ "tests/autoheader" ) CONFIG_FILES="$CONFIG_FILES tests/autoheader:tests/wrappl.in" ;;
+ "tests/autom4te" ) CONFIG_FILES="$CONFIG_FILES tests/autom4te" ;;
+ "tests/autoreconf" ) CONFIG_FILES="$CONFIG_FILES tests/autoreconf" ;;
+ "tests/autoscan" ) CONFIG_FILES="$CONFIG_FILES tests/autoscan:tests/wrappl.in" ;;
+ "tests/autoupdate" ) CONFIG_FILES="$CONFIG_FILES tests/autoupdate" ;;
+ "tests/ifnames" ) CONFIG_FILES="$CONFIG_FILES tests/ifnames:tests/wrappl.in" ;;
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
"man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
s,@PACKAGE@,$PACKAGE,;t t
s,@VERSION@,$VERSION,;t t
-s,@EXEEXT@,$EXEEXT,;t t
-s,@OBJEXT@,$OBJEXT,;t t
s,@ACLOCAL@,$ACLOCAL,;t t
s,@AUTOCONF@,$AUTOCONF,;t t
s,@AUTOMAKE@,$AUTOMAKE,;t t
rm -f $tmp/out
fi
+ # Run the commands associated with the file.
+ case $ac_file in
+ tests/autoconf ) chmod +x tests/autoconf ;;
+ tests/autoheader ) chmod +x tests/autoheader ;;
+ tests/autom4te ) chmod +x tests/autom4te ;;
+ tests/autoreconf ) chmod +x tests/autoreconf ;;
+ tests/autoscan ) chmod +x tests/autoscan ;;
+ tests/autoupdate ) chmod +x tests/autoupdate ;;
+ tests/ifnames ) chmod +x tests/ifnames ;;
+ esac
done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
top_srcdir='$ac_top_srcdir'
top_builddir='$ac_top_builddir'
-AUTOTEST_PATH='tests:bin'
+AUTOTEST_PATH='tests'
SHELL=\${CONFIG_SHELL-'$SHELL'}
ATEOF
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE(autoconf, 2.52e)
-# Initialize the test suite.
-# Some of our bins are location independant, e.g., ifnames.
-# We don't need wrappers for them.
-AC_CONFIG_TESTDIR(tests, tests:bin)
+# Initialize the test suite and build position independent wrappers.
+AC_CONFIG_TESTDIR(tests)
+AC_CONFIG_FILES([tests/autoconf:tests/wrapsh.in],
+ [chmod +x tests/autoconf])
+AC_CONFIG_FILES([tests/autoheader:tests/wrappl.in],
+ [chmod +x tests/autoheader])
+AC_CONFIG_FILES([tests/autom4te],
+ [chmod +x tests/autom4te])
+AC_CONFIG_FILES([tests/autoreconf],
+ [chmod +x tests/autoreconf])
+AC_CONFIG_FILES([tests/autoscan:tests/wrappl.in],
+ [chmod +x tests/autoscan])
+AC_CONFIG_FILES([tests/autoupdate],
+ [chmod +x tests/autoupdate])
+AC_CONFIG_FILES([tests/ifnames:tests/wrappl.in],
+ [chmod +x tests/ifnames])
AC_PATH_PROG(EXPR, expr)
# We use a path for GNU m4 so even if users have another m4 first in
programs to test for C, C++ and Fortran 77 features.
@end defvar
+@defvar builddir
+@ovindex builddir
+Rigorously equal to @samp{.}. Added for symmetry only.
+@end defvar
+
+@defvar buildpath
+@ovindex buildpath
+Absolute path of @code{builddir}.
+@end defvar
+
+@defvar top_builddir
+@ovindex top_builddir
+The relative path to the top-level of the current build tree. In the
+top-level directory, this is the same as @code{srcbuild}.
+@end defvar
+
+@defvar top_buildpath
+@ovindex top_buildpath
+Absolute path of @code{top_builddir}.
+@end defvar
+
@defvar srcdir
@ovindex srcdir
-The directory that contains the source code for that @file{Makefile}.
+The relative path to the directory that contains the source code for
+that @file{Makefile}.
+@end defvar
+
+@defvar srcpath
+@ovindex srcpath
+Absolute path of @code{srcdir}.
@end defvar
@defvar top_srcdir
@ovindex top_srcdir
-The top-level source code directory for the package. In the top-level
-directory, this is the same as @code{srcdir}.
+The relative path to the top-level source code directory for the
+package. In the top-level directory, this is the same as @code{srcdir}.
+@end defvar
+
+@defvar top_srcpath
+@ovindex top_srcpath
+Absolute path of @code{top_srcdir}.
@end defvar
@node Installation Directory Variables
@%:@ Copyright 2000, 2001 Free Software Foundation, Inc.
at_testdir='$1'
+buildpath='$ac_buildpath'
srcdir='$ac_srcdir'
+srcpath='$ac_srcpath'
top_srcdir='$ac_top_srcdir'
+top_srcpath='$ac_top_srcpath'
top_builddir='$ac_top_builddir'
+top_buildpath='$ac_top_buildpath'
AUTOTEST_PATH='m4_default([$2], [$1])'
# If there are subdirs, report their specific --help.
ac_popdir=`pwd`
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
- cd $ac_dir
+ test -d $ac_dir || continue
_AC_SRCPATHS(["$ac_dir"])
+ cd $ac_dir
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_srcdir/configure.gnu; then
echo
# - `$srcdir' is `top-build -> top-src'
#
# Ouputs:
+# - `ac_builddir' is `.', for symmetry only.
# - `ac_top_builddir' is `build -> top_build'.
# If not empty, has a trailing slash.
# - `ac_srcdir' is `build -> src'.
-# - `ac_top_srcdir' is `build -> top-src'
+# - `ac_top_srcdir' is `build -> top-src'.
+#
+# and `ac_buildpath' etc., the absolute paths.
m4_define([_AC_SRCPATHS],
-[if test $1 != .; then
+[ac_builddir=.
+
+if test $1 != .; then
ac_dir_suffix=/`echo $1 | sed 's,^\.[[\\/]],,'`
# A "../" for each directory in $ac_dir_suffix.
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[[^\\/]]*,../,g'`
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
+# Don't blindly perform a `cd $1/$ac_foo && pwd` since $ac_foo can be
+# absolute.
+ac_buildpath=`cd $1 && cd $ac_builddir && pwd`
+ac_top_buildpath=`cd $1 && cd $ac_top_builddir && pwd`
+ac_srcpath=`cd $1 && cd $ac_srcdir && pwd`
+ac_top_srcpath=`cd $1 && cd $ac_top_srcdir && pwd`
])# _AC_SRCPATHS
[/@[a-zA-Z_][a-zA-Z_0-9]*@/!b]
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$ac_srcdir,;t t
+s,@srcpath@,$ac_srcpath,;t t
s,@top_srcdir@,$ac_top_srcdir,;t t
+s,@top_srcpath@,$ac_top_srcpath,;t t
+s,@builddir@,$ac_builddir,;t t
+s,@buildpath@,$ac_buildpath,;t t
+s,@top_builddir@,$ac_top_builddir,;t t
+s,@top_buildpath@,$ac_top_buildpath,;t t
AC_PROVIDE_IFELSE([AC_PROG_INSTALL], [s,@INSTALL@,$ac_INSTALL,;t t
])dnl
dnl The parens around the eval prevent an "illegal io" in Ultrix sh.
# in subdir configurations.
ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
+ ac_popdir=`pwd`
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
# Do not complain, so a configure script can configure whichever
AC_MSG_NOTICE([configuring in $ac_dir])
AS_MKDIR_P(["$ac_dir"])
+ _AC_SRCPATHS(["$ac_dir"])
- ac_popdir=`pwd`
cd $ac_dir
- _AC_SRCPATHS(["$ac_dir"])
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_srcdir/configure.gnu; then
m4_define([AT_ordinal], 0)
m4_define([AT_banner_ordinal], 0)
m4_define([AT_data_files], [stdout expout at-* stderr experr])
-m4_define([AT_victims], [])
m4_divert_text([BINSH], [@%:@! /bin/sh])
m4_divert_push([DEFAULT])dnl
. ./$at_file || AS_ERROR([invalid content: $at_file])
done
-AUTOTEST_PATH=`echo $AUTOTEST_PATH |tr ':' $PATH_SEPARATOR`
-
-# Use absolute file notations, as the test might change directories.
-at_srcdir=`cd "$srcdir" && pwd`
-at_top_srcdir=`cd "$top_srcdir" && pwd`
+AUTOTEST_PATH=`echo $AUTOTEST_PATH | tr ':' $PATH_SEPARATOR`
# Not all shells have the 'times' builtin; the subshell is needed to make
# sure we discard the 'times: not found' message from the shell.
.x.1:
echo "Updating man page $@"
- PATH="$(top_builddir)/bin@PATH_SEPARATOR@$(top_srcdir)/config@PATH_SEPARATOR@$$PATH"; \
+ PATH="$(top_builddir)/tests@PATH_SEPARATOR@$(top_srcdir)/config@PATH_SEPARATOR@$$PATH"; \
export PATH; \
- autom4te_perllibdir=$(top_srcdir)/lib; \
- export autom4te_perllibdir; \
- AUTOM4TE_CFG=$(top_srcdir)/lib/autom4te.cfg; \
- export AUTOM4TE_CFG; \
$(HELP2MAN) \
--include=$(srcdir)/$*.x \
--include=$(srcdir)/common.x \
.x.1:
echo "Updating man page $@"
- PATH="$(top_builddir)/bin@PATH_SEPARATOR@$(top_srcdir)/config@PATH_SEPARATOR@$$PATH"; \
+ PATH="$(top_builddir)/tests@PATH_SEPARATOR@$(top_srcdir)/config@PATH_SEPARATOR@$$PATH"; \
export PATH; \
- autom4te_perllibdir=$(top_srcdir)/lib; \
- export autom4te_perllibdir; \
- AUTOM4TE_CFG=$(top_srcdir)/lib/autom4te.cfg; \
- export AUTOM4TE_CFG; \
$(HELP2MAN) \
--include=$(srcdir)/$*.x \
--include=$(srcdir)/common.x \
# We don't actually distribute the testsuite, since one only
# needs m4 to build it, m4 being required anyway to install Autoconf.
-EXTRA_DIST = $(WRAPPERS) $(TESTSUITE_AT) atspecific.m4 aclocal.m4 mktests.sh \
+EXTRA_DIST = $(TESTSUITE_AT) atspecific.m4 aclocal.m4 mktests.sh \
atlocal.in
# Running the uninstalled scripts.
-WRAPPERS = autoconf autoheader autoreconf autom4te autoupdate ifnames
+WRAPPERS = autoconf autoheader autoreconf autom4te autoscan autoupdate ifnames
-DISTCLEANFILES = atconfig atlocal package.m4 $(TESTSUITE)
+DISTCLEANFILES = atconfig atlocal package.m4 $(TESTSUITE) $(WRAPPERS)
TESTSUITE_GENERATED_AT = \
aclang.at acc.at acfortran.at \
TESTSUITE = ./testsuite
# Run the non installed autom4te.
-AUTOM4TE = $(srcdir)/autom4te
-AUTOTEST = $(AUTOM4TE) --language=autotest
+# Don't use AUTOM4TE since `make alpha' makes it unavailable although
+# we are allowed to use it (since we ship it).
+AUTOTEST = ./autom4te --language=autotest
testsuite: $(top_srcdir)/lib/m4sugar/m4sugar.m4 \
$(top_srcdir)/lib/m4sugar/m4sh.m4 \
$(top_srcdir)/lib/autotest/autotest.m4 \
PERL = @PERL@
VERSION = @VERSION@
-EXTRA_DIST = $(WRAPPERS) $(TESTSUITE_AT) atspecific.m4 aclocal.m4 mktests.sh \
+EXTRA_DIST = $(TESTSUITE_AT) atspecific.m4 aclocal.m4 mktests.sh \
atlocal.in
# Running the uninstalled scripts.
-WRAPPERS = autoconf autoheader autoreconf autom4te autoupdate ifnames
+WRAPPERS = autoconf autoheader autoreconf autom4te autoscan autoupdate ifnames
-DISTCLEANFILES = atconfig atlocal package.m4 $(TESTSUITE)
+DISTCLEANFILES = atconfig atlocal package.m4 $(TESTSUITE) $(WRAPPERS)
TESTSUITE_GENERATED_AT = \
aclang.at acc.at acfortran.at \
TESTSUITE = ./testsuite
# Run the non installed autom4te.
-AUTOM4TE = $(srcdir)/autom4te
-AUTOTEST = $(AUTOM4TE) --language=autotest
+# Don't use AUTOM4TE since `make alpha' makes it unavailable although
+# we are allowed to use it (since we ship it).
+AUTOTEST = ./autom4te --language=autotest
MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE_GENERATED_AT)
CLEANFILES = expr
subdir = tests
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
-CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_FILES = autoconf autoheader autom4te autoreconf autoscan \
+ autoupdate ifnames
DIST_SOURCES =
-DIST_COMMON = README Makefile.am Makefile.in
+DIST_COMMON = README Makefile.am Makefile.in autom4te.in autoreconf.in \
+ autoupdate.in wrappl.in wrapsh.in
all: all-am
.SUFFIXES:
cd $(top_builddir) && \
CONFIG_HEADERS= CONFIG_LINKS= \
CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
+autoconf: $(top_builddir)/config.status wrapsh.in
+ cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@:tests/wrapsh.in CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
+autoheader: $(top_builddir)/config.status wrappl.in
+ cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@:tests/wrappl.in CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
+autom4te: $(top_builddir)/config.status autom4te.in
+ cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
+autoreconf: $(top_builddir)/config.status autoreconf.in
+ cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
+autoscan: $(top_builddir)/config.status wrappl.in
+ cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@:tests/wrappl.in CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
+autoupdate: $(top_builddir)/config.status autoupdate.in
+ cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
+ifnames: $(top_builddir)/config.status wrappl.in
+ cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@:tests/wrappl.in CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
uninstall-info-am:
tags: TAGS
TAGS:
#! /bin/sh
# Running `autom4te' as if it were installed.
-. ./atconfig
-
# Be sure to use the non installed Perl modules.
# We need no special protection for the subtools (e.g., autoheader runs
# autoconf which runs autom4te) because by themselves, they try to use
# subtools from the same directory (i.e., foo/autoheader will run
# foo/autoconf etc.).
-autom4te_perllibdir=$top_srcdir/lib
+autom4te_perllibdir=@top_srcpath@/lib
export autom4te_perllibdir
-AUTOM4TE_CFG=$top_builddir/lib/autom4te.cfg
+AUTOM4TE_CFG=@top_buildpath@/lib/autom4te.cfg
export AUTOM4TE_CFG
# We might need files from build (frozen files), in addition of src files.
-exec ../bin/autom4te -I ../lib -I $top_srcdir/lib ${1+"$@"}
+exec @top_buildpath@/bin/autom4te \
+ -I @top_buildpath@/lib \
+ -I @top_srcpath@/lib ${1+"$@"}
me=`echo "$0" | sed -e 's,.*[\\/],,'`
-. ./atconfig
-
-exec ../bin/$me --autoconf-dir ../lib ${1+"$@"}
+exec @top_buildpath@/bin/$me --autoconf-dir @top_buildpath@/lib ${1+"$@"}
#! /bin/sh
# Running `autoupdate' as if it were installed.
-. ./atconfig
-
# Be sure to use the non installed Perl modules.
# We need no special protection for the subtools (e.g., autoheader runs
# autoconf which runs autom4te) because by themselves, they try to use
# subtools from the same directory (i.e., foo/autoheader will run
# foo/autoconf etc.).
-autom4te_perllibdir=$top_srcdir/lib
+autom4te_perllibdir=@top_srcpath@/lib
export autom4te_perllibdir
-exec ../bin/autoupdate --include ../lib --include $top_srcdir/lib ${1+"$@"}
+# We might need files from build (frozen files), in addition of src files.
+exec @top_buildpath@/bin/autoupdate \
+ -I @top_buildpath@/lib \
+ -I @top_srcpath@/lib ${1+"$@"}
+++ /dev/null
-#! /bin/sh
-# Running `ifnames' as if it were installed.
-
-. ./atconfig
-
-# Be sure to use the non installed Perl modules.
-# We need no special protection for the subtools (e.g., autoheader runs
-# autoconf which runs autom4te) because by themselves, they try to use
-# subtools from the same directory (i.e., foo/autoheader will run
-# foo/autoconf etc.).
-autom4te_perllibdir=$top_srcdir/lib
-export autom4te_perllibdir
-
-exec ../bin/ifnames ${1+"$@"}
AT_CHECK([/bin/sh -n ../bin/autoreconf], 0)
# These are not built, they are in the src tree.
-AT_CHECK([/bin/sh -n $at_top_srcdir/config/install-sh], 0)
-AT_CHECK([/bin/sh -n $at_top_srcdir/config/mkinstalldirs], 0)
-AT_CHECK([/bin/sh -n $at_top_srcdir/config/missing], 0)
+AT_CHECK([/bin/sh -n $top_srcdir/config/install-sh], 0)
+AT_CHECK([/bin/sh -n $top_srcdir/config/mkinstalldirs], 0)
+AT_CHECK([/bin/sh -n $top_srcdir/config/missing], 0)
AT_CLEANUP
#! /bin/sh
-# Running `autoheader' as if it were installed.
+# Running `$0' as if it were installed.
-. ./atconfig
+me=`echo "$0" | sed -e 's,.*[\\/],,'`
# Be sure to use the non installed Perl modules.
# We need no special protection for the subtools (e.g., autoheader runs
# autoconf which runs autom4te) because by themselves, they try to use
# subtools from the same directory (i.e., foo/autoheader will run
# foo/autoconf etc.).
-autom4te_perllibdir=$top_srcdir/lib
+autom4te_perllibdir=@top_srcpath@/lib
export autom4te_perllibdir
-exec ../bin/autoheader --include ../lib ${1+"$@"}
+exec @top_buildpath@/bin/$me ${1+"$@"}
me=`echo "$0" | sed -e 's,.*[\\/],,'`
-. ./atconfig
-
-exec ../bin/$me --include ../lib ${1+"$@"}
+exec @top_buildpath@/bin/$me --include @top_buildpath@/lib ${1+"$@"}