Remove AC_C_CONST
[ghc-base.git] / configure.ac
index b66966e..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
 
@@ -102,4 +99,10 @@ FP_CHECK_CONST([O_BINARY], [#include <fcntl.h>], [0])
 # Check for idiosyncracies in some mingw impls of directory handling.
 FP_READDIR_EOF_ERRNO
 
+AC_CHECK_LIB(iconv, iconv_open,
+    [EXTRA_LIBS="$EXTRA_LIBS iconv"])
+
+AC_SUBST(EXTRA_LIBS)
+AC_CONFIG_FILES([base.buildinfo])
+
 AC_OUTPUT