autoconf
[Top][All Lists]
Advanced

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

Re: Making a path absolute portably


From: Andrew Price
Subject: Re: Making a path absolute portably
Date: Thu, 11 Jul 2019 14:29:31 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2



On 11/07/2019 14:22, Sébastien Hinderer wrote:
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.

It sounds like you want $abs_top_srcdir

Relevant documentation: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Preset-Output-Variables.html

Andy



reply via email to

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