autoconf
[Top][All Lists]
Advanced

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

Stripping newline in autom4te


From: Pavel Roskin
Subject: Stripping newline in autom4te
Date: Wed, 25 Jul 2001 10:39:03 -0400 (EDT)

Hello!

I have figured out why autoconf stopped working for me.  I'm using mktemp
that supports `-d', but it outputs a newline after the directory name.
It's mktemp-1.5-8 from RedHat 7.1.

Using "chomp" on the output fixes the problem.

Changelog:
        * autom4te.in (mktmpdir): Strip trailing newline from mktemp
        output.

-----------------------
--- autom4te.in
+++ autom4te.in
@@ -285,6 +285,7 @@
   # If mktemp supports dirs, use it.
   $tmp = `(umask 077 &&
            mktemp -d -q "$TMPDIR/${signature}XXXXXX") 2>/dev/null`;
+  chomp $tmp;

   if (!$tmp || ! -d $tmp)
     {
-----------------------

-- 
Regards,
Pavel Roskin




reply via email to

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