1999-06-01 16:14:29 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_REVISION($Id$)dnl
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl Top-level configure.in for wxWindows by Robert Roebling, Phil Blecker,
|
|
|
|
dnl Vadim Zeitlin and Ron Lee
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl
|
|
|
|
dnl This script is under the wxWindows licence.
|
|
|
|
dnl
|
|
|
|
dnl Version: $Id$
|
1999-06-04 22:25:40 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl initialization
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
1999-06-13 22:27:35 +00:00
|
|
|
dnl the file passed to AC_INIT should be specific to our package
|
2001-12-27 23:15:52 +00:00
|
|
|
AC_INIT([wx-config.in])
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2000-03-13 09:45:00 +00:00
|
|
|
dnl sets build, host, target variables and the same with _alias
|
2000-02-02 17:11:36 +00:00
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
|
|
|
|
dnl When making releases do:
|
|
|
|
dnl
|
|
|
|
dnl WX_RELEASE_NUMBER += 1
|
1999-06-05 20:42:19 +00:00
|
|
|
dnl
|
2001-04-16 00:19:18 +00:00
|
|
|
dnl ..and update WX_CURRENT, WX_RELEASE and WX_AGE according to the
|
|
|
|
dnl following rules:
|
1999-06-05 20:42:19 +00:00
|
|
|
dnl
|
2001-04-16 00:19:18 +00:00
|
|
|
dnl If any changes have been made to the public interface, that is if any
|
|
|
|
dnl exported class, method, global or global type has been added, removed
|
|
|
|
dnl or changed in any way, then do: WX_CURRENT += 1
|
|
|
|
dnl
|
|
|
|
dnl If source changes have been made that *do not* alter the public
|
|
|
|
dnl interface then do: WX_REVISION += 1
|
|
|
|
dnl If WX_CURRENT was incremented (as above) instead do: WX_REVISION = 0
|
|
|
|
dnl
|
|
|
|
dnl If any public interface was added, do: WX_AGE += 1
|
|
|
|
dnl If any public interface was removed (or altered in a way effectively
|
|
|
|
dnl removing the previous definition), instead do: WX_AGE = 0
|
|
|
|
dnl
|
|
|
|
dnl When the major or minor version numbers are incremented, all the above
|
|
|
|
dnl variables should be reset to 0.
|
|
|
|
dnl
|
|
|
|
dnl The resulting library name will be of the form:
|
|
|
|
dnl libwx_$(TOOLKIT)-$(WX_RELEASE).so.$(WX_CURRENT).$(WX_REVISION).$(WX_AGE)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
WX_MAJOR_VERSION_NUMBER=2
|
2000-07-26 21:31:39 +00:00
|
|
|
WX_MINOR_VERSION_NUMBER=3
|
2001-12-19 23:47:53 +00:00
|
|
|
WX_RELEASE_NUMBER=3
|
1999-06-01 16:14:29 +00:00
|
|
|
|
1999-06-05 20:42:19 +00:00
|
|
|
WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
|
1999-08-12 12:54:33 +00:00
|
|
|
WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
|
2001-04-16 00:19:18 +00:00
|
|
|
|
2001-11-04 01:29:54 +00:00
|
|
|
WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
|
|
|
|
|
2001-12-19 23:47:53 +00:00
|
|
|
WX_CURRENT=2
|
2001-04-16 00:19:18 +00:00
|
|
|
WX_REVISION=0
|
|
|
|
WX_AGE=0
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
dnl Check platform (host system)
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
|
|
|
dnl assume Unix
|
|
|
|
USE_UNIX=1
|
1999-10-13 18:51:01 +00:00
|
|
|
USE_WIN32=0
|
2001-12-15 23:15:39 +00:00
|
|
|
USE_DOS=0
|
1999-12-22 21:09:32 +00:00
|
|
|
USE_BEOS=0
|
2001-04-26 14:13:01 +00:00
|
|
|
USE_MAC=0
|
1999-12-22 21:09:32 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
USE_LINUX=
|
|
|
|
USE_SGI=
|
|
|
|
USE_HPUX=
|
|
|
|
USE_SYSV=
|
|
|
|
USE_SVR4=
|
|
|
|
USE_AIX=
|
|
|
|
USE_SUN=
|
|
|
|
USE_SOLARIS=
|
|
|
|
USE_SUNOS=
|
|
|
|
USE_ALPHA=
|
|
|
|
USE_OSF=
|
|
|
|
USE_BSD=
|
2001-07-15 18:47:13 +00:00
|
|
|
USE_DARWIN=
|
1999-06-01 16:14:29 +00:00
|
|
|
USE_FREEBSD=
|
2001-04-24 13:35:47 +00:00
|
|
|
USE_OPENBSD=
|
2000-07-15 19:51:35 +00:00
|
|
|
USE_NETBSD=
|
1999-06-01 16:14:29 +00:00
|
|
|
USE_VMS=
|
|
|
|
USE_ULTRIX=
|
|
|
|
USE_DATA_GENERAL=
|
|
|
|
|
1999-11-02 18:58:22 +00:00
|
|
|
dnl on some platforms xxx_r() functions are declared inside "#ifdef
|
|
|
|
dnl _REENTRANT" and it's easier to just define this symbol for these platforms
|
|
|
|
dnl than checking it during run-time
|
|
|
|
NEEDS_D_REENTRANT_FOR_R_FUNCS=0
|
|
|
|
|
2001-12-14 19:34:00 +00:00
|
|
|
dnl the additional define needed for MT programs
|
|
|
|
CPP_MT_FLAG=-D_REENTRANT
|
|
|
|
|
1999-06-08 18:03:36 +00:00
|
|
|
dnl the list of all available toolkits
|
2001-06-26 20:59:19 +00:00
|
|
|
dnl
|
|
|
|
dnl update NUM_TOOLKITS calculation below when adding a new toolkit here!
|
2002-02-07 13:45:42 +00:00
|
|
|
ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
|
1999-06-08 18:03:36 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl NB: these wxUSE_XXX constants have value of 0 or 1 unlike all the other ones
|
|
|
|
dnl which are either yes or no
|
|
|
|
DEFAULT_wxUSE_GTK=0
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_MAC=0
|
|
|
|
DEFAULT_wxUSE_MGL=0
|
2001-12-21 19:22:48 +00:00
|
|
|
DEFAULT_wxUSE_MICROWIN=0
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_MOTIF=0
|
|
|
|
DEFAULT_wxUSE_MSW=0
|
1999-12-23 17:59:26 +00:00
|
|
|
DEFAULT_wxUSE_PM=0
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_WINE=0
|
2002-02-07 13:45:42 +00:00
|
|
|
DEFAULT_wxUSE_X11=0
|
1999-06-01 16:14:29 +00:00
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
dnl these are the values which are really default for the given platform -
|
|
|
|
dnl they're not cached and are only used if no --with-toolkit was given *and*
|
|
|
|
dnl nothing was found in the cache
|
|
|
|
DEFAULT_DEFAULT_wxUSE_GTK=0
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MAC=0
|
|
|
|
DEFAULT_DEFAULT_wxUSE_MGL=0
|
2001-12-21 19:22:48 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MICROWIN=0
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MOTIF=0
|
|
|
|
DEFAULT_DEFAULT_wxUSE_MSW=0
|
1999-12-23 17:59:26 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_PM=0
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_WINE=0
|
2002-02-07 13:45:42 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_X11=0
|
1999-06-07 18:27:43 +00:00
|
|
|
|
2000-02-21 13:19:03 +00:00
|
|
|
PROGRAM_EXT=
|
2001-09-28 07:00:13 +00:00
|
|
|
SO_SUFFIX=so
|
2000-02-21 13:19:03 +00:00
|
|
|
|
1999-12-22 21:09:32 +00:00
|
|
|
dnl to support a new system, you need to add its canonical name (as determined
|
|
|
|
dnl by config.sub or specified by the configure command line) to this "case"
|
|
|
|
dnl and also define the shared library flags below - search for
|
|
|
|
dnl SHARED_LIB_SETUP to find the exact place
|
1999-06-01 16:14:29 +00:00
|
|
|
case "${host}" in
|
|
|
|
*-hp-hpux* )
|
|
|
|
USE_HPUX=1
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MOTIF=1
|
1999-11-02 18:58:22 +00:00
|
|
|
NEEDS_D_REENTRANT_FOR_R_FUNCS=1
|
2001-09-28 07:00:13 +00:00
|
|
|
SO_SUFFIX=sl
|
1999-06-01 16:14:29 +00:00
|
|
|
AC_DEFINE(__HPUX__)
|
|
|
|
;;
|
|
|
|
*-*-linux* )
|
|
|
|
USE_LINUX=1
|
|
|
|
AC_DEFINE(__LINUX__)
|
|
|
|
TMP=`uname -m`
|
|
|
|
if test "x$TMP" = "xalpha"; then
|
|
|
|
USE_ALPHA=1
|
|
|
|
AC_DEFINE(__ALPHA__)
|
|
|
|
fi
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_GTK=1
|
1999-06-01 16:14:29 +00:00
|
|
|
;;
|
|
|
|
*-*-irix5* | *-*-irix6* )
|
|
|
|
USE_SGI=1
|
|
|
|
USE_SVR4=1
|
|
|
|
AC_DEFINE(__SGI__)
|
|
|
|
AC_DEFINE(__SVR4__)
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MOTIF=1
|
1999-06-01 16:14:29 +00:00
|
|
|
;;
|
|
|
|
*-*-solaris2* )
|
|
|
|
USE_SUN=1
|
|
|
|
USE_SOLARIS=1
|
|
|
|
USE_SVR4=1
|
|
|
|
AC_DEFINE(__SUN__)
|
|
|
|
AC_DEFINE(__SOLARIS__)
|
|
|
|
AC_DEFINE(__SVR4__)
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MOTIF=1
|
1999-11-02 18:58:22 +00:00
|
|
|
NEEDS_D_REENTRANT_FOR_R_FUNCS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
;;
|
|
|
|
*-*-sunos4* )
|
|
|
|
USE_SUN=1
|
|
|
|
USE_SUNOS=1
|
|
|
|
USE_BSD=1
|
|
|
|
AC_DEFINE(__SUN__)
|
|
|
|
AC_DEFINE(__SUNOS__)
|
|
|
|
AC_DEFINE(__BSD__)
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MOTIF=1
|
1999-06-01 16:14:29 +00:00
|
|
|
;;
|
2000-07-15 19:51:35 +00:00
|
|
|
*-*-freebsd*)
|
1999-06-01 16:14:29 +00:00
|
|
|
USE_BSD=1
|
|
|
|
USE_FREEBSD=1
|
2001-12-14 19:34:00 +00:00
|
|
|
CPP_MT_FLAG=-D_THREAD_SAFE
|
1999-06-01 16:14:29 +00:00
|
|
|
AC_DEFINE(__FREEBSD__)
|
|
|
|
AC_DEFINE(__BSD__)
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_GTK=1
|
1999-06-01 16:14:29 +00:00
|
|
|
;;
|
2001-04-24 13:35:47 +00:00
|
|
|
*-*-openbsd*)
|
|
|
|
USE_BSD=1
|
|
|
|
USE_OPENBSD=1
|
|
|
|
AC_DEFINE(__FREEBSD__)
|
|
|
|
AC_DEFINE(__OPENBSD__)
|
|
|
|
DEFAULT_DEFAULT_wxUSE_GTK=1
|
|
|
|
;;
|
2000-07-15 19:51:35 +00:00
|
|
|
*-*-netbsd*)
|
|
|
|
USE_BSD=1
|
|
|
|
USE_NETBSD=1
|
|
|
|
AC_DEFINE(__FREEBSD__)
|
|
|
|
AC_DEFINE(__NETBSD__)
|
|
|
|
DEFAULT_DEFAULT_wxUSE_GTK=1
|
|
|
|
;;
|
1999-06-01 16:14:29 +00:00
|
|
|
*-*-osf* )
|
|
|
|
USE_ALPHA=1
|
|
|
|
USE_OSF=1
|
|
|
|
AC_DEFINE(__ALPHA__)
|
|
|
|
AC_DEFINE(__OSF__)
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MOTIF=1
|
2000-07-15 19:51:35 +00:00
|
|
|
NEEDS_D_REENTRANT_FOR_R_FUNCS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
;;
|
|
|
|
*-*-dgux5* )
|
|
|
|
USE_ALPHA=1
|
|
|
|
USE_SVR4=1
|
|
|
|
AC_DEFINE(__ALPHA__)
|
|
|
|
AC_DEFINE(__SVR4__)
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MOTIF=1
|
1999-06-01 16:14:29 +00:00
|
|
|
;;
|
|
|
|
*-*-sysv5* )
|
|
|
|
USE_SYSV=1
|
|
|
|
USE_SVR4=1
|
|
|
|
AC_DEFINE(__SYSV__)
|
|
|
|
AC_DEFINE(__SVR4__)
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MOTIF=1
|
1999-06-01 16:14:29 +00:00
|
|
|
;;
|
|
|
|
*-*-aix* )
|
|
|
|
USE_AIX=1
|
|
|
|
USE_SYSV=1
|
|
|
|
USE_SVR4=1
|
|
|
|
AC_DEFINE(__AIX__)
|
|
|
|
AC_DEFINE(__SYSV__)
|
|
|
|
AC_DEFINE(__SVR4__)
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MOTIF=1
|
1999-06-01 16:14:29 +00:00
|
|
|
;;
|
1999-06-13 22:27:35 +00:00
|
|
|
|
2001-05-07 15:52:18 +00:00
|
|
|
*-*-cygwin* | *-*-mingw32* )
|
1999-07-17 16:23:35 +00:00
|
|
|
USE_UNIX=0
|
1999-10-13 18:51:01 +00:00
|
|
|
USE_WIN32=1
|
2001-09-28 07:00:13 +00:00
|
|
|
SO_SUFFIX=dll
|
1999-07-17 16:23:35 +00:00
|
|
|
AC_DEFINE(__WIN32__)
|
|
|
|
AC_DEFINE(__WIN95__)
|
|
|
|
AC_DEFINE(__WINDOWS__)
|
|
|
|
AC_DEFINE(__GNUWIN32__)
|
1999-08-23 12:43:15 +00:00
|
|
|
AC_DEFINE(STRICT)
|
1999-07-17 16:23:35 +00:00
|
|
|
AC_DEFINE(WINVER, 0x0400)
|
2000-01-26 18:28:16 +00:00
|
|
|
PROGRAM_EXT=".exe"
|
2001-10-02 21:36:16 +00:00
|
|
|
RESCOMP=windres
|
1999-06-13 22:27:35 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MSW=1
|
|
|
|
;;
|
|
|
|
|
2001-12-15 23:15:39 +00:00
|
|
|
*-pc-msdosdjgpp )
|
|
|
|
USE_UNIX=0
|
|
|
|
USE_DOS=1
|
|
|
|
AC_DEFINE(__DOS__)
|
|
|
|
PROGRAM_EXT=".exe"
|
|
|
|
DEFAULT_DEFAULT_wxUSE_MGL=1
|
|
|
|
;;
|
|
|
|
|
2001-10-21 12:38:31 +00:00
|
|
|
*-pc-os2_emx | *-pc-os2-emx )
|
1999-06-13 15:24:01 +00:00
|
|
|
AC_DEFINE(__EMX__)
|
2000-01-26 18:28:16 +00:00
|
|
|
PROGRAM_EXT=".exe"
|
1999-12-23 17:59:26 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_PM=1
|
2002-02-16 21:03:47 +00:00
|
|
|
LIBS="$LIBS -lstdcpp"
|
1999-06-13 15:24:01 +00:00
|
|
|
;;
|
1999-06-13 22:27:35 +00:00
|
|
|
|
2001-10-02 15:48:50 +00:00
|
|
|
powerpc-*-darwin* )
|
|
|
|
dnl PowerPC Darwin based distributions (including Mac OS X)
|
2001-02-04 19:53:25 +00:00
|
|
|
USE_BSD=1
|
2001-07-15 18:47:13 +00:00
|
|
|
USE_DARWIN=1
|
2001-12-14 19:34:00 +00:00
|
|
|
CPP_MT_FLAG=
|
2001-09-28 07:00:13 +00:00
|
|
|
SO_SUFFIX=dylib
|
2001-02-04 19:53:25 +00:00
|
|
|
AC_DEFINE(__BSD__)
|
2001-07-15 18:47:13 +00:00
|
|
|
AC_DEFINE(__DARWIN__)
|
2001-10-02 15:48:50 +00:00
|
|
|
AC_DEFINE(__POWERPC__)
|
2001-02-04 19:53:25 +00:00
|
|
|
DEFAULT_DEFAULT_wxUSE_MAC=1
|
|
|
|
;;
|
|
|
|
|
1999-12-22 21:09:32 +00:00
|
|
|
*-*-beos* )
|
|
|
|
dnl leave USE_UNIX on - BeOS is sufficiently Unix-like for this
|
|
|
|
USE_BEOS=1
|
|
|
|
AC_DEFINE(__BEOS__)
|
|
|
|
;;
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
*)
|
1999-06-13 22:27:35 +00:00
|
|
|
AC_MSG_ERROR(unknown system type ${host}.)
|
1999-06-01 16:14:29 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
if test "$USE_UNIX" = 1 ; then
|
1999-12-22 21:09:32 +00:00
|
|
|
wxUSE_UNIX=yes
|
|
|
|
AC_DEFINE(__UNIX__)
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
2001-08-08 16:38:37 +00:00
|
|
|
dnl check for glibc version
|
2001-08-08 16:44:05 +00:00
|
|
|
if test "$USE_LINUX" = 1; then
|
2001-12-27 23:15:52 +00:00
|
|
|
AC_CACHE_CHECK([for glibc 2.1 or later], wx_lib_glibc21,[
|
2001-08-08 16:44:05 +00:00
|
|
|
AC_TRY_COMPILE([#include <features.h>],
|
|
|
|
[
|
|
|
|
#if !__GLIBC_PREREQ(2, 1)
|
|
|
|
#error not glibc2.1
|
|
|
|
#endif
|
|
|
|
],
|
|
|
|
[
|
|
|
|
wx_lib_glibc21=yes
|
|
|
|
],
|
|
|
|
[
|
|
|
|
wx_lib_glibc21=no
|
|
|
|
]
|
|
|
|
)
|
2001-12-27 23:15:52 +00:00
|
|
|
])
|
2001-08-08 16:44:05 +00:00
|
|
|
if test "$wx_lib_glibc21" = "yes"; then
|
|
|
|
AC_DEFINE(wxHAVE_GLIBC2)
|
|
|
|
fi
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl command line options for configure
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
dnl the default values for all options - we collect them all here to simplify
|
|
|
|
dnl modification of the default values (for example, if the defaults for some
|
|
|
|
dnl platform should be changed, it can be done here too)
|
|
|
|
dnl
|
|
|
|
dnl NB: see also DEFAULT_wxUSE<toolkit> variables defined above
|
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_CACHE_INIT
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl useful to test the compilation with minimum options, define as 0 for normal
|
|
|
|
dnl usage
|
|
|
|
DEBUG_CONFIGURE=0
|
|
|
|
if test $DEBUG_CONFIGURE = 1; then
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_UNIVERSAL=no
|
|
|
|
|
2002-02-11 18:03:47 +00:00
|
|
|
DEFAULT_wxUSE_NANOX=no
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_THREADS=yes
|
|
|
|
|
1999-08-12 12:54:33 +00:00
|
|
|
DEFAULT_wxUSE_SHARED=yes
|
2001-09-28 07:00:13 +00:00
|
|
|
DEFAULT_wxUSE_SONAME=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_OPTIMISE=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_PROFILE=no
|
1999-08-20 19:40:03 +00:00
|
|
|
DEFAULT_wxUSE_NO_DEPS=no
|
2001-10-24 20:41:34 +00:00
|
|
|
DEFAULT_wxUSE_NO_RTTI=yes
|
|
|
|
DEFAULT_wxUSE_NO_EXCEPTIONS=yes
|
1999-08-20 19:40:03 +00:00
|
|
|
DEFAULT_wxUSE_PERMISSIVE=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_DEBUG_FLAG=yes
|
|
|
|
DEFAULT_wxUSE_DEBUG_INFO=yes
|
|
|
|
DEFAULT_wxUSE_DEBUG_GDB=yes
|
|
|
|
DEFAULT_wxUSE_MEM_TRACING=no
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_wxUSE_DEBUG_CONTEXT=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_DMALLOC=no
|
2002-01-06 16:13:48 +00:00
|
|
|
DEFAULT_wxUSE_PRECOMP=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_APPLE_IEEE=no
|
|
|
|
|
|
|
|
DEFAULT_wxUSE_LOG=yes
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_LOGWINDOW=no
|
|
|
|
DEFAULT_wxUSE_LOGGUI=no
|
2001-11-24 23:39:47 +00:00
|
|
|
DEFAULT_wxUSE_LOGDIALOG=no
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
DEFAULT_wxUSE_GUI=yes
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_CONTROLS=no
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-07-13 13:13:59 +00:00
|
|
|
DEFAULT_wxUSE_REGEX=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_ZLIB=no
|
|
|
|
DEFAULT_wxUSE_LIBPNG=no
|
|
|
|
DEFAULT_wxUSE_LIBJPEG=no
|
1999-11-28 17:11:24 +00:00
|
|
|
DEFAULT_wxUSE_LIBTIFF=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_ODBC=no
|
2000-03-01 20:27:16 +00:00
|
|
|
DEFAULT_wxUSE_OPENGL=no
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2000-03-18 22:25:22 +00:00
|
|
|
DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
|
2001-06-08 23:42:59 +00:00
|
|
|
DEFAULT_wxUSE_SNGLINST_CHECKER=no
|
1999-06-27 22:37:41 +00:00
|
|
|
DEFAULT_wxUSE_STD_IOSTREAM=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_CMDLINE_PARSER=no
|
|
|
|
DEFAULT_wxUSE_DATETIME=no
|
|
|
|
DEFAULT_wxUSE_TIMEDATE=no
|
|
|
|
DEFAULT_wxUSE_TIMER=no
|
|
|
|
DEFAULT_wxUSE_STOPWATCH=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_FILE=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_FFILE=no
|
2001-11-14 20:40:20 +00:00
|
|
|
DEFAULT_wxUSE_TEXTBUFFER=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_TEXTFILE=no
|
1999-06-09 14:49:50 +00:00
|
|
|
DEFAULT_wxUSE_WAVE=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_INTL=no
|
|
|
|
DEFAULT_wxUSE_CONFIG=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_FONTMAP=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_STREAMS=no
|
|
|
|
DEFAULT_wxUSE_SOCKETS=no
|
1999-10-02 18:29:54 +00:00
|
|
|
DEFAULT_wxUSE_DIALUP_MANAGER=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_JOYSTICK=no
|
2001-12-21 14:43:47 +00:00
|
|
|
DEFAULT_wxUSE_DYNLIB_CLASS=no
|
2001-12-19 07:09:58 +00:00
|
|
|
DEFAULT_wxUSE_DYNAMIC_LOADER=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_LONGLONG=no
|
2000-11-24 12:38:55 +00:00
|
|
|
DEFAULT_wxUSE_GEOMETRY=no
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
|
|
|
|
DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
|
|
|
|
DEFAULT_wxUSE_POSTSCRIPT=no
|
|
|
|
|
|
|
|
DEFAULT_wxUSE_X_RESOURCES=no
|
|
|
|
DEFAULT_wxUSE_CLIPBOARD=no
|
|
|
|
DEFAULT_wxUSE_TOOLTIPS=no
|
|
|
|
DEFAULT_wxUSE_DRAG_AND_DROP=no
|
2001-07-02 10:39:00 +00:00
|
|
|
DEFAULT_wxUSE_DRAGIMAGE=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_SPLINES=no
|
|
|
|
|
|
|
|
DEFAULT_wxUSE_MDI_ARCHITECTURE=no
|
|
|
|
DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
|
|
|
|
DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
|
|
|
|
|
|
|
|
DEFAULT_wxUSE_PROLOGIO=no
|
|
|
|
DEFAULT_wxUSE_RESOURCES=no
|
|
|
|
DEFAULT_wxUSE_CONSTRAINTS=no
|
|
|
|
DEFAULT_wxUSE_IPC=no
|
|
|
|
DEFAULT_wxUSE_HELP=no
|
2001-07-11 22:30:12 +00:00
|
|
|
DEFAULT_wxUSE_MS_HTML_HELP=no
|
2001-07-03 19:38:19 +00:00
|
|
|
DEFAULT_wxUSE_WXHTML_HELP=no
|
2001-07-22 19:36:05 +00:00
|
|
|
DEFAULT_wxUSE_TREELAYOUT=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_METAFILE=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_MIMETYPE=no
|
2001-12-31 11:54:23 +00:00
|
|
|
DEFAULT_wxUSE_SYSTEM_OPTIONS=no
|
|
|
|
DEFAULT_wxUSE_PROTOCOL=no
|
|
|
|
DEFAULT_wxUSE_PROTOCOL_HTTP=no
|
|
|
|
DEFAULT_wxUSE_PROTOCOL_FTP=no
|
|
|
|
DEFAULT_wxUSE_PROTOCOL_FILE=no
|
|
|
|
DEFAULT_wxUSE_URL=no
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_COMMONDLGS=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_CHOICEDLG=no
|
|
|
|
DEFAULT_wxUSE_COLOURDLG=no
|
1999-06-15 20:21:59 +00:00
|
|
|
DEFAULT_wxUSE_DIRDLG=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_FILEDLG=no
|
2001-08-01 14:55:03 +00:00
|
|
|
DEFAULT_wxUSE_FINDREPLDLG=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_FONTDLG=no
|
|
|
|
DEFAULT_wxUSE_MSGDLG=no
|
|
|
|
DEFAULT_wxUSE_NUMBERDLG=no
|
1999-06-17 11:12:57 +00:00
|
|
|
DEFAULT_wxUSE_TEXTDLG=no
|
2001-08-06 12:19:35 +00:00
|
|
|
DEFAULT_wxUSE_SPLASH=no
|
1999-06-29 11:50:30 +00:00
|
|
|
DEFAULT_wxUSE_STARTUP_TIPS=no
|
1999-06-15 20:21:59 +00:00
|
|
|
DEFAULT_wxUSE_PROGRESSDLG=no
|
2001-07-02 12:57:56 +00:00
|
|
|
DEFAULT_wxUSE_WIZARDDLG=no
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_MENUS=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_MINIFRAME=no
|
1999-07-07 22:04:58 +00:00
|
|
|
DEFAULT_wxUSE_HTML=no
|
2000-02-27 21:06:17 +00:00
|
|
|
DEFAULT_wxUSE_FILESYSTEM=no
|
1999-07-09 14:32:50 +00:00
|
|
|
DEFAULT_wxUSE_FS_INET=no
|
|
|
|
DEFAULT_wxUSE_FS_ZIP=no
|
1999-07-10 13:23:22 +00:00
|
|
|
DEFAULT_wxUSE_BUSYINFO=no
|
|
|
|
DEFAULT_wxUSE_ZIPSTREAM=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_VALIDATORS=no
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
DEFAULT_wxUSE_ACCEL=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_BUTTON=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_BMPBUTTON=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_CALCTRL=no
|
|
|
|
DEFAULT_wxUSE_CARET=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_CHECKBOX=no
|
|
|
|
DEFAULT_wxUSE_CHECKLST=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_CHOICE=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_COMBOBOX=no
|
|
|
|
DEFAULT_wxUSE_GAUGE=no
|
|
|
|
DEFAULT_wxUSE_GRID=no
|
1999-10-06 05:13:20 +00:00
|
|
|
DEFAULT_wxUSE_NEW_GRID=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_IMAGLIST=no
|
|
|
|
DEFAULT_wxUSE_LISTBOX=no
|
|
|
|
DEFAULT_wxUSE_LISTCTRL=no
|
|
|
|
DEFAULT_wxUSE_NOTEBOOK=no
|
2001-07-22 19:36:05 +00:00
|
|
|
DEFAULT_wxUSE_PROPSHEET=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_RADIOBOX=no
|
|
|
|
DEFAULT_wxUSE_RADIOBTN=no
|
1999-06-03 15:42:54 +00:00
|
|
|
DEFAULT_wxUSE_SASH=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_SCROLLBAR=no
|
|
|
|
DEFAULT_wxUSE_SLIDER=no
|
|
|
|
DEFAULT_wxUSE_SPINBTN=no
|
1999-11-27 16:40:47 +00:00
|
|
|
DEFAULT_wxUSE_SPINCTRL=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_SPLITTER=no
|
|
|
|
DEFAULT_wxUSE_STATBMP=no
|
|
|
|
DEFAULT_wxUSE_STATBOX=no
|
|
|
|
DEFAULT_wxUSE_STATLINE=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_STATTEXT=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_STATUSBAR=yes
|
|
|
|
DEFAULT_wxUSE_TABDIALOG=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_TEXTCTRL=no
|
2001-02-08 18:57:23 +00:00
|
|
|
DEFAULT_wxUSE_TOGGLEBTN=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_TOOLBAR=no
|
1999-12-15 19:35:03 +00:00
|
|
|
DEFAULT_wxUSE_TOOLBAR_NATIVE=no
|
|
|
|
DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_TREECTRL=no
|
2001-07-07 21:42:30 +00:00
|
|
|
DEFAULT_wxUSE_POPUPWIN=no
|
2001-12-01 03:21:06 +00:00
|
|
|
DEFAULT_wxUSE_TIPWINDOW=no
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
DEFAULT_wxUSE_UNICODE=no
|
2001-12-27 23:15:52 +00:00
|
|
|
DEFAULT_wxUSE_UNICODE_MSLU=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_WCSRTOMBS=no
|
1999-10-04 20:15:38 +00:00
|
|
|
|
2001-09-30 22:06:39 +00:00
|
|
|
DEFAULT_wxUSE_PALETTE=no
|
2001-04-22 22:23:05 +00:00
|
|
|
DEFAULT_wxUSE_IMAGE=no
|
1999-09-13 17:15:43 +00:00
|
|
|
DEFAULT_wxUSE_GIF=no
|
|
|
|
DEFAULT_wxUSE_PCX=no
|
|
|
|
DEFAULT_wxUSE_PNM=no
|
2002-01-15 17:57:08 +00:00
|
|
|
DEFAULT_wxUSE_IFF=no
|
2001-04-22 22:23:05 +00:00
|
|
|
DEFAULT_wxUSE_XPM=no
|
2002-01-13 12:01:42 +00:00
|
|
|
DEFAULT_wxUSE_ICO_CUR=no
|
1999-06-01 16:14:29 +00:00
|
|
|
else
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_UNIVERSAL=no
|
|
|
|
|
2002-02-11 18:03:47 +00:00
|
|
|
DEFAULT_wxUSE_NANOX=no
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_THREADS=yes
|
|
|
|
|
1999-08-12 12:54:33 +00:00
|
|
|
DEFAULT_wxUSE_SHARED=yes
|
2001-09-28 07:00:13 +00:00
|
|
|
DEFAULT_wxUSE_SONAME=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_OPTIMISE=yes
|
|
|
|
DEFAULT_wxUSE_PROFILE=no
|
1999-08-20 19:40:03 +00:00
|
|
|
DEFAULT_wxUSE_NO_DEPS=no
|
2001-10-24 20:41:34 +00:00
|
|
|
DEFAULT_wxUSE_NO_RTTI=yes
|
|
|
|
DEFAULT_wxUSE_NO_EXCEPTIONS=yes
|
1999-08-20 19:40:03 +00:00
|
|
|
DEFAULT_wxUSE_PERMISSIVE=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_DEBUG_FLAG=no
|
|
|
|
DEFAULT_wxUSE_DEBUG_INFO=no
|
|
|
|
DEFAULT_wxUSE_DEBUG_GDB=no
|
|
|
|
DEFAULT_wxUSE_MEM_TRACING=no
|
1999-06-07 18:27:43 +00:00
|
|
|
DEFAULT_wxUSE_DEBUG_CONTEXT=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_DMALLOC=no
|
2002-01-06 16:13:48 +00:00
|
|
|
DEFAULT_wxUSE_PRECOMP=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_APPLE_IEEE=yes
|
|
|
|
|
|
|
|
DEFAULT_wxUSE_LOG=yes
|
2001-07-02 10:35:58 +00:00
|
|
|
DEFAULT_wxUSE_LOGWINDOW=yes
|
|
|
|
DEFAULT_wxUSE_LOGGUI=yes
|
2001-11-24 23:39:47 +00:00
|
|
|
DEFAULT_wxUSE_LOGDIALOG=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
DEFAULT_wxUSE_GUI=yes
|
|
|
|
|
2001-07-13 13:51:32 +00:00
|
|
|
DEFAULT_wxUSE_REGEX=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_ZLIB=yes
|
|
|
|
DEFAULT_wxUSE_LIBPNG=yes
|
|
|
|
DEFAULT_wxUSE_LIBJPEG=yes
|
1999-11-30 18:42:35 +00:00
|
|
|
DEFAULT_wxUSE_LIBTIFF=yes
|
2000-01-29 17:52:53 +00:00
|
|
|
DEFAULT_wxUSE_ODBC=no
|
2000-03-01 20:27:16 +00:00
|
|
|
DEFAULT_wxUSE_OPENGL=no
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2000-03-18 22:25:22 +00:00
|
|
|
DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
|
2001-06-08 23:42:59 +00:00
|
|
|
DEFAULT_wxUSE_SNGLINST_CHECKER=yes
|
1999-08-10 11:23:46 +00:00
|
|
|
DEFAULT_wxUSE_STD_IOSTREAM=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_CMDLINE_PARSER=yes
|
|
|
|
DEFAULT_wxUSE_DATETIME=yes
|
|
|
|
DEFAULT_wxUSE_TIMEDATE=no
|
|
|
|
DEFAULT_wxUSE_TIMER=yes
|
|
|
|
DEFAULT_wxUSE_STOPWATCH=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_FILE=yes
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_FFILE=yes
|
2001-11-14 20:40:20 +00:00
|
|
|
DEFAULT_wxUSE_TEXTBUFFER=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_TEXTFILE=yes
|
1999-06-09 14:49:50 +00:00
|
|
|
DEFAULT_wxUSE_WAVE=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_INTL=yes
|
|
|
|
DEFAULT_wxUSE_CONFIG=yes
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_FONTMAP=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_STREAMS=yes
|
|
|
|
DEFAULT_wxUSE_SOCKETS=yes
|
1999-10-02 18:29:54 +00:00
|
|
|
DEFAULT_wxUSE_DIALUP_MANAGER=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_JOYSTICK=yes
|
2001-12-21 14:43:47 +00:00
|
|
|
DEFAULT_wxUSE_DYNLIB_CLASS=yes
|
2002-02-16 20:24:13 +00:00
|
|
|
DEFAULT_wxUSE_DYNAMIC_LOADER=yes
|
1999-12-14 18:49:54 +00:00
|
|
|
DEFAULT_wxUSE_LONGLONG=yes
|
2000-11-24 12:38:55 +00:00
|
|
|
DEFAULT_wxUSE_GEOMETRY=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
|
|
|
|
DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
|
|
|
|
DEFAULT_wxUSE_POSTSCRIPT=yes
|
|
|
|
|
|
|
|
DEFAULT_wxUSE_X_RESOURCES=no
|
|
|
|
DEFAULT_wxUSE_CLIPBOARD=yes
|
|
|
|
DEFAULT_wxUSE_TOOLTIPS=yes
|
|
|
|
DEFAULT_wxUSE_DRAG_AND_DROP=yes
|
2001-07-02 10:39:00 +00:00
|
|
|
DEFAULT_wxUSE_DRAGIMAGE=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_SPLINES=yes
|
|
|
|
|
|
|
|
DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
|
|
|
|
DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
|
|
|
|
DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
|
|
|
|
|
|
|
|
DEFAULT_wxUSE_PROLOGIO=yes
|
|
|
|
DEFAULT_wxUSE_RESOURCES=yes
|
|
|
|
DEFAULT_wxUSE_CONSTRAINTS=yes
|
|
|
|
DEFAULT_wxUSE_IPC=yes
|
|
|
|
DEFAULT_wxUSE_HELP=yes
|
2001-07-11 22:30:12 +00:00
|
|
|
DEFAULT_wxUSE_MS_HTML_HELP=yes
|
2001-07-03 19:38:19 +00:00
|
|
|
DEFAULT_wxUSE_WXHTML_HELP=yes
|
2001-07-22 19:36:05 +00:00
|
|
|
DEFAULT_wxUSE_TREELAYOUT=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_METAFILE=yes
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_MIMETYPE=yes
|
2001-07-11 10:07:06 +00:00
|
|
|
DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
|
2001-12-31 11:54:23 +00:00
|
|
|
DEFAULT_wxUSE_PROTOCOL=yes
|
|
|
|
DEFAULT_wxUSE_PROTOCOL_HTTP=yes
|
|
|
|
DEFAULT_wxUSE_PROTOCOL_FTP=yes
|
|
|
|
DEFAULT_wxUSE_PROTOCOL_FILE=yes
|
|
|
|
DEFAULT_wxUSE_URL=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
DEFAULT_wxUSE_COMMONDLGS=yes
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_CHOICEDLG=yes
|
|
|
|
DEFAULT_wxUSE_COLOURDLG=yes
|
1999-06-15 20:21:59 +00:00
|
|
|
DEFAULT_wxUSE_DIRDLG=yes
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_FILEDLG=yes
|
2001-08-01 14:55:03 +00:00
|
|
|
DEFAULT_wxUSE_FINDREPLDLG=yes
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_FONTDLG=yes
|
|
|
|
DEFAULT_wxUSE_MSGDLG=yes
|
|
|
|
DEFAULT_wxUSE_NUMBERDLG=yes
|
1999-06-17 11:12:57 +00:00
|
|
|
DEFAULT_wxUSE_TEXTDLG=yes
|
2001-08-06 12:19:35 +00:00
|
|
|
DEFAULT_wxUSE_SPLASH=yes
|
1999-06-29 11:50:30 +00:00
|
|
|
DEFAULT_wxUSE_STARTUP_TIPS=yes
|
1999-06-15 20:21:59 +00:00
|
|
|
DEFAULT_wxUSE_PROGRESSDLG=yes
|
2001-07-02 15:26:32 +00:00
|
|
|
DEFAULT_wxUSE_WIZARDDLG=yes
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_MENUS=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_MINIFRAME=yes
|
1999-07-11 16:24:31 +00:00
|
|
|
DEFAULT_wxUSE_HTML=yes
|
2000-02-27 21:06:17 +00:00
|
|
|
DEFAULT_wxUSE_FILESYSTEM=yes
|
1999-07-11 16:24:31 +00:00
|
|
|
DEFAULT_wxUSE_FS_INET=yes
|
|
|
|
DEFAULT_wxUSE_FS_ZIP=yes
|
|
|
|
DEFAULT_wxUSE_BUSYINFO=yes
|
|
|
|
DEFAULT_wxUSE_ZIPSTREAM=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_VALIDATORS=yes
|
|
|
|
|
|
|
|
DEFAULT_wxUSE_ACCEL=yes
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_BUTTON=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_BMPBUTTON=yes
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_CALCTRL=yes
|
|
|
|
DEFAULT_wxUSE_CARET=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_CHECKBOX=yes
|
|
|
|
DEFAULT_wxUSE_CHECKLST=yes
|
1999-06-15 20:21:59 +00:00
|
|
|
DEFAULT_wxUSE_CHOICE=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_COMBOBOX=yes
|
|
|
|
DEFAULT_wxUSE_GAUGE=yes
|
|
|
|
DEFAULT_wxUSE_GRID=yes
|
2000-02-15 12:56:16 +00:00
|
|
|
DEFAULT_wxUSE_NEW_GRID=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_IMAGLIST=yes
|
|
|
|
DEFAULT_wxUSE_LISTBOX=yes
|
|
|
|
DEFAULT_wxUSE_LISTCTRL=yes
|
|
|
|
DEFAULT_wxUSE_NOTEBOOK=yes
|
2001-07-22 19:36:05 +00:00
|
|
|
DEFAULT_wxUSE_PROPSHEET=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_RADIOBOX=yes
|
|
|
|
DEFAULT_wxUSE_RADIOBTN=yes
|
1999-06-03 15:42:54 +00:00
|
|
|
DEFAULT_wxUSE_SASH=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_SCROLLBAR=yes
|
|
|
|
DEFAULT_wxUSE_SLIDER=yes
|
|
|
|
DEFAULT_wxUSE_SPINBTN=yes
|
1999-11-27 16:40:47 +00:00
|
|
|
DEFAULT_wxUSE_SPINCTRL=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_SPLITTER=yes
|
|
|
|
DEFAULT_wxUSE_STATBMP=yes
|
|
|
|
DEFAULT_wxUSE_STATBOX=yes
|
|
|
|
DEFAULT_wxUSE_STATLINE=yes
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_STATTEXT=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_STATUSBAR=yes
|
|
|
|
DEFAULT_wxUSE_TABDIALOG=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_TEXTCTRL=yes
|
2001-02-08 18:57:23 +00:00
|
|
|
DEFAULT_wxUSE_TOGGLEBTN=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_TOOLBAR=yes
|
1999-12-15 19:35:03 +00:00
|
|
|
DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
|
|
|
|
DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_TREECTRL=yes
|
2001-07-07 21:42:30 +00:00
|
|
|
DEFAULT_wxUSE_POPUPWIN=yes
|
2001-12-01 03:21:06 +00:00
|
|
|
DEFAULT_wxUSE_TIPWINDOW=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
DEFAULT_wxUSE_UNICODE=no
|
2001-12-27 23:15:52 +00:00
|
|
|
DEFAULT_wxUSE_UNICODE_MSLU=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_WCSRTOMBS=no
|
1999-10-04 20:15:38 +00:00
|
|
|
|
2001-09-30 22:06:39 +00:00
|
|
|
DEFAULT_wxUSE_PALETTE=yes
|
2001-04-22 22:23:05 +00:00
|
|
|
DEFAULT_wxUSE_IMAGE=yes
|
1999-09-13 17:15:43 +00:00
|
|
|
DEFAULT_wxUSE_GIF=yes
|
|
|
|
DEFAULT_wxUSE_PCX=yes
|
2002-01-18 16:44:12 +00:00
|
|
|
DEFAULT_wxUSE_IFF=no
|
1999-09-13 17:15:43 +00:00
|
|
|
DEFAULT_wxUSE_PNM=yes
|
2001-04-22 22:23:05 +00:00
|
|
|
DEFAULT_wxUSE_XPM=yes
|
2002-01-13 12:01:42 +00:00
|
|
|
DEFAULT_wxUSE_ICO_CUR=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
dnl WX_ARG_WITH should be used to select whether an external package will be
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl used or not, to configure compile-time features of this package itself,
|
1999-06-07 18:27:43 +00:00
|
|
|
dnl use WX_ARG_ENABLE instead
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl ============================
|
|
|
|
dnl external package dependecies
|
|
|
|
dnl ============================
|
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
dnl these options use AC_ARG_WITH and not WX_ARG_WITH on purpose - we cache
|
|
|
|
dnl these values manually
|
1999-06-08 18:03:36 +00:00
|
|
|
for toolkit in `echo $ALL_TOOLKITS`; do
|
1999-06-07 18:27:43 +00:00
|
|
|
LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
|
|
|
|
if test "x$LINE" != x ; then
|
|
|
|
has_toolkit_in_cache=1
|
|
|
|
eval "DEFAULT_$LINE"
|
1999-06-08 18:03:36 +00:00
|
|
|
eval "CACHE_$toolkit=1"
|
1999-06-07 18:27:43 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
1999-10-04 20:15:38 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl --disable-gui will build only non-GUI part of wxWindows: check for this
|
|
|
|
dnl first to disable many other switches if it's given
|
|
|
|
dnl
|
|
|
|
dnl NB: this is still in testing stage, don't use if you don't know what you're
|
|
|
|
dnl doing
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
WX_ARG_ENABLE(gui, [ --enable-gui use GUI classes], wxUSE_GUI)
|
|
|
|
|
1999-12-22 21:09:32 +00:00
|
|
|
if test "$wxUSE_GUI" = "yes"; then
|
1999-10-04 20:15:38 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(universal, [ --enable-universal use wxWindows GUI controls instead of native ones], wxUSE_UNIVERSAL)
|
1999-06-08 18:03:36 +00:00
|
|
|
AC_ARG_WITH(gtk, [ --with-gtk use GTK+], [wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1])
|
|
|
|
AC_ARG_WITH(motif, [ --with-motif use Motif/Lesstif], [wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1])
|
2001-02-04 19:53:25 +00:00
|
|
|
AC_ARG_WITH(mac, [ --with-mac use Mac OS X], [wxUSE_MAC="$withval" TOOLKIT_GIVEN=1])
|
1999-06-08 18:03:36 +00:00
|
|
|
AC_ARG_WITH(wine, [ --with-wine use WINE], [wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1])
|
2001-11-03 11:08:15 +00:00
|
|
|
AC_ARG_WITH(msw, [ --with-msw use MS-Windows], [wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1])
|
1999-12-23 17:59:26 +00:00
|
|
|
AC_ARG_WITH(pm, [ --with-pm use OS/2 Presentation Manager], [wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1])
|
2001-09-28 13:34:12 +00:00
|
|
|
AC_ARG_WITH(mgl, [ --with-mgl use SciTech MGL], [wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1])
|
2001-12-21 19:22:48 +00:00
|
|
|
AC_ARG_WITH(microwin, [ --with-microwin use MicroWindows], [wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1])
|
2002-02-13 16:12:49 +00:00
|
|
|
AC_ARG_WITH(x11, [ --with-x11 use X11], [wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1])
|
2002-02-12 16:51:39 +00:00
|
|
|
WX_ARG_ENABLE(nanox, [ --enable-nanox use NanoX], wxUSE_NANOX)
|
1999-06-07 18:27:43 +00:00
|
|
|
|
2002-03-12 19:24:30 +00:00
|
|
|
AC_ARG_ENABLE(gtk2, [ --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)],wxUSE_GTK2="yes",wxUSE_GTK2="no")
|
1999-06-13 22:27:35 +00:00
|
|
|
|
2000-03-03 10:46:23 +00:00
|
|
|
WX_ARG_SYS_WITH(libpng, [ --with-libpng use libpng (PNG image format)], wxUSE_LIBPNG)
|
|
|
|
WX_ARG_SYS_WITH(libjpeg, [ --with-libjpeg use libjpeg (JPEG file format)], wxUSE_LIBJPEG)
|
2000-03-06 17:37:58 +00:00
|
|
|
WX_ARG_SYS_WITH(libtiff, [ --with-libtiff use libtiff (TIFF file format)], wxUSE_LIBTIFF)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_WITH(opengl, [ --with-opengl use OpenGL (or Mesa)], wxUSE_OPENGL)
|
1999-12-22 21:09:32 +00:00
|
|
|
|
|
|
|
fi
|
|
|
|
dnl for GUI only
|
|
|
|
|
2001-12-01 18:26:24 +00:00
|
|
|
WX_ARG_WITH(dmalloc, [ --with-dmalloc use dmalloc library (http://dmalloc.com/)], wxUSE_DMALLOC)
|
2001-07-13 13:13:59 +00:00
|
|
|
WX_ARG_SYS_WITH(regex, [ --with-regex enable support for wxRegEx class], wxUSE_REGEX)
|
2000-03-03 10:46:23 +00:00
|
|
|
WX_ARG_SYS_WITH(zlib, [ --with-zlib use zlib for LZW compression], wxUSE_ZLIB)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_WITH(odbc, [ --with-odbc use the IODBC and wxODBC classes], wxUSE_ODBC)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl compile options
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
1999-08-12 12:54:33 +00:00
|
|
|
WX_ARG_ENABLE(shared, [ --enable-shared create shared library code], wxUSE_SHARED)
|
2001-09-28 07:00:13 +00:00
|
|
|
WX_ARG_ENABLE(soname, [ --enable-soname set the DT_SONAME field in ELF shared libraries], wxUSE_SONAME)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(optimise, [ --enable-optimise create optimised code], wxUSE_OPTIMISE)
|
|
|
|
WX_ARG_ENABLE(debug, [ --enable-debug same as debug_flag and debug_info], wxUSE_DEBUG)
|
1999-06-02 14:52:49 +00:00
|
|
|
|
2001-10-10 21:47:12 +00:00
|
|
|
dnl allow the precompiled header option to be disabled under Mac OS X
|
|
|
|
WX_ARG_ENABLE(precomp, [ --enable-precomp enable use of precompiled headers (Mac OS X)], wxUSE_PRECOMP)
|
|
|
|
|
1999-06-02 14:52:49 +00:00
|
|
|
if test "$wxUSE_DEBUG" = "yes"; then
|
|
|
|
DEFAULT_wxUSE_DEBUG_FLAG=yes
|
|
|
|
DEFAULT_wxUSE_DEBUG_INFO=yes
|
|
|
|
elif test "$wxUSE_DEBUG" = "no"; then
|
|
|
|
DEFAULT_wxUSE_DEBUG_FLAG=no
|
|
|
|
DEFAULT_wxUSE_DEBUG_INFO=no
|
|
|
|
fi
|
|
|
|
|
1999-06-17 19:46:17 +00:00
|
|
|
WX_ARG_ENABLE(debug_flag, [ --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)], wxUSE_DEBUG_FLAG)
|
|
|
|
WX_ARG_ENABLE(debug_info, [ --enable-debug_info create code with debugging information], wxUSE_DEBUG_INFO)
|
|
|
|
WX_ARG_ENABLE(debug_gdb, [ --enable-debug_gdb create code with extra GDB debugging information], wxUSE_DEBUG_GDB)
|
|
|
|
WX_ARG_ENABLE(debug_cntxt, [ --enable-debug_cntxt use wxDebugContext], wxUSE_DEBUG_CONTEXT)
|
|
|
|
WX_ARG_ENABLE(mem_tracing, [ --enable-mem_tracing create code with memory tracing], wxUSE_MEM_TRACING)
|
|
|
|
WX_ARG_ENABLE(profile, [ --enable-profile create code with profiling information], wxUSE_PROFILE)
|
|
|
|
WX_ARG_ENABLE(no_rtti, [ --enable-no_rtti create code without RTTI information], wxUSE_NO_RTTI)
|
2001-09-28 13:34:12 +00:00
|
|
|
WX_ARG_ENABLE(no_exceptions, [ --enable-no_exceptions create code without C++ exceptions handling], wxUSE_NO_EXCEPTIONS)
|
1999-08-20 19:40:03 +00:00
|
|
|
WX_ARG_ENABLE(permissive, [ --enable-permissive compile code disregarding strict ANSI], wxUSE_PERMISSIVE)
|
|
|
|
WX_ARG_ENABLE(no_deps, [ --enable-no_deps create code without dependency information], wxUSE_NO_DEPS)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-09-28 13:34:12 +00:00
|
|
|
WX_ARG_ENABLE(compat20, [ --enable-compat20 enable wxWindows 2.0 compatibility], WXWIN_COMPATIBILITY_2)
|
2002-02-17 22:59:27 +00:00
|
|
|
WX_ARG_ENABLE(compat22, [ --disable-compat22 disable wxWindows 2.2 compatibility], WXWIN_COMPATIBILITY_2_2)
|
2001-07-02 09:23:59 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl (small) optional non GUI classes
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
1999-06-27 22:37:41 +00:00
|
|
|
WX_ARG_ENABLE(intl, [ --enable-intl use internationalization system], wxUSE_INTL)
|
|
|
|
WX_ARG_ENABLE(config, [ --enable-config use wxConfig (and derived) classes], wxUSE_CONFIG)
|
1999-12-22 21:09:32 +00:00
|
|
|
|
2001-12-30 22:27:24 +00:00
|
|
|
WX_ARG_ENABLE(protocols, [ --enable-protocols use wxProtocol and derived classes], wxUSE_PROTOCOL)
|
|
|
|
WX_ARG_ENABLE(ftp, [ --enable-ftp use wxFTP (requires wxProtocol], wxUSE_PROTOCOL_FTP)
|
|
|
|
WX_ARG_ENABLE(http, [ --enable-http use wxHTTP (requires wxProtocol], wxUSE_PROTOCOL_HTTP)
|
|
|
|
WX_ARG_ENABLE(fileproto, [ --enable-fileproto use wxFileProto class (requires wxProtocol], wxUSE_PROTOCOL_FILE)
|
1999-06-27 22:37:41 +00:00
|
|
|
WX_ARG_ENABLE(sockets, [ --enable-sockets use socket/network classes], wxUSE_SOCKETS)
|
1999-12-22 21:09:32 +00:00
|
|
|
|
1999-06-27 22:37:41 +00:00
|
|
|
WX_ARG_ENABLE(ipc, [ --enable-ipc use interprocess communication (wxSocket etc.)], wxUSE_IPC)
|
2000-03-18 22:25:22 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(cmdline, [ --enable-cmdline use wxCmdLineParser class], wxUSE_CMDLINE_PARSER)
|
|
|
|
WX_ARG_ENABLE(datetime, [ --enable-datetime use wxDateTime class], wxUSE_DATETIME)
|
|
|
|
WX_ARG_ENABLE(timedate, [ --enable-timedate use obsolete wxDate/wxTime classes], wxUSE_TIMEDATE)
|
|
|
|
WX_ARG_ENABLE(stopwatch, [ --enable-stopwatch use wxStopWatch class], wxUSE_STOPWATCH)
|
2000-03-18 22:25:22 +00:00
|
|
|
WX_ARG_ENABLE(dialupman, [ --enable-dialupman use dialup network classes], wxUSE_DIALUP_MANAGER)
|
1999-06-27 22:37:41 +00:00
|
|
|
WX_ARG_ENABLE(apple_ieee, [ --enable-apple_ieee use the Apple IEEE codec], wxUSE_APPLE_IEEE)
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(timer, [ --enable-timer use wxTimer class], wxUSE_TIMER)
|
1999-06-27 22:37:41 +00:00
|
|
|
WX_ARG_ENABLE(wave, [ --enable-wave use wxWave class], wxUSE_WAVE)
|
|
|
|
WX_ARG_ENABLE(fraction, [ --enable-fraction use wxFraction class], wxUSE_FRACTION)
|
|
|
|
WX_ARG_ENABLE(dynlib, [ --enable-dynlib use wxLibrary class for DLL loading], wxUSE_DYNLIB_CLASS)
|
2001-12-19 07:09:58 +00:00
|
|
|
WX_ARG_ENABLE(dynamicloader, [ --enable-dynamicloader use (new) wxDynamicLibrary class], wxUSE_DYNAMIC_LOADER)
|
1999-06-27 22:37:41 +00:00
|
|
|
WX_ARG_ENABLE(longlong, [ --enable-longlong use wxLongLong class], wxUSE_LONGLONG)
|
2000-11-24 12:38:55 +00:00
|
|
|
WX_ARG_ENABLE(geometry, [ --enable-geometry use geometry class], wxUSE_GEOMETRY)
|
1999-06-27 22:37:41 +00:00
|
|
|
WX_ARG_ENABLE(log, [ --enable-log use logging system], wxUSE_LOG)
|
|
|
|
WX_ARG_ENABLE(streams, [ --enable-streams use wxStream etc classes], wxUSE_STREAMS)
|
|
|
|
WX_ARG_ENABLE(file, [ --enable-file use wxFile classes], wxUSE_FILE)
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(ffile, [ --enable-ffile use wxFFile classes], wxUSE_FFILE)
|
2001-11-14 20:40:20 +00:00
|
|
|
WX_ARG_ENABLE(textbuf, [ --enable-textbuf use wxTextBuffer class], wxUSE_TEXTBUFFER)
|
|
|
|
WX_ARG_ENABLE(textfile, [ --enable-textfile use wxTextFile class], wxUSE_TEXTFILE)
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(fontmap, [ --enable-fontmap use font encodings conversion classes], wxUSE_FONTMAP)
|
1999-06-27 22:37:41 +00:00
|
|
|
WX_ARG_ENABLE(unicode, [ --enable-unicode compile wxString with Unicode support], wxUSE_UNICODE)
|
2001-12-27 23:15:52 +00:00
|
|
|
WX_ARG_ENABLE(mslu, [ --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)], wxUSE_UNICODE_MSLU)
|
1999-06-27 22:37:41 +00:00
|
|
|
WX_ARG_ENABLE(wxprintfv, [ --enable-wxprintfv use wxWindows implementation of vprintf()], wxUSE_EXPERIMENTAL_PRINTF)
|
|
|
|
WX_ARG_ENABLE(std_iostreams, [ --enable-std_iostreams use standard C++ stream classes], wxUSE_STD_IOSTREAM)
|
2000-02-27 21:06:17 +00:00
|
|
|
WX_ARG_ENABLE(filesystem, [ --enable-filesystem use virtual file systems classes], wxUSE_FILESYSTEM)
|
1999-07-09 14:32:50 +00:00
|
|
|
WX_ARG_ENABLE(fs_inet, [ --enable-fs_inet use virtual HTTP/FTP filesystems], wxUSE_FS_INET)
|
|
|
|
WX_ARG_ENABLE(fs_zip, [ --enable-fs_zip use virtual ZIP filesystems], wxUSE_FS_ZIP)
|
1999-07-10 13:23:22 +00:00
|
|
|
WX_ARG_ENABLE(zipstream, [ --enable-zipstream use wxZipInputStream], wxUSE_ZIPSTREAM)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2000-03-18 22:25:22 +00:00
|
|
|
WX_ARG_ENABLE(catch_segvs, [ --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException], wxUSE_ON_FATAL_EXCEPTION)
|
2001-06-08 23:42:59 +00:00
|
|
|
WX_ARG_ENABLE(snglinst, [ --enable-snglinst use wxSingleInstanceChecker class], wxUSE_SNGLINST_CHECKER)
|
2000-03-18 22:25:22 +00:00
|
|
|
|
2001-11-24 23:39:47 +00:00
|
|
|
WX_ARG_ENABLE(mimetype, [ --enable-mimetype use wxMimeTypesManager], wxUSE_MIMETYPE)
|
2001-09-28 13:34:12 +00:00
|
|
|
WX_ARG_ENABLE(system_options,[ --enable-sysoptions use wxSystemOptions], wxUSE_SYSTEM_OPTIONS)
|
2001-06-26 20:59:19 +00:00
|
|
|
|
2001-12-31 11:54:23 +00:00
|
|
|
WX_ARG_ENABLE(url, [ --enable-url use wxURL class], wxUSE_URL)
|
|
|
|
WX_ARG_ENABLE(protocol, [ --enable-protocol use wxProtocol class], wxUSE_PROTOCOL)
|
|
|
|
WX_ARG_ENABLE(protocol_http, [ --enable-protocol-http HTTP support in wxProtocol], wxUSE_PROTOCOL_HTTP)
|
|
|
|
WX_ARG_ENABLE(protocol_ftp, [ --enable-protocol-ftp FTP support in wxProtocol], wxUSE_PROTOCOL_FTP)
|
|
|
|
WX_ARG_ENABLE(protocol_file, [ --enable-protocol-file FILE support in wxProtocol], wxUSE_PROTOCOL_FILE)
|
|
|
|
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl "big" options (i.e. those which change a lot of things throughout the library)
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(threads, [ --enable-threads use threads], wxUSE_THREADS)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
1999-12-22 21:09:32 +00:00
|
|
|
if test "$wxUSE_GUI" = "yes"; then
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl "big" GUI options
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(docview, [ --enable-docview use document view architecture], wxUSE_DOC_VIEW_ARCHITECTURE)
|
2001-07-03 19:38:19 +00:00
|
|
|
WX_ARG_ENABLE(help, [ --enable-help use help subsystem], wxUSE_HELP)
|
2001-07-11 22:30:12 +00:00
|
|
|
WX_ARG_ENABLE(mshtmlhelp, [ --enable-mshtmlhelp use MS HTML Help (win32)], wxUSE_MS_HTML_HELP)
|
2001-07-03 19:38:19 +00:00
|
|
|
WX_ARG_ENABLE(html, [ --enable-html use wxHTML sub-library], wxUSE_HTML)
|
|
|
|
WX_ARG_ENABLE(htmlhelp, [ --enable-htmlhelp use wxHTML-based help], wxUSE_WXHTML_HELP)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(constraints, [ --enable-constraints use layout-constraints system], wxUSE_CONSTRAINTS)
|
|
|
|
WX_ARG_ENABLE(printarch, [ --enable-printarch use printing architecture], wxUSE_PRINTING_ARCHITECTURE)
|
|
|
|
WX_ARG_ENABLE(mdi, [ --enable-mdi use multiple document interface architecture], wxUSE_MDI_ARCHITECTURE)
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(loggui, [ --enable-loggui use standard GUI logger], wxUSE_LOGGUI)
|
|
|
|
WX_ARG_ENABLE(logwin, [ --enable-logwin use wxLogWindow], wxUSE_LOGWINDOW)
|
2001-11-24 23:39:47 +00:00
|
|
|
WX_ARG_ENABLE(logdialog, [ --enable-logdialog use wxLogDialog], wxUSE_LOGDIALOG)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl PostScript options
|
|
|
|
dnl ---------------------------------------------------------------------------
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(postscript, [ --enable-postscript use wxPostscriptDC device context (default for gtk+)], wxUSE_POSTSCRIPT)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl VZ: these options seem to be always on, if someone wants to change it please do
|
1999-06-07 18:27:43 +00:00
|
|
|
dnl WX_ARG_ENABLE(PS-normalized, [ --enable-PS-normalized use normalized PS fonts], dnl wxUSE_NORMALIZED_PS_FONTS)
|
|
|
|
dnl WX_ARG_ENABLE(afmfonts, [ --enable-afmfonts use Adobe Font Metric Font table], dnl wxUSE_AFM_FOR_POSTSCRIPT)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl resources
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2001-06-26 20:59:19 +00:00
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(prologio, [ --enable-prologio use Prolog IO library], wxUSE_PROLOGIO)
|
|
|
|
WX_ARG_ENABLE(resources, [ --enable-resources use wxWindows resources], wxUSE_RESOURCES)
|
|
|
|
|
|
|
|
WX_ARG_ENABLE(xresources, [ --enable-xresources use X resources for save (default for gtk+)], wxUSE_X_RESOURCES)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl IPC &c
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(clipboard, [ --enable-clipboard use wxClipboard classes], wxUSE_CLIPBOARD)
|
|
|
|
WX_ARG_ENABLE(dnd, [ --enable-dnd use Drag'n'Drop classes], wxUSE_DRAG_AND_DROP)
|
2001-02-08 11:19:25 +00:00
|
|
|
WX_ARG_ENABLE(metafile, [ --enable-metafile use win32 metafiles], wxUSE_METAFILE)
|
1999-06-07 18:27:43 +00:00
|
|
|
|
2001-07-22 19:36:05 +00:00
|
|
|
WX_ARG_ENABLE(treelayout, [ --enable-treelayout use wxTreeLayout classes], wxUSE_TREELAYOUT)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl optional GUI controls (in alphabetical order except the first one)
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(controls, [ --enable-controls use all usual controls], wxUSE_CONTROLS)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl even with --enable-controls, some may be disabled by giving
|
|
|
|
dnl --disable-<control> later on the command line - but by default all will be
|
|
|
|
dnl used (and vice versa)
|
|
|
|
if test "$wxUSE_CONTROLS" = "yes"; then
|
|
|
|
DEFAULT_wxUSE_ACCEL=yes
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_BMPBUTTON=yes
|
|
|
|
DEFAULT_wxUSE_BUTTON=yes
|
|
|
|
DEFAULT_wxUSE_CALCTRL=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_CARET=yes
|
|
|
|
DEFAULT_wxUSE_COMBOBOX=yes
|
|
|
|
DEFAULT_wxUSE_CHECKBOX=yes
|
|
|
|
DEFAULT_wxUSE_CHECKLISTBOX=yes
|
1999-06-15 20:21:59 +00:00
|
|
|
DEFAULT_wxUSE_CHOICE=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_GAUGE=yes
|
|
|
|
DEFAULT_wxUSE_GRID=yes
|
2000-02-15 12:56:16 +00:00
|
|
|
DEFAULT_wxUSE_NEW_GRID=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_IMAGLIST=yes
|
|
|
|
DEFAULT_wxUSE_LISTBOX=yes
|
|
|
|
DEFAULT_wxUSE_LISTCTRL=yes
|
|
|
|
DEFAULT_wxUSE_NOTEBOOK=yes
|
2001-07-22 19:36:05 +00:00
|
|
|
DEFAULT_wxUSE_PROPSHEET=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_RADIOBOX=yes
|
|
|
|
DEFAULT_wxUSE_RADIOBTN=yes
|
|
|
|
DEFAULT_wxUSE_SASH=yes
|
|
|
|
DEFAULT_wxUSE_SCROLLBAR=yes
|
|
|
|
DEFAULT_wxUSE_SLIDER=yes
|
|
|
|
DEFAULT_wxUSE_SPINBTN=yes
|
1999-11-27 16:40:47 +00:00
|
|
|
DEFAULT_wxUSE_SPINCTRL=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_SPLITTER=yes
|
|
|
|
DEFAULT_wxUSE_STATBMP=yes
|
|
|
|
DEFAULT_wxUSE_STATBOX=yes
|
|
|
|
DEFAULT_wxUSE_STATLINE=yes
|
|
|
|
DEFAULT_wxUSE_STATUSBAR=yes
|
|
|
|
DEFAULT_wxUSE_TAB_DIALOG=yes
|
2001-02-08 18:57:23 +00:00
|
|
|
DEFAULT_wxUSE_TOGGLEBTN=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_TOOLBAR=yes
|
1999-12-15 19:35:03 +00:00
|
|
|
DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
|
|
|
|
DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_TOOLTIPS=yes
|
|
|
|
DEFAULT_wxUSE_TREECTRL=yes
|
2001-07-07 21:42:30 +00:00
|
|
|
DEFAULT_wxUSE_POPUPWIN=yes
|
2001-12-01 03:21:06 +00:00
|
|
|
DEFAULT_wxUSE_TIPWINDOW=yes
|
1999-06-01 16:14:29 +00:00
|
|
|
elif test "$wxUSE_CONTROLS" = "no"; then
|
|
|
|
DEFAULT_wxUSE_ACCEL=no
|
2001-06-26 20:59:19 +00:00
|
|
|
DEFAULT_wxUSE_BMPBUTTON=no
|
|
|
|
DEFAULT_wxUSE_BUTTON=no
|
|
|
|
DEFAULT_wxUSE_CALCTRL=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_CARET=no
|
|
|
|
DEFAULT_wxUSE_COMBOBOX=no
|
|
|
|
DEFAULT_wxUSE_CHECKBOX=no
|
|
|
|
DEFAULT_wxUSE_CHECKLISTBOX=no
|
1999-06-15 20:21:59 +00:00
|
|
|
DEFAULT_wxUSE_CHOICE=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_GAUGE=no
|
|
|
|
DEFAULT_wxUSE_GRID=no
|
1999-10-06 05:13:20 +00:00
|
|
|
DEFAULT_wxUSE_NEW_GRID=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_IMAGLIST=no
|
|
|
|
DEFAULT_wxUSE_LISTBOX=no
|
|
|
|
DEFAULT_wxUSE_LISTCTRL=no
|
|
|
|
DEFAULT_wxUSE_NOTEBOOK=no
|
2001-07-22 19:36:05 +00:00
|
|
|
DEFAULT_wxUSE_PROPSHEET=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_RADIOBOX=no
|
|
|
|
DEFAULT_wxUSE_RADIOBTN=no
|
|
|
|
DEFAULT_wxUSE_SASH=no
|
|
|
|
DEFAULT_wxUSE_SCROLLBAR=no
|
|
|
|
DEFAULT_wxUSE_SLIDER=no
|
|
|
|
DEFAULT_wxUSE_SPINBTN=no
|
1999-11-27 16:40:47 +00:00
|
|
|
DEFAULT_wxUSE_SPINCTRL=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_SPLITTER=no
|
|
|
|
DEFAULT_wxUSE_STATBMP=no
|
|
|
|
DEFAULT_wxUSE_STATBOX=no
|
|
|
|
DEFAULT_wxUSE_STATLINE=no
|
|
|
|
DEFAULT_wxUSE_STATUSBAR=no
|
|
|
|
DEFAULT_wxUSE_TAB_DIALOG=no
|
2001-02-08 18:57:23 +00:00
|
|
|
DEFAULT_wxUSE_TOGGLEBTN=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_TOOLBAR=no
|
1999-12-15 19:35:03 +00:00
|
|
|
DEFAULT_wxUSE_TOOLBAR_NATIVE=no
|
|
|
|
DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
|
1999-06-01 16:14:29 +00:00
|
|
|
DEFAULT_wxUSE_TOOLTIPS=no
|
|
|
|
DEFAULT_wxUSE_TREECTRL=no
|
2001-07-07 21:42:30 +00:00
|
|
|
DEFAULT_wxUSE_POPUPWIN=no
|
2001-12-01 03:21:06 +00:00
|
|
|
DEFAULT_wxUSE_TIPWINDOW=no
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(accel, [ --enable-accel use accelerators], wxUSE_ACCEL)
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(button, [ --enable-button use wxButton class], wxUSE_BUTTON)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(bmpbutton, [ --enable-bmpbutton use wxBitmapButton class], wxUSE_BMPBUTTON)
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(calendar, [ --enable-calendar use wxCalendarCtrl class], wxUSE_CALCTRL)
|
|
|
|
WX_ARG_ENABLE(caret, [ --enable-caret use wxCaret class], wxUSE_CARET)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(checkbox, [ --enable-checkbox use wxCheckBox class], wxUSE_CHECKBOX)
|
|
|
|
WX_ARG_ENABLE(checklst, [ --enable-checklst use wxCheckListBox (listbox with checkboxes) class], wxUSE_CHECKLST)
|
1999-06-15 20:21:59 +00:00
|
|
|
WX_ARG_ENABLE(choice, [ --enable-choice use wxChoice class], wxUSE_CHOICE)
|
|
|
|
WX_ARG_ENABLE(combobox, [ --enable-combobox use wxComboBox classes], wxUSE_COMBOBOX)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(gauge, [ --enable-gauge use wxGauge class], wxUSE_GAUGE)
|
|
|
|
WX_ARG_ENABLE(grid, [ --enable-grid use wxGrid class], wxUSE_GRID)
|
1999-10-06 05:13:20 +00:00
|
|
|
WX_ARG_ENABLE(newgrid, [ --enable-newgrid use new wxGrid class], wxUSE_NEW_GRID)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(imaglist, [ --enable-imaglist use wxImageList class], wxUSE_IMAGLIST)
|
|
|
|
WX_ARG_ENABLE(listbox, [ --enable-listbox use wxListBox class], wxUSE_LISTBOX)
|
|
|
|
WX_ARG_ENABLE(listctrl, [ --enable-listctrl use wxListCtrl class], wxUSE_LISTCTRL)
|
|
|
|
WX_ARG_ENABLE(notebook, [ --enable-notebook use wxNotebook class], wxUSE_NOTEBOOK)
|
2001-07-22 19:36:05 +00:00
|
|
|
WX_ARG_ENABLE(propsheet, [ --enable-propsheet use wxPropertySheet class], wxUSE_PROPSHEET)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(radiobox, [ --enable-radiobox use wxRadioBox class], wxUSE_RADIOBOX)
|
|
|
|
WX_ARG_ENABLE(radiobtn, [ --enable-radiobtn use wxRadioButton class], wxUSE_RADIOBTN)
|
|
|
|
WX_ARG_ENABLE(sash, [ --enable-sash use wxSashWindow class], wxUSE_SASH)
|
|
|
|
WX_ARG_ENABLE(scrollbar, [ --enable-scrollbar use wxScrollBar class and scrollable windows], wxUSE_SCROLLBAR)
|
|
|
|
WX_ARG_ENABLE(slider, [ --enable-slider use wxSlider class], wxUSE_SLIDER)
|
|
|
|
WX_ARG_ENABLE(spinbtn, [ --enable-spinbtn use wxSpinButton class], wxUSE_SPINBTN)
|
1999-11-27 16:40:47 +00:00
|
|
|
WX_ARG_ENABLE(spinctrl, [ --enable-spinctrl use wxSpinCtrl class], wxUSE_SPINCTRL)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(splitter, [ --enable-splitter use wxSplitterWindow class], wxUSE_SPLITTER)
|
|
|
|
WX_ARG_ENABLE(statbmp, [ --enable-statbmp use wxStaticBitmap class], wxUSE_STATBMP)
|
|
|
|
WX_ARG_ENABLE(statbox, [ --enable-statbox use wxStaticBox class], wxUSE_STATBOX)
|
|
|
|
WX_ARG_ENABLE(statline, [ --enable-statline use wxStaticLine class], wxUSE_STATLINE)
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(stattext, [ --enable-stattext use wxStaticText class], wxUSE_STATTEXT)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(statusbar, [ --enable-statusbar use wxStatusBar class], wxUSE_STATUSBAR)
|
|
|
|
WX_ARG_ENABLE(tabdialog, [ --enable-tabdialog use wxTabControl class], wxUSE_TABDIALOG)
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(textctrl, [ --enable-textctrl use wxTextCtrl class], wxUSE_TEXTCTRL)
|
2001-02-08 18:57:23 +00:00
|
|
|
WX_ARG_ENABLE(togglebtn, [ --enable-togglebtn use wxToggleButton class], wxUSE_TOGGLEBTN)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(toolbar, [ --enable-toolbar use wxToolBar class], wxUSE_TOOLBAR)
|
1999-12-15 19:35:03 +00:00
|
|
|
WX_ARG_ENABLE(tbarnative, [ --enable-tbarnative use native wxToolBar class], wxUSE_TOOLBAR_NATIVE)
|
|
|
|
WX_ARG_ENABLE(tbarsmpl, [ --enable-tbarsmpl use wxToolBarSimple class], wxUSE_TOOLBAR_SIMPLE)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(treectrl, [ --enable-treectrl use wxTreeCtrl class], wxUSE_TREECTRL)
|
2001-12-01 03:21:06 +00:00
|
|
|
WX_ARG_ENABLE(tipwindow, [ --enable-tipwindow use wxTipWindow class], wxUSE_TIPWINDOW)
|
2001-07-07 21:42:30 +00:00
|
|
|
WX_ARG_ENABLE(popupwin, [ --enable-popupwin use wxPopUpWindow class], wxUSE_POPUPWIN)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2001-07-02 12:57:56 +00:00
|
|
|
dnl common dialogs
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2001-09-28 13:34:12 +00:00
|
|
|
WX_ARG_ENABLE(commondlg, [ --enable-commondlg use all common dialogs], wxUSE_COMMONDLGS)
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(choicedlg, [ --enable-choicedlg use wxChoiceDialog], wxUSE_CHOICEDLG)
|
|
|
|
WX_ARG_ENABLE(coldlg, [ --enable-coldlg use wxColourDialog], wxUSE_COLOURDLG)
|
|
|
|
WX_ARG_ENABLE(filedlg, [ --enable-filedlg use wxFileDialog], wxUSE_FILEDLG)
|
2001-11-24 23:39:47 +00:00
|
|
|
WX_ARG_ENABLE(finddlg, [ --enable-finddlg use wxFindReplaceDialog], wxUSE_FINDREPLDLG)
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(fontdlg, [ --enable-fontdlg use wxFontDialog], wxUSE_FONTDLG)
|
1999-06-15 20:21:59 +00:00
|
|
|
WX_ARG_ENABLE(dirdlg, [ --enable-dirdlg use wxDirDialog], wxUSE_DIRDLG)
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(msgdlg, [ --enable-msgdlg use wxMessageDialog], wxUSE_MSGDLG)
|
|
|
|
WX_ARG_ENABLE(numberdlg, [ --enable-numberdlg use wxNumberEntryDialog], wxUSE_NUMBERDLG)
|
2001-08-06 12:19:35 +00:00
|
|
|
WX_ARG_ENABLE(splash, [ --enable-splash use wxSplashScreen], wxUSE_SPLASH)
|
1999-06-17 11:12:57 +00:00
|
|
|
WX_ARG_ENABLE(textdlg, [ --enable-textdlg use wxTextDialog], wxUSE_TEXTDLG)
|
1999-06-29 11:50:30 +00:00
|
|
|
WX_ARG_ENABLE(tipdlg, [ --enable-tipdlg use startup tips], wxUSE_STARTUP_TIPS)
|
1999-06-15 20:21:59 +00:00
|
|
|
WX_ARG_ENABLE(progressdlg, [ --enable-progressdlg use wxProgressDialog], wxUSE_PROGRESSDLG)
|
2001-07-02 12:57:56 +00:00
|
|
|
WX_ARG_ENABLE(wizarddlg, [ --enable-wizarddlg use wxWizard], wxUSE_WIZARDDLG)
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl misc GUI options
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(menus, [ --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes], wxUSE_MENUS)
|
1999-06-07 18:27:43 +00:00
|
|
|
WX_ARG_ENABLE(miniframe, [ --enable-miniframe use wxMiniFrame class], wxUSE_MINIFRAME)
|
|
|
|
WX_ARG_ENABLE(tooltips, [ --enable-tooltips use wxToolTip class], wxUSE_TOOLTIPS)
|
|
|
|
WX_ARG_ENABLE(splines, [ --enable-splines use spline drawing code], wxUSE_SPLINES)
|
|
|
|
WX_ARG_ENABLE(validators, [ --enable-validators use wxValidator and derived classes], wxUSE_VALIDATORS)
|
1999-07-10 13:23:22 +00:00
|
|
|
WX_ARG_ENABLE(busyinfo, [ --enable-busyinfo use wxBusyInfo], wxUSE_BUSYINFO)
|
2001-09-28 13:34:12 +00:00
|
|
|
WX_ARG_ENABLE(joystick, [ --enable-joystick use wxJoystick (Linux only)], wxUSE_JOYSTICK)
|
2001-06-26 20:59:19 +00:00
|
|
|
WX_ARG_ENABLE(metafile, [ --enable-metafiles use wxMetaFile (Windows only)], wxUSE_METAFILE)
|
2001-07-02 10:39:00 +00:00
|
|
|
WX_ARG_ENABLE(dragimage, [ --enable-dragimage use wxDragImage], wxUSE_DRAGIMAGE)
|
1999-06-07 18:27:43 +00:00
|
|
|
|
1999-09-13 17:15:43 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl support for image formats that do not rely on external library
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2001-09-30 22:06:39 +00:00
|
|
|
WX_ARG_ENABLE(palette, [ --enable-palette use wxPalette class], wxUSE_PALETTE)
|
2001-04-22 22:23:05 +00:00
|
|
|
WX_ARG_ENABLE(image, [ --enable-image use wxImage class], wxUSE_IMAGE)
|
1999-09-13 17:17:45 +00:00
|
|
|
WX_ARG_ENABLE(gif, [ --enable-gif use gif images (GIF file format)], wxUSE_GIF)
|
|
|
|
WX_ARG_ENABLE(pcx, [ --enable-pcx use pcx images (PCX file format)], wxUSE_PCX)
|
2002-01-15 17:57:08 +00:00
|
|
|
WX_ARG_ENABLE(iff, [ --enable-iff use iff images (IFF file format)], wxUSE_IFF)
|
1999-09-13 17:17:45 +00:00
|
|
|
WX_ARG_ENABLE(pnm, [ --enable-pnm use pnm images (PNM file format)], wxUSE_PNM)
|
2001-11-24 23:39:47 +00:00
|
|
|
WX_ARG_ENABLE(xpm, [ --enable-xpm use xpm images (XPM file format)], wxUSE_XPM)
|
2002-01-15 00:09:09 +00:00
|
|
|
WX_ARG_ENABLE(ico_cur, [ --enable-icocur use Windows ICO and CUR formats], wxUSE_ICO_CUR)
|
1999-09-13 17:15:43 +00:00
|
|
|
|
1999-12-22 21:09:32 +00:00
|
|
|
fi
|
2002-02-16 21:03:47 +00:00
|
|
|
|
|
|
|
dnl General settings (needed for GUI and non-GUI compilations alike).
|
|
|
|
dnl Path separator; ':' for unix, ';' for OS/2
|
|
|
|
dnl Stem for flex output; lexyy for OS/2, lex.yy otherwise
|
|
|
|
case "${host}" in
|
|
|
|
*-pc-os2_emx | *-pc-os2-emx )
|
|
|
|
dnl PATH_IFS is autodetected by OS/2's configure (usually ';')
|
|
|
|
LEX_STEM="lexyy"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
PATH_IFS=':'
|
|
|
|
LEX_STEM="lex.yy"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
1999-12-22 21:09:32 +00:00
|
|
|
dnl for GUI only
|
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
dnl cache the options values before (may be) aborting below
|
|
|
|
WX_ARG_CACHE_FLUSH
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl check that no more than one toolkit is given and that if none are given that
|
|
|
|
dnl we have a default one
|
1999-06-02 12:29:15 +00:00
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
AC_MSG_CHECKING(for toolkit)
|
|
|
|
|
1999-10-04 20:15:38 +00:00
|
|
|
if test "$wxUSE_GUI" = "yes"; then
|
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$USE_BEOS" = 1; then
|
|
|
|
AC_MSG_ERROR([BeOS GUI is not supported yet, use --disable-gui])
|
|
|
|
fi
|
1999-12-22 21:09:32 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$TOOLKIT_GIVEN" = 1; then
|
|
|
|
dnl convert "yes" to 1 and "no" to 0
|
|
|
|
for toolkit in `echo $ALL_TOOLKITS`; do
|
|
|
|
var=wxUSE_$toolkit
|
|
|
|
eval "value=\$${var}"
|
|
|
|
eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
|
|
|
|
done
|
1999-06-07 18:27:43 +00:00
|
|
|
else
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl try to guess the most apropriate toolkit for this platform
|
|
|
|
for toolkit in `echo $ALL_TOOLKITS`; do
|
|
|
|
if test "$has_toolkit_in_cache" != 1; then
|
|
|
|
var=DEFAULT_DEFAULT_wxUSE_$toolkit
|
|
|
|
else
|
|
|
|
var=DEFAULT_wxUSE_$toolkit
|
|
|
|
fi
|
|
|
|
eval "wxUSE_$toolkit=\$${var}"
|
|
|
|
done
|
1999-06-07 18:27:43 +00:00
|
|
|
fi
|
2000-01-26 18:21:45 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl we suppose that expr is available (maybe there is a better way to do
|
|
|
|
dnl this? what about using ALL_TOOLKITS? TODO)
|
|
|
|
NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
|
2002-02-07 15:40:02 +00:00
|
|
|
+ ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl Allow wxUSE_PM only for OS/2 with EMX.
|
|
|
|
case "${host}" in
|
2001-10-21 12:38:31 +00:00
|
|
|
*-pc-os2_emx | *-pc-os2-emx )
|
2001-09-28 07:00:13 +00:00
|
|
|
NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
|
|
|
|
esac
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
case "$NUM_TOOLKITS" in
|
|
|
|
1)
|
|
|
|
;;
|
|
|
|
0)
|
|
|
|
AC_MSG_ERROR(Please specify a toolkit - cannot determine the default for ${host})
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR(Please specify at most one toolkit (may be some are cached?))
|
|
|
|
esac
|
1999-06-07 18:27:43 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl cache the wxUSE_<TOOLKIT> values too
|
|
|
|
for toolkit in `echo $ALL_TOOLKITS`; do
|
|
|
|
var=wxUSE_$toolkit
|
|
|
|
eval "value=\$${var}"
|
|
|
|
if test "x$value" != x; then
|
|
|
|
cache_var=CACHE_$toolkit
|
|
|
|
eval "cache=\$${cache_var}"
|
|
|
|
if test "$cache" = 1; then
|
|
|
|
echo "$var=$value" >> ${wx_arg_cache_file}
|
|
|
|
fi
|
|
|
|
if test "$value" = 1; then
|
|
|
|
toolkit_echo=`echo $toolkit | tr [[A-Z]] [[a-z]]`
|
|
|
|
AC_MSG_RESULT($toolkit_echo)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
1999-10-04 20:15:38 +00:00
|
|
|
else
|
2001-09-28 07:00:13 +00:00
|
|
|
AC_MSG_RESULT(base ($host_alias hosted) only)
|
1999-10-04 20:15:38 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Checks for programs
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
dnl flush the cache because checking for programs might abort
|
|
|
|
AC_CACHE_SAVE
|
|
|
|
|
|
|
|
dnl cross-compiling support: we're cross compiling if the build system is
|
|
|
|
dnl different from the target one (assume host and target be always the same)
|
2000-03-13 09:45:00 +00:00
|
|
|
if test "$build" != "$host" ; then
|
2002-03-30 01:28:47 +00:00
|
|
|
if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
|
2001-09-28 07:00:13 +00:00
|
|
|
CC=$host_alias-gcc
|
|
|
|
CXX=$host_alias-c++
|
|
|
|
AR=$host_alias-ar
|
|
|
|
RANLIB=$host_alias-ranlib
|
|
|
|
DLLTOOL=$host_alias-dlltool
|
|
|
|
RESCOMP=$host_alias-windres
|
|
|
|
LD=$host_alias-ld
|
|
|
|
NM=$host_alias-nm
|
|
|
|
STRIP=$host_alias-strip
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR($build_alias -> $host_alias cross compilation not supported yet.)
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl C-compiler checks
|
|
|
|
dnl defines CC with the compiler to use
|
|
|
|
dnl defines GCC with yes if using gcc
|
|
|
|
dnl defines GCC empty if not using gcc
|
|
|
|
dnl defines CFLAGS
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
|
|
|
|
|
|
|
|
dnl is -traditional needed for correct compilations
|
|
|
|
dnl adds -traditional for gcc if needed
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
|
|
|
|
|
|
|
AC_LANG_SAVE
|
|
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
|
|
|
|
dnl C++-compiler checks
|
|
|
|
dnl defines CXX with the compiler to use
|
|
|
|
dnl defines GXX with yes if using gxx
|
|
|
|
dnl defines GXX empty if not using gxx
|
|
|
|
dnl defines CXXFLAGS
|
|
|
|
AC_PROG_CXX
|
|
|
|
|
|
|
|
CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
|
|
|
|
|
|
|
|
AC_LANG_RESTORE
|
|
|
|
|
|
|
|
dnl ranlib command
|
|
|
|
dnl defines RANLIB with the appropriate command
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
|
|
|
dnl ar command
|
|
|
|
dnl defines AR with the appropriate command
|
|
|
|
AC_CHECK_PROG(AR, ar, ar, ar)
|
|
|
|
|
|
|
|
dnl install checks
|
|
|
|
dnl defines INSTALL with the appropriate command
|
2001-11-03 22:42:30 +00:00
|
|
|
AC_PROG_INSTALL
|
2001-11-03 11:29:05 +00:00
|
|
|
case "${host}" in
|
|
|
|
|
2001-11-03 23:08:16 +00:00
|
|
|
dnl The other BSD's should probably go in here too, since this is
|
|
|
|
dnl to workaround a strange static lib BSDism.
|
|
|
|
dnl Mac OS X install seems to ignore -p option...
|
2001-11-03 11:29:05 +00:00
|
|
|
powerpc-*-darwin* )
|
2001-11-04 13:59:15 +00:00
|
|
|
INSTALL_PROGRAM="cp -fp"
|
|
|
|
INSTALL_DATA="cp -fp"
|
2001-11-03 11:29:05 +00:00
|
|
|
;;
|
|
|
|
*)
|
2001-11-03 22:42:30 +00:00
|
|
|
;;
|
2001-11-03 11:29:05 +00:00
|
|
|
esac
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl strip command
|
|
|
|
dnl defines STRIP as strip or nothing if not found
|
|
|
|
AC_CHECK_PROG(STRIP, strip, strip, true)
|
|
|
|
|
2002-01-23 17:47:58 +00:00
|
|
|
dnl does make support "-include" (only GNU make does AFAIK)?
|
|
|
|
AC_CACHE_CHECK([if make is GNU make], wx_cv_prog_makeisgnu,
|
|
|
|
[
|
|
|
|
if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
|
2002-02-17 00:25:26 +00:00
|
|
|
egrep -s GNU > /dev/null); then
|
2002-01-23 17:47:58 +00:00
|
|
|
wx_cv_prog_makeisgnu="yes"
|
|
|
|
else
|
|
|
|
wx_cv_prog_makeisgnu="no"
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
|
|
|
|
IF_GNU_MAKE=""
|
|
|
|
else
|
|
|
|
IF_GNU_MAKE="#"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(IF_GNU_MAKE)
|
|
|
|
|
|
|
|
dnl we don't need to check for VPATH support in GNU make - it does have it
|
|
|
|
if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl check if VPATH works
|
2002-01-23 17:35:51 +00:00
|
|
|
AC_CACHE_CHECK([if make supports VPATH], wx_cv_prog_makevpath, [
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl create Makefile
|
|
|
|
cat - << EOF > confMake
|
|
|
|
check : file
|
|
|
|
cp \$? \$@
|
|
|
|
cp \$? final_file
|
|
|
|
EOF
|
|
|
|
|
|
|
|
if test ! -d sub ; then
|
|
|
|
mkdir sub
|
|
|
|
fi
|
|
|
|
echo dummy > sub/file
|
2000-07-15 19:51:35 +00:00
|
|
|
${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
|
1999-06-01 16:14:29 +00:00
|
|
|
RESULT=$?
|
|
|
|
rm -f sub/file check final_file confMake
|
|
|
|
rmdir sub
|
|
|
|
if test "$RESULT" = 0; then
|
2002-01-23 17:35:51 +00:00
|
|
|
wx_cv_prog_makevpath="yes"
|
1999-06-01 16:14:29 +00:00
|
|
|
else
|
2002-01-23 17:35:51 +00:00
|
|
|
wx_cv_prog_makevpath="no"
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
if test "x$wx_cv_prog_makevpath" != "xyes"; then
|
|
|
|
AC_MSG_ERROR([
|
1999-06-01 16:14:29 +00:00
|
|
|
You need a make-utility that is able to use the variable
|
|
|
|
VPATH correctly.
|
|
|
|
If your version of make does not support VPATH correctly,
|
|
|
|
please install GNU-make (possibly as gmake), and start
|
|
|
|
configure with the following command:
|
|
|
|
export MAKE=gmake; ./configure for sh-type shells
|
|
|
|
setenv MAKE gmake; ./configure for csh-type shells
|
|
|
|
Also please do remember to use gmake in this case every time
|
|
|
|
you are trying to compile.
|
2001-06-11 22:58:24 +00:00
|
|
|
])
|
2002-01-23 17:47:58 +00:00
|
|
|
fi dnl make without VPATH
|
|
|
|
fi dnl not GNU make
|
2002-01-23 17:25:39 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl YACC checks
|
|
|
|
dnl defines YACC with the appropriate command
|
|
|
|
AC_PROG_YACC
|
|
|
|
|
|
|
|
dnl LEX checks
|
|
|
|
dnl defines LEX with the appropriate command
|
|
|
|
dnl defines LEXLIB with the appropriate library
|
1999-08-12 12:54:33 +00:00
|
|
|
AC_PROG_LEX
|
1999-06-01 16:14:29 +00:00
|
|
|
|
1999-06-02 12:03:19 +00:00
|
|
|
dnl needed for making link to setup.h
|
|
|
|
AC_PROG_LN_S
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Define search path for includes and libraries: all headers and libs will be
|
|
|
|
dnl looked for in all directories of this path
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
1999-10-25 06:33:22 +00:00
|
|
|
dnl notice that /usr/include should not be in this list, otherwise it breaks
|
|
|
|
dnl compilation on Solaris/gcc because standard headers are included instead
|
1999-10-29 15:36:56 +00:00
|
|
|
dnl of the gcc ones (correction: it *is* needed for broken AIX compiler - but
|
|
|
|
dnl do put it last!)
|
1999-10-27 19:43:07 +00:00
|
|
|
dnl
|
|
|
|
dnl Also try to put all directories which may contain X11R6 before those which
|
|
|
|
dnl may contain X11R5/4 - we want to use R6 on machines which have both!
|
1999-06-01 16:14:29 +00:00
|
|
|
SEARCH_INCLUDE="\
|
1999-10-25 06:33:22 +00:00
|
|
|
/usr/local/include \
|
|
|
|
\
|
1999-06-01 16:14:29 +00:00
|
|
|
/usr/Motif-1.2/include \
|
|
|
|
/usr/Motif-2.1/include \
|
|
|
|
\
|
|
|
|
/usr/include/Motif1.2 \
|
|
|
|
/opt/xpm/include/X11 \
|
1999-08-24 20:26:06 +00:00
|
|
|
/opt/GBxpm/include/ \
|
|
|
|
/opt/GBxpm/X11/include/ \
|
1999-06-01 16:14:29 +00:00
|
|
|
\
|
|
|
|
/usr/Motif1.2/include \
|
|
|
|
/usr/dt/include \
|
1999-10-27 19:43:07 +00:00
|
|
|
/usr/openwin/include \
|
|
|
|
\
|
1999-06-01 16:14:29 +00:00
|
|
|
/usr/include/Xm \
|
|
|
|
\
|
|
|
|
/usr/X11R6/include \
|
1999-10-27 19:43:07 +00:00
|
|
|
/usr/X11R6.4/include \
|
1999-06-01 16:14:29 +00:00
|
|
|
/usr/X11R5/include \
|
|
|
|
/usr/X11R4/include \
|
|
|
|
\
|
|
|
|
/usr/include/X11R6 \
|
|
|
|
/usr/include/X11R5 \
|
|
|
|
/usr/include/X11R4 \
|
|
|
|
\
|
|
|
|
/usr/local/X11R6/include \
|
|
|
|
/usr/local/X11R5/include \
|
|
|
|
/usr/local/X11R4/include \
|
|
|
|
\
|
|
|
|
/usr/local/include/X11R6 \
|
|
|
|
/usr/local/include/X11R5 \
|
|
|
|
/usr/local/include/X11R4 \
|
|
|
|
\
|
|
|
|
/usr/X11/include \
|
|
|
|
/usr/include/X11 \
|
|
|
|
/usr/local/X11/include \
|
|
|
|
/usr/local/include/X11 \
|
|
|
|
\
|
|
|
|
/usr/X386/include \
|
|
|
|
/usr/x386/include \
|
|
|
|
/usr/XFree86/include/X11 \
|
|
|
|
\
|
2000-01-26 18:21:45 +00:00
|
|
|
X:/XFree86/include \
|
2000-01-10 17:07:28 +00:00
|
|
|
X:/XFree86/include/X11 \
|
|
|
|
\
|
1999-06-01 16:14:29 +00:00
|
|
|
/usr/include/gtk \
|
1999-06-07 21:17:21 +00:00
|
|
|
/usr/local/include/gtk \
|
1999-06-01 16:14:29 +00:00
|
|
|
/usr/include/glib \
|
1999-06-07 21:17:21 +00:00
|
|
|
/usr/local/include/glib \
|
|
|
|
\
|
|
|
|
/usr/include/qt \
|
|
|
|
/usr/local/include/qt \
|
|
|
|
\
|
1999-06-13 22:27:35 +00:00
|
|
|
/usr/include/windows \
|
1999-06-07 21:17:21 +00:00
|
|
|
/usr/include/wine \
|
|
|
|
/usr/local/include/wine \
|
|
|
|
\
|
1999-06-01 16:14:29 +00:00
|
|
|
/usr/unsupported/include \
|
|
|
|
/usr/athena/include \
|
|
|
|
/usr/local/x11r5/include \
|
|
|
|
/usr/lpp/Xamples/include \
|
|
|
|
\
|
|
|
|
/usr/openwin/share/include \
|
1999-10-29 15:36:56 +00:00
|
|
|
\
|
|
|
|
/usr/include"
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
|
|
|
|
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
dnl Check for libraries
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
1999-06-07 18:27:43 +00:00
|
|
|
dnl flush the cache because checking for libraries below might abort
|
1999-06-01 16:14:29 +00:00
|
|
|
AC_CACHE_SAVE
|
|
|
|
|
2001-10-23 21:03:32 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Optional libraries
|
|
|
|
dnl
|
|
|
|
dnl --with-<lib>=sys
|
|
|
|
dnl looks for system library and fails if not found
|
|
|
|
dnl
|
|
|
|
dnl --with-<lib>
|
|
|
|
dnl --with-<lib>=yes
|
|
|
|
dnl looks for system library and, if not found, prints a warning,
|
|
|
|
dnl falls back to the builtin wx version, and continues configuration
|
|
|
|
dnl
|
|
|
|
dnl --with-<lib>=builtin
|
|
|
|
dnl uses builtin wx version without searching for system library
|
|
|
|
dnl
|
|
|
|
dnl --with-<lib>=no
|
|
|
|
dnl --without-<lib>
|
|
|
|
dnl do not use library (neither system nor builtin wx version)
|
|
|
|
dnl
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2001-08-02 18:58:52 +00:00
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
dnl Check for regex libraries
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
|
|
|
REGEX_INCLUDE=
|
|
|
|
if test "$wxUSE_REGEX" != "no"; then
|
2001-10-23 21:03:32 +00:00
|
|
|
AC_DEFINE(wxUSE_REGEX)
|
|
|
|
|
|
|
|
if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
|
|
|
|
dnl according to Unix 98 specs, regcomp() is in libc but I believe that
|
|
|
|
dnl on some old systems it may be in libregex - check for it too?
|
|
|
|
AC_CHECK_HEADER(regex.h, AC_CHECK_FUNCS(regcomp))
|
|
|
|
|
|
|
|
if test "x$ac_cv_func_regcomp" != "xyes"; then
|
|
|
|
if test "$wxUSE_REGEX" = "sys" ; then
|
|
|
|
AC_MSG_ERROR([system regex library not found! Use --with-regex to use built-in version])
|
|
|
|
else
|
2001-10-31 22:18:22 +00:00
|
|
|
AC_MSG_WARN([system regex library not found, will use built-in instead])
|
2001-10-23 21:03:32 +00:00
|
|
|
wxUSE_REGEX=builtin
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
dnl we are using the system library
|
|
|
|
wxUSE_REGEX=sys
|
2001-08-02 18:58:52 +00:00
|
|
|
fi
|
2001-10-23 21:03:32 +00:00
|
|
|
fi
|
2001-08-02 18:58:52 +00:00
|
|
|
|
2001-10-23 21:03:32 +00:00
|
|
|
if test "$wxUSE_REGEX" = "builtin" ; then
|
2001-08-02 18:58:52 +00:00
|
|
|
REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
|
|
|
|
fi
|
2001-10-23 21:03:32 +00:00
|
|
|
fi
|
2001-08-02 18:58:52 +00:00
|
|
|
|
2001-10-23 21:03:32 +00:00
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
dnl Check for zlib compression library
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
|
|
|
ZLIB_INCLUDE=
|
|
|
|
ZLIB_LINK=
|
|
|
|
if test "$wxUSE_ZLIB" != "no" ; then
|
|
|
|
AC_DEFINE(wxUSE_ZLIB)
|
|
|
|
|
|
|
|
if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
|
2001-11-08 11:24:04 +00:00
|
|
|
AC_CHECK_HEADER(zlib.h, AC_CHECK_LIB(z, deflate, ZLIB_LINK=" -lz"))
|
2001-10-23 21:03:32 +00:00
|
|
|
|
|
|
|
if test "x$ZLIB_LINK" = "x" ; then
|
|
|
|
if test "$wxUSE_ZLIB" = "sys" ; then
|
|
|
|
AC_MSG_ERROR([system zlib compression library not found! Use --with-zlib=builtin to use built-in version])
|
|
|
|
else
|
2001-10-31 22:18:22 +00:00
|
|
|
AC_MSG_WARN([system zlib compression library not found, will use built-in instead])
|
2001-10-23 21:03:32 +00:00
|
|
|
wxUSE_ZLIB=builtin
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
dnl we are using the system library
|
|
|
|
wxUSE_ZLIB=sys
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_ZLIB" = "builtin" ; then
|
|
|
|
ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
dnl Check for png library
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
|
|
|
PNG_INCLUDE=
|
|
|
|
PNG_LINK=
|
|
|
|
if test "$wxUSE_LIBPNG" != "no" ; then
|
|
|
|
AC_DEFINE(wxUSE_LIBPNG)
|
2002-01-26 00:21:42 +00:00
|
|
|
|
|
|
|
if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
|
|
|
|
AC_MSG_WARN([wxMGL doesn't work with builtin png library, will use MGL one instead])
|
|
|
|
wxUSE_LIBPNG=sys
|
|
|
|
fi
|
2001-10-23 21:03:32 +00:00
|
|
|
|
|
|
|
dnl for the check below to have a chance to succeed, we must already have
|
2002-01-26 00:21:42 +00:00
|
|
|
dnl libz somewhere (don't do this when bulding wxMGL since its libpng
|
|
|
|
dnl doesn't depend on zlib)
|
|
|
|
if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
|
2001-10-31 22:18:22 +00:00
|
|
|
AC_MSG_WARN([system png library doesn't work without system zlib, will use built-in instead])
|
2001-10-23 21:03:32 +00:00
|
|
|
wxUSE_LIBPNG=builtin
|
|
|
|
fi
|
|
|
|
|
2002-01-26 00:21:42 +00:00
|
|
|
if test "$wxUSE_MGL" != 1 ; then
|
|
|
|
dnl Don't check for libpng when building wxMGL, libmgl contains it
|
|
|
|
if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
|
|
|
|
AC_CHECK_HEADER(png.h,
|
|
|
|
AC_CHECK_LIB(png, png_check_sig,
|
|
|
|
PNG_LINK=" -lpng",
|
|
|
|
,
|
|
|
|
[-lz -lm])
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$PNG_LINK" = "x" ; then
|
|
|
|
if test "$wxUSE_LIBPNG" = "sys" ; then
|
|
|
|
AC_MSG_ERROR([system png library not found! Use --with-libpng=builtin to use built-in version])
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([system png library not found, will use built-in instead])
|
|
|
|
wxUSE_LIBPNG=builtin
|
|
|
|
fi
|
2001-10-23 21:03:32 +00:00
|
|
|
else
|
2002-01-26 00:21:42 +00:00
|
|
|
dnl we are using the system library
|
|
|
|
wxUSE_LIBPNG=yes
|
2001-10-23 21:03:32 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_LIBPNG" = "builtin" ; then
|
|
|
|
PNG_INCLUDE="-I\${top_srcdir}/src/png"
|
|
|
|
fi
|
|
|
|
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
dnl Check for jpeg library
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
|
|
|
JPEG_INCLUDE=
|
|
|
|
JPEG_LINK=
|
|
|
|
if test "$wxUSE_LIBJPEG" != "no" ; then
|
|
|
|
AC_DEFINE(wxUSE_LIBJPEG)
|
|
|
|
|
2002-01-26 00:21:42 +00:00
|
|
|
if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
|
|
|
|
AC_MSG_WARN([wxMGL doesn't work with builtin jpeg library, will use MGL one instead])
|
|
|
|
wxUSE_LIBJPEG=sys
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_MGL" != 1 ; then
|
|
|
|
dnl Don't check for libjpeg when building wxMGL, libmgl contains it
|
|
|
|
if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
|
|
|
|
dnl can't use AC_CHECK_HEADER as jconfig.h defines things like
|
|
|
|
dnl HAVE_STDLIB_H which are already defined and this provokes
|
|
|
|
dnl a compiler warning which configure considers as an error...
|
|
|
|
AC_MSG_CHECKING(for jpeglib.h)
|
|
|
|
AC_CACHE_VAL(ac_cv_header_jpeglib_h,
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#undef HAVE_STDLIB_H
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <jpeglib.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
],
|
|
|
|
ac_cv_header_jpeglib_h=yes,
|
|
|
|
ac_cv_header_jpeglib_h=no
|
|
|
|
)
|
2001-10-23 21:03:32 +00:00
|
|
|
)
|
2002-01-26 00:21:42 +00:00
|
|
|
AC_MSG_RESULT($ac_cv_header_jpeglib_h)
|
2001-10-23 21:03:32 +00:00
|
|
|
|
2002-01-26 00:21:42 +00:00
|
|
|
if test "$ac_cv_header_jpeglib_h" = "yes"; then
|
|
|
|
AC_CHECK_LIB(jpeg, jpeg_read_header, JPEG_LINK=" -ljpeg")
|
|
|
|
fi
|
2001-10-23 21:03:32 +00:00
|
|
|
|
2002-01-26 00:21:42 +00:00
|
|
|
if test "x$JPEG_LINK" = "x" ; then
|
|
|
|
if test "$wxUSE_LIBJPEG" = "sys" ; then
|
|
|
|
AC_MSG_ERROR([system jpeg library not found! Use --with-libjpeg=builtin to use built-in version])
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([system jpeg library not found, will use built-in instead])
|
|
|
|
wxUSE_LIBJPEG=builtin
|
|
|
|
fi
|
2001-10-23 21:03:32 +00:00
|
|
|
else
|
2002-01-26 00:21:42 +00:00
|
|
|
dnl we are using the system library
|
|
|
|
wxUSE_LIBJPEG=sys
|
2001-10-23 21:03:32 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_LIBJPEG" = "builtin" ; then
|
|
|
|
JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
dnl Check for tiff library
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
|
|
|
TIFF_INCLUDE=
|
|
|
|
TIFF_LINK=
|
|
|
|
if test "$wxUSE_LIBTIFF" != "no" ; then
|
|
|
|
AC_DEFINE(wxUSE_LIBTIFF)
|
|
|
|
|
|
|
|
if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
|
|
|
|
AC_CHECK_HEADER(tiffio.h,
|
|
|
|
AC_CHECK_LIB(tiff, TIFFError,
|
2001-11-08 11:24:04 +00:00
|
|
|
TIFF_LINK=" -ltiff",
|
2001-10-23 21:03:32 +00:00
|
|
|
,
|
|
|
|
-lm)
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$TIFF_LINK" = "x" ; then
|
|
|
|
if test "$wxUSE_LIBTIFF" = "sys" ; then
|
|
|
|
AC_MSG_ERROR([system tiff library not found! Use --with-libtiff=builtin to use built-in version])
|
|
|
|
else
|
2001-10-31 22:18:22 +00:00
|
|
|
AC_MSG_WARN([system tiff library not found, will use built-in instead])
|
2001-10-23 21:03:32 +00:00
|
|
|
wxUSE_LIBTIFF=builtin
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
dnl we are using the system library
|
|
|
|
wxUSE_LIBTIFF=sys
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_LIBTIFF" = "builtin" ; then
|
|
|
|
TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ----------------------------------------------------------------
|
|
|
|
dnl search for toolkit (widget sets)
|
|
|
|
dnl ----------------------------------------------------------------
|
|
|
|
|
2000-01-10 17:12:43 +00:00
|
|
|
AFMINSTALL=
|
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
TOOLKIT=
|
|
|
|
TOOLKIT_INCLUDE=
|
|
|
|
WIDGET_SET=
|
1999-10-04 20:15:38 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl are we building for a win32 target environment?
|
|
|
|
dnl If so, setup common stuff needed for both GUI and Base libs.
|
|
|
|
if test "$USE_WIN32" = 1 ; then
|
|
|
|
AC_CHECK_HEADERS(w32api.h)
|
|
|
|
AC_CHECK_HEADER(windows.h, [],
|
|
|
|
[
|
|
|
|
AC_MSG_ERROR(please set CFLAGS to contain the location of windows.h)
|
|
|
|
])
|
2000-01-10 17:12:43 +00:00
|
|
|
|
2001-11-03 21:35:21 +00:00
|
|
|
dnl check if can use _WIN32_IE macro
|
|
|
|
AC_CACHE_CHECK([if w32api has good enough MSIE support], wx_cv_w32api_win32_ie,
|
2001-09-28 07:00:13 +00:00
|
|
|
[
|
|
|
|
AC_TRY_COMPILE([#include <w32api.h>],
|
|
|
|
[
|
|
|
|
#define wxCHECK_W32API_VERSION( major, minor ) \
|
|
|
|
( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
|
|
|
|
&& ( ( __W32API_MAJOR_VERSION > (major) ) \
|
|
|
|
|| ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
|
|
|
|
|
|
|
|
#if !wxCHECK_W32API_VERSION(1,1)
|
|
|
|
#error You need w32api 1.1 or newer
|
|
|
|
#endif
|
|
|
|
], [
|
2001-11-03 21:35:21 +00:00
|
|
|
wx_cv_w32api_win32_ie=yes
|
2001-09-28 07:00:13 +00:00
|
|
|
], [
|
2001-11-03 21:35:21 +00:00
|
|
|
wx_cv_w32api_win32_ie=no
|
2001-09-28 07:00:13 +00:00
|
|
|
])
|
|
|
|
])
|
2001-11-03 21:35:21 +00:00
|
|
|
if test "$wx_cv_w32api_win32_ie" = "yes" ; then
|
|
|
|
CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl --- FIXME: This is still a somewhat random list of libs,
|
|
|
|
dnl --- some of them should probably be included conditionally.
|
|
|
|
LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-11-03 11:08:15 +00:00
|
|
|
case "${host}" in
|
|
|
|
*-*-cygwin* )
|
|
|
|
dnl Cygwin doesn't include these by default
|
|
|
|
LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
|
|
|
|
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
|
|
|
|
esac
|
2001-10-02 21:36:16 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl add extra odbc libs if we have compiled in odbc
|
|
|
|
if test "$wxUSE_ODBC" = "yes" ; then
|
2001-12-27 23:15:52 +00:00
|
|
|
LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
|
2001-09-28 07:00:13 +00:00
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
|
|
|
|
RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
|
|
|
|
fi
|
2001-07-20 11:58:54 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$wxUSE_GUI" = "yes"; then
|
|
|
|
USE_GUI=1
|
1999-06-13 22:27:35 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
GUI_TK_LIBRARY=
|
2000-03-09 20:18:59 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
WXGTK12=
|
|
|
|
WXGTK127=
|
|
|
|
WXGTK20=
|
2000-03-09 20:18:59 +00:00
|
|
|
|
2001-11-03 11:08:15 +00:00
|
|
|
if test "$wxUSE_MSW" = 1 ; then
|
2001-06-26 20:59:19 +00:00
|
|
|
TOOLKIT=MSW
|
|
|
|
GUIDIST=MSW_DIST
|
2001-11-03 11:08:15 +00:00
|
|
|
|
|
|
|
dnl -mwindows causes a heap of other default gui libs to be linked in.
|
|
|
|
dnl FIXME: If cygwin needs this, please push it above, if not, please
|
|
|
|
dnl remove this comment :-)
|
|
|
|
case "${host}" in
|
|
|
|
*-*-mingw32* )
|
2001-11-08 11:24:04 +00:00
|
|
|
LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
|
2001-11-03 11:08:15 +00:00
|
|
|
esac
|
2000-02-02 16:56:06 +00:00
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_GTK" = 1; then
|
2001-07-02 09:10:37 +00:00
|
|
|
AC_MSG_CHECKING([for GTK+ version])
|
2000-01-31 16:08:09 +00:00
|
|
|
|
2001-07-02 09:10:37 +00:00
|
|
|
gtk_version_cached=1
|
|
|
|
AC_CACHE_VAL(wx_cv_lib_gtk,
|
|
|
|
[
|
|
|
|
dnl stupid GTK+ AM macros produce their own messages, so we
|
|
|
|
dnl have to pass to the next line
|
|
|
|
gtk_version_cached=0
|
2001-11-07 10:03:57 +00:00
|
|
|
AC_MSG_RESULT()
|
2001-07-02 09:10:37 +00:00
|
|
|
|
2001-12-14 19:34:00 +00:00
|
|
|
dnl we must link against lgthread unless the user
|
|
|
|
dnl used --disable-threads
|
|
|
|
GTK_MODULES=
|
|
|
|
if test "$wxUSE_THREADS" = "yes"; then
|
|
|
|
GTK_MODULES=gthread
|
|
|
|
fi
|
|
|
|
|
2001-07-02 09:10:37 +00:00
|
|
|
wx_cv_lib_gtk=
|
|
|
|
if test "x$wxUSE_GTK2" = "xyes"; then
|
2002-03-22 19:15:41 +00:00
|
|
|
AM_PATH_GTK_2_0(2.0.0, wx_cv_lib_gtk=2.0, , $GTK_MODULES)
|
2001-07-02 09:10:37 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$wx_cv_lib_gtk"; then
|
2001-12-14 19:34:00 +00:00
|
|
|
AM_PATH_GTK(1.2.7, wx_cv_lib_gtk=1.2.7, , $GTK_MODULES)
|
2001-07-02 09:10:37 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$wx_cv_lib_gtk"; then
|
2001-12-14 19:34:00 +00:00
|
|
|
AM_PATH_GTK(1.2.3, wx_cv_lib_gtk=1.2.3, , $GTK_MODULES)
|
2001-07-02 09:10:37 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$wx_cv_lib_gtk"; then
|
|
|
|
dnl looks better in AC_MSG_RESULT
|
|
|
|
wx_cv_lib_gtk=none
|
2001-07-02 09:49:34 +00:00
|
|
|
else
|
|
|
|
dnl we need to cache GTK_CFLAGS and GTK_LIBS for the
|
|
|
|
dnl subsequent runs
|
|
|
|
wx_cv_cflags_gtk=$GTK_CFLAGS
|
|
|
|
wx_cv_libs_gtk=$GTK_LIBS
|
2001-07-02 09:10:37 +00:00
|
|
|
fi
|
|
|
|
]
|
|
|
|
)
|
2000-01-31 16:08:09 +00:00
|
|
|
|
2001-07-02 09:10:37 +00:00
|
|
|
dnl if it wasn't cached, the messages from AM_PATH_GTK() above are
|
|
|
|
dnl enough
|
|
|
|
if test "$gtk_version_cached" = 1; then
|
|
|
|
AC_MSG_RESULT($wx_cv_lib_gtk)
|
|
|
|
fi
|
2000-01-31 16:08:09 +00:00
|
|
|
|
2001-07-02 09:10:37 +00:00
|
|
|
case "$wx_cv_lib_gtk" in
|
|
|
|
2.0) WXGTK20=1
|
|
|
|
;;
|
|
|
|
1.2.7) WXGTK127=1
|
2001-07-02 18:01:24 +00:00
|
|
|
WXGTK12=1
|
2001-07-02 09:10:37 +00:00
|
|
|
;;
|
|
|
|
1.2.3) WXGTK12=1
|
|
|
|
;;
|
|
|
|
*) AC_MSG_ERROR([
|
|
|
|
Please check that gtk-config is in path, the directory
|
|
|
|
where GTK+ libraries are installed (returned by
|
|
|
|
'gtk-config --libs' command) is in LD_LIBRARY_PATH or
|
|
|
|
equivalent variable and GTK+ is version 1.2.3 or above.
|
|
|
|
])
|
|
|
|
;;
|
|
|
|
esac
|
1999-09-13 07:18:36 +00:00
|
|
|
|
2001-07-02 09:49:34 +00:00
|
|
|
TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
|
2001-07-02 10:00:17 +00:00
|
|
|
GUI_TK_LIBRARY="$wx_cv_libs_gtk"
|
1999-12-07 15:06:51 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
AFMINSTALL=afminstall
|
|
|
|
TOOLKIT=GTK
|
|
|
|
GUIDIST=GTK_DIST
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
dnl test for XIM support in libgdk
|
|
|
|
AC_CHECK_LIB(gdk, gdk_im_open, AC_DEFINE(HAVE_XIM))
|
1999-06-07 21:17:21 +00:00
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_MGL" = 1; then
|
|
|
|
AC_MSG_CHECKING(for SciTech MGL library)
|
|
|
|
if test "x$MGL_ROOT" = x ; then
|
|
|
|
AC_MSG_RESULT(not found)
|
|
|
|
AC_MSG_ERROR([Cannot find MGL library. Make sure MGL_ROOT is set.])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT($MGL_ROOT)
|
|
|
|
fi
|
1999-06-07 21:17:21 +00:00
|
|
|
|
2001-12-15 23:15:39 +00:00
|
|
|
dnl Find MGL library that we want
|
|
|
|
dnl FIXME_MGL - test for MGL variants for freebsd etc.
|
|
|
|
case "${host}" in
|
|
|
|
*-*-linux* )
|
|
|
|
mgl_os=linux/gcc/glibc
|
|
|
|
;;
|
|
|
|
*-pc-msdosdjgpp )
|
|
|
|
mgl_os=dos32/dj2
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR(This system type ${host} is not yet supported by wxMGL.)
|
|
|
|
esac
|
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
mgl_lib_type=""
|
1999-06-07 21:17:21 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_DEBUG_FLAG" = yes ; then
|
2001-11-06 23:54:15 +00:00
|
|
|
if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
|
|
|
|
-f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
|
2001-09-28 07:00:13 +00:00
|
|
|
mgl_lib_type=debug
|
2001-06-26 20:59:19 +00:00
|
|
|
fi
|
|
|
|
fi
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "x$mgl_lib_type" = x ; then
|
2001-11-06 23:54:15 +00:00
|
|
|
if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
|
|
|
|
-f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
|
2001-09-28 07:00:13 +00:00
|
|
|
mgl_lib_type=release
|
2001-06-26 20:59:19 +00:00
|
|
|
else
|
|
|
|
AC_MSG_ERROR([Cannot find MGL libraries, make sure they are compiled.])
|
|
|
|
fi
|
|
|
|
fi
|
2000-07-21 10:37:26 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
|
2001-09-28 07:00:13 +00:00
|
|
|
GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
|
1999-10-14 15:43:11 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
AFMINSTALL=afminstall
|
|
|
|
TOOLKIT=MGL
|
|
|
|
GUIDIST=MGL_DIST
|
1999-10-14 15:43:11 +00:00
|
|
|
fi
|
1999-06-07 18:27:43 +00:00
|
|
|
|
2001-12-21 19:22:48 +00:00
|
|
|
if test "$wxUSE_MICROWIN" = 1; then
|
|
|
|
AC_MSG_CHECKING(for MicroWindows)
|
|
|
|
if test "x$MICROWINDOWS" = x ; then
|
|
|
|
AC_MSG_RESULT(not found)
|
|
|
|
AC_MSG_ERROR([Cannot find MicroWindows library. Make sure MICROWINDOWS is set.])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT($MICROWINDOWS)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -f $MICROWINDOWS/lib/libmwin.a; then
|
|
|
|
AC_MSG_RESULT(MicroWindows' libraries found.)
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR([Cannot find MicroWindows libraries, make sure they are compiled.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
|
|
|
|
GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
|
|
|
|
|
|
|
|
AFMINSTALL=afminstall
|
|
|
|
TOOLKIT=MICROWIN
|
|
|
|
GUIDIST=MICROWIN_DIST
|
|
|
|
|
|
|
|
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
|
|
|
|
fi
|
|
|
|
|
2002-02-07 13:45:42 +00:00
|
|
|
if test "$wxUSE_X11" = 1; then
|
|
|
|
dnl use standard macros to check for X headers/libs, this brings support
|
|
|
|
dnl for the standard configure options --x-includes and --x-libraries
|
|
|
|
AC_PATH_XTRA
|
|
|
|
|
|
|
|
if test "$no_x" = "yes"; then
|
|
|
|
AC_MSG_ERROR(X11 not found, please use --x-includes and/or --x-libraries options)
|
|
|
|
fi
|
|
|
|
|
|
|
|
GUI_TK_LIBRARY="$X_LIBS"
|
|
|
|
TOOLKIT_INCLUDE="$X_CFLAGS"
|
|
|
|
AFMINSTALL=afminstall
|
|
|
|
COMPILED_X_PROGRAM=0
|
|
|
|
|
2002-02-15 11:14:42 +00:00
|
|
|
if test "$wxUSE_NANOX" = "yes"; then
|
2002-02-11 18:03:47 +00:00
|
|
|
AC_MSG_CHECKING(for MicroWindows/NanoX distribution)
|
|
|
|
if test "x$MICROWIN" = x ; then
|
|
|
|
AC_MSG_RESULT(not found)
|
|
|
|
AC_MSG_ERROR([Cannot find MicroWindows library. Make sure MICROWIN is set.])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT($MICROWIN)
|
2002-02-20 23:19:40 +00:00
|
|
|
AC_DEFINE(wxUSE_NANOX)
|
2002-02-11 18:03:47 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2002-02-07 13:45:42 +00:00
|
|
|
xpm_link=
|
|
|
|
AC_MSG_CHECKING(for Xpm library)
|
|
|
|
WX_PATH_FIND_LIBRARIES($SEARCH_LIB,Xpm)
|
|
|
|
if test "$ac_find_libraries" != "" ; then
|
|
|
|
WX_LINK_PATH_EXIST($ac_find_libraries,$GUI_TK_LIBRARY)
|
|
|
|
GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
|
|
|
|
xpm_link=" -lXpm"
|
|
|
|
AC_DEFINE(wxHAVE_LIB_XPM)
|
|
|
|
AC_MSG_RESULT(found at $ac_find_libraries)
|
|
|
|
else
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <X11/xpm.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
int version;
|
|
|
|
version = XpmLibraryVersion();
|
|
|
|
],
|
|
|
|
[
|
|
|
|
xpm_link=" -lXpm"
|
|
|
|
AC_DEFINE(wxHAVE_LIB_XPM)
|
|
|
|
AC_MSG_RESULT(found in default search path)
|
|
|
|
COMPILED_X_PROGRAM=0
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
AC_MSG_WARN(library will be compiled without support for images in XPM format)
|
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
2002-02-15 11:14:42 +00:00
|
|
|
if test "$wxUSE_NANOX" = "yes"; then
|
2002-02-11 18:11:57 +00:00
|
|
|
TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
|
2002-02-26 10:06:07 +00:00
|
|
|
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
|
2002-02-23 17:36:48 +00:00
|
|
|
GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
|
2002-02-11 18:03:47 +00:00
|
|
|
else
|
2002-02-13 16:47:43 +00:00
|
|
|
GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
|
2002-02-11 18:03:47 +00:00
|
|
|
fi
|
|
|
|
|
2002-02-13 16:12:49 +00:00
|
|
|
TOOLKIT_VPATH="\${top_srcdir}/src/x11"
|
2002-02-07 13:45:42 +00:00
|
|
|
TOOLKIT=X11
|
|
|
|
GUIDIST=X11_DIST
|
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_WINE" = 1; then
|
2001-09-28 07:00:13 +00:00
|
|
|
AC_CHECK_HEADER(windows.h, [],
|
|
|
|
[
|
2001-06-26 20:59:19 +00:00
|
|
|
AC_MSG_ERROR(please set CFLAGS to contain the location of windows.h)
|
2001-09-28 07:00:13 +00:00
|
|
|
])
|
1999-11-02 16:46:55 +00:00
|
|
|
|
2001-11-08 11:24:04 +00:00
|
|
|
xpm_link=
|
2001-06-26 20:59:19 +00:00
|
|
|
AC_MSG_CHECKING(for Xpm library)
|
|
|
|
WX_PATH_FIND_LIBRARIES($SEARCH_LIB,Xpm)
|
|
|
|
if test "$ac_find_libraries" != "" ; then
|
|
|
|
GUI_TK_LIBRARY="-L$ac_find_libraries"
|
2001-11-08 11:24:04 +00:00
|
|
|
xpm_link=" -lXpm"
|
2001-06-26 20:59:19 +00:00
|
|
|
AC_DEFINE(wxHAVE_LIB_XPM)
|
|
|
|
AC_MSG_RESULT(found at $ac_find_libraries)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
AC_MSG_WARN(library will be compiled without support for images in XPM format)
|
|
|
|
fi
|
2000-01-10 17:12:43 +00:00
|
|
|
|
2001-11-08 11:24:04 +00:00
|
|
|
mesa_link=
|
2001-06-26 20:59:19 +00:00
|
|
|
AC_MSG_CHECKING(for Mesa library)
|
|
|
|
WX_PATH_FIND_LIBRARIES($SEARCH_LIB,MesaGL)
|
|
|
|
if test "$ac_find_libraries" != "" ; then
|
|
|
|
GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
|
2001-11-08 11:24:04 +00:00
|
|
|
mesa_link=" -lMesaGL"
|
2001-06-26 20:59:19 +00:00
|
|
|
AC_MSG_RESULT(found at $ac_find_libraries)
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR(no)
|
|
|
|
fi
|
2000-02-08 17:44:50 +00:00
|
|
|
|
2001-11-08 11:24:04 +00:00
|
|
|
GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
|
2001-06-26 20:59:19 +00:00
|
|
|
TOOLKIT=MSW
|
|
|
|
GUIDIST=MSW_DIST
|
2001-09-28 07:00:13 +00:00
|
|
|
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_MOTIF" = 1; then
|
2001-10-19 17:30:04 +00:00
|
|
|
dnl use standard macros to check for X headers/libs, this brings support
|
|
|
|
dnl for the standard configure options --x-includes and --x-libraries
|
|
|
|
AC_PATH_XTRA
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$no_x" = "yes"; then
|
|
|
|
AC_MSG_ERROR(X11 not found, please use --x-includes and/or --x-libraries options)
|
|
|
|
fi
|
|
|
|
|
|
|
|
GUI_TK_LIBRARY="$X_LIBS"
|
|
|
|
TOOLKIT_INCLUDE="$X_CFLAGS"
|
|
|
|
AFMINSTALL=afminstall
|
|
|
|
COMPILED_X_PROGRAM=0
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for Motif/Lesstif headers)
|
|
|
|
WX_PATH_FIND_INCLUDES($SEARCH_INCLUDE, Xm/Xm.h)
|
|
|
|
if test "$ac_find_includes" != "" ; then
|
|
|
|
AC_MSG_RESULT(found $ac_find_includes)
|
2000-02-08 17:44:50 +00:00
|
|
|
else
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <Xm/Xm.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
int version;
|
|
|
|
version = xmUseVersion;
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_MSG_RESULT(found in default search path)
|
|
|
|
COMPILED_X_PROGRAM=1
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_MSG_RESULT(no)
|
2001-06-26 20:59:19 +00:00
|
|
|
AC_MSG_ERROR(please set CFLAGS to contain the location of Xm/Xm.h)
|
2000-02-08 17:44:50 +00:00
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$COMPILED_X_PROGRAM" = 0; then
|
|
|
|
AC_MSG_CHECKING(for Motif/Lesstif library)
|
|
|
|
WX_PATH_FIND_LIBRARIES($SEARCH_LIB, Xm)
|
|
|
|
if test "$ac_find_libraries" != "" ; then
|
|
|
|
WX_INCLUDE_PATH_EXIST($ac_find_includes, $TOOLKIT_INCLUDE)
|
|
|
|
WX_LINK_PATH_EXIST($ac_find_libraries, $GUI_TK_LIBRARY)
|
|
|
|
|
2001-11-21 13:20:26 +00:00
|
|
|
GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
|
|
|
|
TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
|
2001-06-26 20:59:19 +00:00
|
|
|
AC_MSG_RESULT(found at $ac_find_libraries)
|
|
|
|
else
|
|
|
|
dnl it might happen that we found headers in one of the standard
|
|
|
|
dnl paths but the libs are elsewhere - we do need to try to
|
|
|
|
dnl compile a sample program then here
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <Xm/Xm.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
int version;
|
|
|
|
version = xmUseVersion;
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_MSG_RESULT(found in default search path)
|
|
|
|
COMPILED_X_PROGRAM=1
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
AC_MSG_ERROR(please set LDFLAGS to contain the location of libXm)
|
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2001-11-08 11:24:04 +00:00
|
|
|
xpm_link=
|
2001-06-26 20:59:19 +00:00
|
|
|
AC_MSG_CHECKING(for Xpm library)
|
|
|
|
WX_PATH_FIND_LIBRARIES($SEARCH_LIB,Xpm)
|
|
|
|
if test "$ac_find_libraries" != "" ; then
|
|
|
|
WX_LINK_PATH_EXIST($ac_find_libraries,$GUI_TK_LIBRARY)
|
2001-11-21 13:20:26 +00:00
|
|
|
GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
|
2001-11-08 11:24:04 +00:00
|
|
|
xpm_link=" -lXpm"
|
2000-07-15 19:51:35 +00:00
|
|
|
AC_DEFINE(wxHAVE_LIB_XPM)
|
2001-06-26 20:59:19 +00:00
|
|
|
AC_MSG_RESULT(found at $ac_find_libraries)
|
|
|
|
else
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <X11/xpm.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
int version;
|
|
|
|
version = XpmLibraryVersion();
|
|
|
|
],
|
|
|
|
[
|
2001-11-08 11:24:04 +00:00
|
|
|
xpm_link=" -lXpm"
|
2001-09-28 07:00:13 +00:00
|
|
|
AC_DEFINE(wxHAVE_LIB_XPM)
|
2001-06-26 20:59:19 +00:00
|
|
|
AC_MSG_RESULT(found in default search path)
|
|
|
|
COMPILED_X_PROGRAM=0
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
AC_MSG_WARN(library will be compiled without support for images in XPM format)
|
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-11-08 11:24:04 +00:00
|
|
|
GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
|
2001-10-02 17:03:50 +00:00
|
|
|
TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
|
2001-06-26 20:59:19 +00:00
|
|
|
TOOLKIT=MOTIF
|
|
|
|
GUIDIST=MOTIF_DIST
|
|
|
|
fi
|
2001-02-04 19:53:25 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_MAC" = 1; then
|
2001-10-10 21:47:12 +00:00
|
|
|
if test "$wxUSE_PRECOMP" = "yes"; then
|
2001-11-08 11:24:04 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS -cpp-precomp"
|
2001-10-10 21:47:12 +00:00
|
|
|
fi
|
2001-11-08 11:24:04 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
|
|
|
|
CFLAGS="$CFLAGS -fpascal-strings"
|
|
|
|
CXXFLAGS="$CXXFLAGS -fpascal-strings"
|
2001-10-02 15:48:50 +00:00
|
|
|
|
2001-10-13 12:26:50 +00:00
|
|
|
TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
|
2001-06-26 20:59:19 +00:00
|
|
|
TOOLKIT=MAC
|
2001-10-10 21:47:12 +00:00
|
|
|
dnl we can't call this MAC_DIST or autoconf thinks its a macro
|
2001-06-26 20:59:19 +00:00
|
|
|
GUIDIST=MACX_DIST
|
|
|
|
fi
|
1999-12-23 17:59:26 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_PM" = 1; then
|
|
|
|
TOOLKIT=PM
|
|
|
|
GUIDIST=GTK_DIST
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl the name of the directory where the files for this toolkit live
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$TOOLKIT" = "PM" ; then
|
2001-06-26 20:59:19 +00:00
|
|
|
TOOLKIT_DIR="os2"
|
2000-07-15 19:51:35 +00:00
|
|
|
else
|
2001-09-28 07:00:13 +00:00
|
|
|
TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[[A-Z]]" "[[a-z]]"`
|
2001-06-26 20:59:19 +00:00
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl misc other files depending on the port
|
|
|
|
PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
|
1999-08-12 17:41:29 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_UNIVERSAL" = "yes"; then
|
|
|
|
ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
|
2002-01-25 16:04:42 +00:00
|
|
|
|
|
|
|
dnl ALL_SOURCES and ALL_HEADERS shouldn't include really all sources
|
|
|
|
dnl and headers as some/most are not needed for wxUniv but I don't
|
|
|
|
dnl have time to add GUI_LOWLEVEL_SOURCES/HEADERS stuff now (TODO!)
|
|
|
|
ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
|
|
|
|
ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
|
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
|
2002-04-01 11:41:59 +00:00
|
|
|
if test "$wxUSE_X11" = 1; then
|
|
|
|
TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
|
|
|
|
else
|
|
|
|
TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
|
|
|
|
fi
|
2001-09-28 07:00:13 +00:00
|
|
|
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
|
|
|
|
WIDGET_SET=univ
|
2001-06-26 20:59:19 +00:00
|
|
|
else
|
|
|
|
ALL_OBJECTS="\$(GUIOBJS)"
|
2002-01-25 16:04:42 +00:00
|
|
|
ALL_SOURCES="\$(ALL_SOURCES)"
|
|
|
|
ALL_HEADERS="\$(ALL_HEADERS)"
|
2001-06-26 20:59:19 +00:00
|
|
|
fi
|
|
|
|
|
2001-11-07 11:31:03 +00:00
|
|
|
ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
|
2001-06-26 20:59:19 +00:00
|
|
|
|
2001-12-15 23:15:39 +00:00
|
|
|
if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
|
2001-06-26 20:59:19 +00:00
|
|
|
ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_HTML" = "yes"; then
|
|
|
|
ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
|
|
|
|
fi
|
2000-02-02 18:00:30 +00:00
|
|
|
|
2001-10-23 21:03:32 +00:00
|
|
|
if test "$wxUSE_LIBJPEG" = "builtin" ; then
|
2000-01-31 18:26:16 +00:00
|
|
|
ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
|
1999-12-01 15:34:16 +00:00
|
|
|
fi
|
2001-10-23 21:03:32 +00:00
|
|
|
if test "$wxUSE_LIBTIFF" = "builtin" ; then
|
1999-12-01 15:34:16 +00:00
|
|
|
ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
|
|
|
|
fi
|
2001-10-23 21:03:32 +00:00
|
|
|
if test "$wxUSE_LIBPNG" = "builtin" ; then
|
1999-12-01 15:34:16 +00:00
|
|
|
ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
|
|
|
|
fi
|
2000-01-31 18:26:16 +00:00
|
|
|
|
|
|
|
dnl distribute samples/demos/utils with GUI versions
|
|
|
|
GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
|
|
|
|
DISTDIR="wx\$(TOOLKIT)"
|
1999-10-04 20:15:38 +00:00
|
|
|
else
|
2000-01-10 17:12:43 +00:00
|
|
|
USE_GUI=0
|
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl this doesn't quite work right for wxBase, but the places
|
|
|
|
dnl where it is wrong aren't fatal (yet) though.
|
2000-02-24 12:20:22 +00:00
|
|
|
TOOLKIT_DIR="base"
|
2000-07-15 19:51:35 +00:00
|
|
|
|
1999-10-04 20:15:38 +00:00
|
|
|
dnl the sources, their dependenices and the headers
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$USE_WIN32" = 1 ; then
|
|
|
|
ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
|
|
|
|
TOOLKIT_VPATH="\${top_srcdir}/src/msw"
|
1999-10-04 20:15:38 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl yes, the toolkit for wxBase on win32 is actually MSW
|
|
|
|
dnl wxBase on unix does not need a 'TOOLKIT' defined.
|
|
|
|
TOOLKIT="MSW"
|
|
|
|
else
|
|
|
|
ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
|
|
|
|
TOOLKIT_VPATH="\${top_srcdir}/src/unix"
|
2000-03-19 18:51:40 +00:00
|
|
|
fi
|
|
|
|
|
2002-02-11 20:26:57 +00:00
|
|
|
ALL_SOURCES="\$(ALL_SOURCES)"
|
|
|
|
ALL_HEADERS="\$(ALL_HEADERS)"
|
|
|
|
|
2001-07-13 13:51:32 +00:00
|
|
|
PORT_FILES="\${top_srcdir}/src/files.lst"
|
2000-01-31 18:26:16 +00:00
|
|
|
|
|
|
|
dnl distribute only wxBase sources/headers
|
|
|
|
GUIDIST="BASE_DIST"
|
|
|
|
DISTDIR="wxBase"
|
1999-10-04 20:15:38 +00:00
|
|
|
fi
|
|
|
|
|
2001-10-23 21:03:32 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Optional libraries included when system library is not used
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2002-01-30 13:46:48 +00:00
|
|
|
|
|
|
|
dnl ODBC objects are Unix only
|
|
|
|
if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
|
|
|
|
ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
|
|
|
|
fi
|
|
|
|
|
2001-10-23 21:03:32 +00:00
|
|
|
if test "$wxUSE_REGEX" = "builtin" ; then
|
2001-09-28 07:00:13 +00:00
|
|
|
ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
|
|
|
|
fi
|
2001-10-23 21:03:32 +00:00
|
|
|
if test "$wxUSE_ZLIB" = "builtin" ; then
|
2001-09-28 07:00:13 +00:00
|
|
|
ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
|
|
|
|
fi
|
|
|
|
|
2001-10-23 21:03:32 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl OpenGL libraries
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$wxUSE_OPENGL" = "yes"; then
|
2001-11-21 13:20:26 +00:00
|
|
|
if test "$wxUSE_MAC" = 1; then
|
|
|
|
OPENGL_LIBS="-framework OpenGL -framework AGL"
|
|
|
|
else
|
|
|
|
|
|
|
|
AC_CHECK_HEADER(GL/gl.h,
|
|
|
|
[
|
2001-11-21 13:30:58 +00:00
|
|
|
AC_MSG_CHECKING([for -lGL])
|
2001-11-21 13:20:26 +00:00
|
|
|
WX_PATH_FIND_LIBRARIES([$SEARCH_LIB],[GL])
|
|
|
|
if test "$ac_find_libraries" != "" ; then
|
|
|
|
WX_LINK_PATH_EXIST([$ac_find_libraries],[$LDFLAGS])
|
2002-01-15 17:57:08 +00:00
|
|
|
if test "$ac_path_to_link" = " -L/usr/lib" ; then
|
|
|
|
LDFLAGS_GL="$LDFLAGS"
|
|
|
|
else
|
|
|
|
LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
|
|
|
|
fi
|
2001-11-21 13:20:26 +00:00
|
|
|
OPENGL_LIBS="-lGL -lGLU"
|
2001-11-21 13:30:58 +00:00
|
|
|
AC_MSG_RESULT([yes])
|
2001-11-21 13:20:26 +00:00
|
|
|
else
|
2001-11-21 13:30:58 +00:00
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
AC_MSG_CHECKING([for -lMesaGL])
|
2001-11-21 13:20:26 +00:00
|
|
|
WX_PATH_FIND_LIBRARIES([$SEARCH_LIB],[MesaGL])
|
|
|
|
if test "$ac_find_libraries" != "" ; then
|
|
|
|
WX_LINK_PATH_EXIST([$ac_find_libraries],[$LDFLAGS])
|
|
|
|
LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
|
|
|
|
OPENGL_LIBS="-lMesaGL -lMesaGLU"
|
2001-11-21 13:30:58 +00:00
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
2001-11-21 13:20:26 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
])
|
2001-11-09 00:00:04 +00:00
|
|
|
|
2001-11-02 15:45:07 +00:00
|
|
|
dnl check for OpenGL libs availability first
|
2001-11-09 01:37:00 +00:00
|
|
|
dnl -lGL requires -lm with soem OpenGL versions
|
|
|
|
|
2001-11-21 13:20:26 +00:00
|
|
|
# AC_CHECK_HEADER(GL/gl.h,
|
|
|
|
# [
|
|
|
|
# AC_CHECK_LIB(GL, glFlush,
|
|
|
|
# [
|
|
|
|
# OPENGL_LIBS="-lGL -lGLU"
|
|
|
|
# ],
|
|
|
|
# [
|
|
|
|
# AC_CHECK_LIB(MesaGL, glFlush,
|
|
|
|
# [
|
|
|
|
# OPENGL_LIBS="-lMesaGL -lMesaGLU"
|
|
|
|
# ],
|
|
|
|
# [],
|
|
|
|
# [-lm])
|
|
|
|
# ],
|
|
|
|
# [-lm])
|
|
|
|
# ])
|
|
|
|
|
|
|
|
if test "x$OPENGL_LIBS" = "x"; then
|
|
|
|
dnl it should be an error and not a warning because OpenGL is not on
|
|
|
|
dnl by default and so if it had been explicitely requested, we
|
|
|
|
dnl shouldn't just fall back to compiling the library without it
|
|
|
|
AC_MSG_ERROR(OpenGL libraries not available)
|
|
|
|
fi
|
2001-11-02 15:45:07 +00:00
|
|
|
fi
|
|
|
|
|
2001-11-21 13:20:26 +00:00
|
|
|
if test "$wxUSE_OPENGL" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_OPENGL)
|
|
|
|
AC_DEFINE(wxUSE_GLCANVAS)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
|
|
|
|
fi
|
2001-09-28 07:00:13 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$TOOLKIT_VPATH" ; then
|
|
|
|
TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl the symbol which allows conditional compilation for the given toolkit
|
|
|
|
if test -n "$TOOLKIT" ; then
|
|
|
|
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
|
|
|
|
fi
|
|
|
|
|
2001-10-24 20:41:34 +00:00
|
|
|
lib_unicode_suffix=
|
|
|
|
if test "$wxUSE_UNICODE" = "yes"; then
|
|
|
|
lib_unicode_suffix=u
|
|
|
|
fi
|
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
lib_debug_suffix=
|
|
|
|
if test "$wxUSE_DEBUG_FLAG" = "yes"; then
|
|
|
|
lib_debug_suffix=d
|
|
|
|
fi
|
|
|
|
|
2001-10-24 20:41:34 +00:00
|
|
|
TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
|
|
|
|
TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
|
2001-09-28 07:00:13 +00:00
|
|
|
|
|
|
|
if test "$cross_compiling" = "yes"; then
|
|
|
|
TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
|
|
|
|
TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl library link name
|
|
|
|
WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
|
|
|
|
WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
|
|
|
|
|
|
|
|
dnl the name of the shared library
|
|
|
|
WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
|
|
|
|
WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
|
1999-12-22 21:09:32 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl the name of the links to the shared library
|
|
|
|
WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
|
|
|
|
WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
|
|
|
|
WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
|
|
|
|
WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
|
2001-09-18 18:17:11 +00:00
|
|
|
|
2001-10-02 15:48:50 +00:00
|
|
|
dnl the name of the resources file for wxMac
|
|
|
|
WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
|
2001-10-15 15:40:44 +00:00
|
|
|
WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
|
2001-09-18 18:17:11 +00:00
|
|
|
|
2001-11-04 01:29:54 +00:00
|
|
|
case "${host}" in
|
|
|
|
*-*-cygwin* | *-*-mingw32* )
|
|
|
|
|
|
|
|
dnl If we are cross compiling we want to use the 'full' unix type name for the
|
|
|
|
dnl lib, but for a native install use the windows style naming convention.
|
2001-11-05 11:48:47 +00:00
|
|
|
dnl (excepting again that we strip the ELF style version numbers off it).
|
2001-11-04 01:29:54 +00:00
|
|
|
|
|
|
|
dnl FIXME: is this GL stuff actually even used for wxMSW? should it be??
|
|
|
|
|
|
|
|
if test "$cross_compiling" != "yes"; then
|
|
|
|
WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
|
|
|
|
WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
|
|
|
|
WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
|
|
|
|
WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
|
2001-11-05 11:48:47 +00:00
|
|
|
else
|
|
|
|
WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
|
|
|
|
WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
|
2001-11-04 01:29:54 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
dnl the name of the static library
|
|
|
|
WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
|
|
|
|
WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
|
|
|
|
|
|
|
|
dnl define which libs wx-config should link.
|
|
|
|
WXCONFIG_LIBS="-l${WX_LIBRARY}"
|
2001-11-22 00:32:53 +00:00
|
|
|
WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
|
2001-11-04 01:29:54 +00:00
|
|
|
|
|
|
|
if test "$wxUSE_OPENGL" = "yes"; then
|
2001-11-22 00:32:53 +00:00
|
|
|
WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
|
|
|
|
WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
|
2001-11-04 01:29:54 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl --- the marker for quick search, leave it here: SHARED_LIB_SETUP ---
|
2001-09-18 18:17:11 +00:00
|
|
|
|
2002-02-10 23:45:37 +00:00
|
|
|
if test "$wxUSE_SHARED" = "yes"; then
|
|
|
|
case "${host}" in
|
|
|
|
*-pc-os2_emx | *-pc-os2-emx | \
|
|
|
|
*-pc-msdosdjgpp )
|
|
|
|
dnl only static for now
|
|
|
|
wxUSE_SHARED=no
|
|
|
|
AC_MSG_WARN([Host system doesn't support shared libraries, disabling])
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$wxUSE_SHARED" = "yes"; then
|
2001-09-18 18:17:11 +00:00
|
|
|
|
|
|
|
dnl install targets
|
|
|
|
if test "$wxUSE_OPENGL" = "yes"; then
|
|
|
|
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
|
2001-09-28 07:00:13 +00:00
|
|
|
WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
|
2001-09-18 18:17:11 +00:00
|
|
|
else
|
|
|
|
WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
|
2001-09-28 07:00:13 +00:00
|
|
|
WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
|
2001-09-18 18:17:11 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl the extra compiler flags needed for compilation of shared library
|
2001-09-20 19:28:20 +00:00
|
|
|
if test "$GCC" = "yes"; then
|
|
|
|
dnl the switch for gcc is the same under all platforms
|
|
|
|
PIC_FLAG="-fPIC"
|
|
|
|
fi
|
2001-09-18 18:17:11 +00:00
|
|
|
|
|
|
|
dnl the command to use for creating the shared library
|
|
|
|
SHARED_LD="${CXX} -shared -o"
|
|
|
|
|
|
|
|
case "${host}" in
|
|
|
|
*-hp-hpux* )
|
|
|
|
dnl default settings are good for gcc but not for the native HP-UX
|
2002-01-11 19:54:03 +00:00
|
|
|
if test "$GCC" == "yes"; then
|
|
|
|
SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
|
|
|
|
else
|
2000-07-15 19:51:35 +00:00
|
|
|
dnl no idea why it wants it, but it does
|
2001-11-08 11:24:04 +00:00
|
|
|
LDFLAGS="$LDFLAGS -L/usr/lib"
|
2000-07-15 19:51:35 +00:00
|
|
|
|
1999-10-14 17:08:31 +00:00
|
|
|
SHARED_LD="${CXX} -b -o"
|
|
|
|
PIC_FLAG="+Z"
|
|
|
|
fi
|
2001-09-18 18:17:11 +00:00
|
|
|
|
2001-10-02 21:36:16 +00:00
|
|
|
dnl install shared libs without symlinks
|
|
|
|
if test "$wxUSE_OPENGL" = "yes"; then
|
|
|
|
WX_ALL_INSTALLED="preinstall_gl"
|
|
|
|
WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
|
|
|
|
else
|
|
|
|
WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
|
|
|
|
fi
|
1999-10-09 11:20:06 +00:00
|
|
|
;;
|
1999-12-22 21:09:32 +00:00
|
|
|
|
1999-10-09 11:20:06 +00:00
|
|
|
*-*-linux* )
|
2001-09-18 18:17:11 +00:00
|
|
|
if test "$GCC" != "yes"; then
|
|
|
|
AC_CACHE_CHECK([for Intel compiler], wx_cv_prog_icc,
|
|
|
|
[
|
|
|
|
AC_TRY_COMPILE([],
|
|
|
|
[
|
|
|
|
#ifndef __INTEL_COMPILER
|
2001-09-20 19:28:20 +00:00
|
|
|
#error Not icc
|
2001-09-18 18:17:11 +00:00
|
|
|
#endif
|
|
|
|
],
|
|
|
|
wx_cv_prog_icc=yes,
|
|
|
|
wx_cv_prog_icc=no
|
|
|
|
)
|
|
|
|
])
|
|
|
|
if test "$wx_cv_prog_icc" = "yes"; then
|
|
|
|
PIC_FLAG="-KPIC"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$wxUSE_SONAME" = "yes" ; then
|
|
|
|
SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
|
|
|
|
SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
|
2000-07-15 19:51:35 +00:00
|
|
|
dnl substitute this in makelib.env for the contrib libs
|
|
|
|
WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
|
2000-02-20 10:23:06 +00:00
|
|
|
fi
|
1999-10-09 11:20:06 +00:00
|
|
|
;;
|
2001-09-18 18:17:11 +00:00
|
|
|
|
1999-10-09 11:20:06 +00:00
|
|
|
*-*-solaris2* )
|
|
|
|
if test "$GCC" = yes ; then
|
2000-07-15 19:51:35 +00:00
|
|
|
dnl newer versions of gcc need -isystem to compile X headers on
|
|
|
|
dnl Solaris (which use old style C syntax)
|
|
|
|
CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
|
1999-10-09 11:20:06 +00:00
|
|
|
else
|
|
|
|
SHARED_LD="${CXX} -G -o"
|
1999-10-27 13:44:07 +00:00
|
|
|
PIC_FLAG="-KPIC"
|
2001-10-02 21:36:16 +00:00
|
|
|
SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
|
2002-01-07 14:25:38 +00:00
|
|
|
SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
|
1999-10-09 11:20:06 +00:00
|
|
|
fi
|
|
|
|
;;
|
2001-09-18 18:17:11 +00:00
|
|
|
|
2001-02-04 19:53:25 +00:00
|
|
|
*-*-darwin* )
|
2002-03-17 15:05:58 +00:00
|
|
|
dnl For Unix to MacOS X porting instructions, see:
|
|
|
|
dnl http://fink.sourceforge.net/doc/porting/porting.html
|
2001-11-26 21:21:50 +00:00
|
|
|
CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
|
|
|
|
CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
|
|
|
|
SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
|
2001-04-14 19:39:51 +00:00
|
|
|
PIC_FLAG="-dynamic -fPIC"
|
2002-03-17 15:05:58 +00:00
|
|
|
SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
|
|
|
|
SONAME_FLAGS_GL=${SONAME_FLAGS}
|
1999-10-09 11:20:06 +00:00
|
|
|
;;
|
2001-09-18 18:17:11 +00:00
|
|
|
|
1999-10-09 11:20:06 +00:00
|
|
|
*-*-aix* )
|
|
|
|
SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
|
|
|
|
;;
|
2001-09-18 18:17:11 +00:00
|
|
|
|
2001-10-02 21:36:16 +00:00
|
|
|
*-*-cygwin* | *-*-mingw32* )
|
2001-11-03 11:08:15 +00:00
|
|
|
|
2001-11-05 11:48:47 +00:00
|
|
|
WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
|
2001-11-03 11:08:15 +00:00
|
|
|
|
|
|
|
SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
|
2001-11-09 05:24:36 +00:00
|
|
|
TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
|
2001-11-06 05:44:09 +00:00
|
|
|
|
|
|
|
PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
|
2001-10-02 21:36:16 +00:00
|
|
|
|
|
|
|
dnl install shared libs without symlinks
|
2000-07-15 19:51:35 +00:00
|
|
|
if test "$wxUSE_OPENGL" = "yes"; then
|
|
|
|
WX_ALL_INSTALLED="preinstall_gl"
|
2001-11-04 01:29:54 +00:00
|
|
|
WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
|
2000-07-15 19:51:35 +00:00
|
|
|
else
|
2001-11-04 01:29:54 +00:00
|
|
|
WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
|
2000-07-15 19:51:35 +00:00
|
|
|
fi
|
1999-10-09 11:20:06 +00:00
|
|
|
;;
|
2001-09-18 18:17:11 +00:00
|
|
|
|
1999-12-22 21:09:32 +00:00
|
|
|
*-*-beos* )
|
|
|
|
dnl can't use gcc under BeOS for shared library creation because it
|
|
|
|
dnl complains about missing 'main'
|
|
|
|
SHARED_LD="${LD} -shared -o"
|
|
|
|
;;
|
2001-09-18 18:17:11 +00:00
|
|
|
|
|
|
|
*-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
|
|
|
|
*-*-sunos4* | \
|
|
|
|
*-*-irix5* | *-*-irix6* | \
|
|
|
|
*-*-osf* | \
|
|
|
|
*-*-dgux5* | \
|
|
|
|
*-*-sysv5* )
|
|
|
|
dnl defaults are ok
|
|
|
|
;;
|
|
|
|
|
1999-10-09 11:20:06 +00:00
|
|
|
*)
|
2001-10-02 21:36:16 +00:00
|
|
|
AC_MSG_ERROR(unknown system type $host.)
|
1999-10-09 11:20:06 +00:00
|
|
|
esac
|
1999-06-01 16:14:29 +00:00
|
|
|
|
1999-10-18 15:12:14 +00:00
|
|
|
dnl set target to shared if not explicitly chose static before
|
|
|
|
if test "x$WX_TARGET_LIBRARY" = "x"; then
|
|
|
|
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
|
2000-03-01 20:27:16 +00:00
|
|
|
WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
|
1999-10-18 15:12:14 +00:00
|
|
|
fi
|
2001-09-18 18:17:11 +00:00
|
|
|
|
2000-03-19 04:09:08 +00:00
|
|
|
dnl do not alter the LIBRARY_TYPE strings "so" and "a", they are magic
|
|
|
|
WX_TARGET_LIBRARY_TYPE="so"
|
2001-11-22 00:32:53 +00:00
|
|
|
INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
|
2001-09-28 07:00:13 +00:00
|
|
|
fi
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl do not 'else' this, it may be changed in the above conditional.
|
|
|
|
if test "$wxUSE_SHARED" = "no"; then
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl give static wxBase and wxMSW build a working install target
|
|
|
|
if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
|
2000-07-15 19:51:35 +00:00
|
|
|
dnl we're here because WX_ALL_INSTALLED is empty, but play safe anyway
|
|
|
|
WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
|
|
|
|
fi
|
|
|
|
|
2001-10-21 23:01:11 +00:00
|
|
|
if test "$wxUSE_MAC" = 1; then
|
|
|
|
WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
|
|
|
|
fi
|
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$wxUSE_OPENGL" = "yes"; then
|
|
|
|
WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
|
|
|
|
WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
|
|
|
|
else
|
|
|
|
WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
|
|
|
|
WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
|
|
|
|
|
2000-03-19 04:09:08 +00:00
|
|
|
WX_TARGET_LIBRARY_TYPE="a"
|
2001-11-22 00:32:53 +00:00
|
|
|
INSTALL_LIBRARY='$(INSTALL_DATA)'
|
1999-08-12 17:41:29 +00:00
|
|
|
fi
|
|
|
|
|
2001-10-02 15:48:50 +00:00
|
|
|
if test "$wxUSE_MAC" = 1; then
|
|
|
|
dnl add the resources target for wxMac
|
|
|
|
WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
|
2001-10-15 15:40:44 +00:00
|
|
|
WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
|
2001-10-02 15:48:50 +00:00
|
|
|
AC_CHECK_PROG(RESCOMP, Rez, Rez, /Developer/Tools/Rez)
|
2001-11-25 16:43:30 +00:00
|
|
|
AC_CHECK_PROG(DEREZ, DeRez, DeRez, /Developer/Tools/DeRez)
|
2002-02-24 18:02:51 +00:00
|
|
|
MACOSX_BUNDLE="bundle"
|
2001-10-02 15:48:50 +00:00
|
|
|
LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
|
|
|
|
LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
|
2001-10-15 15:40:44 +00:00
|
|
|
LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
|
2002-02-16 21:03:47 +00:00
|
|
|
else
|
|
|
|
if test "$wxUSE_PM" = 1; then
|
|
|
|
LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
|
|
|
|
fi
|
2001-10-02 15:48:50 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
dnl Check for headers
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
2002-03-25 14:06:10 +00:00
|
|
|
dnl test for strings.h needed under AIX, but do not check for it wxMac as
|
|
|
|
dnl it exists but is only a simple redirection to string.h and it is in
|
|
|
|
dnl conflict with Strings.h in FlatCarbon headers
|
2001-10-13 12:26:50 +00:00
|
|
|
if test "$wxUSE_MAC" != 1; then
|
2002-03-25 14:06:10 +00:00
|
|
|
dnl defines HAVE_STRINGS_H
|
2001-10-13 12:26:50 +00:00
|
|
|
AC_CHECK_HEADERS(strings.h)
|
|
|
|
fi
|
|
|
|
|
2001-06-10 20:20:20 +00:00
|
|
|
dnl defines HAVE_STDLIB_H
|
|
|
|
AC_CHECK_HEADERS(stdlib.h)
|
2001-11-25 16:43:30 +00:00
|
|
|
dnl defines HAVE_MALLOC_H
|
|
|
|
AC_CHECK_HEADERS(malloc.h)
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl defines HAVE_UNISTD_H
|
|
|
|
AC_CHECK_HEADERS(unistd.h)
|
|
|
|
dnl defines HAVE_WCHAR_H
|
2001-04-22 22:23:05 +00:00
|
|
|
AC_CHECK_HEADERS(wchar.h)
|
2002-03-25 14:06:10 +00:00
|
|
|
|
|
|
|
dnl maybe wchar_t is in wcstr.h if we don't have wchar.h?
|
|
|
|
if test "$ac_cv_header_wchar_h" != "yes"; then
|
|
|
|
dnl defines HAVE_WCSTR_H
|
|
|
|
AC_CHECK_HEADERS(wcstr.h)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl checking for wctype.h is useless as we need wcslen(), not just wchar_t and
|
|
|
|
dnl this function is never provided by it
|
|
|
|
dnl AC_CHECK_HEADERS(wctype.h)
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl defines HAVE_FNMATCH_H
|
|
|
|
AC_CHECK_HEADERS(fnmatch.h)
|
2000-07-19 08:08:43 +00:00
|
|
|
dnl defines HAVE_LANGINFO_H (GNU libc locale parameters)
|
|
|
|
AC_CHECK_HEADERS(langinfo.h)
|
1999-10-04 20:15:38 +00:00
|
|
|
|
2000-03-14 14:34:28 +00:00
|
|
|
if test "$wxUSE_GUI" = "yes"; then
|
|
|
|
if test "$wxUSE_UNIX" = "yes"; then
|
|
|
|
dnl defines HAVE_X11_XKBLIB_H
|
|
|
|
AC_CHECK_HEADERS(X11/XKBlib.h)
|
|
|
|
fi
|
1999-10-04 20:15:38 +00:00
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Checks for typedefs
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
dnl defines mode_t if not already defined
|
|
|
|
AC_TYPE_MODE_T
|
|
|
|
dnl defines off_t if not already defined
|
|
|
|
AC_TYPE_OFF_T
|
|
|
|
dnl defines pid_t if not already defined
|
|
|
|
AC_TYPE_PID_T
|
|
|
|
dnl defines size_t if not already defined
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
dnl defines uid_t and gid_t if not already defined
|
|
|
|
AC_TYPE_UID_T
|
|
|
|
|
2001-04-22 22:23:05 +00:00
|
|
|
dnl check for wchar_t
|
2001-11-04 19:30:34 +00:00
|
|
|
dnl Mac OS X does not provide wchar.h and wchar_t is defined by stdlib.h (GD)
|
2001-11-22 09:03:04 +00:00
|
|
|
dnl on Cygwin wchar.h needs stddef.h to be #included by hand
|
2001-04-22 22:23:05 +00:00
|
|
|
AC_CACHE_CHECK([for wchar_t], wx_cv_type_wchar_t,
|
|
|
|
[
|
2001-11-04 19:30:34 +00:00
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#ifdef HAVE_WCHAR_H
|
2001-11-22 09:03:04 +00:00
|
|
|
# ifdef __CYGWIN__
|
|
|
|
# include <stddef.h>
|
|
|
|
# endif
|
2001-11-04 19:30:34 +00:00
|
|
|
# include <wchar.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_STDLIB_H
|
|
|
|
# include <stdlib.h>
|
|
|
|
#endif
|
|
|
|
],
|
2001-04-22 22:23:05 +00:00
|
|
|
[
|
2001-06-14 17:27:44 +00:00
|
|
|
wchar_t wc, *ws;
|
|
|
|
wc = L'a';
|
|
|
|
ws = L"Hello, world!";
|
2001-04-22 22:23:05 +00:00
|
|
|
],
|
2001-06-14 17:27:44 +00:00
|
|
|
wx_cv_type_wchar_t=yes,
|
2001-10-19 21:13:06 +00:00
|
|
|
wx_cv_type_wchar_t=no
|
2001-06-14 17:27:44 +00:00
|
|
|
)
|
2001-04-22 22:23:05 +00:00
|
|
|
])
|
2001-06-14 17:27:44 +00:00
|
|
|
|
|
|
|
if test "$wx_cv_type_wchar_t" = "yes"; then
|
2001-04-22 22:23:05 +00:00
|
|
|
AC_DEFINE(wxUSE_WCHAR_T)
|
|
|
|
fi
|
|
|
|
|
2001-06-14 17:27:44 +00:00
|
|
|
dnl check what exactly size_t is on this machine - this is necessary to avoid
|
|
|
|
dnl ambiguos overloads in several places, notably wx/string.h and wx/array.h
|
2001-06-15 14:27:05 +00:00
|
|
|
AC_LANG_SAVE
|
|
|
|
AC_LANG_CPLUSPLUS
|
2001-06-14 17:27:44 +00:00
|
|
|
AC_CACHE_CHECK([if size_t is unsigned int],
|
|
|
|
wx_cv_size_t_is_uint,
|
2001-06-15 17:48:32 +00:00
|
|
|
dnl an obvious check like AC_TRY_COMPILE[struct Foo { ... };] doesn't work
|
|
|
|
dnl with egcs (at least) up to 1.1.1 as it allows you to compile duplicate
|
|
|
|
dnl methods in a local class (i.e. class inside a function) declaration
|
|
|
|
dnl without any objections!!
|
|
|
|
dnl
|
|
|
|
dnl hence the hack below: we must have Foo at global scope!
|
2001-06-14 17:27:44 +00:00
|
|
|
AC_TRY_COMPILE([#include <stddef.h>],
|
|
|
|
[
|
2001-06-15 17:48:32 +00:00
|
|
|
return 0; }
|
|
|
|
|
2001-06-14 17:27:44 +00:00
|
|
|
struct Foo { void foo(size_t); void foo(unsigned int); };
|
2001-06-15 17:48:32 +00:00
|
|
|
|
|
|
|
int bar() {
|
2001-06-14 17:27:44 +00:00
|
|
|
],
|
|
|
|
wx_cv_size_t_is_uint=no,
|
|
|
|
wx_cv_size_t_is_uint=yes
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$wx_cv_size_t_is_uint" = "yes"; then
|
|
|
|
AC_DEFINE(wxSIZE_T_IS_UINT)
|
|
|
|
else
|
|
|
|
AC_CACHE_CHECK([if size_t is unsigned long],
|
|
|
|
wx_cv_size_t_is_ulong,
|
|
|
|
AC_TRY_COMPILE([#include <stddef.h>],
|
|
|
|
[
|
2001-06-15 17:48:32 +00:00
|
|
|
return 0; }
|
|
|
|
|
2001-06-14 17:27:44 +00:00
|
|
|
struct Foo { void foo(size_t); void foo(unsigned long); };
|
2001-06-15 17:48:32 +00:00
|
|
|
|
|
|
|
int bar() {
|
2001-06-14 17:27:44 +00:00
|
|
|
],
|
|
|
|
wx_cv_size_t_is_ulong=no,
|
|
|
|
wx_cv_size_t_is_ulong=yes
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$wx_cv_size_t_is_ulong" = "yes"; then
|
|
|
|
AC_DEFINE(wxSIZE_T_IS_ULONG)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2001-06-15 14:27:05 +00:00
|
|
|
AC_LANG_RESTORE
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Checks for structures
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
1999-12-22 21:09:32 +00:00
|
|
|
dnl does passwd struct has the pw_gecos field?
|
|
|
|
AC_CACHE_CHECK([for pw_gecos in struct passwd], wx_cv_struct_pw_gecos,
|
|
|
|
[
|
|
|
|
AC_TRY_COMPILE([#include <pwd.h>],
|
|
|
|
[
|
|
|
|
char *p;
|
|
|
|
struct passwd *pw;
|
|
|
|
p = pw->pw_gecos;
|
|
|
|
],
|
|
|
|
[
|
|
|
|
wx_cv_struct_pw_gecos=yes
|
|
|
|
],
|
|
|
|
[
|
|
|
|
wx_cv_struct_pw_gecos=no
|
|
|
|
]
|
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2000-03-19 16:45:43 +00:00
|
|
|
if test "$wx_cv_struct_pw_gecos" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_PW_GECOS)
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Checks for compiler characteristics
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
dnl defines const to be empty if c-compiler does not support const fully
|
|
|
|
AC_C_CONST
|
|
|
|
dnl defines inline to a sensible value for the c-compiler
|
|
|
|
AC_C_INLINE
|
|
|
|
|
|
|
|
dnl check the sizes of integral types (give some reasonable default values for
|
|
|
|
dnl cross-compiling)
|
|
|
|
dnl defines the size of certain types of variables in SIZEOF_<TYPE>
|
1999-06-04 10:25:46 +00:00
|
|
|
AC_CHECK_SIZEOF(char, 1)
|
|
|
|
AC_CHECK_SIZEOF(short, 2)
|
2002-03-06 14:05:57 +00:00
|
|
|
AC_CHECK_SIZEOF(void *, 4)
|
1999-06-01 16:14:29 +00:00
|
|
|
AC_CHECK_SIZEOF(int, 4)
|
|
|
|
AC_CHECK_SIZEOF(long, 4)
|
2002-03-30 01:28:47 +00:00
|
|
|
|
|
|
|
case "${host}" in
|
|
|
|
arm-*-linux* )
|
|
|
|
AC_CHECK_SIZEOF(long long, 8)
|
|
|
|
;;
|
|
|
|
* )
|
|
|
|
AC_CHECK_SIZEOF(long long, 0)
|
|
|
|
esac
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-04-25 18:36:05 +00:00
|
|
|
dnl we have to do it ourselves because SGI/Irix's stdio.h does not include
|
2001-11-04 19:30:34 +00:00
|
|
|
dnl wchar_t and AC_CHECK_SIZEOF only includes stdio.h
|
2001-06-10 20:20:20 +00:00
|
|
|
dnl Mac OS X does not provide wchar.h and wchar_t is defined by stdlib.h (GD)
|
2001-04-25 18:36:05 +00:00
|
|
|
AC_CACHE_CHECK([size of wchar_t], wx_cv_sizeof_wchar_t,
|
|
|
|
[
|
|
|
|
AC_TRY_RUN(
|
|
|
|
[
|
2001-06-26 20:59:19 +00:00
|
|
|
#ifdef HAVE_WCHAR_H
|
2001-11-22 09:03:04 +00:00
|
|
|
# ifdef __CYGWIN__
|
|
|
|
# include <stddef.h>
|
|
|
|
# endif
|
2001-06-26 20:59:19 +00:00
|
|
|
# include <wchar.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_STDLIB_H
|
|
|
|
# include <stdlib.h>
|
|
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%i", sizeof(wchar_t));
|
|
|
|
exit(0);
|
|
|
|
}
|
2001-04-25 18:36:05 +00:00
|
|
|
],
|
2001-06-26 20:59:19 +00:00
|
|
|
wx_cv_sizeof_wchar_t=`cat conftestval`,
|
|
|
|
wx_cv_sizeof_wchar_t=0,
|
|
|
|
wx_cv_sizeof_wchar_t=4
|
|
|
|
)
|
2001-04-25 18:36:05 +00:00
|
|
|
])
|
|
|
|
|
2001-04-26 22:46:50 +00:00
|
|
|
AC_DEFINE_UNQUOTED(SIZEOF_WCHAR_T, $wx_cv_sizeof_wchar_t)
|
2001-04-25 18:36:05 +00:00
|
|
|
|
1999-06-04 22:25:40 +00:00
|
|
|
dnl for bytesex stuff (don't use AC_C_BIGENDIAN to allow cross-compiling)
|
|
|
|
WX_C_BIGENDIAN
|
1999-06-03 22:14:38 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl check for iostream (as opposed to iostream.h) standard header
|
|
|
|
WX_CPP_NEW_HEADERS(, AC_DEFINE(wxUSE_IOSTREAMH))
|
|
|
|
|
|
|
|
dnl check whether C++ compiler supports bool built-in type
|
|
|
|
WX_CPP_BOOL
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Check for functions
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
dnl check for wcslen
|
|
|
|
AC_CHECK_LIB(c, wcslen, [
|
|
|
|
AC_DEFINE(HAVE_WCSLEN)
|
2001-11-08 11:24:04 +00:00
|
|
|
WCHAR_LINK=
|
1999-06-01 16:14:29 +00:00
|
|
|
], [
|
|
|
|
AC_CHECK_LIB(w, wcslen, [
|
|
|
|
AC_DEFINE(HAVE_WCSLEN)
|
2001-11-08 11:24:04 +00:00
|
|
|
WCHAR_LINK=" -lw"
|
2001-08-02 18:58:52 +00:00
|
|
|
], [
|
|
|
|
AC_CHECK_LIB(msvcrt, wcslen, [
|
|
|
|
AC_DEFINE(HAVE_WCSLEN)
|
2001-11-08 11:24:04 +00:00
|
|
|
WCHAR_LINK=
|
2001-08-02 18:58:52 +00:00
|
|
|
])
|
1999-06-01 16:14:29 +00:00
|
|
|
])
|
|
|
|
])
|
|
|
|
|
2001-09-28 13:34:12 +00:00
|
|
|
dnl use wcsrtombs instead of wcstombs which is buggy in old GNU libc versions
|
|
|
|
dnl if possible
|
|
|
|
AC_CHECK_FUNCS(wcsrtombs)
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl check for vprintf/vsprintf() which are GNU extensions
|
|
|
|
AC_FUNC_VPRINTF
|
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
dnl check for vsscanf() and vsnprintf() - on some platforms (Linux, glibc
|
|
|
|
dnl 2.1.1 for the first one, HP-UX for the second) it's available in the
|
2001-12-15 23:15:39 +00:00
|
|
|
dnl library but the prototype is missing, so we can't use AC_CHECK_FUNCS() here,
|
|
|
|
dnl do it manually. We can't use AC_TRY_COMPILE(), either, because it doesn't
|
|
|
|
dnl check if the symbol is available at linking time
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-12-15 23:15:39 +00:00
|
|
|
dnl we use AC_TRY_LINK() here instead of AC_TRY_RUN() to make the checks
|
|
|
|
dnl work for cross-compilation, but AC_TRY_LINK() normally only compiles
|
2000-07-15 19:51:35 +00:00
|
|
|
dnl one function while we need at least 2 - hence the ugly hack below. To
|
2001-12-15 23:15:39 +00:00
|
|
|
dnl understand why it works, remember that AC_TRY_LINK() just prepends
|
2000-07-15 19:51:35 +00:00
|
|
|
dnl "int main() {" in the beginning of the code and "; return 0; }" at the
|
|
|
|
dnl end...
|
|
|
|
|
2001-02-07 08:32:51 +00:00
|
|
|
dnl if we fail to find vsnprintf, also try for _vsnprintf as that is what
|
|
|
|
dnl we'll find under MSW if it exists.
|
|
|
|
|
2001-12-15 23:15:39 +00:00
|
|
|
dnl final note: AC_TRY_LINK will only be executed if there is nothing in
|
2001-03-10 17:48:09 +00:00
|
|
|
dnl the cache so we have to do AC_DEFINE(HAVE_VSNPRINTF) below and not inside
|
|
|
|
dnl it or the symbol wouldn't be defined for the 2nd and subsequent configure
|
|
|
|
dnl runs
|
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
dnl check for vsnprintf() - a safe version of vsprintf()
|
|
|
|
AC_CACHE_CHECK([for vsnprintf], wx_cv_func_vsnprintf,
|
1999-08-07 14:44:58 +00:00
|
|
|
[
|
2001-12-15 23:15:39 +00:00
|
|
|
AC_TRY_LINK([
|
2000-07-15 19:51:35 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
], [
|
|
|
|
int wx_test_vsnprintf(const char *, ...);
|
1999-08-18 17:03:20 +00:00
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
wx_test_vsnprintf("%s");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int wx_test_vsnprintf(const char *fmt, ...)
|
|
|
|
{
|
|
|
|
char *s;
|
1999-08-18 17:03:20 +00:00
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
va_list argp;
|
|
|
|
va_start(argp, fmt);
|
|
|
|
vsnprintf(s, 42, fmt, argp);
|
|
|
|
va_end(argp);
|
|
|
|
], [
|
|
|
|
wx_cv_func_vsnprintf=yes
|
|
|
|
], [
|
2001-12-15 23:15:39 +00:00
|
|
|
AC_TRY_LINK([
|
2001-02-07 08:32:51 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
], [
|
|
|
|
int wx_test_vsnprintf(const char *, ...);
|
|
|
|
|
|
|
|
wx_test_vsnprintf("%s");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int wx_test_vsnprintf(const char *fmt, ...)
|
|
|
|
{
|
|
|
|
char *s;
|
|
|
|
|
|
|
|
va_list argp;
|
|
|
|
va_start(argp, fmt);
|
|
|
|
_vsnprintf(s, 42, fmt, argp);
|
|
|
|
va_end(argp);
|
|
|
|
], [
|
|
|
|
wx_cv_func_vsnprintf=yes
|
|
|
|
], [
|
|
|
|
wx_cv_func_vsnprintf=no
|
|
|
|
])
|
2000-07-15 19:51:35 +00:00
|
|
|
])
|
|
|
|
])
|
1999-08-18 17:03:20 +00:00
|
|
|
|
2001-03-10 17:48:09 +00:00
|
|
|
if test "$wx_cv_func_vsnprintf" = yes; then
|
|
|
|
AC_DEFINE(HAVE_VSNPRINTF)
|
|
|
|
else
|
2001-12-15 23:15:39 +00:00
|
|
|
AC_MSG_WARN(unsafe function vsprintf will be used instead of vsnprintf)
|
2001-03-10 17:48:09 +00:00
|
|
|
fi
|
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
dnl check for vsscanf()
|
|
|
|
AC_CACHE_CHECK([for vsscanf], wx_cv_func_vsscanf,
|
|
|
|
[
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
], [
|
|
|
|
int wx_test_vsscanf(const char *, ...);
|
|
|
|
|
|
|
|
wx_test_vsscanf("%d");
|
|
|
|
return 0;
|
1999-08-18 17:03:20 +00:00
|
|
|
}
|
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
int wx_test_vsscanf(const char *fmt, ...)
|
1999-08-18 17:03:20 +00:00
|
|
|
{
|
2000-07-15 19:51:35 +00:00
|
|
|
va_list argp;
|
|
|
|
va_start(argp, fmt);
|
|
|
|
vsscanf("42", fmt, argp);
|
|
|
|
va_end(argp);
|
|
|
|
], [
|
|
|
|
wx_cv_func_vsscanf=yes
|
|
|
|
], [
|
|
|
|
wx_cv_func_vsscanf=no
|
|
|
|
])
|
1999-08-07 14:44:58 +00:00
|
|
|
])
|
|
|
|
|
2001-03-10 17:48:09 +00:00
|
|
|
if test "$wx_cv_func_vsscanf" = yes; then
|
|
|
|
AC_DEFINE(HAVE_VSSCANF)
|
|
|
|
fi
|
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
dnl the following tests are for Unix(like) systems only
|
2000-02-07 17:28:48 +00:00
|
|
|
if test "$TOOLKIT" != "MSW"; then
|
1999-10-13 18:06:19 +00:00
|
|
|
|
2001-04-24 22:16:24 +00:00
|
|
|
dnl check for available version of iconv()
|
|
|
|
|
|
|
|
AC_LANG_SAVE
|
|
|
|
AC_LANG_CPLUSPLUS
|
2002-01-22 18:55:06 +00:00
|
|
|
AM_ICONV
|
|
|
|
LIBS="$LIBICONV $LIBS"
|
2001-04-24 22:16:24 +00:00
|
|
|
AC_LANG_RESTORE
|
|
|
|
|
2000-03-18 22:25:22 +00:00
|
|
|
dnl check for POSIX signals if we need them
|
|
|
|
if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
|
|
|
|
AC_CHECK_FUNCS(sigaction)
|
|
|
|
|
|
|
|
if test "$ac_cv_func_sigaction" = "no"; then
|
|
|
|
AC_MSG_WARN([No POSIX signal functions on this system, wxApp::OnFatalException will not be called])
|
|
|
|
wxUSE_ON_FATAL_EXCEPTION=no
|
|
|
|
fi
|
2000-07-15 19:51:35 +00:00
|
|
|
|
|
|
|
if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
|
|
|
|
AC_LANG_SAVE
|
|
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
|
|
|
|
AC_CACHE_CHECK([for sa_handler type], wx_cv_type_sa_handler,
|
|
|
|
[
|
|
|
|
AC_TRY_COMPILE([#include <signal.h>],
|
|
|
|
[
|
|
|
|
extern void testSigHandler(int);
|
|
|
|
|
|
|
|
struct sigaction sa;
|
|
|
|
sa.sa_handler = testSigHandler;
|
|
|
|
], [
|
|
|
|
wx_cv_type_sa_handler=int
|
|
|
|
], [
|
|
|
|
wx_cv_type_sa_handler=void
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_LANG_RESTORE
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(wxTYPE_SA_HANDLER, $wx_cv_type_sa_handler)
|
|
|
|
fi
|
2000-03-18 22:25:22 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl check for vfork() (even if it's the same as fork() in modern Unices)
|
|
|
|
AC_CHECK_FUNCS(vfork)
|
|
|
|
|
2001-12-01 17:18:11 +00:00
|
|
|
dnl check for the function for temp files creation
|
|
|
|
AC_CHECK_FUNCS(mkstemp mktemp, break)
|
|
|
|
|
2001-10-19 19:03:52 +00:00
|
|
|
dnl get the library function to use for wxGetDiskSpace(): it is statfs() under
|
|
|
|
dnl Linux and *BSD and statvfs() under Solaris
|
2001-08-25 16:55:06 +00:00
|
|
|
AC_CACHE_CHECK(for statfs, wx_cv_func_statfs,
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
2001-10-19 19:03:52 +00:00
|
|
|
#if defined(__BSD__)
|
2001-10-02 15:48:50 +00:00
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/mount.h>
|
|
|
|
#else
|
|
|
|
#include <sys/vfs.h>
|
|
|
|
#endif
|
2001-08-25 16:55:06 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
long l;
|
|
|
|
struct statfs fs;
|
|
|
|
statfs("/", &fs);
|
|
|
|
l = fs.f_bsize;
|
|
|
|
l += fs.f_blocks;
|
|
|
|
l += fs.f_bavail;
|
|
|
|
],
|
|
|
|
[
|
|
|
|
wx_cv_func_statfs=yes
|
|
|
|
],
|
|
|
|
[
|
|
|
|
wx_cv_func_statfs=no
|
|
|
|
]
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$wx_cv_func_statfs" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_STATFS)
|
|
|
|
else
|
2001-10-19 19:03:52 +00:00
|
|
|
AC_CACHE_CHECK(for statvfs, wx_cv_func_statvfs,
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <sys/statvfs.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
long l;
|
|
|
|
struct statvfs fs;
|
|
|
|
statvfs("/", &fs);
|
|
|
|
l = fs.f_bsize;
|
|
|
|
l += fs.f_blocks;
|
|
|
|
l += fs.f_bavail;
|
|
|
|
],
|
|
|
|
[
|
|
|
|
wx_cv_func_statvfs=yes
|
|
|
|
],
|
|
|
|
[
|
|
|
|
wx_cv_func_statvfs=no
|
|
|
|
]
|
|
|
|
)
|
2001-10-19 19:08:13 +00:00
|
|
|
)
|
2001-10-19 19:03:52 +00:00
|
|
|
|
|
|
|
if test "$wx_cv_func_statvfs" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_STATVFS)
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([wxGetDiskSpace() function won't work without statfs()])
|
|
|
|
fi
|
2001-08-25 16:55:06 +00:00
|
|
|
fi
|
|
|
|
|
2001-06-08 23:42:59 +00:00
|
|
|
dnl check for fcntl() or at least flock() needed by Unix implementation of
|
|
|
|
dnl wxSingleInstanceChecker
|
|
|
|
if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
|
|
|
|
AC_CHECK_FUNCS(fcntl flock, break)
|
|
|
|
|
|
|
|
if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
|
|
|
|
AC_MSG_WARN(wxSingleInstanceChecker not available)
|
|
|
|
wxUSE_SNGLINST_CHECKER=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
1999-12-03 21:27:34 +00:00
|
|
|
dnl check for timegm() used by datetime.cpp
|
|
|
|
AC_CHECK_FUNCS(timegm)
|
|
|
|
|
2001-06-08 23:42:59 +00:00
|
|
|
dnl look for a function to modify the environment
|
2000-11-26 22:46:35 +00:00
|
|
|
AC_CHECK_FUNCS(putenv setenv, break)
|
|
|
|
|
1999-12-22 21:09:32 +00:00
|
|
|
HAVE_SOME_SLEEP_FUNC=0
|
|
|
|
if test "$USE_BEOS" = 1; then
|
|
|
|
dnl BeOS has its own (wonder where did they get it from) sleep() function
|
|
|
|
dnl in unistd.h
|
|
|
|
AC_DEFINE(HAVE_SLEEP)
|
|
|
|
HAVE_SOME_SLEEP_FUNC=1
|
|
|
|
fi
|
|
|
|
|
2001-07-15 18:47:13 +00:00
|
|
|
if test "$USE_DARWIN" = 1; then
|
2001-02-04 19:53:25 +00:00
|
|
|
dnl Mac OS X has both nanosleep and usleep
|
|
|
|
dnl but only usleep is defined in unistd.h
|
|
|
|
AC_DEFINE(HAVE_USLEEP)
|
|
|
|
HAVE_SOME_SLEEP_FUNC=1
|
|
|
|
fi
|
|
|
|
|
1999-12-22 21:09:32 +00:00
|
|
|
if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
|
|
|
|
dnl try nanosleep() in libc and libposix4, if this fails - usleep()
|
|
|
|
POSIX4_LINK=
|
|
|
|
AC_CHECK_FUNCS(nanosleep,
|
|
|
|
AC_DEFINE(HAVE_NANOSLEEP),
|
|
|
|
[
|
|
|
|
AC_CHECK_LIB(posix4, nanosleep,
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_NANOSLEEP)
|
2001-11-08 11:24:04 +00:00
|
|
|
POSIX4_LINK=" -lposix4"
|
1999-12-22 21:09:32 +00:00
|
|
|
],
|
|
|
|
[
|
2001-02-04 19:53:25 +00:00
|
|
|
AC_CHECK_FUNCS(usleep,
|
2001-06-08 23:42:59 +00:00
|
|
|
AC_DEFINE(HAVE_USLEEP),
|
|
|
|
AC_MSG_WARN([wxSleep() function will not work])
|
|
|
|
)
|
1999-12-22 21:09:32 +00:00
|
|
|
]
|
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
|
|
|
dnl check for uname (POSIX) and gethostname (BSD)
|
|
|
|
AC_CHECK_FUNCS(uname gethostname, break)
|
|
|
|
|
2000-03-13 08:27:44 +00:00
|
|
|
dnl check for MT-safe version of strtok (on DEC Alpha, it's ok for C compiler
|
|
|
|
dnl but not for C++ one - hence change language)
|
|
|
|
AC_LANG_SAVE
|
|
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
|
1999-10-04 20:15:38 +00:00
|
|
|
AC_CHECK_FUNCS(strtok_r)
|
|
|
|
|
2000-03-13 08:27:44 +00:00
|
|
|
AC_LANG_RESTORE
|
|
|
|
|
1999-10-27 18:27:48 +00:00
|
|
|
dnl check for inet_addr and inet_aton (these may live either in libc, or in
|
2002-02-12 22:50:05 +00:00
|
|
|
dnl libnsl or libresolv or libsocket)
|
1999-10-27 18:27:48 +00:00
|
|
|
INET_LINK=
|
|
|
|
AC_CHECK_FUNCS(inet_addr,
|
|
|
|
AC_DEFINE(HAVE_INET_ADDR),
|
|
|
|
[
|
|
|
|
AC_CHECK_LIB(nsl, inet_addr,
|
1999-12-03 21:27:34 +00:00
|
|
|
INET_LINK="nsl",
|
1999-10-27 18:27:48 +00:00
|
|
|
AC_CHECK_LIB(resolv, inet_addr,
|
2002-02-12 22:50:05 +00:00
|
|
|
INET_LINK="resolv",
|
|
|
|
AC_CHECK_LIB(socket, inet_addr,
|
|
|
|
INET_LINK="socket"
|
|
|
|
)
|
1999-10-27 18:27:48 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
AC_CHECK_FUNCS(inet_aton,
|
|
|
|
AC_DEFINE(HAVE_INET_ATON),
|
|
|
|
[
|
|
|
|
dnl only check it in the same lib
|
|
|
|
AC_CHECK_LIB($INET_LINK, inet_aton, AC_DEFINE(HAVE_INET_ATON))
|
|
|
|
])
|
|
|
|
|
|
|
|
if test "x$INET_LINK" != "x"; then
|
|
|
|
AC_DEFINE(HAVE_INET_ADDR)
|
2001-11-08 11:24:04 +00:00
|
|
|
INET_LINK=" -l$INET_LINK"
|
1999-10-27 18:27:48 +00:00
|
|
|
fi
|
1999-08-10 17:48:11 +00:00
|
|
|
|
1999-10-13 18:06:19 +00:00
|
|
|
fi
|
2000-02-07 17:28:48 +00:00
|
|
|
dnl if !MSW
|
1999-10-13 18:06:19 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ===========================================================================
|
|
|
|
dnl Now we have all the info we need - use it!
|
|
|
|
dnl ===========================================================================
|
|
|
|
|
|
|
|
dnl flush the cache
|
|
|
|
AC_CACHE_SAVE
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
1999-06-13 22:27:35 +00:00
|
|
|
dnl thread support for Unix (always available under Win32)
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2000-02-07 17:28:48 +00:00
|
|
|
dnl under MSW we always have thread support
|
|
|
|
if test "$TOOLKIT" != "MSW"; then
|
1999-06-13 22:27:35 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
dnl the code below:
|
|
|
|
dnl defines THREADS_OBJ which contains the object files to build
|
|
|
|
dnl defines THREADS_LINK which contains the thread library to link with
|
|
|
|
dnl defines wxUSE_THREADS=1 if thread support is activated
|
|
|
|
|
|
|
|
THREADS_LINK=
|
|
|
|
THREADS_OBJ=
|
|
|
|
CODE_GEN_FLAGS=
|
|
|
|
CODE_GEN_FLAGS_CXX=
|
|
|
|
|
|
|
|
if test "$wxUSE_THREADS" = "yes" ; then
|
|
|
|
if test "$wxUSE_WINE" = 1 ; then
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN([Threads are not supported under WINE... disabled])
|
2001-11-16 13:09:52 +00:00
|
|
|
wxUSE_THREADS="no"
|
|
|
|
elif test "$USE_BEOS" = 1; then
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN([BeOS threads are not yet supported... disabled])
|
2001-11-16 13:09:52 +00:00
|
|
|
wxUSE_THREADS="no"
|
|
|
|
fi
|
1999-06-16 08:14:52 +00:00
|
|
|
fi
|
1999-06-10 10:21:05 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
if test "$wxUSE_THREADS" = "yes" ; then
|
|
|
|
dnl find if POSIX threads are available
|
1999-09-13 07:18:36 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
dnl AIX calls the library libpthreads - thanks IBM!
|
|
|
|
if test "$USE_AIX" = 1; then
|
|
|
|
THREADS_LIB=pthreads
|
|
|
|
else
|
|
|
|
THREADS_LIB=pthread
|
|
|
|
fi
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
dnl standard lib name is pthread
|
|
|
|
dnl We no longer test for pthread-0.7 as it breaks compilation on some
|
|
|
|
dnl glibc2 systems, especially for static linkage.
|
|
|
|
AC_CHECK_LIB($THREADS_LIB, pthread_create, [
|
1999-06-01 16:14:29 +00:00
|
|
|
THREADS_OBJ="threadpsx.lo"
|
2001-11-16 13:09:52 +00:00
|
|
|
THREADS_LINK=$THREADS_LIB
|
1999-06-01 16:14:29 +00:00
|
|
|
], [
|
2001-11-16 13:09:52 +00:00
|
|
|
dnl thread functions are in libc_r under FreeBSD
|
|
|
|
AC_CHECK_LIB(c_r, pthread_create, [
|
|
|
|
THREADS_OBJ="threadpsx.lo"
|
|
|
|
THREADS_LINK="c_r"
|
|
|
|
], [
|
|
|
|
dnl VZ: SGI threads are not supported currently
|
|
|
|
AC_CHECK_HEADER(sys/prctl.h, [
|
|
|
|
THREADS_OBJ="threadsgi.lo"
|
|
|
|
])
|
1999-06-01 16:14:29 +00:00
|
|
|
])
|
|
|
|
])
|
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
if test -z "$THREADS_OBJ" ; then
|
|
|
|
wxUSE_THREADS=no
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN([No thread support on this system... disabled])
|
2001-11-16 13:09:52 +00:00
|
|
|
fi
|
1999-08-07 14:44:58 +00:00
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
dnl do other tests only if we are using threads
|
|
|
|
if test "$wxUSE_THREADS" = "yes" ; then
|
|
|
|
AC_CHECK_FUNCS(thr_setconcurrency)
|
|
|
|
|
|
|
|
dnl define autoconf macro to check for given function in both pthread and
|
|
|
|
dnl posix4 libraries
|
|
|
|
dnl usage: AC_FUNC_THREAD(FUNCTION_NAME)
|
|
|
|
dnl VZ: TODO
|
|
|
|
dnl AC_DEFUN(AC_FUNC_THREAD,
|
|
|
|
dnl [
|
|
|
|
dnl AC_CHECK_LIB($THREADS_LINK, $1,
|
|
|
|
dnl AC_DEFINE(HAVE_`'translit($1, `A-Z', 'a-z'),
|
|
|
|
dnl [AC_CHECK_LIB([posix4], $1,
|
|
|
|
dnl [AC_DEFINE(HAVE_`'translit($1, `A-Z', 'a-z'))
|
|
|
|
dnl POSIX4_LINK=" -lposix4"
|
|
|
|
dnl ])
|
|
|
|
dnl ])
|
|
|
|
dnl ])
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS(sched.h)
|
|
|
|
|
|
|
|
AC_CHECK_LIB($THREADS_LINK, sched_yield,
|
|
|
|
AC_DEFINE(HAVE_SCHED_YIELD),
|
|
|
|
[AC_CHECK_LIB([posix4], sched_yield,
|
|
|
|
[AC_DEFINE(HAVE_SCHED_YIELD) POSIX4_LINK=" -lposix4"],
|
|
|
|
AC_MSG_WARN(wxThread::Yield will not work properly)
|
|
|
|
)]
|
2000-07-15 19:51:35 +00:00
|
|
|
)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
dnl to be able to set the thread priority, we need to have all of the
|
|
|
|
dnl following functions:
|
|
|
|
dnl 1. pthread_attr_getschedpolicy
|
|
|
|
dnl 2. sched_get_priority_min and sched_get_priority_max
|
|
|
|
dnl (this one can be in either libpthread or libposix4 (under Solaris))
|
|
|
|
dnl 3. pthread_attr_getschedparam and pthread_attr_setschedparam
|
|
|
|
HAVE_PRIOR_FUNCS=0
|
|
|
|
AC_CHECK_LIB($THREADS_LINK, pthread_attr_getschedpolicy,
|
|
|
|
AC_CHECK_LIB($THREADS_LINK, pthread_attr_setschedparam,
|
|
|
|
AC_CHECK_LIB($THREADS_LINK, sched_get_priority_max,
|
|
|
|
HAVE_PRIOR_FUNCS=1,
|
|
|
|
AC_CHECK_LIB([posix4], sched_get_priority_max,
|
|
|
|
[
|
|
|
|
HAVE_PRIOR_FUNCS=1
|
|
|
|
POSIX4_LINK=" -lposix4"
|
|
|
|
],
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
if test "$HAVE_PRIOR_FUNCS" = 1; then
|
|
|
|
AC_DEFINE(HAVE_THREAD_PRIORITY_FUNCTIONS)
|
|
|
|
else
|
|
|
|
AC_MSG_WARN(Setting thread priority will not work)
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
AC_CHECK_LIB($THREADS_LINK, pthread_cancel,
|
|
|
|
AC_DEFINE(HAVE_PTHREAD_CANCEL),
|
|
|
|
AC_MSG_WARN([wxThread::Kill() will not work properly]))
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
AC_CACHE_CHECK([for pthread_cleanup_push/pop], wx_cv_func_pthread_cleanup_push,
|
|
|
|
[
|
|
|
|
AC_TRY_COMPILE([#include <pthread.h>],
|
|
|
|
[
|
|
|
|
pthread_cleanup_push(NULL, NULL);
|
|
|
|
pthread_cleanup_pop(0);
|
|
|
|
], [
|
|
|
|
wx_cv_func_pthread_cleanup_push=yes
|
|
|
|
], [
|
|
|
|
wx_cv_func_pthread_cleanup_push=no
|
|
|
|
])
|
|
|
|
])
|
2001-04-09 13:25:04 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_THREAD_CLEANUP_FUNCTIONS)
|
|
|
|
fi
|
2001-08-08 16:38:37 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
dnl mutexattr_t initialization is done in quite different ways on different
|
|
|
|
dnl platforms, so check for a few things:
|
|
|
|
dnl
|
|
|
|
dnl HAVE_MUTEX_RECURSIVE means that we can create recursive mutexes
|
|
|
|
dnl HAVE_MUTEXATTR_SETTYPE means that we do it using
|
|
|
|
dnl pthread_mutexattr_settype(PTHREAD_MUTEX_RECURSIVE) and if it is not
|
|
|
|
dnl defined, we do it by directly assigned
|
|
|
|
dnl PTHREAD_MUTEX_RECURSIVE_MUTEX_INITIALIZER_NP to attr
|
|
|
|
|
|
|
|
dnl we need _GNU_SOURCE to get PTHREAD_MUTEX_RECURSIVE with glibc 2.1+
|
|
|
|
dnl (strictly speaking we only need _XOPEN_SOURCE=500 but just defining
|
|
|
|
dnl this disables _BSD_SOURCE which breaks libtiff compilation, so it is
|
|
|
|
dnl simpler to just define _GNU_SOURCE to get everything)
|
|
|
|
if test "x$wx_lib_glibc21" = "xyes"; then
|
|
|
|
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
|
|
|
fi
|
2001-04-09 13:25:04 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
AC_CACHE_CHECK([for pthread_mutexattr_t], wx_cv_type_pthread_mutexattr_t,
|
|
|
|
[
|
2001-04-09 13:25:04 +00:00
|
|
|
AC_TRY_COMPILE([#include <pthread.h>],
|
|
|
|
[
|
2001-11-16 13:09:52 +00:00
|
|
|
pthread_mutexattr_t attr;
|
|
|
|
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
|
2001-04-09 13:25:04 +00:00
|
|
|
], [
|
2001-11-16 13:09:52 +00:00
|
|
|
wx_cv_type_pthread_mutexattr_t=yes
|
2001-04-09 13:25:04 +00:00
|
|
|
], [
|
2001-11-16 13:09:52 +00:00
|
|
|
wx_cv_type_pthread_mutexattr_t=no
|
2001-04-09 13:25:04 +00:00
|
|
|
]
|
|
|
|
)
|
2001-11-16 13:09:52 +00:00
|
|
|
])
|
2001-04-09 13:25:04 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_T)
|
|
|
|
else
|
|
|
|
dnl don't despair, there may be another way to do it
|
|
|
|
AC_CACHE_CHECK([for PTHREAD_RECURSIVE_MUTEX_INITIALIZER],
|
|
|
|
wx_cv_type_pthread_rec_mutex_init,
|
|
|
|
[
|
|
|
|
AC_TRY_COMPILE([#include <pthread.h>],
|
|
|
|
[
|
|
|
|
pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
|
|
|
|
], [
|
|
|
|
wx_cv_type_pthread_rec_mutex_init=yes
|
|
|
|
], [
|
|
|
|
wx_cv_type_pthread_rec_mutex_init=no
|
|
|
|
]
|
|
|
|
)
|
|
|
|
])
|
|
|
|
if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER)
|
|
|
|
else
|
|
|
|
dnl this may break code working elsewhere, so at least warn about it
|
|
|
|
AC_MSG_WARN([wxMutex won't be recursive on this platform])
|
|
|
|
fi
|
|
|
|
fi
|
2000-12-15 15:22:18 +00:00
|
|
|
|
2001-11-16 13:09:52 +00:00
|
|
|
THREADS_LINK=" -l$THREADS_LINK"
|
|
|
|
|
|
|
|
dnl building MT programs under Solaris with the native compiler requires -mt
|
|
|
|
dnl switch
|
|
|
|
if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
|
|
|
|
CPPFLAGS="$CFLAGS -mt"
|
|
|
|
CXXFLAGS="$CXXFLAGS -mt"
|
|
|
|
LDFLAGS="$LDFLAGS -mt"
|
|
|
|
fi
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2000-02-07 17:28:48 +00:00
|
|
|
dnl from if !MSW
|
1999-06-13 22:27:35 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_THREADS" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_THREADS)
|
|
|
|
|
2001-12-14 19:34:00 +00:00
|
|
|
dnl we must define _REENTRANT or something along these lines for MT code
|
|
|
|
TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
|
1999-06-13 22:27:35 +00:00
|
|
|
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
|
1999-10-15 17:35:14 +00:00
|
|
|
else
|
1999-12-22 21:09:32 +00:00
|
|
|
dnl on some systems, _REENTRANT should be defined if we want to use any _r()
|
1999-10-15 17:35:14 +00:00
|
|
|
dnl functions - add tests for other functions here as well
|
|
|
|
if test "$ac_cv_func_strtok_r" = "yes"; then
|
1999-11-02 18:58:22 +00:00
|
|
|
AC_MSG_CHECKING(if -D_REENTRANT is needed)
|
|
|
|
if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
|
2001-09-28 07:00:13 +00:00
|
|
|
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
|
1999-11-02 18:58:22 +00:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
1999-10-25 06:33:22 +00:00
|
|
|
fi
|
1999-10-15 17:35:14 +00:00
|
|
|
fi
|
1999-06-13 22:27:35 +00:00
|
|
|
fi
|
|
|
|
|
2000-07-19 08:08:43 +00:00
|
|
|
if test "$WXGTK20" = 1 ; then
|
|
|
|
AC_DEFINE_UNQUOTED(__WXGTK20__,$WXGTK20)
|
1999-12-30 17:51:26 +00:00
|
|
|
WXGTK12=1
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$WXGTK12" = 1 ; then
|
|
|
|
AC_DEFINE_UNQUOTED(__WXGTK12__,$WXGTK12)
|
|
|
|
fi
|
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
if test "$WXGTK127" = 1 ; then
|
|
|
|
AC_DEFINE_UNQUOTED(__WXGTK127__,$WXGTK127)
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
WXDEBUG=
|
|
|
|
|
|
|
|
if test "$wxUSE_DEBUG_INFO" = "yes" ; then
|
|
|
|
WXDEBUG="-g"
|
|
|
|
wxUSE_OPTIMISE=no
|
|
|
|
fi
|
|
|
|
|
1999-08-20 19:40:03 +00:00
|
|
|
if test "$wxUSE_DEBUG_GDB" = "yes" ; then
|
|
|
|
wxUSE_DEBUG_INFO=yes
|
|
|
|
WXDEBUG="-ggdb"
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
|
1999-06-16 08:14:52 +00:00
|
|
|
AC_DEFINE(WXDEBUG)
|
|
|
|
WXDEBUG_DEFINE="-D__WXDEBUG__"
|
1999-06-01 16:14:29 +00:00
|
|
|
else
|
1999-06-16 19:13:10 +00:00
|
|
|
if test "$wxUSE_GTK" = 1 ; then
|
|
|
|
WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_MEM_TRACING" = "yes" ; then
|
1999-06-16 08:14:52 +00:00
|
|
|
AC_DEFINE(wxUSE_MEMORY_TRACING)
|
|
|
|
AC_DEFINE(wxUSE_GLOBAL_MEMORY_OPERATORS)
|
2000-02-02 21:32:15 +00:00
|
|
|
AC_DEFINE(wxUSE_DEBUG_NEW_ALWAYS)
|
1999-06-16 08:14:52 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_DMALLOC" = "yes" ; then
|
2001-11-08 11:24:04 +00:00
|
|
|
DMALLOC_LIBS="-ldmalloc"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
PROFILE=
|
|
|
|
if test "$wxUSE_PROFILE" = "yes" ; then
|
2001-11-08 11:24:04 +00:00
|
|
|
PROFILE=" -pg"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
2001-11-18 02:11:19 +00:00
|
|
|
if test "$GCC" = "yes" ; then
|
1999-06-17 19:46:17 +00:00
|
|
|
if test "$wxUSE_NO_RTTI" = "yes" ; then
|
2001-09-28 07:00:13 +00:00
|
|
|
CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
|
1999-06-17 19:46:17 +00:00
|
|
|
fi
|
|
|
|
if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
|
2001-09-28 07:00:13 +00:00
|
|
|
CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
|
1999-06-17 19:46:17 +00:00
|
|
|
fi
|
1999-08-20 19:40:03 +00:00
|
|
|
if test "$wxUSE_PERMISSIVE" = "yes" ; then
|
2001-10-02 15:48:50 +00:00
|
|
|
CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
|
1999-08-20 19:40:03 +00:00
|
|
|
fi
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$USE_WIN32" = 1 ; then
|
|
|
|
# I'm not even really sure what this was ever added to solve,
|
|
|
|
# but someone added it for mingw native builds, so I guess
|
|
|
|
# they had a reason, right??
|
|
|
|
CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
|
1999-08-20 19:40:03 +00:00
|
|
|
fi
|
1999-09-13 07:18:36 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
|
|
|
|
CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
|
|
|
|
if test "$wxUSE_OPTIMISE" = "no" ; then
|
1999-06-16 08:14:52 +00:00
|
|
|
OPTIMISE=
|
1999-06-01 16:14:29 +00:00
|
|
|
else
|
1999-06-16 08:14:52 +00:00
|
|
|
if test "$GCC" = yes ; then
|
1999-06-16 19:13:10 +00:00
|
|
|
OPTIMISE="-O2"
|
1999-06-16 08:14:52 +00:00
|
|
|
case "${host}" in
|
|
|
|
i586-*-*|i686-*-* )
|
|
|
|
OPTIMISE="${OPTIMISE} "
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
OPTIMISE="-O"
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
2001-07-02 09:23:59 +00:00
|
|
|
if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
|
|
|
|
AC_DEFINE(WXWIN_COMPATIBILITY_2)
|
|
|
|
|
|
|
|
WXWIN_COMPATIBILITY_2_2="yes"
|
|
|
|
fi
|
|
|
|
|
2002-02-17 22:59:27 +00:00
|
|
|
if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
|
2001-07-02 09:23:59 +00:00
|
|
|
AC_DEFINE(WXWIN_COMPATIBILITY_2_2)
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl the library may be built without GUI classes at all
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
if test "$wxUSE_GUI" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_GUI)
|
|
|
|
|
|
|
|
dnl the things we always pull in the GUI version of the library:
|
|
|
|
dnl 1. basic things like wxApp, wxWindow, wxControl, wxFrame, wxDialog (the
|
|
|
|
dnl library really can't be built without those)
|
|
|
|
dnl 2. basic controls: wxButton, wxStaticText, wxTextCtrl (these are used in
|
|
|
|
dnl almost any program and the first 2 are needed to show a message box
|
|
|
|
dnl which want to be always able to do)
|
|
|
|
dnl 3. GDI stuff: icon, cursors and all that. Although it would be very nice
|
|
|
|
dnl to compile without them (if the app doesn't do any drawing, it doesn't
|
|
|
|
dnl need the dcs, pens, brushes, ...), this just can't be done now
|
|
|
|
dnl 4. menu stuff: wxMenu, wxMenuBar, wxMenuItem
|
|
|
|
dnl 5. misc stuff: timers, settings, message box
|
|
|
|
else
|
|
|
|
AC_DEFINE(wxUSE_NOGUI)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Unix/Windows
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
if test "$wxUSE_UNIX" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_UNIX)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Register non-GUI class options for makefiles and setup.h
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
if test "$wxUSE_APPLE_IEEE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_APPLE_IEEE)
|
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_TIMER" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_TIMER)
|
|
|
|
fi
|
|
|
|
|
1999-06-09 14:49:50 +00:00
|
|
|
if test "$wxUSE_WAVE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_WAVE)
|
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_CMDLINE_PARSER)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_STOPWATCH" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_STOPWATCH)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_DATETIME" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_DATETIME)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_TIMEDATE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_TIMEDATE)
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_FILE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_FILE)
|
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_FFILE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_FFILE)
|
|
|
|
fi
|
|
|
|
|
2000-02-27 21:06:17 +00:00
|
|
|
if test "$wxUSE_FILESYSTEM" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_FILESYSTEM)
|
|
|
|
fi
|
|
|
|
|
1999-07-09 14:32:50 +00:00
|
|
|
if test "$wxUSE_FS_INET" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_FS_INET)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_FS_ZIP" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_FS_ZIP)
|
|
|
|
fi
|
|
|
|
|
1999-07-10 13:23:22 +00:00
|
|
|
if test "$wxUSE_ZIPSTREAM" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_ZIPSTREAM)
|
|
|
|
fi
|
|
|
|
|
2000-03-18 22:25:22 +00:00
|
|
|
if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_ON_FATAL_EXCEPTION)
|
|
|
|
fi
|
|
|
|
|
2001-06-08 23:42:59 +00:00
|
|
|
if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_SNGLINST_CHECKER)
|
|
|
|
fi
|
|
|
|
|
1999-07-10 13:23:22 +00:00
|
|
|
if test "$wxUSE_BUSYINFO" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_BUSYINFO)
|
|
|
|
fi
|
|
|
|
|
1999-06-27 22:37:41 +00:00
|
|
|
if test "$wxUSE_STD_IOSTREAM" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_STD_IOSTREAM)
|
|
|
|
fi
|
|
|
|
|
2001-11-14 20:40:20 +00:00
|
|
|
if test "$wxUSE_TEXTBUFFER" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_TEXTBUFFER)
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_TEXTFILE" = "yes"; then
|
2001-11-14 20:40:20 +00:00
|
|
|
if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN(wxTextFile requires wxFile and wxTextBuffer... disabled)
|
1999-06-01 16:14:29 +00:00
|
|
|
else
|
|
|
|
AC_DEFINE(wxUSE_TEXTFILE)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_CONFIG" = "yes" ; then
|
|
|
|
if test "$wxUSE_TEXTFILE" != "yes"; then
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN(wxConfig requires wxTextFile... disabled)
|
1999-06-01 16:14:29 +00:00
|
|
|
else
|
|
|
|
AC_DEFINE(wxUSE_CONFIG)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_INTL" = "yes" ; then
|
|
|
|
if test "$wxUSE_FILE" != "yes"; then
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN(I18n code requires wxFile... disabled)
|
1999-06-01 16:14:29 +00:00
|
|
|
else
|
|
|
|
AC_DEFINE(wxUSE_INTL)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
|
2000-07-15 19:51:35 +00:00
|
|
|
GUIDIST="$GUIDIST INTL_DIST"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_LOG" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_LOG)
|
2001-07-02 10:35:58 +00:00
|
|
|
|
|
|
|
if test "$wxUSE_LOGGUI" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_LOGGUI)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_LOGWINDOW" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_LOGWINDOW)
|
|
|
|
fi
|
2001-11-24 23:39:47 +00:00
|
|
|
|
|
|
|
if test "$wxUSE_LOGDIALOG" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_LOG_DIALOG)
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_LONGLONG" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_LONGLONG)
|
|
|
|
fi
|
|
|
|
|
2000-11-24 12:38:55 +00:00
|
|
|
if test "$wxUSE_GEOMETRY" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_GEOMETRY)
|
|
|
|
fi
|
|
|
|
|
1999-10-02 18:29:54 +00:00
|
|
|
if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_DIALUP_MANAGER)
|
2000-01-08 16:07:56 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
|
1999-10-02 18:29:54 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_STREAMS" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_STREAMS)
|
|
|
|
fi
|
|
|
|
|
2001-08-25 16:55:06 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
1999-10-27 19:43:07 +00:00
|
|
|
dnl time/date functions
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_DATETIME" = "yes"; then
|
1999-12-20 17:48:54 +00:00
|
|
|
dnl check for strptime
|
|
|
|
AC_CHECK_FUNCS(strptime)
|
|
|
|
|
1999-12-15 19:35:03 +00:00
|
|
|
dnl check for timezone variable
|
|
|
|
AC_CACHE_CHECK(for timezone variable in <time.h>,
|
|
|
|
wx_cv_var_timezone,
|
|
|
|
[
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <time.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
int tz;
|
2001-07-08 22:52:59 +00:00
|
|
|
tz = timezone;
|
1999-12-15 19:35:03 +00:00
|
|
|
],
|
|
|
|
[
|
2001-07-08 22:52:59 +00:00
|
|
|
wx_cv_var_timezone=timezone
|
1999-12-15 19:35:03 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <time.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
int tz;
|
|
|
|
tz = _timezone;
|
|
|
|
],
|
|
|
|
[
|
|
|
|
wx_cv_var_timezone=_timezone
|
|
|
|
],
|
1999-12-16 16:19:26 +00:00
|
|
|
[
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <time.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
int tz;
|
2001-07-08 22:52:59 +00:00
|
|
|
tz = __timezone;
|
1999-12-16 16:19:26 +00:00
|
|
|
],
|
|
|
|
[
|
2001-07-08 22:52:59 +00:00
|
|
|
wx_cv_var_timezone=__timezone
|
1999-12-16 16:19:26 +00:00
|
|
|
],
|
2001-12-15 23:15:39 +00:00
|
|
|
[
|
|
|
|
if test "$USE_DOS" = 0 ; then
|
|
|
|
AC_MSG_ERROR(no timezone variable)
|
|
|
|
fi
|
|
|
|
]
|
1999-12-16 16:19:26 +00:00
|
|
|
)
|
|
|
|
]
|
1999-12-15 19:35:03 +00:00
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
dnl as we want $wx_cv_var_timezone to be expanded, use AC_DEFINE_UNQUOTED
|
2001-12-15 23:15:39 +00:00
|
|
|
if test "x$wx_cv_var_timezone" != x ; then
|
|
|
|
AC_DEFINE_UNQUOTED(WX_TIMEZONE, $wx_cv_var_timezone)
|
|
|
|
fi
|
1999-12-15 19:35:03 +00:00
|
|
|
|
2000-02-02 18:00:30 +00:00
|
|
|
dnl check for localtime (it's POSIX, but the check can do no harm...)
|
|
|
|
AC_CHECK_FUNCS(localtime)
|
1999-10-27 19:43:07 +00:00
|
|
|
|
1999-11-12 19:19:38 +00:00
|
|
|
if test "$ac_cv_func_localtime" = "yes"; then
|
|
|
|
AC_CACHE_CHECK(for tm_gmtoff in struct tm,
|
|
|
|
wx_cv_struct_tm_has_gmtoff,
|
|
|
|
[
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <time.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
struct tm tm;
|
|
|
|
tm.tm_gmtoff++;
|
|
|
|
],
|
|
|
|
[
|
1999-11-12 19:26:21 +00:00
|
|
|
wx_cv_struct_tm_has_gmtoff=yes
|
1999-11-12 19:19:38 +00:00
|
|
|
],
|
|
|
|
wx_cv_struct_tm_has_gmtoff=no
|
|
|
|
)
|
|
|
|
])
|
2000-02-02 18:00:30 +00:00
|
|
|
fi
|
|
|
|
|
2001-06-10 22:26:16 +00:00
|
|
|
if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
|
|
|
|
AC_DEFINE(WX_GMTOFF_IN_TM)
|
|
|
|
fi
|
|
|
|
|
2000-02-02 18:00:30 +00:00
|
|
|
dnl check for gettimeofday (SVr4, BSD 4.3) and ftime (V7, BSD 4.3) for the
|
|
|
|
dnl function to be used for high resolution timers
|
|
|
|
AC_CHECK_FUNCS(gettimeofday ftime, break)
|
|
|
|
|
|
|
|
if test "$ac_cv_func_gettimeofday" = "yes"; then
|
1999-10-27 19:43:07 +00:00
|
|
|
AC_CACHE_CHECK([whether gettimeofday takes two arguments],
|
|
|
|
wx_cv_func_gettimeofday_has_2_args,
|
|
|
|
[
|
|
|
|
dnl on some _really_ old systems it takes only 1 argument
|
|
|
|
AC_LANG_SAVE
|
|
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
struct timeval tv;
|
2001-08-08 23:35:17 +00:00
|
|
|
gettimeofday(&tv, NULL);
|
1999-10-27 19:43:07 +00:00
|
|
|
],
|
|
|
|
wx_cv_func_gettimeofday_has_2_args=yes,
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
struct timeval tv;
|
|
|
|
gettimeofday(&tv);
|
|
|
|
],
|
|
|
|
wx_cv_func_gettimeofday_has_2_args=no,
|
2001-08-08 23:35:17 +00:00
|
|
|
[
|
|
|
|
AC_MSG_WARN([failed to determine number of gettimeofday() arguments])
|
|
|
|
wx_cv_func_gettimeofday_has_2_args=unknown
|
|
|
|
]
|
1999-10-27 19:43:07 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
AC_LANG_RESTORE
|
|
|
|
])
|
|
|
|
|
|
|
|
if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
|
|
|
|
AC_DEFINE(WX_GETTIMEOFDAY_NO_TZ)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_DEFINE(wxUSE_TIMEDATE)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
dnl wxSocket
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
2002-02-13 16:47:43 +00:00
|
|
|
dnl VZ: the GUI hooks wxSocket needs are not implemented yet in wxX11
|
|
|
|
if test "$wxUSE_SOCKETS" = "yes"; then
|
|
|
|
if test "$TOOLKIT" = "X11"; then
|
|
|
|
AC_MSG_WARN([wxSocket not yet supported under X11... disabled])
|
|
|
|
wxUSE_SOCKETS="no"
|
|
|
|
fi
|
|
|
|
fi
|
2000-02-07 17:28:48 +00:00
|
|
|
|
2002-02-13 16:47:43 +00:00
|
|
|
if test "$wxUSE_SOCKETS" = "yes"; then
|
|
|
|
dnl under MSW we always have sockets
|
|
|
|
if test "$TOOLKIT" != "MSW"; then
|
2002-02-16 21:03:47 +00:00
|
|
|
dnl under Solaris and OS/2, socket functions live in -lsocket
|
2001-09-28 07:00:13 +00:00
|
|
|
AC_CHECK_FUNC(socket,,
|
|
|
|
AC_CHECK_LIB(socket, socket,
|
2002-02-16 21:03:47 +00:00
|
|
|
if test "$INET_LINK" != " -lsocket"; then
|
2002-02-17 00:20:32 +00:00
|
|
|
INET_LINK="$INET_LINK -lsocket"
|
|
|
|
fi,
|
2001-09-28 07:00:13 +00:00
|
|
|
[
|
|
|
|
AC_MSG_WARN([socket library not found - sockets will be disabled])
|
|
|
|
wxUSE_SOCKETS=no
|
|
|
|
]
|
|
|
|
)
|
1999-10-27 19:43:07 +00:00
|
|
|
)
|
2001-09-28 07:00:13 +00:00
|
|
|
fi
|
2002-02-13 16:47:43 +00:00
|
|
|
fi
|
1999-10-27 19:43:07 +00:00
|
|
|
|
2002-02-13 16:47:43 +00:00
|
|
|
if test "$wxUSE_SOCKETS" = "yes" ; then
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl this test may be appropriate if building under cygwin
|
|
|
|
dnl right now I'm assuming it also uses the winsock stuff
|
|
|
|
dnl like mingw does.. -- RL
|
2002-02-13 16:47:43 +00:00
|
|
|
if test "$TOOLKIT" != "MSW"; then
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl determine the type of third argument for getsockname
|
|
|
|
AC_CACHE_CHECK([what is the type of the third argument of getsockname],
|
|
|
|
wx_cv_type_getsockname3,
|
|
|
|
[
|
|
|
|
AC_LANG_SAVE
|
|
|
|
AC_LANG_CPLUSPLUS
|
2000-02-08 17:16:31 +00:00
|
|
|
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
2000-02-09 00:31:10 +00:00
|
|
|
#include <sys/types.h>
|
2000-02-08 17:16:31 +00:00
|
|
|
#include <sys/socket.h>
|
|
|
|
],
|
|
|
|
[
|
2001-09-28 07:00:13 +00:00
|
|
|
socklen_t len;
|
2000-02-08 17:16:31 +00:00
|
|
|
getsockname(0, 0, &len);
|
|
|
|
],
|
2001-09-28 07:00:13 +00:00
|
|
|
wx_cv_type_getsockname3=socklen_t,
|
2000-02-08 17:16:31 +00:00
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
2000-02-09 00:31:10 +00:00
|
|
|
#include <sys/types.h>
|
2000-02-08 17:16:31 +00:00
|
|
|
#include <sys/socket.h>
|
|
|
|
],
|
|
|
|
[
|
2001-09-28 07:00:13 +00:00
|
|
|
size_t len;
|
2000-02-08 17:16:31 +00:00
|
|
|
getsockname(0, 0, &len);
|
|
|
|
],
|
2001-09-28 07:00:13 +00:00
|
|
|
wx_cv_type_getsockname3=size_t,
|
|
|
|
AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
int len;
|
|
|
|
getsockname(0, 0, &len);
|
|
|
|
],
|
|
|
|
wx_cv_type_getsockname3=int,
|
|
|
|
wx_cv_type_getsockname3=unknown
|
|
|
|
)
|
2000-02-08 17:16:31 +00:00
|
|
|
)
|
|
|
|
)
|
1999-10-27 18:27:48 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
AC_LANG_RESTORE
|
|
|
|
])
|
2000-02-08 17:16:31 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$wx_cv_type_getsockname3" = "unknown"; then
|
|
|
|
wxUSE_SOCKETS=no
|
|
|
|
AC_MSG_WARN([Couldn't find socklen_t synonym for this system])
|
|
|
|
else
|
|
|
|
AC_DEFINE_UNQUOTED(SOCKLEN_T, $wx_cv_type_getsockname3)
|
|
|
|
fi
|
2000-02-08 17:16:31 +00:00
|
|
|
fi
|
|
|
|
fi
|
2001-02-07 08:32:51 +00:00
|
|
|
|
2000-02-08 17:16:31 +00:00
|
|
|
if test "$wxUSE_SOCKETS" = "yes" ; then
|
1999-10-27 19:43:07 +00:00
|
|
|
AC_DEFINE(wxUSE_SOCKETS)
|
2000-01-08 16:07:56 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Joystick support
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2000-03-20 18:41:55 +00:00
|
|
|
if test "$wxUSE_GUI" = "yes"; then
|
|
|
|
|
2001-11-26 21:21:50 +00:00
|
|
|
if test "$TOOLKIT" = "MAC"; then
|
|
|
|
AC_MSG_WARN([Joystick not yet supported under Mac OS X... disabled])
|
|
|
|
wxUSE_JOYSTICK=no
|
|
|
|
fi
|
|
|
|
if test "$TOOLKIT" = "MOTIF"; then
|
|
|
|
AC_MSG_WARN([Joystick not yet supported under Motif... disabled])
|
|
|
|
wxUSE_JOYSTICK=no
|
|
|
|
fi
|
2002-02-07 13:45:42 +00:00
|
|
|
if test "$TOOLKIT" = "X11"; then
|
|
|
|
AC_MSG_WARN([Joystick not yet supported under X11... disabled])
|
|
|
|
wxUSE_JOYSTICK=no
|
|
|
|
fi
|
2001-11-26 21:21:50 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl under MSW we always have joystick support
|
|
|
|
if test "$TOOLKIT" != "MSW"; then
|
|
|
|
if test "$wxUSE_JOYSTICK" = "yes"; then
|
|
|
|
dnl joystick support is only for Linux 2.1.x or greater
|
|
|
|
AC_CHECK_HEADERS(linux/joystick.h)
|
|
|
|
if test "$ac_cv_header_linux_joystick_h" != "yes"; then
|
|
|
|
wxUSE_JOYSTICK=no
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN(Joystick not supported by this system... disabled)
|
2001-09-28 07:00:13 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$wxUSE_JOYSTICK" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_JOYSTICK)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
|
|
|
|
fi
|
2000-03-20 18:41:55 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
dnl DLL support
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
2000-02-07 17:28:48 +00:00
|
|
|
dnl under MSW we always have LoadLibrary/GetProcAddress
|
|
|
|
if test "$TOOLKIT" != "MSW"; then
|
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
HAVE_DL_FUNCS=0
|
|
|
|
HAVE_SHL_FUNCS=0
|
2001-12-19 07:09:58 +00:00
|
|
|
if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$USE_DARWIN" = 1; then
|
|
|
|
dnl dlopen/dlerror is implemented in dynlib.cpp for Darwin/Mac OS X
|
1999-10-06 17:48:34 +00:00
|
|
|
HAVE_DL_FUNCS=1
|
2001-09-28 07:00:13 +00:00
|
|
|
else
|
|
|
|
dnl the test is a bit complicated because we check for dlopen() both with
|
|
|
|
dnl and without -ldl and we also try to find shl_load() if there is no
|
|
|
|
dnl dlopen() on this system
|
|
|
|
AC_CHECK_FUNCS(dlopen,
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_DLOPEN)
|
|
|
|
HAVE_DL_FUNCS=1
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_CHECK_LIB(dl, dlopen,
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_DLOPEN)
|
|
|
|
HAVE_DL_FUNCS=1
|
2001-11-08 11:24:04 +00:00
|
|
|
DL_LINK=" -ldl$DL_LINK"
|
2001-09-28 07:00:13 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_CHECK_FUNCS(shl_load,
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_SHL_LOAD)
|
|
|
|
HAVE_SHL_FUNCS=1
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_CHECK_LIB(shl_load, dld,
|
|
|
|
[
|
|
|
|
HAVE_SHL_FUNCS=1
|
2001-11-08 11:24:04 +00:00
|
|
|
DL_LINK=" -ldld$DL_LINK"
|
2001-09-28 07:00:13 +00:00
|
|
|
])
|
|
|
|
])
|
|
|
|
])
|
|
|
|
])
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl check also for dlerror()
|
|
|
|
if test "$HAVE_DL_FUNCS" = 1; then
|
|
|
|
AC_CHECK_FUNCS(dlerror,
|
|
|
|
AC_DEFINE(HAVE_DLERROR),
|
|
|
|
AC_CHECK_LIB(dl, dlerror, AC_DEFINE(HAVE_DLERROR)))
|
|
|
|
fi
|
|
|
|
fi
|
2000-07-15 19:51:35 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
if test "$HAVE_DL_FUNCS" = 0; then
|
|
|
|
if test "$HAVE_SHL_FUNCS" = 0; then
|
|
|
|
if test "$USE_UNIX" = 1; then
|
|
|
|
AC_MSG_WARN([Missing dynamic loading support, several features will be disabled])
|
2001-12-19 07:09:58 +00:00
|
|
|
wxUSE_DYNAMIC_LOADER=no
|
2001-09-28 07:00:13 +00:00
|
|
|
wxUSE_DYNLIB_CLASS=no
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([Assuming wxLibrary class works on this platform])
|
|
|
|
fi
|
|
|
|
fi
|
1999-10-04 20:15:38 +00:00
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2001-12-19 07:09:58 +00:00
|
|
|
if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_DYNAMIC_LOADER)
|
|
|
|
elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
|
1999-12-22 21:09:32 +00:00
|
|
|
AC_DEFINE(wxUSE_DYNLIB_CLASS)
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
1999-06-08 18:03:36 +00:00
|
|
|
dnl String stuff
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_FONTMAP" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_FONTMAP)
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_UNICODE" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_UNICODE)
|
2002-03-19 23:39:05 +00:00
|
|
|
|
|
|
|
if test "$wxUSE_MSW" != 1; then
|
|
|
|
wxUSE_UNICODE_MSLU=no
|
|
|
|
fi
|
2001-12-27 23:15:52 +00:00
|
|
|
|
|
|
|
if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
|
|
|
|
AC_CHECK_LIB(unicows,main,
|
|
|
|
[
|
|
|
|
AC_DEFINE(wxUSE_UNICODE_MSLU)
|
|
|
|
],
|
|
|
|
[
|
|
|
|
AC_MSG_WARN([Compiler doesn't support MSLU (libunicows.a), disabled.
|
|
|
|
Applications will only run on Windows NT/2000/XP!])
|
|
|
|
wxUSE_UNICODE_MSLU=no
|
|
|
|
])
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-08 18:03:36 +00:00
|
|
|
if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_EXPERIMENTAL_PRINTF)
|
|
|
|
fi
|
|
|
|
|
1999-12-22 21:09:32 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ----------------------------------------------------------------
|
|
|
|
dnl iODBC support
|
|
|
|
dnl ----------------------------------------------------------------
|
|
|
|
|
|
|
|
IODBC_C_SRC=""
|
|
|
|
if test "$wxUSE_ODBC" = "yes" ; then
|
1999-10-13 18:06:19 +00:00
|
|
|
AC_DEFINE(wxUSE_ODBC)
|
|
|
|
WXODBCFLAG="-D_IODBC_"
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ----------------------------------------------------------------
|
|
|
|
dnl Register PostScript options for makefiles and setup.h
|
|
|
|
dnl ----------------------------------------------------------------
|
|
|
|
|
|
|
|
if test "$wxUSE_POSTSCRIPT" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_POSTSCRIPT)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_DEFINE(wxUSE_AFM_FOR_POSTSCRIPT)
|
|
|
|
|
|
|
|
AC_DEFINE(wxUSE_NORMALIZED_PS_FONTS)
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl big GUI components: MDI, doc/view, printing, help, ...
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
if test "$wxUSE_CONSTRAINTS" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_CONSTRAINTS)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
|
2001-10-03 01:19:29 +00:00
|
|
|
if test "$wxUSE_UNIVERSAL" = "yes"; then
|
2002-02-13 16:12:49 +00:00
|
|
|
AC_MSG_WARN(MDI not yet supported for wxUniversal... disabled)
|
2001-10-03 01:19:29 +00:00
|
|
|
wxUSE_MDI_ARCHITECTURE=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_MDI_ARCHITECTURE)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_DOC_VIEW_ARCHITECTURE)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
|
|
|
|
if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_HELP" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_HELP)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
|
2001-07-03 19:38:19 +00:00
|
|
|
|
2001-11-03 11:08:15 +00:00
|
|
|
if test "$wxUSE_MSW" = 1; then
|
2001-07-18 22:58:33 +00:00
|
|
|
if test "$wxUSE_MS_HTML_HELP" = "yes"; then
|
2002-03-10 00:01:33 +00:00
|
|
|
AC_DEFINE(wxUSE_MS_HTML_HELP)
|
2001-07-11 22:30:12 +00:00
|
|
|
fi
|
2001-07-03 19:38:19 +00:00
|
|
|
fi
|
2001-07-18 22:58:33 +00:00
|
|
|
|
|
|
|
if test "$wxUSE_WXHTML_HELP" = "yes"; then
|
|
|
|
if test "$wxUSE_HTML" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_WXHTML_HELP)
|
|
|
|
else
|
|
|
|
AC_MSG_WARN(Cannot use wxHTML-based help without wxHTML so it won't be compiled)
|
|
|
|
wxUSE_WXHTML_HELP=no
|
|
|
|
fi
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
|
1999-06-15 20:21:59 +00:00
|
|
|
if test "$wxUSE_CONSTRAINTS" != "yes"; then
|
|
|
|
AC_MSG_WARN(Printing support cannot be used without constraints so it won't be compiled without it)
|
|
|
|
else
|
|
|
|
AC_DEFINE(wxUSE_PRINTING_ARCHITECTURE)
|
|
|
|
fi
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_PROLOGIO" = "yes" ; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_PROLOGIO)
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_RESOURCES" = "yes" ; then
|
2002-02-15 11:14:42 +00:00
|
|
|
if test "$wxUSE_NANOX" = "yes"; then
|
|
|
|
AC_MSG_WARN([Cannot use resource database functions in NanoX])
|
|
|
|
else
|
|
|
|
AC_DEFINE(wxUSE_RESOURCES)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_X_RESOURCES" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_X_RESOURCES)
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
1999-06-16 08:14:52 +00:00
|
|
|
dnl IPC: IPC, Drag'n'Drop, Clipboard, ...
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2001-08-25 20:13:45 +00:00
|
|
|
dnl check for ole headers and disable a few features requiring it if not
|
|
|
|
dnl present (earlier versions of mingw32 don't have ole2.h)
|
2001-11-03 11:08:15 +00:00
|
|
|
if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
|
|
|
|
-o "$wxUSE_CLIPBOARD" = "yes" \
|
|
|
|
-o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
|
2001-08-25 20:13:45 +00:00
|
|
|
AC_CHECK_HEADERS(ole2.h)
|
|
|
|
|
|
|
|
if test "$ac_cv_header_ole2_h" = "yes" ; then
|
|
|
|
if test "$GCC" = yes ; then
|
|
|
|
ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
|
|
|
|
CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
|
2001-11-08 11:24:04 +00:00
|
|
|
LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
|
2001-08-25 20:13:45 +00:00
|
|
|
AC_DEFINE(wxUSE_OLE)
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl for OLE clipboard and dnd
|
|
|
|
AC_DEFINE(wxUSE_DATAOBJ)
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([Some features disabled because OLE headers not found])
|
|
|
|
|
|
|
|
wxUSE_CLIPBOARD=no
|
|
|
|
wxUSE_DRAG_AND_DROP=no
|
|
|
|
wxUSE_DATAOBJ=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_METAFILE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_METAFILE)
|
|
|
|
|
|
|
|
dnl this one should probably be made separately configurable
|
|
|
|
AC_DEFINE(wxUSE_ENH_METAFILE)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_IPC" = "yes"; then
|
2000-03-18 22:25:22 +00:00
|
|
|
if test "$wxUSE_SOCKETS" != "yes"; then
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN(wxWindows IPC classes require sockets... disabled)
|
2000-03-18 22:25:22 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_IPC)
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_CLIPBOARD" = "yes"; then
|
2002-02-23 21:26:16 +00:00
|
|
|
AC_DEFINE(wxUSE_CLIPBOARD)
|
2002-02-10 13:54:59 +00:00
|
|
|
|
2002-02-23 21:26:16 +00:00
|
|
|
dnl required by clipboard code in configuration check
|
|
|
|
AC_DEFINE(wxUSE_DATAOBJ)
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-10 10:21:05 +00:00
|
|
|
if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
|
1999-06-15 20:21:59 +00:00
|
|
|
if test "$wxUSE_GTK" = 1; then
|
|
|
|
if test "$WXGTK12" != 1; then
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN([Drag and drop is only supported under GTK+ 1.2... disabled])
|
1999-10-04 20:15:38 +00:00
|
|
|
wxUSE_DRAG_AND_DROP=no
|
1999-06-15 20:21:59 +00:00
|
|
|
fi
|
1999-06-13 22:27:35 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-15 20:21:59 +00:00
|
|
|
if test "$wxUSE_MOTIF" = 1; then
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN([Drag and drop not yet supported under Motif... disabled])
|
1999-10-04 20:15:38 +00:00
|
|
|
wxUSE_DRAG_AND_DROP=no
|
1999-06-15 20:21:59 +00:00
|
|
|
fi
|
1999-06-13 22:27:35 +00:00
|
|
|
|
2002-02-07 13:45:42 +00:00
|
|
|
if test "$wxUSE_X11" = 1; then
|
|
|
|
AC_MSG_WARN([Drag and drop not yet supported under X11... disabled])
|
|
|
|
wxUSE_DRAG_AND_DROP=no
|
|
|
|
fi
|
|
|
|
|
1999-06-15 20:21:59 +00:00
|
|
|
if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_DRAG_AND_DROP)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
|
|
|
|
fi
|
1999-10-13 18:51:01 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_SPLINES" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_SPLINES)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl GUI controls
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=0
|
|
|
|
if test "$wxUSE_CONTROLS" = "yes"; then
|
|
|
|
USES_CONTROLS=1
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_ACCEL" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_ACCEL)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_BUTTON" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_BUTTON)
|
|
|
|
USES_CONTROLS=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_BMPBUTTON" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_BMPBUTTON)
|
|
|
|
USES_CONTROLS=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_CALCTRL" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_CALENDARCTRL)
|
|
|
|
USES_CONTROLS=1
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_CARET" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_CARET)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_COMBOBOX" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_COMBOBOX)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-15 20:21:59 +00:00
|
|
|
if test "$wxUSE_CHOICE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_CHOICE)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_CHECKBOX" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_CHECKBOX)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_CHECKLST" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_CHECKLISTBOX)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_GAUGE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_GAUGE)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
1999-10-06 05:13:20 +00:00
|
|
|
if test "$wxUSE_NEW_GRID" = "yes"; then
|
2000-02-21 13:19:03 +00:00
|
|
|
wxUSE_GRID="yes"
|
1999-10-06 05:13:20 +00:00
|
|
|
AC_DEFINE(wxUSE_NEW_GRID)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-10-06 05:13:20 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
|
|
|
|
fi
|
|
|
|
|
2000-02-21 13:19:03 +00:00
|
|
|
if test "$wxUSE_GRID" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_GRID)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
2000-02-21 13:19:03 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_IMAGLIST" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_IMAGLIST)
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_LISTBOX" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_LISTBOX)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_LISTCTRL" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
if test "$wxUSE_IMAGLIST" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_LISTCTRL)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-15 20:21:59 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([wxListCtrl requires wxImageList and won't be compiled without it])
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_NOTEBOOK" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_NOTEBOOK)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-15 20:21:59 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
2001-07-22 19:36:05 +00:00
|
|
|
if test "$wxUSE_PROPSHEET" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_PROPSHEET)
|
|
|
|
USES_CONTROLS=1
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_RADIOBOX" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_RADIOBOX)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_RADIOBTN" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_RADIOBTN)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-03 15:59:39 +00:00
|
|
|
if test "$wxUSE_SASH" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_SASH)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_SCROLLBAR" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_SCROLLBAR)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-11-04 16:52:23 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_SLIDER" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_SLIDER)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_SPINBTN" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_SPINBTN)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
1999-11-27 16:40:47 +00:00
|
|
|
if test "$wxUSE_SPINCTRL" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_SPINCTRL)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-11-27 16:40:47 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_SPLITTER" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_SPLITTER)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_STATBMP" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_STATBMP)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_STATBOX" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_STATBOX)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_STATTEXT" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_STATTEXT)
|
|
|
|
USES_CONTROLS=1
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_STATLINE" = "yes"; then
|
1999-06-16 16:34:31 +00:00
|
|
|
if test "$wxUSE_WINE" = 1 ; then
|
|
|
|
AC_MSG_WARN([wxStaticLine is not supported under WINE])
|
|
|
|
else
|
1999-10-04 20:15:38 +00:00
|
|
|
AC_DEFINE(wxUSE_STATLINE)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-16 16:34:31 +00:00
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_STATUSBAR" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_STATUSBAR)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
2000-02-04 20:27:10 +00:00
|
|
|
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_TABDIALOG" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_TAB_DIALOG)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_TEXTCTRL" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_TEXTCTRL)
|
|
|
|
USES_CONTROLS=1
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
|
|
|
|
fi
|
|
|
|
|
2001-02-08 18:57:23 +00:00
|
|
|
if test "$wxUSE_TOGGLEBTN" = "yes"; then
|
2001-11-26 21:21:50 +00:00
|
|
|
if test "$wxUSE_MAC" = 1; then
|
|
|
|
AC_MSG_WARN([Toggle button not yet supported under Mac OS X... disabled])
|
|
|
|
wxUSE_TOGGLEBTN=no
|
|
|
|
fi
|
|
|
|
if test "$wxUSE_UNIVERSAL" = "yes"; then
|
2002-02-13 16:12:49 +00:00
|
|
|
AC_MSG_WARN([Toggle button not yet supported under wxUniversal... disabled])
|
2001-06-16 21:13:35 +00:00
|
|
|
wxUSE_TOGGLEBTN=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_TOGGLEBTN" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_TOGGLEBTN)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
2001-06-16 21:13:35 +00:00
|
|
|
fi
|
2001-02-08 18:57:23 +00:00
|
|
|
fi
|
|
|
|
|
1999-12-15 19:35:03 +00:00
|
|
|
if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_TOOLBAR_SIMPLE)
|
|
|
|
wxUSE_TOOLBAR="yes"
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-12-15 19:35:03 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_TOOLBAR" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_TOOLBAR)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-12-15 19:35:03 +00:00
|
|
|
|
|
|
|
dnl if wxUSE_TOOLBAR and !wxUSE_TOOLBAR_SIMPLE => wxUSE_TOOLBAR_NATIVE
|
|
|
|
if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
|
|
|
|
wxUSE_TOOLBAR_NATIVE="yes"
|
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_TOOLBAR_NATIVE)
|
|
|
|
USES_CONTROLS=1
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
|
1999-12-15 19:35:03 +00:00
|
|
|
fi
|
|
|
|
|
1999-06-10 10:21:05 +00:00
|
|
|
if test "$wxUSE_TOOLTIPS" = "yes"; then
|
1999-06-08 18:03:36 +00:00
|
|
|
if test "$wxUSE_MOTIF" = 1; then
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN([wxTooltip not supported yet under Motif... disabled])
|
1999-06-01 16:14:29 +00:00
|
|
|
else
|
1999-06-15 20:21:59 +00:00
|
|
|
if test "$wxUSE_WINE" = 1; then
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN([wxTooltip not supported under WINE... disabled])
|
1999-06-15 20:21:59 +00:00
|
|
|
else
|
2001-11-24 23:39:47 +00:00
|
|
|
if test "$wxUSE_UNIVERSAL" = "yes"; then
|
2002-02-13 16:12:49 +00:00
|
|
|
AC_MSG_WARN([wxTooltip not supported yet in wxUniversal... disabled])
|
2001-11-24 23:39:47 +00:00
|
|
|
else
|
2002-02-13 16:12:49 +00:00
|
|
|
AC_DEFINE(wxUSE_TOOLTIPS)
|
2001-11-24 23:39:47 +00:00
|
|
|
fi
|
1999-06-15 20:21:59 +00:00
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_TREECTRL" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
if test "$wxUSE_IMAGLIST" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_TREECTRL)
|
2001-06-26 20:59:19 +00:00
|
|
|
USES_CONTROLS=1
|
1999-06-15 20:21:59 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([wxTreeCtrl requires wxImageList and won't be compiled without it])
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
2001-07-07 21:42:30 +00:00
|
|
|
if test "$wxUSE_POPUPWIN" = "yes"; then
|
2001-07-08 18:58:53 +00:00
|
|
|
if test "$wxUSE_MAC" = 1; then
|
2001-11-26 21:21:50 +00:00
|
|
|
AC_MSG_WARN([Popup window not yet supported under Mac OS X... disabled])
|
2001-07-08 18:58:53 +00:00
|
|
|
else
|
2001-12-01 12:57:55 +00:00
|
|
|
if test "$wxUSE_MOTIF" = 1; then
|
|
|
|
AC_MSG_WARN([wxPopupWindow not yet supported under Motif... disabled])
|
|
|
|
else
|
2002-02-12 22:50:05 +00:00
|
|
|
if test "$wxUSE_PM" = 1; then
|
|
|
|
AC_MSG_WARN([wxPopupWindow not yet supported under PM... disabled])
|
|
|
|
else
|
|
|
|
AC_DEFINE(wxUSE_POPUPWIN)
|
2001-12-01 03:21:06 +00:00
|
|
|
|
2002-02-12 22:50:05 +00:00
|
|
|
USES_CONTROLS=1
|
|
|
|
fi
|
2001-12-01 12:57:55 +00:00
|
|
|
fi
|
2001-07-08 18:58:53 +00:00
|
|
|
fi
|
2001-07-07 21:42:30 +00:00
|
|
|
fi
|
|
|
|
|
2001-12-04 17:37:23 +00:00
|
|
|
if test "$wxUSE_TIPWINDOW" = "yes"; then
|
2002-02-12 22:50:05 +00:00
|
|
|
if test "$wxUSE_PM" = 1; then
|
|
|
|
AC_MSG_WARN([wxTipWindow not yet supported under PM... disabled])
|
|
|
|
else
|
|
|
|
AC_DEFINE(wxUSE_TIPWINDOW)
|
|
|
|
fi
|
2001-12-04 17:37:23 +00:00
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$USES_CONTROLS" = 1; then
|
|
|
|
AC_DEFINE(wxUSE_CONTROLS)
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl misc options
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2001-07-22 19:36:05 +00:00
|
|
|
if test "$wxUSE_TREELAYOUT" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_TREELAYOUT)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-07-02 10:39:00 +00:00
|
|
|
if test "$wxUSE_DRAGIMAGE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_DRAGIMAGE)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
|
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_MENUS" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_MENUS)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
|
1999-06-15 20:21:59 +00:00
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_METAFILE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_METAFILE)
|
1999-06-17 11:12:57 +00:00
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_MIMETYPE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_MIMETYPE)
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
2001-07-11 10:07:06 +00:00
|
|
|
if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_SYSTEM_OPTIONS)
|
|
|
|
fi
|
|
|
|
|
2001-12-31 11:54:23 +00:00
|
|
|
if test "$wxUSE_PROTOCOL" = "yes"; then
|
2001-12-31 23:51:37 +00:00
|
|
|
if test "$wxUSE_SOCKETS" != "yes"; then
|
|
|
|
AC_MSG_WARN(Protocol classes require sockets... disabled)
|
|
|
|
wxUSE_PROTOCOL=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_PROTOCOL" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_PROTOCOL)
|
2001-12-31 11:54:23 +00:00
|
|
|
|
2001-12-31 23:51:37 +00:00
|
|
|
if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_PROTOCOL_HTTP)
|
|
|
|
fi
|
|
|
|
if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_PROTOCOL_FTP)
|
|
|
|
fi
|
|
|
|
if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_PROTOCOL_FILE)
|
|
|
|
fi
|
2001-12-31 11:54:23 +00:00
|
|
|
fi
|
2001-12-31 23:51:37 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_URL" = "yes"; then
|
|
|
|
if test "$wxUSE_PROTOCOL" != "yes"; then
|
|
|
|
AC_MSG_WARN(wxURL class requires wxProtocol... disabled)
|
|
|
|
wxUSE_URL=no
|
2001-12-31 11:54:23 +00:00
|
|
|
fi
|
2001-12-31 23:51:37 +00:00
|
|
|
if test "$wxUSE_URL" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_URL)
|
2001-12-31 11:54:23 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_MINIFRAME" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_MINIFRAME)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
1999-07-07 22:04:58 +00:00
|
|
|
if test "$wxUSE_HTML" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_HTML)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
if test "$wxUSE_VALIDATORS" = "yes"; then
|
1999-06-15 20:21:59 +00:00
|
|
|
AC_DEFINE(wxUSE_VALIDATORS)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
|
|
|
|
2001-09-30 22:06:39 +00:00
|
|
|
if test "$wxUSE_PALETTE" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_PALETTE)
|
|
|
|
fi
|
|
|
|
|
2001-04-22 22:23:05 +00:00
|
|
|
if test "$wxUSE_IMAGE" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_IMAGE)
|
|
|
|
fi
|
|
|
|
|
1999-09-13 17:15:43 +00:00
|
|
|
if test "$wxUSE_GIF" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_GIF)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_PCX" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_PCX)
|
|
|
|
fi
|
|
|
|
|
2002-01-15 17:57:08 +00:00
|
|
|
if test "$wxUSE_IFF" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_IFF)
|
|
|
|
fi
|
|
|
|
|
1999-09-13 17:15:43 +00:00
|
|
|
if test "$wxUSE_PNM" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_PNM)
|
|
|
|
fi
|
|
|
|
|
2001-04-22 22:23:05 +00:00
|
|
|
if test "$wxUSE_XPM" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_XPM)
|
|
|
|
fi
|
|
|
|
|
2002-01-13 12:01:42 +00:00
|
|
|
if test "$wxUSE_ICO_CUR" = "yes" ; then
|
|
|
|
AC_DEFINE(wxUSE_ICO_CUR)
|
|
|
|
fi
|
|
|
|
|
2001-12-27 23:15:52 +00:00
|
|
|
if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
|
|
|
|
dnl Must be done this late because -lunicows must be before all the other libs
|
|
|
|
LIBS=" -lunicows $LIBS"
|
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl common dialog
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
if test "$wxUSE_CHOICEDLG" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_CHOICEDLG)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_COLOURDLG" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_COLOURDLG)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_FILEDLG" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_FILEDLG)
|
|
|
|
fi
|
|
|
|
|
2001-08-01 14:55:03 +00:00
|
|
|
if test "$wxUSE_FINDREPLDLG" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_FINDREPLDLG)
|
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_FONTDLG" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_FONTDLG)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_DIRDLG" = "yes"; then
|
2002-03-14 15:36:07 +00:00
|
|
|
if test "$wxUSE_TREECTRL" != "yes"; then
|
|
|
|
AC_MSG_WARN(wxDirDialog requires wxTreeCtrl so it won't be compiled without it)
|
2001-06-26 20:59:19 +00:00
|
|
|
else
|
2002-03-14 15:36:07 +00:00
|
|
|
AC_DEFINE(wxUSE_DIRDLG)
|
2001-06-26 20:59:19 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_MSGDLG" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_MSGDLG)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_NUMBERDLG" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_NUMBERDLG)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_PROGRESSDLG" = "yes"; then
|
|
|
|
if test "$wxUSE_CONSTRAINTS" != "yes"; then
|
|
|
|
AC_MSG_WARN(wxProgressDialog requires constraints so it won't be compiled without them)
|
|
|
|
else
|
|
|
|
AC_DEFINE(wxUSE_PROGRESSDLG)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2001-08-06 12:19:35 +00:00
|
|
|
if test "$wxUSE_SPLASH" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_SPLASH)
|
|
|
|
fi
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
if test "$wxUSE_STARTUP_TIPS" = "yes"; then
|
|
|
|
if test "$wxUSE_CONSTRAINTS" != "yes"; then
|
|
|
|
AC_MSG_WARN(Startup tips requires constraints and won't be compiled without them)
|
|
|
|
else
|
|
|
|
AC_DEFINE(wxUSE_STARTUP_TIPS)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$wxUSE_TEXTDLG" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_TEXTDLG)
|
|
|
|
fi
|
|
|
|
|
2001-07-02 12:57:56 +00:00
|
|
|
if test "$wxUSE_WIZARDDLG" = "yes"; then
|
|
|
|
AC_DEFINE(wxUSE_WIZARDDLG)
|
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
|
|
|
|
fi
|
|
|
|
|
1999-12-04 22:34:54 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl get the string with OS info - used by wxGetOsDescription()
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2000-03-09 20:18:59 +00:00
|
|
|
if test "$cross_compiling" = "yes"; then
|
|
|
|
dnl Use best guess from host as we can't use uname when cross compiling
|
|
|
|
OSINFO="\"$host\""
|
|
|
|
else
|
|
|
|
dnl attualy work out OS version
|
|
|
|
OSINFO=`uname -s -r -m`
|
|
|
|
OSINFO="\"$OSINFO\""
|
|
|
|
fi
|
|
|
|
|
1999-12-04 22:34:54 +00:00
|
|
|
AC_DEFINE_UNQUOTED(WXWIN_OS_DESCRIPTION, $OSINFO)
|
|
|
|
|
2001-08-08 23:46:39 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl define the variable containing the installation prefix (used in dcpsg.cpp)
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
2001-08-08 23:59:41 +00:00
|
|
|
if test "x$prefix" != "xNONE"; then
|
|
|
|
wxPREFIX=$prefix
|
|
|
|
else
|
|
|
|
wxPREFIX=$ac_default_prefix
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(wxINSTALL_PREFIX, "$wxPREFIX")
|
2001-08-08 23:46:39 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Output the makefiles and such from the results found above
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
dnl all additional libraries (except wxWindows itself) we link with
|
2001-11-08 11:24:04 +00:00
|
|
|
|
2001-02-04 19:53:25 +00:00
|
|
|
dnl note that we always link with -lm except for Mac OS X
|
|
|
|
dnl extended.c uses floor() and is always linked in
|
2001-09-28 07:00:13 +00:00
|
|
|
|
2001-07-15 18:47:13 +00:00
|
|
|
if test "$wxUSE_MAC" = 1 ; then
|
2001-11-08 11:24:04 +00:00
|
|
|
LDFLAGS="$LDFLAGS -framework Carbon -framework System"
|
2001-02-04 19:53:25 +00:00
|
|
|
fi
|
2001-09-28 07:00:13 +00:00
|
|
|
|
2001-11-08 11:24:04 +00:00
|
|
|
dnl FIXME: should this be covered by the conditional above
|
|
|
|
dnl given the -lm comment there? Or should that comment (and
|
|
|
|
dnl this one) be removed.. [ 7 Nov 2001 ]
|
|
|
|
|
2002-02-09 19:38:13 +00:00
|
|
|
LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS"
|
2001-11-08 11:24:04 +00:00
|
|
|
|
1999-10-04 20:15:38 +00:00
|
|
|
if test "$wxUSE_GUI" = "yes"; then
|
2001-11-08 11:24:04 +00:00
|
|
|
|
2002-02-09 19:38:13 +00:00
|
|
|
LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
|
2001-09-28 07:00:13 +00:00
|
|
|
|
|
|
|
dnl TODO add checks that these samples will really compile (i.e. all the
|
|
|
|
dnl library features they need are present)
|
|
|
|
|
|
|
|
dnl TODO some samples are never built so far:
|
|
|
|
dnl ipc, mfc, nativdlg, oleauto, ownerdrw
|
2002-03-25 23:37:08 +00:00
|
|
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
|
2001-09-28 07:00:13 +00:00
|
|
|
drawing dynamic erase event exec font image \
|
|
|
|
minimal richedit rotate widgets"
|
|
|
|
|
|
|
|
dnl this is needed to be able to find AFM files
|
|
|
|
CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
|
|
|
|
else
|
|
|
|
SAMPLES_SUBDIRS="console"
|
1999-10-04 20:15:38 +00:00
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
|
1999-08-10 20:08:24 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl all -I options we must pass to the compiler
|
2001-10-19 17:30:04 +00:00
|
|
|
INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
|
2002-02-09 19:38:13 +00:00
|
|
|
$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
dnl wxGTK does not need TOOLKIT includes in wx-config
|
2001-11-08 12:25:49 +00:00
|
|
|
if test "$wxUSE_GTK" = 1; then
|
2001-11-08 11:24:04 +00:00
|
|
|
WXCONFIG_INCLUDE=
|
2000-07-15 19:51:35 +00:00
|
|
|
else
|
|
|
|
WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
|
|
|
|
fi
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl C/C++ compiler options used to compile wxWindows
|
1999-06-21 20:04:13 +00:00
|
|
|
if test "$GXX" = yes ; then
|
1999-06-15 20:21:59 +00:00
|
|
|
dnl CXXWARNINGS="-Wall -W -Wcast-qual -Werror"
|
|
|
|
CXXWARNINGS="-Wall"
|
2000-02-21 13:19:03 +00:00
|
|
|
dnl should enable this one day...
|
1999-06-15 20:21:59 +00:00
|
|
|
dnl CXXWARNINGS="-Wall -Werror"
|
2001-11-18 02:11:19 +00:00
|
|
|
|
|
|
|
dnl Add this *after* all compile tests, we don't need or want generated
|
|
|
|
dnl depfiles until actually building the lib
|
|
|
|
if test "$wxUSE_NO_DEPS" = "no" ; then
|
|
|
|
CFLAGS="-MMD $CFLAGS"
|
|
|
|
CXXFLAGS="-MMD $CXXFLAGS"
|
|
|
|
fi
|
1999-06-01 16:14:29 +00:00
|
|
|
fi
|
2001-11-18 02:11:19 +00:00
|
|
|
|
2001-12-21 19:22:48 +00:00
|
|
|
EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
|
1999-10-25 06:33:22 +00:00
|
|
|
CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-11-08 11:24:04 +00:00
|
|
|
LDFLAGS="$LDFLAGS$PROFILE"
|
1999-12-08 15:20:22 +00:00
|
|
|
|
1999-06-02 14:52:49 +00:00
|
|
|
dnl for convenience, sort the samples in alphabetical order
|
|
|
|
dnl
|
|
|
|
dnl FIXME For some mysterious reasons, sometimes the directories are duplicated
|
|
|
|
dnl in this list - hence uniq. But normally, this shouldn't be needed!
|
2000-02-21 13:19:03 +00:00
|
|
|
dnl
|
|
|
|
dnl Unfortunately, there is a bug in OS/2's tr, such that
|
2000-01-10 17:07:28 +00:00
|
|
|
dnl tr ' ' '\n' introduces DOS-like line breaks, whereas tr '\n' ' '
|
|
|
|
dnl only removes the Unix-like part of the introduced line break.
|
|
|
|
SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
|
|
|
|
|
|
|
|
dnl makefile variables
|
|
|
|
AC_SUBST(LEX_STEM)
|
|
|
|
AC_SUBST(PATH_IFS)
|
1999-06-02 14:52:49 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl global options
|
|
|
|
AC_SUBST(WX_MAJOR_VERSION_NUMBER)
|
|
|
|
AC_SUBST(WX_MINOR_VERSION_NUMBER)
|
|
|
|
AC_SUBST(WX_RELEASE_NUMBER)
|
1999-08-11 17:40:09 +00:00
|
|
|
AC_SUBST(WX_LIBRARY_NAME_STATIC)
|
|
|
|
AC_SUBST(WX_LIBRARY_NAME_SHARED)
|
2001-11-03 11:08:15 +00:00
|
|
|
AC_SUBST(WX_LIBRARY_IMPORTLIB)
|
1999-08-11 17:40:09 +00:00
|
|
|
AC_SUBST(WX_TARGET_LIBRARY)
|
|
|
|
AC_SUBST(WX_LIBRARY_LINK1)
|
|
|
|
AC_SUBST(WX_LIBRARY_LINK2)
|
1999-08-22 22:43:58 +00:00
|
|
|
AC_SUBST(PROGRAM_EXT)
|
1999-08-11 17:40:09 +00:00
|
|
|
|
2000-03-01 20:27:16 +00:00
|
|
|
dnl global gl options
|
|
|
|
AC_SUBST(WX_LIBRARY_NAME_STATIC_GL)
|
|
|
|
AC_SUBST(WX_LIBRARY_NAME_SHARED_GL)
|
|
|
|
AC_SUBST(WX_TARGET_LIBRARY_GL)
|
|
|
|
AC_SUBST(WX_LIBRARY_LINK1_GL)
|
|
|
|
AC_SUBST(WX_LIBRARY_LINK2_GL)
|
|
|
|
|
1999-08-11 17:40:09 +00:00
|
|
|
dnl are we supposed to create the links?
|
1999-10-09 11:20:06 +00:00
|
|
|
AC_SUBST(WX_ALL)
|
|
|
|
AC_SUBST(WX_ALL_INSTALLED)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
1999-08-11 17:40:09 +00:00
|
|
|
AC_SUBST(SHARED_LD)
|
|
|
|
AC_SUBST(PIC_FLAG)
|
2000-01-05 17:11:09 +00:00
|
|
|
AC_SUBST(CODE_GEN_FLAGS)
|
2001-03-08 14:52:35 +00:00
|
|
|
AC_SUBST(CODE_GEN_FLAGS_CXX)
|
2001-09-28 07:00:13 +00:00
|
|
|
|
|
|
|
AC_SUBST(SONAME_FLAGS)
|
|
|
|
AC_SUBST(SONAME_FLAGS_GL)
|
2000-07-15 19:51:35 +00:00
|
|
|
AC_SUBST(WX_TARGET_LIBRARY_SONAME)
|
2000-03-19 04:09:08 +00:00
|
|
|
AC_SUBST(WX_TARGET_LIBRARY_TYPE)
|
1999-08-11 17:40:09 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl debugging options
|
|
|
|
AC_SUBST(WXDEBUG_DEFINE)
|
|
|
|
|
|
|
|
dnl toolkit options
|
2000-01-10 17:12:43 +00:00
|
|
|
AC_SUBST(USE_GUI)
|
|
|
|
AC_SUBST(AFMINSTALL)
|
1999-06-01 16:14:29 +00:00
|
|
|
AC_SUBST(TOOLKIT)
|
|
|
|
AC_SUBST(TOOLKIT_DIR)
|
2001-06-26 20:59:19 +00:00
|
|
|
AC_SUBST(TOOLKIT_VPATH)
|
2001-09-28 07:00:13 +00:00
|
|
|
AC_SUBST(TOOLCHAIN_NAME)
|
|
|
|
AC_SUBST(TOOLCHAIN_DEFS)
|
2001-11-09 05:24:36 +00:00
|
|
|
AC_SUBST(TOOLCHAIN_DLL_DEFS)
|
2001-09-28 07:00:13 +00:00
|
|
|
|
|
|
|
dnl wx-config options
|
2001-11-03 11:08:15 +00:00
|
|
|
AC_SUBST(host_alias)
|
2001-09-28 07:00:13 +00:00
|
|
|
AC_SUBST(cross_compiling)
|
|
|
|
AC_SUBST(WXCONFIG_LIBS)
|
|
|
|
AC_SUBST(WXCONFIG_LIBS_GL)
|
2001-11-22 00:32:53 +00:00
|
|
|
AC_SUBST(WXCONFIG_LIBS_STATIC)
|
|
|
|
AC_SUBST(WXCONFIG_LIBS_STATIC_GL)
|
2000-07-15 19:51:35 +00:00
|
|
|
AC_SUBST(WXCONFIG_INCLUDE)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2002-01-25 16:04:42 +00:00
|
|
|
dnl the list of files to compile/install
|
1999-10-04 20:15:38 +00:00
|
|
|
AC_SUBST(ALL_OBJECTS)
|
2002-01-25 16:04:42 +00:00
|
|
|
AC_SUBST(ALL_HEADERS)
|
|
|
|
AC_SUBST(ALL_SOURCES)
|
2000-01-31 18:26:16 +00:00
|
|
|
|
|
|
|
dnl distribution vars
|
1999-08-13 10:33:08 +00:00
|
|
|
AC_SUBST(GUIDIST)
|
2000-01-31 18:26:16 +00:00
|
|
|
AC_SUBST(PORT_FILES)
|
|
|
|
AC_SUBST(DISTDIR)
|
1999-08-10 11:23:46 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl additional subdirectories where we will build
|
|
|
|
AC_SUBST(SAMPLES_SUBDIRS)
|
|
|
|
|
1999-12-08 15:20:22 +00:00
|
|
|
dnl additional libraries and linker settings
|
|
|
|
AC_SUBST(LDFLAGS)
|
2001-11-21 13:20:26 +00:00
|
|
|
AC_SUBST(LDFLAGS_GL)
|
2000-07-15 19:51:35 +00:00
|
|
|
AC_SUBST(OPENGL_LIBS)
|
2001-11-08 11:24:04 +00:00
|
|
|
AC_SUBST(DMALLOC_LIBS)
|
1999-12-22 21:09:32 +00:00
|
|
|
AC_SUBST(EXTRADEFS)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2000-03-09 20:18:59 +00:00
|
|
|
dnl additional resurces settings
|
|
|
|
AC_SUBST(RESCOMP)
|
|
|
|
AC_SUBST(RESFLAGS)
|
2001-09-28 07:00:13 +00:00
|
|
|
AC_SUBST(RESPROGRAMOBJ)
|
2001-10-02 15:48:50 +00:00
|
|
|
AC_SUBST(WX_RESOURCES_MACOSX)
|
2001-10-15 15:40:44 +00:00
|
|
|
AC_SUBST(WX_RESOURCES_MACOSX_COMPILED)
|
2001-09-28 07:00:13 +00:00
|
|
|
|
2001-05-01 19:40:09 +00:00
|
|
|
dnl additional for Mac OS X
|
|
|
|
AC_SUBST(DEREZ)
|
2002-02-24 18:02:51 +00:00
|
|
|
AC_SUBST(MACOSX_BUNDLE)
|
2001-05-01 19:40:09 +00:00
|
|
|
AC_SUBST(LIBWXMACRES)
|
|
|
|
AC_SUBST(LIBWXMACRESCOMP)
|
2001-10-15 10:06:24 +00:00
|
|
|
AC_SUBST(LIBWXMACRESWXCONFIG)
|
2000-03-09 20:18:59 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl These seem to be missing
|
2000-03-09 20:18:59 +00:00
|
|
|
AC_SUBST(DLLTOOL)
|
|
|
|
AC_SUBST(AS)
|
|
|
|
AC_SUBST(NM)
|
|
|
|
AC_SUBST(LD)
|
|
|
|
AC_SUBST(MAKEINFO)
|
2001-11-22 00:32:53 +00:00
|
|
|
AC_SUBST(INSTALL_LIBRARY)
|
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl MAKE_SET will be replaced with "MAKE=..." or nothing if make sets MAKE
|
2001-11-26 21:21:50 +00:00
|
|
|
dnl itself (this macro is required if SUBDIRS variable is used in Makefile.am
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl - and we do use it)
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
|
2000-02-20 10:23:06 +00:00
|
|
|
dnl move setup.h back if available
|
2001-09-28 07:00:13 +00:00
|
|
|
if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
|
|
|
|
mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
|
2000-02-20 10:23:06 +00:00
|
|
|
fi
|
2001-06-06 16:50:48 +00:00
|
|
|
|
1999-08-12 12:54:33 +00:00
|
|
|
AC_CONFIG_HEADER(setup.h:setup.h.in)
|
|
|
|
|
2000-01-31 18:26:16 +00:00
|
|
|
dnl some more GUI only things
|
|
|
|
if test "$wxUSE_GUI" = "yes"; then
|
2000-03-05 19:03:21 +00:00
|
|
|
dnl we need to pass SAMPLES_SUBDIRS (and some other) to the configure in
|
2000-02-07 17:33:23 +00:00
|
|
|
dnl samples and the only way to do it is, again, use the cache
|
|
|
|
wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
|
2002-01-25 11:59:25 +00:00
|
|
|
wx_cv_if_gnu_make=$IF_GNU_MAKE
|
2000-03-05 19:03:21 +00:00
|
|
|
wx_cv_path_ifs=$PATH_IFS
|
|
|
|
wx_cv_program_ext=$PROGRAM_EXT
|
|
|
|
wx_cv_target_library=$WX_TARGET_LIBRARY
|
2001-07-21 06:45:33 +00:00
|
|
|
wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
|
2000-03-19 04:09:08 +00:00
|
|
|
wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
|
2001-06-12 22:55:23 +00:00
|
|
|
dnl we need to export them because passing them through cache won't
|
|
|
|
dnl work when cache=/dev/null (which is default for autoconf 2.50)
|
2002-01-25 11:59:25 +00:00
|
|
|
export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
|
|
|
|
wx_cv_path_ifs wx_cv_program_ext \
|
2001-07-21 06:45:33 +00:00
|
|
|
wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
|
2000-03-05 19:03:21 +00:00
|
|
|
AC_CONFIG_SUBDIRS(demos samples utils contrib)
|
1999-08-28 15:31:13 +00:00
|
|
|
fi
|
1999-08-12 12:54:33 +00:00
|
|
|
|
1999-06-01 16:14:29 +00:00
|
|
|
dnl create each of the files in the space separated list from the file.in
|
|
|
|
dnl (the original file name may be overriden by appending another name after a
|
|
|
|
dnl colon)
|
|
|
|
AC_OUTPUT([
|
1999-06-02 09:19:22 +00:00
|
|
|
wx-config
|
1999-10-04 20:15:38 +00:00
|
|
|
src/make.env
|
|
|
|
src/makeprog.env
|
|
|
|
src/makelib.env
|
1999-06-04 22:25:40 +00:00
|
|
|
Makefile
|
1999-06-01 16:14:29 +00:00
|
|
|
],
|
1999-06-02 10:01:24 +00:00
|
|
|
[
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl This test is required to make the following idempotent.
|
|
|
|
dnl Otherwise running config.status or rerunning configure
|
|
|
|
dnl would stomp the wx-config link or try to move it onto
|
|
|
|
dnl itself.
|
2001-10-17 11:26:30 +00:00
|
|
|
dnl Use -h instead of -L to test for link (GD)
|
|
|
|
dnl -h is documented as obsolete under Mac OS X but works
|
|
|
|
dnl -L is obsolete under Solaris8
|
|
|
|
if test ! -h wx-config; then
|
2001-06-21 17:52:21 +00:00
|
|
|
chmod +x wx-config
|
2001-09-28 07:00:13 +00:00
|
|
|
mv wx-config wx${TOOLCHAIN_NAME}-config
|
|
|
|
${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
|
2001-06-21 17:52:21 +00:00
|
|
|
fi
|
2001-06-06 16:50:48 +00:00
|
|
|
|
2000-02-20 10:23:06 +00:00
|
|
|
if test ! -d lib; then
|
|
|
|
mkdir lib
|
|
|
|
fi
|
|
|
|
if test ! -d lib/wx; then
|
|
|
|
mkdir lib/wx
|
|
|
|
fi
|
|
|
|
if test ! -d lib/wx/include; then
|
|
|
|
mkdir lib/wx/include
|
|
|
|
fi
|
2001-09-28 07:00:13 +00:00
|
|
|
if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
|
|
|
|
mkdir lib/wx/include/${TOOLCHAIN_NAME}
|
1999-10-04 20:15:38 +00:00
|
|
|
fi
|
2001-09-28 07:00:13 +00:00
|
|
|
if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
|
|
|
|
mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
|
1999-10-04 20:15:38 +00:00
|
|
|
fi
|
1999-10-27 19:43:07 +00:00
|
|
|
if test -f setup.h; then
|
2001-09-28 07:00:13 +00:00
|
|
|
mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
|
1999-10-27 19:43:07 +00:00
|
|
|
fi
|
1999-06-02 10:01:24 +00:00
|
|
|
],
|
|
|
|
[
|
2001-09-28 07:00:13 +00:00
|
|
|
TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
|
2000-02-24 12:20:22 +00:00
|
|
|
LN_S="${LN_S}"
|
1999-06-02 10:01:24 +00:00
|
|
|
]
|
|
|
|
)
|
1999-06-01 16:14:29 +00:00
|
|
|
|
2001-09-28 07:00:13 +00:00
|
|
|
dnl vi: set et sts=4 sw=4:
|