Source: kakasi
Version: 2.3.6-4.2
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
kakasi fails to cross build from source, because configure.in contains
an AC_RUN_IFELSE with no alternative for cross compilation. The check at
hand is a sanity check trying to figure out whether iconv works. It
really cannot be performed in a cross compilation setting. However, its
outcome does not influence the build result. When it fails, configure
exits with an error. I suggest acknowledging this and skipping it during
cross compilation only. Once doing so, kakasi can be cross built. Please
consider applying the attached patch and forwarding it upstream.
Helmut
--- kakasi-2.3.6.orig/configure.in
+++ kakasi-2.3.6/configure.in
@@ -87,7 +87,8 @@
AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <iconv.h>],
[if (iconv_open("EUC-JP", "UTF-8") == -1) return 1;])],
[],
- [AC_MSG_ERROR([can not use EUC-JP or UTF-8 encoding on iconv])])
+ [AC_MSG_ERROR([can not use EUC-JP or UTF-8 encoding on iconv])],
+ [AC_MSG_WARN([skipping iconv run test during cross compilation])])
])
dnl check gcc flags