Re: Bad pwd detection in generated 'configure'

2013-05-14 Thread Pavel Raiskup
> > Would there be possible to use something like this? It would pretty > > easily work-around the issue: > > > > # When building in place, set srcdir=. > > -if test "$ac_abs_confdir" = "$ac_pwd"; then > > +if test "`$readlink -f $ac_abs_confdir`" = "`$readlink -f $ac_pwd`"; then > > Sorry, bu

Re: Bad pwd detection in generated 'configure'

2013-05-13 Thread Eric Blake
On 05/13/2013 07:29 AM, Pavel Raiskup wrote: > Hello, currently, configure scripts are badly detecting whether the build > is done "in place" (pwd == $srcdir). One problem (spotted in RH bugzilla) > is this: > > $ PWD=`pwd`/ ./configure Hmm, we already strip trailing slashes from '--prefix=/pa

Bad pwd detection in generated 'configure'

2013-05-13 Thread Pavel Raiskup
Hello, currently, configure scripts are badly detecting whether the build is done "in place" (pwd == $srcdir). One problem (spotted in RH bugzilla) is this: $ PWD=`pwd`/ ./configure In case of Bash, there we are hitting a bug (or feature? .. ksh also has this one..): $ cd /tmp $ PWD=`pwd`