]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Work around a currently
authorAkim Demaille <akim@epita.fr>
Mon, 22 Jan 2001 11:14:37 +0000 (11:14 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 22 Jan 2001 11:14:37 +0000 (11:14 +0000)
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.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index 5ecc94fb5b876fbc1d7d94c897158eeab91a40b0..18c1dd0236747a779489bf17058df5eaef49565d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-01-22  Akim Demaille  <akim@epita.fr>
+
+       * 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  <akim@epita.fr>
 
        * acfunctions.m4 (AC_FUNC_GETGROUPS): Typo :(.
index 01cf8d69762652d9f12303d849219ad23f70e271..05a8a702bd3113ad72be6a64d8fadffc9a06eb16 100644 (file)
@@ -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
 
index 01cf8d69762652d9f12303d849219ad23f70e271..05a8a702bd3113ad72be6a64d8fadffc9a06eb16 100644 (file)
@@ -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