dnl and Martin Sperl.
dnl
dnl This script is under the wxWindows licence.
-dnl
+dnl $Id$
dnl ////////////////////////////////////////////////////////////////////////
dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
fi
AC_SUBST(GTK_JOYSTICK)
+dnl check for vprintf/vsprintf() which are GNU extensions
+AC_FUNC_VPRINTF
+dnl check for vsnprintf() which is another GNU extension
+AC_CHECK_FUNC(vsnprintf)
+
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_HEADERS(iostream)
USE_ULTRIX=
USE_DATA_GENERAL=
+AC_DEFINE(__UNIX__)
case "${canonical}" in
*-hp-hpux* )
USE_HPUX=1
*-*-linux* )
USE_LINUX=1
AC_DEFINE(__LINUX__)
+ TMP=`uname -m`
+ if test "x$TMP" = "xalpha"
+ then
+ USE_ALPHA=1
+ AC_DEFINE(__ALPHA__)
+ fi
;;
*-*-irix5* | *-*-irix6* )
USE_SGI=1
AC_OVERRIDES_PREPARE
-DEFAULT_wxUSE_GTK=1
+DEFAULT_wxUSE_GTK=0
DEFAULT_wxUSE_QT=0
DEFAULT_wxUSE_MOTIF=0
DEFAULT_wxUSE_IPC=1
DEFAULT_wxUSE_RESOURCES=1
DEFAULT_wxUSE_CONSTRAINTS=1
-DEFAULT_wxUSE_CLIPBOARD=0
+DEFAULT_wxUSE_CLIPBOARD=1
DEFAULT_wxUSE_DND=1
DEFAULT_wxUSE_MDI_ARCHITECTURE=1
**--with-debug_info create code with debuging information,
wxUSE_DEBUG_INFO)
+AC_OVERRIDES(debug_gdb,debug_gdb,
+**--with-debug_gdb create code with extra GDB debuging information,
+wxUSE_DEBUG_GDB)
+
AC_OVERRIDES(mem_tracing,mem_tracing,
**--with-mem_traing create code with memory tracing,
wxUSE_MEM_TRACING)
], AC_MSG_ERROR(Is gtk-config in path and GTK+ is version 1.0.4?))
TOOLKIT=GTK
TOOLKIT_DEF=__WXGTK__
- WX_LINK=-lwx_gtk
+ WX_LINK=-lwx_gtk_1_0
MAKEINCLUDE=../gtk.inc
fi
else
AC_MSG_ERROR(no)
fi
- GUI_TK_LINK="-lXt -lXmu -lXpm -lX11 -lXm -lm"
+
+ GUI_TK_LINK="-lXm -lXmu -lXt -lXpm -lX11 -lm"
GUI_TK_LINK="$CHECK_LINK $GUI_TK_LINK"
TOOLKIT=MOTIF
- TOOLKIT_DEF=__WXMOTIF__
+ TOOLKIT_DEF="__WXMOTIF__ -D__LINUX__ -D__UNIX__"
WX_LINK=-lwx_motif
MAKEINCLUDE=../motif.inc
fi
dnl ----------------------------------------------------------------
WXDEBUG=
-if test "$wxUSE_DEBUG_INFO" = 1 ; then
- WXDEBUG="-g -O0"
+if test "$wxUSE_DEBUG_GDB" = 1 ; then
+ wxUSE_DEBUG_INFO=1
+ WXDEBUG="-ggdb"
+ wxUSE_OPTIMISE=0
+else
+ if test "$wxUSE_DEBUG_INFO" = 1 ; then
+ WXDEBUG="-g"
+ wxUSE_OPTIMISE=0
+ fi
fi
AC_SUBST(WXDEBUG)
fi
if test "x$GXX" = xyes; then
- CXXFLAGS="${CXXFLAGS} -Wall"
+ if test "$wxUSE_MOTIF" = 1; then
+ CXXFLAGS="${CXXFLAGS} -Wall -Wno-unused"
+ else
+ CXXFLAGS="${CXXFLAGS} -Wall"
+ fi
fi
if test "$wxUSE_SHARED" != 1; then