Remove AC_C_CONST
authorIan Lynagh <igloo@earth.li>
Mon, 15 Jun 2009 20:32:40 +0000 (20:32 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 15 Jun 2009 20:32:40 +0000 (20:32 +0000)
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.

configure.ac

index c261c05..4ae0be1 100644 (file)
@@ -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