X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/892dbe99611bae3e822613972665512180032628..ccfd0a25fe037ea732f45b766fa234eedc56d5e9:/configure.in diff --git a/configure.in b/configure.in index f10488691f..6baea894c1 100644 --- a/configure.in +++ b/configure.in @@ -4,7 +4,7 @@ dnl Top-level configure.in for wxWindows by Robert Roebling, Wolfram Gloger 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]]]) @@ -437,6 +437,11 @@ if test "$ac_cv_header_linux_joystick_h" = "yes"; then 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) @@ -586,6 +591,7 @@ USE_VMS= USE_ULTRIX= USE_DATA_GENERAL= +AC_DEFINE(__UNIX__) case "${canonical}" in *-hp-hpux* ) USE_HPUX=1 @@ -594,6 +600,12 @@ case "${canonical}" in *-*-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 @@ -659,7 +671,7 @@ dnl ------------------------------------------------------------------------ AC_OVERRIDES_PREPARE -DEFAULT_wxUSE_GTK=1 +DEFAULT_wxUSE_GTK=0 DEFAULT_wxUSE_QT=0 DEFAULT_wxUSE_MOTIF=0 @@ -705,7 +717,7 @@ DEFAULT_wxUSE_POSTSCRIPT=1 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 @@ -761,6 +773,10 @@ AC_OVERRIDES(debug_info,debug_info, **--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) @@ -1009,7 +1025,7 @@ if test "$wxUSE_GTK" = 1; then ], 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 @@ -1076,10 +1092,11 @@ if test "$wxUSE_MOTIF" = 1; then 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 @@ -1104,8 +1121,15 @@ dnl Register compile options for makefiles and setup.h 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) @@ -1609,7 +1633,11 @@ if test "x$GCC" = xyes; then 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