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: Wed, 13 Oct 2021 17:43:42 +0200

Hello Andy and all,

I am replying to this alod thread...

Andrew Price (2019/07/11 14:29 +0100):
>
>
> 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

It seems this no longer works? Is that known, or is there anything I am
doing wrong?

I added this line to configure.ac:

AC_MSG_NOTICE([abs_top_srcdir: $abs_top_srcdir])

And it produces as output:

configure: abs_top_srcdir:

Thanks!

Sébastien.



reply via email to

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