]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Print a warning if the mode is not specified.
authorRobert Boehne <rboehne@gnu.org>
Sun, 3 Nov 2002 02:16:06 +0000 (02:16 +0000)
committerRobert Boehne <rboehne@gnu.org>
Sun, 3 Nov 2002 02:16:06 +0000 (02:16 +0000)
* doc/libtool.texi: Document the change that the mode must be
specified.

ChangeLog
doc/libtool.texi
ltmain.in

index b19dc2c30b0c9747e02fcdcd73533ec747b9f061..80633d62d0a9deb5a13800797fdaef6579ceeea9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-11-02  Robert Boehne  <rboehne@gnu.org>
+
+       * ltmain.in: Print a warning if the mode is not specified.
+       * doc/libtool.texi: Document the change that the mode must be
+       specified.
+
 2002-10-30  Charles Wilson  <cwilson@ece.gatech.edu>
 
        * libtool.m4 (AC_LIBTOOL_PROG_CC_C_O): use printf, not
index f002e8d5e8a4e1776eba1d563dfc9dc6d42d42ca..c782ef5bd03440fed15613a187f4784058ef1f5b 100644 (file)
@@ -1081,10 +1081,13 @@ specified, then detailed help for @var{mode} is
 displayed.
 
 @item --mode=@var{mode}
-Use @var{mode} as the operation mode.  By default, the operation mode is
-inferred from the @var{mode-args}.
+Use @var{mode} as the operation mode.  If not specified, an attempt is
+made to inferr the operation mode from the @var{mode-args}.  Not specifying
+the @var{mode} is currently deprecated, as there are too many situations
+where it is not possible to guess.  Future versions of Libtool will require
+that @var{mode} be explicity set.
 
-If @var{mode} is specified, it must be one of the following:
+@var{mode} must be set to one of the following:
 
 @table @samp
 @item compile
index f293d4eedea24b291a6dce7b2b55c15c58737dde..82c9225e19b4d60685b3df99a34571bc1127a241 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -302,6 +302,8 @@ if test -z "$show_help"; then
 
   # Infer the operation mode.
   if test -z "$mode"; then
+    $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
+    $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
     case $nonopt in
     *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
       mode=link