[PATCH RESEND] configure: escape square brackets.

Benjamin Kramer benny.kra at googlemail.com
Sun Nov 8 19:14:01 CET 2009

Can someone please apply this patch? It's an obvious mistake in gmp's  
autoconf file that breaks the build with clang.

Am 08.10.2009 um 16:59 schrieb Benjamin Kramer:

> M4 eats the [] from char *argv[] in the autoconf check "whether  
> build system compiler is ANSI". clang does not like the mutilated  
> function prototype and complains:
> conftest.c:1:5: error: second argument of 'main' should be of type  
> 'char **'
> int main (int argc, char *argv) { exit(0); }
>    ^
> configure detects clang as a non-ANSI-compliant compiler and the  
> compilation process fails later on. The attached patch fixes this by  
> escaping the [] with an extra pair of square brackets.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: acinclude.patch
Type: application/octet-stream
Size: 760 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-devel/attachments/20091108/bd63e3f5/attachment.obj>

More information about the gmp-devel mailing list