Correct syntax error in configure

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-03-29 18:53:21 -07:00
parent 74ca7b5269
commit 8a695b4073

View File

@ -52,29 +52,30 @@ if [ $# -eq 0 ]; then
fi
for p in $@; do
p=${p#--}
p=${p#--}
if [ -n "${p}" ]; then
pn=${p%=*}
pv=${p#*=}
if [ -n "${p}" ]; then
pn=${p%=*}
pv=${p#*=}
if [ -n "${pn}" ]; then
case ${pn} in
VENDOR)
pn=HOST
;;
SHAREDSTATEDIR)
pn=VARDIR
;;
DATADIR)
pn=SHAREDIR
;;
SYSCONFDIR)
pn=CONFDIR
;;
esac
if [ -n "${pn}" ]; then
case ${pn} in
VENDOR)
pn=HOST
;;
SHAREDSTATEDIR)
pn=VARDIR
;;
DATADIR)
pn=SHAREDIR
;;
SYSCONFDIR)
pn=CONFDIR
;;
esac
params[${pn}]="${pv}"
params[${pn}]="${pv}"
fi
fi
done