autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making a path absolute portably


From: Sébastien Hinderer
Subject: Re: Making a path absolute portably
Date: Thu, 11 Jul 2019 15:22:50 +0200

Dear Andrew and dear all,

Many thanks for all your responses which I found all very useful and
full of teachings.

Andrew Price (2019/07/10 14:04 +0100):
> On 10/07/2019 12:45, Sébastien Hinderer wrote:
> > Dear all,
> >
> > I'd need to compute the absolute path of srcdir in a portable way (it's
> > okay if it includes symlinks).
>
> Couldn't you use the provided $abs_srcdir?

I was actually not aware that this variable was there but it seems it
gets replaced by the dirname of the .in file where it gets substituded,
whihc I find very odd actually. So if the software is in, say,
/home/me/src/software

and the template file is in subdirectory foo of the tree, then when I
run configure, what I see in the file produced from the template is
/home/me/src/software/foo which is not quite what I expect.

Cheers,

Sébastien.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]