Re: Using and detecting environment variables as flags

2004-05-25 Thread Bruce Korb
John Ling wrote: > > I think I've figured out the way to do it: > > In my Makefile.am I put in a line like 'export CONFIGURE-TIME_LIBS=$(LIBS)' > > Then in my Makefile.loader I put in my LIBS definition: > > LIBS = $(CONFIGURE-TIME_LIBS) ... You might have better luck with CONFIGURE_TIME_LIBS

Re: Using and detecting environment variables as flags

2004-05-25 Thread John Ling
I think I've figured out the way to do it: In my Makefile.am I put in a line like 'export CONFIGURE-TIME_LIBS=$(LIBS)' Then in my Makefile.loader I put in my LIBS definition: LIBS = $(CONFIGURE-TIME_LIBS) ... Regards, John Bruce Korb wrote: John Ling wrote: Hello, I want to be able to read/check

Re: Using and detecting environment variables as flags

2004-05-25 Thread John Ling
Hi Bruce. So I have the following in my configure.ac: AC_SEARCH_LIBS([compress], [z], ,) So if this Z library exists then I want the build process to include this library during linking. Otherwise I run into errors about not being able to find the 'compress' function in the Z library. I have a

Re: Using and detecting environment variables as flags

2004-05-25 Thread Bruce Korb
John Ling wrote: > > Hello, I want to be able to read/check the value of an environment > variable in my Makefile.am. This would be a variable that I set as part > of the an [action-if-found] in the AC_SEARCH_LIBS method, that I set in > configure.ac. > > How do I reference such a variable? > >

Using and detecting environment variables as flags

2004-05-25 Thread John Ling
Hello, I want to be able to read/check the value of an environment variable in my Makefile.am. This would be a variable that I set as part of the an [action-if-found] in the AC_SEARCH_LIBS method, that I set in configure.ac. How do I reference such a variable? In addition, depending on the val