This is another patch that is required for MinGW.
Currently, running autogen.sh with a default MinGW install will break
when if the git repo was fetched using TortoiseGit/msys-git on Windows
as it defaults to converting the .ac/.am/.sh to CRLF.
Autoconf appears to have issues handling CRLF when strings are broken on
multiple lines, etc.
Right now, only the .ac seems to require LF, but I think it's probably a
good thing to enforce LF for all of .ac/.am/.sh as no system should
require those to be CRLF. For the record, this is what we use in another
project (libusb) that supports Linux/OSX/Windows.
Regards,
/Pete
>From 10a7e032c3bf3b2e08e53676e74020b03c15b287 Mon Sep 17 00:00:00 2001
From: Pete Batard <[email protected]>
Date: Mon, 16 Jan 2012 16:58:06 +0000
Subject: [PATCH] add .gitattributes and enforce LF on .ac/.am/.sh
---
.gitattributes | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
create mode 100644 .gitattributes
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..4b212e8
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,3 @@
+*.sh eol=lf
+*.ac eol=lf
+*.am eol=lf
--
1.7.8.msysgit.0