vim-7.2: remove quotes from CC in configure.in
authorThilo Fromm <t.fromm@dresearch.de>
Fri, 1 Oct 2010 00:25:42 +0000 (00:25 +0000)
committerKhem Raj <raj.khem@gmail.com>
Wed, 6 Oct 2010 22:26:54 +0000 (15:26 -0700)
commita10389ad4346b2285a0a5b00be893143392d8484
treea2ef401b19099d3772cc52651175f17e473300db
parentf65559a539892959a98034cbf203145a7e22b2ea
vim-7.2: remove quotes from CC in configure.in

configure.in features quotes around some calls to $CC (i.e. it calls
"$CC"). CC is, however, not always just the compiler name. In OpenEmbedded
CC looks more like "arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb".

configure executes tests in a form like
res=`"$CC" --some-arg`
The shell tries to run the whole contents of the CC variable - not just the first string
- as _one_ command, which will fail.

However, these errors remain unnoticed during the configure run:

...
configure: line 3707: arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -mthumb-interwork -mno-thumb: command not found
...
checking for setjmp.h... yes
checking for GCC 3 or later... /SCRATCH/maniac/oe-merge-test/OE/tmp.6/work/armv5te-angstrom-linux-gnueabi/vim-7.2-r7.1/vim72/src/configure: line 11329: test: : integer expression expected
no
checking whether we need -D_FORTIFY_SOURCE=1... /SCRATCH/maniac/oe-merge-test/OE/tmp.6/work/armv5te-angstrom-linux-gnueabi/vim-7.2-r7.1/vim72/src/configure: line 11339: test: : integer expression expected
no
...

But finally:

...
configure: creating ./config.status
config.status: creating auto/config.mk
config.status: creating auto/config.h

So the configure step had errors, but didn't report any.

This patch removes the quotes around the CC variable in configure.in.

Signed-off-by: Thilo Fromm <t.fromm@dresearch.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/vim/files/configure.in_remove_CC_quotes.patch [new file with mode: 0644]
recipes/vim/vim.inc
recipes/vim/vim_7.2.bb