The script doesn't work on Leopard *now*, and didn't work on Leopard even *before* your changes, because the versions of support libraries we download either don't configure or don't build on Leopard; I spent some time trying to make it work, but it looked as if it'd just be too much effort, so I quit.
I suggest it is not worth investing time to support those non-working
old versions, as nobody seems to have complained yet (and I don't think
anybody will in the future).
--
---> Dirk Jagdmann
----> http://cubic.org/~doj
-----> http://llg.cubic.org