From df52f56995af8e17c28713cf115e0ec7c0043f70 Mon Sep 17 00:00:00 2001 From: Fons Rademakers <Fons.Rademakers@cern.ch> Date: Fri, 13 Feb 2004 18:53:01 +0000 Subject: [PATCH] replace ${!c} for a portable construct. git-svn-id: http://root.cern.ch/svn/root/trunk@8201 27541ba8-7e3a-0410-8455-c3a389f83636 --- configure | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/configure b/configure index e4a4c519247..a19a1b3815a 100755 --- a/configure +++ b/configure @@ -92,15 +92,16 @@ AFS \ TABLE \ " configenvvars= -#for c in $envvars ; do -# if test ! "x${!c}" = "x" ; then -# if test ! "x$configenvvars" = "x" ; then -# configenvvars="$configenvvars $c=${!c}" -# else -# configenvvars=$c=${!c} -# fi -# fi -#done +for c in $envvars ; do + cc=`eval echo "$"$c` + if test ! "x$cc" = "x" ; then + if test ! "x$configenvvars" = "x" ; then + configenvvars="$configenvvars $c=$cc" + else + configenvvars="$c=$cc" + fi + fi +done configargs="$*" -- GitLab