[Top][All Lists]

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

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF

From: Eric Blake
Subject: Re: cygwin -mno-cygwin AC_CHECK_SIZEOF
Date: Fri, 01 Dec 2006 07:22:31 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20061025 Thunderbird/ Mnenhy/

Hash: SHA1

According to Ralf Wildenhues on 12/1/2006 6:57 AM:
>> Avoiding the troublesome line ending seems best to me.
> How does this mesh with
> <>
> or formulated differently, if we're going to break POSIX compatibility,
> do we at least have sufficient evidence that all known systems cope with
> it?

POSIX requires cat to handle all files, not just text.  And I can't find
anywhere in POSIX that requires output handed to command substitution to
be a text file; command substitution is worded as removing any sequence of
one or more newlines, but nothing seems to say that a trailing newline
must have been present.  And autoconf only uses the file created by
AC_LANG_INT_SAVE in `cat conftest.val`.

> FWIW, the patch in that thread undid a previous change that removed the
> line ending.

Yes, I think that reverting the older patch and removing the \n is safe
according to POSIX rules.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


reply via email to

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