http://bugs.winehq.org/show_bug.cgi?id=21325
Summary: aclocal.m4's main prototype is incorrect Product: Wine Version: unspecified Platform: x86-64 OS/Version: Mac OS X 10.6 Status: UNCONFIRMED Severity: normal Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: lessen42+wine@gmail.com
Created an attachment (id=25662) --> (http://bugs.winehq.org/attachment.cgi?id=25662) fix aclocal.m4's main prototype
aclocal.m4 uses "int main(int argc, char *argv[]" as the prototype for main for various tests. However, the [] isn't quoted/escaped/whatever properly and is discarded by autotools, leaving "int main(int argc, char *argv" in configure.
clang treats this invalid main prototype as a hard error, so these configure tests fail.
Attached patch fixes it.