]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-01-11 Akim Demaille <demaille@inf.enst.fr>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sat, 10 Apr 1999 06:18:49 +0000 (06:18 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sat, 10 Apr 1999 06:18:49 +0000 (06:18 +0000)
* autoreconf.sh (verbose): use either `:' or `echo'.
(aclocal_m4): Renamed from aclocal.
(aclocal_flags): New var.
Run aclocal using $aclocal_flags.
Redirect ls' stderr to /dev/null to avoid spurious messages.

ChangeLog
autoreconf.in
autoreconf.sh
bin/autoreconf.in

index c0be2d3090cb1e5a8feaecf9d6544af23b6df856..7a85eba0f58858714f61ca8482d2a6c1d4d00d3d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
        * config.sub: Recognize armv[234][lb] types (ie. `armv*'). Add
        alias for the NetWinder; set company to `corel'.
-       
+
+1999-01-11  Akim Demaille  <demaille@inf.enst.fr>
+
+       * autoreconf.sh (verbose): use either `:' or `echo'.
+       (aclocal_m4): Renamed from aclocal.
+       (aclocal_flags): New var.
+       Run aclocal using $aclocal_flags.
+       Redirect ls' stderr to /dev/null to avoid spurious messages.
+
 1999-01-11  Ben Elliston  <bje@cygnus.com>
 
        * config.guess: Detect HP-UX on MPE/iX machines.
index eeea03da2c18669057e87b8c02faa390f5161b79..125d442edd2998942b2a4c9b601ca621fc38db9d 100644 (file)
@@ -45,7 +45,7 @@ The following options are passed to \`automake':
 Report bugs to <bug-autoconf@gnu.org>."
 
 localdir=
-verbose=no
+verbose=:
 show_version=no
 force=no
 automake_mode=--gnu
@@ -54,7 +54,7 @@ automake_deps=
 test -z "$AC_MACRODIR" && AC_MACRODIR=@datadir@
 
 while test $# -gt 0; do
-  case "$1" in 
+  case "$1" in
   -h | --help | --h*)
     echo "$usage"; exit 0 ;;
   --localdir=* | --l*=* )
@@ -74,7 +74,7 @@ while test $# -gt 0; do
     AC_MACRODIR="$1"
     shift ;;
   --verbose | --verb*)
-    verbose=yes; shift ;;
+    verbose=echo; shift ;;
   -f | --force)
     force=yes; shift ;;
   --version | --vers*)
@@ -133,39 +133,45 @@ while read dir; do
 
   case "$localdir" in
   "")  localdir_opt=
-       aclocal=aclocal.m4 ;;
+       aclocal_m4=aclocal.m4 ;;
   /*)  localdir_opt="--localdir=$localdir"
-       aclocal=$localdir/aclocal.m4 ;;
+       aclocal_m4=$localdir/aclocal.m4 ;;
   *)   localdir_opt="--localdir=$dots$localdir"
-       aclocal=$dots$localdir/aclocal.m4 ;;
+       aclocal_m4=$dots$localdir/aclocal.m4 ;;
   esac
 
-  # Regenerate aclocal.m4 if necessary.  FIXME: if aclocal searches
-  # nonstandard directories, we need to deal with that here.  The
-  # easiest way is to move this info into configure.in.
+  # Regenerate aclocal.m4 if necessary.
   run_aclocal=no
-  if test -f "$aclocal" &&
-     grep 'generated automatically by aclocal' $aclocal > /dev/null
+  aclocal_dir=`echo $aclocal_m4 | sed 's,/*[^/]*$,,;s,^$,.,'`
+  if test -f "$aclocal_m4" &&
+     grep 'generated automatically by aclocal' $aclocal_m4 > /dev/null
   then
      run_aclocal=yes
   else
-     if test -f `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'`/acinclude.m4
+     if test -f "$aclocal_dir/acinclude.m4"
      then
        run_aclocal=yes
      fi
   fi
   if test $run_aclocal = yes
   then
+      # If there are flags for aclocal, use them.  Makefile.am and Makefile
+      # may not exists.
+      aclocal_flags=`sed -ne '\
+/^ACLOCAL_[A-Z_]*FLAGS/{
+  s/.*=//
+  p
+  q
+}' Makefile.in 2>/dev/null`
      if test $force = no &&
-        ls -lt configure.in $aclocal \
-              `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'`/acinclude.m4 |
-         sed 1q |
-          grep 'aclocal\.m4$' > /dev/null
+        ls -lt configure.in $aclocal_m4 $aclocal_dir/acinclude.m4 2>/dev/null|
+       sed 1q |
+        grep 'aclocal\.m4$' > /dev/null
      then
        :
      else
-       test $verbose = yes && echo running aclocal in $dir, creating $aclocal
-       aclocal --output=$aclocal -I `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'`
+       $verbose "running aclocal $aclocal_flags in $dir, creating $aclocal_m4"
+       aclocal $aclocal_flags --output=$aclocal_m4 -I $aclocal_dir
      fi
   fi
 
@@ -175,19 +181,19 @@ while read dir; do
   then
      amforce=
      test $force = no && amforce=--no-force
-     test $verbose = yes && echo running automake`test x"$amforce" = x || echo " ($amforce)"` in $dir
+     $verbose running automake $amforce in $dir
      automake $amforce $automake_mode $automake_deps
   fi
 
-  test ! -f $aclocal && aclocal=
+  test ! -f $aclocal_m4 && aclocal_m4=
 
   if test $force = no && test -f configure &&
-    ls -lt configure configure.in $aclocal | sed 1q |
+    ls -lt configure configure.in $aclocal_m4 | sed 1q |
       grep 'configure$' > /dev/null
   then
     :
   else
-    test $verbose = yes && echo running autoconf in $dir
+    $verbose "running autoconf in $dir"
     $autoconf $macrodir_opt $localdir_opt
   fi
 
@@ -208,19 +214,24 @@ while read dir; do
     stamp=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`/stamp-h`test "$tcount" -gt 1 && echo "$tcount"`.in
     if test ! -f "$template" || grep autoheader "$template" >/dev/null; then
       if test $force = no && test -f $template &&
-        ls -lt $template configure.in $aclocal $stamp 2>/dev/null \
+        ls -lt $template configure.in $aclocal_m4 $stamp 2>/dev/null \
                `echo $localdir_opt | sed -e 's/--localdir=//' \
                                          -e '/./ s%$%/%'`acconfig.h |
           sed 1q | egrep "$template$|$stamp$" > /dev/null
       then
         :
       else
-        test $verbose = yes && echo running autoheader in $dir
-        $autoheader $macrodir_opt $localdir_opt && 
-        { test $verbose != yes || echo touching $stamp; } &&
+        $verbose "running autoheader in $dir"
+        $autoheader $macrodir_opt $localdir_opt &&
+        $verbose "touching $stamp" &&
         touch $stamp
       fi
     fi
   fi
   )
 done
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:3
+# End:
index eeea03da2c18669057e87b8c02faa390f5161b79..125d442edd2998942b2a4c9b601ca621fc38db9d 100644 (file)
@@ -45,7 +45,7 @@ The following options are passed to \`automake':
 Report bugs to <bug-autoconf@gnu.org>."
 
 localdir=
-verbose=no
+verbose=:
 show_version=no
 force=no
 automake_mode=--gnu
@@ -54,7 +54,7 @@ automake_deps=
 test -z "$AC_MACRODIR" && AC_MACRODIR=@datadir@
 
 while test $# -gt 0; do
-  case "$1" in 
+  case "$1" in
   -h | --help | --h*)
     echo "$usage"; exit 0 ;;
   --localdir=* | --l*=* )
@@ -74,7 +74,7 @@ while test $# -gt 0; do
     AC_MACRODIR="$1"
     shift ;;
   --verbose | --verb*)
-    verbose=yes; shift ;;
+    verbose=echo; shift ;;
   -f | --force)
     force=yes; shift ;;
   --version | --vers*)
@@ -133,39 +133,45 @@ while read dir; do
 
   case "$localdir" in
   "")  localdir_opt=
-       aclocal=aclocal.m4 ;;
+       aclocal_m4=aclocal.m4 ;;
   /*)  localdir_opt="--localdir=$localdir"
-       aclocal=$localdir/aclocal.m4 ;;
+       aclocal_m4=$localdir/aclocal.m4 ;;
   *)   localdir_opt="--localdir=$dots$localdir"
-       aclocal=$dots$localdir/aclocal.m4 ;;
+       aclocal_m4=$dots$localdir/aclocal.m4 ;;
   esac
 
-  # Regenerate aclocal.m4 if necessary.  FIXME: if aclocal searches
-  # nonstandard directories, we need to deal with that here.  The
-  # easiest way is to move this info into configure.in.
+  # Regenerate aclocal.m4 if necessary.
   run_aclocal=no
-  if test -f "$aclocal" &&
-     grep 'generated automatically by aclocal' $aclocal > /dev/null
+  aclocal_dir=`echo $aclocal_m4 | sed 's,/*[^/]*$,,;s,^$,.,'`
+  if test -f "$aclocal_m4" &&
+     grep 'generated automatically by aclocal' $aclocal_m4 > /dev/null
   then
      run_aclocal=yes
   else
-     if test -f `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'`/acinclude.m4
+     if test -f "$aclocal_dir/acinclude.m4"
      then
        run_aclocal=yes
      fi
   fi
   if test $run_aclocal = yes
   then
+      # If there are flags for aclocal, use them.  Makefile.am and Makefile
+      # may not exists.
+      aclocal_flags=`sed -ne '\
+/^ACLOCAL_[A-Z_]*FLAGS/{
+  s/.*=//
+  p
+  q
+}' Makefile.in 2>/dev/null`
      if test $force = no &&
-        ls -lt configure.in $aclocal \
-              `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'`/acinclude.m4 |
-         sed 1q |
-          grep 'aclocal\.m4$' > /dev/null
+        ls -lt configure.in $aclocal_m4 $aclocal_dir/acinclude.m4 2>/dev/null|
+       sed 1q |
+        grep 'aclocal\.m4$' > /dev/null
      then
        :
      else
-       test $verbose = yes && echo running aclocal in $dir, creating $aclocal
-       aclocal --output=$aclocal -I `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'`
+       $verbose "running aclocal $aclocal_flags in $dir, creating $aclocal_m4"
+       aclocal $aclocal_flags --output=$aclocal_m4 -I $aclocal_dir
      fi
   fi
 
@@ -175,19 +181,19 @@ while read dir; do
   then
      amforce=
      test $force = no && amforce=--no-force
-     test $verbose = yes && echo running automake`test x"$amforce" = x || echo " ($amforce)"` in $dir
+     $verbose running automake $amforce in $dir
      automake $amforce $automake_mode $automake_deps
   fi
 
-  test ! -f $aclocal && aclocal=
+  test ! -f $aclocal_m4 && aclocal_m4=
 
   if test $force = no && test -f configure &&
-    ls -lt configure configure.in $aclocal | sed 1q |
+    ls -lt configure configure.in $aclocal_m4 | sed 1q |
       grep 'configure$' > /dev/null
   then
     :
   else
-    test $verbose = yes && echo running autoconf in $dir
+    $verbose "running autoconf in $dir"
     $autoconf $macrodir_opt $localdir_opt
   fi
 
@@ -208,19 +214,24 @@ while read dir; do
     stamp=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`/stamp-h`test "$tcount" -gt 1 && echo "$tcount"`.in
     if test ! -f "$template" || grep autoheader "$template" >/dev/null; then
       if test $force = no && test -f $template &&
-        ls -lt $template configure.in $aclocal $stamp 2>/dev/null \
+        ls -lt $template configure.in $aclocal_m4 $stamp 2>/dev/null \
                `echo $localdir_opt | sed -e 's/--localdir=//' \
                                          -e '/./ s%$%/%'`acconfig.h |
           sed 1q | egrep "$template$|$stamp$" > /dev/null
       then
         :
       else
-        test $verbose = yes && echo running autoheader in $dir
-        $autoheader $macrodir_opt $localdir_opt && 
-        { test $verbose != yes || echo touching $stamp; } &&
+        $verbose "running autoheader in $dir"
+        $autoheader $macrodir_opt $localdir_opt &&
+        $verbose "touching $stamp" &&
         touch $stamp
       fi
     fi
   fi
   )
 done
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:3
+# End:
index eeea03da2c18669057e87b8c02faa390f5161b79..125d442edd2998942b2a4c9b601ca621fc38db9d 100644 (file)
@@ -45,7 +45,7 @@ The following options are passed to \`automake':
 Report bugs to <bug-autoconf@gnu.org>."
 
 localdir=
-verbose=no
+verbose=:
 show_version=no
 force=no
 automake_mode=--gnu
@@ -54,7 +54,7 @@ automake_deps=
 test -z "$AC_MACRODIR" && AC_MACRODIR=@datadir@
 
 while test $# -gt 0; do
-  case "$1" in 
+  case "$1" in
   -h | --help | --h*)
     echo "$usage"; exit 0 ;;
   --localdir=* | --l*=* )
@@ -74,7 +74,7 @@ while test $# -gt 0; do
     AC_MACRODIR="$1"
     shift ;;
   --verbose | --verb*)
-    verbose=yes; shift ;;
+    verbose=echo; shift ;;
   -f | --force)
     force=yes; shift ;;
   --version | --vers*)
@@ -133,39 +133,45 @@ while read dir; do
 
   case "$localdir" in
   "")  localdir_opt=
-       aclocal=aclocal.m4 ;;
+       aclocal_m4=aclocal.m4 ;;
   /*)  localdir_opt="--localdir=$localdir"
-       aclocal=$localdir/aclocal.m4 ;;
+       aclocal_m4=$localdir/aclocal.m4 ;;
   *)   localdir_opt="--localdir=$dots$localdir"
-       aclocal=$dots$localdir/aclocal.m4 ;;
+       aclocal_m4=$dots$localdir/aclocal.m4 ;;
   esac
 
-  # Regenerate aclocal.m4 if necessary.  FIXME: if aclocal searches
-  # nonstandard directories, we need to deal with that here.  The
-  # easiest way is to move this info into configure.in.
+  # Regenerate aclocal.m4 if necessary.
   run_aclocal=no
-  if test -f "$aclocal" &&
-     grep 'generated automatically by aclocal' $aclocal > /dev/null
+  aclocal_dir=`echo $aclocal_m4 | sed 's,/*[^/]*$,,;s,^$,.,'`
+  if test -f "$aclocal_m4" &&
+     grep 'generated automatically by aclocal' $aclocal_m4 > /dev/null
   then
      run_aclocal=yes
   else
-     if test -f `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'`/acinclude.m4
+     if test -f "$aclocal_dir/acinclude.m4"
      then
        run_aclocal=yes
      fi
   fi
   if test $run_aclocal = yes
   then
+      # If there are flags for aclocal, use them.  Makefile.am and Makefile
+      # may not exists.
+      aclocal_flags=`sed -ne '\
+/^ACLOCAL_[A-Z_]*FLAGS/{
+  s/.*=//
+  p
+  q
+}' Makefile.in 2>/dev/null`
      if test $force = no &&
-        ls -lt configure.in $aclocal \
-              `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'`/acinclude.m4 |
-         sed 1q |
-          grep 'aclocal\.m4$' > /dev/null
+        ls -lt configure.in $aclocal_m4 $aclocal_dir/acinclude.m4 2>/dev/null|
+       sed 1q |
+        grep 'aclocal\.m4$' > /dev/null
      then
        :
      else
-       test $verbose = yes && echo running aclocal in $dir, creating $aclocal
-       aclocal --output=$aclocal -I `echo $aclocal | sed 's,/*[^/]*$,,;s,^$,.,'`
+       $verbose "running aclocal $aclocal_flags in $dir, creating $aclocal_m4"
+       aclocal $aclocal_flags --output=$aclocal_m4 -I $aclocal_dir
      fi
   fi
 
@@ -175,19 +181,19 @@ while read dir; do
   then
      amforce=
      test $force = no && amforce=--no-force
-     test $verbose = yes && echo running automake`test x"$amforce" = x || echo " ($amforce)"` in $dir
+     $verbose running automake $amforce in $dir
      automake $amforce $automake_mode $automake_deps
   fi
 
-  test ! -f $aclocal && aclocal=
+  test ! -f $aclocal_m4 && aclocal_m4=
 
   if test $force = no && test -f configure &&
-    ls -lt configure configure.in $aclocal | sed 1q |
+    ls -lt configure configure.in $aclocal_m4 | sed 1q |
       grep 'configure$' > /dev/null
   then
     :
   else
-    test $verbose = yes && echo running autoconf in $dir
+    $verbose "running autoconf in $dir"
     $autoconf $macrodir_opt $localdir_opt
   fi
 
@@ -208,19 +214,24 @@ while read dir; do
     stamp=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`/stamp-h`test "$tcount" -gt 1 && echo "$tcount"`.in
     if test ! -f "$template" || grep autoheader "$template" >/dev/null; then
       if test $force = no && test -f $template &&
-        ls -lt $template configure.in $aclocal $stamp 2>/dev/null \
+        ls -lt $template configure.in $aclocal_m4 $stamp 2>/dev/null \
                `echo $localdir_opt | sed -e 's/--localdir=//' \
                                          -e '/./ s%$%/%'`acconfig.h |
           sed 1q | egrep "$template$|$stamp$" > /dev/null
       then
         :
       else
-        test $verbose = yes && echo running autoheader in $dir
-        $autoheader $macrodir_opt $localdir_opt && 
-        { test $verbose != yes || echo touching $stamp; } &&
+        $verbose "running autoheader in $dir"
+        $autoheader $macrodir_opt $localdir_opt &&
+        $verbose "touching $stamp" &&
         touch $stamp
       fi
     fi
   fi
   )
 done
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:3
+# End: