[16140] in Athena Bugs
Re: athdir
daemon@ATHENA.MIT.EDU (Aaron M. Ucko)
Wed Aug 12 11:31:16 1998
To: Joseph Sokol-Margolis <seph@MIT.EDU>
Cc: bugs@MIT.EDU
In-Reply-To: [16138] in Athena Bugs
From: amu@MIT.EDU (Aaron M. Ucko)
Date: 12 Aug 1998 11:31:15 -0400
<seph@MIT.EDU> (Joseph Sokol-Margolis) writes:
> I was recently building some software for a locker, and after reading
> lockers(7) and athdir(1) thought that using athdir would be the right
> thing to use with configure:
> ./configure --bindir=`athdir ${LOCKER} bin`
First, you really want to set exec-prefix, not just bindir. (This may
not make a difference for the program you're building, but it's
generally a good idea.)
Second, you *want* to hardcode the systype you're building new
software for; some aspects of athdir (for instance, its lack of output
if it can't find a suitable path and its ATHENA_SYS_COMPAT support)
are inappropriate here.
<jhawk@ATHENA.MIT.EDU> (John Hawkinson) writes:
> There is usually some difficulty associated with having Makefiles
> execute code and store the value in variables; it's hard to do that
> portably, conveniently, and reliably.
Uhm, in seph's command, `athdir ...` is expanded before configure even
runs.
--
Aaron M. Ucko, KB1CJC <amu@mit.edu> (finger amu@monk.mit.edu)