From 2d40e39fd43eac26fcdbb4089136f6a34ca64362 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 20 Oct 2011 09:23:06 +0000 Subject: [PATCH] Fix IFS handling for M4PATH in the bootstrap script. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/research@4788 92316355-f0b4-4df1-b90c-862c8a59935f --- autotools/bootstrap | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/autotools/bootstrap b/autotools/bootstrap index 5752522..23d08f6 100755 --- a/autotools/bootstrap +++ b/autotools/bootstrap @@ -2,7 +2,7 @@ # bootstrap: generic bootstrap/autogen.sh script for autotools projects # -# Copyright (c) 2002-2010 Sam Hocevar +# Copyright (c) 2002-2011 Sam Hocevar # # This program is free software. It comes without any warranty, to # the extent permitted by applicable law. You can redistribute it @@ -112,6 +112,17 @@ if test -n "$auxdir"; then aclocalflags="${aclocalflags} -I $auxdir -I ." fi +# Honour M4PATH because sometimes M4 doesn't +save_IFS=$IFS +IFS=: +tmp="$M4PATH" +for x in $tmp; do + if test -n "$x"; then + aclocalflags="${aclocalflags} -I $x" + fi +done +IFS=$save_IFS + # Explain what we are doing from now set -x