Harlan Stenn wrote:
> With configure CFLAGS=-g, configure knows you are overriding CFLAGS and
> will put that information into config.status.
>
> If you use CFLAGS=-g ./configure, then configure doesn't see that you
> have overridden CFLAGS.
>
> Or something like that.
No, they should result in exactly the same thing.
$ mkdir build1 && cd build1 && CFLAGS="-g0 -O2" ../configure
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
[...]
$ cd ..
$ mkdir build2 && cd build2 && ../configure CFLAGS="-g0 -O2"
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
[...]
$ cd ..
$ diff -u {build1,build2}/config.status
--- build1/config.status 2006-02-06 19:29:38.187500000 -0800
+++ build2/config.status 2006-02-06 19:30:11.250000000 -0800
@@ -294,7 +294,7 @@
ac_cs_version="\
config.status
configured by ../configure, generated by GNU Autoconf 2.59,
- with options \" 'CFLAGS=-g0 -O2'\"
+ with options \"'CFLAGS=-g0 -O2'\"
Copyright (C) 2003 Free Software Foundation, Inc.
This config.status script is free software; the Free Software
Foundation
@@ -373,8 +373,8 @@
fi
if $ac_cs_recheck; then
- echo "running /bin/bash ../configure " 'CFLAGS=-g0 -O2'
$ac_configure_extra_args " --no-create --no-recursion" >&6
- exec /bin/bash ../configure 'CFLAGS=-g0 -O2'
$ac_configure_extra_args --no-create --no-recursion
+ echo "running /bin/bash ../configure " 'CFLAGS=-g0 -O2'
$ac_configure_extra_args " --no-create --no-recursion" >&6
+ exec /bin/bash ../configure 'CFLAGS=-g0 -O2' $ac_configure_extra_args
--no-create --no-recursion
fi
for ac_config_target in $ac_config_targets
$ diff -u {build1,build2}/Makefile
As you can see the Makefiles are identical and the config.statuses
differ by only one insignificant whitespace.
Brian
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf