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
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
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
* 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