+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
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
# 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