handle memdraw memlayer

This commit is contained in:
rsc 2006-06-25 23:48:51 +00:00
parent 7e8275c898
commit f6bb301372

17
bin/9l
View file

@ -52,6 +52,10 @@ then
eval "need$i=true" eval "need$i=true"
done done
fi fi
if $verbose
then
echo "autolibs1 $autolibs"
fi
# fetch dependencies out of libraries # fetch dependencies out of libraries
workq="$autolibs" workq="$autolibs"
@ -69,8 +73,13 @@ then
grep '__p9l_autolib_[a-zA-Z0-9+-]*$' | grep '__p9l_autolib_[a-zA-Z0-9+-]*$' |
sed 's/.*__p9l_autolib_//' | sed 's/.*__p9l_autolib_//' |
sort -u | sort -u |
egrep -v 'thread|draw' egrep -v '^(thread|draw)$'
` `
# fix up libraries that really need draw
if [ "x$i" = "xmemdraw" -o "x$i" = "xmemlayer" -o "x$i" = "xframe" ]
then
a="$a draw"
fi
okayfn="true" okayfn="true"
for j in $a for j in $a
do do
@ -85,7 +94,10 @@ then
okayfn="$okayfn && have$j" okayfn="$okayfn && have$j"
fi fi
done done
# echo "can$i: $okayfn" if $verbose
then
echo "can$i: $okayfn"
fi
eval "can$i() { $okayfn; }" eval "can$i() { $okayfn; }"
done done
done done
@ -100,6 +112,7 @@ then
done done
havethread() { false; } havethread() { false; }
havesec() { false; } havesec() { false; }
canmemlayer() { havedraw; }
# now find correct order # now find correct order
libsl="" libsl=""