Re: Release candidate

2001-05-13 Thread Steve M. Robbins
On Sun, May 13, 2001 at 07:54:31PM +0200, Akim Demaille wrote: > > Please people, test it: the current state of Autoconf is our release > candidate. There is one issue that must be fixed before releasing, > namely the test `compile.at:AC_PROG_CPP via CC' is not robust to > broken cc for not usin

Re: Release candidate

2001-05-14 Thread Steve M. Robbins
On Mon, May 14, 2001 at 02:32:13PM +0200, Akim Demaille wrote: > > | There is still the problem that autoconf mixes up variable assignments > | and macros. This is up-to-the-minute CVS autoconf: > | > | steve@riemann{tmp}cat configure.in > | AC_INIT > | > | AM_CFLAGS=fo

Re: Release candidate

2001-05-14 Thread Steve M. Robbins
On Mon, May 14, 2001 at 05:50:50PM +0200, Akim Demaille wrote: > > | On Mon, May 14, 2001 at 04:57:57PM +0200, Peter Eisentraut wrote: > | > Akim Demaille writes: > | > > | > > | There is still the problem that autoconf mixes up variable assignments > | > > | and macros. This is up-to-the-minut

Re: Release candidate

2001-05-14 Thread Steve M. Robbins
On Mon, May 14, 2001 at 04:57:57PM +0200, Peter Eisentraut wrote: > Akim Demaille writes: > > > | There is still the problem that autoconf mixes up variable assignments > > | and macros. This is up-to-the-minute CVS autoconf: > > | > > | steve@riemann{tmp}cat configure.in > > | A

Re: how to use libraries in /usr/local

2001-05-22 Thread Steve M. Robbins
On Mon, May 21, 2001 at 06:50:57PM -0700, Russ Allbery wrote: > Bruno Haible <[EMAIL PROTECTED]> writes: > > > I would like to propose a "configure" option --use-local which, > > depending on the language being used, does the following. For C and C++, > > it appends " -I/usr/local/include" to CPP

detecting required libraries in AC_CHECK_LIB

2001-06-04 Thread Steve M. Robbins
Hi, When I use AC_CHECK_LIB(foo,bla), it will fail utterly if libfoo is linked to libbar and I neglected to put "-lbar" in the 5th argument of AC_CHECK_LIB. This may be just what you want. On the other hand, I get the impression that every time I turn around X11R6 has split out another two or t

Re: detecting required libraries in AC_CHECK_LIB

2001-06-04 Thread Steve M. Robbins
On Mon, Jun 04, 2001 at 08:40:13PM +0200, Simon Josefsson wrote: > "Steve M. Robbins" <[EMAIL PROTECTED]> writes: > > > On Mon, Jun 04, 2001 at 05:49:41PM +0200, Peter Eisentraut wrote: > >> Steve M. Robbins writes: > >> > >> > I expect

Re: detecting required libraries in AC_CHECK_LIB

2001-06-04 Thread Steve M. Robbins
On Mon, Jun 04, 2001 at 05:49:41PM +0200, Peter Eisentraut wrote: > Steve M. Robbins writes: > > > I expect that one cannot do so in general. But I'll take a partial > > solution, if there is one. On linux, at least, "ldd libfoo.so" will > > tell me

Re: detecting required libraries in AC_CHECK_LIB

2001-07-04 Thread Steve M. Robbins
d the file, the list of directories was empty and I got the error messages from the linker. Resetting the permissions fixed it up. -Steve On Mon, Jun 04, 2001 at 12:06:12PM -0400, Steve M. Robbins wrote: > On Mon, Jun 04, 2001 at 05:49:41PM +0200, Peter Eisentraut wrote: > > Stev

can I suppress "invalid unused variable name"?

2001-08-03 Thread Steve M. Robbins
Hi, I am working with a library (CGAL) that is not autoconfigured, but has its own system that generates a makefile fragment with important make variables defined. In particular, it defines CGAL_LDFLAGS. In my Makefile.am, I use include $(CGAL_MAKEFILE) ... LDADD = ...

Re: configure busybox

2001-09-20 Thread Steve M. Robbins
Hello Glenn, On Thu, Sep 20, 2001 at 02:53:03PM +1000, Glenn McGrath wrote: > 1) all libbb files are compiled, however some have system calls that > obviously depend on the linux kernel (and other portability problems), > there needs to be a way to only compile functions that will work on the >

Re: RFC: Macros for libs

2001-09-25 Thread Steve M. Robbins
On Sat, Sep 22, 2001 at 08:03:23PM -0400, Steven G. Johnson wrote: > On another subject, people very often implement an idiom > like: --with-gmp=<-L flags>. I'd be inclined to discourage this practice > and tell people that their users should just set CPPFLAGS and LDFLAGS > instead. I'm incline

Re: AC_CHECK_LIB fails to locate a C++ library

2001-10-18 Thread Steve M. Robbins
On Thu, Oct 18, 2001 at 10:20:27AM -0700, Eric Hanchrow wrote: > The program `conftest.cc' seems wrong to me: that's not a reliable way > to test for the presence of a C++ function in a library. > Unfortunately, I cannot think of a better way. This makes me wonder > if I've misunderstood the int

