2006-03-16 Stepan Kasal * lib/m4sugar/m4sh.m4 (_AS_PREPARE): Move the IFS setup and CDPATH sanitizing... (AS_SHELL_SANITIZE): ...here; mention _AS_PATH_WALK needs IFS set. * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Add an explanation why IFS is restored so late; thank you, Ralf, for reminding us. Index: lib/autoconf/general.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v retrieving revision 1.890 diff -u -r1.890 general.m4 --- lib/autoconf/general.m4 21 Feb 2006 07:16:33 -0000 1.890 +++ lib/autoconf/general.m4 16 Mar 2006 13:19:00 -0000 @@ -1664,6 +1664,7 @@ AC_SUBST([$1_cpu], [$[1]])dnl AC_SUBST([$1_vendor], [$[2]])dnl shift; shift +[# Remember, the first character of IFS is used to create $]*: AC_SUBST([$1_os], [$[*]])dnl IFS=$ac_save_IFS ])# _AC_CANONICAL_SPLIT Index: lib/m4sugar/m4sh.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/m4sugar/m4sh.m4,v retrieving revision 1.161 diff -u -r1.161 m4sh.m4 --- lib/m4sugar/m4sh.m4 14 Mar 2006 07:18:18 -0000 1.161 +++ lib/m4sugar/m4sh.m4 16 Mar 2006 13:19:02 -0000 @@ -326,6 +326,14 @@ _AS_PATH_SEPARATOR_PREPARE _AS_UNSET_PREPARE +# IFS +# We need space, tab and new line, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +as_nl=' +' +IFS=" $as_nl" + # Find who we are. Look in the path if we contain no path at all # relative or not. case $[0] in @@ -371,6 +379,8 @@ # Name of the executable. as_me=`AS_BASENAME("$[0]")` +# CDPATH. +$as_unset CDPATH ]) @@ -396,15 +406,6 @@ _AS_TEST_PREPARE _AS_TR_CPP_PREPARE _AS_TR_SH_PREPARE - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH ])