From 270cc51063945729f378dfc41b55a55dfbe91b66 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 28 Sep 2000 17:43:35 +0000 Subject: [PATCH] * acgeneral.m4 (AC_SHELL_UNSET): Don't rely on variable assignments changing $?. --- ChangeLog | 5 +++++ acgeneral.m4 | 2 +- lib/autoconf/general.m4 | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 801a4590..71384d27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-09-28 Pavel Roskin + + * acgeneral.m4 (AC_SHELL_UNSET): Don't rely on variable + assignments changing $?. + 2000-09-28 Pavel Roskin * acgeneral.m4 (_AC_OUTPUT_FILES): Fixed exit status. diff --git a/acgeneral.m4 b/acgeneral.m4 index 59c937ab..14dc82e1 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -804,7 +804,7 @@ $debug || # Try to unset the env VAR, otherwise set it to # VALUE-IF-UNSET-NOT-SUPPORTED. `ac_unset' must have been computed. define([AC_SHELL_UNSET], -[$ac_unset $1 || test "${$1+set}" != set || $1=$2 && export $1]) +[$ac_unset $1 || test "${$1+set}" != set || { $1=$2; export $1; }]) # AC_SHELL_MKDIR_P(PATH) diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 59c937ab..14dc82e1 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -804,7 +804,7 @@ $debug || # Try to unset the env VAR, otherwise set it to # VALUE-IF-UNSET-NOT-SUPPORTED. `ac_unset' must have been computed. define([AC_SHELL_UNSET], -[$ac_unset $1 || test "${$1+set}" != set || $1=$2 && export $1]) +[$ac_unset $1 || test "${$1+set}" != set || { $1=$2; export $1; }]) # AC_SHELL_MKDIR_P(PATH)