Browse Source

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
master
sam 13 years ago
parent
commit
2d40e39fd4
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      autotools/bootstrap

+ 12
- 1
autotools/bootstrap View File

@@ -2,7 +2,7 @@


# bootstrap: generic bootstrap/autogen.sh script for autotools projects # bootstrap: generic bootstrap/autogen.sh script for autotools projects
# #
# Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
# Copyright (c) 2002-2011 Sam Hocevar <sam@hocevar.net>
# #
# This program is free software. It comes without any warranty, to # This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it # the extent permitted by applicable law. You can redistribute it
@@ -112,6 +112,17 @@ if test -n "$auxdir"; then
aclocalflags="${aclocalflags} -I $auxdir -I ." aclocalflags="${aclocalflags} -I $auxdir -I ."
fi 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 # Explain what we are doing from now
set -x set -x




Loading…
Cancel
Save