You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2009/08/04 16:25:22 UTC

svn commit: r800818 - /xerces/c/trunk/m4/xerces_transcoder_selection.m4

Author: amassari
Date: Tue Aug  4 14:25:22 2009
New Revision: 800818

URL: http://svn.apache.org/viewvc?rev=800818&view=rev
Log:
Allow platform with machine/endian.h to select the GNUiconv transcoder

Modified:
    xerces/c/trunk/m4/xerces_transcoder_selection.m4

Modified: xerces/c/trunk/m4/xerces_transcoder_selection.m4
URL: http://svn.apache.org/viewvc/xerces/c/trunk/m4/xerces_transcoder_selection.m4?rev=800818&r1=800817&r2=800818&view=diff
==============================================================================
--- xerces/c/trunk/m4/xerces_transcoder_selection.m4 (original)
+++ xerces/c/trunk/m4/xerces_transcoder_selection.m4 Tue Aug  4 14:25:22 2009
@@ -23,7 +23,9 @@
 
 	# Check for GNU iconv support
 	no_GNUiconv=false
-	AC_CHECK_HEADERS([iconv.h wchar.h string.h stdlib.h stdio.h ctype.h locale.h errno.h endian.h], [], [no_GNUiconv=true])
+	AC_CHECK_HEADERS([iconv.h wchar.h string.h stdlib.h stdio.h ctype.h locale.h errno.h], [], [no_GNUiconv=true])
+    # The code in iconv loads either endian.h or machine/endian.h, so verify that at least one is present
+	AC_CHECK_HEADER([endian.h], [], [AC_CHECK_HEADER([machine/endian.h],[],[no_GNUiconv=true])])
 	AC_CHECK_FUNCS([iconv_open iconv_close iconv], [], [no_GNUiconv=true])
 	AC_MSG_CHECKING([whether we can support the GNU iconv Transcoder])
 	list_add=



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org