modification of CFLAGS

2010-05-20 Thread Jason Curl
Hello, I'd like to write a macro, called LX_DEBUG. This checks if the user gives --enable-debug and then depending on the compiler, modify CFLAGS. However, I see that the autoconf macros already modify CFLAGS. Is there a way that I can obtain what the user originally entered *within* my

Re: modification of CFLAGS

2010-05-20 Thread Ralf Wildenhues
Hello Jason, * Jason Curl wrote on Thu, May 20, 2010 at 08:40:39PM CEST: I'd like to write a macro, called LX_DEBUG. This checks if the user gives --enable-debug and then depending on the compiler, modify CFLAGS. However, I see that the autoconf macros already modify CFLAGS. Is there a way

Re: modification of CFLAGS

2010-05-20 Thread Jason Curl
Hello Ralf, On 20/05/2010 20:45, Ralf Wildenhues wrote: Hello Jason, * Jason Curl wrote on Thu, May 20, 2010 at 08:40:39PM CEST: However, I see that the autoconf macros already modify CFLAGS. Is there a way that I can obtain what the user originally entered *within* my macro after

Re: modification of CFLAGS

2010-05-20 Thread Ralf Wildenhues
* Jason Curl wrote on Thu, May 20, 2010 at 09:03:53PM CEST: On 20/05/2010 20:45, Ralf Wildenhues wrote: You can access $CFLAGS before AC_PROG_CC, for example save its value to some other variable: LX_CFLAGS=${CFLAGS-NONE} Thought about this before I posted and it's viable. Are you sure