[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Trailing spaces in CFLAGS, -C, and AC_CONFIG_SUBDIR
From: |
Joe Orton |
Subject: |
Trailing spaces in CFLAGS, -C, and AC_CONFIG_SUBDIR |
Date: |
Tue, 11 Feb 2003 16:33:48 +0000 |
User-agent: |
Mutt/1.4i |
Hi,
If I have a configure script which uses AC_CONFIG_SUBDIR, and invoke
configure passing -C and a CFLAGS value which includes trailing spaces,
configure gets confused:
$ cat configure.in
AC_INIT(bar, 0.2, address@hidden)
AC_PROG_CC
AC_CONFIG_SUBDIRS(foo)
AC_OUTPUT
$ cat foo/configure.in
AC_INIT(foo, 1.0, address@hidden)
AC_MSG_NOTICE([Hello World])
AC_PROG_CC
$ autoreconf
$ ./configure -quiet -C CFLAGS="-O2 "
configure: loading cache ../config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure: former value: -O2
configure: current value: -O2
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ../config.cache' and
start over
configure: error: /bin/sh './configure' failed for foo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Trailing spaces in CFLAGS, -C, and AC_CONFIG_SUBDIR,
Joe Orton <=