classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build question


From: Eric Blake
Subject: Re: build question
Date: Sat, 09 Feb 2002 11:35:19 -0700

Tom Tromey wrote:
> 
> >>>>> "Eric" == Eric Blake <address@hidden> writes:
> 
> Eric> automake: native/jni/java-lang/Makefile.am: `\' is not a standard
> Eric> libtool library name
> 
> This is curious.  This error shouldn't happen.  Apparently what is
> happening here is that automake thinks that the `\' continuation
> character in the definition of pkglib_LTLIBRARIES is supposed to be
> the name of a library.
> 
> I can't reproduce this problem here.  Since you are using Cygwin,
> which most of us aren't, perhaps the problem is somehow related to
> that.  For instance, it could be a line termination problem.
> 
> Could you investigate this for me?  I'd like to fix automake.

It has to be line terminator translation somewhere, because this hack to
automake makes everything work for me.  I'm sure you could find a more
elegant way to fix the problem, and that the real fix should be upstream
in the sources rather than in the final executable; however, I'm not
familiar enough with the automake sources and/or perl to suggest a
better fix.

$ diff -u automake.bak automake
--- automake.bak        Sat Feb  9 10:35:42 2002
+++ automake    Sat Feb  9 11:31:48 2002
@@ -6455,6 +6455,7 @@

     while ($_ = $am_file->getline)
     {
+        s/\r\n/\n/g;
        if (/$IGNORE_PATTERN/o)
        {
            # Merely delete comments beginning with two hashes.
@@ -6498,6 +6499,7 @@
     # FIXME: shouldn't use $_ in this loop; it is too big.
     while ($_)
     {
+        s/\r\n/\n/g;
        $_ .= "\n"
            unless substr ($_, -1, 1) eq "\n";

-- 
This signature intentionally left boring.

Eric Blake             address@hidden
  BYU student, free software programmer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]