improved set_default_value

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15905 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-01-11 08:36:21 +00:00
parent 9b6eaae234
commit 0838a93037

4
configure vendored
View File

@ -139,9 +139,7 @@ standard_gcc_settings()
#
set_default_value()
{
local var=$1;
# any better way?
(set -u; (eval "echo \${$var}") &> /dev/null) || eval "$var=$2"
eval "$1=\${$1-$2}"
}
# get_build_tool_path