From: Ian Lynagh Date: Fri, 12 Jun 2009 23:13:07 +0000 (+0000) Subject: Add iconv as an extra library on platform that need to link with it X-Git-Tag: 2009-06-25~22 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=7b0e8c5c95b3edd752a283f59d7a89688eaca276;p=ghc-base.git Add iconv as an extra library on platform that need to link with it For example, we need -liconv on OS X. --- diff --git a/base.buildinfo.in b/base.buildinfo.in new file mode 100644 index 0000000..9fe31ef --- /dev/null +++ b/base.buildinfo.in @@ -0,0 +1 @@ +extra-libraries: @EXTRA_LIBS@ diff --git a/configure.ac b/configure.ac index b66966e..c261c05 100644 --- a/configure.ac +++ b/configure.ac @@ -102,4 +102,10 @@ FP_CHECK_CONST([O_BINARY], [#include ], [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