]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Thanks to --program-transform-name, `autoconf' might be install as
authorAkim Demaille <akim@epita.fr>
Fri, 26 May 2000 17:45:10 +0000 (17:45 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 26 May 2000 17:45:10 +0000 (17:45 +0000)
`yo-man-i-am-the-all-mighty-AVt0c0nF-eh-eh'.  But when
`yo-man-i-am-the-all-mighty-AVt0h3Ad3R-eh-eh' and the other tools
want to trace, they might stupidly invoke the program named
`autoconf' instead.  Pfff, stupid scripts :)

* Makefile.am (editsh): Transfer the names of the install
`autoconf' and `autoheader'.
* autoconf.sh: Add a missing period at the end of the comment
# Parse command line
Make sure to have a ChangeLog much longer than the patch.
* autoheader.sh: Use the right `autoconf'.
* autoupdate.sh: Likewise.
* autoreconf.sh: Likewise, and for `autoheader' too.
Simplify the handling of localdir and AC_MACRODIR.
* ifnames.sh: Formatting changes.

15 files changed:
ChangeLog
Makefile.am
Makefile.in
autoconf.in
autoconf.sh
autoheader.in
autoheader.sh
autoreconf.in
autoreconf.sh
bin/autoconf.in
bin/autoheader.in
bin/autoreconf.in
bin/ifnames.in
ifnames.in
ifnames.sh

index 273039c713fb240745c40b56ecca61e0f9cb7ac9..df9946828a7d0e66fcb9ac2e21264387430276e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2000-05-26  Akim Demaille  <akim@epita.fr>
+
+       Thanks to --program-transform-name, `autoconf' might be install as
+       `yo-man-i-am-the-all-mighty-AVt0c0nF-eh-eh'.  But when
+       `yo-man-i-am-the-all-mighty-AVt0h3Ad3R-eh-eh' and the other tools
+       want to trace, they might stupidly invoke the program named
+       `autoconf' instead.  Pfff, stupid scripts :)
+
+       * Makefile.am (editsh): Transfer the names of the install
+       `autoconf' and `autoheader'.
+       * autoconf.sh: Add a missing period at the end of the comment
+       # Parse command line
+       Make sure to have a ChangeLog much longer than the patch.
+       * autoheader.sh: Use the right `autoconf'.
+       * autoupdate.sh: Likewise.
+       * autoreconf.sh: Likewise, and for `autoheader' too.
+       Simplify the handling of localdir and AC_MACRODIR.
+       * ifnames.sh: Formatting changes.
+
 2000-05-25  Steven G. Johnson <stevenj@alum.mit.edu>
 
        Don't use f2c as a possible Fortran compiler, since by itself it
index dcb5217ee05ed382ac4a4929a075f40a4b9817b3..9c53044e4c24a5e1341db1ace92020d0bb3b7fcc 100644 (file)
@@ -72,23 +72,36 @@ install-data-hook: INSTALL.txt
 
 # The scripts.
 
-editsh = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e \
-       's,@''M4''@,$(M4),g'  -e 's,@''AWK''@,$(AWK),g' \
+editsh = sed \
+       -e 's,@''datadir''@,$(pkgdatadir),g' \
+       -e 's,@''M4''@,$(M4),g' \
+       -e 's,@''AWK''@,$(AWK),g' \
        -e 's,@''SHELL''@,$(SHELL),g' \
-       -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
-editpl = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''PERL''@,$(PERL),g' \
-       -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
+       -e 's,@''VERSION''@,$(VERSION),g' \
+       -e 's,@''PACKAGE''@,$(PACKAGE),g' \
+       -e 's,@autoconf-name@,'`echo autoconf | sed '$(transform)'`',g' \
+       -e 's,@autoheader-name@,'`echo autoheader | sed '$(transform)'`',g'
+
+editpl = sed \
+       -e 's,@''datadir''@,$(pkgdatadir),g' \
+       -e 's,@''PERL''@,$(PERL),g' \
+       -e 's,@''VERSION''@,$(VERSION),g' \
+       -e 's,@''PACKAGE''@,$(PACKAGE),g'
 
 .sh:
        rm -f $@ $@.tmp
-       $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
+       $(editsh) $< >$@.tmp
+       chmod +x $@.tmp
+       mv $@.tmp $@
 
 .pl:
        rm -f $@ $@.tmp
