From: Ralf Wildenhues Date: Tue, 2 May 2006 20:09:24 +0000 (+0000) Subject: * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for X-Git-Tag: AUTOCONF-2.59d~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99ff5f6603d8ce1dfec31e8ded89f3edd4b43e15;p=thirdparty%2Fautoconf.git * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for traditional shells like the Solaris one that do not use the first IFS character for assembling `$*'. Prompted by a related report from autoconf_bug@nro.ca. --- diff --git a/ChangeLog b/ChangeLog index 6007d44c8..6b196c5c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-05-02 Ralf Wildenhues + + * lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): Cater for + traditional shells like the Solaris one that do not use the + first IFS character for assembling `$*'. + Prompted by a related report from autoconf_bug@nro.ca. + 2006-05-01 Paul Eggert and Ralf Wildenhues diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 22a522d2f..359ce4422 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -1677,9 +1677,12 @@ shift 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 +[# Remember, the first character of IFS is used to create $]*, +# except with old shells: +$1_os=$[*] IFS=$ac_save_IFS +case $$1_os in *\ *) $1_os=`echo "$$1_os" | sed 's/ /-/g'`;; esac +AC_SUBST([$1_os])dnl ])# _AC_CANONICAL_SPLIT