* autoreconf.sh: Change initial /bin/sh to @SHELL@.
Tue Nov 18 14:21:38 1997 Eric Mumpower <nocturne@cygnus.com>
* autoreconf.sh: Do the right thing when AC_CONFIG_HEADER is
given more than one filename. As noted in the "Invoking
autoheader" node of the info files, autoheader will use the first
file argument given to AC_CONFIG_HEADER. Prior to this patch,
autoreconf would end up executing incorrect shell code (e.g.
"test ! -f 1.h 2.h.in") in such cases.
Patch submitted in parallel to bug-gnu-utils@prep.ai.mit.edu.
-#! /bin/sh
+#! @SHELL@
# autoreconf - remake all Autoconf configure scripts in a directory tree
# Copyright (C) 1994 Free Software Foundation, Inc.
if grep AC_CONFIG_HEADER configure.in >/dev/null; then
template=`sed -n '/AC_CONFIG_HEADER/{
s%[^#]*AC_CONFIG_HEADER(\([^)]*\).*%\1%
+s%^ *\([^ ][^ ]*\) .*$%\1%
t here
: here
s%.*:%%
-#! /bin/sh
+#! @SHELL@
# autoreconf - remake all Autoconf configure scripts in a directory tree
# Copyright (C) 1994 Free Software Foundation, Inc.
if grep AC_CONFIG_HEADER configure.in >/dev/null; then
template=`sed -n '/AC_CONFIG_HEADER/{
s%[^#]*AC_CONFIG_HEADER(\([^)]*\).*%\1%
+s%^ *\([^ ][^ ]*\) .*$%\1%
t here
: here
s%.*:%%
-#! /bin/sh
+#! @SHELL@
# autoreconf - remake all Autoconf configure scripts in a directory tree
# Copyright (C) 1994 Free Software Foundation, Inc.
if grep AC_CONFIG_HEADER configure.in >/dev/null; then
template=`sed -n '/AC_CONFIG_HEADER/{
s%[^#]*AC_CONFIG_HEADER(\([^)]*\).*%\1%
+s%^ *\([^ ][^ ]*\) .*$%\1%
t here
: here
s%.*:%%