-       $(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
+       $(editpl) $< >$@.tmp
+       chmod +x $@.tmp
+       mv $@.tmp $@
 
 .m4.m4f:
-       $(M4) -F $*.m4f -I$(srcdir) $(srcdir)/$*.m4
+       $(M4) -I $(srcdir) $(srcdir)/$*.m4 --freeze-state=$*.m4f
 
 common = libm4.m4 acgeneral.m4 acspecific.m4 acoldnames.m4 acversion.m4 \
          aclang.m4
index 84b642388ca246f6ae5a26898369c6230d7b6f2e..527e80bc686f7fd3d16556cff4fc96b9f27b79b1 100644 (file)
@@ -97,9 +97,10 @@ CLEANFILES = autoconf.m4f              $(bin_SCRIPTS)
 
 # The scripts.
 
-editsh = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e   's,@''M4''@,$(M4),g'  -e 's,@''AWK''@,$(AWK),g'         -e 's,@''SHELL''@,$(SHELL),g'   -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
+editsh = sed   -e 's,@''datadir''@,$(pkgdatadir),g'    -e 's,@''M4''@,$(M4),g'         -e 's,@''AWK''@,$(AWK),g'       -e 's,@''SHELL''@,$(SHELL),g'   -e 's,@''VERSION''@,$(VERSION),g'       -e 's,@''PACKAGE''@,$(PACKAGE),g'       -e 's,@autoconf-name@,'`echo autoconf | sed '$(transform)'`',g'         -e 's,@autoheader-name@,'`echo autoheader | sed '$(transform)'`',g'
 
-editpl = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''PERL''@,$(PERL),g'  -e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
+
+editpl = sed   -e 's,@''datadir''@,$(pkgdatadir),g'    -e 's,@''PERL''@,$(PERL),g'     -e 's,@''VERSION''@,$(VERSION),g'       -e 's,@''PACKAGE''@,$(PACKAGE),g'
 
 
 common = libm4.m4 acgeneral.m4 acspecific.m4 acoldnames.m4 acversion.m4          aclang.m4
@@ -430,14 +431,18 @@ install-data-hook: INSTALL.txt
 
 .sh:
        rm -f $@ $@.tmp
-       $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
+       $(editsh) $< >$@.tmp
+       chmod +x $@.tmp
+       mv $@.tmp $@
 
 .pl:
        rm -f $@ $@.tmp
-       $(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
+       $(editpl) $< >$@.tmp
+       chmod +x $@.tmp
+       mv $@.tmp $@
 
 .m4.m4f:
-       $(M4) -F $*.m4f -I$(srcdir) $(srcdir)/$*.m4
+       $(M4) -I $(srcdir) $(srcdir)/$*.m4 --freeze-state=$*.m4f
 
 autoconf.m4f: autoconf.m4 $(common)
 
index 46e2472e14c70042c5799cee2005a19ac56141c7..81a9b22f8d4d0f1c88ddf071cd483379d09c9fc2 100644 (file)
@@ -120,7 +120,7 @@ task=script
 tmp=
 verbose=:
 
-# Parse command line
+# Parse command line.
 while test $# -gt 0 ; do
   case "$1" in
     --version | --vers* | -V )
index 46e2472e14c70042c5799cee2005a19ac56141c7..81a9b22f8d4d0f1c88ddf071cd483379d09c9fc2 100644 (file)
@@ -120,7 +120,7 @@ task=script
 tmp=
 verbose=:
 
-# Parse command line
+# Parse command line.
 while test $# -gt 0 ; do
   case "$1" in
     --version | --vers* | -V )
index 1c05ccdc3c6bd65e1a9b0819ebaad8c3198e1582..057527f3331b31427a695864cfd56acb16b33fb0 100644 (file)
@@ -69,6 +69,11 @@ if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
 # Variables.
 : ${AC_MACRODIR=@datadir@}
+if test -n "$AUTOCONF"; then
+  autoconf=$AUTOCONF
+else
+  autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
+fi
 debug=false
 localdir=.
 tmp=
@@ -77,6 +82,7 @@ warning_all=false
 warning_error=false
 warning_obsolete=false
 
