configure: conftest win32: don't translate LF to CRLF
commita7eef33859223cc6e8d7ae058db8d991e3c9b9f6
authorAvi Halachmi (:avih) <avihpit@yahoo.com>
Tue, 25 Jun 2019 12:43:24 +0000 (25 15:43 +0300)
committerAvi Halachmi (:avih) <avihpit@yahoo.com>
Tue, 25 Jun 2019 13:44:43 +0000 (25 16:44 +0300)
tree1921f91a819a4c4efe3404a61386dbbef9ad4b73
parent84779b2b843bbb348b79750ddecc503f11c70ec4
configure: conftest win32: don't translate LF to CRLF

This removes a spurious \r at $gcc_{major,minor} in configure on cygwin.

Details:

The EOL output of conftest.exe for windows was \r\n . Now it's only \n .
The output of conftest is used with sh command substitutions which trim
trailing newlines, but not all windows shells consider \r\n as newline.

E.g. msys2 and busybox (for windows) were designed for tight integration
with windows apps and their shells do trim \r\n, but cygwin sh is closer
to POSIX and trims only \n - leaving \r at the string.
conftest.c