[Xastir] Can't Build Xastir...
Tom Russo
russo at bogodyn.org
Sat Dec 4 15:53:19 EST 2010
On Sat, Dec 04, 2010 at 02:29:03PM -0500, we recorded a bogon-computron collision of the <n1mie at mac.com> flavor, containing:
> > sudo ./configure CPPFLAGS=-DUSE_PID_FILE_CHECK --prefix=/sw --without-gpsman --with-bdb-libdir=/sw/lib --with-bdb-incdir=/sw/include/db4 --with-rtree --with-motif-libs=/sw/lib
>
> That seemed to work. Why did I now suddenly have to change? The file has always been in /sw/lib and that is covered by the --prefix switch.
No, --prefix has nothing to do with where configure searches for libraries.
It is strictly used only to determine where to install xastir (e.g. it'll
install the binary in ${prefix}/bin, the maps in ${prefix}/share/xastir/maps,
etc.)
I can't tell you why configure is able to find your motif libs in /sw/lib
on one machine without being told explicitly to look there and have to
be told explictly on another machine.
Take a look at config.log on the machine that doesn't have the trouble, and
scan for /sw/lib to see if there are any clues in there as to what is inserting
that path into the LDFLAGS. There is code in configure.ac that is supposed to
add -L/sw/lib and -I/sw/include to LDFLAGS and CPPFLAGS if those directories
exist, and it's puzzling that this code isn't working on some of your
machines.
Nothing has changed in configure, so it must be some difference between your
machine's configurations. It'd be very difficult to pin it down with just
the screen output of configure, you'll have to dig in config.log to see what
is going wrong.
--
Tom Russo KM5VY SAR502 DM64ux http://www.swcp.com/~russo/
Tijeras, NM QRPL#1592 K2#398 SOC#236 http://kevan.org/brain.cgi?DDTNM
"The truth will set you free, but first it will piss you off."
More information about the Xastir
mailing list