Fixes to allow compilation with no wchar_t (djgpp probably has a real wchar_t

now, I will check, but compilation should work without anyway).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2005-04-22 15:12:46 +00:00
parent ade0f98ade
commit 61c213fe22
3 changed files with 22 additions and 2 deletions

View File

@@ -1813,6 +1813,11 @@ AC_CHECK_SIZEOF(wchar_t, 0,
#include <stdio.h>
]
)
if test "$ac_cv_sizeof_wchar_t" != "0"; then
wxUSE_WCHAR_T=yes
else
wxUSE_WCHAR_T=no
fi
dnl checks needed to define wxVaCopy
AC_CACHE_CHECK([for va_copy],
@@ -2447,6 +2452,17 @@ dnl ------------------------------------------------------------------------
dnl Check for expat libraries
dnl ------------------------------------------------------------------------
if test "$wxUSE_WCHAR_T" != "yes"; then
if test "$wxUSE_EXPAT" != "no"; then
AC_MSG_WARN([wxWidgets requires wchar_t to use expat, disabling])
wxUSE_EXPAT=no
fi
if test "$wxUSE_XML" != "no"; then
AC_MSG_WARN([wxWidgets requires wchar_t to use xml, disabling])
wxUSE_XML=no
fi
fi
if test "$wxUSE_EXPAT" != "no"; then
wxUSE_XML=yes
AC_DEFINE(wxUSE_EXPAT)
@@ -3764,7 +3780,7 @@ dnl Check for functions
dnl ---------------------------------------------------------------------------
dnl don't check for wchar_t functions if we haven't got wchar_t itself
if test "$ac_cv_sizeof_wchar_t" != "0"; then
if test "$wxUSE_WCHAR_T" = "yes"; then
AC_DEFINE(wxUSE_WCHAR_T)
dnl check for wcslen in all possible places