Re: Changing Search Paths for Headers and LIbs

2001-11-20 Thread Steve M. Robbins
On Tue, Nov 20, 2001 at 10:03:38AM +0800, Simon Ching wrote: > I wonder if it's possible to change the search > paths for headers and libs like in the macros > AC_CHECK_LIB or AC_CHECK_HEADER or alike? Yes. Set LDFLAGS and CPPFLAGS before calling configure; see the file INSTALL. See also ht

Re: needs help

2001-11-29 Thread Steve M. Robbins
On Wed, Nov 28, 2001 at 11:33:40PM +0100, Toni Moreno Giménez wrote: > each time I type "make" on my project (after doing "./configure" ) the > Makefile runs another. all autotools system. this is: > > aclocal > autoconf > automake > ./configure > > and finally begins the source compilation.

Re: help with AC_CHECK_LIB, AC_TRY_LINK

2001-12-06 Thread Steve M. Robbins
On Thu, Dec 06, 2001 at 06:04:49PM -0800, Patrick Crosby wrote: > for some reason, i'm unable to get configure to find one of the > libraries i'm using. [ ... ] > does anyone have any advice? is there something i'm doing wrong? I'd suggest that you look into config.log for clues; it is usually

Re: AC_CHECK_LIB and FreeBSD

2002-01-15 Thread Steve M. Robbins
On Tue, Jan 15, 2002 at 01:25:51AM -0800, Brad Douglas wrote: > I use the following in configure.in: > > AC_CHECK_LIB(popt, poptGetContext, [AC_CHECK_HEADER(popt.h,,)], > AC_MSG_ERROR([popt library is required.])) > > This works fine with Linux and Solaris, but FreeBSD is

Re: nit about ./config.status

2002-01-19 Thread Steve M. Robbins
On Sat, Jan 19, 2002 at 05:00:53PM +0100, Simon Josefsson wrote: > Akim Demaille <[EMAIL PROTECTED]> writes: > > >>"Simon" == Simon Josefsson <[EMAIL PROTECTED]> writes: > > > >Simon> In older autoconf versions, I often used 'less > >config.status' Simon> and cut'n'pasted the cmdline to > >

--build and --host

2002-02-14 Thread Steve M. Robbins
Hello, In case Henrique's posting wasn't clear, the question is this: is ./configure --build=foo ... different from ./configure --build=foo --host=foo ... or not? In other words, does configure change its behaviour (e.g. go into "cross compiling" mode) as soon as --host is sp

Re: --build and --host

2002-02-14 Thread Steve M. Robbins
On Thu, Feb 14, 2002 at 04:56:43PM +0100, Ralf Corsepius wrote: > Am Don, 2002-02-14 um 16.17 schrieb Steve M. Robbins: > > 3. Generated configure scripts have this bit > > > > ac_tool_prefix= > > test -n "$host_alias" && ac_tool_prefix=$hos

