From: Ian Lynagh Date: Mon, 15 Jun 2009 20:32:40 +0000 (+0000) Subject: Remove AC_C_CONST X-Git-Tag: 2009-06-25~13 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=3c8810e93e25864e629a1d2328918fed3bf5297d;p=ghc-base.git Remove AC_C_CONST It was breaking the build on Windows. The problem was that we included stdio.h which gave a prototype for some functions (e.g. remove), then the AC_C_CONST meant that we did /* Define to empty if `const' does not conform to ANSI C. */ #define const /**/ and then we included io.h which gave prototypes that, due to const being removed, conflicted with the earlier prototypes. --- diff --git a/configure.ac b/configure.ac index c261c05..4ae0be1 100644 --- a/configure.ac +++ b/configure.ac @@ -13,9 +13,6 @@ AC_PROG_CC() # do we have long longs? AC_CHECK_TYPES([long long]) -dnl ** determine whether or not const works -AC_C_CONST - dnl ** check for full ANSI header (.h) files AC_HEADER_STDC