summaryrefslogtreecommitdiff
path: root/libraries/base/configure.ac
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-06-25 11:58:04 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-06-25 11:58:04 +0000
commit0c29bd301298aee3af358ff4250eea53191edc8c (patch)
tree7573f80263442e9673d2f369b7cb6d33c041764c /libraries/base/configure.ac
parent6879b3122e4bd312fef6bfc9eb61e9eee78e3b6e (diff)
downloadhaskell-0c29bd301298aee3af358ff4250eea53191edc8c.tar.gz
not having iconv is not fatal on Windows
Diffstat (limited to 'libraries/base/configure.ac')
-rw-r--r--libraries/base/configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/libraries/base/configure.ac b/libraries/base/configure.ac
index ce85ed010f..9e43698f46 100644
--- a/libraries/base/configure.ac
+++ b/libraries/base/configure.ac
@@ -114,7 +114,11 @@ FP_SEARCH_LIBS_PROTO(iconv,
iconv_close(cd);],
iconv,
[EXTRA_LIBS="$EXTRA_LIBS $ac_lib"],
- [exit 1])
+ [case `uname -s` in
+ MINGW*|CYGWIN*) exit 0;;
+ *)
+ AC_MSG_ERROR([iconv is required on non-Windows platforms]);;
+ esac])
AC_SUBST(EXTRA_LIBS)
AC_CONFIG_FILES([base.buildinfo])