* Peter O'Gorman wrote on Thu, Apr 10, 2008 at 11:21:01PM CEST: > Peter O'Gorman wrote: > > Ralf Wildenhues wrote: > >> curwd=`cd . && pwd` > >> > >> Do we know when (with which shells) this can be replaced by $PWD > >> portably? > > > > The ones that are not buggy and comply with the standards? :) (I don't > > know, maybe all of them). > > Maybe, instead of using $PWD, when the package is not libtool itself, we > can substitute abs_top_builddir into the libtool script and use that for > when progdir=.?
We can also just test for working $PWD in configure, and if it works, then curwd=$PWD cd "..." progdir=$PWD cd "curwd" On systems where $PWD happens to not work, we shouldn't care about performance, they are so rare. Given that we more and more rely on the shell we test in configure is the same as the one executing libtool, I am tending more and more to putting Bruno's patch in. Cheers, Ralf