DEFAULT_wxUSE_UNICODE=no
DEFAULT_wxUSE_UNICODE_MSLU=no
- DEFAULT_wxUSE_UNICODE_UTF8=no
+ DEFAULT_wxUSE_UNICODE_UTF8=auto
DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
DEFAULT_wxUSE_WCSRTOMBS=no
DEFAULT_wxUSE_UNICODE=no
DEFAULT_wxUSE_UNICODE_MSLU=yes
- DEFAULT_wxUSE_UNICODE_UTF8=no
+ DEFAULT_wxUSE_UNICODE_UTF8=auto
DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
DEFAULT_wxUSE_WCSRTOMBS=no
LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
if test "x$LINE" != x ; then
eval "DEFAULT_$LINE"
- wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
else
no_cache=1
- wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
fi
+ wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
+
fi;
eval "$wx_cv_use_universal_binary"
if test "${enable_utf8+set}" = set; then
enableval="$enable_utf8"
- if test "$enableval" = yes; then
- ac_cv_use_utf8='wxUSE_UNICODE_UTF8=yes'
- else
- ac_cv_use_utf8='wxUSE_UNICODE_UTF8=no'
- fi
+ wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
else
no_cache=1
fi
- ac_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
+ wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
fi;
- eval "$ac_cv_use_utf8"
+ eval "$wx_cv_use_utf8"
if test "$no_cache" != 1; then
- echo $ac_cv_use_utf8 >> ${wx_arg_cache_file}.tmp
+ echo $wx_cv_use_utf8 >> ${wx_arg_cache_file}.tmp
fi
- if test "$wxUSE_UNICODE_UTF8" = yes; then
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
- else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
- fi
+ echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
+echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6
enablestring=
fi
+
+if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
+ if test "$TOOLKIT" = "DFB" ; then
+ wxUSE_UNICODE_UTF8=yes
+ elif test "$TOOLKIT" = "GTK" -a "$WXGTK20" = "1" ; then
+ wxUSE_UNICODE_UTF8=yes
+ else
+ wxUSE_UNICODE_UTF8=no
+ fi
+fi
+
+
if test "$wxUSE_GUI" = "yes"; then
if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
+if test "$wxUSE_UNICODE" = "yes"; then
+echo " Should wxWidgets use UTF-8 internally? ${wxUSE_UNICODE_UTF8:-no}"
+fi
echo " What level of wxWidgets compatibility should be enabled?"
echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-no}"