+# Parse command line.
 while test $# -gt 0 ; do
   case "$1" in
     --version | --vers* | -V )
@@ -198,14 +204,15 @@ case $# in
      exit 1 ;;
 esac
 
-# Well, work now!
-config_h=
-syms=
+# Set up autoconf.
+autoconf="$autoconf -l $localdir"
+export AC_MACRODIR
+
+# ----------------------- #
+# Real work starts here.  #
+# ----------------------- #
 
 # Source what the traces are trying to tell us.
-autoconf=`echo "$0" | sed -e 's,[^/]*$,autoconf,'`
-test -n "$localdir" && autoconf="$autoconf -l $localdir"
-export AC_MACRODIR
 $autoconf  \
   --trace AC_CONFIG_HEADERS:'config_h="$1"' \
   --trace AH_OUTPUT:'ac_verbatim_$1="\
index 1c05ccdc3c6bd65e1a9b0819ebaad8c3198e1582..057527f3331b31427a695864cfd56acb16b33fb0 100644 (file)
@@ -69,6 +69,11 @@ if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
 # Variables.
 : ${AC_MACRODIR=@datadir@}
+if test -n "$AUTOCONF"; then
+  autoconf=$AUTOCONF
+else
+  autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
+fi
 debug=false
 localdir=.
 tmp=
@@ -77,6 +82,7 @@ warning_all=false
 warning_error=false
 warning_obsolete=false
 
+# Parse command line.
 while test $# -gt 0 ; do
   case "$1" in
     --version | --vers* | -V )
@@ -198,14 +204,15 @@ case $# in
      exit 1 ;;
 esac
 
-# Well, work now!
-config_h=
-syms=
+# Set up autoconf.
+autoconf="$autoconf -l $localdir"
+export AC_MACRODIR
+
+# ----------------------- #
+# Real work starts here.  #
+# ----------------------- #
 
 # Source what the traces are trying to tell us.
-autoconf=`echo "$0" | sed -e 's,[^/]*$,autoconf,'`
-test -n "$localdir" && autoconf="$autoconf -l $localdir"
-export AC_MACRODIR
 $autoconf  \
   --trace AC_CONFIG_HEADERS:'config_h="$1"' \
   --trace AH_OUTPUT:'ac_verbatim_$1="\
index b979579dc7fd354e6ade04452ba186dfccb45e8b..681e6aab3032a45a18733ee3b8479b4966f48b65 100644 (file)
@@ -57,14 +57,35 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
 help="\
 Try \`$me --help' for more information."
 
-localdir=
-verbose=:
-force=no
+# NLS nuisances.
+# Only set these to C if already set.  These must not be set unconditionally
+# because not all systems understand e.g. LANG=C (notably SCO).
+# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
+# Non-C LC_CTYPE values break the ctype check.
+if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
+if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
+
+# Variables.
+: ${AC_MACRODIR=@datadir@}
+if test -n "$AUTOCONF"; then
+  autoconf=$AUTOCONF
+else
+  autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
+fi
+if test -n "$AUTOHEADER"; then
+  autoheader=$AUTOHEADER
+else
+  autoheader=`echo "$0" | sed -e 's/[^/]*$//`"@autoheader-name@"
+fi
 automake_mode=--gnu
 automake_deps=
+force=no
+localdir=.
+verbose=:
 
-test -z "$AC_MACRODIR" && AC_MACRODIR=@datadir@
-
+# Parse command line.
 while test $# -gt 0; do
   case "$1" in
     --version | --vers* | -V )
@@ -121,9 +142,14 @@ if test $# -ne 0; then
   exit 1
 fi
 
-# The paths to the autoconf and autoheader scripts, at the top of the tree.
-top_autoconf=`echo "$0" | sed s%autoreconf%autoconf%`
-top_autoheader=`echo "$0" | sed s%autoreconf%autoheader%`
+# Set up autoconf and autoheader.
+autoconf="$autoconf -l $localdir"
+autoheader="$autoheader -l $localdir"
+export AC_MACRODIR
+
+# ----------------------- #
+# Real work starts here.  #
+# ----------------------- #
 
 # Make a list of directories to process.
 # The xargs grep filters out Cygnus configure.in files.
@@ -140,20 +166,7 @@ while read dir; do
      dots=`echo /$dir|sed 's%/[^/]*%../%g'` ;;
   esac
 
