Adding $includedir and $libdir in CPPFLAGS and LDFLAGS

2001-12-21 Thread John D. Burger
Hi - I am new to autoconf - the usual caveats and apologies apply ... I am writing configure.ac templates for a number of related libraries and executables. Most users will not be installing these in the usual directories, i.e., typical configuration will be: configure --prefix=/some/strange

Re: Adding $includedir and $libdir in CPPFLAGS and LDFLAGS

2001-12-28 Thread John D. Burger
Alexandre Duret-Lutz wrote: > John> I've tried: > John> AC_INIT(libspec, 1.0, [EMAIL PROTECTED]) > John> CPPFLAGS="-I$includedir $CPPFLAGS" > John> LDFLAGS="-L$libdir $LDFLAGS" > John> ... > John> but this doesn't quite work - ac_cpp and friends end up with an > John> unexpanded ${prefix

Re: Auto update of config.[guess|sub]

2002-01-21 Thread John D. Burger
Hello - I find it unsettling to have duplicate (at best) versions of things like config.guess, config.sub, and install-sh in multiple CVS archives, so I would like to have my "make dist" copy them in, preferably using the autotools. As far as I can tell, however, achieving this seems to presuppo

How to use cache variables

2002-02-05 Thread John D. Burger
I have what I think is a style question: If I want to do something with the results of autoconf tests in my configure script, what's the best way to check these results? For instance, say I'd like to do this: AC_CHECK_LIB(norman, snStackPush) AC_CHECK_HEADERS([norman.h]) # Gripe if neith

Re: How to use cache variables

2002-02-06 Thread John D. Burger
Lars Hecking: > The names are fairly obvious, and there's a section in the autoconf manual > that explains them (Results of Tests->Caching Results->Cache Variable Names). Thomas Dickey: > Though the mechanism is (has been) documented, the convention for several > macros has changed a couple of

Precious vars, etc., in sub-configures

2002-06-27 Thread John D. Burger
Last week I wrote: > I have a question about sub-configuration and --enable switches. I > would like a particular --enable switch to always be passed to the > recursive configure scripts just like "precious" variables are. I just discovered that precious variables don't do this either, so I hav

Re: Precious vars, etc., in sub-configures

2002-06-27 Thread John D. Burger
Bruce Korb wrote: > Use a common cache. See the snprintfv (sub)configury in: > > http://prdownloads.sf.net/autogen/autogen-5.3.8.tar.gz The common cache is a good suggestion, although I'd rather not rely on my users to do that. I couldn't tell if your autogen pointer was intended to be an e

Re: Newbie Question --debug

2003-03-03 Thread John D. Burger
Maurice Turcotte wrote: > Yes, I have looked at config.log. > > It says "checking for ioctl.h" but > it doesn't say where it is checking. Is it > checking in /usr/include? Is it checking in > /opt/toolchains? How do I find out? Sorry for the delayed response. As an example, looking at one o