]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
The whole family supports -V = --version.
authorAkim Demaille <akim@epita.fr>
Thu, 2 Mar 2000 18:17:26 +0000 (18:17 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 2 Mar 2000 18:17:26 +0000 (18:17 +0000)
* acgeneral.m4 (AC_INIT_PARSE_ARGS): Report and support -V.
* autoconf.sh: Likewise.
* autoreconf.sh: Likewise.
* autoupdate.sh: Likewise.
* autoheader.sh: Likewise.
* autoscan.pl: Likewise.
* ifnames.sh: Likewise.
In addition, don't dump --help on invalid options.
* doc/autoconf.texi: Adjusted.
* doc/install.texi: Likewise.

26 files changed:
ChangeLog
acgeneral.m4
autoconf.in
autoconf.sh
autoheader.in
autoheader.sh
autoreconf.in
autoreconf.sh
autoscan.in
autoscan.pl
bin/autoconf.in
bin/autoheader.in
bin/autoreconf.in
bin/autoscan.in
bin/ifnames.in
doc/autoconf.texi
doc/install.texi
ifnames.in
ifnames.sh
lib/autoconf/general.m4
man/autoconf.1
man/autoheader.1
man/autoreconf.1
man/autoscan.1
man/autoupdate.1
man/ifnames.1

index ad940e1ea56b771d08b7348729f885884ca69b46..4c94ca85a407a864678bd62df3e9b3d019ed3591 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2000-03-02  Akim Demaille  <akim@epita.fr>
+
+       The whole family supports -V = --version.
+
+       * acgeneral.m4 (AC_INIT_PARSE_ARGS): Report and support -V.
+       * autoconf.sh: Likewise.
+       * autoreconf.sh: Likewise.
+       * autoupdate.sh: Likewise.
+       * autoheader.sh: Likewise.
+       * autoscan.pl: Likewise.
+       * ifnames.sh: Likewise.
+       In addition, don't dump --help on invalid options.
+       * doc/autoconf.texi: Adjusted.
+       * doc/install.texi: Likewise.
+
 2000-03-02  Lars J. Aas  <larsa@sim.no>
 
        * libm4.m4 (m4_noquote): New macro.
index c786574a9c675cba226ec2d1f404c29fb88539ad..479bc040e7b7161e7433e8ad62aa12b32c11fe76 100644 (file)
@@ -709,7 +709,7 @@ Defaults for the options are specified in brackets.
 
 Configuration:
   -h, --help              print this message
-      --version           print the version of autoconf that created configure
+  -V, --version           print the version of autoconf that created configure
   -q, --quiet, --silent   do not print \`checking...' messages
       --cache-file=FILE   cache test results in FILE
   -n, --no-create         do not create output files
@@ -914,7 +914,7 @@ Some influent environment variables:$ac_arg_var_help"
   -v | -verbose | --verbose | --verbos | --verbo | --verb)
     verbose=yes ;;
 
-  -version | --version | --versio | --versi | --vers)
+  -version | --version | --versio | --versi | --vers | -V)
     echo "configure generated by autoconf version ]AC_ACVERSION["
     exit 0 ;;
 
index 892569d731998ee623ef6736213ad22e3635f021..2f1b5362bb157ad57ec6f9bc5db8e1cf5a1525e5 100644 (file)
@@ -33,7 +33,7 @@ TEMPLATE-FILE is given, else into \`configure'.
 If the option \`--trace' is used, no configuration script is created.
 
   -h, --help          print this help, then exit
-      --version       print version number, then exit
+  -V, --version       print version number, then exit
   -m, --macrodir=DIR  directory storing Autoconf's macro files
   -l, --localdir=DIR  directory storing the \`aclocal.m4' file
   -t, --trace=MACRO   report the list of calls to MACRO
@@ -104,7 +104,7 @@ verbose=:
 # Parse command line
 while test $# -gt 0 ; do
   case "$1" in
-    --version | --vers* )
+    --version | --vers* | -V )
        echo "$version" ; exit 0 ;;
     --help | --h* | -h )
        echo "$usage"; exit 0 ;;
index 892569d731998ee623ef6736213ad22e3635f021..2f1b5362bb157ad57ec6f9bc5db8e1cf5a1525e5 100644 (file)
@@ -33,7 +33,7 @@ TEMPLATE-FILE is given, else into \`configure'.
 If the option \`--trace' is used, no configuration script is created.
 
   -h, --help          print this help, then exit
-      --version       print version number, then exit
+  -V, --version       print version number, then exit
   -m, --macrodir=DIR  directory storing Autoconf's macro files
   -l, --localdir=DIR  directory storing the \`aclocal.m4' file
   -t, --trace=MACRO   report the list of calls to MACRO
@@ -104,7 +104,7 @@ verbose=:
 # Parse command line
 while test $# -gt 0 ; do
   case "$1" in
-    --version | --vers* )
+    --version | --vers* | -V )
        echo "$version" ; exit 0 ;;
     --help | --h* | -h )
        echo "$usage"; exit 0 ;;
index d1c87d6470d24ebd2884b81d66d8d2507ba3aff4..34db1b913990b89b2169d9c7da73cf5cff59a7ca 100644 (file)
@@ -33,11 +33,11 @@ use.  To this end, scan TEMPLATE-FILE, or \`configure.in' if none
 given.
 
   -h, --help            print this help, then exit
-      --version         print version number, then exit
+  -V, --version         print version number, then exit
+  -v, --verbose         verbosely report processing
   -d, --debug           don't remove temporary files
   -m, --macrodir=DIR    directory storing Autoconf's macro files
   -l, --localdir=DIR    directory storing \`aclocal.m4' and \`acconfig.h'
-  -v, --verbose         verbosely report processing
 
 Report bugs to <bug-autoconf@gnu.org>."
 
index d1c87d6470d24ebd2884b81d66d8d2507ba3aff4..34db1b913990b89b2169d9c7da73cf5cff59a7ca 100644 (file)
@@ -33,11 +33,11 @@ use.  To this end, scan TEMPLATE-FILE, or \`configure.in' if none
 given.
 
   -h, --help            print this help, then exit
-      --version         print version number, then exit
+  -V, --version         print version number, then exit
+  -v, --verbose         verbosely report processing
   -d, --debug           don't remove temporary files
   -m, --macrodir=DIR    directory storing Autoconf's macro files
   -l, --localdir=DIR    directory storing \`aclocal.m4' and \`acconfig.h'
-  -v, --verbose         verbosely report processing
 
 Report bugs to <bug-autoconf@gnu.org>."
 
index 0543d1b27f3d70e3b068b380afe723449c798f14..ab934f6299d6e23705b1ece595eb83cd61247b99 100644 (file)
@@ -1,6 +1,6 @@
 #! @SHELL@
 # autoreconf - remake all Autoconf configure scripts in a directory tree
-# Copyright (C) 1994, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1994, 99, 2000 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -30,12 +30,12 @@ older than their predecessors.  If you install a new version of
 Autoconf, running \`autoreconf' remakes all of the files by giving it
 the \`--force' option.
 
+  -h, --help            print this help, then exit
+  -V, --version         print version number, then exit
+  -v, --verbose         verbosely report processing
   -m, --macrodir=DIR    directory storing macro files
   -l, --localdir=DIR    directory storing \`aclocal.m4' and \`acconfig.h'
   -f, --force           consider every files are obsolete
-  -v, --verbose         verbosely report processing
-  -h, --help            print this help, then exit
-  --version             print version number, then exit
 
 The following options are passed to \`automake':
   --cygnus              assume program is part of Cygnus-style tree
@@ -50,7 +50,7 @@ version="\
 autoreconf (GNU @PACKAGE@) @VERSION@
 Written by David J. MacKenzie.
 
-Copyright (C) 1994, 1999 Free Software Foundation, Inc.
+Copyright (C) 1994, 99, 2000 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."
 
@@ -69,7 +69,7 @@ while test $# -gt 0; do
   case "$1" in
   --help | --h* | -h )
     echo "$usage"; exit 0 ;;
-  --version | --vers*)
+  --version | --vers* | -V )
     echo "$version"; exit 0 ;;
 
   --localdir=* | --l*=* )
index 0543d1b27f3d70e3b068b380afe723449c798f14..ab934f6299d6e23705b1ece595eb83cd61247b99 100644 (file)
@@ -1,6 +1,6 @@
 #! @SHELL@
 # autoreconf - remake all Autoconf configure scripts in a directory tree
-# Copyright (C) 1994, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1994, 99, 2000 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -30,12 +30,12 @@ older than their predecessors.  If you install a new version of
 Autoconf, running \`autoreconf' remakes all of the files by giving it
 the \`--force' option.
 
+  -h, --help            print this help, then exit
+  -V, --version         print version number, then exit
+  -v, --verbose         verbosely report processing
   -m, --macrodir=DIR    directory storing macro files
   -l, --localdir=DIR    directory storing \`aclocal.m4' and \`acconfig.h'
   -f, --force           consider every files are obsolete
-  -v, --verbose         verbosely report processing
-  -h, --help            print this help, then exit
-  --version             print version number, then exit
 
 The following options are passed to \`automake':
   --cygnus              assume program is part of Cygnus-style tree
@@ -50,7 +50,7 @@ version="\
 autoreconf (GNU @PACKAGE@) @VERSION@
 Written by David J. MacKenzie.
 
-Copyright (C) 1994, 1999 Free Software Foundation, Inc.
+Copyright (C) 1994, 99, 2000 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."
 
@@ -69,7 +69,7 @@ while test $# -gt 0; do
   case "$1" in
   --help | --h* | -h )
     echo "$usage"; exit 0 ;;
-  --version | --vers*)
+  --version | --vers* | -V )
     echo "$version"; exit 0 ;;
 
   --localdir=* | --l*=* )
index 2bf4a4dddf36b17cd7e47cc57cadbd21bd9987b0..d67d25b02668d17407faebb5c9369f3a39802759 100644 (file)
@@ -1,6 +1,6 @@
 #! @PERL@
 # autoscan - Create configure.scan (a preliminary configure.in) for a package.
-# Copyright (C) 1994 Free Software Foundation, Inc.
+# Copyright (C) 1994, 99, 2000 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -47,10 +47,10 @@ current directory if none is given.  Search the source files for
 common portability problems and create a file `configure.scan' which
 is a preliminary `configure.in' for that package.
 
-  -m, --macrodir=DIR    directory storing data files
+  -h, --help            print this help, then exit
+  -V, --version         print version number, then exit
+      --macrodir=DIR    directory storing data files
   -v, --verbose         verbosely report processing
-  --help                print this help, then exit
-  --version             print version number, then exit
 
 Report bugs to <bug-autoconf@gnu.org>.
 EOD
@@ -59,20 +59,20 @@ EOD
 autoscan (GNU @PACKAGE@) @VERSION@
 Written by David J. MacKenzie.
 
-Copyright (C) 1994, 1999 Free Software Foundation, Inc.
+Copyright (C) 1994, 99, 2000 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.
 EOD
 
     foreach $_ (@ARGV) {
        if (/^--m[a-z]*=(.*)/) {
            $datadir = $1;
-       } elsif (/^--h/) {
+       } elsif (/^--h/ || /^-h$/) {
            print "$usage";
            exit 0;
-       } elsif (/^--verb/) {
+       } elsif (/^--verb/ || /^-v$/) {
            $verbose = 1;
-       } elsif (/^--vers/) {
+       } elsif (/^--vers/ || /^-V$/) {
            print "$version";
            exit 0;
        } elsif (/^[^-]/) {
index 2bf4a4dddf36b17cd7e47cc57cadbd21bd9987b0..d67d25b02668d17407faebb5c9369f3a39802759 100644 (file)
@@ -1,6 +1,6 @@
 #! @PERL@
 # autoscan - Create configure.scan (a preliminary configure.in) for a package.
-# Copyright (C) 1994 Free Software Foundation, Inc.
+# Copyright (C) 1994, 99, 2000 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -47,10 +47,10 @@ current directory if none is given.  Search the source files for
 common portability problems and create a file `configure.scan' which
 is a preliminary `configure.in' for that package.
 
-  -m, --macrodir=DIR    directory storing data files
+  -h, --help            print this help, then exit
+  -V, --version         print version number, then exit
+      --macrodir=DIR    directory storing data files
   -v, --verbose         verbosely report processing
-  --help                print this help, then exit
-  --version             print version number, then exit
 
 Report bugs to <bug-autoconf@gnu.org>.
 EOD
@@ -59,20 +59,20 @@ EOD
 autoscan (GNU @PACKAGE@) @VERSION@
 Written by David J. MacKenzie.
 
-Copyright (C) 1994, 1999 Free Software Foundation, Inc.
+Copyright (C) 1994, 99, 2000 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.
 EOD
 
     foreach $_ (@ARGV) {
        if (/^--m[a-z]*=(.*)/) {
            $datadir = $1;
-       } elsif (/^--h/) {
+       } elsif (/^--h/ || /^-h$/) {
            print "$usage";
            exit 0;
-       } elsif (/^--verb/) {
+       } elsif (/^--verb/ || /^-v$/) {
            $verbose = 1;
-       } elsif (/^--vers/) {
+       } elsif (/^--vers/ || /^-V$/) {
            print "$version";
            exit 0;
        } elsif (/^[^-]/) {
index 892569d731998ee623ef6736213ad22e3635f021..2f1b5362bb157ad57ec6f9bc5db8e1cf5a1525e5 100644 (file)
@@ -33,7 +33,7 @@ TEMPLATE-FILE is given, else into \`configure'.
 If the option \`--trace' is used, no configuration script is created.
 
   -h, --help          print this help, then exit
-      --version       print version number, then exit
+  -V, --version       print version number, then exit
   -m, --macrodir=DIR  directory storing Autoconf's macro files
   -l, --localdir=DIR  directory storing the \`aclocal.m4' file
   -t, --trace=MACRO   report the list of calls to MACRO
@@ -104,7 +104,7 @@ verbose=:
 # Parse command line
 while test $# -gt 0 ; do
   case "$1" in
-    --version | --vers* )
+    --version | --vers* | -V )
        echo "$version" ; exit 0 ;;
     --help | --h* | -h )
        echo "$usage"; exit 0 ;;
index d1c87d6470d24ebd2884b81d66d8d2507ba3aff4..34db1b913990b89b2169d9c7da73cf5cff59a7ca 100644 (file)
@@ -33,11 +33,11 @@ use.  To this end, scan TEMPLATE-FILE, or \`configure.in' if none
 given.
 
   -h, --help            print this help, then exit
-      --version         print version number, then exit
+  -V, --version         print version number, then exit
+  -v, --verbose         verbosely report processing
   -d, --debug           don't remove temporary files
   -m, --macrodir=DIR    directory storing Autoconf's macro files
   -l, --localdir=DIR    directory storing \`aclocal.m4' and \`acconfig.h'
-  -v, --verbose         verbosely report processing
 
 Report bugs to <bug-autoconf@gnu.org>."
 
index 0543d1b27f3d70e3b068b380afe723449c798f14..ab934f6299d6e23705b1ece595eb83cd61247b99 100644 (file)
@@ -1,6 +1,6 @@
 #! @SHELL@
 # autoreconf - remake all Autoconf configure scripts in a directory tree
-# Copyright (C) 1994, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1994, 99, 2000 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -30,12 +30,12 @@ older than their predecessors.  If you install a new version of
 Autoconf, running \`autoreconf' remakes all of the files by giving it
 the \`--force' option.
 
+  -h, --help            print this help, then exit
+  -V, --version         print version number, then exit
+  -v, --verbose         verbosely report processing
   -m, --macrodir=DIR    directory storing macro files
   -l, --localdir=DIR    directory storing \`aclocal.m4' and \`acconfig.h'
   -f, --force           consider every files are obsolete
-  -v, --verbose         verbosely report processing
-  -h, --help            print this help, then exit
-  --version             print version number, then exit
 
 The following options are passed to \`automake':
   --cygnus              assume program is part of Cygnus-style tree
@@ -50,7 +50,7 @@ version="\
 autoreconf (GNU @PACKAGE@) @VERSION@
 Written by David J. MacKenzie.
 
-Copyright (C) 1994, 1999 Free Software Foundation, Inc.
+Copyright (C) 1994, 99, 2000 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."
 
@@ -69,7 +69,7 @@ while test $# -gt 0; do
   case "$1" in
   --help | --h* | -h )
     echo "$usage"; exit 0 ;;
-  --version | --vers*)
+  --version | --vers* | -V )
     echo "$version"; exit 0 ;;
 
   --localdir=* | --l*=* )
index 2bf4a4dddf36b17cd7e47cc57cadbd21bd9987b0..d67d25b02668d17407faebb5c9369f3a39802759 100644 (file)
@@ -1,6 +1,6 @@
 #! @PERL@
 # autoscan - Create configure.scan (a preliminary configure.in) for a package.
-# Copyright (C) 1994 Free Software Foundation, Inc.
+# Copyright (C) 1994, 99, 2000 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -47,10 +47,10 @@ current directory if none is given.  Search the source files for
 common portability problems and create a file `configure.scan' which
 is a preliminary `configure.in' for that package.
 
-  -m, --macrodir=DIR    directory storing data files
+  -h, --help            print this help, then exit
+  -V, --version         print version number, then exit
+      --macrodir=DIR    directory storing data files
   -v, --verbose         verbosely report processing
-  --help                print this help, then exit
-  --version             print version number, then exit
 
 Report bugs to <bug-autoconf@gnu.org>.
 EOD
@@ -59,20 +59,20 @@ EOD
 autoscan (GNU @PACKAGE@) @VERSION@
 Written by David J. MacKenzie.
 
-Copyright (C) 1994, 1999 Free Software Foundation, Inc.
+Copyright (C) 1994, 99, 2000 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.
 EOD
 
     foreach $_ (@ARGV) {
        if (/^--m[a-z]*=(.*)/) {
            $datadir = $1;
-       } elsif (/^--h/) {
+       } elsif (/^--h/ || /^-h$/) {
            print "$usage";
            exit 0;
-       } elsif (/^--verb/) {
+       } elsif (/^--verb/ || /^-v$/) {
            $verbose = 1;
-       } elsif (/^--vers/) {
+       } elsif (/^--vers/ || /^-V$/) {
            print "$version";
            exit 0;
        } elsif (/^[^-]/) {
index f1038a7ad251b560622b992aa684edaea8036b88..dac16875b61329cc49fb38958c27170bfcc821d4 100644 (file)
@@ -1,6 +1,6 @@
 #! @SHELL@
 # ifnames - print the identifiers used in C preprocessor conditionals
-# Copyright (C) 1994, 1995, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1994, 95, 99, 2000 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,6 +23,8 @@
 # Written by David MacKenzie <djm@gnu.ai.mit.edu>
 # and Paul Eggert <eggert@twinsun.com>.
 
+me=`echo "$0" | sed -e 's,.*/,,'`
+
 usage="\
 Usage: ifnames [OPTION] ...  [FILE] ...
 
@@ -32,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.
 
-  -v, --verbose         verbosely report processing
   -h, --help            print this help, then exit
-      --version         print version number, then exit
+  -V, --version         print version number, then exit
+  -v, --verbose         verbosely report processing
 
 Report bugs to <bug-autoconf@gnu.org>."
 
@@ -42,19 +44,26 @@ version="\
 ifnames (GNU @PACKAGE@) @VERSION@
 Written by David J. MacKenzie and Paul Eggert.
 
-Copyright (C) 1994, 1995, 1999 Free Software Foundation, Inc.
+Copyright (C) 1994, 95, 99, 2000 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."
 
+help="\
+Try \`$me --help' for more information."
+
 while test $# -gt 0; do
   case "$1" in
-  -h | --help | --h* )
+  --h* | -h )
     echo "$usage"; exit 0 ;;
-  --version | --versio | --versi | --vers)
+  --v* | -V )
     echo "$version"; exit 0 ;;
   --)     # Stop option processing.
     shift; break ;;
-  -*) echo "$usage" 1>&2; exit 1 ;;
+  -*)
+    exec >&2
+    echo "$me: invalid option $1"
+    echo "$help"
+    exit 1 ;;
   *) break ;;
   esac
 done
index c856b4f547d2ac9420c9e9c9a382331f3858b10a..5ca27ddfbbcc5d9e4e2ad10aca73fb60fad154ba 100644 (file)
@@ -623,6 +623,7 @@ Print the names of the files it examines and the potentially interesting
 symbols it finds in them.  This output can be voluminous.
 
 @item --version
+@itemx -V
 Print the version number of Autoconf and exit.
 @end table
 
@@ -654,6 +655,7 @@ space-separated list of the files in which that identifier occurs.
 Print a summary of the command line options and exit.
 
 @item --version
+@itemx -V
 Print the version number of Autoconf and exit.
 @end table
 
@@ -701,6 +703,7 @@ set the @code{AC_MACRODIR} environment variable to a directory; this
 option overrides the environment variable.
 
 @item --version
+@itemx -V
 Print the version number of Autoconf and exit.
 
 @item --trace=@var{macro}
@@ -796,6 +799,7 @@ Print the name of each directory where @code{autoreconf} runs
 @code{autoconf} (and @code{autoheader}, if appropriate).
 
 @item --version
+@itemx -V
 Print the version number of Autoconf and exit.
 @end table
 
@@ -1550,6 +1554,7 @@ Look for the installed macro files and @file{acconfig.h} in directory
 to a directory; this option overrides the environment variable.
 
 @item --version
+@itemx -V
 Print the version number of Autoconf and exit.
 @end table
 
@@ -5747,6 +5752,7 @@ Print a summary of the command line options, a list of the template
 files and exit.
 
 @item --version
+@itemx -V
 Print the version number of Autoconf used to create the @code{configure}
 script that generated @file{config.status} and exit.
 @end table
@@ -6165,6 +6171,7 @@ environment variable to a directory; this option overrides the
 environment variable.
 
 @item --version
+@itemx -V
 Print the version number of @code{autoupdate} and exit.
 @end table
 
index c2764a769f236a1d54731f0ea93134ef67b09620..1a3f423bd0d1583132a1d3e9cf64c2a6114b7dfa 100644 (file)
@@ -220,6 +220,7 @@ operates.
 Print a summary of the options to @code{configure}, and exit.
 
 @item --version
+@itemx -V
 Print the version of Autoconf used to generate the @code{configure}
 script, and exit.
 
index f1038a7ad251b560622b992aa684edaea8036b88..dac16875b61329cc49fb38958c27170bfcc821d4 100644 (file)
@@ -1,6 +1,6 @@
 #! @SHELL@
 # ifnames - print the identifiers used in C preprocessor conditionals
-# Copyright (C) 1994, 1995, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1994, 95, 99, 2000 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,6 +23,8 @@
 # Written by David MacKenzie <djm@gnu.ai.mit.edu>
 # and Paul Eggert <eggert@twinsun.com>.
 
+me=`echo "$0" | sed -e 's,.*/,,'`
+
 usage="\
 Usage: ifnames [OPTION] ...  [FILE] ...
 
@@ -32,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.
 
-  -v, --verbose         verbosely report processing
   -h, --help            print this help, then exit
-      --version         print version number, then exit
+  -V, --version         print version number, then exit
+  -v, --verbose         verbosely report processing
 
 Report bugs to <bug-autoconf@gnu.org>."
 
@@ -42,19 +44,26 @@ version="\
 ifnames (GNU @PACKAGE@) @VERSION@
 Written by David J. MacKenzie and Paul Eggert.
 
-Copyright (C) 1994, 1995, 1999 Free Software Foundation, Inc.
+Copyright (C) 1994, 95, 99, 2000 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."
 
+help="\
+Try \`$me --help' for more information."
+
 while test $# -gt 0; do
   case "$1" in
-  -h | --help | --h* )
+  --h* | -h )
     echo "$usage"; exit 0 ;;
-  --version | --versio | --versi | --vers)
+  --v* | -V )
     echo "$version"; exit 0 ;;
   --)     # Stop option processing.
     shift; break ;;
-  -*) echo "$usage" 1>&2; exit 1 ;;
+  -*)
+    exec >&2
+    echo "$me: invalid option $1"
+    echo "$help"
+    exit 1 ;;
   *) break ;;
   esac
 done
index f1038a7ad251b560622b992aa684edaea8036b88..dac16875b61329cc49fb38958c27170bfcc821d4 100644 (file)
@@ -1,6 +1,6 @@
 #! @SHELL@
 # ifnames - print the identifiers used in C preprocessor conditionals
-# Copyright (C) 1994, 1995, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1994, 95, 99, 2000 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,6 +23,8 @@
 # Written by David MacKenzie <djm@gnu.ai.mit.edu>
 # and Paul Eggert <eggert@twinsun.com>.
 
+me=`echo "$0" | sed -e 's,.*/,,'`
+
 usage="\
 Usage: ifnames [OPTION] ...  [FILE] ...
 
@@ -32,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.
 
-  -v, --verbose         verbosely report processing
   -h, --help            print this help, then exit
-      --version         print version number, then exit
+  -V, --version         print version number, then exit
+  -v, --verbose         verbosely report processing
 
 Report bugs to <bug-autoconf@gnu.org>."
 
@@ -42,19 +44,26 @@ version="\
 ifnames (GNU @PACKAGE@) @VERSION@
 Written by David J. MacKenzie and Paul Eggert.
 
-Copyright (C) 1994, 1995, 1999 Free Software Foundation, Inc.
+Copyright (C) 1994, 95, 99, 2000 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."
 
+help="\
+Try \`$me --help' for more information."
+
 while test $# -gt 0; do
   case "$1" in
-  -h | --help | --h* )
+  --h* | -h )
     echo "$usage"; exit 0 ;;
-  --version | --versio | --versi | --vers)
+  --v* | -V )
     echo "$version"; exit 0 ;;
   --)     # Stop option processing.
     shift; break ;;
-  -*) echo "$usage" 1>&2; exit 1 ;;
+  -*)
+    exec >&2
+    echo "$me: invalid option $1"
+    echo "$help"
+    exit 1 ;;
   *) break ;;
   esac
 done
index c786574a9c675cba226ec2d1f404c29fb88539ad..479bc040e7b7161e7433e8ad62aa12b32c11fe76 100644 (file)
@@ -709,7 +709,7 @@ Defaults for the options are specified in brackets.
 
 Configuration:
   -h, --help              print this message
-      --version           print the version of autoconf that created configure
+  -V, --version           print the version of autoconf that created configure
   -q, --quiet, --silent   do not print \`checking...' messages
       --cache-file=FILE   cache test results in FILE
   -n, --no-create         do not create output files
@@ -914,7 +914,7 @@ Some influent environment variables:$ac_arg_var_help"
   -v | -verbose | --verbose | --verbos | --verbo | --verb)
     verbose=yes ;;
 
-  -version | --version | --versio | --versi | --vers)
+  -version | --version | --versio | --versi | --vers | -V)
     echo "configure generated by autoconf version ]AC_ACVERSION["
     exit 0 ;;
 
index 119f0bcaaab69f817ea001429f01284ec8b35677..8825ac8d149726779deb265a1db82e08a8fee3cd 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.020.
-.TH AUTOCONF "1" "February 2000" "GNU autoconf 2.14a" FSF
+.TH AUTOCONF "1" "March 2000" "GNU autoconf 2.14a" FSF
 .SH NAME
 autoconf \- Generate configuration scripts
 .SH SYNOPSIS
@@ -15,7 +15,7 @@ If the option `--trace' is used, no configuration script is created.
 \fB\-h\fR, \fB\-\-help\fR
 print this help, then exit
 .TP
-\fB\-\-version\fR
+\fB\-V\fR, \fB\-\-version\fR
 print version number, then exit
 .TP
 \fB\-m\fR, \fB\-\-macrodir\fR=\fIDIR\fR
index 49ab7d964dd231fcbee47e9fa3299d7798256356..d745d58c8018f5dcba6fdd7d851b64ab8e29fe63 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.020.
-.TH AUTOHEADER "1" "February 2000" "GNU autoconf 2.14a" FSF
+.TH AUTOHEADER "1" "March 2000" "GNU autoconf 2.14a" FSF
 .SH NAME
 autoheader \- Create a template header for configure
 .SH SYNOPSIS
@@ -13,9 +13,12 @@ given.
 \fB\-h\fR, \fB\-\-help\fR
 print this help, then exit
 .TP
-\fB\-\-version\fR
+\fB\-V\fR, \fB\-\-version\fR
 print version number, then exit
 .TP
+\fB\-v\fR, \fB\-\-verbose\fR
+verbosely report processing
+.TP
 \fB\-d\fR, \fB\-\-debug\fR
 don't remove temporary files
 .TP
@@ -24,9 +27,6 @@ directory storing Autoconf's macro files
 .TP
 \fB\-l\fR, \fB\-\-localdir\fR=\fIDIR\fR
 directory storing `aclocal.m4' and `acconfig.h'
-.TP
-\fB\-v\fR, \fB\-\-verbose\fR
-verbosely report processing
 .SH AUTHOR
 Written by Roland McGrath.
 .SH "REPORTING BUGS"
index 54348af5d5d883244f8191ff4acc7ab6c7c9df8c..4aff30cb10c37c4e1cfb66310c8b80657b46824f 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.020.
-.TH AUTORECONF "1" "February 2000" "GNU autoconf 2.14a" FSF
+.TH AUTORECONF "1" "March 2000" "GNU autoconf 2.14a" FSF
 .SH NAME
 autoreconf \- Update generated configuration files
 .SH SYNOPSIS
@@ -14,6 +14,15 @@ older than their predecessors.  If you install a new version of
 Autoconf, running `autoreconf' remakes all of the files by giving it
 the `--force' option.
 .TP
+\fB\-h\fR, \fB\-\-help\fR
+print this help, then exit
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+print version number, then exit
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+verbosely report processing
+.TP
 \fB\-m\fR, \fB\-\-macrodir\fR=\fIDIR\fR
 directory storing macro files
 .TP
@@ -22,15 +31,6 @@ directory storing `aclocal.m4' and `acconfig.h'
 .TP
 \fB\-f\fR, \fB\-\-force\fR
 consider every files are obsolete
-.TP
-\fB\-v\fR, \fB\-\-verbose\fR
-verbosely report processing
-.TP
-\fB\-h\fR, \fB\-\-help\fR
-print this help, then exit
-.TP
-\fB\-\-version\fR
-print version number, then exit
 .SS "The following options are passed to `automake':"
 .TP
 \fB\-\-cygnus\fR
@@ -52,7 +52,7 @@ Written by David J. MacKenzie.
 .SH "REPORTING BUGS"
 Report bugs to <bug-autoconf@gnu.org>.
 .SH COPYRIGHT
-Copyright \(co 1994, 1999 Free Software Foundation, Inc.
+Copyright \(co 1994, 99, 2000 Free Software Foundation, Inc.
 .br
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
index b76de8b74bb741a1ff67b6e9f8ccf2fcedd1f629..2b4ce029565af6b56a8c833c6ecb9f431d21b066 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.020.
-.TH AUTOSCAN "1" "February 2000" "GNU autoconf 2.14a" FSF
+.TH AUTOSCAN "1" "March 2000" "GNU autoconf 2.14a" FSF
 .SH NAME
 autoscan \- Generate a preliminary configure.in
 .SH SYNOPSIS
@@ -11,26 +11,26 @@ current directory if none is given.  Search the source files for
 common portability problems and create a file `configure.scan' which
 is a preliminary `configure.in' for that package.
 .TP
-\fB\-m\fR, \fB\-\-macrodir\fR=\fIDIR\fR
+\fB\-h\fR, \fB\-\-help\fR
+print this help, then exit
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+print version number, then exit
+.TP
+\fB\-\-macrodir\fR=\fIDIR\fR
 directory storing data files
 .TP
 \fB\-v\fR, \fB\-\-verbose\fR
 verbosely report processing
-.TP
-\fB\-\-help\fR
-print this help, then exit
-.TP
-\fB\-\-version\fR
-print version number, then exit
 .SH AUTHOR
 Written by David J. MacKenzie.
 .SH "REPORTING BUGS"
 Report bugs to <bug-autoconf@gnu.org>.
 .SH COPYRIGHT
-Copyright \(co 1994, 1999 Free Software Foundation, Inc.
+Copyright \(co 1994, 99, 2000 Free Software Foundation, Inc.
 .br
 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.
 .SH "SEE ALSO"
 .BR autoconf (1),
 .BR autoreconf (1),
index 6b7c36349be0fe24af89543b564659244e15d98b..1e473ceb8d8fb0274ae6b65624a58d84a953ad64 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.020.
-.TH AUTOUPDATE "1" "February 2000" "GNU autoconf 2.14a" FSF
+.TH AUTOUPDATE "1" "March 2000" "GNU autoconf 2.14a" FSF
 .SH NAME
 autoupdate \- Update a configure.in to a newer Autoconf
 .SH SYNOPSIS
@@ -10,20 +10,20 @@ Update the TEMPLATE-FILE... if given, or `configure.in' by default, to
 the syntax of the current version of `autoconf'.  The original files
 are backed up.
 .TP
-\fB\-m\fR, \fB\-\-macrodir\fR=\fIDIR\fR
-directory storing Autoconf's files
-.TP
 \fB\-h\fR, \fB\-\-help\fR
 print this help, then exit
 .TP
-\fB\-\-version\fR
+\fB\-V\fR, \fB\-\-version\fR
 print version number, then exit
+.TP
+\fB\-m\fR, \fB\-\-macrodir\fR=\fIDIR\fR
+directory storing Autoconf's files
 .SH AUTHOR
 Written by David J. MacKenzie.
 .SH "REPORTING BUGS"
 Report bugs to <bug-autoconf@gnu.org>.
 .SH COPYRIGHT
-Copyright \(co 1994, 1999 Free Software Foundation, Inc.
+Copyright \(co 1994, 99, 2000 Free Software Foundation, Inc.
 .br
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
index d6d44f3fdd20c9fd913f1e159d7cc4924e0d9345..fdfcfb20fd1d24210c688e3af8d0ed0a98058790 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.020.
-.TH IFNAMES "1" "February 2000" "GNU autoconf 2.14a" FSF
+.TH IFNAMES "1" "March 2000" "GNU autoconf 2.14a" FSF
 .SH NAME
 ifnames \- Extract CPP conditionals from a set of files
 .SH SYNOPSIS
@@ -12,20 +12,20 @@ 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.
 .TP
-\fB\-v\fR, \fB\-\-verbose\fR
-verbosely report processing
-.TP
 \fB\-h\fR, \fB\-\-help\fR
 print this help, then exit
 .TP
-\fB\-\-version\fR
+\fB\-V\fR, \fB\-\-version\fR
 print version number, then exit
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+verbosely report processing
 .SH AUTHOR
 Written by David J. MacKenzie and Paul Eggert.
 .SH "REPORTING BUGS"
 Report bugs to <bug-autoconf@gnu.org>.
 .SH COPYRIGHT
-Copyright \(co 1994, 1995, 1999 Free Software Foundation, Inc.
+Copyright \(co 1994, 95, 99, 2000 Free Software Foundation, Inc.
 .br
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.