Re: --build and --host

2002-02-28 Thread Steve M. Robbins
On Thu, Feb 28, 2002 at 05:06:40PM -0300, Henrique de Moraes Holschuh wrote: > It also means Debian will need to fork config.guess permanently so as to > force autoconf stuff to build using the correct host arch (since there seems > to be no way to sepecify a build architecture without entering >

Re: How can I make the Makefile pass options to autoconf when configure.ac is updated?

2002-03-16 Thread Steve M. Robbins
On Sat, Mar 16, 2002 at 08:40:06PM -, Stephano Mariani wrote: > I need to pass a --m4dir to autoconf to generate the configure script > correctly, how can I do this so that whenever configure regenerated by > the automake rule: > > cd . && /bin/sh /path/to/project/missing --run aclocal > cd .

an AC_PATH_PROG curiousity

2002-04-03 Thread Steve M. Robbins
Hi, It appears that AC_PATH_PROG has changed behaviour between 2.13 and 2.5x. If the following configure.in file is processed with autoconf 2.13, all three calls correctly find "ls" AC_INIT AC_PATH_PROG(LS1,ls,no) echo "LS=$LS1" AC_PATH_PROG(LS2,ls,no,$PATH) echo "LS=$LS2

Re: Specifying path to headers and libraries with configure

2002-04-05 Thread Steve M. Robbins
ecial in your Makefile.am for linking. If library A requires library B, check for B first, then A. dnl @synopsis mni_REQUIRE_LIB(LIBRARY,INCLUDES,BODY) dnl dnl @version $Id: mni_REQUIRE_LIB.m4,v 1.1 2001/08/20 16:51:50 stever Exp $ dnl @author Steve M. Robbins <[EMAIL PROTECTED]> AC_D

Re: Problem with check for functions with Sun CC

2002-05-02 Thread Steve M. Robbins
On Thu, May 02, 2002 at 07:41:03PM +0200, Martin Frydl wrote: > Andreas Schwab wrote: > > > > Martin Frydl <[EMAIL PROTECTED]> writes: > > > > |> The compiler complains about extern "C". My question is whether this is > > |> autoconf bug or should I use ./configure CC=cc CXX=CC to really use C >

Re: search path for AC_CHECK_HEADERS?

2002-05-11 Thread Steve M. Robbins
On Sat, May 11, 2002 at 10:31:14AM -0400, [EMAIL PROTECTED] wrote: > > How can I specify a search path to try and find a 3rd party header in? The official answer is that your users should read INSTALL and figure out how to set their CPPFLAGS and LDFLAGS. For convenience, I use the --with-build-

Re: configure vs. multi-build environments

2002-08-29 Thread Steve M. Robbins
On Thu, Aug 29, 2002 at 12:24:05PM -0400, Troy Cauble wrote: > Greetings, > > I write a lot of Makefiles that support a codebase that builds for > a handful of targets. Basically, every Makefile does > > make -C -f ../Makefile SECOND_TIME=1 $@ > > where is determined by environment varia

Re: Correct use of CPPFLAGS, LIBS, and LDFLAGS

2002-09-19 Thread Steve M. Robbins
On Thu, Sep 19, 2002 at 11:39:57AM -0700, Bill Moseley wrote: > > In my current configure.in I create new substitution variables for each > library that may be optionally included. For example, a test might set: > > LIBFOO_CPPFLAGS = "-Ifoo/include" > LIBFOO_LDFLAGS = "-Lfoo/lib" > LIB_F

C++ compiler optional

2002-09-28 Thread Steve M. Robbins
Howdy, What is the recommended way to write a configure script that checks for an *optional* C++ compiler, building an extra component if a C++ compiler is detected. I'm after something like AC_PROG_CXX, except that I don't want to abort if no compiler is found. -S

Re: Objections? Re: Checking for CXX libraries -- AC_CXX_CHECK_LIB ?

2002-09-29 Thread Steve M. Robbins
it a lot simpler, but your proposal with [action-if-found], [action-if-not-found], etc is better. dnl @synopsis mni_REQUIRE_LIB(LIBRARY,INCLUDES,BODY) dnl dnl @version $Id: mni_REQUIRE_LIB.m4,v 1.1 2001/08/20 16:51:50 stever Exp $ dnl @author Steve M. Robbins <[EMAIL PROTECTED]> AC_DEF

Re: configuring sub directories optional

2002-10-29 Thread Steve M. Robbins
On Tue, Oct 29, 2002 at 01:52:20PM -0500, Stefan Seefeld wrote: > yes, > > AC_CONFIG_SUBDIRS(dirs, [action-if-succeeds], [action-if-fails]) > > is exactly what I had in mind. If someone gets ambitious, it would be also useful to have AC_CXX([action-if-succeeds],[action-if-fails]) to deal with "c

Re: configuring sub directories optional

2002-10-31 Thread Steve M. Robbins
On Wed, Oct 30, 2002 at 12:12:20PM -0500, Eric Siegerman wrote: > On Tue, Oct 29, 2002 at 07:16:45PM -0500, Steve M. Robbins wrote: > > On Tue, Oct 29, 2002 at 01:52:20PM -0500, Stefan Seefeld wrote: > > > AC_CONFIG_SUBDIRS(dirs, [action-if-succeeds], [action-if-fails]) >

Re: Question on design of a C++ library w.r.t. config.h contents

2002-11-09 Thread Steve M. Robbins
On Fri, Nov 08, 2002 at 12:53:00PM -0800, Michael D. Beynon wrote: > I have a C++ library that I use with autotools. I have a config.h that > gets produced, and is included by BOTH the library c++ files and the > header files. These header files are also exported for users of the > library. The

Re: Setting compiler flags via AC_ARG_WITH in configure.in

2002-12-19 Thread Steve M. Robbins
On Thu, Dec 19, 2002 at 10:22:40AM +0100, Markus Werle wrote: > I want to set include paths > during configure run, e.g. --with-loki=/path/to/loki > The following code works fine, but I feel unhappy about the > use of an external environment variable. > > Now I am tired reading the docs (20 hours

Re: AC_DEFINE questions

2003-01-05 Thread Steve M. Robbins
On Fri, Dec 20, 2002 at 02:12:15PM -0800, Dan Kegel wrote: > FWIW, while Debian supports multiple installations of autoconf, > it doesn't yet support multiple installations of automake. That is true of the stable debian release, but it has since been changed in "unstable". I have both 1.6 and 1.

Re: Macro writing

2003-06-07 Thread Steve M. Robbins
On Thu, Jun 05, 2003 at 11:00:23AM +0200, Mattias Brändström wrote: > Hello again! > > Now I have a revised version of my macro. If anyone have the time to say > anything about it it would be greatly appricated! > > AC_DEFUN([RKC_XERCES], [ > > AC_ARG_WITH(xerces-prefix, [ --with-xerces-prefix=

Re: How hardcode different default prefix? Hack Makefile.in bestway?use autoconf macro?

2003-06-12 Thread Steve M. Robbins
On Wed, Jun 11, 2003 at 04:11:24PM -0500, Raja R Harinath wrote: > Hi, > > <[EMAIL PROTECTED]> writes: > > > Is hacking definition of $(prefix) in Makefile.in the > > best way to change default prefix from something other > > than /usr/local??? > > > > Is there some macro to add to configure.in t

Re: How hardcode different default prefix? Hack Makefile.inbestway?use autoconf macro?

2003-06-13 Thread Steve M. Robbins
On Thu, Jun 12, 2003 at 02:57:30PM -0400, Thomas E. Dickey wrote: > On Thu, 12 Jun 2003, Steve M. Robbins wrote: > > > However: if you plan to release the code for general consumption, > > think twice before using it. There are few things that irritate this > > soft