From: Akim Demaille Date: Mon, 22 Jan 2001 11:14:37 +0000 (+0000) Subject: * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Work around a currently X-Git-Tag: autoconf-2.50~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd0cecab2a5af02a754c1627132e145ba68e76da;p=thirdparty%2Fautoconf.git * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Work around a currently impossible to describe bug of SunOS 4.1.3 which causes a shell crash when using `VAR=${VAR="$default"}'. Reported and diagnosed by Kevin Ryde. --- diff --git a/ChangeLog b/ChangeLog index 5ecc94fb5..18c1dd023 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-01-22 Akim Demaille + + * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Work around a currently + impossible to describe bug of SunOS 4.1.3 which causes a shell + crash when using `VAR=${VAR="$default"}'. + Reported and diagnosed by Kevin Ryde. + 2001-01-22 Akim Demaille * acfunctions.m4 (AC_FUNC_GETGROUPS): Typo :(. diff --git a/acgeneral.m4 b/acgeneral.m4 index 01cf8d697..05a8a702b 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -3746,18 +3746,20 @@ m4_ifval(AC_LIST_HEADERS()AC_LIST_LINKS()AC_LIST_FILES()AC_LIST_COMMANDS(), [cat >>$CONFIG_STATUS <<\EOF # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then m4_ifset([AC_LIST_FILES], -[ CONFIG_FILES=${CONFIG_FILES="$config_files"} +[ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files ])dnl m4_ifset([AC_LIST_HEADERS], -[ CONFIG_HEADERS=${CONFIG_HEADERS="$config_headers"} +[ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers ])dnl m4_ifset([AC_LIST_LINKS], -[ CONFIG_LINKS=${CONFIG_LINKS="$config_links"} +[ test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links ])dnl m4_ifset([AC_LIST_COMMANDS], -[ CONFIG_COMMANDS=${CONFIG_COMMANDS="$config_commands"} +[ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands ])dnl fi diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 01cf8d697..05a8a702b 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -3746,18 +3746,20 @@ m4_ifval(AC_LIST_HEADERS()AC_LIST_LINKS()AC_LIST_FILES()AC_LIST_COMMANDS(), [cat >>$CONFIG_STATUS <<\EOF # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then m4_ifset([AC_LIST_FILES], -[ CONFIG_FILES=${CONFIG_FILES="$config_files"} +[ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files ])dnl m4_ifset([AC_LIST_HEADERS], -[ CONFIG_HEADERS=${CONFIG_HEADERS="$config_headers"} +[ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers ])dnl m4_ifset([AC_LIST_LINKS], -[ CONFIG_LINKS=${CONFIG_LINKS="$config_links"} +[ test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links ])dnl m4_ifset([AC_LIST_COMMANDS], -[ CONFIG_COMMANDS=${CONFIG_COMMANDS="$config_commands"} +[ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands ])dnl fi