Fix an autoconf bug: The second argument to AC_LANG_PROGRAM is code that
authorDan Gohman <gohman@apple.com>
Sun, 25 Apr 2010 00:12:20 +0000 (00:12 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 25 Apr 2010 00:12:20 +0000 (00:12 +0000)
commit39ed6789c537ab6ec3d9b5944761e87c215f4fab
tree4a8ded263086e93ad74c0489c436526b2a960f0c
parent698cbcb0a4a181d49eca2d6a098e47eef0db96d8
Fix an autoconf bug: The second argument to AC_LANG_PROGRAM is code that
gets placed inside a main function, and should not itself be a main
function. This is silently hidden in GCC-hosted builds because the
inner main looks like a nested function declaration, which GCC supports.
In builds with compilers which do not support nested functions (by default),
this was causing an error, which caused these autoconf checks to fail,
leaving their options disabled.

This fixes test/Feature/load_module.ll on x86_64-unknown-linux-gnu
llvm-gcc selfhost builds, among other things.

This also includes a regenerated configure, as the diff is small and telling.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102288 91177308-0d34-0410-b5e6-96231b3b80d8
autoconf/m4/link_options.m4
configure