[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Prefix for file in source directory used in ./configure?
From: |
Russ Allbery |
Subject: |
Re: Prefix for file in source directory used in ./configure? |
Date: |
Sat, 24 Apr 2010 16:53:42 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Jason Sewall <address@hidden> writes:
> I've searched the docs and the web for info on this, but I can't seem to
> make headway.
> I have a script in the same directory as my configure.ac that tries to
> clean what commit in my VC we're building.
> GIT_VERSION=`./GIT-VERSION-GEN`
> Obviously, that './' in there doesn't work if I try to configure outside
> my source directory. What variable do I need add as prefix to that path
> to let builds outside the source tree find that script?
If that reference is in a Makefile.am or something similar, you want
either $(abs_top_srcdir) or $(top_srcdir). I tend to use the abs_*
versions as a matter of course since they avoid weird issues.
--
Russ Allbery (address@hidden) <http://www.eyrie.org/~eagle/>