Hi,

On 6 Apr 2001, Alexandre Oliva wrote:
> > libtool: compile: unable to infer tagged configuration
> > libtool: compile: specify a tag with `--tag'
> > make[1]: *** [allchblk.lo] Error 1
> > make[1]: Leaving directory `/usr/src/gcc/i686-pc-linux-gnu/boehm-gc'
> > make: *** [all-target-boehm-gc] Error 2
>
> Looks like the set of switches passed to xgcc may have changed.  This
> confuses libtool.
>
> Remove i686-pc-linux-gnu/config.cache, wipe out
> i686-pc-linux-gnu/boehm-gc and try again.

This reminds me: It would be good to be able to also name the "default"
tag, and not only the additional tags (CXX and the java thing) explicitely
to remove all ambiguities (then this could be used in the case above for
users convenience).  It's only needed to make libtool stop complaining
at that default tag, everything else is taken care of already.  In the
patch I named that default tag "C".


2001-04-05  Michael Matz  <[EMAIL PROTECTED]>

        * ltmain.in: recognize "C" as default --tag argument to resolve
        also ambiguities with that language.


Ciao,
Michael.
Index: ltmain.in
===================================================================
RCS file: /home/cvs/libtool/ltmain.in,v
retrieving revision 1.200.2.55
diff -u -r1.200.2.55 ltmain.in
--- ltmain.in   2001/04/01 14:28:18     1.200.2.55
+++ ltmain.in   2001/04/06 05:36:39
@@ -136,13 +136,20 @@
         ;;
       esac
 
-      if grep "^### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then
-        taglist="$taglist $tagname"
-       # Evaluate the configuration.
-       eval "`sed -n -e '/^### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^### END 
LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`"
-      else
-       echo "$progname: ignoring unknown tag $tagname" 1>&2
-      fi
+      case $tagname in
+      C) # don't test for the "default" C tag, as we know, it's there, but
+         # not specially marked
+        ;;
+      *)
+        if grep "^### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then
+          taglist="$taglist $tagname"
+         # Evaluate the configuration.
+         eval "`sed -n -e '/^### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^### END 
+LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`"
+        else
+         echo "$progname: ignoring unknown tag $tagname" 1>&2
+        fi
+        ;;
+      esac
       ;;
     *)
       eval "$prev=\$arg"

Reply via email to