summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-25 00:12:20 +0000
committerDan Gohman <gohman@apple.com>2010-04-25 00:12:20 +0000
commit39ed6789c537ab6ec3d9b5944761e87c215f4fab (patch)
tree4a8ded263086e93ad74c0489c436526b2a960f0c /configure
parent698cbcb0a4a181d49eca2d6a098e47eef0db96d8 (diff)
downloadllvm-39ed6789c537ab6ec3d9b5944761e87c215f4fab.tar.gz
llvm-39ed6789c537ab6ec3d9b5944761e87c215f4fab.tar.bz2
llvm-39ed6789c537ab6ec3d9b5944761e87c215f4fab.tar.xz
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 84bf2e2d58..9f35b4196a 100755
--- a/configure
+++ b/configure
@@ -8634,7 +8634,7 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
-int main() { return 0; }
+
;
return 0;
}
@@ -8726,7 +8726,7 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
-int main() { return 0; }
+
;
return 0;
}
@@ -8837,7 +8837,7 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
-int main() { return 0; }
+
;
return 0;
}