fi
AC_SUBST(GTK_JOYSTICK)
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+AC_CHECK_HEADERS(iostream)
+if test "x$HAVE_IOSTREAM" = "x" ; then
+ AC_DEFINE(wxUSE_IOSTREAMH)
+fi
+AC_LANG_RESTORE
+
+dnl defines HAVE_IOSTREAM
dnl ###################
dnl # checks typedefs #
dnl ###################
DEFAULT_wxUSE_ZLIB=1
DEFAULT_wxUSE_GDK_IMLIB=1
DEFAULT_wxUSE_LIBPNG=1
-DEFAULT_wxUSE_ODBC=1
+DEFAULT_wxUSE_ODBC=0
DEFAULT_wxUSE_COMBOBOX=1
DEFAULT_wxUSE_GAUGE=1
DEFAULT_wxUSE_WXTREE=0
DEFAULT_wxUSE_HELP=0
+DEFAULT_wxUSE_UNICODE=1
+DEFAULT_wxUSE_WCSRTOMBS=0
+
dnl ----------------------------------------------------------------
dnl toolkit options
dnl ----------------------------------------------------------------
**--with-postscript use wxPostscriptDC device context,
wxUSE_POSTSCRIPT)
+dnl ----------------------------------------------------------------
+dnl user options for wxString and Unicode
+dnl ----------------------------------------------------------------
+
+AC_OVERRIDES(unicode,unicode,
+**--with-unicode compile wxString with Unicode support,
+wxUSE_UNICODE)
+
+AC_OVERRIDES(wcsrtombs,wcsrtombs,
+**--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs,
+wxUSE_WCSRTOMBS)
+
dnl ----------------------------------------------------------------
dnl user options for Prolog and Resources
dnl ----------------------------------------------------------------
AC_DEFINE_UNQUOTED(wxUSE_PRINTING_ARCHITECTURE,$wxUSE_PRINTING_ARCHITECTURE)
fi
+dnl ----------------------------------------------------------------
+dnl Register wxString options for makefiles and setup.h
+dnl ----------------------------------------------------------------
+
+if test "$wxUSE_UNICODE" = 1 ; then
+ AC_DEFINE_UNQUOTED(wxUSE_UNICODE)
+fi
+
+if test "$wxUSE_WCSRTOMBS" = 1 ; then
+ AC_DEFINE_UNQUOTED(wxUSE_WCSRTOMBS)
+fi
+
dnl ----------------------------------------------------------------
dnl Register misc options for makefiles and setup.h
dnl ----------------------------------------------------------------
case "${canonical}" in
*-hp-hpux* )
- if test "${CC}" != "gcc" ; then
+ if test "$GCC" != "yes" ; then
CXXFLAGS="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
CFLAGS="${CFLAGS} -z -D_HPUX_SOURCE"
PICFLAGS="+z"
;;
*-*-solaris2* )
- if test "${CC}" != "gcc" ; then
+ if test "$GCC" != "yes" ; then
PICFLAGS="-KPIC"
else
PICFLAGS="-fPIC"
;;
*-*-sunos4* )
- if test "${CC}" != "gcc" ; then
+ if test "$GCC" != "yes" ; then
PICFLAGS="-PIC"
else
PICFLAGS="-fPIC"
;;
*-*-dgux5* )
- if test "${CC}" != "gcc" ; then
+ if test "$GCC" != "yes" ; then
PICFLAGS="-K PIC"
else
PICFLAGS="-fPIC"
;;
*-*-sysv5* )
- if test "${CC}" != "gcc" ; then
+ if test "$GCC" != "yes" ; then
PICFLAGS="-K PIC"
else
PICFLAGS="-fPIC"
;;
*-*-aix* )
- if test "${CC}" != "gcc" ; then
+ if test "$GCC" != "yes" ; then
PICFLAGS="-bM\:SRE"
else
PICFLAGS="-fPIC"