]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-02-19 Felix Lee <flee@cygnus.com>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Thu, 18 Feb 1999 16:15:41 +0000 (16:15 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Thu, 18 Feb 1999 16:15:41 +0000 (16:15 +0000)
* acgeneral.m4 (AC_CACHE_VAL): Don't need backticks. This is a
performance enhancement for about a 5% reduction in the runtime of
the generated configure script.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index af0f5a28feeec47cb29a81816f66f524d57c5049..364b0ab90db3c4a41a709a86ff24d400037961cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-02-19  Felix Lee  <flee@cygnus.com>
+
+       * acgeneral.m4 (AC_CACHE_VAL): Don't need backticks. This is a
+       performance enhancement for about a 5% reduction in the runtime of
+       the generated configure script.
+
 1999-02-18  Ben Elliston  <bje@cygnus.com>
 
        * config.guess: Detect NEC EWS4800. Contributed by Koji Arai
index 393ab2a1f919ce2223872315eb346218cb82a4ef..e8a01febfccda90f6bd1cfdd8b2188d28bbabd96 100644 (file)
@@ -1,7 +1,7 @@
 dnl Parameterized macros.
 dnl Requires GNU m4.
 dnl This file is part of Autoconf.
-dnl Copyright (C) 1992, 93, 94, 95, 96, 1998 Free Software Foundation, Inc.
+dnl Copyright (C) 1992, 93, 94, 95, 96, 98, 1999 Free Software Foundation, Inc.
 dnl
 dnl This program is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU General Public License as published by
@@ -1130,8 +1130,7 @@ define(AC_CACHE_VAL,
 [dnl We used to use the below line, but it fails if the 1st arg is a
 dnl shell variable, so we need the eval.
 dnl if test "${$1+set}" = set; then
-dnl the '' avoids an AIX 4.1 sh bug ("invalid expansion").
-if eval "test \"`echo '$''{'$1'+set}'`\" = set"; then
+if eval "test \"\${$1+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&AC_FD_MSG
 else
   $2
index 393ab2a1f919ce2223872315eb346218cb82a4ef..e8a01febfccda90f6bd1cfdd8b2188d28bbabd96 100644 (file)
@@ -1,7 +1,7 @@
 dnl Parameterized macros.
 dnl Requires GNU m4.
 dnl This file is part of Autoconf.
-dnl Copyright (C) 1992, 93, 94, 95, 96, 1998 Free Software Foundation, Inc.
+dnl Copyright (C) 1992, 93, 94, 95, 96, 98, 1999 Free Software Foundation, Inc.
 dnl
 dnl This program is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU General Public License as published by
@@ -1130,8 +1130,7 @@ define(AC_CACHE_VAL,
 [dnl We used to use the below line, but it fails if the 1st arg is a
 dnl shell variable, so we need the eval.
 dnl if test "${$1+set}" = set; then
-dnl the '' avoids an AIX 4.1 sh bug ("invalid expansion").
-if eval "test \"`echo '$''{'$1'+set}'`\" = set"; then
+if eval "test \"\${$1+set}\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&AC_FD_MSG
 else
   $2