Re: How are env variables passed to the compilation process

2015-03-10 Thread Nick Bowler
On 2015-03-10 22:04 +, Andy Falanga (afalanga) wrote: [...] > I go through the list of output made by the build process and discover > that the build process didn't do what seems to be the "standard" > options, "-O2 -g". Neither of these were used. So, I thought I'd > add them. I did this:

How are env variables passed to the compilation process

2015-03-10 Thread Andy Falanga (afalanga)
I'm trying to figure out how things like CXXFLAGS and CFLAGS get passed to ultimate point of compilation. I thought I had it down but something that just happened recently has me wondering. I've gotten my project building now using automake/autoconf/etc. (what I understand to be the autotools)

Re: AM_CONDITIONAL + AM_COND_IF does not work

2015-03-10 Thread Tom Ghyselinck
Hi, I had a similar issue and solved it as follows: use AC_CONFIG_FILES with and AC_SUBST-ed variable: AC_SUBST([VARIABLE_CONTAINING_MY_MAKEFILES]) AC_CONFIG_FILES([${VARIABLE_CONTAINING_MY_MAKEFILES}]) Snippet from our solution (little bit adjusted to match your issue):

Re: Part 2: Add Cleanfiles for User Defined Special Sources [Re: How to add new Makefile-Rules through Configure?]

2015-03-10 Thread Thien-Thi Nguyen
() Marc Wäckerlin () Tue, 10 Mar 2015 10:47:37 +0100 Any comments on what is a proper solution? I think this kind of scan + conditionalized-inclusion mucking is best done in autogen.sh by way of creating m4 fragments for configure.ac and makefile fragments for the Makefile.am file(s). To be p

RE: make dist fails for EXTRA_DIST elements

2015-03-10 Thread Andy Falanga (afalanga)
> -Original Message- > From: Peter Johansson [mailto:troj...@gmail.com] > Sent: Monday, March 09, 2015 5:40 PM > To: Andy Falanga (afalanga); automake@gnu.org > Subject: Re: make dist fails for EXTRA_DIST elements > > Hi Andy, > > On 03/10/2015 08:23 AM, Andy Falanga (afalanga) wrote: > >

Re: Part 2: Add Cleanfiles for User Defined Special Sources [Re: How to add new Makefile-Rules through Configure?]

2015-03-10 Thread Marc Wäckerlin
Am 10.03.2015 12:56, schrieb Bert Wesarg: On Tue, Mar 10, 2015 at 11:54 AM, Vincent Torri wrote: imho, configure.ac is for configuring the project, not defining 'make' rules. These 'make' rules should go into Makefile.am : I can only second this. Nobody is forced to use also automake with aut

Re: Part 2: Add Cleanfiles for User Defined Special Sources [Re: How to add new Makefile-Rules through Configure?]

2015-03-10 Thread Bert Wesarg
On Tue, Mar 10, 2015 at 11:54 AM, Vincent Torri wrote: > On Tue, Mar 10, 2015 at 10:47 AM, Marc Wäckerlin wrote: >> Any comments on what is a proper solution? >> >> Requirements fo a solution: >> - Add makefile rules from within configure.ac >> - No maual changes in makefile.am files required >

Re: Part 2: Add Cleanfiles for User Defined Special Sources [Re: How to add new Makefile-Rules through Configure?]

2015-03-10 Thread Vincent Torri
On Tue, Mar 10, 2015 at 10:47 AM, Marc Wäckerlin wrote: > Thank you for the answers. > > > The question remains: > > Isn't there a proper way to add makefile rules from within a configure.ac > script? > > > Am 10.03.2015 00:46, schrieb Peter Johansson: >> >> On 03/09/2015 06:34 PM, Marc Wäckerlin

Re: Part 2: Add Cleanfiles for User Defined Special Sources [Re: How to add new Makefile-Rules through Configure?]

2015-03-10 Thread Marc Wäckerlin
Thank you for the answers. The question remains: Isn't there a proper way to add makefile rules from within a configure.ac script? Am 10.03.2015 00:46, schrieb Peter Johansson: On 03/09/2015 06:34 PM, Marc Wäckerlin wrote: Just to state my intention: I want to ad a couple of M4-Macros to

Re: AM_CONDITIONAL + AM_COND_IF does not work

2015-03-10 Thread Marc Wäckerlin
Hi Gavin Thank you, that helps up to the next step ... Am 09.03.2015 18:45, schrieb Gavin Smith: automake doesn't know or care that one of these uses of AC_CONFIG_FILES was conditional. It is looking for the input files to automake (like "Makefile.am"), which it will derive from the arguments t