to a shell that can handle redirection or quoting correctly.
Override SHELL with the shell detected by configure.
Use of $^O suggested by Tim van Holder.
* bin/autom4te.in (BEGIN): Likewise.
* bin/autoreconf.in (BEGIN): Likewise.
* bin/autoscan.in (BEGIN): Likewise.
* bin/autoupdate.in (BEGIN): Likewise.
* bin/ifnames.in (BEGIN): Likewise.
* bin/ifnames.in: Add final newline to help and version messages.
* lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
to cope with DOS-style absolute paths, when constructing
${ac_make}.
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
When constructing paths with IFS=:, quote the path. If we're
constructing a DOS-style absolute path, we don't want to split it
on the colon.
* tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
in description.
+2003-02-26 Richard Dawe <rich@phekda.freeserve.co.uk>
+
+ * bin/autoheader.in (BEGIN): For DJGPP SHELL may not be set
+ to a shell that can handle redirection or quoting correctly.
+ Override SHELL with the shell detected by configure.
+ Use of $^O suggested by Tim van Holder.
+ * bin/autom4te.in (BEGIN): Likewise.
+ * bin/autoreconf.in (BEGIN): Likewise.
+ * bin/autoscan.in (BEGIN): Likewise.
+ * bin/autoupdate.in (BEGIN): Likewise.
+ * bin/ifnames.in (BEGIN): Likewise.
+
+ * bin/ifnames.in: Add final newline to help and version messages.
+
+ * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Translate colons,
+ to cope with DOS-style absolute paths, when constructing
+ ${ac_make}.
+
+ * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES):
+ When constructing paths with IFS=:, quote the path. If we're
+ constructing a DOS-style absolute path, we don't want to split it
+ on the colon.
+
+ * tests/atspecific.m4 (AT_CHECK_CONFIGURE): Fix typo
+ in description.
+
2003-02-25 Pavel Roskin <proski@gnu.org>
* bin/autoheader.in: Add missing newline when printing
* Major changes in Autoconf 2.57a -*- outline -*-
+* Improve DJGPP portability
+ The Autoconf tools and configure behave better under DJGPP.
+
* Major changes in Autoconf 2.57
- Released 2002-12-03.
+ Released 2002-12-03 by Paul Eggert.
Bug fixes for problems with AIX linker, with freestanding C compilers,
with GNU m4 limitations, and with obsolete copies of GNU documents.
\f
* Major changes in Autoconf 2.56
- Released November 15th, 2002.
+ Released November 15th, 2002 by Akim Demaille.
One packaging problem fixed (config/install-sh was not executable).
\f
* Major changes in Autoconf 2.55
- Released November 14th, 2002.
+ Released November 14th, 2002 by Akim Demaille.
Release tips:
Raja R Harinath harinath@cs.umn.edu
Ralf Corsepius corsepiu@faw.uni-ulm.de
Ralf S. Engelschall rse@engelschall.com
+Richard Dawe rich@phekda.freeserve.co.uk
Richard Stallman rms@gnu.org
Robert Lipe robertlipe@usa.net
Robert S. Maier rsm@math.arizona.edu
{
my $perllibdir = $ENV{'autom4te_perllibdir'} || '@datadir@';
unshift @INC, "$perllibdir";
+
+ # Override SHELL. On DJGPP SHELL may not be set to a shell
+ # that can handle redirection and quote arguments correctly,
+ # e.g.: COMMAND.COM. For DJGPP always use the shell that configure
+ # has detected.
+ $ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
}
use Autom4te::General;
{
my $datadir = ($ENV{'autom4te_perllibdir'} || '@datadir@');
unshift @INC, "$datadir";
+
+ # Override SHELL. On DJGPP SHELL may not be set to a shell
+ # that can handle redirection and quote arguments correctly,
+ # e.g.: COMMAND.COM. For DJGPP always use the shell that configure
+ # has detected.
+ $ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
}
## --------- ##
{
my $perllibdir = $ENV{'autom4te_perllibdir'} || '@datadir@';
unshift @INC, "$perllibdir";
+
+ # Override SHELL. On DJGPP SHELL may not be set to a shell
+ # that can handle redirection and quote arguments correctly,
+ # e.g.: COMMAND.COM. For DJGPP always use the shell that configure
+ # has detected.
+ $ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
}
use Autom4te::General;
{
my $perllibdir = $ENV{'autom4te_perllibdir'} || "@datadir@";
unshift @INC, "$perllibdir";
+
+ # Override SHELL. On DJGPP SHELL may not be set to a shell
+ # that can handle redirection and quote arguments correctly,
+ # e.g.: COMMAND.COM. For DJGPP always use the shell that configure
+ # has detected.
+ $ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
}
use Autom4te::General;
{
my $perllibdir = $ENV{'autom4te_perllibdir'} || "@datadir@";
unshift @INC, "$perllibdir";
+
+ # Override SHELL. On DJGPP SHELL may not be set to a shell
+ # that can handle redirection and quote arguments correctly,
+ # e.g.: COMMAND.COM. For DJGPP always use the shell that configure
+ # has detected.
+ $ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
}
use File::Basename;
{
my $datadir = ($ENV{'autom4te_perllibdir'} || '@datadir@');
unshift @INC, "$datadir";
+
+ # Override SHELL. On DJGPP SHELL may not be set to a shell
+ # that can handle redirection and quote arguments correctly,
+ # e.g.: COMMAND.COM. For DJGPP always use the shell that configure
+ # has detected.
+ $ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
}
use Autom4te::General;
-h, --help print this help, then exit
-V, --version print version number, then exit
-Report bugs to <bug-autoconf\@gnu.org>.";
+Report bugs to <bug-autoconf\@gnu.org>.
+";
# $VERSION
Copyright 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.";
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+";
# &parse_args ()
AN_PROGRAM([make], [AC_PROG_MAKE_SET])
AC_DEFUN([AC_PROG_MAKE_SET],
[AC_MSG_CHECKING([whether ${MAKE-make} sets \$(MAKE)])
-set dummy ${MAKE-make}; ac_make=`echo "$[2]" | sed 'y,./+-,__p_,'`
+set dummy ${MAKE-make}; ac_make=`echo "$[2]" | sed 'y,:./+-,___p_,'`
AC_CACHE_VAL(ac_cv_prog_make_${ac_make}_set,
[cat >conftest.make <<\_ACEOF
all:
# This file is part of Autoconf. -*- Autoconf -*-
# Parameterizing and creating config.status.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003
# Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
[[\\/$]]*)
# Absolute (can't be DOS-style, as IFS=:)
test -f "$f" || AC_MSG_ERROR([cannot find input file: $f])
- echo $f;;
+ # Do quote $f, to prevent DOS paths from being IFS'd.
+ echo "$f";;
*) # Relative
if test -f "$f"; then
# Build tree
- echo $f
+ echo "$f"
elif test -f "$srcdir/$f"; then
# Source tree
- echo $srcdir/$f
+ echo "$srcdir/$f"
else
# /dev/null tree
AC_MSG_ERROR([cannot find input file: $f])
[[\\/$]]*)
# Absolute (can't be DOS-style, as IFS=:)
test -f "$f" || AC_MSG_ERROR([cannot find input file: $f])
- echo $f;;
+ echo "$f";;
*) # Relative
if test -f "$f"; then
# Build tree
- echo $f
+ echo "$f"
elif test -f "$srcdir/$f"; then
# Source tree
- echo $srcdir/$f
+ echo "$srcdir/$f"
else
# /dev/null tree
AC_MSG_ERROR([cannot find input file: $f])
# AT_CHECK_CONFIGURE(END-COMMAND,
# [EXIT-STATUS = 0],
-# [SDOUT = IGNORE], STDERR)
+# [STDOUT = IGNORE], STDERR)
# --------------------------------------------
# `abs_top_srcdir' is needed so that `./configure' finds install-sh.
# Using --srcdir is more expensive.