Skip to content
  • Dan Gohman's avatar
    Fix an autoconf bug: The second argument to AC_LANG_PROGRAM is code that · a1c94049
    Dan Gohman authored
    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.
    
    llvm-svn: 102288
    a1c94049
Loading