You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Michael (JIRA)" <xe...@xml.apache.org> on 2013/03/20 08:55:15 UTC
[jira] [Created] (XERCESC-2009) crosscompilation fails in revision
1458655
Michael created XERCESC-2009:
--------------------------------
Summary: crosscompilation fails in revision 1458655
Key: XERCESC-2009
URL: https://issues.apache.org/jira/browse/XERCESC-2009
Project: Xerces-C++
Issue Type: Bug
Components: Build
Affects Versions: 3.1.0, 3.1.1
Environment: Cross compiling for android on linux
Reporter: Michael
Priority: Trivial
Cross compiling Xerces-c fails since the current configure.ac relies on AC_RUN_IFELSE when it checks for wcsrtombs and mbsrtowcs.
The fix is:
mkm@mkm:~/sandbox/build/android_external/xerces-c-trunk$ svn diff configure.ac
Index: configure.ac
===================================================================
--- configure.ac (revision 1458655)
+++ configure.ac (working copy)
@@ -161,7 +161,7 @@
]
)
AC_MSG_CHECKING([for wcsrtombs])
-AC_RUN_IFELSE( [AC_LANG_PROGRAM([[#include <wchar.h>
+AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include <wchar.h>
#include <string.h>]],
[[
mbstate_t st;
@@ -183,7 +183,7 @@
]
)
AC_MSG_CHECKING([for mbsrtowcs])
-AC_RUN_IFELSE( [AC_LANG_PROGRAM([[#include <wchar.h>
+AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include <wchar.h>
#include <string.h>]],
[[
mbstate_t st;
Best regards, Michael
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org