[PATCH RESEND] configure: escape square brackets.

Niels Möller nisse at lysator.liu.se
Sun Nov 8 21:56:39 CET 2009


Benjamin Kramer <benny.kra at googlemail.com> writes:

> diff -r efb26e1f27b5 -r ade4d8f86018 acinclude.m4
> --- a/acinclude.m4	Mon Oct 05 22:27:06 2009 +0200
> +++ b/acinclude.m4	Thu Oct 08 16:37:46 2009 +0200
> @@ -3807,7 +3807,7 @@
>                 gmp_cv_c_for_build_ansi,
>  [cat >conftest.c <<EOF
>  int
> -main (int argc, char *argv[])
> +main (int argc, char *argv[[]])
>  {
>    exit(0);
>  }

I'd suggest avoiding the M4 problem by writing the prototype as

  main (int argc, char **argv)

which should be entirely equivalent to a C compiler.

Not sure why this test is needed at all, though, since the autoconf
macro AC_PROG_CC sets ac_cv_prog_cc_c89 if the compiler accepts ansi C
(and it also tries some random flags to enable ansi-mode of the
compiler).

/Niels


More information about the gmp-devel mailing list