From 93cf24449e9f7fc21aac2c431f0e13d9059fff81 Mon Sep 17 00:00:00 2001 From: John <48534004+BitsOfBinary@users.noreply.github.com> Date: Sat, 28 May 2022 18:47:20 +0100 Subject: [PATCH] Fix autoreconf error due to m4 CRLF issue (#1717) Trying to run `autoreconf -fiv` on a Windows system using wsl causes the following error: ``` autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'. libtoolize: copying file 'build-aux/ltmain.sh' .ibtoolize: error: AC_CONFIG_MACRO_DIRS([m4]) conflicts with ACLOCAL_AMFLAGS=-I m4 autoreconf: libtoolize failed with exit status: 1 ``` This is likely due to a CRLF error in the makefile. This commit applies the following fix: https://pete.akeo.ie/2010/12/that-darn-libtoolize-acconfigmacrodirm4.html --- .gitattributes | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..d149bbf9 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +# https://pete.akeo.ie/2010/12/that-darn-libtoolize-acconfigmacrodirm4.html +*.sh text eol=lf +*.ac text eol=lf +*.am text eol=lf \ No newline at end of file