-  case "$0" in
-  /*)  autoconf=$top_autoconf; autoheader=$top_autoheader ;;
-  */*) autoconf=$dots$top_autoconf; autoheader=$dots$top_autoheader ;;
-  *)   autoconf=$top_autoconf; autoheader=$top_autoheader ;;
-  esac
-
-  case "$AC_MACRODIR" in
-  /*)  macrodir_opt="--macrodir=$AC_MACRODIR" ;;
-  *)   macrodir_opt="--macrodir=$dots$AC_MACRODIR" ;;
-  esac
-
   case "$localdir" in
-  "")  localdir_opt=
-       aclocal_m4=aclocal.m4 ;;
   /*)  localdir_opt="--localdir=$localdir"
        aclocal_m4=$localdir/aclocal.m4 ;;
   *)   localdir_opt="--localdir=$dots$localdir"
@@ -218,7 +231,7 @@ while read dir; do
     :
   else
     $verbose "running autoconf in $dir"
-    $autoconf $macrodir_opt $localdir_opt
+    $autoconf $localdir_opt
   fi
 
   if grep '^[  ]*A[CM]_CONFIG_HEADER' configure.in >/dev/null; then
@@ -246,7 +259,7 @@ while read dir; do
         :
       else
         $verbose "running autoheader in $dir"
-        $autoheader $macrodir_opt $localdir_opt &&
+        $autoheader $localdir_opt &&
         $verbose "touching $stamp" &&
         touch $stamp
       fi
index b979579dc7fd354e6ade04452ba186dfccb45e8b..681e6aab3032a45a18733ee3b8479b4966f48b65 100644 (file)
@@ -57,14 +57,35 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
 help="\
 Try \`$me --help' for more information."
 
-localdir=
-verbose=:
-force=no
+# NLS nuisances.
+# Only set these to C if already set.  These must not be set unconditionally
+# because not all systems understand e.g. LANG=C (notably SCO).
+# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
+# Non-C LC_CTYPE values break the ctype check.
+if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
+if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
+
+# Variables.
+: ${AC_MACRODIR=@datadir@}
+if test -n "$AUTOCONF"; then
+  autoconf=$AUTOCONF
+else
+  autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
+fi
+if test -n "$AUTOHEADER"; then
+  autoheader=$AUTOHEADER
+else
+  autoheader=`echo "$0" | sed -e 's/[^/]*$//`"@autoheader-name@"
+fi
 automake_mode=--gnu
 automake_deps=
+force=no
+localdir=.
+verbose=:
 
-test -z "$AC_MACRODIR" && AC_MACRODIR=@datadir@
-
+# Parse command line.
 while test $# -gt 0; do
   case "$1" in
     --version | --vers* | -V )
@@ -121,9 +142,14 @@ if test $# -ne 0; then
   exit 1
 fi
 
-# The paths to the autoconf and autoheader scripts, at the top of the tree.
-top_autoconf=`echo "$0" | sed s%autoreconf%autoconf%`
-top_autoheader=`echo "$0" | sed s%autoreconf%autoheader%`
+# Set up autoconf and autoheader.
+autoconf="$autoconf -l $localdir"
+autoheader="$autoheader -l $localdir"
+export AC_MACRODIR
+
+# ----------------------- #
+# Real work starts here.  #
+# ----------------------- #
 
 # Make a list of directories to process.
 # The xargs grep filters out Cygnus configure.in files.
@@ -140,20 +166,7 @@ while read dir; do
      dots=`echo /$dir|sed 's%/[^/]*%../%g'` ;;
   esac
 
-  case "$0" in
-  /*)  autoconf=$top_autoconf; autoheader=$top_autoheader ;;
-  */*) autoconf=$dots$top_autoconf; autoheader=$dots$top_autoheader ;;
-  *)   autoconf=$top_autoconf; autoheader=$top_autoheader ;;
-  esac
-
-  case "$AC_MACRODIR" in
-  /*)  macrodir_opt="--macrodir=$AC_MACRODIR" ;;
-  *)   macrodir_opt="--macrodir=$dots$AC_MACRODIR" ;;
-  esac
-
   case "$localdir" in
-  "")  localdir_opt=
-       aclocal_m4=aclocal.m4 ;;
   /*)  localdir_opt="--localdir=$localdir"
        aclocal_m4=$localdir/aclocal.m4 ;;
   *)   localdir_opt="--localdir=$dots$localdir"
@@ -218,7 +231,7 @@ while read dir; do
     :
   else
     $verbose "running autoconf in $dir"
-    $autoconf $macrodir_opt $localdir_opt
+    $autoconf $localdir_opt
   fi
 
   if grep '^[  ]*A[CM]_CONFIG_HEADER' configure.in >/dev/null; then
@@ -246,7 +259,7 @@ while read dir; do
         :
       else
         $verbose "running autoheader in $dir"
-        $autoheader $macrodir_opt $localdir_opt &&
+        $autoheader $localdir_opt &&
         $verbose "touching $stamp" &&
         touch $stamp
       fi
index 46e2472e14c70042c5799cee2005a19ac56141c7..81a9b22f8d4d0f1c88ddf071cd483379d09c9fc2 100644 (file)
@@ -120,7 +120,7 @@ task=script
 tmp=
 verbose=:
 
-# Parse command line
+# Parse command line.
 while test $# -gt 0 ; do
   case "$1" in
     --version | --vers* | -V )
index 1c05ccdc3c6bd65e1a9b0819ebaad8c3198e1582..057527f3331b31427a695864cfd56acb16b33fb0 100644 (file)
@@ -69,6 +69,11 @@ if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
 # Variables.
 : ${AC_MACRODIR=@datadir@}
+if test -n "$AUTOCONF"; then
+  autoconf=$AUTOCONF
+else
+  autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
+fi
 debug=false
 localdir=.
 tmp=
@@ -77,6 +82,7 @@ warning_all=false
 warning_error=false
 warning_obsolete=false
 
+# Parse command line.
 while test $# -gt 0 ; do
   case "$1" in
     --version | --vers* | -V )
@@ -198,14 +204,15 @@ case $# in
      exit 1 ;;
 esac
 
-# Well, work now!
-config_h=
-syms=
+# Set up autoconf.
+autoconf="$autoconf -l $localdir"
+export AC_MACRODIR
+
+# ----------------------- #
+# Real work starts here.  #
+# ----------------------- #
 
 # Source what the traces are trying to tell us.
-autoconf=`echo "$0" | sed -e 's,[^/]*$,autoconf,'`
-test -n "$localdir" && autoconf="$autoconf -l $localdir"
-export AC_MACRODIR
 $autoconf  \
   --trace AC_CONFIG_HEADERS:'config_h="$1"' \
   --trace AH_OUTPUT:'ac_verbatim_$1="\
index b979579dc7fd354e6ade04452ba186dfccb45e8b..681e6aab3032a45a18733ee3b8479b4966f48b65 100644 (file)
@@ -57,14 +57,35 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
 help="\
 Try \`$me --help' for more information."
 
-localdir=
-verbose=:
-force=no
+# NLS nuisances.
+# Only set these to C if already set.  These must not be set unconditionally
+# because not all systems understand e.g. LANG=C (notably SCO).
+# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
+# Non-C LC_CTYPE values break the ctype check.
+if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
+if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
+
+# Variables.
+: ${AC_MACRODIR=@datadir@}
+if test -n "$AUTOCONF"; then
+  autoconf=$AUTOCONF
+else
+  autoconf=`echo "$0" | sed -e 's/[^/]*$//`"@autoconf-name@"
+fi
+if test -n "$AUTOHEADER"; then
+  autoheader=$AUTOHEADER
+else
+  autoheader=`echo "$0" | sed -e 's/[^/]*$//`"@autoheader-name@"
+fi
 automake_mode=--gnu
 automake_deps=
+force=no
+localdir=.
+verbose=:
 
-test -z "$AC_MACRODIR" && AC_MACRODIR=@datadir@
-
+# Parse command line.
 while test $# -gt 0; do
   case "$1" in
     --version | --vers* | -V )
@@ -121,9 +142,14 @@ if test $# -ne 0; then
   exit 1
 fi
 
-# The paths to the autoconf and autoheader scripts, at the top of the tree.
-top_autoconf=`echo "$0" | sed s%autoreconf%autoconf%`
-top_autoheader=`echo "$0" | sed s%autoreconf%autoheader%`
+# Set up autoconf and autoheader.
+autoconf="$autoconf -l $localdir"
+autoheader="$autoheader -l $localdir"
+export AC_MACRODIR
+
+# ----------------------- #
+# Real work starts here.  #
+# ----------------------- #
 
 # Make a list of directories to process.
 # The xargs grep filters out Cygnus configure.in files.
@@ -140,20 +166,7 @@ while read dir; do
      dots=`echo /$dir|sed 's%/[^/]*%../%g'` ;;
   esac
 
-  case "$0" in
-  /*)  autoconf=$top_autoconf; autoheader=$top_autoheader ;;
-  */*) autoconf=$dots$top_autoconf; autoheader=$dots$top_autoheader ;;
-  *)   autoconf=$top_autoconf; autoheader=$top_autoheader ;;
-  esac
-
-  case "$AC_MACRODIR" in
-  /*)  macrodir_opt="--macrodir=$AC_MACRODIR" ;;
-  *)   macrodir_opt="--macrodir=$dots$AC_MACRODIR" ;;
-  esac
-
   case "$localdir" in
-  "")  localdir_opt=
-       aclocal_m4=aclocal.m4 ;;
   /*)  localdir_opt="--localdir=$localdir"
        aclocal_m4=$localdir/aclocal.m4 ;;
   *)   localdir_opt="--localdir=$dots$localdir"
@@ -218,7 +231,7 @@ while read dir; do
     :
   else
     $verbose "running autoconf in $dir"
-    $autoconf $macrodir_opt $localdir_opt
+    $autoconf $localdir_opt
   fi
 
   if grep '^[  ]*A[CM]_CONFIG_HEADER' configure.in >/dev/null; then
@@ -246,7 +259,7 @@ while read dir; do
         :
       else
         $verbose "running autoheader in $dir"
-        $autoheader $macrodir_opt $localdir_opt &&
+        $autoheader $localdir_opt &&
         $verbose "touching $stamp" &&
         touch $stamp
       fi
index a6fb37ab54be05dd72e5cdc1cf15e047d7b26f86..a3e14fdf72dd3cd32b80e96c8ab6728395ca1c83 100644 (file)
@@ -34,9 +34,9 @@ identifiers that appear in those files in \`#if', \`#elif', \`#ifdef', or
 \`#ifndef' directives.  Print each identifier on a line, followed by a
 space-separated list of the files in which that identifier occurs.
 
-  -h, --help            print this help, then exit
-  -V, --version         print version number, then exit
-  -v, --verbose         verbosely report processing
+  -h, --help      print this help, then exit
+  -V, --version   print version number, then exit
+  -v, --verbose   verbosely report processing
 
 Report bugs to <bug-autoconf@gnu.org>."
 
index a6fb37ab54be05dd72e5cdc1cf15e047d7b26f86..a3e14fdf72dd3cd32b80e96c8ab6728395ca1c83 100644 (file)
@@ -34,9 +34,9 @@ identifiers that appear in those files in \`#if', \`#elif', \`#ifdef', or
 \`#ifndef' directives.  Print each identifier on a line, followed by a
 space-separated list of the files in which that identifier occurs.
 
-  -h, --help            print this help, then exit
-  -V, --version         print version number, then exit
-  -v, --verbose         verbosely report processing
+  -h, --help      print this help, then exit
+  -V, --version   print version number, then exit
+  -v, --verbose   verbosely report processing
 
 Report bugs to <bug-autoconf@gnu.org>."
 
index a6fb37ab54be05dd72e5cdc1cf15e047d7b26f86..a3e14fdf72dd3cd32b80e96c8ab6728395ca1c83 100644 (file)
@@ -34,9 +34,9 @@ identifiers that appear in those files in \`#if', \`#elif', \`#ifdef', or
 \`#ifndef' directives.  Print each identifier on a line, followed by a
 space-separated list of the files in which that identifier occurs.
 
-  -h, --help            print this help, then exit
-  -V, --version         print version number, then exit
-  -v, --verbose         verbosely report processing
+  -h, --help      print this help, then exit
+  -V, --version   print version number, then exit
+  -v, --verbose   verbosely report processing
 
 Report bugs to <bug-autoconf@gnu.org>."