[PATCH] configure: escape square brackets.
Benjamin Kramer
benny.kra at googlemail.com
Thu Oct 8 16:59:34 CEST 2009
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/20091008/18e1b7d9/attachment.obj>
More information about the gmp-devel
mailing list