2000-09-18 15:18:56 +00:00
dnl /******************************************************************
2002-08-27 09:31:11 +00:00
dnl * vi:set sw=3 ts=3 et:
2000-09-18 15:18:56 +00:00
dnl *
dnl * Name: configure.in
dnl * Auth: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems Ireland
2008-09-08 06:41:12 +00:00
dnl * Date: $Date: 2008-09-08 07:38:40 $
2000-09-18 15:18:56 +00:00
dnl *
dnl * Desc: This file serves as input for the GNU autoconf package
dnl * in order to create a configure script.
dnl * In this stage configure just checks the pre-requisites
2003-01-20 14:00:18 +00:00
dnl * necessary to build OpenOffice.org
2000-09-18 15:18:56 +00:00
dnl *
dnl *
dnl ******************************************************************/
2008-09-08 06:41:12 +00:00
AC_REVISION( $Revision: 1.290 $ )
2003-04-28 16:02:04 +00:00
AC_PREREQ(2.50)
2000-09-18 15:18:56 +00:00
AC_INIT()
2002-10-02 08:18:56 +00:00
echo "$@" >config.parms
2003-07-16 16:24:42 +00:00
AC_ARG_WITH(gnu-patch,
2003-12-17 14:01:13 +00:00
[ --with-gnu-patch Specify location of GNU patch on Solaris or FreeBSD
2003-07-16 16:24:42 +00:00
],,)
2006-08-04 12:32:10 +00:00
AC_ARG_WITH(agg,
[ --without-agg Disable the use of agg altogether
],,with_agg=yes)
2003-07-16 16:24:42 +00:00
AC_ARG_WITH(gnu-cp,
2003-12-17 14:01:13 +00:00
[ --with-gnu-cp Specify location of GNU cp on Solaris or FreeBSD
2003-07-16 16:24:42 +00:00
],,)
2009-08-17 14:12:14 +00:00
AC_ARG_ENABLE(graphite,
[ --enable-graphite Enables the compilation of Graphite smart font rendering
],,)
AC_ARG_WITH(system-graphite,
[ --with-system-graphite use graphite library already installed on system
],,)
2006-04-20 12:34:04 +00:00
AC_ARG_ENABLE(ldap,
2007-01-03 10:33:33 +00:00
[ --disable-ldap Disables the use of LDAP backend via Netscape/Mozilla
or OpenLDAP LDAP SDK
2006-04-20 12:34:04 +00:00
],,)
2010-01-15 14:55:12 +01:00
AC_ARG_ENABLE(fetch-external,
2010-01-22 18:34:39 +01:00
[ --disable-fetch-external Disables fetching external tarballs from web sources.
2010-01-15 14:55:12 +01:00
],,)
AC_ARG_WITH(external-tar,
[ --with-external-tar=<TARFILE PATH> Specify path to tarfiles manually ],
[ TARFILE_LOCATION="$withval"
])
2006-04-20 12:34:04 +00:00
AC_ARG_WITH(openldap,
2007-01-03 10:33:33 +00:00
[ --with-openldap Enables the use of the OpenLDAP LDAP SDK instead
2005-04-11 07:52:24 +00:00
of the Netscape/Mozilla one
2004-11-15 13:11:17 +00:00
],,)
2006-03-22 08:25:04 +00:00
AC_ARG_ENABLE(lockdown,
[ --enable-lockdown Enables the gconf integration work in OOo
],,)
2007-04-25 14:53:53 +00:00
AC_ARG_ENABLE(vba,
2007-08-30 09:02:41 +00:00
[ --disable-vba disables the vba compatibility feature
2007-04-25 14:53:53 +00:00
],,)
AC_ARG_WITH(vba-package-format,
[ --with-vba-package-format specify package format for vba compatibility api.
2007-08-30 09:02:41 +00:00
Specifying "builtin" means the api component and
2007-04-25 14:53:53 +00:00
associated type library are part of the installation set.
2007-08-30 09:02:41 +00:00
Specifying "extn" creates an uno extension that is
2007-04-25 14:53:53 +00:00
part of the installation set ( located in the program
directory ) that MUST be optionly registered using
either the unopkg executeable or the extension manager
gui.
2007-08-30 09:02:41 +00:00
2008-07-31 12:44:41 +00:00
Note: "builtin" is the default, "extn" can cause
problems.
2007-08-30 09:02:41 +00:00
Usage: --with-vba-package-format="builtin" or
--with-vba-package-format="extn"
2007-04-25 14:53:53 +00:00
],,)
2006-10-30 08:18:36 +00:00
AC_ARG_ENABLE(pch,
2007-05-10 15:40:23 +00:00
[ --enable-pch EXPERIMENTAL: Enables precompiled header support for C++.
2006-10-30 08:18:36 +00:00
],,)
2009-07-16 13:36:50 +00:00
AC_ARG_ENABLE(hids,
[ --enable-hids Enables generation of HelpId lists.
],,)
2003-12-17 14:01:13 +00:00
AC_ARG_ENABLE(mozilla,
2004-06-16 09:48:18 +00:00
[ --disable-mozilla OO.o usually includes a strangely hacked up mozilla
binary for your platform, to build without this
version, use this option.
],,enable_mozilla="yes")
2005-03-30 10:38:08 +00:00
AC_ARG_WITH(fonts,
2009-09-17 16:34:35 +00:00
[ --without-fonts OOo includes some third-party fonts to provide a reliable
basis for help content, templates, samples, etc.
When these fonts are already known to be available on the
system then you should use this option.
2005-03-30 10:38:08 +00:00
],,)
2006-02-10 10:17:38 +00:00
AC_ARG_WITH(ppds,
[ --without-ppds Removes Postscript Printer definition files from
openoffice.org installation set, for people building
for specific distributions where PPDs are known to be
2007-01-03 10:33:33 +00:00
already available (every recent distro with CUPS
backend)
2006-02-10 10:17:38 +00:00
],,)
AC_ARG_WITH(afms,
[ --without-afms Removes bitmap font files from openoffice.org
installation set, for people building for specific
distributions where AFM files or TrueType Fonts
are known to be available.
],,)
2005-01-25 11:42:58 +00:00
AC_ARG_ENABLE(epm,
2005-04-11 07:52:24 +00:00
[ --disable-epm OO.o includes self-packaging code, that requires
2005-01-25 11:42:58 +00:00
epm, however epm is useless for large scale
package building.
],,enable_epm="yes")
2009-01-21 17:47:03 +00:00
AC_ARG_WITH(epm,
[ --with-epm Decides which epm to use. Default is to use
the one from the system if one is built. When
either this is not there or you say =internal
epm will be built.
],,)
2005-08-30 08:12:36 +00:00
AC_ARG_WITH(package-format,
[ --with-package-format specify package format(s) for OOo installsets.
Default is "normal" one of the OS/Distribution.
Usage: --with-package-format="foo bar"
],,)
2005-08-16 08:27:11 +00:00
AC_ARG_ENABLE(odk,
[ --disable-odk OO.o includes an ODK, office development kit
which some packagers may with to build without
],,enable_odk="yes")
2005-08-30 08:34:09 +00:00
AC_ARG_ENABLE(mathmldtd,
[ --disable-mathmldtd disable mathmldtd
2007-01-03 10:33:33 +00:00
(useful for distributions that want to avoid packaging
it)
2005-08-30 08:34:09 +00:00
],,enable_mathmldtd="yes")
2005-06-09 13:14:33 +00:00
AC_ARG_ENABLE(evolution2,
2007-01-03 10:33:33 +00:00
[ --enable-evolution2 Allows the built-in evolution 2 addressbook
connectivity build to be enabled.
2005-06-09 13:14:33 +00:00
],,)
2005-02-21 14:16:34 +00:00
AC_ARG_WITH(system-stdlibs,
[ --with-system-stdlibs use libstdc++/libgcc_s already on system
2009-11-19 15:41:16 +00:00
],,checkforstdlibproblems=yes)
2004-06-16 09:48:18 +00:00
AC_ARG_ENABLE(cups,
2005-04-11 07:52:24 +00:00
[ --disable-cups disable cups support in the psprint project
2005-03-15 08:46:30 +00:00
],,enable_cups=yes)
2004-06-16 09:48:18 +00:00
AC_ARG_ENABLE(fontconfig,
2005-04-11 07:52:24 +00:00
[ --disable-fontconfig disable support for the fontconfig library
2005-03-15 08:46:30 +00:00
],,enable_fontconfig=yes)
2004-06-16 09:48:18 +00:00
AC_ARG_ENABLE(directx,
[ --disable-directx Remove DirectX implementation for the new XCanvas
2007-01-03 10:33:33 +00:00
interface. The DirectX support requires more stuff
installed on Windows to compile.
(DirectX SDK, GDI+ libs)
2005-03-15 08:46:30 +00:00
],,enable_directx=yes)
2006-09-25 12:33:13 +00:00
AC_ARG_ENABLE(activex,
[ --disable-activex Disable the use of ActiveX for windows build.
2008-07-31 12:53:05 +00:00
This switch is mandatory when using VC++ 2005/2008 Express.
],,)
AC_ARG_ENABLE(atl,
[ --disable-atl Disable the use of ATL for windows build.
This switch is mandatory when using VC++ 2005/2008 Express.
2004-10-11 12:48:26 +00:00
],,)
2003-04-28 16:02:04 +00:00
AC_ARG_ENABLE(symbols,
2005-04-11 07:52:24 +00:00
[ --enable-symbols Include debugging symbols in output.
WARNING - a complete build needs 8 Gb of space and
takes much longer. (enables -g compiler flag)
2002-08-27 09:31:11 +00:00
2003-08-18 13:53:58 +00:00
--enable-symbols=SMALL sets the gcc -g1 setting
which is smaller.
2006-10-24 14:34:36 +00:00
Enabling symbols disables the stripping of the solver
(--disable-strip-solver).
],,)
AC_ARG_ENABLE(strip-solver,
[ --disable-strip-solver Disable the stripping of the solver.
By default the solver is stripped unless a build with
debugging symbols (--enable-symbols) is requested.
This switch allows to override this setting.
2003-04-28 16:02:04 +00:00
],,)
2006-08-28 11:35:18 +00:00
AC_ARG_ENABLE(werror,
2007-01-03 10:33:33 +00:00
[ --enable-werror Turn warnings to errors. (Has no effect in modules
where the treating of warnings as errors is disabled
explicitely)
2006-08-28 11:35:18 +00:00
],,)
2003-04-28 16:02:04 +00:00
AC_ARG_ENABLE(debug,
2007-01-03 10:33:33 +00:00
[ --enable-debug Include debugging symbols from --enable-symbols
2003-04-28 16:02:04 +00:00
plus extra debugging code. Extra large build!
(enables -g compiler flag and dmake debug=true)
2002-08-27 09:31:11 +00:00
],,)
2004-09-08 14:23:49 +00:00
AC_ARG_ENABLE(dbgutil,
2007-01-03 10:33:33 +00:00
[ --enable-dbgutil Include additional debugging utilities, such as
2004-09-08 14:23:49 +00:00
assertions, object counting, etc. Larger build.
Independent from --enable-debug
],,)
2003-07-16 16:24:42 +00:00
AC_ARG_ENABLE(crashdump,
2010-01-18 11:59:59 +01:00
[ --enable-crashdump Enable the crashdump feature code.
],,)
2003-12-01 16:39:04 +00:00
AC_ARG_ENABLE(cl-standard,
2005-04-11 07:52:24 +00:00
[ --enable-cl-standard For Microsoft C/C++ compiler users, use non-optimizing
standard compiler. ( This just disavles optimization
options and therefore removes a lot of warnings when
using the cheaper standard compiler. )
2003-12-01 16:39:04 +00:00
],,)
2004-10-27 15:14:53 +00:00
AC_ARG_ENABLE(gtk,
2005-04-11 07:52:24 +00:00
[ --disable-gtk Determines whether to use Gtk+ vclplug on platforms
2004-10-27 15:14:53 +00:00
where Gtk+ is available.
2005-03-15 08:46:30 +00:00
],,enable_gtk=yes)
2006-11-07 14:29:05 +00:00
AC_ARG_ENABLE(systray,
2007-01-03 10:33:33 +00:00
[ --disable-systray Determines whether to build the systray quickstarter.
2006-11-07 14:29:05 +00:00
],,enable_systray=yes)
2006-02-28 09:41:27 +00:00
AC_ARG_ENABLE(cairo,
2008-11-30 07:56:43 +00:00
[ --enable-cairo Determines whether to use Cairo library on
2007-01-03 10:33:33 +00:00
platforms where Cairo is available.
2006-04-20 12:34:04 +00:00
],,enable_cairo=no)
2008-07-31 12:44:41 +00:00
AC_ARG_WITH(system-cairo,
2008-11-30 07:56:43 +00:00
[ --with-system-cairo Use Cairo libraries already on system
2008-07-31 12:44:41 +00:00
],,)
2007-12-12 12:24:44 +00:00
AC_ARG_ENABLE(opengl,
2009-02-19 13:21:10 +00:00
[ --enable-opengl Determines whether to build the OpenGL 3D slide
transitions component
2007-12-12 12:24:44 +00:00
],,enable_opengl=no)
2007-08-02 13:58:57 +00:00
AC_ARG_ENABLE(dbus,
[ --enable-dbus Determines whether to enable presentation mode
screensaver control under GNOME via DBUS
],,enable_dbus=no)
2008-08-27 12:55:44 +00:00
AC_ARG_ENABLE(gconf,
[ --disable-gconf Determines whether to use the GConf support
],,enable_gconf=yes)
2005-02-11 16:58:49 +00:00
AC_ARG_ENABLE(gnome-vfs,
2005-04-11 07:52:24 +00:00
[ --disable-gnome-vfs Determines whether to use the Gnome Virtual Filing
System on platforms where that VFS is available
2005-03-15 08:46:30 +00:00
],,enable_gnome_vfs=yes)
2008-07-31 12:44:41 +00:00
AC_ARG_ENABLE(gio,
[ --enable-gio Determines whether to use the GIO support
],,enable_gio=no)
2003-06-12 09:54:51 +00:00
AC_ARG_ENABLE(static-gtk,
2007-01-03 10:33:33 +00:00
[ --enable-static-gtk Modules that are linked against gtk libraries use
2003-12-17 14:01:13 +00:00
the static libraries instead of the dynamic ones.
2003-06-12 09:54:51 +00:00
(enables -Bstatic linker flag for gtk libraries)
],,)
2008-03-06 11:20:20 +00:00
AC_ARG_ENABLE(layout,
[ --enable-layout Enable the compilation and use of layout dialogs
],,)
2005-03-01 16:23:02 +00:00
AC_ARG_ENABLE(build-mozilla,
2007-01-03 10:33:33 +00:00
[ --disable-build-mozilla Use this option if you do not want to build the
mozilla components from the mozilla source code but
take precompiled zips
2005-03-01 16:23:02 +00:00
],,)
AC_ARG_WITH(mozilla-version,
2005-04-11 07:52:24 +00:00
[ --with-mozilla-version Choose which version of mozilla to use while building
mozilla. Default: 1.7.5.
Note that not all versions are supported.
2005-03-01 16:23:02 +00:00
],,)
AC_ARG_WITH(mozilla-toolkit,
2005-04-11 07:52:24 +00:00
[ --with-mozilla-toolkit Choose which GUI toolkit to use while building mozilla
components. Default: gtk2
2005-03-01 16:23:02 +00:00
],,)
2009-08-26 08:22:01 +00:00
AC_ARG_ENABLE(nss_module,
[ --disable-nss-module Whether to use provided NSS module
],,enable_nss_module=yes)
2004-10-27 15:14:53 +00:00
AC_ARG_ENABLE(kde,
[ --enable-kde Determines whether to use Qt/KDE vclplug on platforms
where Qt and KDE are available.
],,)
2006-01-10 13:33:05 +00:00
AC_ARG_ENABLE(kdeab,
2006-02-03 16:35:08 +00:00
[ --disable-kdeab Disable the KDE address book support
2006-01-10 13:33:05 +00:00
],,if test "$enable_kde" = "yes"; then enable_kdeab=yes; fi)
2009-08-07 10:16:34 +00:00
AC_ARG_ENABLE(kde4,
[ --enable-kde4 Determines whether to use Qt4/KDE4 vclplug on platforms
where Qt4 and KDE4 are available. May be used with --enable-kde
if you want to support both KDE3 and KDE4.
],,)
2005-02-11 14:50:22 +00:00
AC_ARG_ENABLE(binfilter,
2007-01-03 10:33:33 +00:00
[ --disable-binfilter Disable legacy binary file formats filters
2009-01-21 17:47:03 +00:00
],,if ! test -d ./binfilter; then enable_binfilter=no; fi)
2003-12-17 14:01:13 +00:00
AC_ARG_ENABLE(rpath,
2007-01-03 10:33:33 +00:00
[ --disable-rpath Disable the use of relative paths in shared libraries
2003-12-17 14:01:13 +00:00
],,)
2006-07-19 08:52:02 +00:00
AC_ARG_ENABLE(pam,
[ --disable-pam Disable pam support.
],,)
2005-06-17 08:24:13 +00:00
AC_ARG_ENABLE(pam-link,
[ --enable-pam-link link with libpam instead of dynamically open it
],,)
AC_ARG_ENABLE(crypt-link,
2007-01-03 10:33:33 +00:00
[ --disable-crypt-link disable linking with libcrypt instead of dynamically
open it (needed for ancient GNU/Linux distributions
without crypt()/libcrypt)
2005-06-17 08:24:13 +00:00
],,enable_crypt_link=yes)
AC_ARG_ENABLE(xrender-link,
[ --enable-xrender-link link with libXrender instead of dynamically open it
],,)
2008-07-31 12:44:41 +00:00
AC_ARG_ENABLE(randr,
[ --disable-randr disable RandR support in the vcl project
],,enable_randr=yes)
2008-07-30 12:06:50 +00:00
AC_ARG_ENABLE(randr-link,
[ --disable-randr-link disable linking with libXrandr, instead dynamically
open it at runtime
],,enable_randr_link=yes)
2005-02-11 14:50:22 +00:00
AC_ARG_WITH(myspell-dicts,
2005-04-11 07:52:24 +00:00
[ --without-myspell-dicts Removes myspell dictionaries from openoffice.org
installation set, for people building for specific
distributions where the myspell dictionaries are
installed from other sources
2005-02-11 14:50:22 +00:00
],,)
2008-07-31 12:44:41 +00:00
AC_ARG_WITH(system-dicts,
[ --with-system-dicts Use dictionaries from system paths- Specify
them via --with-{dict,hyph,thes}-path=/path
if you want to override the default ones
],,)
AC_ARG_WITH(external-dict-dir,
[ --with-external-dict-dir Specify external dictionary dir
],,)
AC_ARG_WITH(external-hyph-dir,
[ --with-external-hyph-dir Specify external hyphenation pattern dir
],,)
AC_ARG_WITH(external-thes-dir,
[ --with-external-thes-dir Specify external thesaurus dir
],,)
INTEGRATION: CWS configure3 (1.72.4); FILE MERGED
2004/11/03 12:03:19 rene 1.72.4.7: minor typo
2004/11/03 11:41:21 rene 1.72.4.6: #i36561# configure needs to check for epm
2004/11/02 13:19:31 rene 1.72.4.5: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
oops actually add the AC_ARG_WITH for system-libs...
2004/11/02 13:14:55 rene 1.72.4.4: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
implement a --with-system-libs enabling all other --with-system-* (except mozilla, python and the header ones) and enable ovveriding specific ones with --wiothout-system-* then
2004/11/01 11:04:42 rene 1.72.4.3: #i29991# soltools fails with header/type errors (680)
try to recover and detect a right JAVA_HOME when JAVA_HOME=/usr and we discover
the alternatives system as used in Debian and newer SuSEs
2004/11/01 11:01:07 rene 1.72.4.2: RESYNC: (1.72-1.74); FILE MERGED
2004/10/28 13:04:51 rene 1.72.4.1: #i23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
add library checks for expat and jpeg
2004-11-09 17:41:26 +00:00
AC_ARG_WITH(system-libs,
[ --with-system-libs Use libs already on system -- enables all
2008-07-31 12:44:41 +00:00
--with-system-* flags except mozilla and
2005-04-11 07:52:24 +00:00
odbc/sane/xrender-header(s)
INTEGRATION: CWS configure3 (1.72.4); FILE MERGED
2004/11/03 12:03:19 rene 1.72.4.7: minor typo
2004/11/03 11:41:21 rene 1.72.4.6: #i36561# configure needs to check for epm
2004/11/02 13:19:31 rene 1.72.4.5: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
oops actually add the AC_ARG_WITH for system-libs...
2004/11/02 13:14:55 rene 1.72.4.4: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
implement a --with-system-libs enabling all other --with-system-* (except mozilla, python and the header ones) and enable ovveriding specific ones with --wiothout-system-* then
2004/11/01 11:04:42 rene 1.72.4.3: #i29991# soltools fails with header/type errors (680)
try to recover and detect a right JAVA_HOME when JAVA_HOME=/usr and we discover
the alternatives system as used in Debian and newer SuSEs
2004/11/01 11:01:07 rene 1.72.4.2: RESYNC: (1.72-1.74); FILE MERGED
2004/10/28 13:04:51 rene 1.72.4.1: #i23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
add library checks for expat and jpeg
2004-11-09 17:41:26 +00:00
],,)
2008-07-31 12:44:41 +00:00
AC_ARG_WITH(system-headers,
[ --with-system-headers Use headers already on system -- enables all
--with-system-* flags for external packages
whose headers are the only entities used i.e.
boost/vigra/odbc/sane/xrender-header(s)
],,)
2006-08-22 12:19:10 +00:00
AC_ARG_WITH(system-jars,
2007-01-03 10:33:33 +00:00
[ --without-system-jars When building with --with-system-libs, also the
needed jars are expected on the system. Use this to
disable that.
(except for the db case where --with-system-db
*has to* imply using the db.jar from there, too)
2006-08-22 12:19:10 +00:00
],,)
2003-12-17 14:01:13 +00:00
AC_ARG_WITH(system-zlib,
[ --with-system-zlib Use zlib already on system
],,)
2007-11-26 11:46:22 +00:00
AC_ARG_WITH(system-openssl,
[ --with-system-openssl Use OpenSSL already on system
],,)
2004-09-08 14:23:49 +00:00
AC_ARG_WITH(system-jpeg,
[ --with-system-jpeg Use jpeg already on system
],,)
AC_ARG_WITH(system-expat,
[ --with-system-expat Use expat already on system
],,)
2005-03-01 15:57:56 +00:00
AC_ARG_WITH(system-libwpd,
2005-04-11 07:52:24 +00:00
[ --with-system-libwpd Use libwpd already on system
2005-03-01 15:57:56 +00:00
],,)
2004-09-08 14:23:49 +00:00
AC_ARG_WITH(system-libxml,
[ --with-system-libxml Use libxml already on system
],,)
AC_ARG_WITH(system-python,
[ --with-system-python Use python already on system
],,)
2006-12-12 15:05:16 +00:00
AC_ARG_WITH(system-icu,
[ --with-system-icu Use icu already on system
],,)
2008-10-10 13:02:43 +00:00
AC_ARG_WITH(system-poppler,
[ --with-system-poppler Use poppler already on system
],,)
2005-04-11 08:31:15 +00:00
AC_ARG_WITH(system-db,
2005-05-13 11:13:27 +00:00
[ --with-system-db Use berkeley db already on system
2005-04-11 08:31:15 +00:00
],,)
2008-07-31 12:44:41 +00:00
AC_ARG_WITH(system-lucene,
[ --with-system-lucene Use lucene already on system
],,)
AC_ARG_WITH(lucene-core-jar,
[ --with-lucene-core-jar=JARFILE Specify path to jarfile manually ],
[ LUCENE_CORE_JAR="$withval"
])
2008-08-01 11:12:29 +00:00
AC_ARG_WITH(lucene-analyzers-jar,
[ --with-lucene-analyzers-jar=JARFILE Specify path to jarfile manually ],
[ LUCENE_ANALYZERS_JAR="$withval"
])
2009-12-11 09:51:25 +01:00
AC_ARG_ENABLE(mysql-connector,
[ --enable-mysql-connector enables the build of the MySQL Connector/OOo extension.
This requires access to the MySQL Connector/C (aka libmysql) to be given, too, with
either the --with-system-mysql or --with-libmysql-path option.
],,)
AC_ARG_WITH(system-mysql,
[ --with-system-mysql Use MySQL libraries already on system, for building the MySQL Connector/OOo extension.
Requires MYSQLCONFIG to point to the mysql_config executable.
2010-03-12 09:15:29 +00:00
],,)
2009-12-11 09:51:25 +01:00
AC_ARG_WITH(libmysql-path,
[ --with-libmysql-path Use Connector/C (libmysql) installation for building the MySQL Connector/OOo extension.
Usage: --with-libmysql-path=<absolute path to your Connector/C installation>
],,)
AC_ARG_WITH(system-mysql-cppconn,
[ --with-system-mysql-cppconn Use MySQL C++ Connector libraries already on system
],,)
2006-04-19 14:09:58 +00:00
AC_ARG_WITH(system-hsqldb,
[ --with-system-hsqldb Use hsqldb already on system
],,)
AC_ARG_WITH(hsqldb-jar,
[ --with-hsqldb-jar=JARFILE Specify path to jarfile manually ],
[ HSQLDB_JAR="$withval"
])
AC_ARG_WITH(system-beanshell,
[ --with-system-beanshell Use beanshell already on system
],,)
AC_ARG_WITH(beanshell-jar,
[ --with-beanshell-jar=JARFILE Specify path to jarfile manually ],
[ BSH_JAR="$withval"
])
2009-06-29 15:15:41 +02:00
AC_ARG_ENABLE(presenter-extra-ui,
[ --enable-presenter-extra-ui enables extra functionality during slideshow,
e.g. selecting pen color, erasing drawings etc.
],,enable_presenter_extra_ui=no)
2008-07-31 12:44:41 +00:00
AC_ARG_ENABLE(minimizer,
[ --enable-minimizer enables the build of the Presentation Minimizer extension
],,)
2009-01-21 17:47:03 +00:00
AC_ARG_ENABLE(presenter-console,
[ --enable-presenter-console enables the build of the Presenter Console extension
2007-12-12 12:24:44 +00:00
],,)
2008-07-31 12:44:41 +00:00
AC_ARG_ENABLE(pdfimport,
2009-01-21 17:47:03 +00:00
[ --enable-pdfimport enables the build of the PDF Import extension and xpdf
2008-07-31 12:44:41 +00:00
],,)
2009-01-21 17:47:03 +00:00
AC_ARG_ENABLE(wiki-publisher,
[ --enable-wiki-publisher enables the build of the Wiki Publisher extension
2008-07-31 12:44:41 +00:00
],,)
AC_ARG_WITH(commons-codec-jar,
[ --with-commons-codec-jar=JARFILE Specify path to jarfile manually ],
[ COMMONS_CODEC_JAR="$withval"
])
AC_ARG_WITH(commons-lang-jar,
[ --with-commons-lang-jar=JARFILE Specify path to jarfile manually ],
[ COMMONS_LANG_JAR="$withval"
])
AC_ARG_WITH(commons-httpclient-jar,
[ --with-commons-httpclient-jar=JARFILE Specify path to jarfile manually ],
[ COMMONS_HTTPCLIENT_JAR="$withval"
])
AC_ARG_WITH(commons-logging-jar,
[ --with-commons-logging-jar=JARFILE Specify path to jarfile manually ],
[ COMMONS_LOGGING_JAR="$withval"
])
AC_ARG_WITH(servlet-api-jar,
[ --servlet-api-jar=JARFILE Specify path to jarfile manually ],
[ SERVLETAPI_JAR="$withval"
])
2009-01-21 17:47:03 +00:00
AC_ARG_ENABLE(report-builder,
2009-03-04 15:27:10 +00:00
[ --enable-report-builder enables the build of the Report Builder extension
2007-12-12 12:24:44 +00:00
],,)
AC_ARG_WITH(system-jfreereport,
[ --with-system-jfreereport Use JFreeReport already on system
],,)
AC_ARG_WITH(sac-jar,
[ --with-sac-jar=JARFILE Specify path to jarfile manually ],
[ SAC_JAR="$withval"
])
AC_ARG_WITH(libxml-jar,
[ --with-libxml-jar=JARFILE Specify path to jarfile manually ],
[ LIBXML_JAR="$withval"
])
AC_ARG_WITH(flute-jar,
[ --with-flute-jar=JARFILE Specify path to jarfile manually ],
[ FLUTE_JAR="$withval"
])
AC_ARG_WITH(jfreereport-jar,
[ --with-jfreereport-jar=JARFILE Specify path to jarfile manually ],
[ JFREEREPORT_JAR="$withval"
])
AC_ARG_WITH(liblayout-jar,
[ --with-liblayout-jar=JARFILE Specify path to jarfile manually ],
[ LIBLAYOUT_JAR="$withval"
])
2008-11-10 15:06:12 +00:00
AC_ARG_WITH(libloader-jar,
[ --with-libloader-jar=JARFILE Specify path to jarfile manually ],
[ LIBLOADER_JAR="$withval"
])
2009-01-21 17:47:03 +00:00
AC_ARG_WITH(libloader-jar,
[ --with-libloader-jar=JARFILE Specify path to jarfile manually ],
[ LIBLOADER_JAR="$withval"
])
2007-12-12 12:24:44 +00:00
AC_ARG_WITH(libformula-jar,
[ --with-libformula-jar=JARFILE Specify path to jarfile manually ],
[ LIBFORMULA_JAR="$withval"
])
AC_ARG_WITH(librepository-jar,
[ --with-librepository-jar=JARFILE Specify path to jarfile manually ],
[ LIBREPOSITORY_JAR="$withval"
])
2009-01-21 17:47:03 +00:00
AC_ARG_WITH(libfonts-jar,
2007-12-12 12:24:44 +00:00
[ --with-libfonts-jar=JARFILE Specify path to jarfile manually ],
[ LIBFONTS_JAR="$withval"
])
2009-03-04 15:27:10 +00:00
AC_ARG_WITH(libserializer-jar,
2009-03-17 13:46:42 +00:00
[ --with-libserializer-jar=JARFILE Specify path to jarfile manually ],
2009-03-04 15:27:10 +00:00
[ LIBSERIALIZER_JAR="$withval"
])
AC_ARG_WITH(libbase-jar,
[ --with-libbase-jar=JARFILE Specify path to jarfile manually ],
[ LIBBASE_JAR="$withval"
2007-12-12 12:24:44 +00:00
])
2008-08-19 11:03:26 +00:00
AC_ARG_WITH(system-saxon,
[ --with-system-saxon Use saxon already on system
2006-04-19 14:09:58 +00:00
],,)
2008-08-19 11:03:26 +00:00
AC_ARG_WITH(saxon-jar,
[ --with-saxon-jar=JARFILE Specify path to jarfile manually ],
[ SAXON_JAR="$withval"
2006-10-11 08:26:04 +00:00
])
2007-05-10 12:15:13 +00:00
AC_ARG_WITH(system-libxslt,
[ --with-system-libxslt Use libxslt already on system
2004-09-08 14:23:49 +00:00
],,)
AC_ARG_WITH(system-odbc,
2005-04-11 07:52:24 +00:00
[ --with-system-odbc-headers Use the odbc headers already on system
2004-09-08 14:23:49 +00:00
],,)
2005-03-08 15:31:52 +00:00
AC_ARG_WITH(system-sane,
2005-04-11 07:52:24 +00:00
[ --with-system-sane-header Use sane.h already on system
2005-03-08 15:31:52 +00:00
],,)
AC_ARG_WITH(system-xrender,
2005-04-11 07:52:24 +00:00
[ --with-system-xrender-headers Use XRender headers already on system
2005-03-08 15:31:52 +00:00
],,)
2004-09-08 14:23:49 +00:00
AC_ARG_WITH(system-curl,
[ --with-system-curl Use curl already on system
],,)
2005-01-18 15:13:20 +00:00
AC_ARG_WITH(system-boost,
[ --with-system-boost Use boost already on system
],,)
2007-08-02 14:55:25 +00:00
AC_ARG_WITH(system-vigra,
[ --with-system-vigra Use vigra already on system
],,)
2006-04-20 12:34:04 +00:00
AC_ARG_ENABLE(neon,
[ --disable-neon Disable neon and the compilation of webdav binding
],,)
2006-12-01 13:17:02 +00:00
AC_ARG_ENABLE(Xaw,
2007-01-03 10:33:33 +00:00
[ --disable-Xaw Disables the use of Xaw for the Netscape/Mozilla
plugin
2006-12-01 13:17:02 +00:00
],,)
2004-09-08 14:23:49 +00:00
AC_ARG_WITH(system-neon,
2005-04-11 07:52:24 +00:00
[ --with-system-neon Use neon already on system
2004-09-08 14:23:49 +00:00
],,)
2005-12-14 13:42:25 +00:00
AC_ARG_WITH(system-agg,
[ --with-system-agg Use AGG already on system
],,)
2006-01-06 12:13:53 +00:00
AC_ARG_WITH(system-hunspell,
[ --with-system-hunspell Use libhunspell already on system
],,)
2005-06-17 08:24:13 +00:00
AC_ARG_WITH(system-mythes,
[ --with-system-mythes Use mythes already on system
],,)
AC_ARG_WITH(system-altlinuxhyph,
[ --with-system-altlinuxhyph Use ALTLinuxhyph already on system
],,)
2008-07-31 12:44:41 +00:00
AC_ARG_WITH(system-lpsolve,
[ --with-system-lpsolve Use lpsolve already on system
],,)
2010-03-03 21:01:44 +01:00
AC_ARG_WITH(system-cppunit,
[ --with-system-cppunit Use cppunit already on system
],,)
2010-03-09 13:27:16 +01:00
AC_ARG_WITH(system-redland,
[ --with-system-redland Use redland library already on system
],,)
2005-03-30 10:38:08 +00:00
AC_ARG_WITH(system-mozilla,
[ --with-system-mozilla Use mozilla already on system. Note that some
2005-04-11 07:52:24 +00:00
components cannot be built against a contemporary
2007-07-31 12:09:29 +00:00
mozilla. The flavour used can be specified by
--with-system-mozilla=<flavour>. Supported are:
2008-07-31 12:44:41 +00:00
libxul (default), xulrunner, firefox, seamonkey,
mozilla
2007-07-31 12:09:29 +00:00
], WITH_SYSTEM_MOZILLA=$withval, WITH_SYSTEM_MOZILLA=no)
2007-12-12 12:24:44 +00:00
AC_ARG_WITH(stlport,
[ --with-stlport The location that STLport is installed in. The STL
2005-04-11 07:52:24 +00:00
header files are assumed to be in
2007-12-12 12:24:44 +00:00
stlport-home/stlport and the STLPort library in
stlport-home/lib.
2000-12-07 17:33:25 +00:00
2007-12-12 12:24:44 +00:00
Usage: --with-stlport=<absolute path to stlport home>
2004-09-08 14:23:49 +00:00
2008-01-29 12:12:38 +00:00
Warning!!, disabling using --without-stlport or
enabling using --with-stlport on a platform that
defaults to the opposite will break ABI compatability
], WITH_STLPORT=$withval , WITH_STLPORT=auto)
2000-09-18 15:18:56 +00:00
AC_ARG_WITH(jdk-home,
2007-01-03 10:33:33 +00:00
[ --with-jdk-home if you have installed JDK 1.3 or later on your system
2000-09-18 15:18:56 +00:00
please supply the path here.
2005-04-11 07:52:24 +00:00
Note that this is not the location of the Java binary
but the location of the entire distribution.
2000-09-18 15:18:56 +00:00
2007-01-03 10:33:33 +00:00
Usage: --with-jdk-home=<absolute path to JDK home>
2000-09-18 15:18:56 +00:00
],,)
2003-12-01 16:39:04 +00:00
AC_ARG_WITH(gxx_include_path,
2005-04-11 07:52:24 +00:00
[ --with-gxx-include-path if you want to override the autodetected g++ include
path.
2003-12-01 16:39:04 +00:00
Usage: --with-gxx-include-path=<absolute path to g++ include dir>
],,)
2005-01-25 15:54:53 +00:00
AC_ARG_WITH(java,
2005-04-11 07:52:24 +00:00
[ --with-java Build with[[out]] Java support. If you use
--without-java/--with-java=no then the build will have
no support for Java components, applets, accessibility
2008-02-19 11:37:37 +00:00
or XML filters.
2005-05-13 11:13:27 +00:00
], if test "$withval" = "yes"; then WITH_JAVA=java; else WITH_JAVA=$withval; fi, WITH_JAVA=java)
2006-07-05 20:12:33 +00:00
AC_ARG_ENABLE(gcjaot,
2007-01-03 10:33:33 +00:00
[ --enable-gcjaot Build with[[out]] using Ahead of Time java compilation
support to speed up buildsi by compiling the jars also
to native code..
--enable-gcjaot is only known to work with bytecode
2006-07-05 20:12:33 +00:00
created with gcj or ecj
],,)
2002-08-27 09:31:11 +00:00
AC_ARG_WITH(ant-home,
2003-01-20 14:00:18 +00:00
[ --with-ant-home If you have installed Jakarta Ant on your system,
2002-08-27 09:31:11 +00:00
please supply the path here.
2003-01-20 14:00:18 +00:00
Note that this is not the location of the Ant binary
but the location of the entire distribution.
2002-08-27 09:31:11 +00:00
Usage: --with-ant-home=<absolute path to Ant home>
],,)
2010-02-15 18:28:00 +01:00
AC_ARG_WITH(junit,
[ --with-junit Specifies the JUnit 4 jar file to use for JUnit-based
tests. --without-junit disables those tests. Not
relevant in the --without-java case.
Usage: --with-junit=<absolute path to JUnit 4 jar>
],,with_junit=yes)
2000-09-18 15:18:56 +00:00
AC_ARG_WITH(perl-home,
2003-01-20 14:00:18 +00:00
[ --with-perl-home If you have installed the Perl 5 Distribution, on your
system, please supply the path here.
Note that this is not the location of the Perl binary
but the location of the entire distribution.
2000-09-18 15:18:56 +00:00
Usage: --with-perl-home=<absolute path to Perl 5 home>
],,)
2000-10-10 10:17:39 +00:00
AC_ARG_WITH(cl-home,
2003-01-20 14:00:18 +00:00
[ --with-cl-home For Windows NT users, please supply the path
2000-10-10 10:17:39 +00:00
for the Microsoft C/C++ compiler.
2003-01-20 14:00:18 +00:00
Note that this is not the location of the compiler
binary but the location of the entire distribution.
2000-10-10 10:17:39 +00:00
2000-12-07 17:33:25 +00:00
Usage: --with-cl-home=<absolute path to Microsoft C/C++ compiler home>
2000-10-10 10:17:39 +00:00
],,)
2003-08-18 13:53:58 +00:00
AC_ARG_WITH(mspdb-path,
2005-04-11 07:52:24 +00:00
[ --with-mspdb-path For Microsoft C/C++ compiler users, please supply the
path pointing to the mspdb71.dll (.NET 2003).
2003-08-18 13:53:58 +00:00
2005-01-05 09:41:55 +00:00
Usage: --with-mspdb-path=<absolute path to mspdb71.dll>
2003-08-18 13:53:58 +00:00
],,)
AC_ARG_WITH(midl-path,
2005-04-11 07:52:24 +00:00
[ --with-midl-path For Microsoft C/C++ .NET compiler users, please supply
the path pointing to the midl.exe.
2003-08-18 13:53:58 +00:00
Usage: --with-midl-path=<absolute path to midl.exe>
],,)
2003-12-01 16:39:04 +00:00
AC_ARG_WITH(csc-path,
2005-04-11 07:52:24 +00:00
[ --with-csc-path For Microsoft C/C++ .NET compiler users, please supply
the path pointing to the csc.exe.
2003-12-01 16:39:04 +00:00
Usage: --with-csc-path=<absolute path to csc.exe>
],,)
2005-05-13 11:13:27 +00:00
AC_ARG_WITH(nsis-path,
[ --with-nsis-path For Windows users, please supply the path to the
2007-01-03 10:33:33 +00:00
"Nullsoft Scriptable Install System" (NSIS). If NSIS
is found in the path or this option is supplied a self
2005-05-13 11:13:27 +00:00
contained executable installer for OpenOffice.org will
be created.
Usage: --with-nsis-path=<absolute path to nsis.exe>
],,)
2004-10-11 12:48:26 +00:00
AC_ARG_WITH(frame-home,
2005-04-11 07:52:24 +00:00
[ --with-frame-home For Microsoft C/C++ .NET compiler users, please supply
the path pointing to lib/mscoree.lib, usually
something like:
"/cygdrive/c/Program Files/Microsoft Visual Studio .NET/FrameworkSDK"
2004-10-11 12:48:26 +00:00
2005-04-11 07:52:24 +00:00
MS Visual Toolkit compiler users, please supply the
path pointing to lib/msvcrt.lib, usually something
like:
"/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2003/Vc7"
2004-10-11 12:48:26 +00:00
2005-04-11 07:52:24 +00:00
Usage: --with-frame-home=<absolute path to Framework SDK [[home]]>
2003-12-01 16:39:04 +00:00
],,)
2002-10-02 08:18:56 +00:00
AC_ARG_WITH(psdk-home,
2004-10-11 12:48:26 +00:00
[ --with-psdk-home For Windows users, please supply the path to the
Microsoft Platform SDK.
2002-10-02 08:18:56 +00:00
Usage: --with-psdk-home=<absolute path to Microsoft Platform SDK>
],,)
2004-10-11 12:48:26 +00:00
AC_ARG_WITH(directx-home,
[ --with-directx-home For Windows users, please supply the path to the
Microsoft DirectX SDK.
Usage: --with-directx-home=<absolute path to Microsoft DirectX SDK>
],,)
2009-08-26 08:22:01 +00:00
AC_ARG_WITH(mozilla-build,
CWS-TOOLING: integrate CWS dba32j
2009-11-26 09:30:10 +0100 msc r277648 : #100000 fix urgent testscript error
2009-11-25 10:27:56 +0100 msc r277625 : #i100000 fix urgent testscript error
2009-11-17 22:16:46 +0100 fs r277544 : CWS-TOOLING: rebase CWS dba32j to branches/OOO320@277531 (milestone: OOO320:m5)
2009-11-17 14:26:47 +0100 fs r277535 : ooops, didn't mean to commit this uncommented line
2009-11-14 20:50:29 +0100 fs r277505 : add a --disable-pango switch to SM's configure options, and add a patch which makes certain code respect it (well, respect it better than currently, by not using some pango_x_* functions, which are not always available, even when pango itself is present)
2009-11-14 20:47:41 +0100 fs r277504 : spelling
2009-11-13 14:04:00 +0100 fs r277502 : #i100764# (commit approved by ab@openoffice.org): getModelFromBasic: do not start with the parent's parent when looking for ThisComponent, but walk up the anchestor chain, starting with the immediate parent
2009-11-13 11:04:15 +0100 fs r277496 : #i100764# better heuristics for determining whether or not to participate in the ThisComponent game
2009-11-13 11:02:30 +0100 fs r277495 : #i100764# set the WB_EXT_DOCUMENT style at the backing component's container window, when creating it without the TaskCreator (which would normally do this)
2009-11-11 13:49:11 +0100 fs r277452 : #i106816#
2009-11-11 13:48:53 +0100 fs r277451 : fix the CREATETARBAL target, which is expected to create the zips used as prebuilts. The *inc.zip missed the NSS files in case NSS was built externally
2009-11-11 12:15:34 +0100 fs r277449 : update ignore list
2009-11-11 12:09:23 +0100 fs r277448 : add a link to the Mozilla build tools download location
2009-11-11 12:07:16 +0100 fs r277447 : add a link to the Mozilla build tools download location
2009-11-06 16:23:12 +0100 fs r277393 : #i106643#
2009-11-03 23:20:29 +0100 fs r277328 : #i106574#
reverted the recent fix for issue #i105235#, and implemented a better one.
2009-11-02 12:59:48 +0100 fs r277294 : #i106550# errorOccured: also display the error when we're not in a nested form action - form actions are allowed to be triggered by other instances as well
2009-12-01 09:53:35 +00:00
[ --with-mozilla-build For Windows users, please supply the path to the
2009-08-26 08:22:01 +00:00
mozilla build tools.
Usage: --with-mozilla-build=<absolute path to mozilla build tools>
CWS-TOOLING: integrate CWS dba32j
2009-11-26 09:30:10 +0100 msc r277648 : #100000 fix urgent testscript error
2009-11-25 10:27:56 +0100 msc r277625 : #i100000 fix urgent testscript error
2009-11-17 22:16:46 +0100 fs r277544 : CWS-TOOLING: rebase CWS dba32j to branches/OOO320@277531 (milestone: OOO320:m5)
2009-11-17 14:26:47 +0100 fs r277535 : ooops, didn't mean to commit this uncommented line
2009-11-14 20:50:29 +0100 fs r277505 : add a --disable-pango switch to SM's configure options, and add a patch which makes certain code respect it (well, respect it better than currently, by not using some pango_x_* functions, which are not always available, even when pango itself is present)
2009-11-14 20:47:41 +0100 fs r277504 : spelling
2009-11-13 14:04:00 +0100 fs r277502 : #i100764# (commit approved by ab@openoffice.org): getModelFromBasic: do not start with the parent's parent when looking for ThisComponent, but walk up the anchestor chain, starting with the immediate parent
2009-11-13 11:04:15 +0100 fs r277496 : #i100764# better heuristics for determining whether or not to participate in the ThisComponent game
2009-11-13 11:02:30 +0100 fs r277495 : #i100764# set the WB_EXT_DOCUMENT style at the backing component's container window, when creating it without the TaskCreator (which would normally do this)
2009-11-11 13:49:11 +0100 fs r277452 : #i106816#
2009-11-11 13:48:53 +0100 fs r277451 : fix the CREATETARBAL target, which is expected to create the zips used as prebuilts. The *inc.zip missed the NSS files in case NSS was built externally
2009-11-11 12:15:34 +0100 fs r277449 : update ignore list
2009-11-11 12:09:23 +0100 fs r277448 : add a link to the Mozilla build tools download location
2009-11-11 12:07:16 +0100 fs r277447 : add a link to the Mozilla build tools download location
2009-11-06 16:23:12 +0100 fs r277393 : #i106643#
2009-11-03 23:20:29 +0100 fs r277328 : #i106574#
reverted the recent fix for issue #i105235#, and implemented a better one.
2009-11-02 12:59:48 +0100 fs r277294 : #i106550# errorOccured: also display the error when we're not in a nested form action - form actions are allowed to be triggered by other instances as well
2009-12-01 09:53:35 +00:00
At the moment of this writing, an installer for the mozilla build tools
can be obtained from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32.
2009-08-26 08:22:01 +00:00
],[MOZILLABUILD=$withval],)
2000-09-18 15:18:56 +00:00
AC_ARG_WITH(local-solenv,
2009-01-21 17:47:03 +00:00
[ --with-local-solenv If you have solenv in a location other than ./solenv,
2000-09-18 15:18:56 +00:00
please supply the path here.
Usage: --with-local-solenv=<absolute path to solenv>
],,)
AC_ARG_WITH(local-solver,
2009-01-21 17:47:03 +00:00
[ --with-local-solver if you have solver in a location other than ./solver,
2000-09-18 15:18:56 +00:00
please supply the path here.
Usage: --with-local-solver=<absolute path to solver>
],,)
AC_ARG_ENABLE(check-only,
2003-01-20 14:00:18 +00:00
[ --enable-check-only Use this option option if you just want to check your
environment. This option stops the generation of an
????env.set
2000-09-18 15:18:56 +00:00
Usage: --enable-check-only=yes
],,)
2009-09-16 14:49:32 +00:00
AC_ARG_ENABLE(ccache-skip,
[[ --enable-ccache-skip [default=auto] allow the use of --ccache-skip to
escape compiler flags that would otherwise prevent
caching of the result (currently used on Mac only)
NOTE: requires patched version because of a bug in
ccache (see issue 104567 for details and patch)
explicitly enable if your version of ccache doesn't
identify as version 2.4_OOo
]],,enable_ccache_skip=auto)
2000-12-07 17:33:25 +00:00
AC_ARG_WITH(lang,
2003-01-20 14:00:18 +00:00
[ --with-lang Use this option to build OpenOffice.org with
2004-10-27 14:22:48 +00:00
additional language support. English (US) is always
2003-01-20 14:00:18 +00:00
included by default. Separate multiple languages with
2004-10-27 14:22:48 +00:00
space. For all languages, use --with-lang=ALL.
2000-10-10 14:20:55 +00:00
2004-10-27 14:22:48 +00:00
Usage: --with-lang="es sw tu cs sk"
2000-12-07 17:33:25 +00:00
],,)
2006-11-01 12:49:31 +00:00
AC_ARG_WITH(poor-help-localizations,
2007-01-03 10:33:33 +00:00
[ --with-poor-help-localizations
Use this option to specify which languages have
unusable help localizations. Separate multiple
languages with space.
2006-11-01 12:49:31 +00:00
2007-01-03 10:33:33 +00:00
Usage: --with-poor-help-localizations="af ar be-BY ca"
2006-11-01 12:49:31 +00:00
],,)
2003-06-12 09:16:00 +00:00
AC_ARG_WITH(dict,
[ --with-dict Use this option to build OpenOffice.org with
2003-08-18 13:53:58 +00:00
dictionary support. ALL dictionaries are always
2003-06-12 09:16:00 +00:00
included by default unless overridden with
2003-08-18 13:53:58 +00:00
this option. Separate multiple dictionaries with
2003-06-12 09:16:00 +00:00
commas. For all dictionaries, use --with-dict=ALL.
Usage: --with-dict=ENGB,ENUS,ITIT
],,)
2007-06-11 13:00:24 +00:00
AC_ARG_WITH(intro-bitmaps,
[ --with-intro-bitmaps Prefer the specified intro bitmaps over the
the default one. Can be more than one (separated by
commas), the order means priority of fallback if the
first does not exist (in the installed tree).
Usage: --with-intro-bitmaps=/path/my_ooo_intro.bmp
],,)
AC_ARG_WITH(about-bitmaps,
[ --with-about-bitmaps Similarly to --with-intro-bitmaps, this allows
specification of bitmaps for the About box.
Usage: --with-about-bitmaps=/path/my_ooo_about.bmp
],,)
AC_ARG_WITH(vendor,
[ --with-vendor Set vendor of the build.
Usage: --with-vendor="John the Builder"
],,)
2007-06-27 12:59:09 +00:00
AC_ARG_WITH(unix-wrapper,
[ --with-unix-wrapper Redefines the name of the UNIX wrapper that will be used
in the desktop files and in the desktop-integration RPMs.
Usage: --with-unix-wrapper=ooffice
],,)
2000-12-07 17:33:25 +00:00
AC_ARG_WITH(asm-home,
[ --with-asm-home For Windows users, please supply the path for the
ml.exe assembler.
Usage: --with-asm-home=<path to ml.exe directory>
],,)
2002-08-27 09:31:11 +00:00
AC_ARG_WITH(os-version,
2003-12-01 16:39:04 +00:00
[ --with-os-version For FreeBSD users, use this option option to override
the detected OSVERSION.
2002-08-27 09:31:11 +00:00
Usage: --with-os-version=<OSVERSION>
],,)
2001-11-12 17:44:07 +00:00
AC_ARG_WITH(unzip-home,
2003-08-18 13:53:58 +00:00
[ --with-unzip-home Deprecated: use --with-zip-home instead],,)
AC_ARG_WITH(zip-home,
[ --with-zip-home If you use a non standard zip, for example windows
please supply the path for zip
2001-11-12 17:44:07 +00:00
2003-08-18 13:53:58 +00:00
Usage: --with-zip-home=<path to zip executable>
2001-11-12 17:44:07 +00:00
],,)
2002-01-14 12:22:39 +00:00
AC_ARG_WITH(mingwin,
2003-01-20 14:00:18 +00:00
[ --with-mingwin For Windows users, use the mingwin32 compiler within
2010-01-12 18:49:59 +01:00
cygwin environment
2002-01-14 12:22:39 +00:00
Usage: --with-mingwin=yes
2006-08-03 14:10:25 +00:00
2007-01-03 10:33:33 +00:00
For !Windows use, use the mingw32 C++ compiler to
(re-) build unowinreg.dll. Specify the MinGW C++
Compilers name.
2006-08-03 14:10:25 +00:00
Usage: --with-mingwin=i586-mingw32msvc-g++
2002-01-14 12:22:39 +00:00
],WITH_MINGWIN=$withval,WITH_MINGWIN=0)
2005-03-15 08:46:30 +00:00
AC_ARG_WITH(build-version,
2005-04-11 07:52:24 +00:00
[ --with-build-version Allows the builder to add a custom version tag
2005-03-15 08:46:30 +00:00
that will appear in the Help/About box for QA
purposes.
Usage: --with-build-version="Built by Jim"
],with_build_version=$withval)
2006-01-31 17:28:45 +00:00
AC_ARG_WITH(alloc,
2007-01-03 10:33:33 +00:00
[ --with-alloc Define which allocator to build with
(choices are oo, system, tcmalloc)
2006-01-31 17:28:45 +00:00
],,)
2008-07-31 12:44:41 +00:00
AC_ARG_ENABLE(verbose,
[ --enable-verbose Increase build verbosity.
--disable-verbose Decrease build verbosity.
],,)
2005-02-11 14:50:22 +00:00
2008-07-31 12:53:05 +00:00
BUILD_TYPE="OOo"
2005-02-11 14:50:22 +00:00
2000-09-18 15:18:56 +00:00
dnl ===================================================================
dnl Message.
dnl ===================================================================
echo "********************************************************************"
echo "* *"
2003-01-20 14:00:18 +00:00
echo "* OpenOffice.org build configuration. *"
2000-09-18 15:18:56 +00:00
echo "* *"
2006-01-10 13:33:05 +00:00
echo "* The configure process checks your platform to see whether *"
2003-01-20 14:00:18 +00:00
echo "* you can build OpenOffice.org on it. *"
2006-01-10 13:33:05 +00:00
echo "* This process checks all pre-requisites and generates a file *"
2000-09-18 15:18:56 +00:00
echo "* containing the necessary environment variables. *"
2003-04-28 16:02:04 +00:00
echo "* Source this file after configure has ended successfully. *"
2000-09-18 15:18:56 +00:00
echo "* *"
echo "* Any warning that is generated during the configure process *"
2006-01-10 13:33:05 +00:00
echo "* must be taken into account since it can be a reason for *"
2005-01-25 11:42:58 +00:00
echo "* an unsuccessful build of OpenOffice.org *"
2000-09-18 15:18:56 +00:00
echo "* *"
echo "********************************************************************"
2005-01-25 11:42:58 +00:00
echo ""
2000-09-18 15:18:56 +00:00
echo "********************************************************************"
echo "* *"
echo "* Checking the platform pre-requisites. *"
echo "* *"
echo "********************************************************************"
2005-01-25 11:42:58 +00:00
echo ""
2000-09-18 15:18:56 +00:00
dnl ===================================================================
dnl Configure pre-requisites.
dnl ===================================================================
cat /dev/null > warn
2008-01-31 08:58:39 +00:00
AC_PROG_EGREP
2002-10-02 08:18:56 +00:00
AC_PROG_AWK
AC_PATH_PROG( AWK, $AWK)
2000-09-18 15:18:56 +00:00
if test -z "$AWK"; then
AC_MSG_ERROR([install awk to run this script])
fi
2002-08-27 09:31:11 +00:00
2000-09-18 15:18:56 +00:00
AC_PATH_PROGS(SED, sed )
if test -z "$SED"; then
AC_MSG_ERROR([install sed to run this script])
fi
2002-08-27 09:31:11 +00:00
2005-03-07 16:28:33 +00:00
AC_MSG_CHECKING([for solenv environment])
if test -z "$with_local_solenv"; then
LOCAL_SOLENV="DEFAULT"
AC_MSG_RESULT([default])
else
LOCAL_SOLENV=$with_local_solenv
AC_MSG_RESULT([$with_local_solenv])
fi
AC_SUBST(LOCAL_SOLENV)
if test "$LOCAL_SOLENV" = "DEFAULT"; then
2009-01-21 17:47:03 +00:00
_solenv="./solenv"
2005-03-07 16:28:33 +00:00
else
_solenv="$LOCAL_SOLENV"
fi
2009-01-21 17:47:03 +00:00
AC_SUBST(_solenv)
2005-03-07 16:28:33 +00:00
if test -e $_solenv/inc/minor.mk; then
2009-01-21 17:47:03 +00:00
# Get UPD number from ./solenv/inc/minor.mk
UPD="`grep RSCVERSION= $_solenv/inc/minor.mk | $AWK -F"=" '{ print $2 }'`"
2005-03-07 16:28:33 +00:00
AC_SUBST(UPD)
2009-01-21 17:47:03 +00:00
SOURCEVERSION="`grep SOURCEVERSION= $_solenv/inc/minor.mk | $AWK -F"=" '{ print $2 }'`"
2005-03-07 16:28:33 +00:00
AC_SUBST(SOURCEVERSION)
else
2005-03-15 08:46:30 +00:00
AC_MSG_ERROR([$_solenv/inc/minor.mk missing but needed for architecture/os detecion and proper environment script generation...])
2005-03-07 16:28:33 +00:00
fi
2000-09-18 15:18:56 +00:00
dnl ===================================================================
dnl Checks for the operating system and processor.
dnl ===================================================================
2005-03-07 16:28:33 +00:00
AC_CANONICAL_SYSTEM
if test "$build" != "$host" -o "$build" != "$target" \
-o "$host" != "$target"; then
AC_MSG_WARN([cross-compiling by any means is not supported (yet)!])
echo "cross-compiling by any means is not supported (yet)!" >> warn
fi
2005-01-25 11:42:58 +00:00
2005-03-07 16:28:33 +00:00
if echo "$build_os" | grep cygwin; then
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([Cygwin version])
CygwinVer=`uname -r`
AC_MSG_RESULT([$CygwinVer])
if test "`echo $CygwinVer | $AWK -F . '{ print $1$2 }'`" -lt "15"; then
AC_MSG_ERROR([You need at least Cygwin V1.5.x])
2004-09-08 14:23:49 +00:00
fi
2002-08-27 09:31:11 +00:00
else
CygwinVer="false"
fi
dnl ===================================================================
dnl The following is a list of supported systems.
dnl Sequential to keep the logic very simple
dnl These values may be checked and reset later.
dnl ===================================================================
2005-03-07 16:28:33 +00:00
case "$build_os" in
solaris*)
2003-07-02 13:36:46 +00:00
test_gtk=yes
2008-11-30 07:56:43 +00:00
test_cairo=yes
2005-03-07 16:28:33 +00:00
test_kde=yes
test_cups=yes
2008-07-31 12:44:41 +00:00
test_randr=yes
2008-08-01 13:39:54 +00:00
test_freetype=yes
2005-03-15 08:46:30 +00:00
_os=SunOS
2009-04-23 15:52:08 +00:00
AC_PATH_PROG( GNUTAR, gtar,,$PATH:/usr/sfw/bin)
if test -z "$GNUTAR"; then
AC_MSG_ERROR([gtar (gnu tar) not found but needed. Install it (SUN Freeware package).])
fi
AC_SUBST(GNUTAR)
2005-01-25 11:42:58 +00:00
dnl ===========================================================
dnl check whether we're using solaris 6,7,8 - sparc or intel.
dnl ===========================================================
AC_MSG_CHECKING([the Solaris operating system release])
2005-03-07 16:28:33 +00:00
_os_release=`echo $build_os | $SED -e s/solaris2\.//`
2005-01-25 11:42:58 +00:00
if test "$_os_release" -lt "6"; then
AC_MSG_ERROR([use solaris >= 6 to build OpenOffice.org])
else
AC_MSG_RESULT([ok ($_os_release)])
fi
dnl check whether we're using a sparc or i386 processor
AC_MSG_CHECKING([the processor type])
2005-03-07 16:28:33 +00:00
if test "$build_cpu" = "sparc" -o "$build_cpu" = "i386"; then
AC_MSG_RESULT([ok ($build_cpu)])
2005-01-25 11:42:58 +00:00
else
AC_MSG_ERROR([only sparc and i386 processors are supported])
fi
2003-07-02 13:36:46 +00:00
;;
2010-04-16 11:53:57 +02:00
linux-gnu*|k*bsd*-gnu*)
2003-07-02 13:36:46 +00:00
test_gtk=yes
2008-11-30 07:56:43 +00:00
test_cairo=yes
2005-03-07 16:28:33 +00:00
test_kde=yes
2009-08-07 10:16:34 +00:00
test_kde4=yes
2005-03-07 16:28:33 +00:00
test_cups=yes
2008-07-31 12:44:41 +00:00
test_randr=yes
2008-08-01 13:39:54 +00:00
test_freetype=yes
2005-03-07 16:28:33 +00:00
_os=Linux
2003-07-02 13:36:46 +00:00
;;
2005-03-07 16:28:33 +00:00
gnu)
test_cups=no
_os=GNU
2003-07-02 13:36:46 +00:00
;;
2005-03-07 16:28:33 +00:00
cygwin*) # Windows
test_cups=no
2008-11-30 07:56:43 +00:00
test_cairo=yes
2008-08-01 13:39:54 +00:00
test_freetype=no
2005-03-07 16:28:33 +00:00
_os=WINNT
2003-07-02 13:36:46 +00:00
;;
2005-03-15 08:46:30 +00:00
darwin*) # Mac OS X
2006-05-24 11:03:52 +00:00
test_cups=yes
2006-12-01 13:52:44 +00:00
test_gtk=yes
2008-11-30 07:56:43 +00:00
test_cairo=yes
2008-07-31 12:44:41 +00:00
test_randr=no
2008-08-01 13:39:54 +00:00
test_freetype=no
2005-03-07 16:28:33 +00:00
_os=Darwin
2006-12-01 13:52:44 +00:00
if test "$enable_systray" = "yes" && test "$enable_gtk" != "no"; then
AC_MSG_WARN([Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray])
echo "Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >>warn
enable_systray=no
fi
2003-07-02 13:36:46 +00:00
;;
2007-11-02 12:05:03 +00:00
os2*)
test_x=no
test_cups=no
2008-07-31 12:44:41 +00:00
test_randr=no
2007-11-02 12:05:03 +00:00
test_gtk=no
2008-08-01 13:39:54 +00:00
test_freetype=no
2007-11-02 12:05:03 +00:00
_os=OS2
;;
2005-03-15 08:46:30 +00:00
freebsd*)
2003-07-02 13:36:46 +00:00
test_gtk=yes
2008-11-30 07:56:43 +00:00
test_cairo=yes
2005-03-07 16:28:33 +00:00
test_kde=yes
2009-08-07 10:16:34 +00:00
test_kde4=yes
2005-03-07 16:28:33 +00:00
test_cups=yes
2008-07-31 12:44:41 +00:00
test_randr=yes
2008-08-01 13:39:54 +00:00
test_freetype=yes
2003-12-01 16:39:04 +00:00
AC_MSG_CHECKING([the FreeBSD operating system release])
if test -n "$with_os_version"; then
OSVERSION="$with_os_version"
else
OSVERSION=`/sbin/sysctl -n kern.osreldate`
fi
AC_MSG_RESULT([found OSVERSION=$OSVERSION])
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([which thread library to use])
2003-12-01 16:39:04 +00:00
if test "$OSVERSION" -lt "500016"; then
2005-01-25 11:42:58 +00:00
PTHREAD_CFLAGS="-D_THREAD_SAFE"
2003-12-01 16:39:04 +00:00
PTHREAD_LIBS="-pthread"
2004-02-25 12:50:21 +00:00
elif test "$OSVERSION" -lt "502102"; then
2005-01-25 11:42:58 +00:00
PTHREAD_CFLAGS="-D_THREAD_SAFE"
2003-12-01 16:39:04 +00:00
PTHREAD_LIBS="-lc_r"
2004-02-25 12:50:21 +00:00
else
2005-01-25 11:42:58 +00:00
PTHREAD_CFLAGS=""
PTHREAD_LIBS="-pthread"
2003-12-01 16:39:04 +00:00
fi
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([$PTHREAD_LIBS])
2005-03-07 16:28:33 +00:00
_os=FreeBSD
2003-07-02 13:36:46 +00:00
;;
2005-03-07 16:28:33 +00:00
osf)
test_cups=no
2008-07-31 12:44:41 +00:00
test_randr=no
2005-03-07 16:28:33 +00:00
_os=OSF1
2003-07-02 13:36:46 +00:00
;;
2005-03-07 16:28:33 +00:00
netbsd)
2004-02-02 17:16:59 +00:00
test_gtk=yes
2008-11-30 07:56:43 +00:00
test_cairo=yes
2005-03-07 16:28:33 +00:00
test_kde=yes
2009-08-07 10:16:34 +00:00
test_kde4=yes
2005-03-07 16:28:33 +00:00
test_cups=no
2008-07-31 12:44:41 +00:00
test_randr=yes
2008-08-01 13:39:54 +00:00
test_freetype=yes
2004-02-02 17:16:59 +00:00
PTHREAD_CFLAGS="-pthread"
PTHREAD_LIBS="-pthread -lpthread"
2005-03-07 16:28:33 +00:00
_os=NetBSD
2003-07-02 13:36:46 +00:00
;;
2005-03-07 16:28:33 +00:00
aix*)
test_cups=no
2008-07-31 12:44:41 +00:00
test_randr=no
2008-08-01 13:39:54 +00:00
test_freetype=yes
2005-03-07 16:28:33 +00:00
PTHREAD_LIBS=-pthread
2003-07-02 13:36:46 +00:00
echo "AIX is an alpha port --- Use at own risk" >> warn
2005-03-07 16:28:33 +00:00
_os=AIX
2003-07-02 13:36:46 +00:00
;;
2002-08-27 09:31:11 +00:00
*)
2003-01-20 14:00:18 +00:00
AC_MSG_ERROR([$_os operating system is not suitable to build OpenOffice.org!])
2002-08-27 09:31:11 +00:00
;;
esac
2003-12-01 16:39:04 +00:00
AC_SUBST(OSVERSION)
2003-08-18 13:53:58 +00:00
AC_SUBST(PTHREAD_CFLAGS)
AC_SUBST(PTHREAD_LIBS)
2002-08-27 09:31:11 +00:00
2003-07-16 16:24:42 +00:00
dnl ===================================================================
2006-10-24 14:34:36 +00:00
dnl Set the ENABLE_CRASHDUMP variable.
2003-07-16 16:24:42 +00:00
dnl ===================================================================
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([whether to enable crashdump feature])
2010-01-18 11:59:59 +01:00
if test "$enable_crashdump" = "yes"; then
2003-07-16 16:24:42 +00:00
ENABLE_CRASHDUMP="TRUE"
2005-09-23 12:48:01 +00:00
BUILD_TYPE="$BUILD_TYPE CRASHREP"
2010-01-18 11:59:59 +01:00
AC_MSG_RESULT([yes])
2003-07-16 16:24:42 +00:00
else
2010-01-18 11:59:59 +01:00
ENABLE_CRASHDUMP=""
AC_MSG_RESULT([no])
2003-07-16 16:24:42 +00:00
fi
2003-08-18 13:53:58 +00:00
AC_SUBST(ENABLE_CRASHDUMP)
2006-01-20 09:52:29 +00:00
if test "$_os" = "WINNT"; then
BUILD_TYPE="$BUILD_TYPE TWAIN"
fi
2005-01-25 11:42:58 +00:00
if test "$_os" = "WINNT"; then
dnl ===================================================================
dnl Set the VC_STANDARD variable.
dnl ===================================================================
AC_MSG_CHECKING([whether to use the standard non-optimizing compiler])
if test "$enable_cl_standard" = "" -o "$enable_cl_standard" = "no"; then
VC_STANDARD=""
AC_MSG_RESULT([no])
else
VC_STANDARD="TRUE"
AC_MSG_RESULT([yes])
fi
AC_SUBST(VC_STANDARD)
2003-12-01 16:39:04 +00:00
fi
2006-08-28 11:35:18 +00:00
dnl ===================================================================
dnl Set the ENABLE_WERROR variable. (Activate --enable-werror)
dnl ===================================================================
AC_MSG_CHECKING([whether to turn warnings to errors])
if test -n "$enable_werror" && test "$enable_werror" != "no"; then
ENABLE_WERROR="TRUE"
AC_MSG_RESULT([yes])
AC_MSG_WARN([Turning warnings to errors has no effect in modules or])
AC_MSG_WARN([on platforms where it has been disabled explicitely])
echo "Turning warnings to errors has no effect in modules or on platforms where it has been disabled explicitely" >> warn
else
ENABLE_WERROR="FALSE"
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_WERROR)
2003-08-18 13:53:58 +00:00
dnl ===================================================================
dnl Set the ENABLE_DEBUG variable. (Activate --enable-symbols)
dnl ===================================================================
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([whether to do a debug build])
2005-04-11 07:52:24 +00:00
if test -n "$enable_debug" && test "$enable_debug" != "no"; then
2003-08-18 13:53:58 +00:00
ENABLE_DEBUG="TRUE"
if test -z "$enable_symbols"; then
enable_symbols="yes"
fi
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([yes])
2003-08-18 13:53:58 +00:00
else
ENABLE_DEBUG="FALSE"
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([no])
2003-08-18 13:53:58 +00:00
fi
AC_SUBST(ENABLE_DEBUG)
2004-09-08 14:23:49 +00:00
dnl ===================================================================
dnl Set the ENABLE_DBGUTIL variable
dnl ===================================================================
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([whether to build with additional debug utilities])
2005-04-11 07:52:24 +00:00
if test -n "$enable_dbgutil" && test "$enable_dbgutil" != "no"; then
2004-09-08 14:23:49 +00:00
PROEXT=""
PRODUCT=""
PROFULLSWITCH=""
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([yes])
2004-09-08 14:23:49 +00:00
else
PRODUCT="full"
PROFULLSWITCH="product=full"
PROEXT=".pro"
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([no, full product build])
2004-09-08 14:23:49 +00:00
fi
AC_SUBST(PRODUCT)
AC_SUBST(PROFULLSWITCH)
AC_SUBST(PROEXT)
2003-08-18 13:53:58 +00:00
dnl ===================================================================
dnl First setting is whether to include symbols into final build.
dnl ===================================================================
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([whether to include symbols into final build])
2005-04-11 07:52:24 +00:00
if test -n "$enable_symbols" && test "$enable_symbols" != "no"; then
2003-08-18 13:53:58 +00:00
if test "$enable_symbols" = "yes" -o "$enable_symbols" = "TRUE"; then
ENABLE_SYMBOLS="TRUE"
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([yes])
2003-08-18 13:53:58 +00:00
else
if test "$enable_symbols" = "SMALL" -o "$enable_symbols" = "small"; then
2003-12-17 14:01:13 +00:00
ENABLE_SYMBOLS="SMALL"
2006-10-24 14:34:36 +00:00
AC_MSG_RESULT([yes, small ones])
2003-12-17 14:01:13 +00:00
else if test "$enable_symbols" != "no" ; then
2004-06-16 09:48:18 +00:00
echo enable symbols is: $enable_symbols
AC_MSG_ERROR([--enable-symbols only accepts yes, TRUE or SMALL as parameter.])
2005-01-25 11:42:58 +00:00
else
ENABLE_SYMBOLS=
2004-06-16 09:48:18 +00:00
fi
2003-08-18 13:53:58 +00:00
fi
fi
2004-06-16 09:48:18 +00:00
else
ENABLE_SYMBOLS=
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([no])
2003-08-18 13:53:58 +00:00
fi
AC_SUBST(ENABLE_SYMBOLS)
2003-07-16 16:24:42 +00:00
2006-10-24 14:34:36 +00:00
dnl ===================================================================
dnl Determine if the solver is to be stripped or not.
dnl ===================================================================
AC_MSG_CHECKING([whether to strip the solver or not.])
if test -n "$enable_strip_solver"; then
if test "$enable_strip_solver" = "yes"; then
DISABLE_STRIP=
else if test "$enable_strip_solver" = "no"; then
DISABLE_STRIP="TRUE"
else
AC_MSG_ERROR([--disable-strip-solver only accepts yes or no as parameter.])
fi
fi
else
if test -n "$ENABLE_SYMBOLS"; then
DISABLE_STRIP="TRUE"
else
DISABLE_STRIP=
fi
fi
AC_SUBST(DISABLE_STRIP)
2004-06-16 09:48:18 +00:00
dnl ===================================================================
dnl Build options
dnl ===================================================================
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([whether to enable native CUPS support])
2005-03-23 07:46:00 +00:00
if test "$test_cups" = "yes" -a \( "$enable_cups" = "yes" -o "$enable_cups" = "TRUE" \) ; then
ENABLE_CUPS="TRUE"
AC_MSG_RESULT([yes])
2004-06-16 09:48:18 +00:00
else
ENABLE_CUPS=""
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([no])
2004-06-16 09:48:18 +00:00
fi
AC_SUBST(ENABLE_CUPS)
2005-03-23 07:46:00 +00:00
AC_MSG_CHECKING([whether to enable fontconfig support])
if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a \( "$enable_fontconfig" = "yes" -o "$enable_fontconfig" = "TRUE" \); then
2004-06-16 09:48:18 +00:00
ENABLE_FONTCONFIG="TRUE"
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([yes])
2004-06-16 09:48:18 +00:00
else
ENABLE_FONTCONFIG=""
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([no])
2004-06-16 09:48:18 +00:00
fi
AC_SUBST(ENABLE_FONTCONFIG)
2010-01-22 18:34:39 +01:00
dnl ===================================================================
dnl find external tarballs.
dnl ===================================================================
if test -z $TARFILE_LOCATION; then
TARFILE_LOCATION="DEFAULT"
fi
AC_SUBST(TARFILE_LOCATION)
if test -z "$enable_fetch_external" || test "$enable_fetch_external" = "yes" \
&& test -z "$with_system_libs" -a "$with_system_jars" != "no"; then
DO_FETCH_TARBALLS="yes"
fi
AC_SUBST(DO_FETCH_TARBALLS)
2008-04-03 16:27:56 +00:00
2005-02-11 14:50:22 +00:00
dnl ===================================================================
dnl Disable legacy binary file formats filters
dnl ===================================================================
2005-03-08 15:31:52 +00:00
AC_MSG_CHECKING([whether to enable filters for legacy binary file formats (StarOffice 5.2)])
2005-02-11 14:50:22 +00:00
if test "$enable_binfilter" = "no"; then
WITH_BINFILTER="NO"
2005-03-08 15:31:52 +00:00
AC_MSG_RESULT([no])
2005-02-11 14:50:22 +00:00
else
WITH_BINFILTER="YES"
BUILD_TYPE="$BUILD_TYPE BINFILTER"
2005-03-08 15:31:52 +00:00
AC_MSG_RESULT([yes])
2005-02-11 14:50:22 +00:00
fi
AC_SUBST(WITH_BINFILTER)
2005-01-25 11:42:58 +00:00
if test "$_os" = "WINNT"; then
AC_MSG_CHECKING([whether to use DirectX])
if test "$enable_directx" = "yes" -o "$enable_directx" = "TRUE" -o "$enable_directx" = ""; then
ENABLE_DIRECTX="TRUE"
AC_MSG_RESULT([yes])
else
ENABLE_DIRECTX=""
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_DIRECTX)
2004-06-16 09:48:18 +00:00
2006-09-25 12:33:13 +00:00
AC_MSG_CHECKING([whether to use ActiveX])
if test "$enable_activex" = "yes" -o "$enable_activex" = "TRUE" -o "$enable_activex" = ""; then
2006-10-24 14:34:36 +00:00
DISABLE_ACTIVEX=""
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([yes])
else
2006-10-24 14:34:36 +00:00
DISABLE_ACTIVEX="TRUE"
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([no])
fi
2006-10-24 14:34:36 +00:00
AC_SUBST(DISABLE_ACTIVEX)
2008-07-31 12:53:05 +00:00
AC_MSG_CHECKING([whether to use ATL])
if test "$enable_atl" = "yes" -o "$enable_atl" = "TRUE" -o "$enable_atl" = ""; then
DISABLE_ATL=""
AC_MSG_RESULT([yes])
else
DISABLE_ATL="TRUE"
AC_MSG_RESULT([no])
fi
AC_SUBST(DISABLE_ATL)
2004-10-11 12:48:26 +00:00
fi
2003-12-17 14:01:13 +00:00
dnl ===================================================================
dnl Disable rpath in shared libraries?
dnl ===================================================================
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([whether to use RPATH in shared libraries])
2003-12-17 14:01:13 +00:00
if test "$enable_rpath" = "no"; then
ENABLE_RPATH="no"
else
ENABLE_RPATH="yes"
fi
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([$ENABLE_RPATH])
2003-12-17 14:01:13 +00:00
AC_SUBST(ENABLE_RPATH)
2005-02-11 14:50:22 +00:00
dnl Test whether to include MySpell dictionaries
dnl ===================================================================
AC_MSG_CHECKING([whether to include MySpell dictionaries])
2006-01-31 17:28:45 +00:00
if test -z "$with_myspell_dicts" || test "$with_myspell_dicts" = "yes"; then
2005-02-11 14:50:22 +00:00
AC_MSG_RESULT([yes])
WITH_MYSPELL_DICTS=YES
BUILD_TYPE="$BUILD_TYPE DICTIONARIES"
else
AC_MSG_RESULT([no])
WITH_MYSPELL_DICTS=NO
fi
AC_SUBST(WITH_MYSPELL_DICTS)
2008-07-31 12:44:41 +00:00
if test "$WITH_MYSPELL_DICTS" = "NO"; then
AC_MSG_CHECKING([whether to use dicts from external paths])
if test -n "$with_system_dicts" -a "$with_system_dicts" = "yes"; then
AC_MSG_RESULT([yes])
SYSTEM_DICTS=YES
AC_MSG_CHECKING([for spelling dictionary directory])
if test -n "$with_external_dict_dir"; then
DICT_SYSTEM_DIR=file://$with_external_dict_dir
else
DICT_SYSTEM_DIR=file:///usr/share/hunspell
fi
AC_MSG_RESULT([$DICT_SYSTEM_DIR])
AC_MSG_CHECKING([for hyphenation patterns directory])
if test -n "$with_external_hyph_dir"; then
HYPH_SYSTEM_DIR=file://$with_external_hyph_dir
else
HYPH_SYSTEM_DIR=file:///usr/share/hyphen
fi
AC_MSG_RESULT([$HYPH_SYSTEM_DIR])
AC_MSG_CHECKING([for thesaurus directory])
if test -n "$with_external_thes_dir"; then
THES_SYSTEM_DIR=file://$with_external_thes_dir
else
THES_SYSTEM_DIR=file:///usr/share/mythes
fi
AC_MSG_RESULT([$THES_SYSTEM_DIR])
else
AC_MSG_RESULT([no])
SYSTEM_DICTS=NO
fi
fi
AC_SUBST(SYSTEM_DICTS)
AC_SUBST(DICT_SYSTEM_DIR)
AC_SUBST(HYPH_SYSTEM_DIR)
AC_SUBST(THES_SYSTEM_DIR)
2004-09-08 14:23:49 +00:00
if test $_os = "WINNT"; then
2010-01-12 18:49:59 +01:00
AC_MSG_CHECKING([Windows build environment sanity])
2003-01-20 14:00:18 +00:00
dnl ===================================================================
dnl Sanity check! Native windows programs cannot use cygwin symlinks!
dnl ===================================================================
2003-06-12 09:16:00 +00:00
dnl As long as awk instead of $AWK is used somewhere in the sources,
dnl check for $AWK and awk. $AWK is pointing to gawk in cygwin.
if test -L $AWK -o -L `which awk` -o -L `which tar` -o -L `which gunzip` ; then
AC_MSG_ERROR([$AWK, awk, tar or gunzip is a cygwin symlink!
2003-01-20 14:00:18 +00:00
Native windows programs cannot use cygwin symlinks. Remove the symbolic
link, and copy the program to the name of the link.])
2003-06-12 09:16:00 +00:00
fi
dnl ===================================================================
2006-09-15 10:19:11 +00:00
dnl Another sanity check! More a band-aid. winenv.* adds guw.exe to
dnl CC and CXX but the configure checks here assume that guw.exe
2005-03-08 15:31:52 +00:00
dnl (if needed at all) is not yet present.
dnl ===================================================================
2007-03-26 13:51:20 +00:00
CC=`echo $CC | $SED "s/^guw.exe //"`
CXX=`echo $CXX | $SED "s/^guw.exe //"`
2005-03-08 15:31:52 +00:00
dnl ===================================================================
2003-06-12 09:16:00 +00:00
dnl If $CC is set to a MinGW compiler, e.g. "gcc -mno-cygwin" enable
dnl $WITH_MINGWIN
dnl ===================================================================
if test -n "$CC";then
2007-03-26 13:51:20 +00:00
if test "`$CC -dumpmachine 2>/dev/null | $SED -e 's/^.*-//'`" = "mingw32"; then
2003-06-12 09:16:00 +00:00
WITH_MINGWIN="yes"
fi
fi
2002-03-01 18:08:55 +00:00
dnl ===================================================================
2006-07-05 21:32:27 +00:00
if test "$WITH_MINGWIN" = "yes" ; then
2003-06-12 09:16:00 +00:00
if test -z "$CC"; then
CC="gcc -mno-cygwin"
CXX="g++ -mno-cygwin"
fi
2002-03-01 18:08:55 +00:00
fi
2010-01-12 18:49:59 +01:00
AC_MSG_RESULT([ok])
2000-12-07 17:33:25 +00:00
fi
2005-01-25 11:42:58 +00:00
AC_SUBST(WITH_MINGWIN)
2002-08-27 09:31:11 +00:00
2006-09-15 10:19:11 +00:00
dnl ===================================================================
2009-10-26 16:04:03 +01:00
dnl Extra check for Windows. cygwin builds need gcc to build dmake
2006-09-15 10:19:11 +00:00
dnl and g++ to build guw.exe although MS cl (or MinGW) is used to
dnl build OOo.
dnl ===================================================================
2009-10-26 16:04:03 +01:00
if test "$_os" = "WINNT" ; then
2006-09-15 10:19:11 +00:00
AC_MSG_CHECKING([for cygwin gcc/g++])
if which gcc > /dev/null && which g++ > /dev/null ; then
AC_MSG_RESULT([found])
else
AC_MSG_ERROR([cygwin gcc and g++ are needed, please install them.])
fi
fi
2002-08-27 09:31:11 +00:00
dnl ===================================================================
2010-01-12 18:49:59 +01:00
dnl Check whether the bash shell can be used.
2002-08-27 09:31:11 +00:00
dnl ===================================================================
2010-01-12 18:49:59 +01:00
AC_PATH_PROG(SHELLPATH, bash)
if test -z "$SHELLPATH"; then
AC_MSG_ERROR([bash not found in \$PATH])
2005-01-25 11:42:58 +00:00
else
2010-01-12 18:49:59 +01:00
SHELLPATH=`echo $SHELLPATH | $SED -n "s/\/bash$//p"`
2000-09-18 15:18:56 +00:00
fi
2006-07-05 21:32:27 +00:00
AC_SUBST(SHELLPATH)
2002-08-27 09:31:11 +00:00
2000-09-18 15:18:56 +00:00
dnl ===================================================================
2002-08-27 09:31:11 +00:00
dnl Checks for c compiler,
dnl The check for the c++ compiler is later on.
2000-09-18 15:18:56 +00:00
dnl ===================================================================
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([gcc home])
if test -z "$with_gcc_home"; then
GCC_HOME=`which gcc | $SED -e s,/bin/gcc,,`
else
GCC_HOME="$with_gcc_home"
fi
AC_MSG_RESULT($GCC_HOME)
AC_SUBST(GCC_HOME)
2010-03-11 23:09:06 +01:00
save_CC=$CC
save_CXX=$CXX
2002-08-27 09:31:11 +00:00
if test -n "$with_gcc_home"; then
if test -z "$CC"; then
CC="$with_gcc_home/bin/gcc"
2001-11-12 19:34:25 +00:00
fi
2002-08-27 09:31:11 +00:00
fi
2004-02-02 17:16:59 +00:00
dnl The following checks for gcc, cc and then cl (if it weren't guarded for win32)
if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
AC_PROG_CC
fi
2000-09-18 15:18:56 +00:00
2003-04-28 16:02:04 +00:00
COMPATH=`dirname "$CC"`
if test "$COMPATH" = "." ; then
AC_PATH_PROGS(COMPATH, $CC)
dnl double square bracket to get single because of M4 quote...
COMPATH=`echo $COMPATH | $SED "s@/[[^/:]]*\\\$@@"`;
2002-03-17 21:13:44 +00:00
fi
2009-11-27 15:39:46 +01:00
COMPATH=`echo $COMPATH | $SED "s@/[[Bb]][[Ii]][[Nn]]\\\$@@"`;
echo $COMPATH
2002-08-27 09:31:11 +00:00
dnl ===================================================================
2003-12-01 16:39:04 +00:00
dnl Test the gcc version, 3 is OK
2002-08-27 09:31:11 +00:00
dnl ===================================================================
2005-03-01 08:41:28 +00:00
GCCVER=20995
2004-02-02 17:16:59 +00:00
if test \( "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes" \) -a "$GCC" = "yes"; then
2002-08-27 09:31:11 +00:00
AC_MSG_CHECKING([the GNU gcc compiler version])
2003-04-28 16:02:04 +00:00
_gcc_version=`$CC -dumpversion`
_gcc_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'`
2005-02-24 13:44:42 +00:00
GCCVER=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
2002-08-27 09:31:11 +00:00
2005-04-04 06:49:14 +00:00
if test "$_gcc_major" -lt "3"; then
AC_MSG_ERROR([found version "$_gcc_version", use version 3+ of the gcc compiler])
else
2005-02-24 13:44:42 +00:00
if test "$GCCVER" -eq "030203"; then
if test "$ENABLE_SYMBOLS" = "SMALL"; then
2003-12-01 16:39:04 +00:00
AC_MSG_ERROR([version "$_gcc_version" gives internal error with small.])
2005-02-24 13:44:42 +00:00
fi
2003-08-18 13:53:58 +00:00
fi
2000-09-18 15:18:56 +00:00
fi
2010-03-11 23:09:06 +01:00
if test "$_os" = "Darwin" -a "$GCCVER" -ge "040100" ; then
if test -z "$save_CC" -a -x "$GCC_HOME/bin/gcc-4.0" ; then
CC=$GCC_HOME/bin/gcc-4.0
GCCVER2=`"$CC" -dumpversion | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
if test "$GCCVER2" -ge "040000" -a "$GCCVER2" -lt "040100" ; then
GCCVER=$GCCVER2
fi
fi
if test "$GCCVER" -ge "040100" ; then
AC_MSG_ERROR([You need to use the gcc-4.0 compiler (gcc $_gcc_version won't work with the MacOSX10.4u.sdk) - set CC accordingly])
else
AC_MSG_RESULT([implicitly using CC=$CC])
fi
else
AC_MSG_RESULT([checked (gcc $_gcc_version)])
fi
2005-01-18 13:55:20 +00:00
if test "$_os" = "SunOS"; then
AC_MSG_CHECKING([gcc linker])
if $CC -Wl,--version 2>&1 |head -n 1| grep -v GNU > /dev/null;then
AC_MSG_ERROR([failed (not GNU ld). Use GNU ld instead of Sun ld on Solaris])
fi
AC_MSG_RESULT([ok (GNU ld)])
fi
2005-02-24 13:44:42 +00:00
fi
AC_SUBST(GCCVER)
2002-08-27 09:31:11 +00:00
2009-04-27 11:24:10 +00:00
HAVE_LD_BSYMBOLIC_FUNCTIONS=
if test "$GCC" = "yes"; then
AC_MSG_CHECKING( for -Bsymbolic-functions linker support )
bsymbolic_functions_ldflags_save=$LDFLAGS
LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo"
AC_LINK_IFELSE([AC_LANG_PROGRAM([
#include <stdio.h>
],[
printf ("hello world\n");
])], HAVE_LD_BSYMBOLIC_FUNCTIONS=TRUE, [])
if test "z$HAVE_LD_BSYMBOLIC_FUNCTIONS" = "zTRUE"; then
AC_MSG_RESULT( found )
else
AC_MSG_RESULT( not found )
fi
LDFLAGS=$bsymbolic_functions_ldflags_save
fi
AC_SUBST(HAVE_LD_BSYMBOLIC_FUNCTIONS)
2007-05-10 15:40:23 +00:00
dnl ===================================================================
dnl Set the ENABLE_PCH variable. (Activate --enable-pch)
dnl ===================================================================
AC_MSG_CHECKING([whether to enable pch feature])
if test -n "$enable_pch" && test "$enable_pch" != "no"; then
if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
ENABLE_PCH="TRUE"
AC_MSG_RESULT([yes])
dnl There is no PCH support in GCC versions prior to this
elif test "$GCC" = "yes" -a "$GCCVER" -gt "030400"; then
ENABLE_PCH="TRUE"
AC_MSG_RESULT([yes])
else
ENABLE_PCH=""
AC_MSG_WARN([Precompiled header not yet supported for your platform/compiler])
fi
else
ENABLE_PCH=""
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_PCH)
2002-10-02 08:18:56 +00:00
dnl ===================================================================
2009-07-16 13:36:50 +00:00
dnl Set the NO_HIDS variable. (enable with --enable-hids)
dnl ===================================================================
AC_MSG_CHECKING([whether to enable hid list feature])
if test -n "$enable_hids" && test "$enable_hids" != "no"; then
NO_HIDS=""
AC_MSG_RESULT([yes])
else
NO_HIDS="TRUE"
AC_MSG_RESULT([no])
fi
AC_SUBST(NO_HIDS)
dnl ===================================================================
2002-10-02 08:18:56 +00:00
dnl Search all the common names for GNU make
dnl ===================================================================
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([for GNU make])
for a in "$MAKE" $GNUMAKE make gmake gnumake; do
2002-10-02 08:18:56 +00:00
$a --version 2> /dev/null | grep GNU 2>&1 > /dev/null
2005-01-25 11:42:58 +00:00
if test $? -eq 0; then
GNUMAKE=$a
break
2002-10-02 08:18:56 +00:00
fi
2005-01-25 11:42:58 +00:00
done
AC_MSG_RESULT($GNUMAKE)
2009-01-21 17:47:03 +00:00
if test -z "$GNUMAKE"; then
AC_MSG_ERROR([not found. install GNU make.])
fi
2002-10-02 08:18:56 +00:00
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([the GNU make version])
2009-01-21 17:47:03 +00:00
_make_version=`$GNUMAKE --version | grep GNU | $SED -e 's@^[[^0-9]]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
_make_longver=`echo $_make_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
if test "$_make_longver" -ge "037901" ; then
AC_MSG_RESULT([$GNUMAKE $_make_version])
2002-10-02 08:18:56 +00:00
else
2009-01-21 17:47:03 +00:00
if test "$_os" = "Darwin"; then
if test "$_make_longver" -ge "037900" ; then
AC_MSG_RESULT([$GNUMAKE $_make_version])
2002-10-02 08:18:56 +00:00
else
2009-01-21 17:47:03 +00:00
AC_MSG_WARN([failed ($GNUMAKE $_make_version need 3.79.0+)])
2002-10-02 08:18:56 +00:00
fi
2009-01-21 17:47:03 +00:00
else
AC_MSG_ERROR([failed ($GNUMAKE $_make_version need 3.79.1+)])
fi
2002-10-02 08:18:56 +00:00
fi
2003-08-18 13:53:58 +00:00
AC_SUBST(GNUMAKE)
2002-10-02 08:18:56 +00:00
2009-04-23 15:52:08 +00:00
dnl ===================================================================
dnl Search all the common names for GNU tar
dnl ===================================================================
AC_MSG_CHECKING([for GNU tar])
for a in $GNUTAR gtar gnutar tar; do
$a --version 2> /dev/null | grep GNU 2>&1 > /dev/null
if test $? -eq 0; then
GNUTAR=$a
break
fi
done
AC_MSG_RESULT($GNUTAR)
if test -z "$GNUTAR"; then
AC_MSG_ERROR([not found. install GNU tar.])
fi
AC_SUBST(GNUTAR)
2002-08-27 09:31:11 +00:00
dnl ===================================================================
dnl Test the solaris compiler version
dnl ===================================================================
2000-09-18 15:18:56 +00:00
if test "$_os" = "SunOS"; then
if test "$CC" = "cc"; then
AC_PATH_PROGS(_cc, cc)
2009-11-27 15:39:46 +01:00
COMPATH=`echo $_cc | $SED -n "s/\/bin\/cc//p"`
2007-06-27 11:11:48 +00:00
AC_MSG_CHECKING([the SunStudio C/C++ compiler version])
2000-09-18 15:18:56 +00:00
dnl cc -V outputs to standard error!!!!
2007-06-27 11:11:48 +00:00
_sunstudio_string=`$CC -V 2>&1 | grep '^cc' | sed -e 's/.* C //'`
_sunstudio_version=`echo $_sunstudio_string | $AWK '{ print $1 }'`
_sunstudio_major=`echo $_sunstudio_version | $AWK -F. '{ print $1 }'`
if test "$_sunstudio_major" != "5"; then
AC_MSG_ERROR([found version "$_sunstudio_version", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler])
2000-09-18 15:18:56 +00:00
else
2007-06-27 11:11:48 +00:00
_sunstudio_minor=`echo $_sunstudio_version | $AWK -F. '{ if ($2 == 5) print "true"; else if ($2 == 7) print "true"; else if ($2 == 8) print "true"; else if ($2 == 9) print "true"; else print "false" }'`
if test "$_sunstudio_minor" = "false"; then
AC_MSG_ERROR([found version "$_sunstudio_version", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler])
2000-09-18 15:18:56 +00:00
else
dnl compiler will do
AC_MSG_RESULT([checked])
fi
fi
fi
fi
2002-08-27 09:31:11 +00:00
2007-07-31 12:09:29 +00:00
if test "$GCC" = "yes"; then
AC_MSG_CHECKING( for --hash-style=both linker support )
hash_style_ldflags_save=$LDFLAGS
LDFLAGS="$LDFLAGS -Wl,--hash-style=both"
AC_LINK_IFELSE([AC_LANG_PROGRAM([
#include <stdio.h>
],[
printf ("hello world\n");
])], HAVE_LD_HASH_STYLE=TRUE, HAVE_LD_HASH_STYLE=FALSE)
if test "z$HAVE_LD_HASH_STYLE" = "zTRUE"; then
AC_MSG_RESULT( found )
else
AC_MSG_RESULT( not found )
fi
LDFLAGS=$hash_style_ldflags_save
fi
AC_SUBST(HAVE_LD_HASH_STYLE)
2002-08-27 09:31:11 +00:00
dnl ===================================================================
dnl Test the Compaq compiler for OSF1
dnl ===================================================================
2001-01-05 15:32:05 +00:00
if test "$_os" = "OSF1"; then
if test "$CC" = "cc"; then
AC_PATH_PROGS(_cc, cc)
2009-11-27 15:39:46 +01:00
COMPATH=`echo $_cc | $SED -n "s/\/bin\/cc//p"`
2001-01-05 15:32:05 +00:00
AC_MSG_WARN([******* $_cc , $COMPATH])
AC_MSG_CHECKING([the Compaq C compiler version])
dnl cc -V outputs to standard error!!!!
_compaqc_version=`$CC -V 2>&1 | $AWK '{ print $3 }'`
_compaqc_major=`echo $_compaqc_version | $AWK -F. '{ print $1 }'`
if test "$_compaqc_major" != "T6"; then
2003-04-28 16:02:04 +00:00
AC_MSG_ERROR([found version "$_compaqc_version", use version 6 of the Compaq C compiler])
2001-01-05 15:32:05 +00:00
else
dnl compiler will do
AC_MSG_RESULT([checked])
fi
fi
fi
2006-05-05 07:11:05 +00:00
dnl ===================================================================
dnl Check whether there's a Perl version available.
dnl ===================================================================
if test -z "$with_perl_home"; then
AC_PATH_PROG(PERL, perl)
else
2008-07-31 12:44:41 +00:00
if test "$_os" = "WINNT"; then
with_perl_home=`cygpath -u "$with_perl_home"`
fi
2006-05-05 07:11:05 +00:00
_perl_path="$with_perl_home/bin/perl"
if test -x "$_perl_path"; then
PERL=$_perl_path
else
AC_MSG_ERROR([$_perl_path not found])
fi
fi
dnl ===================================================================
dnl Testing for Perl version 5 or greater.
dnl $] is the perl version variable, it is returned as an integer
dnl ===================================================================
if test "$PERL"; then
AC_MSG_CHECKING([the Perl version])
${PERL} -e "exit($]);"
_perl_version=$?
if test "$_perl_version" -lt 5; then
AC_MSG_ERROR([found Perl version "$_perl_version", use version 5 of Perl])
fi
AC_MSG_RESULT([checked (perl $_perl_version)])
else
AC_MSG_ERROR([Perl not found, install version 5 of Perl])
fi
AC_SUBST(PERL)
dnl ===================================================================
dnl Testing for required Perl modules
dnl ===================================================================
AC_MSG_CHECKING([for required Perl modules])
if `$PERL -e 'use Archive::Zip;'`; then
AC_MSG_RESULT([all modules found])
else
AC_MSG_ERROR([Failed to find some modules])
fi
2002-08-27 09:31:11 +00:00
dnl ===================================================================
2003-06-12 09:16:00 +00:00
dnl Check which Microsoft C/C++ or MinGW compiler is used for WINNT
2002-08-27 09:31:11 +00:00
dnl ===================================================================
2000-09-18 15:18:56 +00:00
if test "$_os" = "WINNT"; then
2002-01-14 12:22:39 +00:00
if test "$WITH_MINGWIN" != "yes"; then
2006-05-05 07:11:05 +00:00
AC_MSG_CHECKING([for friendly registry keys])
2006-09-25 12:33:13 +00:00
# VS.Net 2003, VS.Net 2005
2006-05-05 07:11:05 +00:00
if test -z "$with_cl_home"; then
2009-01-24 12:09:06 +00:00
vctest=`./oowintool --msvc-productdir`;
2006-05-05 07:11:05 +00:00
if test -x "$vctest/bin/cl.exe"; then
with_cl_home=$vctest;
fi
2008-07-31 12:44:41 +00:00
else
with_cl_home=`cygpath -u "$with_cl_home"`
2006-05-05 07:11:05 +00:00
fi
AC_MSG_RESULT([done])
2003-08-18 13:53:58 +00:00
dnl ===========================================================
2008-07-31 12:44:41 +00:00
dnl Check for mspdb71.dll/mspdb80.dll
2003-08-18 13:53:58 +00:00
dnl ===========================================================
2008-07-31 12:44:41 +00:00
dnl .NET 2003/5/8 Compiler
if test -n "$with_mspdb_path";then
with_mspdb_path=`cygpath -u "$with_mspdb_path"`
2003-08-18 13:53:58 +00:00
fi
2008-07-31 12:44:41 +00:00
if test -e "$with_mspdb_path/mspdb71.dll" -o -e "$with_mspdb_path/mspdb80.dll"; then
2003-08-18 13:53:58 +00:00
MSPDB_PATH="$with_mspdb_path"
fi
2008-07-31 12:44:41 +00:00
dnl .NET 2003 case
2005-01-05 09:41:55 +00:00
if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb71.dll"; then
2003-08-18 13:53:58 +00:00
MSPDB_PATH="$with_cl_home/../Common7/IDE"
fi
2008-07-31 12:44:41 +00:00
dnl .NET 2005/2008 case
2006-09-25 12:33:13 +00:00
if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb80.dll"; then
MSPDB_PATH="$with_cl_home/../Common7/IDE"
2004-02-04 11:32:51 +00:00
fi
2008-07-31 12:44:41 +00:00
dnl Windows SDK 6.0 case
if test -z "$MSPDB_PATH" -a -e "$with_cl_home/bin/mspdb80.dll"; then
MSPDB_PATH="$with_cl_home/bin"
fi
if test -z "$MSPDB_PATH";then
dnl AC_PATH_PROG only checks if MSPDB_PATH is still empty
AC_PATH_PROG(MSPDB_PATH, mspdb80.dll)
AC_PATH_PROG(MSPDB_PATH, mspdb71.dll)
MSPDB_PATH=`dirname "$MSPDB_PATH"`
fi
2004-06-16 09:48:18 +00:00
2003-08-18 13:53:58 +00:00
if test -z "$MSPDB_PATH"; then
2008-07-31 12:44:41 +00:00
AC_MSG_ERROR([You need a mspdb71.dll/mspdb80.dll, make sure it's in the path or use --with-mspdb-path])
2003-08-18 13:53:58 +00:00
fi
MSPDB_PATH=`cygpath -d "$MSPDB_PATH"`
MSPDB_PATH=`cygpath -u "$MSPDB_PATH"`
2008-07-31 12:44:41 +00:00
dnl The path needs to be added before cl is called
2003-08-18 13:53:58 +00:00
PATH="$MSPDB_PATH:$PATH"
2006-05-05 07:11:05 +00:00
AC_MSG_CHECKING([the Microsoft C/C++ Compiler])
2003-06-12 09:16:00 +00:00
if test -x "$with_cl_home/bin/cl.exe"; then
CC="$with_cl_home/bin/cl.exe"
else
AC_PATH_PROG(CC, cl.exe)
fi
2002-10-02 08:18:56 +00:00
if test -e "$CC"; then
2004-09-08 14:23:49 +00:00
# This gives us a posix path with 8.3 filename restrictions
CC=`cygpath -d "$CC"`
CC=`cygpath -u "$CC"`
2003-06-12 09:16:00 +00:00
# Remove /cl.exe from CC case insensitive
2004-09-08 14:23:49 +00:00
AC_MSG_RESULT([found ($CC)])
2009-11-30 16:32:24 +01:00
COMPATH=`echo $CC | $SED 's@\/[[Bb]][[Ii]][[Nn]]\/[[cC]][[lL]]\.[[eE]][[xX]][[eE]]@@'`
2009-11-27 15:39:46 +01:00
export INCLUDE=`cygpath -d "$COMPATH/Include"`
2003-06-12 09:16:00 +00:00
dnl Check which Microsoft C/C++ compiler is found
AC_MSG_CHECKING([the Version of Microsoft C/C++ Compiler])
2004-09-08 14:23:49 +00:00
dnl The following find microsoft, matches nn.nn.nnnn then pulls numbers out.
CCNUMVER=`$CC 2>&1 | $AWK "/Microsoft/ && /..\\...\\...../ {
2003-06-12 09:16:00 +00:00
x = match( \\\$0, /..\\...\\...../ )
CCversion = substr( \\\$0, RSTART, RLENGTH)
tokencount = split (CCversion,vertoken,\".\")
for ( i = 1 ; i <= tokencount ; i++ ) {
printf (\"%04d\",vertoken[[i]] )
}
}"`
AC_MSG_RESULT([found Compiler version $CCNUMVER.])
2008-07-31 12:44:41 +00:00
if test "$CCNUMVER" -ge "001500000000"; then
COMEX=12
CWS-TOOLING: integrate CWS moz2seamonkey01
2009-06-18 20:56:43 +0200 fs r273133 : #i10000# corrected resolved of merge conflict
2009-06-18 20:55:34 +0200 fs r273132 : #i10000# corrected resolved of merge conflict
2009-06-18 10:49:26 +0200 fs r273105 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@272827 (milestone: DEV300:m50)
2009-06-17 20:48:35 +0200 fs r273094 : #i84961# removed 'pointless and buggy' echo statement
2009-05-22 11:27:08 +0200 fs r272176 : #i101763#
provided by tono@openoffice.org
make compile with mingw
2009-05-22 11:22:25 +0200 fs r272175 : #i101763#
provided by tono@openoffice.org
allow compilation in with mingw
2009-04-15 12:09:28 +0200 fs r270830 : unconditionally disable moz executables
2009-03-27 12:29:38 +0100 fs r270149 : ignore some configure-related files
2009-03-27 11:47:35 +0100 fs r270145 : SolarisSparc needs libfreebl_32fpu_3.so
2009-03-27 11:38:09 +0100 fs r270141 : regxpcom call not needed nowadays / also pack libfreebl3 (needed for signature/encryption)
2009-03-26 21:40:17 +0100 fs r270108 : superseded by 1.1.14 version
2009-03-24 13:07:21 +0100 fs r269938 : xptitemp.dat seemingly not needed anymore
2009-03-23 12:56:29 +0100 fs r269869 : files with : in their name break the build
2009-03-23 12:22:01 +0100 fs r269866 : files with : in their name break the build
2009-03-21 23:12:06 +0100 fs r269843 : manual resync: merge the changes which happened on TRUNK in mozilla-source-1.7.5.patch herein
2009-03-21 21:58:17 +0100 fs r269841 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@269781 (milestone: DEV300:m44)
2009-03-18 12:04:25 +0100 fs r269649 : in SunHH environment, use pre-requisites from /so/env
2009-03-16 12:33:18 +0100 pastea_p r269522 : correct makefile.mk sorry again
2009-03-15 17:32:43 +0100 pastea_p r269506 : last files about migration to 1.1.14
2009-03-15 17:19:39 +0100 pastea_p r269505 : Migrates some files to 1.1.14
2009-03-04 07:45:40 +0100 fs r268782 : also add pref.xpt
2009-02-27 09:57:37 +0100 fs r268555 : #i66338# for the moment, disable Mozilla-based code for unxlngx6
2009-02-23 10:56:28 +0100 fs r268346 : syntax
2009-02-19 14:14:56 +0100 fs r268283 : make PrintPDE compile in Sun's internal build environment by removing some unneeded stuff
2009-02-18 15:40:40 +0100 fs r268236 : #i66338# re-enable MozAB on Mac
2009-02-18 15:39:55 +0100 fs r268235 : #i66338#
2009-02-18 15:30:38 +0100 fs r268232 : #i66338# tar => $(TAR) (provided by hjs)
2009-02-18 15:28:45 +0100 fs r268231 : more build envs supported (thanks to hjs for all this work!)
2009-02-18 15:27:02 +0100 fs r268230 : #i66338#
2009-02-18 15:23:04 +0100 fs r268229 : #i66338# let it build on Solaris, in Sun Hamburg's build environment
2009-02-18 12:00:12 +0100 fs r268210 : #i10000#
2009-02-18 08:17:29 +0100 fs r268198 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-18 08:16:50 +0100 fs r268197 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-14 14:05:24 +0100 fs r267757 : redo the Windows related changes lost with recent resync
2009-02-14 00:06:33 +0100 ericb r267755 : #i94628# remove the config_office dir now
2009-02-14 00:04:59 +0100 ericb r267754 : #i94628# remove all files in config_office now
2009-02-14 00:01:26 +0100 ericb r267753 : #i94628# remove guw in config_office
2009-02-13 23:53:00 +0100 ericb r267752 : #i94628# remove files in config_office
2009-02-13 16:02:58 +0100 fs r267725 : #i10000#
2009-02-12 18:14:31 +0100 ericb r267685 : #i94628# new generated configure
2009-02-12 18:13:52 +0100 ericb r267684 : #i94628# fix a path issue for finding seamonkey01
2009-02-12 14:39:17 +0100 ericb r267662 : #i94628# removing seamonkey.1.1.12 patch
2009-02-12 14:21:04 +0100 ericb r267658 : #i94628# the new configure, after autoconf
2009-02-12 14:13:21 +0100 ericb r267656 : #i94628# other missing changes for Windows
2009-02-12 14:04:26 +0100 ericb r267655 : #i94628# recommit configure.in changes after config_office removing
2009-02-12 13:46:12 +0100 ericb r267653 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-12 12:00:48 +0100 ericb r267643 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-11 13:28:50 +0100 pl r267595 : #i94628# add MACDEVSDK variable for unxmacxi
2009-02-06 09:44:15 +0100 ericb r267446 : #i98957# provide the zipped archives too
2009-02-06 09:43:32 +0100 ericb r267445 : #i98957# make seamonkey buildable on OpenSolaris, adding the right options for configure
2009-02-06 09:42:45 +0100 ericb r267444 : #i98957# make seamonkey buildable on OpenSolaris
2009-02-02 09:41:57 +0100 fs r267252 : #i66338#
2009-02-02 09:41:43 +0100 fs r267251 : #i66338#
2009-01-30 15:12:03 +0100 fs r267200 : code consolidation - MQueryHelper now uses MLdapAttributeMap's fillCardFromResult and fillResultFromCard, which makes the code as such shorter, and eliminates information duplication
2009-01-30 11:53:31 +0100 fs r267189 : reworked the statement parsing / statement execution / result set creation: now we don't anymore create three result sets (two of them leaking) for a single prepared statement ...
2009-01-29 20:37:01 +0100 fs r267170 : #i10000#
2009-01-29 20:32:50 +0100 fs r267169 : more explicit return type of parseSql
2009-01-29 17:32:56 +0100 fs r267163 : slightly refactored the statement class hierarchy (basically remove OStatement_BASE2, and renamed the other base classes)
2009-01-29 17:14:58 +0100 fs r267161 : #i66338# first implementation to re-enable LDAP access. Still work in progress (but hey, you can see the data already :)
2009-01-12 11:25:56 +0100 fs r266138 : allow using a debug-enabled version of Mozilla/SeaMonkey when MOZILLA_ENABLE_DEBUG is set
2009-01-10 22:01:40 +0100 fs r266126 : #i95772# nsldap32v50.dll also needs an embedded manifest (the LDP configuration backend links directly against it)
2009-01-09 11:15:32 +0100 fs r266065 : manifests for DLLs need to have ID 2, not 1
2009-01-08 20:02:24 +0100 fs r266035 : #i95772# embed manifest file in shared libs built in directory/c-sdk, too
2009-01-05 20:45:38 +0100 ericb r265886 : #i66338# commiting the correct configure for the tinderboxes
2009-01-05 17:42:34 +0100 ericb r265883 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@265758 (milestone: DEV300:m38)
2008-12-16 15:34:26 +0100 ericb r265550 : #i94628# change for seamonkey1.1.13 : do not forget to do autoconf in config_office before configure
2008-12-16 15:25:37 +0100 pastea_p r265547 : 1.1.12 to 1.1.13
2008-12-16 14:20:18 +0100 pastea_p r265540 : correct the hunk about no core_abspath which one broke linux build
2008-12-16 13:10:06 +0100 pastea_p r265535 : Change name of patch to 1.1.13
2008-12-15 23:32:54 +0100 pastea_p r265518 : 2008-12-12 18:43:36 +0100 pastea_p r265435 : update to 1.1.13
2008-12-12 10:56:38 +0100 fs r265398 : #i95772# embed .manifest files into SHARED_LIBRARYs built in nsprpub, too
2008-12-12 09:56:38 +0100 fs r265391 : #i95772# don't use regxpcomp on Windows, it's not needed
2008-12-11 11:22:43 +0100 fs r265269 : #i95772# Moz/SeaMonkey libs on Windows now link against msvc?80.dll
2008-12-10 13:45:51 +0100 fs r265182 : proper OSL_ENSURE message
2008-11-13 13:18:03 +0100 fs r263635 : #i95772# more patches
2008-11-13 12:14:41 +0100 fs r263630 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:13:33 +0100 fs r263629 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:08:22 +0100 fs r263628 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:04:15 +0100 fs r263627 : #i95772#
2008-11-12 08:23:20 +0100 fs r263575 : i95772# use xpcom_core on Windows, too
2008-11-11 21:02:14 +0100 fs r263574 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 20:58:07 +0100 fs r263573 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 15:05:42 +0100 fs r263564 : alternative fix for part 1 of #i94957#
2008-11-10 22:18:14 +0100 fs r263541 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 22:15:57 +0100 fs r263540 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 09:28:26 +0100 fs r263509 : #i95772# when building on WNT, embed the .manifest file into the .dll/.exe
2008-11-10 09:19:06 +0100 fs r263508 : collect single patches which comprise the complete patch
2008-11-06 09:10:21 +0100 fs r263360 : #i95772# core_abspath does not work on Windows, too (at least in security/nss/cmd/shlibsign). Replace with 'cygpath -d -a'
2008-11-02 22:51:27 +0100 fs r263277 : #i95772# sanitize INCLUDEDIR and GENHEADERS to use cygwin path notation - cygwin's make 1.81 doesn't cope with Windows path notation
2008-11-02 22:50:15 +0100 fs r263276 : #i95772# no --enable-system-cairo on Windows
2008-10-18 20:12:36 +0200 pastea_p r262297 : 2008-10-16 17:15:35 +0200 ericb r262267 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 17:14:49 +0200 ericb r262266 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 16:58:21 +0200 ericb r262263 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-15 20:16:28 +0200 ericb r262242 : #i94628# use mac as default toolkit on mac
2008-10-14 18:54:13 +0200 ericb r262216 : #i90774# modify the configure.in for moz2seamonkey migration
2008-10-14 18:48:57 +0200 ericb r262215 : #i90774# commit moz2seamonkey changes for svn migration
2008-10-14 18:47:05 +0200 ericb r262214 : #i90774# commit moz2seamonkey changes for svn migration
2009-07-15 11:06:05 +00:00
MSVSVER=2008
2008-07-31 12:44:41 +00:00
AC_MSG_RESULT([found .NET 2008 / VS 9.0.])
elif test "$CCNUMVER" -ge "001400000000"; then
2006-09-25 12:33:13 +00:00
COMEX=11
CWS-TOOLING: integrate CWS moz2seamonkey01
2009-06-18 20:56:43 +0200 fs r273133 : #i10000# corrected resolved of merge conflict
2009-06-18 20:55:34 +0200 fs r273132 : #i10000# corrected resolved of merge conflict
2009-06-18 10:49:26 +0200 fs r273105 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@272827 (milestone: DEV300:m50)
2009-06-17 20:48:35 +0200 fs r273094 : #i84961# removed 'pointless and buggy' echo statement
2009-05-22 11:27:08 +0200 fs r272176 : #i101763#
provided by tono@openoffice.org
make compile with mingw
2009-05-22 11:22:25 +0200 fs r272175 : #i101763#
provided by tono@openoffice.org
allow compilation in with mingw
2009-04-15 12:09:28 +0200 fs r270830 : unconditionally disable moz executables
2009-03-27 12:29:38 +0100 fs r270149 : ignore some configure-related files
2009-03-27 11:47:35 +0100 fs r270145 : SolarisSparc needs libfreebl_32fpu_3.so
2009-03-27 11:38:09 +0100 fs r270141 : regxpcom call not needed nowadays / also pack libfreebl3 (needed for signature/encryption)
2009-03-26 21:40:17 +0100 fs r270108 : superseded by 1.1.14 version
2009-03-24 13:07:21 +0100 fs r269938 : xptitemp.dat seemingly not needed anymore
2009-03-23 12:56:29 +0100 fs r269869 : files with : in their name break the build
2009-03-23 12:22:01 +0100 fs r269866 : files with : in their name break the build
2009-03-21 23:12:06 +0100 fs r269843 : manual resync: merge the changes which happened on TRUNK in mozilla-source-1.7.5.patch herein
2009-03-21 21:58:17 +0100 fs r269841 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@269781 (milestone: DEV300:m44)
2009-03-18 12:04:25 +0100 fs r269649 : in SunHH environment, use pre-requisites from /so/env
2009-03-16 12:33:18 +0100 pastea_p r269522 : correct makefile.mk sorry again
2009-03-15 17:32:43 +0100 pastea_p r269506 : last files about migration to 1.1.14
2009-03-15 17:19:39 +0100 pastea_p r269505 : Migrates some files to 1.1.14
2009-03-04 07:45:40 +0100 fs r268782 : also add pref.xpt
2009-02-27 09:57:37 +0100 fs r268555 : #i66338# for the moment, disable Mozilla-based code for unxlngx6
2009-02-23 10:56:28 +0100 fs r268346 : syntax
2009-02-19 14:14:56 +0100 fs r268283 : make PrintPDE compile in Sun's internal build environment by removing some unneeded stuff
2009-02-18 15:40:40 +0100 fs r268236 : #i66338# re-enable MozAB on Mac
2009-02-18 15:39:55 +0100 fs r268235 : #i66338#
2009-02-18 15:30:38 +0100 fs r268232 : #i66338# tar => $(TAR) (provided by hjs)
2009-02-18 15:28:45 +0100 fs r268231 : more build envs supported (thanks to hjs for all this work!)
2009-02-18 15:27:02 +0100 fs r268230 : #i66338#
2009-02-18 15:23:04 +0100 fs r268229 : #i66338# let it build on Solaris, in Sun Hamburg's build environment
2009-02-18 12:00:12 +0100 fs r268210 : #i10000#
2009-02-18 08:17:29 +0100 fs r268198 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-18 08:16:50 +0100 fs r268197 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-14 14:05:24 +0100 fs r267757 : redo the Windows related changes lost with recent resync
2009-02-14 00:06:33 +0100 ericb r267755 : #i94628# remove the config_office dir now
2009-02-14 00:04:59 +0100 ericb r267754 : #i94628# remove all files in config_office now
2009-02-14 00:01:26 +0100 ericb r267753 : #i94628# remove guw in config_office
2009-02-13 23:53:00 +0100 ericb r267752 : #i94628# remove files in config_office
2009-02-13 16:02:58 +0100 fs r267725 : #i10000#
2009-02-12 18:14:31 +0100 ericb r267685 : #i94628# new generated configure
2009-02-12 18:13:52 +0100 ericb r267684 : #i94628# fix a path issue for finding seamonkey01
2009-02-12 14:39:17 +0100 ericb r267662 : #i94628# removing seamonkey.1.1.12 patch
2009-02-12 14:21:04 +0100 ericb r267658 : #i94628# the new configure, after autoconf
2009-02-12 14:13:21 +0100 ericb r267656 : #i94628# other missing changes for Windows
2009-02-12 14:04:26 +0100 ericb r267655 : #i94628# recommit configure.in changes after config_office removing
2009-02-12 13:46:12 +0100 ericb r267653 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-12 12:00:48 +0100 ericb r267643 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-11 13:28:50 +0100 pl r267595 : #i94628# add MACDEVSDK variable for unxmacxi
2009-02-06 09:44:15 +0100 ericb r267446 : #i98957# provide the zipped archives too
2009-02-06 09:43:32 +0100 ericb r267445 : #i98957# make seamonkey buildable on OpenSolaris, adding the right options for configure
2009-02-06 09:42:45 +0100 ericb r267444 : #i98957# make seamonkey buildable on OpenSolaris
2009-02-02 09:41:57 +0100 fs r267252 : #i66338#
2009-02-02 09:41:43 +0100 fs r267251 : #i66338#
2009-01-30 15:12:03 +0100 fs r267200 : code consolidation - MQueryHelper now uses MLdapAttributeMap's fillCardFromResult and fillResultFromCard, which makes the code as such shorter, and eliminates information duplication
2009-01-30 11:53:31 +0100 fs r267189 : reworked the statement parsing / statement execution / result set creation: now we don't anymore create three result sets (two of them leaking) for a single prepared statement ...
2009-01-29 20:37:01 +0100 fs r267170 : #i10000#
2009-01-29 20:32:50 +0100 fs r267169 : more explicit return type of parseSql
2009-01-29 17:32:56 +0100 fs r267163 : slightly refactored the statement class hierarchy (basically remove OStatement_BASE2, and renamed the other base classes)
2009-01-29 17:14:58 +0100 fs r267161 : #i66338# first implementation to re-enable LDAP access. Still work in progress (but hey, you can see the data already :)
2009-01-12 11:25:56 +0100 fs r266138 : allow using a debug-enabled version of Mozilla/SeaMonkey when MOZILLA_ENABLE_DEBUG is set
2009-01-10 22:01:40 +0100 fs r266126 : #i95772# nsldap32v50.dll also needs an embedded manifest (the LDP configuration backend links directly against it)
2009-01-09 11:15:32 +0100 fs r266065 : manifests for DLLs need to have ID 2, not 1
2009-01-08 20:02:24 +0100 fs r266035 : #i95772# embed manifest file in shared libs built in directory/c-sdk, too
2009-01-05 20:45:38 +0100 ericb r265886 : #i66338# commiting the correct configure for the tinderboxes
2009-01-05 17:42:34 +0100 ericb r265883 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@265758 (milestone: DEV300:m38)
2008-12-16 15:34:26 +0100 ericb r265550 : #i94628# change for seamonkey1.1.13 : do not forget to do autoconf in config_office before configure
2008-12-16 15:25:37 +0100 pastea_p r265547 : 1.1.12 to 1.1.13
2008-12-16 14:20:18 +0100 pastea_p r265540 : correct the hunk about no core_abspath which one broke linux build
2008-12-16 13:10:06 +0100 pastea_p r265535 : Change name of patch to 1.1.13
2008-12-15 23:32:54 +0100 pastea_p r265518 : 2008-12-12 18:43:36 +0100 pastea_p r265435 : update to 1.1.13
2008-12-12 10:56:38 +0100 fs r265398 : #i95772# embed .manifest files into SHARED_LIBRARYs built in nsprpub, too
2008-12-12 09:56:38 +0100 fs r265391 : #i95772# don't use regxpcomp on Windows, it's not needed
2008-12-11 11:22:43 +0100 fs r265269 : #i95772# Moz/SeaMonkey libs on Windows now link against msvc?80.dll
2008-12-10 13:45:51 +0100 fs r265182 : proper OSL_ENSURE message
2008-11-13 13:18:03 +0100 fs r263635 : #i95772# more patches
2008-11-13 12:14:41 +0100 fs r263630 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:13:33 +0100 fs r263629 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:08:22 +0100 fs r263628 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:04:15 +0100 fs r263627 : #i95772#
2008-11-12 08:23:20 +0100 fs r263575 : i95772# use xpcom_core on Windows, too
2008-11-11 21:02:14 +0100 fs r263574 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 20:58:07 +0100 fs r263573 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 15:05:42 +0100 fs r263564 : alternative fix for part 1 of #i94957#
2008-11-10 22:18:14 +0100 fs r263541 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 22:15:57 +0100 fs r263540 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 09:28:26 +0100 fs r263509 : #i95772# when building on WNT, embed the .manifest file into the .dll/.exe
2008-11-10 09:19:06 +0100 fs r263508 : collect single patches which comprise the complete patch
2008-11-06 09:10:21 +0100 fs r263360 : #i95772# core_abspath does not work on Windows, too (at least in security/nss/cmd/shlibsign). Replace with 'cygpath -d -a'
2008-11-02 22:51:27 +0100 fs r263277 : #i95772# sanitize INCLUDEDIR and GENHEADERS to use cygwin path notation - cygwin's make 1.81 doesn't cope with Windows path notation
2008-11-02 22:50:15 +0100 fs r263276 : #i95772# no --enable-system-cairo on Windows
2008-10-18 20:12:36 +0200 pastea_p r262297 : 2008-10-16 17:15:35 +0200 ericb r262267 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 17:14:49 +0200 ericb r262266 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 16:58:21 +0200 ericb r262263 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-15 20:16:28 +0200 ericb r262242 : #i94628# use mac as default toolkit on mac
2008-10-14 18:54:13 +0200 ericb r262216 : #i90774# modify the configure.in for moz2seamonkey migration
2008-10-14 18:48:57 +0200 ericb r262215 : #i90774# commit moz2seamonkey changes for svn migration
2008-10-14 18:47:05 +0200 ericb r262214 : #i90774# commit moz2seamonkey changes for svn migration
2009-07-15 11:06:05 +00:00
MSVSVER=2005
2006-09-25 12:33:13 +00:00
AC_MSG_RESULT([found .NET 2005.])
elif test "$CCNUMVER" -ge "001300102240"; then
2004-03-09 11:31:08 +00:00
COMEX=10
CWS-TOOLING: integrate CWS moz2seamonkey01
2009-06-18 20:56:43 +0200 fs r273133 : #i10000# corrected resolved of merge conflict
2009-06-18 20:55:34 +0200 fs r273132 : #i10000# corrected resolved of merge conflict
2009-06-18 10:49:26 +0200 fs r273105 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@272827 (milestone: DEV300:m50)
2009-06-17 20:48:35 +0200 fs r273094 : #i84961# removed 'pointless and buggy' echo statement
2009-05-22 11:27:08 +0200 fs r272176 : #i101763#
provided by tono@openoffice.org
make compile with mingw
2009-05-22 11:22:25 +0200 fs r272175 : #i101763#
provided by tono@openoffice.org
allow compilation in with mingw
2009-04-15 12:09:28 +0200 fs r270830 : unconditionally disable moz executables
2009-03-27 12:29:38 +0100 fs r270149 : ignore some configure-related files
2009-03-27 11:47:35 +0100 fs r270145 : SolarisSparc needs libfreebl_32fpu_3.so
2009-03-27 11:38:09 +0100 fs r270141 : regxpcom call not needed nowadays / also pack libfreebl3 (needed for signature/encryption)
2009-03-26 21:40:17 +0100 fs r270108 : superseded by 1.1.14 version
2009-03-24 13:07:21 +0100 fs r269938 : xptitemp.dat seemingly not needed anymore
2009-03-23 12:56:29 +0100 fs r269869 : files with : in their name break the build
2009-03-23 12:22:01 +0100 fs r269866 : files with : in their name break the build
2009-03-21 23:12:06 +0100 fs r269843 : manual resync: merge the changes which happened on TRUNK in mozilla-source-1.7.5.patch herein
2009-03-21 21:58:17 +0100 fs r269841 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@269781 (milestone: DEV300:m44)
2009-03-18 12:04:25 +0100 fs r269649 : in SunHH environment, use pre-requisites from /so/env
2009-03-16 12:33:18 +0100 pastea_p r269522 : correct makefile.mk sorry again
2009-03-15 17:32:43 +0100 pastea_p r269506 : last files about migration to 1.1.14
2009-03-15 17:19:39 +0100 pastea_p r269505 : Migrates some files to 1.1.14
2009-03-04 07:45:40 +0100 fs r268782 : also add pref.xpt
2009-02-27 09:57:37 +0100 fs r268555 : #i66338# for the moment, disable Mozilla-based code for unxlngx6
2009-02-23 10:56:28 +0100 fs r268346 : syntax
2009-02-19 14:14:56 +0100 fs r268283 : make PrintPDE compile in Sun's internal build environment by removing some unneeded stuff
2009-02-18 15:40:40 +0100 fs r268236 : #i66338# re-enable MozAB on Mac
2009-02-18 15:39:55 +0100 fs r268235 : #i66338#
2009-02-18 15:30:38 +0100 fs r268232 : #i66338# tar => $(TAR) (provided by hjs)
2009-02-18 15:28:45 +0100 fs r268231 : more build envs supported (thanks to hjs for all this work!)
2009-02-18 15:27:02 +0100 fs r268230 : #i66338#
2009-02-18 15:23:04 +0100 fs r268229 : #i66338# let it build on Solaris, in Sun Hamburg's build environment
2009-02-18 12:00:12 +0100 fs r268210 : #i10000#
2009-02-18 08:17:29 +0100 fs r268198 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-18 08:16:50 +0100 fs r268197 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-14 14:05:24 +0100 fs r267757 : redo the Windows related changes lost with recent resync
2009-02-14 00:06:33 +0100 ericb r267755 : #i94628# remove the config_office dir now
2009-02-14 00:04:59 +0100 ericb r267754 : #i94628# remove all files in config_office now
2009-02-14 00:01:26 +0100 ericb r267753 : #i94628# remove guw in config_office
2009-02-13 23:53:00 +0100 ericb r267752 : #i94628# remove files in config_office
2009-02-13 16:02:58 +0100 fs r267725 : #i10000#
2009-02-12 18:14:31 +0100 ericb r267685 : #i94628# new generated configure
2009-02-12 18:13:52 +0100 ericb r267684 : #i94628# fix a path issue for finding seamonkey01
2009-02-12 14:39:17 +0100 ericb r267662 : #i94628# removing seamonkey.1.1.12 patch
2009-02-12 14:21:04 +0100 ericb r267658 : #i94628# the new configure, after autoconf
2009-02-12 14:13:21 +0100 ericb r267656 : #i94628# other missing changes for Windows
2009-02-12 14:04:26 +0100 ericb r267655 : #i94628# recommit configure.in changes after config_office removing
2009-02-12 13:46:12 +0100 ericb r267653 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-12 12:00:48 +0100 ericb r267643 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-11 13:28:50 +0100 pl r267595 : #i94628# add MACDEVSDK variable for unxmacxi
2009-02-06 09:44:15 +0100 ericb r267446 : #i98957# provide the zipped archives too
2009-02-06 09:43:32 +0100 ericb r267445 : #i98957# make seamonkey buildable on OpenSolaris, adding the right options for configure
2009-02-06 09:42:45 +0100 ericb r267444 : #i98957# make seamonkey buildable on OpenSolaris
2009-02-02 09:41:57 +0100 fs r267252 : #i66338#
2009-02-02 09:41:43 +0100 fs r267251 : #i66338#
2009-01-30 15:12:03 +0100 fs r267200 : code consolidation - MQueryHelper now uses MLdapAttributeMap's fillCardFromResult and fillResultFromCard, which makes the code as such shorter, and eliminates information duplication
2009-01-30 11:53:31 +0100 fs r267189 : reworked the statement parsing / statement execution / result set creation: now we don't anymore create three result sets (two of them leaking) for a single prepared statement ...
2009-01-29 20:37:01 +0100 fs r267170 : #i10000#
2009-01-29 20:32:50 +0100 fs r267169 : more explicit return type of parseSql
2009-01-29 17:32:56 +0100 fs r267163 : slightly refactored the statement class hierarchy (basically remove OStatement_BASE2, and renamed the other base classes)
2009-01-29 17:14:58 +0100 fs r267161 : #i66338# first implementation to re-enable LDAP access. Still work in progress (but hey, you can see the data already :)
2009-01-12 11:25:56 +0100 fs r266138 : allow using a debug-enabled version of Mozilla/SeaMonkey when MOZILLA_ENABLE_DEBUG is set
2009-01-10 22:01:40 +0100 fs r266126 : #i95772# nsldap32v50.dll also needs an embedded manifest (the LDP configuration backend links directly against it)
2009-01-09 11:15:32 +0100 fs r266065 : manifests for DLLs need to have ID 2, not 1
2009-01-08 20:02:24 +0100 fs r266035 : #i95772# embed manifest file in shared libs built in directory/c-sdk, too
2009-01-05 20:45:38 +0100 ericb r265886 : #i66338# commiting the correct configure for the tinderboxes
2009-01-05 17:42:34 +0100 ericb r265883 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@265758 (milestone: DEV300:m38)
2008-12-16 15:34:26 +0100 ericb r265550 : #i94628# change for seamonkey1.1.13 : do not forget to do autoconf in config_office before configure
2008-12-16 15:25:37 +0100 pastea_p r265547 : 1.1.12 to 1.1.13
2008-12-16 14:20:18 +0100 pastea_p r265540 : correct the hunk about no core_abspath which one broke linux build
2008-12-16 13:10:06 +0100 pastea_p r265535 : Change name of patch to 1.1.13
2008-12-15 23:32:54 +0100 pastea_p r265518 : 2008-12-12 18:43:36 +0100 pastea_p r265435 : update to 1.1.13
2008-12-12 10:56:38 +0100 fs r265398 : #i95772# embed .manifest files into SHARED_LIBRARYs built in nsprpub, too
2008-12-12 09:56:38 +0100 fs r265391 : #i95772# don't use regxpcomp on Windows, it's not needed
2008-12-11 11:22:43 +0100 fs r265269 : #i95772# Moz/SeaMonkey libs on Windows now link against msvc?80.dll
2008-12-10 13:45:51 +0100 fs r265182 : proper OSL_ENSURE message
2008-11-13 13:18:03 +0100 fs r263635 : #i95772# more patches
2008-11-13 12:14:41 +0100 fs r263630 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:13:33 +0100 fs r263629 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:08:22 +0100 fs r263628 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:04:15 +0100 fs r263627 : #i95772#
2008-11-12 08:23:20 +0100 fs r263575 : i95772# use xpcom_core on Windows, too
2008-11-11 21:02:14 +0100 fs r263574 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 20:58:07 +0100 fs r263573 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 15:05:42 +0100 fs r263564 : alternative fix for part 1 of #i94957#
2008-11-10 22:18:14 +0100 fs r263541 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 22:15:57 +0100 fs r263540 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 09:28:26 +0100 fs r263509 : #i95772# when building on WNT, embed the .manifest file into the .dll/.exe
2008-11-10 09:19:06 +0100 fs r263508 : collect single patches which comprise the complete patch
2008-11-06 09:10:21 +0100 fs r263360 : #i95772# core_abspath does not work on Windows, too (at least in security/nss/cmd/shlibsign). Replace with 'cygpath -d -a'
2008-11-02 22:51:27 +0100 fs r263277 : #i95772# sanitize INCLUDEDIR and GENHEADERS to use cygwin path notation - cygwin's make 1.81 doesn't cope with Windows path notation
2008-11-02 22:50:15 +0100 fs r263276 : #i95772# no --enable-system-cairo on Windows
2008-10-18 20:12:36 +0200 pastea_p r262297 : 2008-10-16 17:15:35 +0200 ericb r262267 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 17:14:49 +0200 ericb r262266 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 16:58:21 +0200 ericb r262263 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-15 20:16:28 +0200 ericb r262242 : #i94628# use mac as default toolkit on mac
2008-10-14 18:54:13 +0200 ericb r262216 : #i90774# modify the configure.in for moz2seamonkey migration
2008-10-14 18:48:57 +0200 ericb r262215 : #i90774# commit moz2seamonkey changes for svn migration
2008-10-14 18:47:05 +0200 ericb r262214 : #i90774# commit moz2seamonkey changes for svn migration
2009-07-15 11:06:05 +00:00
MSVSVER=2003
2006-09-25 12:33:13 +00:00
AC_MSG_RESULT([found .NET 2003.])
2004-03-09 11:31:08 +00:00
else
2006-09-25 12:33:13 +00:00
AC_MSG_ERROR([Compiler too old. Use Microsoft C/C++ .NET 2003/2005 compiler.])
2003-06-12 09:16:00 +00:00
fi
else
AC_MSG_ERROR([Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe.])
fi
else
AC_MSG_CHECKING([the Mingwin32 C++ Compiler])
2007-03-26 13:51:20 +00:00
if test `$CC -dumpmachine | $SED -e 's/^.*-//'` = "mingw32"; then
2003-06-12 09:16:00 +00:00
AC_MSG_RESULT([found.])
2007-03-26 13:51:20 +00:00
if $CC -dumpspecs | grep -q "mno-cygwin"; then
USE_MINGW="cygwin"
else
USE_MINGW="pure-mingw"
fi
2003-06-12 09:16:00 +00:00
else
AC_MSG_ERROR([Mingwin32 C++ Compiler not found.])
fi
fi
2002-10-02 08:18:56 +00:00
fi
2003-08-18 13:53:58 +00:00
AC_SUBST(COMEX)
AC_SUBST(MSPDB_PATH)
2007-03-26 13:51:20 +00:00
AC_SUBST(USE_MINGW)
2003-08-18 13:53:58 +00:00
dnl ===================================================================
dnl .NET needs special treatment
dnl ===================================================================
2008-07-31 12:44:41 +00:00
if test "$_os" = "WINNT"; then
2009-03-12 22:38:26 +00:00
if test "$WITH_MINGWIN" = "yes" || test "$COMEX" -ge "10"; then
2003-08-18 13:53:58 +00:00
dnl Check midl.exe
2008-07-31 12:44:41 +00:00
AC_PATH_PROG(MIDL_PATH, midl.exe)
2003-08-18 13:53:58 +00:00
if test -n "$MIDL_PATH";then
2003-12-01 16:39:04 +00:00
MIDL_PATH=`dirname "$MIDL_PATH"`
2003-08-18 13:53:58 +00:00
fi
2008-07-31 12:44:41 +00:00
if test -n "$with_midl_path";then
with_midl_path=`cygpath -u "$with_midl_path"`
fi
2003-08-18 13:53:58 +00:00
if test -x "$with_midl_path/midl.exe"; then
MIDL_PATH="$with_midl_path"
fi
if test -z "$MIDL_PATH" -a -e "$with_cl_home/../Common7/Tools/Bin/midl.exe"; then
MIDL_PATH="$with_cl_home/../Common7/Tools/Bin"
fi
2006-05-05 07:11:05 +00:00
if test -z "$MIDL_PATH" ; then
2009-01-24 12:09:06 +00:00
vstest=`./oowintool --msvs-productdir`;
2006-05-05 07:11:05 +00:00
if test -x "$vstest/Common7/Tools/Bin/midl.exe" ; then
MIDL_PATH="$vstest/Common7/Tools/Bin"
fi
fi
2008-09-05 13:13:58 +00:00
if test -z "$MIDL_PATH" ; then
2009-01-24 12:09:06 +00:00
psdktest=`./oowintool --psdk-home`
2008-09-05 13:13:58 +00:00
if test -x "$psdktest/Bin/midl.exe" ; then
MIDL_PATH="$psdktest/Bin"
fi
fi
2003-08-18 13:53:58 +00:00
if test ! -x "$MIDL_PATH/midl.exe"; then
AC_MSG_ERROR([midl.exe not found. Make sure it's in the path or use --with-midl-path])
fi
# Convert to posix path with 8.3 filename restrictions ( No spaces )
MIDL_PATH=`cygpath -d "$MIDL_PATH"`
MIDL_PATH=`cygpath -u "$MIDL_PATH"`
2003-12-01 16:39:04 +00:00
dnl Check csc.exe
2008-07-31 12:44:41 +00:00
AC_PATH_PROG(CSC_PATH, csc.exe)
2003-12-01 16:39:04 +00:00
if test -n "$CSC_PATH";then
CSC_PATH=`dirname "$CSC_PATH"`
fi
2008-07-31 12:44:41 +00:00
if test -n "$with_csc_path";then
with_csc_path=`cygpath -u "$with_csc_path"`
fi
2003-12-01 16:39:04 +00:00
if test -x "$with_csc_path/csc.exe"; then
CSC_PATH="$with_csc_path"
2006-09-25 12:33:13 +00:00
else
2009-01-24 12:09:06 +00:00
csctest=`./oowintool --csc-compilerdir`;
2006-09-25 12:33:13 +00:00
if test -x "$csctest/csc.exe"; then
CSC_PATH="$csctest"
fi
2003-12-01 16:39:04 +00:00
fi
if test ! -x "$CSC_PATH/csc.exe"; then
AC_MSG_ERROR([csc.exe not found. Make sure it's in the path or use --with-csc-path])
fi
# Convert to posix path with 8.3 filename restrictions ( No spaces )
CSC_PATH=`cygpath -d "$CSC_PATH"`
CSC_PATH=`cygpath -u "$CSC_PATH"`
2004-10-11 12:48:26 +00:00
dnl Check mscoree.lib / .NET Frameworks dir
2006-09-25 12:33:13 +00:00
dnl For VS2003/2005 $with_frame_home has to point to the directory with lib/mscoree.lib.
2006-05-05 07:11:05 +00:00
AC_MSG_CHECKING(.NET Framework)
2008-07-31 12:44:41 +00:00
if test -n "$with_frame_home"; then
with_frame_home=`cygpath -u "$with_frame_home"`
fi
2004-10-11 12:48:26 +00:00
if test -f "$with_frame_home/lib/mscoree.lib"; then
FRAME_HOME="$with_frame_home"
fi
2005-06-20 14:17:47 +00:00
if test -z "$FRAME_HOME" -a -e "$with_cl_home/../SDK/v1.1/lib/mscoree.lib"; then
FRAME_HOME="$with_cl_home/../SDK/v1.1"
2004-10-11 12:48:26 +00:00
fi
2006-05-05 07:11:05 +00:00
if test -z "$FRAME_HOME" ; then
2009-01-24 12:09:06 +00:00
frametest=`./oowintool --dotnetsdk-dir`
2008-09-05 13:13:58 +00:00
if test -f "$frametest/lib/mscoree.lib"; then
2006-05-05 07:11:05 +00:00
FRAME_HOME="$frametest"
2008-09-05 13:13:58 +00:00
else
2009-01-24 12:09:06 +00:00
frametest=`./oowintool --psdk-home`
2008-09-05 13:13:58 +00:00
if test -f "$frametest/lib/mscoree.lib"; then
FRAME_HOME="$frametest"
fi
2006-05-05 07:11:05 +00:00
fi
fi
2004-10-11 12:48:26 +00:00
if test ! -f "$FRAME_HOME/lib/mscoree.lib"; then
2003-12-01 16:39:04 +00:00
AC_MSG_ERROR([mscoree.lib (.NET Framework) not found. Make sure you use --with-frame-home])
2004-10-11 12:48:26 +00:00
fi
2006-05-05 07:11:05 +00:00
AC_MSG_RESULT(found)
2003-12-01 16:39:04 +00:00
# Convert to posix path with 8.3 filename restrictions ( No spaces )
FRAME_HOME=`cygpath -d "$FRAME_HOME"`
FRAME_HOME=`cygpath -u "$FRAME_HOME"`
2003-08-18 13:53:58 +00:00
fi
AC_SUBST(MIDL_PATH)
2003-12-01 16:39:04 +00:00
AC_SUBST(CSC_PATH)
AC_SUBST(FRAME_HOME)
2008-07-31 12:44:41 +00:00
fi
2000-09-18 15:18:56 +00:00
2002-08-27 09:31:11 +00:00
dnl ===================================================================
2000-12-07 17:33:25 +00:00
dnl Check if stdc headers are available excluding windows.
2002-08-27 09:31:11 +00:00
dnl ===================================================================
2004-02-02 17:16:59 +00:00
if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
AC_HEADER_STDC
fi
2000-09-18 15:18:56 +00:00
2007-12-12 12:24:44 +00:00
dnl ===================================================================
dnl Find pre-processors.
dnl ===================================================================
if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
AC_PROG_CXXCPP
dnl Check whether there's a C pre-processor.
dnl ===================================================================
dnl When using SunStudio compiler, there is a bug with the cc
dnl preprocessor, so use CC preprocessor as the cc preprocessor
dnl See Issuezilla #445.
dnl ===================================================================
if test "$_os" = "SunOS"; then
CPP=$CXXCPP
else
AC_PROG_CPP
fi
fi
AC_CHECK_SIZEOF(long)
SIZEOF_LONG=$ac_cv_sizeof_long
AC_SUBST(SIZEOF_LONG)
AC_C_BIGENDIAN
WORDS_BIGENDIAN=$ac_cv_c_bigendian
AC_SUBST(WORDS_BIGENDIAN)
dnl Check for large file support
AC_SYS_LARGEFILE
if test -n "$ac_cv_sys_file_offset_bits"; then
LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
fi
if test -n "$ac_cv_sys_large_files" && test "$ac_cv_sys_large_files" != "no"; then
LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES"
fi
AC_SUBST(LFS_CFLAGS)
2007-04-25 14:53:53 +00:00
dnl ===================================================================
dnl Check if we are to enable vba macro interoperability feature
dnl ===================================================================
2007-08-30 09:02:41 +00:00
AC_MSG_CHECKING([whether to disable vba feature])
if test -n "$enable_vba" && test "$enable_vba" = "no"; then
2007-04-25 14:53:53 +00:00
AC_MSG_RESULT([yes])
ENABLE_VBA=NO
2007-08-30 09:02:41 +00:00
else
2007-04-25 14:53:53 +00:00
AC_MSG_RESULT([no])
2007-08-30 09:02:41 +00:00
ENABLE_VBA=YES
2007-04-25 14:53:53 +00:00
fi
AC_SUBST(ENABLE_VBA)
if test "$ENABLE_VBA" = "YES"; then
AC_MSG_CHECKING([how to package the vba compatibility api])
if test -n "$with_vba_package_format"; then
if test "$with_vba_package_format" = "extn"; then
VBA_EXTENSION=YES
AC_MSG_RESULT([uno extension])
2008-07-31 12:44:41 +00:00
AC_MSG_WARN([--with-vba-package-format=extn can cause problems])
2007-04-25 14:53:53 +00:00
else if test "$with_vba_package_format" = "builtin"; then
VBA_EXTENSION=NO
AC_MSG_RESULT([build into installset])
else
AC_MSG_ERROR([unknown packaging method])
fi
fi
else
2008-07-31 12:44:41 +00:00
VBA_EXTENSION=NO
AC_MSG_RESULT([defaulting to build into installset])
2007-04-25 14:53:53 +00:00
fi
2007-08-30 09:02:41 +00:00
else
VBA_EXTENSION=NO
2007-04-25 14:53:53 +00:00
fi
2007-08-30 09:02:41 +00:00
AC_SUBST(VBA_EXTENSION)
2007-04-25 14:53:53 +00:00
dnl ===================================================================
dnl Check the whether vba need to be delivered as an uno package or part
dnl of the install
dnl ===================================================================
2004-06-16 09:48:18 +00:00
dnl ===================================================================
2005-03-15 08:46:30 +00:00
dnl Check if cups/cups.h is available
2004-06-16 09:48:18 +00:00
dnl ===================================================================
if test "$test_cups" = "yes" -a "$ENABLE_CUPS" = "TRUE" ; then
AC_CHECK_HEADER(cups/cups.h, [],
2004-09-08 14:23:49 +00:00
[AC_MSG_ERROR([cups/cups.h could not be found. libcupsys2-dev or cups???-devel missing?])], [])
2004-06-16 09:48:18 +00:00
fi
2008-04-03 16:27:56 +00:00
dnl ===================================================================
2005-06-17 08:24:13 +00:00
dnl Check if PAM/pam_appl.h is available on Linux or FreeBSD
2002-08-27 09:31:11 +00:00
dnl ===================================================================
2002-10-17 09:54:15 +00:00
if test "$_os" = "Linux" -o "$_os" = "FreeBSD" -o "$_os" = "GNU"; then
2006-07-19 08:52:02 +00:00
AC_MSG_CHECKING([whether to enable pam support])
if test -z "$enable_pam" || test "$enable_pam" != "no"; then
AC_MSG_RESULT([yes])
PAM=YES
2004-02-04 11:32:51 +00:00
AC_CHECK_HEADER(security/pam_appl.h, [],
[AC_MSG_ERROR([pam_appl.h could not be found. libpam-dev or pam-devel missing?])], [])
2005-06-17 08:24:13 +00:00
AC_MSG_CHECKING([whether to link to libpam])
2007-12-12 12:24:44 +00:00
if test -n "$enable_pam_link" -a "$enable_pam_link" != "no"; then
2005-06-17 08:24:13 +00:00
AC_MSG_RESULT([yes])
PAM_LINK=YES
AC_CHECK_LIB(pam, pam_start, [],
[AC_MSG_ERROR(libpam not found or functional)], [])
else
AC_MSG_RESULT([no, dynamically open it])
PAM_LINK=NO
fi
2006-07-19 08:52:02 +00:00
else
AC_MSG_RESULT([no])
PAM=NO
PAM_LINK=NO
dnl check getspnam_r for needed args (4 or 5)
AX_FUNC_WHICH_GETSPNAM_R
fi
2005-06-17 08:24:13 +00:00
fi
2006-07-19 08:52:02 +00:00
AC_SUBST(PAM)
AC_SUBST(NEW_SHADOW_API)
2005-06-17 08:24:13 +00:00
AC_SUBST(PAM_LINK)
if test "$_os" = "Linux"; then
AC_MSG_CHECKING([whether to link to libcrypt])
2007-12-12 12:24:44 +00:00
if test -n "$enable_crypt_link" -a "$enable_crypt_link" != "no"; then
2005-06-17 08:24:13 +00:00
AC_MSG_RESULT([yes])
CRYPT_LINK=YES
AC_CHECK_LIB(crypt, crypt, [],
[AC_MSG_ERROR(libcrypt not found or functional)], [])
else
AC_MSG_RESULT([no, dynamically open it])
CRYPT_LINK=NO
fi
2000-09-18 15:18:56 +00:00
fi
2005-06-17 08:24:13 +00:00
AC_SUBST(CRYPT_LINK)
2002-08-27 09:31:11 +00:00
dnl ===================================================================
2000-09-18 15:18:56 +00:00
dnl Testing for c++ compiler and version...
2002-08-27 09:31:11 +00:00
dnl ===================================================================
if test -n "$with_gcc_home"; then
if test -z "$CXX"; then
CXX="$with_gcc_home/bin/g++"
fi
fi
2002-10-02 08:18:56 +00:00
2003-06-12 09:16:00 +00:00
if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
2002-10-02 08:18:56 +00:00
if test -e "$CC"; then
CXX="$CC"
2002-08-27 09:31:11 +00:00
fi
fi
2000-09-18 15:18:56 +00:00
2002-10-17 09:54:15 +00:00
dnl Autoconf 2.53 can do this test for cl.exe, 2.13 can't!
2003-06-12 09:16:00 +00:00
if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
2002-10-17 09:54:15 +00:00
AC_PROG_CXX
fi
2002-08-27 09:31:11 +00:00
2004-09-08 14:23:49 +00:00
dnl check if we are using a buggy version of g++ (currently 3.4.0, 3.4.1 and trunk)
if test "$GXX" = "yes"; then
AC_MSG_CHECKING([the GNU C++ compiler version])
_gpp_version=`$CXX -dumpversion`
2010-03-11 23:09:06 +01:00
_gpp_majmin=`echo $_gpp_version | $AWK -F. '{ print \$1*100+\$2 }'`
if test "$_os" = "Darwin" -a "$_gpp_majmin" -ge "401" ; then
if test -z "$save_CXX" -a -x "$GCC_HOME/bin/g++-4.0" ; then
CXX=$GCC_HOME/bin/g++-4.0
_gpp_majmin_2=`"$CXX" -dumpversion | $AWK -F. '{ print \$1*100+\$2 }'`
if test "$_gpp_majmin_2" -ge "400" -a "$_gpp_majmin_2" -lt "401" ; then
_gpp_majmin=$_gpp_majmin_2
fi
fi
if test "$_gpp_majmin" -ge "401" ; then
AC_MSG_ERROR([You need to use the g++-4.0 compiler (g++ $_gpp_version won't work with the MacOSX10.4u.sdk) - set CXX accordingly])
else
AC_MSG_RESULT([implicitly using CXX=$CXX])
fi
else
AC_MSG_RESULT([checked (g++ $_gpp_version)])
fi
2004-09-08 14:23:49 +00:00
2010-03-11 23:09:06 +01:00
if test "$_gpp_majmin" = "304"; then
AC_MSG_CHECKING([whether $CXX has the enum bug])
2005-03-08 15:31:52 +00:00
AC_TRY_RUN([
2004-09-08 14:23:49 +00:00
extern "C" void abort (void);
extern "C" void exit (int status);
enum E { E0, E1, E2, E3, E4, E5 };
void
test (enum E e)
{
if (e == E2 || e == E3 || e == E1)
exit (1);
}
int
main (void)
{
test (E4);
test (E5);
test (E0);
return 0;
}
2005-03-08 15:31:52 +00:00
],[AC_MSG_ERROR([your version of the GNU C++ compile has a bug which prevents OpenOffice.org from being compiled correctly - please check http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html for details.])], [AC_MSG_RESULT([no])])
2004-09-08 14:23:49 +00:00
fi
fi
2002-08-27 09:31:11 +00:00
dnl ===================================================================
2003-06-12 09:16:00 +00:00
dnl Set the gcc/gxx include directories
2002-08-27 09:31:11 +00:00
dnl ===================================================================
2003-12-01 16:39:04 +00:00
# Removed the special FreeBSD treatment. The problem was that with_gxx_include_path
# often contains an i386 which is expanded as a macro. Solved in stlport.
2005-03-08 15:31:52 +00:00
if test "$GXX" = "yes"; then
AC_MSG_CHECKING([for g++ include path])
if test -z "$with_gxx_include_path"; then
with_gxx_include_path=`echo "#include <cstring>" | $CXX -E -xc++ - | $SED -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
if test "$with_gxx_include_path" = "/usr/libexec/(null)/include"; then
with_gxx_include_path="/usr/include"
fi
2007-03-26 13:51:20 +00:00
if test "$WITH_MINGWIN" = "yes"; then
with_gxx_include_path=`cygpath -d "$with_gxx_include_path"`
with_gxx_include_path=`cygpath -u "$with_gxx_include_path"`
fi
2009-08-06 15:00:07 +00:00
if echo $with_gxx_include_path | grep -q linux; then
# workaround for Mandriva - issue 100049
with_gxx_include_path=`cd $with_gxx_include_path && pwd`
fi
2005-03-15 08:46:30 +00:00
fi
2005-03-08 15:31:52 +00:00
fi
2003-01-20 14:00:18 +00:00
dnl This is the original code...
2003-12-01 16:39:04 +00:00
dnl with_gxx_include_path=`$CXX -print-search-dirs | grep instal |$AWK '{ print \$2 }'`/include
if test -z "$with_gxx_include_path"; then
with_gxx_include_path="NO_GXX_INCLUDE"
2005-03-08 15:31:52 +00:00
AC_MSG_RESULT([no g++ includes])
else
AC_MSG_RESULT([$with_gxx_include_path])
2003-06-12 09:16:00 +00:00
fi
2003-12-01 16:39:04 +00:00
GXX_INCLUDE_PATH="$with_gxx_include_path"
2003-08-18 13:53:58 +00:00
AC_SUBST(GXX_INCLUDE_PATH)
2002-08-27 09:31:11 +00:00
2007-03-26 13:51:20 +00:00
dnl ===================================================================
dnl Set the mingw runtime library include directories
dnl ===================================================================
if test "$WITH_MINGWIN" = "yes"; then
AC_MSG_CHECKING([for mingwin runtime include path])
cat >conftest.$ac_ext <<_ACEOF
#include <stddef.h>
#include <bits/c++config.h>
_ACEOF
2007-05-25 10:09:50 +00:00
_mingw_lib_include_path=`$CXX -E -xc++ conftest.$ac_ext | $SED -n -e '/.*1*"\(.*\)\/stddef.h".*/s//\1/p' -e '/.*1*"\(.*\)\/bits\/c++config.h".*/s//\1/p' | sort -u | xargs echo`
2007-03-26 13:51:20 +00:00
rm conftest.$ac_ext
2007-05-25 10:09:50 +00:00
if test -n "$_mingw_lib_include_path"; then
2007-03-26 13:51:20 +00:00
_temp=""
2007-05-25 10:09:50 +00:00
for a in $_mingw_lib_include_path
2007-03-26 13:51:20 +00:00
do
a=`cygpath -d "$a"`
_temp="$_temp "`cygpath -u "$a"`
done
2007-05-25 10:09:50 +00:00
_mingw_lib_include_path=$_temp
2007-03-26 13:51:20 +00:00
fi
2007-05-25 10:09:50 +00:00
if test -z "$_mingw_lib_include_path"; then
_mingw_lib_include_path="NO_LIB_INCLUDE"
AC_MSG_RESULT([no mingwin runtime includes])
else
AC_MSG_RESULT([$_mingw_lib_include_path])
fi
2009-08-26 06:36:38 +00:00
MINGW_LIB_INCLUDE_PATH="$_mingw_lib_include_path"
AC_SUBST(MINGW_LIB_INCLUDE_PATH)
dnl mingw gcc 4.4.0 needs backward in include path to use hash_set/hash_map
AC_MSG_CHECKING([for mingwin c++ backward include path])
cat >conftest.$ac_ext <<_ACEOF
#include <hash_set>
_ACEOF
_mingw_backward_include_path=`$CXX -E -xc++ -Wno-deprecated conftest.$ac_ext 2>&5| $SED -n -e '/.*1*"\(.*\)\/hash_set".*/s//\1/p' | sort -u | xargs echo`
rm conftest.$ac_ext
if test -n "$_mingw_backward_include_path"; then
_mingw_backward_include_path=`cygpath -d $_mingw_backward_include_path`
_mingw_backward_include_path=`cygpath -u $_mingw_backward_include_path`
AC_MSG_RESULT([$_mingw_backward_include_path])
else
_mingw_backward_include_path="NO_BACKWARD_INCLUDE"
AC_MSG_RESULT([no mingwin c++ backward includes])
fi
MINGW_BACKWARD_INCLUDE_PATH="$_mingw_backward_include_path"
AC_SUBST(MINGW_BACKWARD_INCLUDE_PATH)
mingw_crtbegin=`$CC -print-file-name=crtbegin.o`
MINGW_CLIB_DIR=`dirname $mingw_crtbegin`
AC_MSG_CHECKING([whether to use dynamic libgcc])
if test -e "$MINGW_CLIB_DIR/libgcc_s.a"; then
AC_MSG_CHECKING([dynamic libgcc name])
MINGW_GCCDLL_pattern=`nm $MINGW_CLIB_DIR/libgcc_s.a | sed -ne 's@.* _libgcc\(.*\)_dll_iname@libgcc\1.dll@p' | uniq | sed -e 's@_@?@g'`
2009-11-27 15:39:46 +01:00
MINGW_GCCDLL=`cd $COMPATH/bin && ls $MINGW_GCCDLL_pattern 2>/dev/null`
2009-08-26 06:36:38 +00:00
if test -n "$MINGW_GCCDLL"; then
MINGW_SHARED_GCCLIB=YES
AC_MSG_RESULT([use $MINGW_GCCDLL])
else
AC_MSG_RESULT([no])
fi
else
AC_MSG_RESULT([no])
fi
if test -e "$MINGW_CLIB_DIR/libgcc_eh.a"; then
MINGW_GCCLIB_EH=YES
fi
AC_MSG_CHECKING([whether to use dynamic libstdc++])
if test -e "$MINGW_CLIB_DIR/libstdc++_s.a" ; then
AC_MSG_CHECKING([dynamic libstdc++ name])
MINGW_GXXDLL_pattern=`nm $MINGW_CLIB_DIR/libstdc++_s.a | sed -ne 's@.* _libstdc__\(.*\)_dll_iname@libstdc++\1.dll@p' | uniq | sed -e 's@_@?@g'`
2009-11-27 15:39:46 +01:00
MINGW_GXXDLL=`cd $COMPATH/bin && ls $MINGW_GXXDLL_pattern 2>/dev/null`
2009-08-26 06:36:38 +00:00
if test -n "$MINGW_GXXDLL"; then
MINGW_SHARED_GXXLIB=YES
AC_MSG_RESULT([use $MINGW_GXXDLL])
else
AC_MSG_RESULT([no])
fi
else
AC_MSG_RESULT([no])
fi
MINGW_CLIB_DIR=`cygpath $MINGW_CLIB_DIR`
AC_SUBST(MINGW_CLIB_DIR)
AC_SUBST(MINGW_SHARED_GCCLIB)
AC_SUBST(MINGW_GCCLIB_EH)
AC_SUBST(MINGW_SHARED_GXXLIB)
AC_SUBST(MINGW_GCCDLL)
AC_SUBST(MINGW_GXXDLL)
2007-03-26 13:51:20 +00:00
fi
2002-08-27 09:31:11 +00:00
dnl ===================================================================
dnl Extra checking for the SUN OS compiler
dnl ===================================================================
2000-09-18 15:18:56 +00:00
if test "$_os" = "SunOS"; then
2007-06-27 11:11:48 +00:00
dnl SunStudio C++ compiler packaged with SunStudio C compiler
2000-09-18 15:18:56 +00:00
if test "$CC" = "cc"; then
2007-06-27 11:11:48 +00:00
AC_MSG_CHECKING([SunStudio C++ Compiler])
2000-09-18 15:18:56 +00:00
if test "$CXX" != "CC"; then
2007-06-27 11:11:48 +00:00
AC_MSG_WARN([SunStudio C++ was not found])
echo "SunStudio C++ was not found" >> warn
2000-09-18 15:18:56 +00:00
else
AC_MSG_RESULT([checked])
fi
fi
fi
2002-08-27 09:31:11 +00:00
dnl ===================================================================
dnl Extra checking for the OSF compiler
dnl ===================================================================
2001-01-05 15:32:05 +00:00
if test "$_os" = "OSF1"; then
AC_MSG_CHECKING([Compaq C++ compiler version])
dnl cxx -V outputs to standard error!!!!
_compaqcxx_version=`$CXX -V 2>&1 | $AWK '{ print $3 }'`
_compaqcxx_major=`echo $_compaqcxx_version | $AWK -F. '{ print $1 }'`
if test "$_compaqcxx_major" != "V6"; then
AC_MSG_WARN([found version "$_compaqc_version", use version 6 of the Compaq C++ compiler])
2003-04-28 16:02:04 +00:00
echo "found version $_compaqc_version, use version 6 of the Compaq C++ compiler" >> warn
2001-01-05 15:32:05 +00:00
else
dnl compiler will do
AC_MSG_RESULT([checked])
fi
fi
2000-09-18 15:18:56 +00:00
2009-08-26 06:36:38 +00:00
dnl *************************************************************
dnl Testing for exception handling - dwarf2 or sjlj exceptions...
dnl *************************************************************
AC_MSG_CHECKING([exception type])
AC_LANG_PUSH([C++])
if test "$WITH_MINGWIN" = "yes"; then
AC_TRY_LINK(
[#include <iostream>
extern "C" void _Unwind_SjLj_RaiseException(void) __attribute__ ((__noreturn__));
],
[_Unwind_SjLj_RaiseException() ],
[exceptions_type="sjlj"],
[exceptions_type="dwarf2"]
)
fi
AC_MSG_RESULT($exceptions_type)
AC_LANG_POP([C++])
EXCEPTIONS="$exceptions_type"
AC_SUBST(EXCEPTIONS)
2000-09-18 15:18:56 +00:00
dnl **************************************************************
2007-06-27 11:11:48 +00:00
dnl Testing for required Solaris and SunStudio compiler patches...
2000-09-18 15:18:56 +00:00
dnl **************************************************************
dnl Check whether the OS is SunOS.
if test "$_os" = "SunOS"; then
_temp=`showrev -p | $AWK -F" " '{ print $2 }'`
if test "$_os_release" = "7"; then
dnl ***************
dnl patch 106327-06
dnl ***************
AC_MSG_CHECKING([for patch 106327-06 or greater])
_patch=`echo $_temp | $AWK '/106327-06/ { print "found" }'`
_patch="false"
for i in $_temp
do
_patch_major=`echo $i | $AWK -F"-" '{ print $1 }'`
if test "$_patch_major" = "106327"; then
_patch_rev=`echo $i | $AWK -F"-" '{ print $2 }'`
if test "$_patch_rev" -ge "6"; then
_patch="found"
fi
fi
done
if test "$_patch" = "found"; then
AC_MSG_RESULT([found])
else
AC_MSG_WARN([patch 106327-06 not found, please install compiler patch 106327-06 or greater])
2003-04-28 16:02:04 +00:00
echo "patch 106327-06 not found, please install compiler patch 106327-06 or greater" >> warn
2000-09-18 15:18:56 +00:00
fi
dnl ***************
2000-11-10 10:49:11 +00:00
dnl patch 106950-11
2000-09-18 15:18:56 +00:00
dnl ***************
2000-11-10 10:49:11 +00:00
AC_MSG_CHECKING([for patch 106950-11 or greater])
_patch=`echo $_temp | $AWK '/106950-11/ { print "found" }'`
2000-09-18 15:18:56 +00:00
_patch="false"
for i in $_temp
do
_patch_major=`echo $i | $AWK -F"-" '{ print $1 }'`
2000-11-10 10:49:11 +00:00
if test "$_patch_major" = "106950"; then
2000-09-18 15:18:56 +00:00
_patch_rev=`echo $i | $AWK -F"-" '{ print $2 }'`
if test "$_patch_rev" -ge "11"; then
_patch="found"
fi
fi
done
if test "$_patch" = "found"; then
AC_MSG_RESULT([found])
else
2000-11-10 10:49:11 +00:00
AC_MSG_WARN([patch 106950-11 not found, please install linker patch 106950-11 or greater])
2003-04-28 16:02:04 +00:00
echo "patch 106950-11 not found, please install linker patch 106950-11 or greater" >> warn
2000-09-18 15:18:56 +00:00
fi
else
if test "$_os_release" = "6"; then
dnl ***************
dnl patch 105591-09
dnl ***************
AC_MSG_CHECKING([for patch 105591-09 or greater])
_patch=`echo $_temp | $AWK '/105591-09/ { print "found" }'`
_patch="false"
for i in $_temp
do
_patch_major=`echo $i | $AWK -F"-" '{ print $1 }'`
if test "$_patch_major" = "105591"; then
_patch_rev=`echo $i | $AWK -F"-" '{ print $2 }'`
if test "$_patch_rev" -ge "9"; then
_patch="found"
fi
fi
done
if test "$_patch" = "found"; then
AC_MSG_RESULT([found])
else
AC_MSG_WARN([patch 105591-09 not found, please install compiler patch 105591-09 or greater])
2003-04-28 16:02:04 +00:00
echo "patch 105591-09 not found, please install compiler patch 105591-09 or greater" >> warn
2000-09-18 15:18:56 +00:00
fi
dnl ***************
dnl patch 107733-08
dnl ***************
AC_MSG_CHECKING([for patch 107733-08 or greater])
_patch=`echo $_temp | $AWK '/107733-08/ { print "found" }'`
_patch="false"
for i in $_temp
do
_patch_major=`echo $i | $AWK -F"-" '{ print $1 }'`
if test "$_patch_major" = "107733"; then
_patch_rev=`echo $i | $AWK -F"-" '{ print $2 }'`
if test "$_patch_rev" -ge "8"; then
_patch="found"
fi
fi
done
if test "$_patch" = "found"; then
AC_MSG_RESULT([found])
else
AC_MSG_WARN([patch 107733-06 not found, please install linker patch 107733-08 or greater])
2003-04-28 16:02:04 +00:00
echo "patch 107733-06 not found, please install linker patch 107733-08 or greater" >> warn
2000-09-18 15:18:56 +00:00
fi
fi
fi
fi
2000-12-07 17:33:25 +00:00
2008-01-29 12:12:38 +00:00
dnl ===================================================================
dnl Checks for what the default STL should be
dnl ===================================================================
AC_MSG_CHECKING([what the default STL should be])
2009-01-21 17:47:03 +00:00
DEFAULT_TO_STLPORT="no"
2008-01-29 12:12:38 +00:00
if test "$_os" = "Linux"; then
case "$build_cpu" in
2009-01-21 17:47:03 +00:00
i?86)
2010-04-17 16:55:29 +02:00
case "$build_os" in k*bsd*-gnu*)
DEFAULT_TO_STLPORT="no"
;;
*)
DEFAULT_TO_STLPORT="yes"
;;
esac
2008-01-29 12:12:38 +00:00
;;
*)
DEFAULT_TO_STLPORT="no"
;;
esac
2009-01-21 17:47:03 +00:00
elif test "$_os" = "SunOS"; then
DEFAULT_TO_STLPORT="yes"
2009-01-21 22:15:49 +00:00
elif test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
DEFAULT_TO_STLPORT="yes"
elif test "$_os" = "OS2"; then
2009-01-21 17:47:03 +00:00
DEFAULT_TO_STLPORT="yes"
elif test "$_os" = "FreeBSD"; then
DEFAULT_TO_STLPORT="yes"
2008-01-29 12:12:38 +00:00
fi
if test "$DEFAULT_TO_STLPORT" = "yes"; then
AC_MSG_RESULT([stlport])
else
2009-01-21 17:47:03 +00:00
AC_MSG_RESULT([system])
2008-01-29 12:12:38 +00:00
fi
if test "$WITH_STLPORT" = "auto"; then
WITH_STLPORT=$DEFAULT_TO_STLPORT
fi
2000-12-07 17:33:25 +00:00
dnl ===================================================================
2007-12-12 12:24:44 +00:00
dnl Checks for STLPORT
2000-12-07 17:33:25 +00:00
dnl ===================================================================
2008-01-29 12:12:38 +00:00
AC_MSG_CHECKING([for STL providing headers])
2004-09-08 14:23:49 +00:00
STLPORT4=""
USE_SYSTEM_STL=""
if test "$WITH_STLPORT" = "yes"; then
AC_MSG_RESULT([using internal stlport.])
2008-01-29 12:12:38 +00:00
if test "$DEFAULT_TO_STLPORT" != "yes"; then
AC_MSG_WARN([using stlport. Warning, breaks your ABI compatability!])
echo "using stlport. Warning, breaks your ABI compatability!" >>warn
fi
2004-09-08 14:23:49 +00:00
elif test "$WITH_STLPORT" = "no"; then
2008-01-29 12:12:38 +00:00
AC_MSG_RESULT([using system STL])
2004-09-08 14:23:49 +00:00
USE_SYSTEM_STL="YES"
2008-01-29 12:12:38 +00:00
if test "$DEFAULT_TO_STLPORT" != "no"; then
AC_MSG_WARN([using system STL. Warning, breaks your ABI compatability!])
echo "using system STL. Warning, breaks your ABI compatability!" >>warn
fi
2004-09-08 14:23:49 +00:00
else
STLPORT4=$WITH_STLPORT
if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
2007-12-12 12:24:44 +00:00
AC_TRY_CPP($STLPORT4/stlport/hash_map, AC_MSG_RESULT([checked.]), AC_MSG_ERROR([STLport headers not found.]))
2004-09-08 14:23:49 +00:00
else
dnl AC_TRY_CPP doesn't work for MSVC because C++ preprocessor is not found by autoconf.
if test -f "$STLPORT4/stlport/hash_map"; then
AC_MSG_RESULT([checked.])
else
2007-12-12 12:24:44 +00:00
AC_MSG_ERROR([STLport headers not found.])
2004-09-08 14:23:49 +00:00
fi
fi
if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
2007-12-12 12:24:44 +00:00
AC_MSG_CHECKING([for STLport libraries])
2004-09-08 14:23:49 +00:00
if test "$_os" = "SunOS"; then
if test -f "$STLPORT4/lib/libstlport_sunpro.so"; then
AC_MSG_RESULT([checked])
2007-12-12 12:24:44 +00:00
elif test -f "$STLPORT4/lib/libstlport.so"; then
AC_MSG_RESULT([checked])
STLPORT_VER=500
2004-09-08 14:23:49 +00:00
else
2007-12-12 12:24:44 +00:00
AC_MSG_ERROR([STLport libraries not found])
2004-09-08 14:23:49 +00:00
fi
elif test "$_os" = "Darwin"; then
if test -f "$STLPORT4/lib/libstlport_gcc.dylib"; then
AC_MSG_RESULT([checked])
2007-12-12 12:24:44 +00:00
elif test -f "$STLPORT4/lib/libstlport.dylib"; then
AC_MSG_RESULT([checked])
STLPORT_VER=500
2004-09-08 14:23:49 +00:00
else
2007-12-12 12:24:44 +00:00
AC_MSG_ERROR([STLport libraries not found])
2004-09-08 14:23:49 +00:00
fi
else
if test -f "$STLPORT4/lib/libstlport_gcc.so"; then
AC_MSG_RESULT([checked])
2007-12-12 12:24:44 +00:00
elif test -f "$STLPORT4/lib/libstlport.so"; then
AC_MSG_RESULT([checked])
STLPORT_VER=500
2004-09-08 14:23:49 +00:00
else
2007-12-12 12:24:44 +00:00
AC_MSG_ERROR([STLport libraries not found])
2004-09-08 14:23:49 +00:00
fi
fi
fi
2008-01-29 12:12:38 +00:00
if test "$DEFAULT_TO_STLPORT" != "yes"; then
AC_MSG_WARN([using stlport. Warning, breaks your ABI compatability!])
echo "using stlport. Warning, breaks your ABI compatability!" >>warn
fi
2004-09-08 14:23:49 +00:00
fi
2001-05-22 12:50:38 +00:00
2004-09-08 14:23:49 +00:00
if test -z "$STLPORT4"; then
STLPORT4="NO_STLPORT4"
2001-05-22 12:50:38 +00:00
fi
2007-12-12 12:24:44 +00:00
if test -z "$STLPORT_VER"; then
STLPORT_VER=400
fi
2003-08-18 13:53:58 +00:00
AC_SUBST(STLPORT4)
2007-12-12 12:24:44 +00:00
AC_SUBST(STLPORT_VER)
2004-09-08 14:23:49 +00:00
AC_SUBST(USE_SYSTEM_STL)
2008-07-31 12:44:41 +00:00
dnl ===================================================================
dnl visibility feature
dnl ===================================================================
if test "$GCC" = "yes"; then
AC_MSG_CHECKING([whether $CC supports -fvisibility=hidden])
save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -fvisibility=hidden"
AC_TRY_LINK([], [ return 0; ], [ HAVE_GCC_VISIBILITY_FEATURE=TRUE ], [])
CFLAGS=$save_CFLAGS
if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
fi
2009-09-16 14:49:32 +00:00
# ===================================================================
# use --ccache-skip?
# ===================================================================
dnl used to escape compiler options for ccache that otherwise prevent
dnl caching of the results (like "-x objective-c++" for Mac)
AC_MSG_CHECKING([whether we are allowed and able to use --ccache-skip])
if test "$_os" != "Darwin" ; then
AC_MSG_RESULT([only used on Mac currently, skipping])
elif test "$enable_ccache_skip" = "no" ; then
AC_MSG_RESULT([no - diabled explicitly])
elif test "$enable_ccache_skip" = "yes" ; then
AC_MSG_RESULT([yes - enabled explicitly, skipping checks])
AC_SUBST([USE_CCACHE], [YES])
elif test "$enable_ccache_skip" = "auto" ; then
# checking for ccache presence/version
AC_MSG_RESULT([probing...])
AC_PATH_PROG([CCACHE],[ccache],[not_found])
if test "$CCACHE" = "not_found" ; then
AC_MSG_NOTICE([not enabling --ccache-skip (ccache not found)])
else
# check ccache version
AC_MSG_CHECKING([whether version of ccache is suitable])
CCACHE_VERSION=`"$CCACHE" -V | "$AWK" '/^ccache version/{print $3}'`
if test "$CCACHE_VERSION" = "2.4_OOo"; then
AC_MSG_RESULT([yes])
AC_MSG_CHECKING([whether ccache is actually used for the build])
AC_LANG_PUSH([C++])
save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS --ccache-skip -O2"
dnl an empty program will do, we're checking the compiler flags
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([],[]),
[use_ccache=yes], [use_ccache=no])
if test $use_ccache = yes ; then
AC_MSG_RESULT([yes, will enable --ccache-skip])
AC_SUBST([USE_CCACHE], [YES])
else
AC_MSG_RESULT([no, will not enable --ccache-skip])
fi
CXXFLAGS=$save_CXXFLAGS
AC_LANG_POP([C++])
else
AC_MSG_RESULT([no])
AC_MSG_NOTICE([ccache version $CCACHE_VERSION not accepted. See description for --enable-ccache-skip])
fi
fi
else
AC_MSG_ERROR([invalid option to --enable-ccache-skip. Valid values are "auto", "yes" and "no"])
fi
2008-01-29 12:12:38 +00:00
dnl ===================================================================
dnl system stl sanity tests
dnl ===================================================================
if test "$USE_SYSTEM_STL" = "YES"; then
AC_MSG_CHECKING([if hash_map will be in __gnu_cxx namespace])
AC_LANG_PUSH([C++])
AC_TRY_COMPILE([#include <ext/hash_map>
using namespace __gnu_cxx;
],[hash_map<int, int> t; return 0;],
ac_cv_cxx_have_ext_hash_map=yes, ac_cv_cxx_have_ext_hash_map=no)
if test "$ac_cv_cxx_have_ext_hash_map" = "no"; then
AC_MSG_ERROR([Can't find hash_map. Try with --with-stlport])
else
AC_MSG_RESULT([$ac_cv_cxx_have_ext_hash_map])
fi
if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
AC_MSG_CHECKING([if STL headers are visibility safe])
AC_EGREP_HEADER(visibility push, string, stlvisok=yes, stlvisok=no)
AC_MSG_RESULT([$stlvisok])
if test "$stlvisok" = "no"; then
2008-07-31 12:44:41 +00:00
AC_MSG_WARN([Your gcc STL headers are not visibility safe. Disabling visibility])
echo "Your gcc STL headers are not visibility safe. Disabling visibility" >> warn
unset HAVE_GCC_VISIBILITY_FEATURE
2008-01-29 12:12:38 +00:00
fi
2008-07-31 12:44:41 +00:00
fi
2008-01-29 12:12:38 +00:00
2008-07-31 12:44:41 +00:00
if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
2008-01-29 12:12:38 +00:00
sharedlink_ldflags_save=$LDFLAGS
LDFLAGS="$LDFLAGS -fvisibility-inlines-hidden -fpic -shared"
AC_MSG_CHECKING([if gcc is -fvisibility-inlines-hidden safe with STL headers])
AC_TRY_LINK([#include <sstream>
using namespace std;
],[istringstream strm( "test" ); return 0;],
2008-07-31 12:44:41 +00:00
$EGREP -q unresolvable conftest.err;
if test $? -eq 0; then gccvisok=no; else gccvisok=yes; fi,
gccvisok=no)
AC_MSG_RESULT([$gccvisok])
if test "$gccvisok" = "no"; then
AC_MSG_WARN([Your gcc is not -fvisibility-inlines-hidden safe. Disabling visibility])
echo "Your gcc is not -fvisibility-inlines-hidden safe. Disabling visibility" >> warn
unset HAVE_GCC_VISIBILITY_FEATURE
fi
2008-01-29 12:12:38 +00:00
2008-03-18 15:09:23 +00:00
LDFLAGS=$sharedlink_ldflags_save
2008-07-31 12:44:41 +00:00
fi
2008-01-29 12:12:38 +00:00
2008-07-31 12:44:41 +00:00
if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
AC_MSG_CHECKING([if gcc has a visibility bug with class-level attributes (GCC bug 26905)])
cat >visibility.cxx <<_ACEOF
#pragma GCC visibility push(hidden)
struct __attribute__ ((visibility ("default"))) TestStruct {
static void Init();
};
__attribute__ ((visibility ("default"))) void TestFunc() {
TestStruct::Init();
}
_ACEOF
if ! $CXX $CXXFLAGS $CPPFLAGS -fpic -S visibility.cxx 2>/dev/null > /dev/null; then
gccvisbroken=yes
else
2009-12-01 11:57:48 +00:00
case "$build_cpu" in
i?86|x86_64)
if $EGREP -q '@PLT' visibility.s; then
gccvisbroken=no
else
gccvisbroken=yes
fi
;;
*)
gccvisbroken=no
;;
esac
2008-04-03 15:49:31 +00:00
fi
2009-01-21 17:47:03 +00:00
rm -f visibility.s
2008-04-03 15:49:31 +00:00
2008-07-31 12:44:41 +00:00
AC_MSG_RESULT([$gccvisbroken])
if test "$gccvisbroken" = "yes"; then
AC_MSG_WARN([Your gcc is not -fvisibility=hidden safe. Disabling visibility])
echo "Your gcc is not -fvisibility=hidden safe. Disabling visibility" >> warn
unset HAVE_GCC_VISIBILITY_FEATURE
fi
2008-04-03 15:49:31 +00:00
fi
2008-01-29 12:12:38 +00:00
AC_LANG_POP([C++])
fi
2008-07-31 12:44:41 +00:00
AC_SUBST(HAVE_GCC_VISIBILITY_FEATURE)
2006-01-31 17:28:45 +00:00
dnl ===================================================================
dnl allocator
dnl ===================================================================
AC_MSG_CHECKING([which memory allocator to use])
if test "$with_alloc" = "system"; then
AC_MSG_RESULT([system])
ALLOC="SYS_ALLOC";
AC_CHECK_FUNCS([malloc realloc calloc free])
fi
if test "$with_alloc" = "tcmalloc"; then
AC_MSG_RESULT(tcmalloc)
if ! echo $build_cpu | grep -E 'i[[3456]]86' 2>/dev/null >/dev/null; then
AC_MSG_ERROR([tcmalloc only available/usable on ix86])
fi
AC_CHECK_LIB(tcmalloc, malloc, [],
[AC_MSG_ERROR(tcmalloc not found or functional. Install the Google Profiling Tools)], [])
ALLOC="TCMALLOC";
fi
if test "$with_alloc" = "internal" -o -z "$with_alloc"; then
AC_MSG_RESULT([internal])
fi
AC_SUBST(ALLOC)
2005-03-14 10:13:36 +00:00
dnl ===================================================================
dnl Custom build version
dnl ===================================================================
AC_MSG_CHECKING([whether to add custom build version])
if test "z$with_build_version" != "z"; then
BUILD_VER_STRING=$with_build_version
AC_MSG_RESULT([yes, $BUILD_VER_STRING])
else
BUILD_VER_STRING=
AC_MSG_RESULT([no])
fi
AC_SUBST(BUILD_VER_STRING)
2003-08-18 13:53:58 +00:00
dnl ===================================================================
dnl Java support enable
dnl ===================================================================
AC_MSG_CHECKING([whether to build with Java support])
2005-01-25 15:54:53 +00:00
if test "$WITH_JAVA" != "no"; then
2003-08-18 13:53:58 +00:00
AC_MSG_RESULT([yes])
SOLAR_JAVA="TRUE"
else
AC_MSG_RESULT([no])
SOLAR_JAVA=""
2005-01-25 15:54:53 +00:00
AC_MSG_WARN([building without java will mean some features will not be available])
echo "building without java will mean some features will not be available" >>warn
2003-08-18 13:53:58 +00:00
fi
AC_SUBST(SOLAR_JAVA)
2005-07-14 12:45:35 +00:00
if test "$_os" = "Linux" && test "$build_cpu" = "powerpc"; then
# IBMs JDK needs this...
JITC_PROCESSOR_TYPE=6
export JITC_PROCESSOR_TYPE
fi
2008-07-31 12:44:41 +00:00
if test "$_os" = "WINNT"; then
if test -z "$with_jdk_home"; then
2009-01-24 12:09:06 +00:00
_jdk_home=`./oowintool --jdk-home`
2008-07-31 12:44:41 +00:00
if test -d "$_jdk_home"; then
with_jdk_home="$_jdk_home"
fi
else
with_jdk_home=`cygpath -u "$with_jdk_home"`
fi
2006-05-05 07:11:05 +00:00
fi
2005-08-18 07:21:16 +00:00
2000-09-18 15:18:56 +00:00
dnl ===================================================================
2005-01-25 15:54:53 +00:00
dnl Checks for java
2000-09-18 15:18:56 +00:00
dnl ===================================================================
2005-01-25 15:54:53 +00:00
if test "$SOLAR_JAVA" != ""; then
2003-12-17 14:01:13 +00:00
JAVA_HOME=; export JAVA_HOME
if test -z "$with_jdk_home"; then
2005-01-25 15:54:53 +00:00
AC_PATH_PROG(JAVAINTERPRETER, $WITH_JAVA)
2003-12-17 14:01:13 +00:00
else
2005-01-25 15:54:53 +00:00
_java_path="$with_jdk_home/bin/$WITH_JAVA"
2003-12-17 14:01:13 +00:00
dnl Check if there is a java interpreter at all.
if test -x "$_java_path"; then
2005-01-25 15:54:53 +00:00
JAVAINTERPRETER=$_java_path
2004-03-09 11:31:08 +00:00
else
2005-01-25 15:54:53 +00:00
AC_MSG_ERROR([$_java_path not found set with_jdk_home])
2003-12-17 14:01:13 +00:00
fi
2003-08-18 13:53:58 +00:00
fi
2005-04-11 07:52:24 +00:00
if test "$_os" = "WINNT"; then
if test x`echo "$JAVAINTERPRETER" | grep -i '\.exe$'` = x; then
JAVAINTERPRETER="${JAVAINTERPRETER}.exe"
fi
JAVAINTERPRETER=`cygpath -d "$JAVAINTERPRETER"`
JAVAINTERPRETER=`cygpath -u "$JAVAINTERPRETER"`
2010-02-25 09:10:21 +01:00
elif test "$_os" = "Darwin"; then
dnl HACK: There currently is only a 32 bit version of OOo for Mac OS X,
dnl and Tiger java complains about -d32 while Snow Leopard java needs it
dnl to run in 32 bit mode and be able to load OOo jnilibs:
AC_MSG_CHECKING([whether to pass -d32 to Java interpreter])
if "$JAVAINTERPRETER" -d32 >&5 2>&5; then
AC_MSG_RESULT([yes])
JAVAIFLAGS=-d32
else
AC_MSG_RESULT([no])
fi
2005-04-11 07:52:24 +00:00
fi
2005-01-25 15:54:53 +00:00
fi
dnl ===================================================================
dnl Checks for JDK.
dnl ===================================================================
if test "$SOLAR_JAVA" != ""; then
2006-12-01 13:17:02 +00:00
_gij_longver=0
2003-12-17 14:01:13 +00:00
AC_MSG_CHECKING([the installed JDK])
2007-01-03 10:33:33 +00:00
if test -n "$JAVAINTERPRETER"; then
2003-12-17 14:01:13 +00:00
dnl java -version sends output to stderr!
2005-01-25 15:54:53 +00:00
if test `$JAVAINTERPRETER -version 2>&1 | grep -c "Kaffe"` -gt 0; then
2008-08-19 11:03:26 +00:00
AC_MSG_ERROR([No valid check available. Please check the block for your desired java in configure.in])
# dnl Kaffe specific tests
# KAFFE_VER=`$JAVAINTERPRETER -version 2>&1 | $EGREP " Version:" | $SED -r "s/.* Version: ([[0-9\.]]*).*/\1/"`
# if test -z "$KAFFE_VER"; then
# AC_MSG_ERROR([looks like Kaffe but version detection failed])
# fi
# _kaffe_ver=`echo "$KAFFE_VER" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
# if test "$_kaffe_ver" -lt 10100; then
# AC_MSG_ERROR([Kaffe is too old ($KAFFE_VER - $_kaffe_ver), you need at least 1.1.0])
# fi
# JDK=kaffe
#
# dnl TODO: define some project exclusion variables
#
# AC_MSG_RESULT([checked (Kaffe $KAFFE_VER)])
# AC_MSG_WARN([EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile])
# echo "EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile" >>warn
# JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*java,,p"`
2005-01-25 15:54:53 +00:00
elif test `$JAVAINTERPRETER --version 2>&1 | grep -c "GNU libgcj"` -gt 0; then
2004-03-09 11:31:08 +00:00
JDK=gcj
2005-01-25 15:54:53 +00:00
AC_MSG_RESULT([checked (gcj)])
2006-12-01 13:17:02 +00:00
_gij_version=`$JAVAINTERPRETER --version | grep GNU | $SED -e 's@^[[^0-9]]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
_gij_longver=`echo $_gij_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
2007-11-06 13:53:15 +00:00
2005-10-25 10:23:57 +00:00
elif test `$JAVAINTERPRETER -version 2>&1 | awk '{ print }' | grep -c "BEA"` -gt 0; then
2008-08-19 11:03:26 +00:00
AC_MSG_ERROR([No valid check available. Please check the block for your desired java in configure.in])
# JDK=bea
#
# dnl BEA JDK specific tests
# _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[[-A-Za-z]]*//`
# _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
#
# if test "$_jdk_ver" -lt 10500; then
# AC_MSG_ERROR([JDK is too old, you need at least BEA JDK 1.5.0])
# fi
#
# AC_MSG_RESULT([checked (BEA JDK $_jdk)])
#
# if test "$with_jdk_home" = ""; then
# AC_MSG_ERROR([In order to successfully build OpenOffice.org using the BEA JDK,
#you must use the "--with-jdk-home" configure option explicitly])
# fi
#
# AC_MSG_WARN([A bug in certain BEA JREs can prevent you from successfully compiling some modules])
# echo "A bug in certain BEA JREs can prevent you from successfully compiling some modules" >>warn
#
# JAVA_HOME=$with_jdk_home
#
2005-08-18 07:21:16 +00:00
elif test `$JAVAINTERPRETER -version 2>&1 | awk '{ print }' | grep -c "IBM"` -gt 0; then
2009-01-21 17:47:03 +00:00
JDK=ibm
dnl IBM JDK specific tests
_jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[[-A-Za-z]]*//`
_jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
2009-11-19 15:41:16 +00:00
if test "$_jdk_ver" -lt 10500; then
AC_MSG_ERROR([IBM JDK is too old, you need at least 1.5])
2009-01-21 17:47:03 +00:00
fi
AC_MSG_RESULT([checked (IBM JDK $_jdk)])
if test "$with_jdk_home" = ""; then
AC_MSG_ERROR([In order to successfully build OpenOffice.org using the IBM JDK,
you must use the "--with-jdk-home" configure option explicitly])
fi
JAVA_HOME=$with_jdk_home
2005-08-18 07:21:16 +00:00
else
2006-07-19 08:52:02 +00:00
JDK=sun
2005-08-18 07:21:16 +00:00
2003-12-17 14:01:13 +00:00
dnl SUN JDK specific tests
2005-01-25 15:54:53 +00:00
_jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[[-A-Za-z]]*//`
2003-12-17 14:01:13 +00:00
_jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
2008-08-19 11:03:26 +00:00
if test "$_jdk_ver" -lt 10500; then
AC_MSG_ERROR([JDK is too old, you need at least 1.5])
2003-12-17 14:01:13 +00:00
fi
AC_MSG_RESULT([checked (JDK $_jdk)])
2005-01-25 15:54:53 +00:00
JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*java,,p"`
2005-04-11 07:52:24 +00:00
if test "$_os" = "WINNT"; then
JAVA_HOME=`echo $JAVA_HOME | $SED "s,\.[[eE]][[xX]][[eE]]$,,"`
fi
2007-11-02 12:05:03 +00:00
if test "$_os" = "OS2"; then
JAVA_HOME=`echo $JAVA_HOME | $SED "s,\.[[eE]][[xX]][[eE]]$,,"`
fi
2003-12-17 14:01:13 +00:00
fi
2002-10-02 08:18:56 +00:00
else
2008-08-19 11:03:26 +00:00
AC_MSG_ERROR([JAVA not found. You need at least jdk-1.5, or gcj-4])
2000-09-18 15:18:56 +00:00
fi
else
2003-12-17 14:01:13 +00:00
dnl Java disabled
JAVA_HOME=NO_JAVA_HOME ; export JAVA_HOME
2005-01-25 15:54:53 +00:00
fi
dnl ===================================================================
dnl Checks for javac
dnl ===================================================================
if test "$SOLAR_JAVA" != ""; then
2005-05-31 15:34:02 +00:00
if test "$JDK" = "gcj"; then
2005-03-01 15:38:47 +00:00
javacompiler=`echo $WITH_JAVA | $SED -e "s/gij/gcj/g" | $SED -e "s/java/javac/g"`
2005-01-25 15:54:53 +00:00
else
javacompiler="javac"
fi
2007-11-02 12:05:03 +00:00
if test "$_os" = "OS2"; then
if test x`echo "$javacompiler" | grep -i '\.exe$'` = x; then
javacompiler="${javacompiler}.exe"
fi
fi
2005-01-25 15:54:53 +00:00
if test -z "$with_jdk_home"; then
AC_PATH_PROG(JAVACOMPILER, $javacompiler)
else
_javac_path="$with_jdk_home/bin/$javacompiler"
dnl Check if there is a java compiler at all.
if test -x "$_javac_path"; then
JAVACOMPILER=$_javac_path
fi
fi
if test -z "$JAVACOMPILER"; then
AC_MSG_ERROR([$javacompiler not found set with_jdk_home])
fi
2005-04-11 07:52:24 +00:00
if test "$_os" = "WINNT"; then
if test x`echo "$JAVACOMPILER" | grep -i '\.exe$'` = x; then
JAVACOMPILER="${JAVACOMPILER}.exe"
fi
JAVACOMPILER=`cygpath -d "$JAVACOMPILER"`
JAVACOMPILER=`cygpath -u "$JAVACOMPILER"`
fi
2007-11-02 12:05:03 +00:00
if test "$_os" = "OS2"; then
if test x`echo "$JAVACOMPILER" | grep -i '\.exe$'` = x; then
JAVACOMPILER="${JAVACOMPILER}.exe"
fi
fi
2008-07-31 12:44:41 +00:00
if test `$JAVACOMPILER -version 2>&1 | grep -c "Eclipse Java Compiler"` -gt 0; then
AC_MSG_CHECKING([re-checking JDK])
JDK=gcj
AC_MSG_RESULT([checked (ecj)])
2008-08-19 11:03:26 +00:00
#TODO: what's to do here? some switch to do 1.5 compiling?
JAVAFLAGS="-source 1.5 -target 1.5"
2009-11-24 12:50:19 +00:00
_gij_longver="40200"
2008-07-31 12:44:41 +00:00
fi
2005-01-25 15:54:53 +00:00
fi
2006-07-05 20:12:33 +00:00
JAVACISGCJ=""
dnl ===================================================================
dnl Checks that javac is gcj
dnl ===================================================================
if test "$SOLAR_JAVA" != ""; then
if test `$JAVACOMPILER --version 2>&1 | grep -c "GCC"` -gt 0; then
JAVACISGCJ="yes"
fi
fi
AC_SUBST(JAVACISGCJ)
2005-01-25 15:54:53 +00:00
dnl ===================================================================
dnl Checks for javadoc
dnl ===================================================================
if test "$SOLAR_JAVA" != ""; then
if test -z "$with_jdk_home"; then
AC_PATH_PROG(JAVADOC, javadoc)
else
_javadoc_path="$with_jdk_home/bin/javadoc"
2007-11-02 12:05:03 +00:00
if test "$_os" = "OS2"; then
if test x`echo "$_javadoc_path" | grep -i '\.exe$'` = x; then
_javadoc_path="${_javadoc_path}.exe"
fi
fi
2005-01-25 15:54:53 +00:00
dnl Check if there is a javadoc at all.
if test -x "$_javadoc_path"; then
JAVADOC=$_javadoc_path
else
AC_PATH_PROG(JAVADOC, javadoc)
fi
fi
if test -z "$JAVADOC"; then
AC_MSG_ERROR([$_javadoc_path not found set with_jdk_home])
fi
2005-04-11 07:52:24 +00:00
if test "$_os" = "WINNT"; then
if test x`echo "$JAVADOC" | grep -i '\.exe$'` = x; then
JAVADOC="${JAVADOC}.exe"
fi
JAVADOC=`cygpath -d "$JAVADOC"`
JAVADOC=`cygpath -u "$JAVADOC"`
fi
2007-11-02 12:05:03 +00:00
if test "$_os" = "OS2"; then
if test x`echo "$JAVADOC" | grep -i '\.exe$'` = x; then
JAVADOC="${JAVADOC}.exe"
fi
fi
2005-01-25 15:54:53 +00:00
fi
if test "$SOLAR_JAVA" != ""; then
2007-11-06 13:53:15 +00:00
dnl first check if we have been asked to autodetect JAVA_HOME with a recent gij
2010-06-22 17:07:12 +02:00
if test "$JDK" = "gcj" -a -z "$JAVA_HOME"; then
2009-11-24 12:50:19 +00:00
if test "x$with_jdk_home" = "x" -a "$_gij_longver" -ge "40200"; then
2007-11-06 13:53:15 +00:00
cat > findhome.java <<_ACEOF
[import java.io.File;
class findhome
{
public static void main(String args[])
{
String jrelocation = System.getProperty("java.home");
File jre = new File(jrelocation);
System.out.println(jre.getParent());
}
}]
_ACEOF
AC_MSG_CHECKING([if javac works])
javac_cmd="$JAVACOMPILER findhome.java 1>&2"
AC_TRY_EVAL(javac_cmd)
if test $? = 0 && test -f ./findhome.class ; then
AC_MSG_RESULT([javac works])
else
echo "configure: javac test failed" >&5
cat findhome.java >&5
AC_MSG_ERROR([javac does not work - java projects will not build!])
fi
AC_MSG_CHECKING([if gij knows its java.home])
JAVA_HOME=`$JAVAINTERPRETER findhome`
if test $? = 0 && test "$JAVA_HOME" != "" ; then
AC_MSG_RESULT([$JAVA_HOME])
else
echo "configure: java test failed" >&5
cat findhome.java >&5
AC_MSG_ERROR([gij does not know its java.home - use --with-jdk-home])
fi
else
JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*$WITH_JAVA,,p"`
fi
fi
dnl second sanity check JAVA_HOME if possible
2009-11-24 12:50:19 +00:00
if test "$JDK" != "gcj" -o "$_gij_longver" -ge "40200"; then
2005-01-25 15:54:53 +00:00
# check if JAVA_HOME was (maybe incorrectly?) set automatically to /usr
2005-02-11 16:58:49 +00:00
if test "$JAVA_HOME" = "/usr" -a "x$with_jdk_home" = "x"; then
2005-01-25 15:54:53 +00:00
2005-03-01 15:38:47 +00:00
if basename $(readlink $(readlink $JAVACOMPILER)) >/dev/null 2>/dev/null; then
2005-01-25 15:54:53 +00:00
# try to recover first by looking whether we have a alternatives
# system as in Debian or newer SuSEs where following /usr/bin/javac
# over /etc/alternatives/javac leads to the right bindir where we
# just need to strip a bit away to get a valid JAVA_HOME
2006-12-01 13:52:44 +00:00
JAVA_HOME=$(readlink $(readlink $JAVACOMPILER))
elif readlink $JAVACOMPILER >/dev/null 2>/dev/null; then
# maybe only one level of symlink (e.g. on Mac)
JAVA_HOME=$(readlink $JAVACOMPILER)
2005-01-25 15:54:53 +00:00
else
# else warn
AC_MSG_WARN([JAVA_HOME is set to /usr - this is very likely to be incorrect])
AC_MSG_WARN([if this is the case, please inform the correct JAVA_HOME with --with-jdk-home])
echo "JAVA_HOME is set to /usr - this is very likely to be incorrect" >> warn
echo "if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >> warn
fi
2006-12-01 13:52:44 +00:00
dnl now that we have the path to the real javac, make a JAVA_HOME out of it..
if test "$JAVA_HOME" != "/usr"; then
if test "$_os" = "Darwin"; then
2008-08-19 11:03:26 +00:00
dnl Leopard returns a non-suitable path with readlink - points to "Current" only
JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/Current/Commands/javac$,/CurrentJDK/Home,)
dnl Tiger already returns a JDK path..
JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/CurrentJDK/Commands/javac$,/CurrentJDK/Home,)
2006-12-01 13:52:44 +00:00
else
JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/bin/javac$,,)
fi
fi
2005-01-25 15:54:53 +00:00
fi
# now check if $JAVA_HOME is really valid
2006-12-01 13:52:44 +00:00
if test "$_os" = "Darwin"; then
if test ! -f "$JAVA_HOME/lib/jvm.cfg" -a "x$with_jdk_home" = "x"; then
JAVA_HOME_OK="NO"
fi
elif test ! -d "$JAVA_HOME/jre" -a "x$with_jdk_home" = "x"; then
JAVA_HOME_OK="NO"
fi
if test "$JAVA_HOME_OK" = "NO"; then
2005-01-25 15:54:53 +00:00
AC_MSG_WARN([JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script])
AC_MSG_WARN([attempted to find JAVA_HOME automatically, but apparently it failed])
AC_MSG_WARN([in case JAVA_HOME is incorrectly set, some projects with not be built correctly])
echo "JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >> warn
echo "attempted to find JAVA_HOME automatically, but apparently it failed" >> warn
echo "in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >> warn
2010-06-22 17:07:12 +02:00
# if test "$JDK" = "gcj"; then
2008-08-19 11:03:26 +00:00
# echo "e.g. install java-1.4.2-gcj-compat-devel and use --with-jdk-home=/usr/lib/jvm/java-1.4.2-gcj" >> warn
# fi
2005-01-25 15:54:53 +00:00
fi
fi
fi
2005-03-15 08:11:24 +00:00
2007-10-04 06:48:20 +00:00
AWTLIB=
2006-08-11 15:19:00 +00:00
if test "$SOLAR_JAVA" != ""; then
AC_MSG_CHECKING([for jawt lib name])
if test "$JDK" = "gcj"; then
save_CFLAGS=$CFLAGS
save_LDFLAGS=$LDFLAGS
CFLAGS="$CFLAGS -I$JAVA_HOME/include"
LDFLAGS="$LDFLAGS -L$JAVA_HOME/lib -lgcj"
exec 6>/dev/null # no output
AC_CHECK_HEADER(jni.h, [],
2005-03-15 08:11:24 +00:00
[AC_MSG_ERROR([jni.h could not be found. Mismatch between gcc and libgcj or libgcj-devel missing?])], [])
2006-08-11 15:19:00 +00:00
AC_CHECK_LIB(gcjawt, JAWT_GetAWT, [ AWTLIB="-lgcjawt -lgcj"] )
exec 6>&1 # output on again
CFLAGS=$save_CFLAGS
LDFLAGS=$save_LDFLAGS
2005-06-16 13:38:04 +00:00
fi
2007-10-04 06:48:20 +00:00
# IBM SDK 1.5.0-sr5 includes libjawt.so with unresolved symbols.
# A workaround is to link also against libpmawt.so
if test "$JDK" = "ibm" ; then
save_CFLAGS=$CFLAGS
save_LDFLAGS=$LDFLAGS
save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
CFLAGS="$CFLAGS -I$JAVA_HOME/include"
LDFLAGS="$LDFLAGS -L$JAVA_HOME/jre/bin"
LD_LIBRARY_PATH=$JAVA_HOME/jre/bin:$JAVA_HOME/jre/bin/classic:$JAVA_HOME/jre/bin/xawt:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
exec 6>/dev/null # no output
AC_CHECK_HEADER(jni.h, [],
[AC_MSG_ERROR([jni.h could not be found.])], [])
AC_CHECK_LIB(jawt, JAWT_GetAWT, [ AWTLIB="-ljawt"] )
if test -z "$AWTLIB"; then
LDFLAGS="$LDFLAGS -L$JAVA_HOME/jre/bin/xawt -ljawt"
AC_CHECK_LIB(mawt, JAWT_GetAWT, [ AWTLIB="-L$JAVA_HOME/jre/bin/xawt -ljawt -lmawt"])
fi
exec 6>&1 # output on again
CFLAGS=$save_CFLAGS
LDFLAGS=$save_LDFLAGS
LD_LIBRARY_PATH=$save_LD_LIBRARY_PATH
fi
2005-06-16 13:38:04 +00:00
if test -z "$AWTLIB"; then
2006-08-11 15:19:00 +00:00
AWTLIB=-ljawt
2005-06-16 13:38:04 +00:00
fi
2006-08-11 15:19:00 +00:00
AC_MSG_RESULT([$AWTLIB])
2005-06-16 13:38:04 +00:00
AC_SUBST(AWTLIB)
2005-03-15 08:11:24 +00:00
fi
2005-04-06 09:53:18 +00:00
dnl ===================================================================
2006-07-05 20:12:33 +00:00
dnl Check for optional gcj for AOT
2005-04-06 09:53:18 +00:00
dnl ===================================================================
2006-07-05 20:12:33 +00:00
if test "$SOLAR_JAVA" != ""; then
AC_MSG_CHECKING([whether to enable gcj aot compilation])
if test -n "$enable_gcjaot" && test "$enable_gcjaot" != "no"; then
AC_MSG_RESULT([yes])
if test `echo $WITH_JAVA | grep -c "gij"` -eq 0; then
gcjaot="gcj"
else
gcjaot=`echo $WITH_JAVA | $SED -e "s/gij/gcj/g"`
fi
AC_MSG_RESULT([$gcjaot])
if test -n "$with_jdk_home"; then
_javac_path="$with_jdk_home/bin/$gcjaot"
dnl Check if there is a gcj at all.
if test -x "$_javac_path"; then
JAVAAOTCOMPILER=$_javac_path
fi
fi
if test -z "$JAVAAOTCOMPILER"; then
AC_PATH_PROG(JAVAAOTCOMPILER, $gcjaot)
fi
if test -z "$JAVAAOTCOMPILER"; then
AC_MSG_WARN([$gcjaot not found, set with_jdk_home])
fi
else
AC_MSG_RESULT([no])
fi
2005-04-06 09:53:18 +00:00
fi
2006-01-13 15:37:01 +00:00
AC_SUBST(JAVA_HOME)
AC_SUBST(JDK)
2008-08-19 11:03:26 +00:00
AC_SUBST(JAVAFLAGS)
2006-01-13 15:37:01 +00:00
AC_SUBST(JAVAINTERPRETER)
2010-02-25 09:10:21 +01:00
AC_SUBST(JAVAIFLAGS)
2006-01-13 15:37:01 +00:00
AC_SUBST(JAVACOMPILER)
2006-07-05 20:12:33 +00:00
AC_SUBST(JAVAAOTCOMPILER)
2006-01-13 15:37:01 +00:00
AC_SUBST(JAVADOC)
2005-04-06 09:53:18 +00:00
2000-09-18 15:18:56 +00:00
dnl ===================================================================
dnl Checks for specific files.
dnl ===================================================================
2007-12-12 12:24:44 +00:00
2000-09-18 15:18:56 +00:00
dnl ===================================================================
dnl Checks for programs.
dnl ===================================================================
2002-08-27 09:31:11 +00:00
2003-12-17 14:01:13 +00:00
dnl ===================================================================
dnl Check whether we already have dmake
dnl ===================================================================
AC_PATH_PROG(DMAKE, dmake, no)
if test "$DMAKE" = "no"; then
BUILD_DMAKE=YES
2005-01-25 11:42:58 +00:00
echo "dmake will be built on ./bootstrap"
2003-12-17 14:01:13 +00:00
else
AC_MSG_CHECKING([whether the found dmake is the right dmake])
# we need to find out whether that dmake we found is "our" dmake
2007-06-27 11:11:48 +00:00
# or the dmake from Sun's SunStudio Compiler which is something
2003-12-17 14:01:13 +00:00
# different
# This test _should_ work because the one accepts -V (ours) and one
# (the other) not...
2005-02-11 16:16:13 +00:00
$DMAKE -V 2>/dev/null | grep 'dmake .* Version .*' >/dev/null
2003-12-17 14:01:13 +00:00
if test $? -eq 0; then
BUILD_DMAKE=NO
AC_MSG_RESULT([yes])
2005-02-11 16:16:13 +00:00
AC_MSG_CHECKING([the dmake version])
2009-02-16 10:31:20 +00:00
DMAKE_VERSION=`$DMAKE -V | $AWK '$3 == "Version" {print $4}'`
2007-11-26 11:46:22 +00:00
if test "`echo $DMAKE_VERSION | cut -d'.' -f1`" -gt "4"; then
2008-01-16 13:28:09 +00:00
AC_MSG_RESULT([OK, >= 4.11])
2005-02-11 16:16:13 +00:00
elif test "`echo $DMAKE_VERSION | cut -d'.' -f1`" = "4" && \
2007-11-26 11:46:22 +00:00
test "`echo $DMAKE_VERSION | cut -d'.' -f2`" -ge "11"; then
AC_MSG_RESULT([OK, >= 4.11])
2005-02-11 16:16:13 +00:00
else
2007-11-26 11:46:22 +00:00
AC_MSG_RESULT([too old. >= 4.11 is needed])
2005-02-11 16:16:13 +00:00
echo "A newer dmake will be built on ./bootstrap"
BUILD_DMAKE=YES
fi
2003-12-17 14:01:13 +00:00
else
AC_MSG_RESULT([no])
2005-01-25 11:42:58 +00:00
echo "dmake will be built on ./bootstrap"
2003-12-17 14:01:13 +00:00
BUILD_DMAKE=YES
fi
fi
AC_SUBST(BUILD_DMAKE)
2005-03-08 15:31:52 +00:00
AC_MSG_CHECKING([whether to enable EPM for packing])
2010-01-08 17:55:52 +01:00
if test "$enable_epm" = "yes"; then
2005-03-08 15:31:52 +00:00
AC_MSG_RESULT([yes])
2005-01-25 11:42:58 +00:00
dnl ===================================================================
dnl Check for epm - not needed for windows
dnl ===================================================================
if test "$_os" != "WINNT"; then
if test -n "$with_epm"; then
EPM=$with_epm
else
AC_PATH_PROG(EPM, epm, no)
fi
2005-03-08 15:31:52 +00:00
if test "$EPM" = "no" || test "$EPM" = "internal"; then
echo "EPM will be built."
BUILD_EPM=YES
BUILD_TYPE="$BUILD_TYPE EPM"
2005-01-25 11:42:58 +00:00
else
# Gentoo has some epm which is something different...
AC_MSG_CHECKING([whether the found epm is the right epm])
2005-03-08 15:31:52 +00:00
if $EPM | grep "ESP Package Manager" >/dev/null 2>/dev/null; then
AC_MSG_RESULT([yes])
else
AC_MSG_ERROR([no. Install ESP Package Manager (www.easysw.com/epm) and/or specify the path to the right epm])
fi
AC_MSG_CHECKING([epm version])
EPM_VERSION=`$EPM | grep 'ESP Package Manager' | cut -d' ' -f4 | $SED -e s/v//`
if test "`echo $EPM_VERSION | cut -d'.' -f1`" -gt "3" || \
test "`echo $EPM_VERSION | cut -d'.' -f1`" -eq "3" -a "`echo $EPM_VERSION | cut -d'.' -f2`" -ge "7"; then
2005-03-15 08:46:30 +00:00
AC_MSG_RESULT([OK, >= 3.7])
2005-03-08 15:31:52 +00:00
BUILD_EPM=NO
2005-03-15 08:46:30 +00:00
if test "$_os" = "Darwin"; then
AC_MSG_CHECKING([which PackageMaker EPM thinks to use])
_pm=`strings $EPM | grep PackageMaker | cut -d" " -f1`
if test "$_pm" = "/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker"; then
AC_MSG_ERROR([$_pm; PackageMaker expected in wrong path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)])
2006-01-20 12:28:25 +00:00
elif test "$_pm" = "/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker"; then
2005-03-15 08:46:30 +00:00
AC_MSG_RESULT([$_pm, ok])
else # we never should get here, but go safe
AC_MSG_ERROR([$_pm; PackageMaker expected in unknown path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)])
fi
fi
2005-03-08 15:31:52 +00:00
else
AC_MSG_RESULT([too old. epm >= 3.7 is required.])
echo "EPM will be built."
BUILD_EPM=YES
BUILD_TYPE="$BUILD_TYPE EPM"
fi
2005-01-25 11:42:58 +00:00
fi
fi
2005-03-15 08:46:30 +00:00
# test which package format to use
AC_MSG_CHECKING([which package format to use])
# defaults
case "$_os" in
2007-11-02 12:05:03 +00:00
OS2)
PKGFORMAT=native
;;
2005-03-15 08:46:30 +00:00
Darwin)
2008-01-16 11:50:09 +00:00
PKGFORMAT=dmg
2005-03-15 08:46:30 +00:00
;;
SunOS)
PKGFORMAT=pkg
;;
Linux)
# if building on Debian, default should be deb...
if test -e /etc/debian_version; then
PKGFORMAT=deb
else
PKGFORMAT=rpm
fi
;;
AIX)
PKGFORMAT=aix
;;
*BSD)
PKGFORMAT=bsd
;;
OSF1)
PKGFORMAT=setld
;;
2010-01-08 17:55:52 +01:00
WINNT)
PKGFORMAT=msi
;;
2005-03-15 08:46:30 +00:00
# we never should get here since we check the arciecture/os at the beginning,
# but go sure...
*)
AC_MSG_ERROR([unknown system])
esac
if test -n "$with_package_format"; then
2005-08-30 08:12:36 +00:00
for i in $with_package_format; do
case "$i" in
2010-01-13 17:18:35 +01:00
aix | bsd | deb | inst | tardist | osx | pkg | rpm | setld | native | portable | archive | dmg | installed | msi)
2005-03-15 08:46:30 +00:00
;;
*)
2005-08-30 08:12:36 +00:00
AC_MSG_ERROR([unsupported format $i. Supported by EPM are:
2005-03-15 08:46:30 +00:00
aix - AIX software distribution
bsd - FreeBSD, NetBSD, or OpenBSD software distribution
depot or swinstall - HP-UX software distribution
deb - Debian software distribution
inst or tardist - IRIX software distribution
osx - MacOS X software distribution
pkg - Solaris software distribution
rpm - RedHat software distribution
setld - Tru64 (setld) software distribution
native - "Native" software distribution for the platform
portable - Portable software distribution
2010-01-08 17:55:52 +01:00
OOo additionally supports:
archive - .tar.gz or .zip
dmg - Mac OS X .dmg
installed - installation tree
2010-01-13 17:18:35 +01:00
msi - Windows .msi
2005-03-15 08:46:30 +00:00
])
;;
2005-08-30 08:12:36 +00:00
esac
done
PKGFORMAT="$with_package_format"
2005-03-15 08:46:30 +00:00
fi
2005-08-30 08:12:36 +00:00
AC_MSG_RESULT([$PKGFORMAT])
if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null; then
AC_MSG_CHECKING([for rpm])
for a in "$RPM" rpmbuild rpm; do
$a --usage >/dev/null 2> /dev/null
if test $? -eq 0; then
RPM=$a
break
2006-03-29 11:47:51 +00:00
else
$a --version >/dev/null 2> /dev/null
if test $? -eq 0; then
RPM=$a
break
fi
2005-03-15 08:46:30 +00:00
fi
2005-08-30 08:12:36 +00:00
done
if test -z "$RPM" ; then
AC_MSG_ERROR([not found])
2010-06-22 18:07:30 +02:00
elif "$RPM" --usage 2>&1 | $EGREP -- -bb >/dev/null; then
2005-08-30 08:12:36 +00:00
RPM_PATH=`which $RPM`
2010-06-22 18:07:30 +02:00
AC_MSG_RESULT([$RPM_PATH])
else
AC_MSG_ERROR([cannot build packages. Try installing rpmbuild.])
2005-08-30 08:12:36 +00:00
fi
fi
if echo "$PKGFORMAT" | $EGREP deb 2>&1 >/dev/null; then
AC_PATH_PROG(DPKG, dpkg, no)
if test "$DPKG" = "no"; then
AC_MSG_ERROR([dpkg needed for deb creation. Install dpkg.])
fi
fi
if echo "PKGFORMAT" | $EGREP osx 2>&1 >/dev/null; then
if test "$_os" = "Darwin"; then
AC_MSG_CHECKING([for PackageMaker availability])
if ! test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; then
AC_MSG_ERROR([not installed. Please install Apples Dev Tools])
2005-03-15 08:46:30 +00:00
else
2005-08-30 08:12:36 +00:00
AC_MSG_RESULT([ok])
fi
else
AC_MSG_ERROR([PackageMaker needed to build OSX packages and you are not on OSX...])
fi
fi
if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
2005-04-11 07:52:24 +00:00
if test "$EPM" != "no" && test "$EPM" != "internal"; then
2005-03-15 08:46:30 +00:00
if test "`echo $EPM_VERSION | cut -d'.' -f1`" -lt "4"; then
AC_MSG_CHECKING([whether epm is patched for OOos needs])
if grep "Patched for OpenOffice.org" $EPM >/dev/null 2>/dev/null; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
2005-08-30 08:12:36 +00:00
if echo "$PKGFORMAT" | grep -q rpm; then
2005-03-15 08:46:30 +00:00
_pt="rpm"
AC_MSG_WARN([the rpms will need to be installed with --nodeps])
echo "the rpms will need to be installed with --nodeps" >> warn
else
_pt="pkg"
fi
AC_MSG_WARN([the ${_pt}s will not be relocateable])
echo "the ${_pt}s will not be relocateable" >> warn
AC_MSG_WARN([if you want to make sure installation without --nodeps and
relocation will work, you need to patch your epm with the
patch in epm/epm-3.7.patch or build with
--with-epm=internal which will build a suitable epm])
fi
fi
2005-04-11 07:52:24 +00:00
fi
2005-08-30 08:12:36 +00:00
fi
if echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
AC_PATH_PROG(PKGMK, pkgmk, no)
if test "$PKGMK" = "no"; then
AC_MSG_ERROR([pkgmk needed for Solaris pkg creation. Install it.])
fi
fi
2005-03-08 15:31:52 +00:00
AC_SUBST(BUILD_EPM)
2005-03-15 08:46:30 +00:00
AC_SUBST(PKGFORMAT)
AC_SUBST(RPM)
2005-08-30 08:12:36 +00:00
AC_SUBST(DPKG)
AC_SUBST(PKGMK)
2005-03-08 15:31:52 +00:00
else
AC_MSG_RESULT([no])
2005-05-13 11:13:27 +00:00
EPM=NO
2005-01-05 09:41:55 +00:00
fi
2005-05-13 11:13:27 +00:00
AC_SUBST(EPM)
INTEGRATION: CWS configure3 (1.72.4); FILE MERGED
2004/11/03 12:03:19 rene 1.72.4.7: minor typo
2004/11/03 11:41:21 rene 1.72.4.6: #i36561# configure needs to check for epm
2004/11/02 13:19:31 rene 1.72.4.5: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
oops actually add the AC_ARG_WITH for system-libs...
2004/11/02 13:14:55 rene 1.72.4.4: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
implement a --with-system-libs enabling all other --with-system-* (except mozilla, python and the header ones) and enable ovveriding specific ones with --wiothout-system-* then
2004/11/01 11:04:42 rene 1.72.4.3: #i29991# soltools fails with header/type errors (680)
try to recover and detect a right JAVA_HOME when JAVA_HOME=/usr and we discover
the alternatives system as used in Debian and newer SuSEs
2004/11/01 11:01:07 rene 1.72.4.2: RESYNC: (1.72-1.74); FILE MERGED
2004/10/28 13:04:51 rene 1.72.4.1: #i23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
add library checks for expat and jpeg
2004-11-09 17:41:26 +00:00
2008-01-10 12:05:06 +00:00
dnl ===================================================================
dnl Check for gperf
dnl ===================================================================
AC_PATH_PROG(GPERF, gperf)
if test -z "$GPERF"; then
AC_MSG_ERROR([gperf not found but needed. Install it.])
fi
2008-01-25 14:40:29 +00:00
AC_MSG_CHECKING([gperf version])
2008-01-28 08:49:02 +00:00
if test "`$GPERF --version | $EGREP ^GNU\ gperf | $AWK '{ print $3 }' | cut -d. -f1`" -ge "3"; then
2008-01-25 14:40:29 +00:00
AC_MSG_RESULT([OK])
else
AC_MSG_ERROR([too old, you need at least 3.0.0])
fi
2008-01-10 12:05:06 +00:00
2005-08-16 08:27:11 +00:00
dnl ===================================================================
dnl Check for building ODK
dnl ===================================================================
AC_MSG_CHECKING([whether to build the ODK])
if test "z$enable_odk" = "z" -o "$enable_odk" != "no"; then
AC_MSG_RESULT([yes])
2006-08-22 12:19:10 +00:00
if test "$WITH_JAVA" != "no"; then
2006-08-03 14:10:25 +00:00
AC_MSG_CHECKING([for external/unowinreg/unowinreg.dll])
2009-01-21 17:47:03 +00:00
if ! test -f "./external/unowinreg/unowinreg.dll"; then
2006-08-03 14:10:25 +00:00
HAVE_UNOWINREG_DLL=no
else
HAVE_UNOWINREG_DLL=yes
fi
if test "$HAVE_UNOWINREG_DLL" = "yes"; then
AC_MSG_RESULT([found])
BUILD_UNOWINREG=NO
else
if test "$_os" = "WINNT"; then
AC_MSG_RESULT([not found, will be built])
else
AC_MSG_WARN([not found, will be cross-built using mingw32])
fi
BUILD_UNOWINREG=YES
fi
if test "$_os" != "WINNT" && test "$BUILD_UNOWINREG" = "YES"; then
if test -z "$WITH_MINGWIN" || test "$WITH_MINGWIN" = "0"; then
AC_MSG_ERROR([for rebuilding unowinreg.dll you need the mingw32 C++ compiler.
2006-08-22 12:19:10 +00:00
Specify mingw32 g++ executable name with --with-mingwin.
Or use prebuilt one from http://tools.openoffice.org/unowinreg_prebuild/680/ and
put it into external/unowinreg])
2006-08-03 14:10:25 +00:00
fi
2008-01-28 08:53:36 +00:00
if echo "$WITH_MINGWIN" | $EGREP -q "/"; then
2006-08-03 14:10:25 +00:00
if ! test -x "$WITH_MINGWIN"; then MINGWCXX=false; else MINGWCXX=`basename $WITH_MINGWIN`; fi
else
AC_CHECK_TOOL(MINGWCXX, $WITH_MINGWIN, false)
fi
if test "$MINGWCXX" = "false"; then
AC_MSG_ERROR(specified MinGW32 C++ cross-compiler not found. Install it or correct name.)
fi
AC_MSG_CHECKING(whether we are using the MinGW32 cross C++ compiler)
if ! echo "`$MINGWCXX -dumpmachine`" | grep -q mingw32; then
AC_MSG_ERROR(no)
else
AC_MSG_RESULT(yes)
fi
2008-01-28 08:53:36 +00:00
if echo "$WITH_MINGWIN" | $EGREP -q "/"; then
2006-08-03 14:10:25 +00:00
if ! test -x "`echo $WITH_MINGWIN | $SED -e s/g++/strip/`"; then MINGSTRIP=false; else MINGWSTRIP=$(basename $(echo $WITH_MINGWIN | $SED -e s/g++/strip/)); fi
else
AC_CHECK_TOOL(MINGWSTRIP, `echo $WITH_MINGWIN | $SED -e s/g++/strip/`, false)
fi
if test "$MINGWSTRIP" = "false"; then
AC_MSG_ERROR(MinGW32 binutils needed. Install them.)
fi
2007-12-12 12:24:44 +00:00
AC_LANG_PUSH([C++])
2006-08-03 14:10:25 +00:00
save_CXX=$CXX
save_CXXCPP=$CXXCPP
CXX=$MINGWCXX
CXXCPP="$MINGWCXX -E"
save_CXXFLAGS=$CXXFLAGS
save_CPPFLAGS=$CPPFLAGS
CXXFLAGS="$CXXFLAGS -I$JAVA_HOME/include"
CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/include"
# LIBS contains -lcrypt etc due to teh AC_CHECK_LIBS which obviously
# do not make sense here (and 'd make the check fail)
save_LIBS=$LIBS
LIBS=""
AC_HAVE_LIBRARY(kernel32)
AC_HAVE_LIBRARY(advapi32)
AC_CHECK_HEADER(windows.h, [], [AC_MSG_ERROR([windows.h missing])])
CXXFLAGS=$save_CXXFLAGS
CPPFLAGS=$save_CPPFLAGS
CXX=$save_CXX
CXXCPP=$save_CXXCPP
LIBS=$save_LIBS
2007-12-12 12:24:44 +00:00
AC_LANG_POP([C++])
2006-08-22 12:19:10 +00:00
fi
2006-08-03 14:10:25 +00:00
fi
2005-08-16 08:27:11 +00:00
BUILD_TYPE="$BUILD_TYPE ODK"
else
AC_MSG_RESULT([no])
2006-08-03 14:10:25 +00:00
BUILD_UNOWINREG=NO
2005-08-16 08:27:11 +00:00
fi
2006-08-03 14:10:25 +00:00
AC_SUBST(BUILD_UNOWINREG)
AC_SUBST(MINGWCXX)
AC_SUBST(MINGWSTRIP)
2005-08-16 08:27:11 +00:00
2006-01-20 09:52:29 +00:00
dnl ===================================================================
dnl Check for prelinked libgcc_s.so.1
dnl ===================================================================
2009-12-17 12:42:19 +00:00
if test "$_os" = "Linux" -a -z "$with_system_stdlibs" -a -z "$with_system_libs"; then
2009-11-19 15:41:16 +00:00
if test -n "$checkforstdlibproblems"; then
if test -f /etc/rpm/macros.prelink; then
with_system_stdlibs=yes
AC_MSG_WARN([prelinked libgcc_s.so.1, enabling --with-system-stdlibs, use --without-system-stdlibs to override])
echo "prelinked libgcc_s.so.1, enabling --with-system-stdlibs, use --without-system-stdlibs to override" >> warn
elif test "$GCC" = "yes" -a ! -e `$CC -print-file-name=libgcc_s.so.1`; then
with_system_stdlibs=yes
AC_MSG_WARN([platform doesn't have a libgcc_s.so.1, enabling --with-system-stdlibs, use --without-system-stdlibs to override])
echo "platform doesn't have a libgcc_s.so.1, enabling --with-system-stdlibs, use --without-system-stdlibs to override" >> warn
fi
2008-07-31 12:44:41 +00:00
fi
2006-01-20 09:52:29 +00:00
fi
2005-02-21 14:16:34 +00:00
dnl ===================================================================
dnl Check for system stdlibs
dnl ===================================================================
AC_MSG_CHECKING([whether to provide libstdc++/libgcc_s in the installset])
if test -n "$with_system_stdlibs" -o -n "$with_system_libs" && \
test "$with_system_stdlibs" != "no"; then
AC_MSG_RESULT([no])
SYSTEM_STDLIBS=YES
else
AC_MSG_RESULT([yes])
SYSTEM_STDLIBS=NO
fi
AC_SUBST(SYSTEM_STDLIBS)
2003-12-17 14:01:13 +00:00
dnl ===================================================================
dnl Check for system zlib
dnl ===================================================================
2006-01-31 17:28:45 +00:00
if test "$_os" = "Darwin" && test "$with_system_zlib" != "no"; then
with_system_zlib=yes
fi
2003-12-17 14:01:13 +00:00
AC_MSG_CHECKING([which zlib to use])
INTEGRATION: CWS configure3 (1.72.4); FILE MERGED
2004/11/03 12:03:19 rene 1.72.4.7: minor typo
2004/11/03 11:41:21 rene 1.72.4.6: #i36561# configure needs to check for epm
2004/11/02 13:19:31 rene 1.72.4.5: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
oops actually add the AC_ARG_WITH for system-libs...
2004/11/02 13:14:55 rene 1.72.4.4: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
implement a --with-system-libs enabling all other --with-system-* (except mozilla, python and the header ones) and enable ovveriding specific ones with --wiothout-system-* then
2004/11/01 11:04:42 rene 1.72.4.3: #i29991# soltools fails with header/type errors (680)
try to recover and detect a right JAVA_HOME when JAVA_HOME=/usr and we discover
the alternatives system as used in Debian and newer SuSEs
2004/11/01 11:01:07 rene 1.72.4.2: RESYNC: (1.72-1.74); FILE MERGED
2004/10/28 13:04:51 rene 1.72.4.1: #i23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
add library checks for expat and jpeg
2004-11-09 17:41:26 +00:00
if test -n "$with_system_zlib" -o -n "$with_system_libs" && \
test "$with_system_zlib" != "no"; then
2003-12-17 14:01:13 +00:00
AC_MSG_RESULT([external])
SYSTEM_ZLIB=YES
2004-09-08 14:23:49 +00:00
AC_CHECK_HEADER(zlib.h, [],
[AC_MSG_ERROR(zlib.h not found. install zlib)], [])
AC_CHECK_LIB(z, deflate, [ ZLIB=-lz ],
[AC_MSG_ERROR(zlib not found or functional)], [])
2003-12-17 14:01:13 +00:00
else
AC_MSG_RESULT([internal])
SYSTEM_ZLIB=NO
2005-02-11 14:50:22 +00:00
BUILD_TYPE="$BUILD_TYPE ZLIB"
2003-12-17 14:01:13 +00:00
fi
AC_SUBST(SYSTEM_ZLIB)
2004-09-08 14:23:49 +00:00
dnl ===================================================================
dnl Check for system jpeg
dnl ===================================================================
AC_MSG_CHECKING([which jpeg to use])
INTEGRATION: CWS configure3 (1.72.4); FILE MERGED
2004/11/03 12:03:19 rene 1.72.4.7: minor typo
2004/11/03 11:41:21 rene 1.72.4.6: #i36561# configure needs to check for epm
2004/11/02 13:19:31 rene 1.72.4.5: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
oops actually add the AC_ARG_WITH for system-libs...
2004/11/02 13:14:55 rene 1.72.4.4: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
implement a --with-system-libs enabling all other --with-system-* (except mozilla, python and the header ones) and enable ovveriding specific ones with --wiothout-system-* then
2004/11/01 11:04:42 rene 1.72.4.3: #i29991# soltools fails with header/type errors (680)
try to recover and detect a right JAVA_HOME when JAVA_HOME=/usr and we discover
the alternatives system as used in Debian and newer SuSEs
2004/11/01 11:01:07 rene 1.72.4.2: RESYNC: (1.72-1.74); FILE MERGED
2004/10/28 13:04:51 rene 1.72.4.1: #i23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
add library checks for expat and jpeg
2004-11-09 17:41:26 +00:00
if test -n "$with_system_jpeg" -o -n "$with_system_libs" && \
test "$with_system_jpeg" != "no"; then
2004-09-08 14:23:49 +00:00
AC_MSG_RESULT([external])
SYSTEM_JPEG=YES
AC_CHECK_HEADER(jpeglib.h, [],
[AC_MSG_ERROR(jpeg.h not found. install libjpeg)], [])
INTEGRATION: CWS configure3 (1.72.4); FILE MERGED
2004/11/03 12:03:19 rene 1.72.4.7: minor typo
2004/11/03 11:41:21 rene 1.72.4.6: #i36561# configure needs to check for epm
2004/11/02 13:19:31 rene 1.72.4.5: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
oops actually add the AC_ARG_WITH for system-libs...
2004/11/02 13:14:55 rene 1.72.4.4: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
implement a --with-system-libs enabling all other --with-system-* (except mozilla, python and the header ones) and enable ovveriding specific ones with --wiothout-system-* then
2004/11/01 11:04:42 rene 1.72.4.3: #i29991# soltools fails with header/type errors (680)
try to recover and detect a right JAVA_HOME when JAVA_HOME=/usr and we discover
the alternatives system as used in Debian and newer SuSEs
2004/11/01 11:01:07 rene 1.72.4.2: RESYNC: (1.72-1.74); FILE MERGED
2004/10/28 13:04:51 rene 1.72.4.1: #i23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
add library checks for expat and jpeg
2004-11-09 17:41:26 +00:00
AC_CHECK_LIB(jpeg, jpeg_resync_to_restart, [ JPEG3RDLIB=-ljpeg ],
[AC_MSG_CHECKING(jpeg library not found or fuctional)], [])
2004-09-08 14:23:49 +00:00
else
AC_MSG_RESULT([internal])
SYSTEM_JPEG=NO
2005-02-11 14:50:22 +00:00
BUILD_TYPE="$BUILD_TYPE JPEG"
2004-09-08 14:23:49 +00:00
fi
AC_SUBST(SYSTEM_JPEG)
dnl ===================================================================
dnl Check for system expat
dnl ===================================================================
AC_MSG_CHECKING([which expat to use])
INTEGRATION: CWS configure3 (1.72.4); FILE MERGED
2004/11/03 12:03:19 rene 1.72.4.7: minor typo
2004/11/03 11:41:21 rene 1.72.4.6: #i36561# configure needs to check for epm
2004/11/02 13:19:31 rene 1.72.4.5: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
oops actually add the AC_ARG_WITH for system-libs...
2004/11/02 13:14:55 rene 1.72.4.4: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
implement a --with-system-libs enabling all other --with-system-* (except mozilla, python and the header ones) and enable ovveriding specific ones with --wiothout-system-* then
2004/11/01 11:04:42 rene 1.72.4.3: #i29991# soltools fails with header/type errors (680)
try to recover and detect a right JAVA_HOME when JAVA_HOME=/usr and we discover
the alternatives system as used in Debian and newer SuSEs
2004/11/01 11:01:07 rene 1.72.4.2: RESYNC: (1.72-1.74); FILE MERGED
2004/10/28 13:04:51 rene 1.72.4.1: #i23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
add library checks for expat and jpeg
2004-11-09 17:41:26 +00:00
if test -n "$with_system_expat" -o -n "$with_system_libs" && \
test "$with_system_expat" != "no"; then
2004-09-08 14:23:49 +00:00
AC_MSG_RESULT([external])
SYSTEM_EXPAT=YES
2004-10-11 12:55:26 +00:00
AC_CHECK_HEADER(expat.h, [],
2004-09-08 14:23:49 +00:00
[AC_MSG_ERROR(expat.h not found. install expat)], [])
INTEGRATION: CWS configure3 (1.72.4); FILE MERGED
2004/11/03 12:03:19 rene 1.72.4.7: minor typo
2004/11/03 11:41:21 rene 1.72.4.6: #i36561# configure needs to check for epm
2004/11/02 13:19:31 rene 1.72.4.5: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
oops actually add the AC_ARG_WITH for system-libs...
2004/11/02 13:14:55 rene 1.72.4.4: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
implement a --with-system-libs enabling all other --with-system-* (except mozilla, python and the header ones) and enable ovveriding specific ones with --wiothout-system-* then
2004/11/01 11:04:42 rene 1.72.4.3: #i29991# soltools fails with header/type errors (680)
try to recover and detect a right JAVA_HOME when JAVA_HOME=/usr and we discover
the alternatives system as used in Debian and newer SuSEs
2004/11/01 11:01:07 rene 1.72.4.2: RESYNC: (1.72-1.74); FILE MERGED
2004/10/28 13:04:51 rene 1.72.4.1: #i23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
add library checks for expat and jpeg
2004-11-09 17:41:26 +00:00
AC_CHECK_LIB(expat, XML_ParserCreate, [],
[AC_MSG_RESULT(expat library not found or functional.)], [])
2004-09-08 14:23:49 +00:00
else
AC_MSG_RESULT([internal])
SYSTEM_EXPAT=NO
2005-02-11 14:50:22 +00:00
BUILD_TYPE="$BUILD_TYPE EXPAT"
2004-09-08 14:23:49 +00:00
fi
AC_SUBST(SYSTEM_EXPAT)
2005-03-01 15:57:56 +00:00
dnl ===================================================================
dnl Check for system libwpd
dnl ===================================================================
AC_MSG_CHECKING([which libwpd to use])
if test -n "$with_system_libwpd" -o -n "$with_system_libs" && \
test "$with_system_libwpd" != "no"; then
AC_MSG_RESULT([external])
SYSTEM_LIBWPD=YES
PKG_CHECK_MODULES( LIBWPD, libwpd-0.8 )
else
AC_MSG_RESULT([internal])
SYSTEM_LIBWPD=NO
BUILD_TYPE="$BUILD_TYPE LIBWPD"
fi
AC_SUBST(SYSTEM_LIBWPD)
AC_SUBST(LIBWPD_CFLAGS)
AC_SUBST(LIBWPD_LIBS)
2008-08-01 13:39:54 +00:00
dnl ===================================================================
2010-03-03 21:01:44 +01:00
dnl Check for system cppunit
dnl ===================================================================
2010-03-04 09:44:20 +01:00
AC_MSG_CHECKING([which cppunit to use])
2010-03-03 21:01:44 +01:00
if test -n "$with_system_cppunit" -o -n "$with_system_libs" && \
test "$with_system_cppunit" != "no"; then
AC_MSG_RESULT([external])
SYSTEM_CPPUNIT=YES
2010-03-04 09:41:54 +01:00
# might work for earlier, too but go sure. We didn't have
# a system-cppunit before the first version using a proper cppunit
# (and that being 1.12.1) anyway
PKG_CHECK_MODULES( CPPUNIT, cppunit >= 1.12.1 )
2010-03-04 10:44:35 +01:00
AC_MSG_CHECKING([STL compatibility])
if test "$WITH_STLPORT" != "no"; then
AC_MSG_ERROR([to use system cppunit you need to use --without-stlport])
else
AC_MSG_RESULT([OK])
fi
2010-03-03 21:01:44 +01:00
else
AC_MSG_RESULT([internal])
SYSTEM_CPPUNIT=NO
BUILD_TYPE="$BUILD_TYPE CPPUNIT"
fi
AC_SUBST(SYSTEM_CPPUNIT)
AC_SUBST(CPPUNIT_CFLAGS)
AC_SUBST(CPPUNIT_LIBS)
2008-08-01 13:39:54 +00:00
dnl ===================================================================
dnl Check whether freetype is available
dnl ===================================================================
if test "$test_freetype" = "yes"; then
AC_MSG_CHECKING([whether freetype is available])
PKG_CHECK_MODULES( FREETYPE, freetype2 >= 2.0 )
fi
AC_SUBST(FREETYPE_CFLAGS)
AC_SUBST(FREETYPE_LIBS)
2006-10-24 13:23:11 +00:00
dnl ===================================================================
dnl Check whether freetype2 supports emboldening
dnl ===================================================================
2008-08-01 13:39:54 +00:00
if test "$test_freetype" = "yes"; then
2006-10-24 13:23:11 +00:00
save_CPPFLAGS="$CPPFLAGS"
save_LDFLAGS="$LDFLAGS"
save_LIBS="$LIBS"
CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
LDFLAGS="$LDFLAGS $FREETYPE_LIBS"
AC_CHECK_LIB(freetype, FT_GlyphSlot_Embolden,
[USE_FT_EMBOLDEN="YES"], [USE_FT_EMBOLDEN="NO"], [])
LDFLAGS="$save_LDFLAGS"
CPPFLAGS="$save_CPPFLAGS"
LIBS="$save_LIBS"
fi
AC_SUBST(USE_FT_EMBOLDEN)
2007-05-10 12:15:13 +00:00
if test -n "$with_system_libxslt" -o -n "$with_system_libs" && \
test "$with_system_libxslt" != "no"; then
if test -z "$with_system_libxml" -a -z "$with_system_libs" || \
2010-06-22 17:07:12 +02:00
test "$with_system_libxml" = "no"; then
2007-05-10 12:15:13 +00:00
# somehow AC_MSG_WARN won't work...
echo "to prevent incompatibilities between internal libxml2 and libxslt, the office will be build with system-libxml"
echo "to prevent incompatibilities between internal libxml2 and libxslt, the office will be build with system-libxml" >> warn
with_system_libxml=yes
fi
fi
if test -n "$with_system_libxml" -o -n "$with_system_libs" && \
test "$with_system_libxml" != "no"; then
if test -z "$with_system_libxslt" -a -z "$with_system_libs" || \
2010-06-22 17:07:12 +02:00
test "$with_system_libxslt" = "no"; then
2007-05-10 12:15:13 +00:00
# somehow AC_MSG_WARN won't work...
echo "to prevent incompatibilities between internal libxslt and libxml2, the office will be build with system-libxslt"
echo "to prevent incompatibilities between internal libxslt and libxml2, the office will be build with system-libxslt" >> warn
with_system_libxslt=yes
fi
fi
dnl ===================================================================
dnl Check for system libxslt
dnl ===================================================================
AC_MSG_CHECKING([which libxslt to use])
2008-07-31 12:44:41 +00:00
if test -n "$with_system_libxslt" -o -n "$with_system_libs" -o \
"$_os" = "Darwin" && \
2007-05-10 12:15:13 +00:00
test "$with_system_libxslt" != "no"; then
AC_MSG_RESULT([external])
SYSTEM_LIBXSLT=YES
2008-07-31 12:44:41 +00:00
PKG_CHECK_MODULES_MACHACK(LIBXSLT, xslt-config, libxslt)
2007-05-10 12:15:13 +00:00
dnl Check for xsltproc
AC_PATH_PROG(XSLTPROC, xsltproc, no)
if test "$XSLTPROC" = "no"; then
AC_MSG_ERROR([xsltproc is required])
fi
else
AC_MSG_RESULT([internal])
SYSTEM_LIBXSLT=NO
BUILD_TYPE="$BUILD_TYPE LIBXSLT"
fi
AC_SUBST(SYSTEM_LIBXSLT)
AC_SUBST(LIBXSLT_CFLAGS)
AC_SUBST(LIBXSLT_LIBS)
2004-09-08 14:23:49 +00:00
dnl ===================================================================
dnl Check for system libxml
dnl ===================================================================
AC_MSG_CHECKING([which libxml to use])
2008-07-31 12:44:41 +00:00
if test -n "$with_system_libxml" -o -n "$with_system_libs" -o \
"$_os" = "Darwin" && \
INTEGRATION: CWS configure3 (1.72.4); FILE MERGED
2004/11/03 12:03:19 rene 1.72.4.7: minor typo
2004/11/03 11:41:21 rene 1.72.4.6: #i36561# configure needs to check for epm
2004/11/02 13:19:31 rene 1.72.4.5: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
oops actually add the AC_ARG_WITH for system-libs...
2004/11/02 13:14:55 rene 1.72.4.4: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
implement a --with-system-libs enabling all other --with-system-* (except mozilla, python and the header ones) and enable ovveriding specific ones with --wiothout-system-* then
2004/11/01 11:04:42 rene 1.72.4.3: #i29991# soltools fails with header/type errors (680)
try to recover and detect a right JAVA_HOME when JAVA_HOME=/usr and we discover
the alternatives system as used in Debian and newer SuSEs
2004/11/01 11:01:07 rene 1.72.4.2: RESYNC: (1.72-1.74); FILE MERGED
2004/10/28 13:04:51 rene 1.72.4.1: #i23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
add library checks for expat and jpeg
2004-11-09 17:41:26 +00:00
test "$with_system_libxml" != "no"; then
2004-09-08 14:23:49 +00:00
AC_MSG_RESULT([external])
SYSTEM_LIBXML=YES
2008-07-31 12:44:41 +00:00
PKG_CHECK_MODULES_MACHACK(LIBXML, xml2-config, libxml-2.0 >= 2.0)
2005-02-11 14:50:22 +00:00
BUILD_TYPE="$BUILD_TYPE LIBXMLSEC"
2004-09-08 14:23:49 +00:00
else
AC_MSG_RESULT([internal])
SYSTEM_LIBXML=NO
2005-02-11 14:50:22 +00:00
BUILD_TYPE="$BUILD_TYPE LIBXML2 LIBXMLSEC"
2004-09-08 14:23:49 +00:00
fi
AC_SUBST(SYSTEM_LIBXML)
AC_SUBST(LIBXML_CFLAGS)
AC_SUBST(LIBXML_LIBS)
dnl ===================================================================
dnl Check for system python
dnl ===================================================================
2010-03-16 21:05:31 +01:00
AC_MSG_CHECKING([which python to use])
2006-01-31 17:28:45 +00:00
if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then
2006-01-10 13:33:05 +00:00
with_system_python=yes
2010-03-16 21:05:31 +01:00
AC_MSG_RESULT([compiling against MacOSX10.4u.sdk (python version 2.3)])
PYTHON_CFLAGS="-I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3"
PYTHON_LIBS="-framework Python"
2010-03-26 14:29:30 +01:00
elif test -n "$with_system_python" -o -n "$with_system_libs" && \
2008-07-31 12:44:41 +00:00
test "$with_system_python" != "no"; then
2010-03-26 13:48:29 +01:00
with_system_python=yes
2004-09-08 14:23:49 +00:00
AC_MSG_RESULT([external])
AM_PATH_PYTHON([2.2])
python_include=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('INCLUDEPY');"`
python_version=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('VERSION');"`
PYTHON_CFLAGS="-I$python_include"
2010-03-16 21:05:31 +01:00
PYTHON_LIBS="-lpython$python_version"
fi
2010-03-26 13:48:29 +01:00
if test "$with_system_python" = "yes" ; then
2010-03-16 21:05:31 +01:00
SYSTEM_PYTHON=YES
2004-09-08 14:23:49 +00:00
dnl check if the headers really work:
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
2007-10-25 15:00:29 +00:00
AC_CHECK_HEADER(Python.h, [],
[AC_MSG_ERROR(Python headers not found)], [])
2004-09-08 14:23:49 +00:00
CPPFLAGS="$save_CPPFLAGS"
else
SYSTEM_PYTHON=NO
2005-02-11 14:50:22 +00:00
BUILD_TYPE="$BUILD_TYPE PYTHON"
2004-09-08 14:23:49 +00:00
AC_MSG_RESULT([internal])
2007-01-03 10:33:33 +00:00
# Embedded python dies without Home set
if test "z$HOME" = "z"; then
export HOME="";
fi
2007-12-12 12:24:44 +00:00
# bz2 tarball and bzip2 is not standard
if test -z "$BZIP2"; then
AC_PATH_PROG( BZIP2, bzip2)
if test -z "$BZIP2"; then
AC_MSG_ERROR([the internal Python module has a .tar.bz2. You need bzip2])
fi
fi
2004-09-08 14:23:49 +00:00
fi
AC_SUBST(SYSTEM_PYTHON)
AC_SUBST(PYTHON_CFLAGS)
AC_SUBST(PYTHON_LIBS)
2008-07-31 12:44:41 +00:00
HOME=`echo $HOME | sed 's:\\\\:/:g'`
2007-01-03 10:33:33 +00:00
AC_SUBST(HOME)
2004-09-08 14:23:49 +00:00
dnl ===================================================================
dnl Check for system berkley db
dnl ===================================================================
2005-04-11 08:31:15 +00:00
AC_MSG_CHECKING([which db to use])
if test -n "$with_system_db" -o -n "$with_system_libs" && \
test "$with_system_db" != "no"; then
SYSTEM_DB=YES
AC_MSG_RESULT([external])
AC_CHECK_HEADER(db.h, [ DB_INCLUDES=/usr/include ],
[
CFLAGS=-I/usr/include/db4
AC_CHECK_HEADER(db4/db.h,
[ DB_INCLUDES=/usr/include/db4 ],
[ AC_MSG_ERROR(no. install the db4 libraries) ], []+ )
], []
)
AC_MSG_CHECKING([whether db is at least 4.1])
2009-11-19 20:39:52 +00:00
AC_TRY_RUN([
2005-04-11 08:31:15 +00:00
#include <db.h>
int main(int argc, char **argv) {
2009-11-19 20:39:52 +00:00
if(DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)) return 0;
2005-04-11 08:31:15 +00:00
else return 1;
}
2009-11-19 20:39:52 +00:00
], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR([no. you need at least db 4.1])])
2005-04-11 08:31:15 +00:00
AC_HAVE_LIBRARY(db, [],
[AC_MSG_ERROR([db not installed or functional])], [])
SCPDEFS="$SCPDEFS -DSYSTEM_DB"
else
AC_MSG_RESULT([internal])
SYSTEM_DB=NO
2005-09-23 12:48:01 +00:00
BUILD_TYPE="$BUILD_TYPE BERKELEYDB"
2005-04-11 08:31:15 +00:00
fi
AC_SUBST(SYSTEM_DB)
AC_SUBST(DB_VERSION)
AC_SUBST(DB_INCLUDES)
AC_SUBST(DB_JAR)
2004-09-08 14:23:49 +00:00
2008-07-31 12:44:41 +00:00
dnl ===================================================================
dnl Check for system lucene
dnl ===================================================================
AC_MSG_CHECKING([which lucene to use])
if test -n "$with_system_lucene" -o -n "$with_system_libs" && \
test "$with_system_lucene" != "no" && test "$with_system_jars" != "no"; then
AC_MSG_RESULT([external])
SYSTEM_LUCENE=YES
if test -z $LUCENE_CORE_JAR; then
2008-11-10 15:06:12 +00:00
AC_CHECK_FILE(/usr/share/java/lucene-core-2.3.jar,
[ LUCENE_CORE_JAR=/usr/share/java/lucene-core-2.3.jar ],
[
2010-06-22 16:45:21 +02:00
AC_CHECK_FILE(/usr/share/java/lucene-core.jar,
[ LUCENE_CORE_JAR=/usr/share/java/lucene-core.jar ],
2008-11-10 15:06:12 +00:00
[ AC_MSG_ERROR(lucene-core.jar replacement not found)]
)
]
)
else
AC_CHECK_FILE($LUCENE_CORE_JAR, [],
2008-07-31 12:44:41 +00:00
[AC_MSG_ERROR(lucene-core.jar not found.)], [])
2008-11-10 15:06:12 +00:00
fi
2008-08-01 11:12:29 +00:00
if test -z $LUCENE_ANALYZERS_JAR; then
2008-11-10 15:06:12 +00:00
AC_CHECK_FILE(/usr/share/java/lucene-analyzers-2.3.jar,
[ LUCENE_ANALYZERS_JAR=/usr/share/java/lucene-analyzers-2.3.jar ],
[
AC_CHECK_FILE(/usr/share/java/lucene-contrib/lucene-analyzers.jar,
[ LUCENE_ANALYZERS_JAR=/usr/share/java/lucene-contrib/lucene-analyzers.jar ],
[ AC_MSG_ERROR(lucene-analyzers.jar replacement not found.)]
)
]
)
else
AC_CHECK_FILE($LUCENE_CORE_JAR, [],
[ AC_MSG_ERROR(lucene-analyzers.jar not found.)], [])
2008-08-01 11:12:29 +00:00
fi
2010-06-22 16:45:21 +02:00
AC_MSG_CHECKING([whether lucene is version 2.x])
export LUCENE_CORE_JAR
if $PERL -e 'use Archive::Zip;
my $file = "$ENV{'LUCENE_CORE_JAR'}";
my $zip = Archive::Zip->new( $file );
my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
if ( $mf =~ m/Specification-Version: 2.*/ ) {
exit 0;
} else {
exit 1;
}'; then
AC_MSG_RESULT([yes])
else
AC_MSG_ERROR([no, you need lucene 2])
fi
2008-07-31 12:44:41 +00:00
else
AC_MSG_RESULT([internal])
SYSTEM_LUCENE=NO
BUILD_TYPE="$BUILD_TYPE LUCENE"
fi
AC_SUBST(SYSTEM_LUCENE)
AC_SUBST(LUCENE_CORE_JAR)
2008-08-01 11:12:29 +00:00
AC_SUBST(LUCENE_ANALYZERS_JAR)
2008-07-31 12:44:41 +00:00
2009-12-11 09:51:25 +01:00
AC_MSG_CHECKING([whether to build the MySQL Connector extension])
if test -n "$enable_mysql_connector" -a "$enable_mysql_connector" != "no"; then
AC_MSG_RESULT([yes])
ENABLE_MYSQLC=YES
AC_MSG_CHECKING([for mysqlc module])
if test -d mysqlc; then
AC_MSG_RESULT([OK])
else
AC_MSG_ERROR([not existing. get it (did you get the -extensions tarball?)])
fi
BUILD_TYPE="$BUILD_TYPE MYSQLC"
else
AC_MSG_RESULT([no])
ENABLE_MYSQLC=NO
fi
AC_SUBST(ENABLE_MYSQLC)
if test "$ENABLE_MYSQLC" = "YES"; then
dnl ===================================================================
dnl Check for system MySQL
dnl ===================================================================
AC_MSG_CHECKING([for mysql pre-requisites])
if test -n "$with_system_mysql" -o -n "$with_system_libs" && \
test "$with_system_mysql" != "no" && test "$with_system_libs" != "no"; then
AC_MSG_RESULT([external MySQL])
SYSTEM_MYSQL=YES
AC_PATH_PROG( MYSQLCONFIG, mysql_config)
AC_MSG_CHECKING([MySQL version])
MYSQL_VERSION=`$MYSQLCONFIG --version`
MYSQL_MAJOR=`$MYSQLCONFIG --version | cut -d"." -f1`
if test "$MYSQL_MAJOR" -ge "5"; then
AC_MSG_RESULT([OK])
else
AC_MSG_ERROR([too old, use 5.0.x or 5.1.x])
fi
AC_MSG_CHECKING([for MySQL Client library])
MYSQL_INC=`$MYSQLCONFIG --include`
MYSQL_LIB=`$MYSQLCONFIG --libs`
MYSQL_DEFINES=`$MYSQLCONFIG --cflags | sed -e s,$MYSQL_INC,,`
AC_MSG_RESULT([includes $MYSQL_INC, libraries $MYSQL_LIB])
else
SYSTEM_MYSQL=NO
if test -n "$with_libmysql_path"; then
AC_MSG_RESULT([external Connector/C (libmysql)])
LIBMYSQL=libmysql.so
if test "$_os" = "Darwin"; then
LIBMYSQL=libmysql.dylib
elif test "$_os" = "WINNT"; then
LIBMYSQL=libmysql.dll
fi
AC_MSG_CHECKING([for $LIBMYSQL])
if test -e "$with_libmysql_path/lib/$LIBMYSQL"; then
AC_MSG_RESULT([found.])
LIBMYSQL_PATH=$with_libmysql_path
else
AC_MSG_ERROR([not found. Please specify proper path in --with-libmysql-path.])
fi
else
AC_MSG_ERROR([not given. Please specify either --with-system-mysql or --with-libmysql-path])
fi
fi
AC_SUBST(SYSTEM_MYSQL)
AC_SUBST(MYSQL_INC)
AC_SUBST(MYSQL_LIB)
AC_SUBST(MYSQL_DEFINES)
AC_SUBST(LIBMYSQL_PATH)
AC_LANG_PUSH([C++])
dnl ===================================================================
dnl Check for system MySQL C++ Connector
dnl ===================================================================
# FIXME!
# who thought this too-generic cppconn dir was a good idea?
AC_MSG_CHECKING([MySQL Connector/C++])
if test -n "$with_system_mysql_cppconn" -o -n "$with_system_libs" && \
test "$with_system_mysql_cppconn" != "no" && test "$with_system_libs" != "no"; then
AC_MSG_RESULT([external])
SYSTEM_MYSQL_CPPCONN=YES
AC_LANG_PUSH([C++])
AC_CHECK_HEADER(mysql_driver.h, [],
[AC_MSG_ERROR(mysql_driver.h not found. install MySQL C++ Connectivity)], [])
AC_CHECK_LIB(mysqlcppconn, main, [],
[AC_MSG_ERROR(MySQL C++ Connectivity lib not found or functional)], [])
AC_MSG_CHECKING([version])
AC_TRY_RUN([
#include <mysql_driver.h>
int main(int argc, char **argv) {
sql::Driver *driver;
driver = get_driver_instance();
if (driver->getMajorVersion() > 1 || \
(driver->getMajorVersion() == 1 && driver->getMinorVersion() > 0) || \
(driver->getMajorVersion() == 1 && driver->getMinorVersion() == 0 && driver->getPatchVersion() >= 6))
return 0;
else
return 1;
}
], [AC_MSG_RESULT(OK)], [AC_MSG_ERROR([not suitable, we need >= 1.0.6])])
AC_LANG_POP([C++])
else
AC_MSG_RESULT([internal])
AC_MSG_CHECKING([for mysqlcppconn module])
if test -d mysqlcppconn; then
AC_MSG_RESULT([OK])
else
AC_MSG_ERROR([not existing. get it (did you get the -extensions tarball?)])
fi
BUILD_TYPE="$BUILD_TYPE MYSQLCPPCONN"
SYSTEM_MYSQL_CPPCONN=NO
fi
AC_LANG_POP([C++])
AC_SUBST(SYSTEM_MYSQL_CPPCONN)
fi
2006-04-19 14:09:58 +00:00
dnl ===================================================================
dnl Check for system hsqldb
dnl ===================================================================
AC_MSG_CHECKING([which hsqldb to use])
if test -n "$with_system_hsqldb" -o -n "$with_system_libs" && \
2006-08-22 12:19:10 +00:00
test "$with_system_hsqldb" != "no" && test "$with_system_jars" != "no"; then
2006-04-19 14:09:58 +00:00
AC_MSG_RESULT([external])
SYSTEM_HSQLDB=YES
if test -z $HSQLDB_JAR; then
HSQLDB_JAR=/usr/share/java/hsqldb.jar
fi
AC_CHECK_FILE($HSQLDB_JAR, [],
[AC_MSG_ERROR(hsqldb.jar not found.)], [])
2010-06-22 16:19:42 +02:00
AC_MSG_CHECKING([whether hsqldb is 1.8.0.x])
2006-04-19 14:09:58 +00:00
export HSQLDB_JAR
if $PERL -e 'use Archive::Zip;
my $file = "$ENV{'HSQLDB_JAR'}";
my $zip = Archive::Zip->new( $file );
my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
2007-08-27 15:05:43 +00:00
if ( $mf =~ m/Specification-Version: 1.8.*/ ) {
push @l, split(/\n/, $mf);
foreach my $line (@l) {
if ($line =~ m/Specification-Version:/) {
($t, $version) = split (/:/,$line);
$version =~ s/^\s//;
($a, $b, $c, $d) = split (/\./,$version);
2010-06-22 16:19:42 +02:00
if ($c == "0" && $d > "8") {
2007-08-27 15:05:43 +00:00
exit 0;
} else {
exit 1;
}
}
}
} else {
exit 1;
2006-04-19 14:09:58 +00:00
}'; then
AC_MSG_RESULT([yes])
else
2010-06-22 16:19:42 +02:00
AC_MSG_ERROR([no, you need hsqldb >= 1.8.0.9 but < 1.8.1])
2006-04-19 14:09:58 +00:00
fi
else
AC_MSG_RESULT([internal])
SYSTEM_HSQLDB=NO
BUILD_TYPE="$BUILD_TYPE HSQLDB"
fi
AC_SUBST(SYSTEM_HSQLDB)
AC_SUBST(HSQLDB_JAR)
dnl ===================================================================
dnl Check for system beanshell
dnl ===================================================================
AC_MSG_CHECKING([which beanshell to use])
if test -n "$with_system_beanshell" -o -n "$with_system_libs" && \
2006-08-22 12:19:10 +00:00
test "$with_system_beanshell" != "no" && test "$with_system_jars" != "no"; then
2006-04-19 14:09:58 +00:00
AC_MSG_RESULT([external])
SYSTEM_BSH=YES
if test -z $BSH_JAR; then
BSH_JAR=/usr/share/java/bsh.jar
fi
AC_CHECK_FILE($BSH_JAR, [],
[AC_MSG_ERROR(bsh.jar not found.)], [])
else
AC_MSG_RESULT([internal])
SYSTEM_BSH=NO
BUILD_TYPE="$BUILD_TYPE BSH"
fi
AC_SUBST(SYSTEM_BSH)
AC_SUBST(BSH_JAR)
dnl ===================================================================
2008-08-19 11:03:26 +00:00
dnl Check for system saxon
2006-04-19 14:09:58 +00:00
dnl ===================================================================
2008-08-19 11:03:26 +00:00
AC_MSG_CHECKING([which saxon to use])
if test -n "$with_system_saxon" -o -n "$with_system_libs" && \
test "$with_system_saxon" != "no" && test "$with_system_jars" != "no"; then
2006-04-19 14:09:58 +00:00
AC_MSG_RESULT([external])
2008-08-19 11:03:26 +00:00
SYSTEM_SAXON=YES
if test -z $SAXON_JAR; then
AC_CHECK_FILE(/usr/share/java/saxon9.jar,
[ SAXON_JAR=/usr/share/java/saxon9.jar ],
2006-04-19 14:09:58 +00:00
[
2008-08-19 11:03:26 +00:00
AC_CHECK_FILE(/usr/share/java/saxon.jar,
[ SAXON_JAR=/usr/share/java/saxon.jar ],
[ AC_CHECK_FILE(/usr/share/java/saxon9.jar,
[ SAXON_JAR=/usr/share/java/saxon9.jar ],
[ AC_MSG_ERROR(saxon.jar replacement not found)]
2006-04-19 14:09:58 +00:00
)
]
)
]
)
else
2008-08-19 11:03:26 +00:00
AC_CHECK_FILE($SAXON_JAR, [],
[AC_MSG_ERROR(saxon.jar replacement not found.)], [])
2006-04-19 14:09:58 +00:00
fi
2006-10-11 08:26:04 +00:00
if test -n "$SERIALIZER_JAR"; then
AC_CHECK_FILE($SERIALIZER_JAR, [],
[AC_MSG_ERROR(serializer.jar not found.)], [])
AC_SUBST(SERIALIZER_JAR)
fi
2010-03-15 13:00:27 +00:00
dnl Saxon comes in two practically available versions, the out-of-date saxonb which
dnl supports the java extensions that OOo uses, and the up-to-date saxon he
dnl "home edition" version, which is crippled to not support those java extensions.
dnl And as an aside the he one also needs to be tweaked to include
dnl a META-INF/services to broadcast that it supports the jaxp transform factory
AC_MSG_CHECKING([if saxon works])
cat > saxontest.java <<_ACEOF
[import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.stream.StreamSource;
import java.io.*;
2010-04-02 15:28:14 +01:00
import net.sf.saxon.FeatureKeys;
2010-03-15 13:00:27 +00:00
class saxontest {
public static void main(String[] args) {
System.setProperty("javax.xml.transform.TransformerFactory",
"net.sf.saxon.TransformerFactoryImpl");
try {
TransformerFactory tfactory = TransformerFactory.newInstance();
2010-04-02 15:28:14 +01:00
// some external saxons (Debian, Ubuntu, ...) have this disabled
// per default
tfactory.setAttribute(FeatureKeys.ALLOW_EXTERNAL_FUNCTIONS, new Boolean(true));
2010-03-15 13:00:27 +00:00
System.out.println("TransformerFactory is" +
tfactory.getClass().getName());
Transformer transformer = tfactory.newTransformer(
new StreamSource(new File(args[0])));
} catch(Exception e){
e.printStackTrace(System.err);
System.exit(-1);
}
System.exit(0);
}
}
]
_ACEOF
cat > saxontest.xsl<<_ACEOF
[<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:value-of select="math:sqrt(1)" xmlns:math="java:java.lang.Math"/>
</xsl:template>
</xsl:stylesheet>
]
_ACEOF
2010-04-02 15:28:14 +01:00
javac_cmd="$JAVACOMPILER -cp $SAXON_JAR saxontest.java 1>&2"
2010-03-15 13:00:27 +00:00
AC_TRY_EVAL(javac_cmd)
if test $? = 0 && test -f ./saxontest.class ; then
java_cmd="$JAVAINTERPRETER -cp $SAXON_JAR:. saxontest saxontest.xsl 1>&2"
AC_TRY_EVAL(java_cmd)
if test $? = 0; then
AC_MSG_RESULT([yes])
else
cat saxontest.java >&5
AC_MSG_RESULT([no])
AC_MSG_ERROR([Non-functional saxon jar, e.g. crippled saxon-he instead of saxonb])
fi
else
AC_MSG_RESULT([no])
cat saxontest.java >&5
AC_MSG_ERROR([saxontest could not be compiled, non-functional saxon jar])
fi
2006-04-19 14:09:58 +00:00
else
AC_MSG_RESULT([internal])
2008-08-19 11:03:26 +00:00
SYSTEM_SAXON=NO
NEED_SAXON=TRUE
2006-04-19 14:09:58 +00:00
fi
2008-08-19 11:03:26 +00:00
AC_SUBST(SYSTEM_SAXON)
AC_SUBST(SAXON_JAR)
2006-04-19 14:09:58 +00:00
2008-08-19 11:03:26 +00:00
if test -n "$NEED_SAXON"; then
BUILD_TYPE="$BUILD_TYPE SAXON"
2006-04-19 14:09:58 +00:00
fi
2004-09-08 14:23:49 +00:00
dnl ===================================================================
dnl Check for system curl
dnl ===================================================================
2006-04-20 12:34:04 +00:00
if test "$_os" = "Darwin" && test "$with_system_curl" != "no"; then
with_system_curl=yes
fi
2004-09-08 14:23:49 +00:00
AC_MSG_CHECKING([which curl to use])
INTEGRATION: CWS configure3 (1.72.4); FILE MERGED
2004/11/03 12:03:19 rene 1.72.4.7: minor typo
2004/11/03 11:41:21 rene 1.72.4.6: #i36561# configure needs to check for epm
2004/11/02 13:19:31 rene 1.72.4.5: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
oops actually add the AC_ARG_WITH for system-libs...
2004/11/02 13:14:55 rene 1.72.4.4: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
implement a --with-system-libs enabling all other --with-system-* (except mozilla, python and the header ones) and enable ovveriding specific ones with --wiothout-system-* then
2004/11/01 11:04:42 rene 1.72.4.3: #i29991# soltools fails with header/type errors (680)
try to recover and detect a right JAVA_HOME when JAVA_HOME=/usr and we discover
the alternatives system as used in Debian and newer SuSEs
2004/11/01 11:01:07 rene 1.72.4.2: RESYNC: (1.72-1.74); FILE MERGED
2004/10/28 13:04:51 rene 1.72.4.1: #i23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
add library checks for expat and jpeg
2004-11-09 17:41:26 +00:00
if test -n "$with_system_curl" -o -n "$with_system_libs" && \
test "$with_system_curl" != "no"; then
2004-09-08 14:23:49 +00:00
AC_MSG_RESULT([external])
SYSTEM_CURL=YES
AC_PATH_PROG( CURLCONFIG, curl-config)
if test -z "$CURLCONFIG"; then
AC_MSG_ERROR([install curl to run this script])
fi
2005-01-25 11:42:58 +00:00
# check curl version
2010-01-26 09:57:07 +01:00
AC_MSG_CHECKING([whether curl is >= 7.13.1])
2005-01-25 11:42:58 +00:00
if test "`$CURLCONFIG --version | $AWK -F' ' '{print $2}' | $AWK -F. '{ print $1 }'`" -gt "7" -a \
2010-01-26 09:57:07 +01:00
"`$CURLCONFIG --version | $AWK -F' ' '{print $2}' | $AWK -F. '{ print $2 }'`" -gt "13" -a \
"`$CURLCONFIG --version | $AWK -F' ' '{print $2}' | $AWK -F. '{ print $3 }'`" -gt "1"; then
AC_MSG_ERROR([no, you need at least curl 7.13,1])
2005-01-25 11:42:58 +00:00
else
AC_MSG_RESULT([yes])
fi
2004-09-08 14:23:49 +00:00
CURL_LIBS=`$CURLCONFIG --libs`
CURL_CFLAGS=`$CURLCONFIG --cflags`
else
AC_MSG_RESULT([internal])
SYSTEM_CURL=NO
2005-02-11 14:50:22 +00:00
BUILD_TYPE="$BUILD_TYPE CURL"
2004-09-08 14:23:49 +00:00
fi
AC_SUBST(SYSTEM_CURL)
AC_SUBST(CURL_CFLAGS)
AC_SUBST(CURL_LIBS)
2005-01-18 15:13:20 +00:00
dnl ===================================================================
dnl Check for system boost
dnl ===================================================================
AC_MSG_CHECKING([which boost to use])
2008-07-31 12:44:41 +00:00
if test -n "$with_system_boost" -o -n "$with_system_headers" && \
test "$with_system_boost" != "no"; then
2005-01-18 15:13:20 +00:00
AC_MSG_RESULT([external])
SYSTEM_BOOST=YES
2007-12-12 12:24:44 +00:00
AC_LANG_PUSH([C++])
2005-01-18 15:13:20 +00:00
AC_CHECK_HEADER(boost/shared_ptr.hpp, [],
[AC_MSG_ERROR(boost/shared_ptr.hpp not found. install boost)], [])
CWS-TOOLING: integrate CWS boost134
2009-09-09 10:30:24 +0200 fs r275970 : #i100127# provided by rene: check whether system-boost's function.hpp compiles without exception support
2009-09-04 21:58:00 +0200 fs r275832 : indention
2009-09-04 21:57:10 +0200 fs r275831 : #i10000# type in boost/spirit check. Thanks to thb
2009-09-04 10:58:54 +0200 fs r275787 : #i100127# provided by tono@openoffice.org: mingw needs using directives for std::min/max
2009-09-04 10:31:54 +0200 fs r275782 : #i100127# (approved by hjs) on Solaris, set GNUTAR to /usr/sfw/bin/gtar, this is available on baseline machines (Solaris 10.x), but not necessarily available in LD_LIBRARY_PATH
2009-08-19 21:47:55 +0200 rene r275161 : #i10000# check for the header actually used now
2009-08-17 21:55:31 +0200 fs r275073 : CWS-TOOLING: rebase CWS boost134 to trunk@275001 (milestone: DEV300:m55)
2009-07-16 09:39:25 +0200 fs r274031 : #i100127# extract download/% with GNUTAR instead of TAR
2009-07-14 09:18:15 +0200 fs r273960 : CWS-TOOLING: rebase CWS boost134 to trunk@273858 (milestone: DEV300:m52)
2009-07-13 09:55:14 +0200 fs r273919 : #i100127# use boost 1.39, not 1.34
2009-07-13 09:45:57 +0200 fs r273918 : use GNUTAR when extracting download/%.tar.gz, not TAR (necessary with boost 1.39 tarball)
2009-07-10 21:10:52 +0200 fs r273905 : #i100127# spirit now part of boost
2009-07-06 12:12:13 +0200 fs r273732 : #i10000# lngconvex, used in src/wizards, is built in shell => added missing module dependency
2009-07-02 15:34:51 +0200 fs r273660 : #i100127#
2009-07-02 13:35:24 +0200 fs r273645 : #i100127# MSVC needs some hinting when using boost::bind on (some) member functions
2009-07-02 10:33:59 +0200 fs r273625 : removed unused include (lead to an internal compiler error with MSVC and boost 1.34+)
2009-07-02 09:44:35 +0200 fs r273619 : change some include orders, prevents 'internal compiler errors' with MSVC
2009-07-01 09:19:25 +0200 fs r273547 : #i100127# who the heck is defining max as something unusable?
2009-07-01 09:17:28 +0200 fs r273546 : #i100127# defining min/max is causing trouble now
2009-07-01 09:15:40 +0200 fs r273545 : #i100127# reverted previous patch, and properly fixed the problem by defining BOOST_MEM_FN_ENABLE_CDECL, and disabling warning 4180
2009-07-01 09:14:23 +0200 fs r273544 : #i100127# re-disable warning 4180, still needed for some files
2009-07-01 09:07:33 +0200 fs r273543 : #i100127# reverted previous patch, and properly fixed the problem by defining BOOST_MEM_FN_ENABLE_CDECL
2009-06-24 11:00:32 +0200 fs r273319 : oops, re-introduced some inc locations
2009-06-23 22:10:02 +0200 fs r273304 : #i100127# disable warning C4180
2009-06-23 22:08:36 +0200 fs r273303 : #i100127# disable warning C4180
2009-06-16 12:26:49 +0200 fs r273015 : #i10000# (provided by mst@openoffice.org)
2009-06-15 09:10:27 +0200 fs r272962 : #i10000# use -r instead of -a when copying the include files, this prevents the spurious 'failed to preserve ownership' errors
2009-06-11 23:55:06 +0200 fs r272902 : #i100127#
2009-06-11 23:54:47 +0200 fs r272901 : #i100127#
2009-06-11 23:54:05 +0200 fs r272900 : make compile on unxsol[i|s]4
2009-06-10 10:12:22 +0200 fs r272798 : #i100127# don't deliver from within unxlngi6/misc/build/boost, but from a 'normalized' location unxlngi6/inc
2009-06-10 09:48:00 +0200 fs r272795 : #i100127# use 1.34.1 unconditionally on all platforms
2009-09-17 10:11:42 +00:00
AC_CHECK_HEADER(boost/spirit/include/classic_core.hpp, [],
2010-06-22 18:02:27 +02:00
[AC_MSG_ERROR(boost/spirit/include/classic_core.hpp not found. install boost >= 1.36)], [])
CWS-TOOLING: integrate CWS boost134
2009-09-09 10:30:24 +0200 fs r275970 : #i100127# provided by rene: check whether system-boost's function.hpp compiles without exception support
2009-09-04 21:58:00 +0200 fs r275832 : indention
2009-09-04 21:57:10 +0200 fs r275831 : #i10000# type in boost/spirit check. Thanks to thb
2009-09-04 10:58:54 +0200 fs r275787 : #i100127# provided by tono@openoffice.org: mingw needs using directives for std::min/max
2009-09-04 10:31:54 +0200 fs r275782 : #i100127# (approved by hjs) on Solaris, set GNUTAR to /usr/sfw/bin/gtar, this is available on baseline machines (Solaris 10.x), but not necessarily available in LD_LIBRARY_PATH
2009-08-19 21:47:55 +0200 rene r275161 : #i10000# check for the header actually used now
2009-08-17 21:55:31 +0200 fs r275073 : CWS-TOOLING: rebase CWS boost134 to trunk@275001 (milestone: DEV300:m55)
2009-07-16 09:39:25 +0200 fs r274031 : #i100127# extract download/% with GNUTAR instead of TAR
2009-07-14 09:18:15 +0200 fs r273960 : CWS-TOOLING: rebase CWS boost134 to trunk@273858 (milestone: DEV300:m52)
2009-07-13 09:55:14 +0200 fs r273919 : #i100127# use boost 1.39, not 1.34
2009-07-13 09:45:57 +0200 fs r273918 : use GNUTAR when extracting download/%.tar.gz, not TAR (necessary with boost 1.39 tarball)
2009-07-10 21:10:52 +0200 fs r273905 : #i100127# spirit now part of boost
2009-07-06 12:12:13 +0200 fs r273732 : #i10000# lngconvex, used in src/wizards, is built in shell => added missing module dependency
2009-07-02 15:34:51 +0200 fs r273660 : #i100127#
2009-07-02 13:35:24 +0200 fs r273645 : #i100127# MSVC needs some hinting when using boost::bind on (some) member functions
2009-07-02 10:33:59 +0200 fs r273625 : removed unused include (lead to an internal compiler error with MSVC and boost 1.34+)
2009-07-02 09:44:35 +0200 fs r273619 : change some include orders, prevents 'internal compiler errors' with MSVC
2009-07-01 09:19:25 +0200 fs r273547 : #i100127# who the heck is defining max as something unusable?
2009-07-01 09:17:28 +0200 fs r273546 : #i100127# defining min/max is causing trouble now
2009-07-01 09:15:40 +0200 fs r273545 : #i100127# reverted previous patch, and properly fixed the problem by defining BOOST_MEM_FN_ENABLE_CDECL, and disabling warning 4180
2009-07-01 09:14:23 +0200 fs r273544 : #i100127# re-disable warning 4180, still needed for some files
2009-07-01 09:07:33 +0200 fs r273543 : #i100127# reverted previous patch, and properly fixed the problem by defining BOOST_MEM_FN_ENABLE_CDECL
2009-06-24 11:00:32 +0200 fs r273319 : oops, re-introduced some inc locations
2009-06-23 22:10:02 +0200 fs r273304 : #i100127# disable warning C4180
2009-06-23 22:08:36 +0200 fs r273303 : #i100127# disable warning C4180
2009-06-16 12:26:49 +0200 fs r273015 : #i10000# (provided by mst@openoffice.org)
2009-06-15 09:10:27 +0200 fs r272962 : #i10000# use -r instead of -a when copying the include files, this prevents the spurious 'failed to preserve ownership' errors
2009-06-11 23:55:06 +0200 fs r272902 : #i100127#
2009-06-11 23:54:47 +0200 fs r272901 : #i100127#
2009-06-11 23:54:05 +0200 fs r272900 : make compile on unxsol[i|s]4
2009-06-10 10:12:22 +0200 fs r272798 : #i100127# don't deliver from within unxlngi6/misc/build/boost, but from a 'normalized' location unxlngi6/inc
2009-06-10 09:48:00 +0200 fs r272795 : #i100127# use 1.34.1 unconditionally on all platforms
2009-09-17 10:11:42 +00:00
AC_CHECK_HEADER(boost/function.hpp, [],
[AC_MSG_ERROR(boost/function.hpp not found. install boost)], [])
save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS -fno-exceptions"
AC_MSG_CHECKING([whether boost/function.hpp compiles with -fno-exceptions])
AC_TRY_COMPILE([#include <boost/function.hpp>
], [],
ac_cv_cxx_boost_no_exceptons_broken=no, ac_cv_cxx_boost_no_exceptons_broken=yes)
if test "$ac_cv_cxx_boost_no_exceptons_broken" = "yes"; then
AC_MSG_ERROR([no, see https://bugzilla.redhat.com/show_bug.cgi?id=477131])
else
AC_MSG_RESULT([yes])
fi
CXXFLAGS=$save_CXXFLAGS
2007-12-12 12:24:44 +00:00
AC_LANG_POP([C++])
2005-01-18 15:13:20 +00:00
else
AC_MSG_RESULT([internal])
2005-08-30 08:34:09 +00:00
BUILD_TYPE="$BUILD_TYPE BOOST"
2005-01-18 15:13:20 +00:00
SYSTEM_BOOST=NO
fi
AC_SUBST(SYSTEM_BOOST)
2007-08-02 14:55:25 +00:00
dnl ===================================================================
dnl Check for system vigra
dnl ===================================================================
AC_MSG_CHECKING([which vigra to use])
2008-07-31 12:44:41 +00:00
if test -n "$with_system_vigra" -o -n "$with_system_headers" && \
test "$with_system_vigra" != "no"; then
2007-08-02 14:55:25 +00:00
AC_MSG_RESULT([external])
SYSTEM_VIGRA=YES
2007-12-12 12:24:44 +00:00
AC_LANG_PUSH([C++])
2007-08-02 14:55:25 +00:00
AC_CHECK_HEADER(vigra/copyimage.hxx, [],
[AC_MSG_ERROR(vigra/copyimage.hxx not found. install vigra)], [])
2007-12-12 12:24:44 +00:00
AC_LANG_POP([C++])
2007-08-02 14:55:25 +00:00
else
AC_MSG_RESULT([internal])
BUILD_TYPE="$BUILD_TYPE VIGRA"
SYSTEM_VIGRA=NO
fi
AC_SUBST(SYSTEM_VIGRA)
2004-09-08 14:23:49 +00:00
dnl ===================================================================
dnl Check for system odbc
dnl ===================================================================
AC_MSG_CHECKING([which odbc headers to use])
2008-07-31 12:44:41 +00:00
if test -n "$with_system_odbc_headers" -o -n "$with_system_headers" && \
test "$with_system_odbc_headers" != "no"; then
2004-09-08 14:23:49 +00:00
AC_MSG_RESULT([external])
SYSTEM_ODBC_HEADERS=YES
AC_CHECK_HEADER(sqlext.h, [],
[AC_MSG_ERROR(odbc not found. install odbc)], [])
else
AC_MSG_RESULT([internal])
SYSTEM_ODBC_HEADERS=NO
2005-02-21 14:16:34 +00:00
BUILD_TYPE="$BUILD_TYPE UNIXODBC"
2004-09-08 14:23:49 +00:00
fi
AC_SUBST(SYSTEM_ODBC_HEADERS)
2005-03-30 10:38:08 +00:00
AC_MSG_CHECKING([whether to enable build of Mozilla/Mozilla NSS-using components])
if test "$enable_mozilla" = "no"; then
AC_MSG_RESULT([no])
WITH_MOZILLA=NO
2009-08-26 08:22:01 +00:00
ENABLE_NSS_MODULE=NO
2005-03-30 10:38:08 +00:00
else
AC_MSG_RESULT([yes])
WITH_MOZILLA=YES
fi
AC_SUBST(WITH_MOZILLA)
AC_MSG_CHECKING([whether to build Mozilla addressbook connectivity])
if test "$enable_mozilla" = "no"; then
AC_MSG_RESULT([no])
2007-12-12 12:24:44 +00:00
elif test "$with_system_mozilla" = "yes"; then
2005-03-30 10:38:08 +00:00
AC_MSG_RESULT([no, not possible with system-mozilla])
else
AC_MSG_RESULT([yes])
fi
AC_MSG_CHECKING([whether to build XML Security support])
if test "$enable_mozilla" = "no"; then
AC_MSG_RESULT([no, since Mozilla (NSS) disabled but needed])
else
AC_MSG_RESULT([yes])
fi
AC_MSG_CHECKING([whether to build LDAP configuration backend])
2006-04-20 12:34:04 +00:00
if test -z "$enable_ldap" || test "$enable_ldap" = "yes"; then
if test "$enable_mozilla" = "yes" || test "$with_openldap" = "yes"; then
AC_MSG_RESULT([yes])
WITH_LDAP=YES
else
AC_MSG_RESULT([no. Either Mozilla or OpenLDAP needed])
WITH_LDAP=NO
fi
2005-03-30 10:38:08 +00:00
else
2006-04-20 12:34:04 +00:00
AC_MSG_RESULT([no])
WITH_LDAP=NO
2005-03-30 10:38:08 +00:00
fi
if test "$WITH_LDAP" = "YES"; then
dnl ===================================================================
dnl Test whether we want to use the Mozilla or the OpenLDAP LDAP SDK
dnl ===================================================================
AC_MSG_CHECKING([which LDAP SDK to use])
2006-04-20 12:34:04 +00:00
if test -n "$with_openldap" && test "$with_openldap" != "no"; then
2005-03-30 10:38:08 +00:00
AC_MSG_RESULT([OpenLDAP])
WITH_OPENLDAP=YES
AC_CHECK_HEADERS(ldap.h, [],
[AC_MSG_ERROR(ldap.h not found. install openldap libs)], [])
AC_CHECK_LIB(ldap, ldap_simple_bind_s, [],
[AC_MSG_ERROR(openldap lib not found or functional)], [])
# rumours say that OpenLDAP doesn't have that function. I looked and
# it has it. Test for it to be sure
AC_CHECK_LIB(ldap, ldap_set_option, [],
[AC_MSG_ERROR(openldap lib not found or functional)], [])
else
AC_MSG_RESULT([Netscape/Mozilla])
# TODO. Actually do a sanity check and check for
# LDAP_OPT_SIZELIMIT and LDAP_X_OPT_CONNECT_TIMEOUT
WITH_OPENLDAP=NO
fi
fi
2006-04-20 12:34:04 +00:00
AC_SUBST(WITH_LDAP)
2005-03-30 10:38:08 +00:00
AC_SUBST(WITH_OPENLDAP)
dnl ===================================================================
dnl Check for system mozilla
dnl ===================================================================
AC_MSG_CHECKING([which mozilla to use])
2006-07-19 08:52:02 +00:00
if test -n "$with_system_mozilla" && test "$with_system_mozilla" != "no"; then
2005-03-30 10:38:08 +00:00
AC_MSG_RESULT([external])
SYSTEM_MOZILLA=YES
2009-08-26 08:22:01 +00:00
ENABLE_NSS_MODULE=NO
enable_nss_module=no
2006-07-19 08:52:02 +00:00
AC_MSG_CHECKING([which Mozilla flavour to use])
2008-07-31 12:44:41 +00:00
if test -n "$with_system_mozilla" && test "$with_system_mozilla" = "libxul"; then
MOZ_FLAVOUR=libxul
elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "xulrunner"; then
2006-07-19 08:52:02 +00:00
MOZ_FLAVOUR=xulrunner
2007-07-31 12:09:29 +00:00
elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "seamonkey"; then
MOZ_FLAVOUR=seamonkey
elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "firefox"; then
MOZ_FLAVOUR=firefox
elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "mozilla"; then
2006-07-19 08:52:02 +00:00
MOZ_FLAVOUR=mozilla
2007-07-31 12:09:29 +00:00
else
2008-07-31 12:44:41 +00:00
MOZ_FLAVOUR=libxul
2005-06-21 06:55:05 +00:00
fi
2006-07-19 08:52:02 +00:00
tmp=`echo $MOZ_FLAVOUR | $PERL -e 'print ucfirst(<STDIN>);'`
2005-06-21 06:55:05 +00:00
AC_MSG_RESULT($tmp)
2008-07-31 12:44:41 +00:00
PKG_CHECK_MODULES( MOZ_NSS, nss, STANDALONENSS="TRUE", STANDALONENSS="" )
if test -z "$STANDALONENSS"; then
PKG_CHECK_MODULES( MOZ_NSS, $MOZ_FLAVOUR-nss )
else
NSS_LIB="-L`$PKG_CONFIG --variable=libdir nss`"
AC_SUBST(NSS_LIB)
fi
2005-03-30 10:38:08 +00:00
2005-12-21 10:09:36 +00:00
if $PKG_CONFIG --exists nspr ; then
PKG_CHECK_MODULES( MOZ_NSPR, nspr )
2006-07-19 08:52:02 +00:00
NSPR_LIB="-L`$PKG_CONFIG --variable=libdir nspr`"
AC_SUBST(NSPR_LIB)
2005-12-21 10:09:36 +00:00
else
2006-07-19 08:52:02 +00:00
PKG_CHECK_MODULES( MOZ_NSPR, $MOZ_FLAVOUR-nspr )
2005-12-21 10:09:36 +00:00
fi
2009-02-16 10:31:20 +00:00
if test "$MOZ_FLAVOUR" != "libxul"; then
PKG_CHECK_MODULES( MOZILLAXPCOM, $MOZ_FLAVOUR-xpcom, HASXPCOM="TRUE", HASXPCOM="" )
MOZ_INC=`$PKG_CONFIG --variable=includedir $MOZ_FLAVOUR-xpcom`
MOZ_LIB=`$PKG_CONFIG --variable=libdir $MOZ_FLAVOUR-xpcom`
fi
if test -z "$HASXPCOM"; then
2008-07-31 12:44:41 +00:00
PKG_CHECK_MODULES( MOZILLAXPCOM, libxul )
MOZ_INC=`$PKG_CONFIG --variable=includedir libxul`
MOZ_LIB=`$PKG_CONFIG --variable=libdir libxul`
if ! test -e "$MOZ_LIB/libxul.so"; then
MOZ_LIB=`$PKG_CONFIG --variable=sdkdir libxul`
if test -e "$MOZ_LIB/sdk/lib/libxul.so"; then
MOZ_LIB="$MOZ_LIB/sdk/lib"
fi
fi
2006-01-20 09:52:29 +00:00
fi
2005-03-30 10:38:08 +00:00
save_CPPFLAGS="$CPPFLAGS"
save_LDFLAGS="$LDFLAGS"
save_LIBS="$LIBS"
CPPFLAGS="$CPPFLAGS $MOZ_NSS_CFLAGS"
LDFLAGS="$LDFLAGS $MOZ_NSS_LIBS"
AC_CHECK_LIB(nss3, PK11_GetCertFromPrivateKey, [],
[AC_MSG_ERROR(PK11_GetCertFromPrivateKey missing but needed.
See https://bugzilla.mozilla.org/show_bug.cgi?id=262274.
Fixed since nss 3.9.3 (contained by e.g. mozilla >= 1.7.5))], [])
LDFLAGS="$save_LDFLAGS"
CPPFLAGS="$save_CPPFLAGS"
LIBS="$save_LIBS"
MOZ_LIB_XPCOM=$MOZILLAXPCOM_LIBS
2006-04-20 12:34:04 +00:00
if test "$WITH_LDAP" != "NO" && test "$WITH_OPENLDAP" != "YES"; then
2006-01-10 13:33:05 +00:00
AC_MSG_CHECKING([whether $tmp was compiled with --enable-ldap])
if test -d "$MOZ_INC/ldap"; then
AC_MSG_RESULT([yes])
MOZ_LDAP_CFLAGS="-I$MOZ_INC"
else
AC_MSG_ERROR([no.
Could not find LDAP header include files in $MOZ_INC/ldap.
2006-08-22 12:19:10 +00:00
Please recompile $tmp with --enable-ldap or use --with-openldap.])
2006-01-10 13:33:05 +00:00
fi
2005-03-30 10:38:08 +00:00
fi
2008-07-31 12:44:41 +00:00
#e.g. http://fedoraproject.org/wiki/Releases/FeatureXULRunnerAPIChanges
#the plugin pkg-config etc. reverts to "mozilla-plugin" with libxul
2010-06-22 17:07:12 +02:00
if test "$MOZ_FLAVOUR" = "libxul"; then
2008-07-31 12:44:41 +00:00
MOZ_FLAVOUR="mozilla"
fi
2005-03-30 10:38:08 +00:00
elif test "$enable_mozilla" = "no"; then
AC_MSG_RESULT([none])
WITH_MOZILLA=NO
2009-08-26 08:22:01 +00:00
ENABLE_NSS_MODULE=NO
enable_nss_module=no
2005-03-30 10:38:08 +00:00
else
AC_MSG_RESULT([internal])
SYSTEM_MOZILLA=NO
2006-02-09 13:01:58 +00:00
BUILD_TYPE="$BUILD_TYPE MOZ"
2005-03-30 10:38:08 +00:00
if test -z "$with_mozilla_version"; then
MOZILLA_VERSION=
else
AC_MSG_CHECKING([which mozilla version to build])
MOZILLA_VERSION=$with_mozilla_version
enable_build_mozilla=1
AC_MSG_RESULT([$MOZILLA_VERSION])
fi
AC_SUBST(MOZILLA_VERSION)
2006-12-01 13:52:44 +00:00
AC_MSG_CHECKING([for toolkit mozilla should use])
2005-03-30 10:38:08 +00:00
if test -z "$with_mozilla_toolkit"; then
CWS-TOOLING: integrate CWS moz2seamonkey01
2009-06-18 20:56:43 +0200 fs r273133 : #i10000# corrected resolved of merge conflict
2009-06-18 20:55:34 +0200 fs r273132 : #i10000# corrected resolved of merge conflict
2009-06-18 10:49:26 +0200 fs r273105 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@272827 (milestone: DEV300:m50)
2009-06-17 20:48:35 +0200 fs r273094 : #i84961# removed 'pointless and buggy' echo statement
2009-05-22 11:27:08 +0200 fs r272176 : #i101763#
provided by tono@openoffice.org
make compile with mingw
2009-05-22 11:22:25 +0200 fs r272175 : #i101763#
provided by tono@openoffice.org
allow compilation in with mingw
2009-04-15 12:09:28 +0200 fs r270830 : unconditionally disable moz executables
2009-03-27 12:29:38 +0100 fs r270149 : ignore some configure-related files
2009-03-27 11:47:35 +0100 fs r270145 : SolarisSparc needs libfreebl_32fpu_3.so
2009-03-27 11:38:09 +0100 fs r270141 : regxpcom call not needed nowadays / also pack libfreebl3 (needed for signature/encryption)
2009-03-26 21:40:17 +0100 fs r270108 : superseded by 1.1.14 version
2009-03-24 13:07:21 +0100 fs r269938 : xptitemp.dat seemingly not needed anymore
2009-03-23 12:56:29 +0100 fs r269869 : files with : in their name break the build
2009-03-23 12:22:01 +0100 fs r269866 : files with : in their name break the build
2009-03-21 23:12:06 +0100 fs r269843 : manual resync: merge the changes which happened on TRUNK in mozilla-source-1.7.5.patch herein
2009-03-21 21:58:17 +0100 fs r269841 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@269781 (milestone: DEV300:m44)
2009-03-18 12:04:25 +0100 fs r269649 : in SunHH environment, use pre-requisites from /so/env
2009-03-16 12:33:18 +0100 pastea_p r269522 : correct makefile.mk sorry again
2009-03-15 17:32:43 +0100 pastea_p r269506 : last files about migration to 1.1.14
2009-03-15 17:19:39 +0100 pastea_p r269505 : Migrates some files to 1.1.14
2009-03-04 07:45:40 +0100 fs r268782 : also add pref.xpt
2009-02-27 09:57:37 +0100 fs r268555 : #i66338# for the moment, disable Mozilla-based code for unxlngx6
2009-02-23 10:56:28 +0100 fs r268346 : syntax
2009-02-19 14:14:56 +0100 fs r268283 : make PrintPDE compile in Sun's internal build environment by removing some unneeded stuff
2009-02-18 15:40:40 +0100 fs r268236 : #i66338# re-enable MozAB on Mac
2009-02-18 15:39:55 +0100 fs r268235 : #i66338#
2009-02-18 15:30:38 +0100 fs r268232 : #i66338# tar => $(TAR) (provided by hjs)
2009-02-18 15:28:45 +0100 fs r268231 : more build envs supported (thanks to hjs for all this work!)
2009-02-18 15:27:02 +0100 fs r268230 : #i66338#
2009-02-18 15:23:04 +0100 fs r268229 : #i66338# let it build on Solaris, in Sun Hamburg's build environment
2009-02-18 12:00:12 +0100 fs r268210 : #i10000#
2009-02-18 08:17:29 +0100 fs r268198 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-18 08:16:50 +0100 fs r268197 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-14 14:05:24 +0100 fs r267757 : redo the Windows related changes lost with recent resync
2009-02-14 00:06:33 +0100 ericb r267755 : #i94628# remove the config_office dir now
2009-02-14 00:04:59 +0100 ericb r267754 : #i94628# remove all files in config_office now
2009-02-14 00:01:26 +0100 ericb r267753 : #i94628# remove guw in config_office
2009-02-13 23:53:00 +0100 ericb r267752 : #i94628# remove files in config_office
2009-02-13 16:02:58 +0100 fs r267725 : #i10000#
2009-02-12 18:14:31 +0100 ericb r267685 : #i94628# new generated configure
2009-02-12 18:13:52 +0100 ericb r267684 : #i94628# fix a path issue for finding seamonkey01
2009-02-12 14:39:17 +0100 ericb r267662 : #i94628# removing seamonkey.1.1.12 patch
2009-02-12 14:21:04 +0100 ericb r267658 : #i94628# the new configure, after autoconf
2009-02-12 14:13:21 +0100 ericb r267656 : #i94628# other missing changes for Windows
2009-02-12 14:04:26 +0100 ericb r267655 : #i94628# recommit configure.in changes after config_office removing
2009-02-12 13:46:12 +0100 ericb r267653 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-12 12:00:48 +0100 ericb r267643 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-11 13:28:50 +0100 pl r267595 : #i94628# add MACDEVSDK variable for unxmacxi
2009-02-06 09:44:15 +0100 ericb r267446 : #i98957# provide the zipped archives too
2009-02-06 09:43:32 +0100 ericb r267445 : #i98957# make seamonkey buildable on OpenSolaris, adding the right options for configure
2009-02-06 09:42:45 +0100 ericb r267444 : #i98957# make seamonkey buildable on OpenSolaris
2009-02-02 09:41:57 +0100 fs r267252 : #i66338#
2009-02-02 09:41:43 +0100 fs r267251 : #i66338#
2009-01-30 15:12:03 +0100 fs r267200 : code consolidation - MQueryHelper now uses MLdapAttributeMap's fillCardFromResult and fillResultFromCard, which makes the code as such shorter, and eliminates information duplication
2009-01-30 11:53:31 +0100 fs r267189 : reworked the statement parsing / statement execution / result set creation: now we don't anymore create three result sets (two of them leaking) for a single prepared statement ...
2009-01-29 20:37:01 +0100 fs r267170 : #i10000#
2009-01-29 20:32:50 +0100 fs r267169 : more explicit return type of parseSql
2009-01-29 17:32:56 +0100 fs r267163 : slightly refactored the statement class hierarchy (basically remove OStatement_BASE2, and renamed the other base classes)
2009-01-29 17:14:58 +0100 fs r267161 : #i66338# first implementation to re-enable LDAP access. Still work in progress (but hey, you can see the data already :)
2009-01-12 11:25:56 +0100 fs r266138 : allow using a debug-enabled version of Mozilla/SeaMonkey when MOZILLA_ENABLE_DEBUG is set
2009-01-10 22:01:40 +0100 fs r266126 : #i95772# nsldap32v50.dll also needs an embedded manifest (the LDP configuration backend links directly against it)
2009-01-09 11:15:32 +0100 fs r266065 : manifests for DLLs need to have ID 2, not 1
2009-01-08 20:02:24 +0100 fs r266035 : #i95772# embed manifest file in shared libs built in directory/c-sdk, too
2009-01-05 20:45:38 +0100 ericb r265886 : #i66338# commiting the correct configure for the tinderboxes
2009-01-05 17:42:34 +0100 ericb r265883 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@265758 (milestone: DEV300:m38)
2008-12-16 15:34:26 +0100 ericb r265550 : #i94628# change for seamonkey1.1.13 : do not forget to do autoconf in config_office before configure
2008-12-16 15:25:37 +0100 pastea_p r265547 : 1.1.12 to 1.1.13
2008-12-16 14:20:18 +0100 pastea_p r265540 : correct the hunk about no core_abspath which one broke linux build
2008-12-16 13:10:06 +0100 pastea_p r265535 : Change name of patch to 1.1.13
2008-12-15 23:32:54 +0100 pastea_p r265518 : 2008-12-12 18:43:36 +0100 pastea_p r265435 : update to 1.1.13
2008-12-12 10:56:38 +0100 fs r265398 : #i95772# embed .manifest files into SHARED_LIBRARYs built in nsprpub, too
2008-12-12 09:56:38 +0100 fs r265391 : #i95772# don't use regxpcomp on Windows, it's not needed
2008-12-11 11:22:43 +0100 fs r265269 : #i95772# Moz/SeaMonkey libs on Windows now link against msvc?80.dll
2008-12-10 13:45:51 +0100 fs r265182 : proper OSL_ENSURE message
2008-11-13 13:18:03 +0100 fs r263635 : #i95772# more patches
2008-11-13 12:14:41 +0100 fs r263630 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:13:33 +0100 fs r263629 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:08:22 +0100 fs r263628 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:04:15 +0100 fs r263627 : #i95772#
2008-11-12 08:23:20 +0100 fs r263575 : i95772# use xpcom_core on Windows, too
2008-11-11 21:02:14 +0100 fs r263574 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 20:58:07 +0100 fs r263573 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 15:05:42 +0100 fs r263564 : alternative fix for part 1 of #i94957#
2008-11-10 22:18:14 +0100 fs r263541 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 22:15:57 +0100 fs r263540 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 09:28:26 +0100 fs r263509 : #i95772# when building on WNT, embed the .manifest file into the .dll/.exe
2008-11-10 09:19:06 +0100 fs r263508 : collect single patches which comprise the complete patch
2008-11-06 09:10:21 +0100 fs r263360 : #i95772# core_abspath does not work on Windows, too (at least in security/nss/cmd/shlibsign). Replace with 'cygpath -d -a'
2008-11-02 22:51:27 +0100 fs r263277 : #i95772# sanitize INCLUDEDIR and GENHEADERS to use cygwin path notation - cygwin's make 1.81 doesn't cope with Windows path notation
2008-11-02 22:50:15 +0100 fs r263276 : #i95772# no --enable-system-cairo on Windows
2008-10-18 20:12:36 +0200 pastea_p r262297 : 2008-10-16 17:15:35 +0200 ericb r262267 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 17:14:49 +0200 ericb r262266 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 16:58:21 +0200 ericb r262263 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-15 20:16:28 +0200 ericb r262242 : #i94628# use mac as default toolkit on mac
2008-10-14 18:54:13 +0200 ericb r262216 : #i90774# modify the configure.in for moz2seamonkey migration
2008-10-14 18:48:57 +0200 ericb r262215 : #i90774# commit moz2seamonkey changes for svn migration
2008-10-14 18:47:05 +0200 ericb r262214 : #i90774# commit moz2seamonkey changes for svn migration
2009-07-15 11:06:05 +00:00
if test "$_os" != "WINNT" ; then
if test "$_os" = "Darwin" ; then
MOZILLA_TOOLKIT=mac
AC_MSG_RESULT([mac])
else
MOZILLA_TOOLKIT=gtk2
AC_MSG_RESULT([gtk2])
fi
2005-03-30 10:38:08 +00:00
fi
else
MOZILLA_TOOLKIT=$with_mozilla_toolkit
enable_build_mozilla=1
AC_MSG_RESULT([$MOZILLA_TOOLKIT])
fi
2009-01-21 17:47:03 +00:00
#if test "$_os" = "Darwin" && test "$MOZILLA_TOOLKIT" != "gtk2"; then
# #only gtk2 toolkit supported - xlib or cocoa nees glib1 and libIDL1 - the latter is not
# #available using fink, mac (carbon) doesn't work because xcode installs conflicting headers
# AC_MSG_ERROR([Only gtk2 toolkit supported on Mac, sorry.])
#fi
2005-03-30 10:38:08 +00:00
AC_SUBST(MOZILLA_TOOLKIT)
2006-08-22 12:19:10 +00:00
# default to enabling build mozilla
if test "$enable_build_mozilla" != "no"; then
enable_build_mozilla=yes
else
enable_build_mozilla=
fi
CWS-TOOLING: integrate CWS moz2seamonkey01
2009-06-18 20:56:43 +0200 fs r273133 : #i10000# corrected resolved of merge conflict
2009-06-18 20:55:34 +0200 fs r273132 : #i10000# corrected resolved of merge conflict
2009-06-18 10:49:26 +0200 fs r273105 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@272827 (milestone: DEV300:m50)
2009-06-17 20:48:35 +0200 fs r273094 : #i84961# removed 'pointless and buggy' echo statement
2009-05-22 11:27:08 +0200 fs r272176 : #i101763#
provided by tono@openoffice.org
make compile with mingw
2009-05-22 11:22:25 +0200 fs r272175 : #i101763#
provided by tono@openoffice.org
allow compilation in with mingw
2009-04-15 12:09:28 +0200 fs r270830 : unconditionally disable moz executables
2009-03-27 12:29:38 +0100 fs r270149 : ignore some configure-related files
2009-03-27 11:47:35 +0100 fs r270145 : SolarisSparc needs libfreebl_32fpu_3.so
2009-03-27 11:38:09 +0100 fs r270141 : regxpcom call not needed nowadays / also pack libfreebl3 (needed for signature/encryption)
2009-03-26 21:40:17 +0100 fs r270108 : superseded by 1.1.14 version
2009-03-24 13:07:21 +0100 fs r269938 : xptitemp.dat seemingly not needed anymore
2009-03-23 12:56:29 +0100 fs r269869 : files with : in their name break the build
2009-03-23 12:22:01 +0100 fs r269866 : files with : in their name break the build
2009-03-21 23:12:06 +0100 fs r269843 : manual resync: merge the changes which happened on TRUNK in mozilla-source-1.7.5.patch herein
2009-03-21 21:58:17 +0100 fs r269841 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@269781 (milestone: DEV300:m44)
2009-03-18 12:04:25 +0100 fs r269649 : in SunHH environment, use pre-requisites from /so/env
2009-03-16 12:33:18 +0100 pastea_p r269522 : correct makefile.mk sorry again
2009-03-15 17:32:43 +0100 pastea_p r269506 : last files about migration to 1.1.14
2009-03-15 17:19:39 +0100 pastea_p r269505 : Migrates some files to 1.1.14
2009-03-04 07:45:40 +0100 fs r268782 : also add pref.xpt
2009-02-27 09:57:37 +0100 fs r268555 : #i66338# for the moment, disable Mozilla-based code for unxlngx6
2009-02-23 10:56:28 +0100 fs r268346 : syntax
2009-02-19 14:14:56 +0100 fs r268283 : make PrintPDE compile in Sun's internal build environment by removing some unneeded stuff
2009-02-18 15:40:40 +0100 fs r268236 : #i66338# re-enable MozAB on Mac
2009-02-18 15:39:55 +0100 fs r268235 : #i66338#
2009-02-18 15:30:38 +0100 fs r268232 : #i66338# tar => $(TAR) (provided by hjs)
2009-02-18 15:28:45 +0100 fs r268231 : more build envs supported (thanks to hjs for all this work!)
2009-02-18 15:27:02 +0100 fs r268230 : #i66338#
2009-02-18 15:23:04 +0100 fs r268229 : #i66338# let it build on Solaris, in Sun Hamburg's build environment
2009-02-18 12:00:12 +0100 fs r268210 : #i10000#
2009-02-18 08:17:29 +0100 fs r268198 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-18 08:16:50 +0100 fs r268197 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-14 14:05:24 +0100 fs r267757 : redo the Windows related changes lost with recent resync
2009-02-14 00:06:33 +0100 ericb r267755 : #i94628# remove the config_office dir now
2009-02-14 00:04:59 +0100 ericb r267754 : #i94628# remove all files in config_office now
2009-02-14 00:01:26 +0100 ericb r267753 : #i94628# remove guw in config_office
2009-02-13 23:53:00 +0100 ericb r267752 : #i94628# remove files in config_office
2009-02-13 16:02:58 +0100 fs r267725 : #i10000#
2009-02-12 18:14:31 +0100 ericb r267685 : #i94628# new generated configure
2009-02-12 18:13:52 +0100 ericb r267684 : #i94628# fix a path issue for finding seamonkey01
2009-02-12 14:39:17 +0100 ericb r267662 : #i94628# removing seamonkey.1.1.12 patch
2009-02-12 14:21:04 +0100 ericb r267658 : #i94628# the new configure, after autoconf
2009-02-12 14:13:21 +0100 ericb r267656 : #i94628# other missing changes for Windows
2009-02-12 14:04:26 +0100 ericb r267655 : #i94628# recommit configure.in changes after config_office removing
2009-02-12 13:46:12 +0100 ericb r267653 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-12 12:00:48 +0100 ericb r267643 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-11 13:28:50 +0100 pl r267595 : #i94628# add MACDEVSDK variable for unxmacxi
2009-02-06 09:44:15 +0100 ericb r267446 : #i98957# provide the zipped archives too
2009-02-06 09:43:32 +0100 ericb r267445 : #i98957# make seamonkey buildable on OpenSolaris, adding the right options for configure
2009-02-06 09:42:45 +0100 ericb r267444 : #i98957# make seamonkey buildable on OpenSolaris
2009-02-02 09:41:57 +0100 fs r267252 : #i66338#
2009-02-02 09:41:43 +0100 fs r267251 : #i66338#
2009-01-30 15:12:03 +0100 fs r267200 : code consolidation - MQueryHelper now uses MLdapAttributeMap's fillCardFromResult and fillResultFromCard, which makes the code as such shorter, and eliminates information duplication
2009-01-30 11:53:31 +0100 fs r267189 : reworked the statement parsing / statement execution / result set creation: now we don't anymore create three result sets (two of them leaking) for a single prepared statement ...
2009-01-29 20:37:01 +0100 fs r267170 : #i10000#
2009-01-29 20:32:50 +0100 fs r267169 : more explicit return type of parseSql
2009-01-29 17:32:56 +0100 fs r267163 : slightly refactored the statement class hierarchy (basically remove OStatement_BASE2, and renamed the other base classes)
2009-01-29 17:14:58 +0100 fs r267161 : #i66338# first implementation to re-enable LDAP access. Still work in progress (but hey, you can see the data already :)
2009-01-12 11:25:56 +0100 fs r266138 : allow using a debug-enabled version of Mozilla/SeaMonkey when MOZILLA_ENABLE_DEBUG is set
2009-01-10 22:01:40 +0100 fs r266126 : #i95772# nsldap32v50.dll also needs an embedded manifest (the LDP configuration backend links directly against it)
2009-01-09 11:15:32 +0100 fs r266065 : manifests for DLLs need to have ID 2, not 1
2009-01-08 20:02:24 +0100 fs r266035 : #i95772# embed manifest file in shared libs built in directory/c-sdk, too
2009-01-05 20:45:38 +0100 ericb r265886 : #i66338# commiting the correct configure for the tinderboxes
2009-01-05 17:42:34 +0100 ericb r265883 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@265758 (milestone: DEV300:m38)
2008-12-16 15:34:26 +0100 ericb r265550 : #i94628# change for seamonkey1.1.13 : do not forget to do autoconf in config_office before configure
2008-12-16 15:25:37 +0100 pastea_p r265547 : 1.1.12 to 1.1.13
2008-12-16 14:20:18 +0100 pastea_p r265540 : correct the hunk about no core_abspath which one broke linux build
2008-12-16 13:10:06 +0100 pastea_p r265535 : Change name of patch to 1.1.13
2008-12-15 23:32:54 +0100 pastea_p r265518 : 2008-12-12 18:43:36 +0100 pastea_p r265435 : update to 1.1.13
2008-12-12 10:56:38 +0100 fs r265398 : #i95772# embed .manifest files into SHARED_LIBRARYs built in nsprpub, too
2008-12-12 09:56:38 +0100 fs r265391 : #i95772# don't use regxpcomp on Windows, it's not needed
2008-12-11 11:22:43 +0100 fs r265269 : #i95772# Moz/SeaMonkey libs on Windows now link against msvc?80.dll
2008-12-10 13:45:51 +0100 fs r265182 : proper OSL_ENSURE message
2008-11-13 13:18:03 +0100 fs r263635 : #i95772# more patches
2008-11-13 12:14:41 +0100 fs r263630 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:13:33 +0100 fs r263629 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:08:22 +0100 fs r263628 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:04:15 +0100 fs r263627 : #i95772#
2008-11-12 08:23:20 +0100 fs r263575 : i95772# use xpcom_core on Windows, too
2008-11-11 21:02:14 +0100 fs r263574 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 20:58:07 +0100 fs r263573 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 15:05:42 +0100 fs r263564 : alternative fix for part 1 of #i94957#
2008-11-10 22:18:14 +0100 fs r263541 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 22:15:57 +0100 fs r263540 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 09:28:26 +0100 fs r263509 : #i95772# when building on WNT, embed the .manifest file into the .dll/.exe
2008-11-10 09:19:06 +0100 fs r263508 : collect single patches which comprise the complete patch
2008-11-06 09:10:21 +0100 fs r263360 : #i95772# core_abspath does not work on Windows, too (at least in security/nss/cmd/shlibsign). Replace with 'cygpath -d -a'
2008-11-02 22:51:27 +0100 fs r263277 : #i95772# sanitize INCLUDEDIR and GENHEADERS to use cygwin path notation - cygwin's make 1.81 doesn't cope with Windows path notation
2008-11-02 22:50:15 +0100 fs r263276 : #i95772# no --enable-system-cairo on Windows
2008-10-18 20:12:36 +0200 pastea_p r262297 : 2008-10-16 17:15:35 +0200 ericb r262267 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 17:14:49 +0200 ericb r262266 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 16:58:21 +0200 ericb r262263 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-15 20:16:28 +0200 ericb r262242 : #i94628# use mac as default toolkit on mac
2008-10-14 18:54:13 +0200 ericb r262216 : #i90774# modify the configure.in for moz2seamonkey migration
2008-10-14 18:48:57 +0200 ericb r262215 : #i90774# commit moz2seamonkey changes for svn migration
2008-10-14 18:47:05 +0200 ericb r262214 : #i90774# commit moz2seamonkey changes for svn migration
2009-07-15 11:06:05 +00:00
AC_MSG_CHECKING([whether to build Mozilla/SeaMonkey])
2005-03-30 10:38:08 +00:00
if test -n "$enable_build_mozilla"; then
BUILD_MOZAB="TRUE"
AC_MSG_RESULT([yes])
else
BUILD_MOZAB=""
AC_MSG_RESULT([no])
fi
2009-08-26 08:22:01 +00:00
AC_MSG_CHECKING([whether to build provided NSS module])
if test "$enable_nss_module" != "no"; then
ENABLE_NSS_MODULE="YES"
BUILD_TYPE="$BUILD_TYPE NSS"
AC_MSG_RESULT([yes])
if test "$_os" = "WINNT"; then
AC_MSG_CHECKING([for Mozilla build tooling])
if test -z "$MOZILLABUILD" ; then
CWS-TOOLING: integrate CWS dba32j
2009-11-26 09:30:10 +0100 msc r277648 : #100000 fix urgent testscript error
2009-11-25 10:27:56 +0100 msc r277625 : #i100000 fix urgent testscript error
2009-11-17 22:16:46 +0100 fs r277544 : CWS-TOOLING: rebase CWS dba32j to branches/OOO320@277531 (milestone: OOO320:m5)
2009-11-17 14:26:47 +0100 fs r277535 : ooops, didn't mean to commit this uncommented line
2009-11-14 20:50:29 +0100 fs r277505 : add a --disable-pango switch to SM's configure options, and add a patch which makes certain code respect it (well, respect it better than currently, by not using some pango_x_* functions, which are not always available, even when pango itself is present)
2009-11-14 20:47:41 +0100 fs r277504 : spelling
2009-11-13 14:04:00 +0100 fs r277502 : #i100764# (commit approved by ab@openoffice.org): getModelFromBasic: do not start with the parent's parent when looking for ThisComponent, but walk up the anchestor chain, starting with the immediate parent
2009-11-13 11:04:15 +0100 fs r277496 : #i100764# better heuristics for determining whether or not to participate in the ThisComponent game
2009-11-13 11:02:30 +0100 fs r277495 : #i100764# set the WB_EXT_DOCUMENT style at the backing component's container window, when creating it without the TaskCreator (which would normally do this)
2009-11-11 13:49:11 +0100 fs r277452 : #i106816#
2009-11-11 13:48:53 +0100 fs r277451 : fix the CREATETARBAL target, which is expected to create the zips used as prebuilts. The *inc.zip missed the NSS files in case NSS was built externally
2009-11-11 12:15:34 +0100 fs r277449 : update ignore list
2009-11-11 12:09:23 +0100 fs r277448 : add a link to the Mozilla build tools download location
2009-11-11 12:07:16 +0100 fs r277447 : add a link to the Mozilla build tools download location
2009-11-06 16:23:12 +0100 fs r277393 : #i106643#
2009-11-03 23:20:29 +0100 fs r277328 : #i106574#
reverted the recent fix for issue #i105235#, and implemented a better one.
2009-11-02 12:59:48 +0100 fs r277294 : #i106550# errorOccured: also display the error when we're not in a nested form action - form actions are allowed to be triggered by other instances as well
2009-12-01 09:53:35 +00:00
AC_MSG_ERROR([Mozilla build tooling not found.
Use the --with-mozilla-build option after installling the tools obtained
from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32])
2009-08-26 08:22:01 +00:00
else
if test \( "$WITH_MINGWIN" = "yes" \) ; then
if test ! -d "$MOZILLABUILD" ; then
AC_MSG_ERROR([Mozilla build tooling incomplete!])
else
AC_MSG_RESULT([ok])
fi
else
if test ! -d "$MOZILLABUILD/moztools" \
-o ! -d "$MOZILLABUILD/msys" ; then
AC_MSG_ERROR([Mozilla build tooling incomplete!])
else
AC_MSG_RESULT([ok])
fi
fi
fi
fi
else
ENABLE_NSS_MODULE="NO"
AC_MSG_RESULT([no])
fi
2005-03-30 10:38:08 +00:00
if test "$BUILD_MOZAB" = "TRUE"; then
CWS-TOOLING: integrate CWS moz2seamonkey01
2009-06-18 20:56:43 +0200 fs r273133 : #i10000# corrected resolved of merge conflict
2009-06-18 20:55:34 +0200 fs r273132 : #i10000# corrected resolved of merge conflict
2009-06-18 10:49:26 +0200 fs r273105 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@272827 (milestone: DEV300:m50)
2009-06-17 20:48:35 +0200 fs r273094 : #i84961# removed 'pointless and buggy' echo statement
2009-05-22 11:27:08 +0200 fs r272176 : #i101763#
provided by tono@openoffice.org
make compile with mingw
2009-05-22 11:22:25 +0200 fs r272175 : #i101763#
provided by tono@openoffice.org
allow compilation in with mingw
2009-04-15 12:09:28 +0200 fs r270830 : unconditionally disable moz executables
2009-03-27 12:29:38 +0100 fs r270149 : ignore some configure-related files
2009-03-27 11:47:35 +0100 fs r270145 : SolarisSparc needs libfreebl_32fpu_3.so
2009-03-27 11:38:09 +0100 fs r270141 : regxpcom call not needed nowadays / also pack libfreebl3 (needed for signature/encryption)
2009-03-26 21:40:17 +0100 fs r270108 : superseded by 1.1.14 version
2009-03-24 13:07:21 +0100 fs r269938 : xptitemp.dat seemingly not needed anymore
2009-03-23 12:56:29 +0100 fs r269869 : files with : in their name break the build
2009-03-23 12:22:01 +0100 fs r269866 : files with : in their name break the build
2009-03-21 23:12:06 +0100 fs r269843 : manual resync: merge the changes which happened on TRUNK in mozilla-source-1.7.5.patch herein
2009-03-21 21:58:17 +0100 fs r269841 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@269781 (milestone: DEV300:m44)
2009-03-18 12:04:25 +0100 fs r269649 : in SunHH environment, use pre-requisites from /so/env
2009-03-16 12:33:18 +0100 pastea_p r269522 : correct makefile.mk sorry again
2009-03-15 17:32:43 +0100 pastea_p r269506 : last files about migration to 1.1.14
2009-03-15 17:19:39 +0100 pastea_p r269505 : Migrates some files to 1.1.14
2009-03-04 07:45:40 +0100 fs r268782 : also add pref.xpt
2009-02-27 09:57:37 +0100 fs r268555 : #i66338# for the moment, disable Mozilla-based code for unxlngx6
2009-02-23 10:56:28 +0100 fs r268346 : syntax
2009-02-19 14:14:56 +0100 fs r268283 : make PrintPDE compile in Sun's internal build environment by removing some unneeded stuff
2009-02-18 15:40:40 +0100 fs r268236 : #i66338# re-enable MozAB on Mac
2009-02-18 15:39:55 +0100 fs r268235 : #i66338#
2009-02-18 15:30:38 +0100 fs r268232 : #i66338# tar => $(TAR) (provided by hjs)
2009-02-18 15:28:45 +0100 fs r268231 : more build envs supported (thanks to hjs for all this work!)
2009-02-18 15:27:02 +0100 fs r268230 : #i66338#
2009-02-18 15:23:04 +0100 fs r268229 : #i66338# let it build on Solaris, in Sun Hamburg's build environment
2009-02-18 12:00:12 +0100 fs r268210 : #i10000#
2009-02-18 08:17:29 +0100 fs r268198 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-18 08:16:50 +0100 fs r268197 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-14 14:05:24 +0100 fs r267757 : redo the Windows related changes lost with recent resync
2009-02-14 00:06:33 +0100 ericb r267755 : #i94628# remove the config_office dir now
2009-02-14 00:04:59 +0100 ericb r267754 : #i94628# remove all files in config_office now
2009-02-14 00:01:26 +0100 ericb r267753 : #i94628# remove guw in config_office
2009-02-13 23:53:00 +0100 ericb r267752 : #i94628# remove files in config_office
2009-02-13 16:02:58 +0100 fs r267725 : #i10000#
2009-02-12 18:14:31 +0100 ericb r267685 : #i94628# new generated configure
2009-02-12 18:13:52 +0100 ericb r267684 : #i94628# fix a path issue for finding seamonkey01
2009-02-12 14:39:17 +0100 ericb r267662 : #i94628# removing seamonkey.1.1.12 patch
2009-02-12 14:21:04 +0100 ericb r267658 : #i94628# the new configure, after autoconf
2009-02-12 14:13:21 +0100 ericb r267656 : #i94628# other missing changes for Windows
2009-02-12 14:04:26 +0100 ericb r267655 : #i94628# recommit configure.in changes after config_office removing
2009-02-12 13:46:12 +0100 ericb r267653 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-12 12:00:48 +0100 ericb r267643 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-11 13:28:50 +0100 pl r267595 : #i94628# add MACDEVSDK variable for unxmacxi
2009-02-06 09:44:15 +0100 ericb r267446 : #i98957# provide the zipped archives too
2009-02-06 09:43:32 +0100 ericb r267445 : #i98957# make seamonkey buildable on OpenSolaris, adding the right options for configure
2009-02-06 09:42:45 +0100 ericb r267444 : #i98957# make seamonkey buildable on OpenSolaris
2009-02-02 09:41:57 +0100 fs r267252 : #i66338#
2009-02-02 09:41:43 +0100 fs r267251 : #i66338#
2009-01-30 15:12:03 +0100 fs r267200 : code consolidation - MQueryHelper now uses MLdapAttributeMap's fillCardFromResult and fillResultFromCard, which makes the code as such shorter, and eliminates information duplication
2009-01-30 11:53:31 +0100 fs r267189 : reworked the statement parsing / statement execution / result set creation: now we don't anymore create three result sets (two of them leaking) for a single prepared statement ...
2009-01-29 20:37:01 +0100 fs r267170 : #i10000#
2009-01-29 20:32:50 +0100 fs r267169 : more explicit return type of parseSql
2009-01-29 17:32:56 +0100 fs r267163 : slightly refactored the statement class hierarchy (basically remove OStatement_BASE2, and renamed the other base classes)
2009-01-29 17:14:58 +0100 fs r267161 : #i66338# first implementation to re-enable LDAP access. Still work in progress (but hey, you can see the data already :)
2009-01-12 11:25:56 +0100 fs r266138 : allow using a debug-enabled version of Mozilla/SeaMonkey when MOZILLA_ENABLE_DEBUG is set
2009-01-10 22:01:40 +0100 fs r266126 : #i95772# nsldap32v50.dll also needs an embedded manifest (the LDP configuration backend links directly against it)
2009-01-09 11:15:32 +0100 fs r266065 : manifests for DLLs need to have ID 2, not 1
2009-01-08 20:02:24 +0100 fs r266035 : #i95772# embed manifest file in shared libs built in directory/c-sdk, too
2009-01-05 20:45:38 +0100 ericb r265886 : #i66338# commiting the correct configure for the tinderboxes
2009-01-05 17:42:34 +0100 ericb r265883 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@265758 (milestone: DEV300:m38)
2008-12-16 15:34:26 +0100 ericb r265550 : #i94628# change for seamonkey1.1.13 : do not forget to do autoconf in config_office before configure
2008-12-16 15:25:37 +0100 pastea_p r265547 : 1.1.12 to 1.1.13
2008-12-16 14:20:18 +0100 pastea_p r265540 : correct the hunk about no core_abspath which one broke linux build
2008-12-16 13:10:06 +0100 pastea_p r265535 : Change name of patch to 1.1.13
2008-12-15 23:32:54 +0100 pastea_p r265518 : 2008-12-12 18:43:36 +0100 pastea_p r265435 : update to 1.1.13
2008-12-12 10:56:38 +0100 fs r265398 : #i95772# embed .manifest files into SHARED_LIBRARYs built in nsprpub, too
2008-12-12 09:56:38 +0100 fs r265391 : #i95772# don't use regxpcomp on Windows, it's not needed
2008-12-11 11:22:43 +0100 fs r265269 : #i95772# Moz/SeaMonkey libs on Windows now link against msvc?80.dll
2008-12-10 13:45:51 +0100 fs r265182 : proper OSL_ENSURE message
2008-11-13 13:18:03 +0100 fs r263635 : #i95772# more patches
2008-11-13 12:14:41 +0100 fs r263630 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:13:33 +0100 fs r263629 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:08:22 +0100 fs r263628 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:04:15 +0100 fs r263627 : #i95772#
2008-11-12 08:23:20 +0100 fs r263575 : i95772# use xpcom_core on Windows, too
2008-11-11 21:02:14 +0100 fs r263574 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 20:58:07 +0100 fs r263573 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 15:05:42 +0100 fs r263564 : alternative fix for part 1 of #i94957#
2008-11-10 22:18:14 +0100 fs r263541 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 22:15:57 +0100 fs r263540 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 09:28:26 +0100 fs r263509 : #i95772# when building on WNT, embed the .manifest file into the .dll/.exe
2008-11-10 09:19:06 +0100 fs r263508 : collect single patches which comprise the complete patch
2008-11-06 09:10:21 +0100 fs r263360 : #i95772# core_abspath does not work on Windows, too (at least in security/nss/cmd/shlibsign). Replace with 'cygpath -d -a'
2008-11-02 22:51:27 +0100 fs r263277 : #i95772# sanitize INCLUDEDIR and GENHEADERS to use cygwin path notation - cygwin's make 1.81 doesn't cope with Windows path notation
2008-11-02 22:50:15 +0100 fs r263276 : #i95772# no --enable-system-cairo on Windows
2008-10-18 20:12:36 +0200 pastea_p r262297 : 2008-10-16 17:15:35 +0200 ericb r262267 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 17:14:49 +0200 ericb r262266 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 16:58:21 +0200 ericb r262263 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-15 20:16:28 +0200 ericb r262242 : #i94628# use mac as default toolkit on mac
2008-10-14 18:54:13 +0200 ericb r262216 : #i90774# modify the configure.in for moz2seamonkey migration
2008-10-14 18:48:57 +0200 ericb r262215 : #i90774# commit moz2seamonkey changes for svn migration
2008-10-14 18:47:05 +0200 ericb r262214 : #i90774# commit moz2seamonkey changes for svn migration
2009-07-15 11:06:05 +00:00
if test "$_os" = "WINNT"; then
if test "$WITH_MINGWIN" != "yes"; then
# compiling with MSVC. Only supported platform here is MSVS2005 at the moment.
if test "$MSVSVER" != "2005"; then
AC_MSG_ERROR([Building SeaMonkey is supported with Microsoft Visual Studio .NET 2005 only.])
fi
else
AC_MSG_WARN([Building SeaMonkey with mingwin is not tested, and likely to break.])
echo "Building SeaMonkey with mingwin is not tested, and likely to break." >> warn
fi
fi
2005-03-30 10:38:08 +00:00
if test -z "$MOZILLA_VERSION"; then
CWS-TOOLING: integrate CWS moz2seamonkey01
2009-06-18 20:56:43 +0200 fs r273133 : #i10000# corrected resolved of merge conflict
2009-06-18 20:55:34 +0200 fs r273132 : #i10000# corrected resolved of merge conflict
2009-06-18 10:49:26 +0200 fs r273105 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@272827 (milestone: DEV300:m50)
2009-06-17 20:48:35 +0200 fs r273094 : #i84961# removed 'pointless and buggy' echo statement
2009-05-22 11:27:08 +0200 fs r272176 : #i101763#
provided by tono@openoffice.org
make compile with mingw
2009-05-22 11:22:25 +0200 fs r272175 : #i101763#
provided by tono@openoffice.org
allow compilation in with mingw
2009-04-15 12:09:28 +0200 fs r270830 : unconditionally disable moz executables
2009-03-27 12:29:38 +0100 fs r270149 : ignore some configure-related files
2009-03-27 11:47:35 +0100 fs r270145 : SolarisSparc needs libfreebl_32fpu_3.so
2009-03-27 11:38:09 +0100 fs r270141 : regxpcom call not needed nowadays / also pack libfreebl3 (needed for signature/encryption)
2009-03-26 21:40:17 +0100 fs r270108 : superseded by 1.1.14 version
2009-03-24 13:07:21 +0100 fs r269938 : xptitemp.dat seemingly not needed anymore
2009-03-23 12:56:29 +0100 fs r269869 : files with : in their name break the build
2009-03-23 12:22:01 +0100 fs r269866 : files with : in their name break the build
2009-03-21 23:12:06 +0100 fs r269843 : manual resync: merge the changes which happened on TRUNK in mozilla-source-1.7.5.patch herein
2009-03-21 21:58:17 +0100 fs r269841 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@269781 (milestone: DEV300:m44)
2009-03-18 12:04:25 +0100 fs r269649 : in SunHH environment, use pre-requisites from /so/env
2009-03-16 12:33:18 +0100 pastea_p r269522 : correct makefile.mk sorry again
2009-03-15 17:32:43 +0100 pastea_p r269506 : last files about migration to 1.1.14
2009-03-15 17:19:39 +0100 pastea_p r269505 : Migrates some files to 1.1.14
2009-03-04 07:45:40 +0100 fs r268782 : also add pref.xpt
2009-02-27 09:57:37 +0100 fs r268555 : #i66338# for the moment, disable Mozilla-based code for unxlngx6
2009-02-23 10:56:28 +0100 fs r268346 : syntax
2009-02-19 14:14:56 +0100 fs r268283 : make PrintPDE compile in Sun's internal build environment by removing some unneeded stuff
2009-02-18 15:40:40 +0100 fs r268236 : #i66338# re-enable MozAB on Mac
2009-02-18 15:39:55 +0100 fs r268235 : #i66338#
2009-02-18 15:30:38 +0100 fs r268232 : #i66338# tar => $(TAR) (provided by hjs)
2009-02-18 15:28:45 +0100 fs r268231 : more build envs supported (thanks to hjs for all this work!)
2009-02-18 15:27:02 +0100 fs r268230 : #i66338#
2009-02-18 15:23:04 +0100 fs r268229 : #i66338# let it build on Solaris, in Sun Hamburg's build environment
2009-02-18 12:00:12 +0100 fs r268210 : #i10000#
2009-02-18 08:17:29 +0100 fs r268198 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-18 08:16:50 +0100 fs r268197 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-14 14:05:24 +0100 fs r267757 : redo the Windows related changes lost with recent resync
2009-02-14 00:06:33 +0100 ericb r267755 : #i94628# remove the config_office dir now
2009-02-14 00:04:59 +0100 ericb r267754 : #i94628# remove all files in config_office now
2009-02-14 00:01:26 +0100 ericb r267753 : #i94628# remove guw in config_office
2009-02-13 23:53:00 +0100 ericb r267752 : #i94628# remove files in config_office
2009-02-13 16:02:58 +0100 fs r267725 : #i10000#
2009-02-12 18:14:31 +0100 ericb r267685 : #i94628# new generated configure
2009-02-12 18:13:52 +0100 ericb r267684 : #i94628# fix a path issue for finding seamonkey01
2009-02-12 14:39:17 +0100 ericb r267662 : #i94628# removing seamonkey.1.1.12 patch
2009-02-12 14:21:04 +0100 ericb r267658 : #i94628# the new configure, after autoconf
2009-02-12 14:13:21 +0100 ericb r267656 : #i94628# other missing changes for Windows
2009-02-12 14:04:26 +0100 ericb r267655 : #i94628# recommit configure.in changes after config_office removing
2009-02-12 13:46:12 +0100 ericb r267653 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-12 12:00:48 +0100 ericb r267643 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-11 13:28:50 +0100 pl r267595 : #i94628# add MACDEVSDK variable for unxmacxi
2009-02-06 09:44:15 +0100 ericb r267446 : #i98957# provide the zipped archives too
2009-02-06 09:43:32 +0100 ericb r267445 : #i98957# make seamonkey buildable on OpenSolaris, adding the right options for configure
2009-02-06 09:42:45 +0100 ericb r267444 : #i98957# make seamonkey buildable on OpenSolaris
2009-02-02 09:41:57 +0100 fs r267252 : #i66338#
2009-02-02 09:41:43 +0100 fs r267251 : #i66338#
2009-01-30 15:12:03 +0100 fs r267200 : code consolidation - MQueryHelper now uses MLdapAttributeMap's fillCardFromResult and fillResultFromCard, which makes the code as such shorter, and eliminates information duplication
2009-01-30 11:53:31 +0100 fs r267189 : reworked the statement parsing / statement execution / result set creation: now we don't anymore create three result sets (two of them leaking) for a single prepared statement ...
2009-01-29 20:37:01 +0100 fs r267170 : #i10000#
2009-01-29 20:32:50 +0100 fs r267169 : more explicit return type of parseSql
2009-01-29 17:32:56 +0100 fs r267163 : slightly refactored the statement class hierarchy (basically remove OStatement_BASE2, and renamed the other base classes)
2009-01-29 17:14:58 +0100 fs r267161 : #i66338# first implementation to re-enable LDAP access. Still work in progress (but hey, you can see the data already :)
2009-01-12 11:25:56 +0100 fs r266138 : allow using a debug-enabled version of Mozilla/SeaMonkey when MOZILLA_ENABLE_DEBUG is set
2009-01-10 22:01:40 +0100 fs r266126 : #i95772# nsldap32v50.dll also needs an embedded manifest (the LDP configuration backend links directly against it)
2009-01-09 11:15:32 +0100 fs r266065 : manifests for DLLs need to have ID 2, not 1
2009-01-08 20:02:24 +0100 fs r266035 : #i95772# embed manifest file in shared libs built in directory/c-sdk, too
2009-01-05 20:45:38 +0100 ericb r265886 : #i66338# commiting the correct configure for the tinderboxes
2009-01-05 17:42:34 +0100 ericb r265883 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@265758 (milestone: DEV300:m38)
2008-12-16 15:34:26 +0100 ericb r265550 : #i94628# change for seamonkey1.1.13 : do not forget to do autoconf in config_office before configure
2008-12-16 15:25:37 +0100 pastea_p r265547 : 1.1.12 to 1.1.13
2008-12-16 14:20:18 +0100 pastea_p r265540 : correct the hunk about no core_abspath which one broke linux build
2008-12-16 13:10:06 +0100 pastea_p r265535 : Change name of patch to 1.1.13
2008-12-15 23:32:54 +0100 pastea_p r265518 : 2008-12-12 18:43:36 +0100 pastea_p r265435 : update to 1.1.13
2008-12-12 10:56:38 +0100 fs r265398 : #i95772# embed .manifest files into SHARED_LIBRARYs built in nsprpub, too
2008-12-12 09:56:38 +0100 fs r265391 : #i95772# don't use regxpcomp on Windows, it's not needed
2008-12-11 11:22:43 +0100 fs r265269 : #i95772# Moz/SeaMonkey libs on Windows now link against msvc?80.dll
2008-12-10 13:45:51 +0100 fs r265182 : proper OSL_ENSURE message
2008-11-13 13:18:03 +0100 fs r263635 : #i95772# more patches
2008-11-13 12:14:41 +0100 fs r263630 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:13:33 +0100 fs r263629 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:08:22 +0100 fs r263628 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:04:15 +0100 fs r263627 : #i95772#
2008-11-12 08:23:20 +0100 fs r263575 : i95772# use xpcom_core on Windows, too
2008-11-11 21:02:14 +0100 fs r263574 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 20:58:07 +0100 fs r263573 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 15:05:42 +0100 fs r263564 : alternative fix for part 1 of #i94957#
2008-11-10 22:18:14 +0100 fs r263541 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 22:15:57 +0100 fs r263540 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 09:28:26 +0100 fs r263509 : #i95772# when building on WNT, embed the .manifest file into the .dll/.exe
2008-11-10 09:19:06 +0100 fs r263508 : collect single patches which comprise the complete patch
2008-11-06 09:10:21 +0100 fs r263360 : #i95772# core_abspath does not work on Windows, too (at least in security/nss/cmd/shlibsign). Replace with 'cygpath -d -a'
2008-11-02 22:51:27 +0100 fs r263277 : #i95772# sanitize INCLUDEDIR and GENHEADERS to use cygwin path notation - cygwin's make 1.81 doesn't cope with Windows path notation
2008-11-02 22:50:15 +0100 fs r263276 : #i95772# no --enable-system-cairo on Windows
2008-10-18 20:12:36 +0200 pastea_p r262297 : 2008-10-16 17:15:35 +0200 ericb r262267 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 17:14:49 +0200 ericb r262266 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 16:58:21 +0200 ericb r262263 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-15 20:16:28 +0200 ericb r262242 : #i94628# use mac as default toolkit on mac
2008-10-14 18:54:13 +0200 ericb r262216 : #i90774# modify the configure.in for moz2seamonkey migration
2008-10-14 18:48:57 +0200 ericb r262215 : #i90774# commit moz2seamonkey changes for svn migration
2008-10-14 18:47:05 +0200 ericb r262214 : #i90774# commit moz2seamonkey changes for svn migration
2009-07-15 11:06:05 +00:00
MOZILLA_VERSION=1.1.14
2005-03-30 10:38:08 +00:00
fi
CWS-TOOLING: integrate CWS moz2seamonkey01
2009-06-18 20:56:43 +0200 fs r273133 : #i10000# corrected resolved of merge conflict
2009-06-18 20:55:34 +0200 fs r273132 : #i10000# corrected resolved of merge conflict
2009-06-18 10:49:26 +0200 fs r273105 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@272827 (milestone: DEV300:m50)
2009-06-17 20:48:35 +0200 fs r273094 : #i84961# removed 'pointless and buggy' echo statement
2009-05-22 11:27:08 +0200 fs r272176 : #i101763#
provided by tono@openoffice.org
make compile with mingw
2009-05-22 11:22:25 +0200 fs r272175 : #i101763#
provided by tono@openoffice.org
allow compilation in with mingw
2009-04-15 12:09:28 +0200 fs r270830 : unconditionally disable moz executables
2009-03-27 12:29:38 +0100 fs r270149 : ignore some configure-related files
2009-03-27 11:47:35 +0100 fs r270145 : SolarisSparc needs libfreebl_32fpu_3.so
2009-03-27 11:38:09 +0100 fs r270141 : regxpcom call not needed nowadays / also pack libfreebl3 (needed for signature/encryption)
2009-03-26 21:40:17 +0100 fs r270108 : superseded by 1.1.14 version
2009-03-24 13:07:21 +0100 fs r269938 : xptitemp.dat seemingly not needed anymore
2009-03-23 12:56:29 +0100 fs r269869 : files with : in their name break the build
2009-03-23 12:22:01 +0100 fs r269866 : files with : in their name break the build
2009-03-21 23:12:06 +0100 fs r269843 : manual resync: merge the changes which happened on TRUNK in mozilla-source-1.7.5.patch herein
2009-03-21 21:58:17 +0100 fs r269841 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@269781 (milestone: DEV300:m44)
2009-03-18 12:04:25 +0100 fs r269649 : in SunHH environment, use pre-requisites from /so/env
2009-03-16 12:33:18 +0100 pastea_p r269522 : correct makefile.mk sorry again
2009-03-15 17:32:43 +0100 pastea_p r269506 : last files about migration to 1.1.14
2009-03-15 17:19:39 +0100 pastea_p r269505 : Migrates some files to 1.1.14
2009-03-04 07:45:40 +0100 fs r268782 : also add pref.xpt
2009-02-27 09:57:37 +0100 fs r268555 : #i66338# for the moment, disable Mozilla-based code for unxlngx6
2009-02-23 10:56:28 +0100 fs r268346 : syntax
2009-02-19 14:14:56 +0100 fs r268283 : make PrintPDE compile in Sun's internal build environment by removing some unneeded stuff
2009-02-18 15:40:40 +0100 fs r268236 : #i66338# re-enable MozAB on Mac
2009-02-18 15:39:55 +0100 fs r268235 : #i66338#
2009-02-18 15:30:38 +0100 fs r268232 : #i66338# tar => $(TAR) (provided by hjs)
2009-02-18 15:28:45 +0100 fs r268231 : more build envs supported (thanks to hjs for all this work!)
2009-02-18 15:27:02 +0100 fs r268230 : #i66338#
2009-02-18 15:23:04 +0100 fs r268229 : #i66338# let it build on Solaris, in Sun Hamburg's build environment
2009-02-18 12:00:12 +0100 fs r268210 : #i10000#
2009-02-18 08:17:29 +0100 fs r268198 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-18 08:16:50 +0100 fs r268197 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-14 14:05:24 +0100 fs r267757 : redo the Windows related changes lost with recent resync
2009-02-14 00:06:33 +0100 ericb r267755 : #i94628# remove the config_office dir now
2009-02-14 00:04:59 +0100 ericb r267754 : #i94628# remove all files in config_office now
2009-02-14 00:01:26 +0100 ericb r267753 : #i94628# remove guw in config_office
2009-02-13 23:53:00 +0100 ericb r267752 : #i94628# remove files in config_office
2009-02-13 16:02:58 +0100 fs r267725 : #i10000#
2009-02-12 18:14:31 +0100 ericb r267685 : #i94628# new generated configure
2009-02-12 18:13:52 +0100 ericb r267684 : #i94628# fix a path issue for finding seamonkey01
2009-02-12 14:39:17 +0100 ericb r267662 : #i94628# removing seamonkey.1.1.12 patch
2009-02-12 14:21:04 +0100 ericb r267658 : #i94628# the new configure, after autoconf
2009-02-12 14:13:21 +0100 ericb r267656 : #i94628# other missing changes for Windows
2009-02-12 14:04:26 +0100 ericb r267655 : #i94628# recommit configure.in changes after config_office removing
2009-02-12 13:46:12 +0100 ericb r267653 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-12 12:00:48 +0100 ericb r267643 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-11 13:28:50 +0100 pl r267595 : #i94628# add MACDEVSDK variable for unxmacxi
2009-02-06 09:44:15 +0100 ericb r267446 : #i98957# provide the zipped archives too
2009-02-06 09:43:32 +0100 ericb r267445 : #i98957# make seamonkey buildable on OpenSolaris, adding the right options for configure
2009-02-06 09:42:45 +0100 ericb r267444 : #i98957# make seamonkey buildable on OpenSolaris
2009-02-02 09:41:57 +0100 fs r267252 : #i66338#
2009-02-02 09:41:43 +0100 fs r267251 : #i66338#
2009-01-30 15:12:03 +0100 fs r267200 : code consolidation - MQueryHelper now uses MLdapAttributeMap's fillCardFromResult and fillResultFromCard, which makes the code as such shorter, and eliminates information duplication
2009-01-30 11:53:31 +0100 fs r267189 : reworked the statement parsing / statement execution / result set creation: now we don't anymore create three result sets (two of them leaking) for a single prepared statement ...
2009-01-29 20:37:01 +0100 fs r267170 : #i10000#
2009-01-29 20:32:50 +0100 fs r267169 : more explicit return type of parseSql
2009-01-29 17:32:56 +0100 fs r267163 : slightly refactored the statement class hierarchy (basically remove OStatement_BASE2, and renamed the other base classes)
2009-01-29 17:14:58 +0100 fs r267161 : #i66338# first implementation to re-enable LDAP access. Still work in progress (but hey, you can see the data already :)
2009-01-12 11:25:56 +0100 fs r266138 : allow using a debug-enabled version of Mozilla/SeaMonkey when MOZILLA_ENABLE_DEBUG is set
2009-01-10 22:01:40 +0100 fs r266126 : #i95772# nsldap32v50.dll also needs an embedded manifest (the LDP configuration backend links directly against it)
2009-01-09 11:15:32 +0100 fs r266065 : manifests for DLLs need to have ID 2, not 1
2009-01-08 20:02:24 +0100 fs r266035 : #i95772# embed manifest file in shared libs built in directory/c-sdk, too
2009-01-05 20:45:38 +0100 ericb r265886 : #i66338# commiting the correct configure for the tinderboxes
2009-01-05 17:42:34 +0100 ericb r265883 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@265758 (milestone: DEV300:m38)
2008-12-16 15:34:26 +0100 ericb r265550 : #i94628# change for seamonkey1.1.13 : do not forget to do autoconf in config_office before configure
2008-12-16 15:25:37 +0100 pastea_p r265547 : 1.1.12 to 1.1.13
2008-12-16 14:20:18 +0100 pastea_p r265540 : correct the hunk about no core_abspath which one broke linux build
2008-12-16 13:10:06 +0100 pastea_p r265535 : Change name of patch to 1.1.13
2008-12-15 23:32:54 +0100 pastea_p r265518 : 2008-12-12 18:43:36 +0100 pastea_p r265435 : update to 1.1.13
2008-12-12 10:56:38 +0100 fs r265398 : #i95772# embed .manifest files into SHARED_LIBRARYs built in nsprpub, too
2008-12-12 09:56:38 +0100 fs r265391 : #i95772# don't use regxpcomp on Windows, it's not needed
2008-12-11 11:22:43 +0100 fs r265269 : #i95772# Moz/SeaMonkey libs on Windows now link against msvc?80.dll
2008-12-10 13:45:51 +0100 fs r265182 : proper OSL_ENSURE message
2008-11-13 13:18:03 +0100 fs r263635 : #i95772# more patches
2008-11-13 12:14:41 +0100 fs r263630 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:13:33 +0100 fs r263629 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:08:22 +0100 fs r263628 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:04:15 +0100 fs r263627 : #i95772#
2008-11-12 08:23:20 +0100 fs r263575 : i95772# use xpcom_core on Windows, too
2008-11-11 21:02:14 +0100 fs r263574 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 20:58:07 +0100 fs r263573 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 15:05:42 +0100 fs r263564 : alternative fix for part 1 of #i94957#
2008-11-10 22:18:14 +0100 fs r263541 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 22:15:57 +0100 fs r263540 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 09:28:26 +0100 fs r263509 : #i95772# when building on WNT, embed the .manifest file into the .dll/.exe
2008-11-10 09:19:06 +0100 fs r263508 : collect single patches which comprise the complete patch
2008-11-06 09:10:21 +0100 fs r263360 : #i95772# core_abspath does not work on Windows, too (at least in security/nss/cmd/shlibsign). Replace with 'cygpath -d -a'
2008-11-02 22:51:27 +0100 fs r263277 : #i95772# sanitize INCLUDEDIR and GENHEADERS to use cygwin path notation - cygwin's make 1.81 doesn't cope with Windows path notation
2008-11-02 22:50:15 +0100 fs r263276 : #i95772# no --enable-system-cairo on Windows
2008-10-18 20:12:36 +0200 pastea_p r262297 : 2008-10-16 17:15:35 +0200 ericb r262267 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 17:14:49 +0200 ericb r262266 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 16:58:21 +0200 ericb r262263 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-15 20:16:28 +0200 ericb r262242 : #i94628# use mac as default toolkit on mac
2008-10-14 18:54:13 +0200 ericb r262216 : #i90774# modify the configure.in for moz2seamonkey migration
2008-10-14 18:48:57 +0200 ericb r262215 : #i90774# commit moz2seamonkey changes for svn migration
2008-10-14 18:47:05 +0200 ericb r262214 : #i90774# commit moz2seamonkey changes for svn migration
2009-07-15 11:06:05 +00:00
MOZILLA_SOURCE_VERSION="seamonkey-${MOZILLA_VERSION}.source"
2010-01-22 18:34:39 +01:00
MOZILLA_FETCH_FILE=`grep $MOZILLA_SOURCE_VERSION ooo.lst`
AC_MSG_CHECKING([for mozilla sources])
if test -z "$MOZILLA_FETCH_FILE"; then
AC_MSG_RESULT([not found])
HAVE_MOZILLA_TARBALL=n
else
AC_MSG_CHECKING([for $MOZILLA_FETCH_FILE])
if test ! -e "$TARFILE_LOCATION/$MOZILLA_FETCH_FILE"; then
if test -z "$DO_FETCH"; then
AC_MSG_RESULT([will be fetched])
HAVE_MOZILLA_TARBALL=y
else
AC_MSG_RESULT([not found])
HAVE_MOZILLA_TARBALL=n
fi
2006-08-22 12:19:10 +00:00
else
AC_MSG_RESULT([found])
HAVE_MOZILLA_TARBALL=y
fi
2010-01-22 18:34:39 +01:00
fi
2006-08-22 12:19:10 +00:00
if test "$HAVE_MOZILLA_TARBALL" != "y"; then
2010-01-22 18:34:39 +01:00
AC_MSG_ERROR([Mozilla/SeaMonkey source archive not found.
Use "./fetch_tarballs.sh ooo.lst" to download.])
2006-08-22 12:19:10 +00:00
fi
2005-03-30 10:38:08 +00:00
if test "$_os" = "WINNT"; then
CWS-TOOLING: integrate CWS moz2seamonkey01
2009-06-18 20:56:43 +0200 fs r273133 : #i10000# corrected resolved of merge conflict
2009-06-18 20:55:34 +0200 fs r273132 : #i10000# corrected resolved of merge conflict
2009-06-18 10:49:26 +0200 fs r273105 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@272827 (milestone: DEV300:m50)
2009-06-17 20:48:35 +0200 fs r273094 : #i84961# removed 'pointless and buggy' echo statement
2009-05-22 11:27:08 +0200 fs r272176 : #i101763#
provided by tono@openoffice.org
make compile with mingw
2009-05-22 11:22:25 +0200 fs r272175 : #i101763#
provided by tono@openoffice.org
allow compilation in with mingw
2009-04-15 12:09:28 +0200 fs r270830 : unconditionally disable moz executables
2009-03-27 12:29:38 +0100 fs r270149 : ignore some configure-related files
2009-03-27 11:47:35 +0100 fs r270145 : SolarisSparc needs libfreebl_32fpu_3.so
2009-03-27 11:38:09 +0100 fs r270141 : regxpcom call not needed nowadays / also pack libfreebl3 (needed for signature/encryption)
2009-03-26 21:40:17 +0100 fs r270108 : superseded by 1.1.14 version
2009-03-24 13:07:21 +0100 fs r269938 : xptitemp.dat seemingly not needed anymore
2009-03-23 12:56:29 +0100 fs r269869 : files with : in their name break the build
2009-03-23 12:22:01 +0100 fs r269866 : files with : in their name break the build
2009-03-21 23:12:06 +0100 fs r269843 : manual resync: merge the changes which happened on TRUNK in mozilla-source-1.7.5.patch herein
2009-03-21 21:58:17 +0100 fs r269841 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@269781 (milestone: DEV300:m44)
2009-03-18 12:04:25 +0100 fs r269649 : in SunHH environment, use pre-requisites from /so/env
2009-03-16 12:33:18 +0100 pastea_p r269522 : correct makefile.mk sorry again
2009-03-15 17:32:43 +0100 pastea_p r269506 : last files about migration to 1.1.14
2009-03-15 17:19:39 +0100 pastea_p r269505 : Migrates some files to 1.1.14
2009-03-04 07:45:40 +0100 fs r268782 : also add pref.xpt
2009-02-27 09:57:37 +0100 fs r268555 : #i66338# for the moment, disable Mozilla-based code for unxlngx6
2009-02-23 10:56:28 +0100 fs r268346 : syntax
2009-02-19 14:14:56 +0100 fs r268283 : make PrintPDE compile in Sun's internal build environment by removing some unneeded stuff
2009-02-18 15:40:40 +0100 fs r268236 : #i66338# re-enable MozAB on Mac
2009-02-18 15:39:55 +0100 fs r268235 : #i66338#
2009-02-18 15:30:38 +0100 fs r268232 : #i66338# tar => $(TAR) (provided by hjs)
2009-02-18 15:28:45 +0100 fs r268231 : more build envs supported (thanks to hjs for all this work!)
2009-02-18 15:27:02 +0100 fs r268230 : #i66338#
2009-02-18 15:23:04 +0100 fs r268229 : #i66338# let it build on Solaris, in Sun Hamburg's build environment
2009-02-18 12:00:12 +0100 fs r268210 : #i10000#
2009-02-18 08:17:29 +0100 fs r268198 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-18 08:16:50 +0100 fs r268197 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-14 14:05:24 +0100 fs r267757 : redo the Windows related changes lost with recent resync
2009-02-14 00:06:33 +0100 ericb r267755 : #i94628# remove the config_office dir now
2009-02-14 00:04:59 +0100 ericb r267754 : #i94628# remove all files in config_office now
2009-02-14 00:01:26 +0100 ericb r267753 : #i94628# remove guw in config_office
2009-02-13 23:53:00 +0100 ericb r267752 : #i94628# remove files in config_office
2009-02-13 16:02:58 +0100 fs r267725 : #i10000#
2009-02-12 18:14:31 +0100 ericb r267685 : #i94628# new generated configure
2009-02-12 18:13:52 +0100 ericb r267684 : #i94628# fix a path issue for finding seamonkey01
2009-02-12 14:39:17 +0100 ericb r267662 : #i94628# removing seamonkey.1.1.12 patch
2009-02-12 14:21:04 +0100 ericb r267658 : #i94628# the new configure, after autoconf
2009-02-12 14:13:21 +0100 ericb r267656 : #i94628# other missing changes for Windows
2009-02-12 14:04:26 +0100 ericb r267655 : #i94628# recommit configure.in changes after config_office removing
2009-02-12 13:46:12 +0100 ericb r267653 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-12 12:00:48 +0100 ericb r267643 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-11 13:28:50 +0100 pl r267595 : #i94628# add MACDEVSDK variable for unxmacxi
2009-02-06 09:44:15 +0100 ericb r267446 : #i98957# provide the zipped archives too
2009-02-06 09:43:32 +0100 ericb r267445 : #i98957# make seamonkey buildable on OpenSolaris, adding the right options for configure
2009-02-06 09:42:45 +0100 ericb r267444 : #i98957# make seamonkey buildable on OpenSolaris
2009-02-02 09:41:57 +0100 fs r267252 : #i66338#
2009-02-02 09:41:43 +0100 fs r267251 : #i66338#
2009-01-30 15:12:03 +0100 fs r267200 : code consolidation - MQueryHelper now uses MLdapAttributeMap's fillCardFromResult and fillResultFromCard, which makes the code as such shorter, and eliminates information duplication
2009-01-30 11:53:31 +0100 fs r267189 : reworked the statement parsing / statement execution / result set creation: now we don't anymore create three result sets (two of them leaking) for a single prepared statement ...
2009-01-29 20:37:01 +0100 fs r267170 : #i10000#
2009-01-29 20:32:50 +0100 fs r267169 : more explicit return type of parseSql
2009-01-29 17:32:56 +0100 fs r267163 : slightly refactored the statement class hierarchy (basically remove OStatement_BASE2, and renamed the other base classes)
2009-01-29 17:14:58 +0100 fs r267161 : #i66338# first implementation to re-enable LDAP access. Still work in progress (but hey, you can see the data already :)
2009-01-12 11:25:56 +0100 fs r266138 : allow using a debug-enabled version of Mozilla/SeaMonkey when MOZILLA_ENABLE_DEBUG is set
2009-01-10 22:01:40 +0100 fs r266126 : #i95772# nsldap32v50.dll also needs an embedded manifest (the LDP configuration backend links directly against it)
2009-01-09 11:15:32 +0100 fs r266065 : manifests for DLLs need to have ID 2, not 1
2009-01-08 20:02:24 +0100 fs r266035 : #i95772# embed manifest file in shared libs built in directory/c-sdk, too
2009-01-05 20:45:38 +0100 ericb r265886 : #i66338# commiting the correct configure for the tinderboxes
2009-01-05 17:42:34 +0100 ericb r265883 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@265758 (milestone: DEV300:m38)
2008-12-16 15:34:26 +0100 ericb r265550 : #i94628# change for seamonkey1.1.13 : do not forget to do autoconf in config_office before configure
2008-12-16 15:25:37 +0100 pastea_p r265547 : 1.1.12 to 1.1.13
2008-12-16 14:20:18 +0100 pastea_p r265540 : correct the hunk about no core_abspath which one broke linux build
2008-12-16 13:10:06 +0100 pastea_p r265535 : Change name of patch to 1.1.13
2008-12-15 23:32:54 +0100 pastea_p r265518 : 2008-12-12 18:43:36 +0100 pastea_p r265435 : update to 1.1.13
2008-12-12 10:56:38 +0100 fs r265398 : #i95772# embed .manifest files into SHARED_LIBRARYs built in nsprpub, too
2008-12-12 09:56:38 +0100 fs r265391 : #i95772# don't use regxpcomp on Windows, it's not needed
2008-12-11 11:22:43 +0100 fs r265269 : #i95772# Moz/SeaMonkey libs on Windows now link against msvc?80.dll
2008-12-10 13:45:51 +0100 fs r265182 : proper OSL_ENSURE message
2008-11-13 13:18:03 +0100 fs r263635 : #i95772# more patches
2008-11-13 12:14:41 +0100 fs r263630 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:13:33 +0100 fs r263629 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:08:22 +0100 fs r263628 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:04:15 +0100 fs r263627 : #i95772#
2008-11-12 08:23:20 +0100 fs r263575 : i95772# use xpcom_core on Windows, too
2008-11-11 21:02:14 +0100 fs r263574 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 20:58:07 +0100 fs r263573 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 15:05:42 +0100 fs r263564 : alternative fix for part 1 of #i94957#
2008-11-10 22:18:14 +0100 fs r263541 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 22:15:57 +0100 fs r263540 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 09:28:26 +0100 fs r263509 : #i95772# when building on WNT, embed the .manifest file into the .dll/.exe
2008-11-10 09:19:06 +0100 fs r263508 : collect single patches which comprise the complete patch
2008-11-06 09:10:21 +0100 fs r263360 : #i95772# core_abspath does not work on Windows, too (at least in security/nss/cmd/shlibsign). Replace with 'cygpath -d -a'
2008-11-02 22:51:27 +0100 fs r263277 : #i95772# sanitize INCLUDEDIR and GENHEADERS to use cygwin path notation - cygwin's make 1.81 doesn't cope with Windows path notation
2008-11-02 22:50:15 +0100 fs r263276 : #i95772# no --enable-system-cairo on Windows
2008-10-18 20:12:36 +0200 pastea_p r262297 : 2008-10-16 17:15:35 +0200 ericb r262267 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 17:14:49 +0200 ericb r262266 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 16:58:21 +0200 ericb r262263 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-15 20:16:28 +0200 ericb r262242 : #i94628# use mac as default toolkit on mac
2008-10-14 18:54:13 +0200 ericb r262216 : #i90774# modify the configure.in for moz2seamonkey migration
2008-10-14 18:48:57 +0200 ericb r262215 : #i90774# commit moz2seamonkey changes for svn migration
2008-10-14 18:47:05 +0200 ericb r262214 : #i90774# commit moz2seamonkey changes for svn migration
2009-07-15 11:06:05 +00:00
AC_MSG_CHECKING([for moztools binaries])
2010-01-22 18:34:39 +01:00
if test ! -e "$TARFILE_LOCATION/vc8-moztools.zip" ; then
AC_MSG_ERROR([The following file is missing in $TARFILE_LOCATION: vc8-moztools.zip
CWS-TOOLING: integrate CWS moz2seamonkey01
2009-06-18 20:56:43 +0200 fs r273133 : #i10000# corrected resolved of merge conflict
2009-06-18 20:55:34 +0200 fs r273132 : #i10000# corrected resolved of merge conflict
2009-06-18 10:49:26 +0200 fs r273105 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@272827 (milestone: DEV300:m50)
2009-06-17 20:48:35 +0200 fs r273094 : #i84961# removed 'pointless and buggy' echo statement
2009-05-22 11:27:08 +0200 fs r272176 : #i101763#
provided by tono@openoffice.org
make compile with mingw
2009-05-22 11:22:25 +0200 fs r272175 : #i101763#
provided by tono@openoffice.org
allow compilation in with mingw
2009-04-15 12:09:28 +0200 fs r270830 : unconditionally disable moz executables
2009-03-27 12:29:38 +0100 fs r270149 : ignore some configure-related files
2009-03-27 11:47:35 +0100 fs r270145 : SolarisSparc needs libfreebl_32fpu_3.so
2009-03-27 11:38:09 +0100 fs r270141 : regxpcom call not needed nowadays / also pack libfreebl3 (needed for signature/encryption)
2009-03-26 21:40:17 +0100 fs r270108 : superseded by 1.1.14 version
2009-03-24 13:07:21 +0100 fs r269938 : xptitemp.dat seemingly not needed anymore
2009-03-23 12:56:29 +0100 fs r269869 : files with : in their name break the build
2009-03-23 12:22:01 +0100 fs r269866 : files with : in their name break the build
2009-03-21 23:12:06 +0100 fs r269843 : manual resync: merge the changes which happened on TRUNK in mozilla-source-1.7.5.patch herein
2009-03-21 21:58:17 +0100 fs r269841 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@269781 (milestone: DEV300:m44)
2009-03-18 12:04:25 +0100 fs r269649 : in SunHH environment, use pre-requisites from /so/env
2009-03-16 12:33:18 +0100 pastea_p r269522 : correct makefile.mk sorry again
2009-03-15 17:32:43 +0100 pastea_p r269506 : last files about migration to 1.1.14
2009-03-15 17:19:39 +0100 pastea_p r269505 : Migrates some files to 1.1.14
2009-03-04 07:45:40 +0100 fs r268782 : also add pref.xpt
2009-02-27 09:57:37 +0100 fs r268555 : #i66338# for the moment, disable Mozilla-based code for unxlngx6
2009-02-23 10:56:28 +0100 fs r268346 : syntax
2009-02-19 14:14:56 +0100 fs r268283 : make PrintPDE compile in Sun's internal build environment by removing some unneeded stuff
2009-02-18 15:40:40 +0100 fs r268236 : #i66338# re-enable MozAB on Mac
2009-02-18 15:39:55 +0100 fs r268235 : #i66338#
2009-02-18 15:30:38 +0100 fs r268232 : #i66338# tar => $(TAR) (provided by hjs)
2009-02-18 15:28:45 +0100 fs r268231 : more build envs supported (thanks to hjs for all this work!)
2009-02-18 15:27:02 +0100 fs r268230 : #i66338#
2009-02-18 15:23:04 +0100 fs r268229 : #i66338# let it build on Solaris, in Sun Hamburg's build environment
2009-02-18 12:00:12 +0100 fs r268210 : #i10000#
2009-02-18 08:17:29 +0100 fs r268198 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-18 08:16:50 +0100 fs r268197 : #i66338# building Mozilla is not supported anymore, SeaMonkey is the way to go now
2009-02-14 14:05:24 +0100 fs r267757 : redo the Windows related changes lost with recent resync
2009-02-14 00:06:33 +0100 ericb r267755 : #i94628# remove the config_office dir now
2009-02-14 00:04:59 +0100 ericb r267754 : #i94628# remove all files in config_office now
2009-02-14 00:01:26 +0100 ericb r267753 : #i94628# remove guw in config_office
2009-02-13 23:53:00 +0100 ericb r267752 : #i94628# remove files in config_office
2009-02-13 16:02:58 +0100 fs r267725 : #i10000#
2009-02-12 18:14:31 +0100 ericb r267685 : #i94628# new generated configure
2009-02-12 18:13:52 +0100 ericb r267684 : #i94628# fix a path issue for finding seamonkey01
2009-02-12 14:39:17 +0100 ericb r267662 : #i94628# removing seamonkey.1.1.12 patch
2009-02-12 14:21:04 +0100 ericb r267658 : #i94628# the new configure, after autoconf
2009-02-12 14:13:21 +0100 ericb r267656 : #i94628# other missing changes for Windows
2009-02-12 14:04:26 +0100 ericb r267655 : #i94628# recommit configure.in changes after config_office removing
2009-02-12 13:46:12 +0100 ericb r267653 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-12 12:00:48 +0100 ericb r267643 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@267171 (milestone: DEV300:m41)
2009-02-11 13:28:50 +0100 pl r267595 : #i94628# add MACDEVSDK variable for unxmacxi
2009-02-06 09:44:15 +0100 ericb r267446 : #i98957# provide the zipped archives too
2009-02-06 09:43:32 +0100 ericb r267445 : #i98957# make seamonkey buildable on OpenSolaris, adding the right options for configure
2009-02-06 09:42:45 +0100 ericb r267444 : #i98957# make seamonkey buildable on OpenSolaris
2009-02-02 09:41:57 +0100 fs r267252 : #i66338#
2009-02-02 09:41:43 +0100 fs r267251 : #i66338#
2009-01-30 15:12:03 +0100 fs r267200 : code consolidation - MQueryHelper now uses MLdapAttributeMap's fillCardFromResult and fillResultFromCard, which makes the code as such shorter, and eliminates information duplication
2009-01-30 11:53:31 +0100 fs r267189 : reworked the statement parsing / statement execution / result set creation: now we don't anymore create three result sets (two of them leaking) for a single prepared statement ...
2009-01-29 20:37:01 +0100 fs r267170 : #i10000#
2009-01-29 20:32:50 +0100 fs r267169 : more explicit return type of parseSql
2009-01-29 17:32:56 +0100 fs r267163 : slightly refactored the statement class hierarchy (basically remove OStatement_BASE2, and renamed the other base classes)
2009-01-29 17:14:58 +0100 fs r267161 : #i66338# first implementation to re-enable LDAP access. Still work in progress (but hey, you can see the data already :)
2009-01-12 11:25:56 +0100 fs r266138 : allow using a debug-enabled version of Mozilla/SeaMonkey when MOZILLA_ENABLE_DEBUG is set
2009-01-10 22:01:40 +0100 fs r266126 : #i95772# nsldap32v50.dll also needs an embedded manifest (the LDP configuration backend links directly against it)
2009-01-09 11:15:32 +0100 fs r266065 : manifests for DLLs need to have ID 2, not 1
2009-01-08 20:02:24 +0100 fs r266035 : #i95772# embed manifest file in shared libs built in directory/c-sdk, too
2009-01-05 20:45:38 +0100 ericb r265886 : #i66338# commiting the correct configure for the tinderboxes
2009-01-05 17:42:34 +0100 ericb r265883 : CWS-TOOLING: rebase CWS moz2seamonkey01 to trunk@265758 (milestone: DEV300:m38)
2008-12-16 15:34:26 +0100 ericb r265550 : #i94628# change for seamonkey1.1.13 : do not forget to do autoconf in config_office before configure
2008-12-16 15:25:37 +0100 pastea_p r265547 : 1.1.12 to 1.1.13
2008-12-16 14:20:18 +0100 pastea_p r265540 : correct the hunk about no core_abspath which one broke linux build
2008-12-16 13:10:06 +0100 pastea_p r265535 : Change name of patch to 1.1.13
2008-12-15 23:32:54 +0100 pastea_p r265518 : 2008-12-12 18:43:36 +0100 pastea_p r265435 : update to 1.1.13
2008-12-12 10:56:38 +0100 fs r265398 : #i95772# embed .manifest files into SHARED_LIBRARYs built in nsprpub, too
2008-12-12 09:56:38 +0100 fs r265391 : #i95772# don't use regxpcomp on Windows, it's not needed
2008-12-11 11:22:43 +0100 fs r265269 : #i95772# Moz/SeaMonkey libs on Windows now link against msvc?80.dll
2008-12-10 13:45:51 +0100 fs r265182 : proper OSL_ENSURE message
2008-11-13 13:18:03 +0100 fs r263635 : #i95772# more patches
2008-11-13 12:14:41 +0100 fs r263630 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:13:33 +0100 fs r263629 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:08:22 +0100 fs r263628 : #i95772# building SeaMonkey on Windows is supported for MSVS2005 only at the moment, now requiring v8-moztools.zip instead of the previously needed wintools.zip/vc71*.zip
2008-11-13 12:04:15 +0100 fs r263627 : #i95772#
2008-11-12 08:23:20 +0100 fs r263575 : i95772# use xpcom_core on Windows, too
2008-11-11 21:02:14 +0100 fs r263574 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 20:58:07 +0100 fs r263573 : i95772# use xpcom_core.lib on Windows, too
2008-11-11 15:05:42 +0100 fs r263564 : alternative fix for part 1 of #i94957#
2008-11-10 22:18:14 +0100 fs r263541 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 22:15:57 +0100 fs r263540 : #i95772# with MSVC2008, compile with -Zc:wchar_t- (shamelessly taken from https://bugzilla.mozilla.org/show_bug.cgi?id=324842)
2008-11-10 09:28:26 +0100 fs r263509 : #i95772# when building on WNT, embed the .manifest file into the .dll/.exe
2008-11-10 09:19:06 +0100 fs r263508 : collect single patches which comprise the complete patch
2008-11-06 09:10:21 +0100 fs r263360 : #i95772# core_abspath does not work on Windows, too (at least in security/nss/cmd/shlibsign). Replace with 'cygpath -d -a'
2008-11-02 22:51:27 +0100 fs r263277 : #i95772# sanitize INCLUDEDIR and GENHEADERS to use cygwin path notation - cygwin's make 1.81 doesn't cope with Windows path notation
2008-11-02 22:50:15 +0100 fs r263276 : #i95772# no --enable-system-cairo on Windows
2008-10-18 20:12:36 +0200 pastea_p r262297 : 2008-10-16 17:15:35 +0200 ericb r262267 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 17:14:49 +0200 ericb r262266 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-16 16:58:21 +0200 ericb r262263 : #i94957# fix the breakage in connectivity, for the seamonkey migration
2008-10-15 20:16:28 +0200 ericb r262242 : #i94628# use mac as default toolkit on mac
2008-10-14 18:54:13 +0200 ericb r262216 : #i90774# modify the configure.in for moz2seamonkey migration
2008-10-14 18:48:57 +0200 ericb r262215 : #i90774# commit moz2seamonkey changes for svn migration
2008-10-14 18:47:05 +0200 ericb r262214 : #i90774# commit moz2seamonkey changes for svn migration
2009-07-15 11:06:05 +00:00
(from ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/historic/vc8/)])
2005-03-30 10:38:08 +00:00
else
AC_MSG_RESULT([ok])
fi
elif test "$_os" = "Darwin"; then
2009-01-21 17:47:03 +00:00
if test "$MOZILLA_TOOLKIT" = "gtk2"; then
AC_MSG_NOTICE([checking whether mozilla can be built...])
PKG_CHECK_MODULES(MOZGTK2, gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8, AC_MSG_NOTICE([OK - can build mozilla]), AC_MSG_ERROR([Prerequisites to build mozilla not met. Either use the precompiled mozilla binaries or install the missing packages]))
else
2009-09-08 08:54:47 +00:00
PKG_CHECK_MODULES(MOZLIBREQ, libIDL-2.0 >= 0.6.3, MOZIDL="TRUE", MOZIDL="")
2009-01-21 17:47:03 +00:00
if test -z "$MOZIDL"; then
2009-09-08 08:54:47 +00:00
AC_MSG_ERROR([libIDL 0.6.3 or newer is needed to build mozilla with mac toolkit.])
2009-01-21 17:47:03 +00:00
fi
fi
2005-03-30 10:38:08 +00:00
else
# Generic Unix/Linux section
if test "$MOZILLA_TOOLKIT" = "gtk2"; then
PKG_CHECK_MODULES(MOZLIBREQ, gtk+-2.0, MOZGTK="TRUE", MOZGTK="")
if test -z "$MOZGTK"; then
AC_MSG_ERROR([GTK2 is needed to build mozilla.])
fi
PKG_CHECK_MODULES(MOZLIBREQ, libIDL-2.0 >= 0.8.0, MOZIDL="TRUE", MOZIDL="")
if test -z "$MOZIDL"; then
AC_MSG_ERROR([libIDL >= 0.8.0 is needed when using GTK2 to build mozilla.])
fi
else
PKG_CHECK_MODULES(MOZLIBREQ, gtk+ >= 1.2.3, MOZGTK="TRUE", MOZGTK="")
if test -z "$MOZGTK"; then
AC_MSG_ERROR([gtk 1.2 is needed when not using GTK2 to build mozilla.])
fi
PKG_CHECK_MODULES(MOZLIBREQ, libidl >= 0.6.3 libidl <= 0.6.8, MOZIDL="TRUE", MOZIDL="")
if test -z "$MOZIDL"; then
AC_MSG_ERROR([libIDL 0.6.3 - 0.6.8 is needed when not using GTK2 to build mozilla.])
fi
fi
fi
fi
AC_SUBST(BUILD_MOZAB)
fi
2009-08-26 08:22:01 +00:00
AC_SUBST(ENABLE_NSS_MODULE)
AC_SUBST(MOZILLABUILD)
2005-03-30 10:38:08 +00:00
AC_SUBST(SYSTEM_MOZILLA)
2006-07-19 08:52:02 +00:00
AC_SUBST(MOZ_FLAVOUR)
2005-03-30 10:38:08 +00:00
AC_SUBST(MOZ_INC)
AC_SUBST(MOZ_LIB)
AC_SUBST(MOZ_LIB_XPCOM)
2005-12-21 10:09:36 +00:00
AC_SUBST(MOZ_NSPR_CFLAGS)
2005-03-30 10:38:08 +00:00
AC_SUBST(MOZ_NSS_CFLAGS)
AC_SUBST(MOZ_LDAP_CFLAGS)
2005-02-21 14:16:34 +00:00
dnl ===================================================================
dnl Check for system sane
dnl ===================================================================
AC_MSG_CHECKING([which sane header to use])
2008-07-31 12:44:41 +00:00
if test -n "$with_system_sane_header" -o -n "$with_system_headers" && \
test "$with_system_sane_header" != "no"; then
2005-02-21 14:16:34 +00:00
AC_MSG_RESULT([external])
SYSTEM_SANE_HEADER=YES
AC_CHECK_HEADER(sane/sane.h, [],
[AC_MSG_ERROR(sane not found. install sane)], [])
else
AC_MSG_RESULT([internal])
SYSTEM_SANE_HEADER=NO
BUILD_TYPE="$BUILD_TYPE SANE"
fi
AC_SUBST(SYSTEM_SANE_HEADER)
2004-09-08 14:23:49 +00:00
dnl ===================================================================
dnl Check for system icu
dnl ===================================================================
2006-12-12 15:05:16 +00:00
AC_MSG_CHECKING([which icu to use])
if test -n "$with_system_icu" -o -n "$with_system_libs" && \
test "$with_system_icu" != "no"; then
AC_MSG_RESULT([external])
SYSTEM_ICU=YES
2007-12-12 14:30:49 +00:00
AC_LANG_PUSH([C++])
2006-12-12 15:05:16 +00:00
AC_MSG_CHECKING([for unicode/rbbi.h])
AC_TRY_CPP(unicode/rbbi.h, AC_MSG_RESULT([checked.]), AC_MSG_ERROR([icu headers not found.]))
2007-12-12 12:24:44 +00:00
AC_PATH_PROG(SYSTEM_GENBRK, genbrk, [], [$PATH:/usr/sbin:/sbin])
2006-12-12 15:05:16 +00:00
if test -z "$SYSTEM_GENBRK"; then
AC_MSG_ERROR([\"genbrk\" not found in \$PATH, install the icu development tool \"genbrk"\])
fi
2007-12-12 12:24:44 +00:00
AC_PATH_PROG(SYSTEM_GENCCODE, genccode, [], [$PATH:/usr/sbin:/sbin])
2006-12-12 15:05:16 +00:00
if test -z "$SYSTEM_GENCCODE"; then
AC_MSG_ERROR([\"genccode\" not found in \$PATH, install the icu development tool \"genccode"\])
fi
2007-12-12 12:24:44 +00:00
AC_PATH_PROG(SYSTEM_GENCMN, gencmn, [], [$PATH:/usr/sbin:/sbin])
2007-01-10 10:27:18 +00:00
if test -z "$SYSTEM_GENCMN"; then
AC_MSG_ERROR([\"gencmn\" not found in \$PATH, install the icu development tool \"gencmn"\])
fi
2007-01-03 10:33:33 +00:00
AC_MSG_CHECKING([ICU version])
AC_TRY_RUN([
#include <unicode/uversion.h>
int main(int argc, char **argv) {
2009-03-17 13:46:42 +00:00
if(U_ICU_VERSION_MAJOR_NUM < 4)
2008-07-31 12:44:41 +00:00
return 1;
2008-07-30 13:38:17 +00:00
else
2008-07-31 12:44:41 +00:00
return 0;
}
2009-03-17 13:46:42 +00:00
], [AC_MSG_RESULT(OK)], [AC_MSG_ERROR([not suitable, only >= 4.0 supported currently])])
2007-12-12 14:30:49 +00:00
AC_LANG_POP([C++])
2006-12-12 15:05:16 +00:00
else
AC_MSG_RESULT([internal])
SYSTEM_ICU=NO
BUILD_TYPE="$BUILD_TYPE ICU"
fi
AC_SUBST(SYSTEM_ICU)
AC_SUBST(SYSTEM_GENBRK)
AC_SUBST(SYSTEM_GENCCODE)
2007-01-10 10:27:18 +00:00
AC_SUBST(SYSTEM_GENCMN)
2004-09-08 14:23:49 +00:00
2000-09-18 15:18:56 +00:00
dnl ===================================================================
2009-08-17 14:12:14 +00:00
dnl Graphite
dnl ===================================================================
AC_MSG_CHECKING([whether to enable graphite support])
2010-06-22 17:07:12 +02:00
if test "$_os" = "WINNT" -o "$_os" = "Linux" && test "z$enable_graphite" = "z" -o "$enable_graphite" != "no" ; then
2009-08-17 14:12:14 +00:00
AC_MSG_RESULT([yes])
ENABLE_GRAPHITE="TRUE"
AC_MSG_CHECKING([which graphite to use])
if test -n "$with_system_graphite" -o -n "$with_system_libs" && \
test "$with_system_graphite" != "no"; then
AC_MSG_RESULT([external])
SYSTEM_GRAPHITE=YES
PKG_CHECK_MODULES( GRAPHITE, silgraphite )
else
AC_MSG_RESULT([internal])
SYSTEM_GRAPHITE=NO
BUILD_TYPE="$BUILD_TYPE GRAPHITE"
fi
else
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_GRAPHITE)
AC_SUBST(SYSTEM_GRAPHITE)
AC_SUBST(GRAPHITE_LIBS)
AC_SUBST(GRAPHITE_CFLAGS)
dnl ===================================================================
2000-09-18 15:18:56 +00:00
dnl Checks for libraries.
dnl ===================================================================
2009-03-06 09:33:41 +00:00
dnl Check for Mac OS X native GUI, which may is now required; the X11 build is no longer supported
dnl See if we have the AppKit framework for building with Quartz graphics.
if test "$_os" = "Darwin"; then
if test "x$with_x" = "xyes"; then
AC_MSG_ERROR([X11 build is no longer supported on MacOSX, please use the native aqua build])
2002-08-16 09:10:03 +00:00
else
2009-03-06 09:33:41 +00:00
AC_MSG_CHECKING([for /System/Library/Frameworks/AppKit.framework])
if test -d "/System/Library/Frameworks/AppKit.framework/"; then
AC_MSG_RESULT([yes])
x_includes="no_x_includes"
x_libraries="no_x_libraries"
dnl disable some things used on other Unix versions but not on the aqua build
enable_gtk=no
enable_cups=no
ENABLE_CUPS=""
AC_SUBST(ENABLE_CUPS)
else
AC_MSG_ERROR([No AppKit.framewrok found])
fi
2002-08-16 09:10:03 +00:00
fi
fi
2000-09-18 15:18:56 +00:00
dnl ***************************************
dnl testing for X libraries and includes...
dnl ***************************************
2002-08-16 09:10:03 +00:00
if test "$_os" = "Darwin" -a "x$x_includes" = "xno_x_includes"; then
2009-03-06 09:33:41 +00:00
echo "Do Nothing for _os = Darwin"
2002-08-16 09:10:03 +00:00
dnl Mac OS X using Aqua graphics. Don't check for X11.
:
2007-11-02 12:05:03 +00:00
elif test "$_os" = "OS2" ; then
echo "Do Nothing for _os = OS2. Don't check for X11."
dnl OS/2 uses native graphics. Don't check for X11.
:
2002-08-16 09:10:03 +00:00
elif test "$_os" != "WINNT" ; then
2000-11-17 15:02:59 +00:00
AC_PATH_X
2000-10-17 11:46:38 +00:00
AC_PATH_XTRA
2004-07-13 14:41:13 +00:00
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2006-12-01 13:17:02 +00:00
2000-11-17 15:02:59 +00:00
if test "x$x_includes" = "x"; then
2006-07-19 08:52:02 +00:00
x_includes="default_x_includes"
2000-11-17 15:02:59 +00:00
fi
if test "x$x_libraries" = "x"; then
2006-07-19 08:52:02 +00:00
x_libraries="default_x_libraries"
2000-11-17 15:02:59 +00:00
fi
2000-09-18 15:18:56 +00:00
dnl The variables $x_libraries and $x_includes are set.
if test -z "$x_libraries"; then
AC_MSG_ERROR([No X libraries found]) # Exit
fi
if test -z "$x_includes"; then
AC_MSG_ERROR([No X includes found]) # Exit
fi
2000-11-17 15:02:59 +00:00
CFLAGS=$X_CFLAGS
LDFLAGS="$X_LDFLAGS $X_LIBS"
AC_CHECK_LIB(X11, XOpenDisplay, x_libs="-lX11 $X_EXTRA_LIBS", [AC_MSG_ERROR([X Development libraries not found])])
2007-01-23 05:35:17 +00:00
dnl Check if the XauDisposeAuth symbol is provided by libXau.
AC_CHECK_LIB(Xau, XauDisposeAuth, XAU_LIBS="-lXau", [])
2000-09-18 15:18:56 +00:00
else
x_includes="no_x_includes"
x_libraries="no_x_libraries"
fi
2003-08-18 13:53:58 +00:00
if test -z "$x_includes"; then
x_includes="no_x_includes"
fi
if test -z "$x_libraries"; then
x_libraries="no_x_libraries"
fi
2006-08-22 12:19:10 +00:00
if test "$x_includes" = "default_x_includes"; then
XINC="/usr/include"
else
XINC="$x_includes"
fi
2003-08-18 13:53:58 +00:00
AC_SUBST(XINC)
2006-08-22 12:19:10 +00:00
if test "$x_libraries" = "default_x_libraries"; then
2009-01-21 17:47:03 +00:00
XLIB=`$PKG_CONFIG --variable=libdir x11`
if test "x$XLIB" = x; then
XLIB="/usr/lib"
fi
2006-08-22 12:19:10 +00:00
else
XLIB="$x_libraries"
fi
2003-08-18 13:53:58 +00:00
AC_SUBST(XLIB)
2007-01-23 05:35:17 +00:00
AC_SUBST(XAU_LIBS)
2003-08-18 13:53:58 +00:00
2009-02-16 10:31:20 +00:00
if test "$_os" != "WINNT" -a "$_os" != "OS2" -a "$_os" != "Darwin"; then
dnl ===================================================================
dnl Check for using Xaw
dnl ===================================================================
AC_MSG_CHECKING([whether to use Xaw])
if test "$enable_Xaw" = "no"; then
DISABLE_XAW=TRUE
AC_MSG_RESULT([no])
AC_CHECK_HEADERS(X11/Composite.h,[],[AC_MSG_ERROR([Xt include headers not found])],
[#include <X11/Intrinsic.h>])
else
AC_MSG_RESULT([yes])
2009-12-02 12:46:33 +01:00
AC_CHECK_HEADERS(X11/Xaw/Label.h,[],[AC_MSG_ERROR([Xaw include headers not found])],
[#include <X11/Intrinsic.h>])
2009-02-16 10:31:20 +00:00
AC_CHECK_LIB(Xaw, main, [],
[AC_MSG_ERROR(Xaw library not found or functional)], [])
fi
fi
AC_SUBST(DISABLE_XAW)
2005-03-23 07:46:00 +00:00
dnl ===================================================================
dnl Check if fontconfig/fontconfig.h is available
dnl ===================================================================
if test "$ENABLE_FONTCONFIG" = "TRUE" ; then
AC_CHECK_HEADER(fontconfig/fontconfig.h, [],
[AC_MSG_ERROR([fontconfig/fontconfig.h could not be found. libfontconfig1-dev or fontconfig???-devel missing?])], [])
2005-04-11 07:52:24 +00:00
AC_MSG_CHECKING([whether fontconfig is >= 2.2.0])
AC_TRY_RUN([
#include <fontconfig/fontconfig.h>
int main(int argc, char **argv) {
if(FC_MAJOR > 2 || (FC_MAJOR == 2 && FC_MINOR >= 2)) return 0;
else return 1;
}
], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR([no, fontconfig >= 2.2.0 needed])])
2005-03-23 07:46:00 +00:00
fi
2005-02-21 14:16:34 +00:00
dnl ===================================================================
dnl Check for system Xrender
dnl ===================================================================
2005-06-17 08:24:13 +00:00
AC_MSG_CHECKING([whether to link to Xrender])
2007-12-12 12:24:44 +00:00
if test -n "$enable_xrender_link" -a "$enable_xrender_link" != "no"; then
2005-06-17 08:24:13 +00:00
AC_MSG_RESULT([yes])
XRENDER_LINK=YES
with_system_xrender_headers=yes
else
AC_MSG_RESULT([no, dynamically open it])
XRENDER_LINK=NO
fi
AC_MSG_CHECKING([which Xrender headers to use])
2008-07-31 12:44:41 +00:00
if test -n "$with_system_xrender_headers" -o -n "$with_system_headers" && \
test "$with_system_xrender_headers" != "no"; then
2005-02-21 14:16:34 +00:00
AC_MSG_RESULT([external])
SYSTEM_XRENDER_HEADERS=YES
AC_CHECK_HEADER(X11/extensions/Xrender.h, [],
[AC_MSG_ERROR(Xrender not found. install X)], [])
else
AC_MSG_RESULT([internal])
SYSTEM_XRENDER_HEADERS=NO
BUILD_TYPE="$BUILD_TYPE X11_EXTENSIONS"
fi
2005-06-17 08:24:13 +00:00
if test "$XRENDER_LINK" = "YES"; then
AC_CHECK_LIB(Xrender, XRenderQueryVersion, [],
[AC_MSG_ERROR(libXrender not found or functional)], [])
fi
2005-02-21 14:16:34 +00:00
AC_SUBST(SYSTEM_XRENDER_HEADERS)
2005-06-17 08:24:13 +00:00
AC_SUBST(XRENDER_LINK)
2005-02-21 14:16:34 +00:00
2008-07-30 12:06:50 +00:00
dnl ===================================================================
dnl Check for XRandr
dnl ===================================================================
AC_MSG_CHECKING([whether to enable RandR support])
if test "$test_randr" = "yes" -a \( "$enable_randr" = "yes" -o "$enable_randr" = "TRUE" \) ; then
if test -z "$enable_randr_link" -o "$enable_randr_link" = "no"; then
XRANDR_DLOPEN="TRUE"
AC_MSG_RESULT([resorting to dlopen libXrandr at runtime])
else
XRANDR_DLOPEN="FALSE"
PKG_CHECK_MODULES(XRANDR, xrandr >= 1.2, ENABLE_RANDR="TRUE", ENABLE_RANDR="")
if test "$ENABLE_RANDR" != "TRUE"; then
AC_CHECK_HEADER(X11/extensions/Xrandr.h, [],
[AC_MSG_ERROR([X11/extensions/Xrandr.h could not be found. X11 dev missing?])], [])
XRANDR_CFLAGS=" "
AC_CHECK_LIB(Xrandr, XRRQueryExtension, [],
[ AC_MSG_ERROR(libXrandr not found or functional) ], [])
XRANDR_LIBS="-lXrandr "
ENABLE_RANDR="TRUE"
AC_MSG_RESULT([enabling RandR support])
fi
fi
else
ENABLE_RANDR=""
AC_MSG_RESULT([no])
fi
AC_SUBST(XRANDR_DLOPEN)
AC_SUBST(XRANDR_CFLAGS)
AC_SUBST(XRANDR_LIBS)
AC_SUBST(ENABLE_RANDR)
2006-04-20 12:34:04 +00:00
dnl ===================================================================
dnl Check for building neon
dnl ===================================================================
2007-12-12 12:24:44 +00:00
AC_MSG_CHECKING([whether to use neon])
2006-04-20 12:34:04 +00:00
if test "$enable_neon" = "no"; then
AC_MSG_RESULT([no])
DISABLE_NEON=TRUE
AC_SUBST(DISABLE_NEON)
else
AC_MSG_RESULT([yes])
2004-09-08 14:23:49 +00:00
dnl ===================================================================
dnl Check for system neon
dnl ===================================================================
AC_MSG_CHECKING([which neon to use])
INTEGRATION: CWS configure3 (1.72.4); FILE MERGED
2004/11/03 12:03:19 rene 1.72.4.7: minor typo
2004/11/03 11:41:21 rene 1.72.4.6: #i36561# configure needs to check for epm
2004/11/02 13:19:31 rene 1.72.4.5: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
oops actually add the AC_ARG_WITH for system-libs...
2004/11/02 13:14:55 rene 1.72.4.4: #o23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
implement a --with-system-libs enabling all other --with-system-* (except mozilla, python and the header ones) and enable ovveriding specific ones with --wiothout-system-* then
2004/11/01 11:04:42 rene 1.72.4.3: #i29991# soltools fails with header/type errors (680)
try to recover and detect a right JAVA_HOME when JAVA_HOME=/usr and we discover
the alternatives system as used in Debian and newer SuSEs
2004/11/01 11:01:07 rene 1.72.4.2: RESYNC: (1.72-1.74); FILE MERGED
2004/10/28 13:04:51 rene 1.72.4.1: #i23779# Patch to use system libs (berkeleydb, curl, freetype, nas, myspell. altlinuxhyph, neon, sane.h, (x)render(proto).h, unixodbc headers, mspack)
add library checks for expat and jpeg
2004-11-09 17:41:26 +00:00
if test -n "$with_system_neon" -o -n "$with_system_libs" && \
test "$with_system_neon" != "no"; then
2004-09-08 14:23:49 +00:00
AC_MSG_RESULT([external])
2007-12-12 14:35:15 +00:00
PKG_CHECK_MODULES(NEON, neon >= 0.24.0, , AC_MSG_ERROR([you need neon >= 0.24.x for system-neon]))
2006-07-19 08:52:02 +00:00
NEON_VERSION="`$PKG_CONFIG --modversion neon | $SED 's/\.//g'`"
2005-01-27 11:18:42 +00:00
NEON_CFLAGS="$NEON_CFLAGS -DSYSTEM_NEON -DUSE_DAV_LOCKS=1"
SYSTEM_NEON=YES
2004-09-08 14:23:49 +00:00
else
AC_MSG_RESULT([internal])
SYSTEM_NEON=NO
NEON_LIBS=-lneon
NEON_CFLAGS=
2005-02-11 14:50:22 +00:00
BUILD_TYPE="$BUILD_TYPE NEON"
2004-09-08 14:23:49 +00:00
fi
2009-09-23 11:08:28 +00:00
AC_SUBST(SYSTEM_NEON)
AC_SUBST(NEON_VERSION)
AC_SUBST(NEON_LIBS)
AC_SUBST(NEON_CFLAGS)
fi
2007-12-12 12:24:44 +00:00
dnl ===================================================================
2009-09-23 11:08:28 +00:00
dnl Check for system openssl
2007-12-12 12:24:44 +00:00
dnl ===================================================================
if test "$_os" = "Darwin" && test "$with_system_openssl" != "no"; then
with_system_openssl=yes
fi
AC_MSG_CHECKING([which libssl to use])
if test -n "$with_system_openssl" -o -n "$with_system_libs" && \
test "$with_system_openssl" != "no"; then
AC_MSG_RESULT([external])
# Mac OS builds should get out without extra stuff is the Mac porters'
# wish. And pkg-config is although Xcode ships a .pc for openssl
if test "$_os" = "Darwin"; then
OPENSSL_CFLAGS=
OPENSSL_LIBS="-lssl -lcrypto"
else
PKG_CHECK_MODULES( OPENSSL, openssl )
fi
SYSTEM_OPENSSL=YES
else
AC_MSG_RESULT([internal])
SYSTEM_OPENSSL=NO
BUILD_TYPE="$BUILD_TYPE OPENSSL"
fi
AC_SUBST(SYSTEM_OPENSSL)
AC_SUBST(OPENSSL_CFLAGS)
AC_SUBST(OPENSSL_LIBS)
2005-12-14 13:42:25 +00:00
dnl ===================================================================
2006-08-04 12:32:10 +00:00
dnl Test for disabling agg
2005-12-14 13:42:25 +00:00
dnl ===================================================================
2006-08-04 12:32:10 +00:00
AC_MSG_CHECKING([whether to enable agg])
if test "$with_agg" = "no"; then
AC_MSG_RESULT([no])
else
AC_MSG_RESULT([yes])
ENABLE_AGG=YES
AC_SUBST(ENABLE_AGG)
dnl ===================================================================
dnl Check for system AGG
dnl ===================================================================
AC_MSG_CHECKING([which AGG to use])
if test -n "$with_system_agg" -o -n "$with_system_libs" && \
test "$with_system_agg" != "no"; then
2005-12-14 13:42:25 +00:00
AC_MSG_RESULT([external])
PKG_CHECK_MODULES(AGG, libagg >= 2.3)
2006-08-04 12:32:10 +00:00
AC_MSG_CHECKING([agg version])
# workaround; if AGG_CFLAGS is empty (broken libagg.pc in 2.3), add /usr/include/agg2 anyway
# (/usr/include gets stripped from pkg-config output)
if test -z "$AGG_CFLAGS" || test "$AGG_CFLAGS" = " "; then
AGG_INCDIR="`$PKG_CONFIG --variable includedir libagg`/agg2"
else
AGG_INCDIR="`echo $AGG_CFLAGS | $SED -e s/-I//`"
fi
2007-11-01 13:44:12 +00:00
if $PKG_CONFIG --modversion libagg | grep -q 2.3 || \
$PKG_CONFIG --modversion libagg | grep -q 2.4; then
# 2.4's libagg.pc.in still contains 2.3 :/
2008-01-28 08:53:36 +00:00
if $EGREP -q "Version 2.4" `echo $AGG_INCDIR`/agg_basics.h; then
2007-11-01 13:44:12 +00:00
AC_MSG_RESULT([2.4])
AGG_VERSION=2400
else
AC_MSG_RESULT([2.3])
AGG_VERSION=2300
fi
SYSTEM_AGG=YES
else
AC_MSG_ERROR([only agg 2.3 and 2.4 are supported])
fi
2006-08-04 12:32:10 +00:00
else
2005-12-14 13:42:25 +00:00
AC_MSG_RESULT([internal])
SYSTEM_AGG=NO
2006-08-04 12:32:10 +00:00
AGG_VERSION=2300
2005-12-14 13:42:25 +00:00
BUILD_TYPE="$BUILD_TYPE AGG"
2006-08-04 12:32:10 +00:00
fi
AC_SUBST(SYSTEM_AGG)
AC_SUBST(AGG_VERSION)
2005-12-14 13:42:25 +00:00
fi
2008-07-31 12:44:41 +00:00
dnl ===================================================================
dnl Check for system redland
dnl ===================================================================
AC_MSG_CHECKING([which redland library to use])
2010-03-09 13:27:16 +01:00
if test -n "$with_system_redland" -o -n "$with_system_libs" && \
2008-07-31 12:44:41 +00:00
test "$with_system_redland" != "no"; then
AC_MSG_RESULT([external])
SYSTEM_REDLAND=YES
2010-03-09 13:27:16 +01:00
dnl versions before 1.0.8 write RDF/XML that is useless for ODF (@xml:base)
PKG_CHECK_MODULES(REDLAND, redland >= 1.0.8)
2008-07-31 12:44:41 +00:00
else
AC_MSG_RESULT([internal])
BUILD_TYPE="$BUILD_TYPE REDLAND"
SYSTEM_REDLAND=NO
fi
AC_SUBST(SYSTEM_REDLAND)
AC_SUBST(REDLAND_LIBS)
2006-01-06 12:13:53 +00:00
dnl ===================================================================
dnl Check for system hunspell
dnl ===================================================================
AC_MSG_CHECKING([which libhunspell to use])
2008-07-31 12:44:41 +00:00
if test -n "$with_system_hunspell" -o -n "$with_system_libs" && \
test "$with_system_hunspell" != "no"; then
2006-01-06 12:13:53 +00:00
AC_MSG_RESULT([external])
SYSTEM_HUNSPELL=YES
2007-12-12 12:24:44 +00:00
AC_LANG_PUSH([C++])
2007-07-31 12:09:29 +00:00
PKG_CHECK_MODULES(HUNSPELL, hunspell, HUNSPELL_PC="TRUE", HUNSPELL_PC="" )
if test "$HUNSPELL_PC" != "TRUE"; then
AC_CHECK_HEADER(hunspell.hxx, [],
[
AC_CHECK_HEADER(hunspell/hunspell.hxx, [ HUNSPELL_CFLAGS=-I/usr/include/hunspell ],
[AC_MSG_ERROR(hunspell headers not found.)], [])
], [])
AC_CHECK_LIB(hunspell, main, [],
2006-01-06 12:13:53 +00:00
[ AC_MSG_ERROR(hunspell library not found.) ], [])
2007-07-31 12:09:29 +00:00
HUNSPELL_LIBS=-lhunspell
fi
2007-12-12 12:24:44 +00:00
AC_LANG_POP([C++])
2006-01-06 12:13:53 +00:00
else
AC_MSG_RESULT([internal])
SYSTEM_HUNSPELL=NO
2008-07-31 12:44:41 +00:00
BUILD_TYPE="$BUILD_TYPE HUNSPELL"
2006-01-06 12:13:53 +00:00
fi
AC_SUBST(SYSTEM_HUNSPELL)
2006-01-31 17:28:45 +00:00
AC_SUBST(HUNSPELL_CFLAGS)
2007-07-31 12:09:29 +00:00
AC_SUBST(HUNSPELL_LIBS)
2006-01-06 12:13:53 +00:00
2005-06-17 08:24:13 +00:00
dnl ===================================================================
dnl Checking for altlinuxhyph
dnl ===================================================================
AC_MSG_CHECKING([which altlinuxhyph to use])
2008-07-31 12:44:41 +00:00
if test -n "$with_system_altlinuxhyph" -o -n "$with_system_libs" && \
test "$with_system_altlinuxhyph" != "no"; then
2005-06-17 08:24:13 +00:00
AC_MSG_RESULT([external])
SYSTEM_HYPH=YES
AC_CHECK_HEADER(hyphen.h, [],
[ AC_MSG_ERROR(altlinuxhyph headers not found.)], [])
AC_CHECK_MEMBER(struct _HyphenDict.cset, [],
[ AC_MSG_ERROR(no. You are sure you have altlinuyhyph headers?)],
[#include <hyphen.h>])
2007-12-12 12:24:44 +00:00
AC_CHECK_LIB(hyphen, hnj_hyphen_hyphenate2, [HYPHEN_LIB=-lhyphen],
2006-04-20 12:34:04 +00:00
[ AC_MSG_ERROR(altlinuxhyph library not found or too old.)], [])
2007-12-12 12:24:44 +00:00
if test -z "$HYPHEN_LIB"; then
AC_CHECK_LIB(hyph, hnj_hyphen_hyphenate2, [HYPHEN_LIB=-lhyph],
[ AC_MSG_ERROR(altlinuxhyph library not found or too old.)], [])
fi
if test -z "$HYPHEN_LIB"; then
AC_CHECK_LIB(hnj, hnj_hyphen_hyphenate2, [HYPHEN_LIB=-lhnj],
[ AC_MSG_ERROR(altlinuxhyph library not found or too old.)], [])
fi
2005-06-17 08:24:13 +00:00
else
AC_MSG_RESULT([internal])
SYSTEM_HYPH=NO
2010-01-28 16:19:59 +01:00
BUILD_TYPE="$BUILD_TYPE HYPHEN"
2005-06-17 08:24:13 +00:00
fi
AC_SUBST(SYSTEM_HYPH)
2007-12-12 12:24:44 +00:00
AC_SUBST(HYPHEN_LIB)
2005-06-17 08:24:13 +00:00
dnl ===================================================================
dnl Checking for mythes
dnl ===================================================================
AC_MSG_CHECKING([which mythes to use])
if test -n "$with_system_mythes" && test "$with_system_mythes" != "no"; then
AC_MSG_RESULT([external])
SYSTEM_MYTHES=YES
AC_CHECK_HEADER(mythes.hxx, [],
[ AC_MSG_ERROR(mythes.hxx headers not found.)], [])
AC_CHECK_LIB(mythes, main, [],
[ AC_MSG_ERROR(mythes library not found.)], [])
else
AC_MSG_RESULT([internal])
SYSTEM_MYTHES=NO
fi
AC_SUBST(SYSTEM_MYTHES)
2008-07-31 12:44:41 +00:00
dnl ===================================================================
dnl Checking for lpsolve
dnl ===================================================================
AC_MSG_CHECKING([which lpsolve to use])
if test -n "$with_system_lpsolve" -o -n "$with_system_libs" && \
test "$with_system_lpsolve" != "no"; then
AC_MSG_RESULT([external])
SYSTEM_LPSOLVE=YES
AC_CHECK_HEADER(lpsolve/lp_lib.h, [],
[ AC_MSG_ERROR(lpsolve headers not found.)], [])
AC_CHECK_LIB(lpsolve55, make_lp, ,
[ AC_MSG_ERROR(lpsolve library not found or too old.)], [])
else
AC_MSG_RESULT([internal])
SYSTEM_LPSOLVE=NO
BUILD_TYPE="$BUILD_TYPE LPSOLVE"
fi
AC_SUBST(SYSTEM_LPSOLVE)
2000-09-18 15:18:56 +00:00
dnl ***************************************
dnl testing libc version for Linux...
dnl ***************************************
if test "$_os" = "Linux"; then
2005-03-15 08:46:30 +00:00
AC_MSG_CHECKING([whether libc is >= 2.1.1])
exec 6>/dev/null # no output
2000-09-18 15:18:56 +00:00
AC_CHECK_LIB(c, gnu_get_libc_version, HAVE_LIBC=yes; export HAVE_LIBC)
2005-03-15 08:46:30 +00:00
exec 6>&1 # output on again
2000-09-18 15:18:56 +00:00
if test "$HAVE_LIBC"; then
2005-03-15 08:46:30 +00:00
AC_MSG_RESULT([yes])
2000-09-18 15:18:56 +00:00
else
2005-03-15 08:46:30 +00:00
AC_MSG_ERROR([no, upgrade libc])
2000-09-18 15:18:56 +00:00
fi
fi
2005-03-15 08:46:30 +00:00
2002-10-02 08:18:56 +00:00
dnl =========================================
dnl Check for the Microsoft Platform SDK.
dnl =========================================
2003-06-12 09:16:00 +00:00
dnl FIXME: I don't know yet if PSDK works with MinGW, keep it until I know better,
dnl and add "-a \( "$WITH_MINGWIN" != "yes" \)" then
if test \( "$_os" = "WINNT" \) ; then
2005-03-15 08:46:30 +00:00
AC_MSG_CHECKING([for PSDK files])
2002-10-02 08:18:56 +00:00
if test -z "$with_psdk_home"; then
2005-06-21 09:13:47 +00:00
# This first line will detect a February 2003 Microsoft Platform SDK
2009-01-24 12:09:06 +00:00
PSDK_HOME=`./oowintool --psdk-home`
2005-06-21 09:13:47 +00:00
# But there might be also an April 2005 PSDK, unfortunately MS changed
# the registry entry. (we prefer the old version!?)
if test -z "$PSDK_HOME"; then
2005-06-30 12:06:19 +00:00
PSDK_HOME=`cat /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MicrosoftSDK/InstalledSDKs/*/Install\ Dir 2> /dev/null | tr '\000' '\n' | head -n 1`
2005-06-21 09:13:47 +00:00
fi
2008-07-31 12:44:41 +00:00
# normalize if found
if test -n "$PSDK_HOME"; then
PSDK_HOME=`cygpath -d "$PSDK_HOME"`
PSDK_HOME=`cygpath -u "$PSDK_HOME"`
fi
2002-10-02 08:18:56 +00:00
else
2008-07-31 12:44:41 +00:00
PSDK_HOME=`cygpath -u "$with_psdk_home"`
2002-10-02 08:18:56 +00:00
fi
2006-01-06 10:17:18 +00:00
# Remove a possible trailing backslash
PSDK_HOME=`echo $PSDK_HOME | $SED 's/\/$//'`
2005-06-21 09:13:47 +00:00
# Problem with current PSDK (iz 49865)
if test -f "$PSDK_HOME/Lib/libcp.lib"; then
AC_MSG_ERROR([
Some modules do not build correctly with MS Platform SDK - April 2005
Edition if the library ($PSDK_HOME/Lib/libcp.lib) is found.
Remove/rename/backup that file and restart configure. Details about this
problem can be found in issue 49856.])
fi
2008-07-31 12:44:41 +00:00
# WIndows SDK has different headers
if test \( -f "$PSDK_HOME/Include/adoint.h" \) \
2002-10-02 08:18:56 +00:00
-a \( -f "$PSDK_HOME/Include/SqlUcode.h" \) \
-a \( -f "$PSDK_HOME/Include/usp10.h" \); then
HAVE_PSDK_H="yes"
else
HAVE_PSDK_H="no"
fi
if test -f "$PSDK_HOME/lib/unicows.lib"; then
HAVE_PSDK_LIB="yes"
else
HAVE_PSDK_LIB="no"
fi
2004-12-03 13:19:46 +00:00
if test "$HAVE_PSDK_H" = "no" -o "$HAVE_PSDK_LIB" = "no"; then
AC_MSG_ERROR([Some (all?) PSDK files not found, please check if all needed Platform SDKs
are installed or use --with-psdk-home .])
fi
if test ! -x "$PSDK_HOME/bin/msiinfo.exe" \
-o ! -x "$PSDK_HOME/bin/msidb.exe" \
-o ! -x "$PSDK_HOME/bin/uuidgen.exe" \
-o ! -x "$PSDK_HOME/bin/msitran.exe" ; then
AC_MSG_ERROR([Some (all) files of the Windows Installer SDK are missing, please install.])
fi
2008-07-31 12:44:41 +00:00
AC_MSG_RESULT([SDK files found ...)])
dnl Check if this is the right SDK.
2008-07-31 12:53:05 +00:00
if echo $PSDK_HOME | grep "v6.1" >/dev/null 2>/dev/null; then
2008-07-31 12:44:41 +00:00
AC_MSG_RESULT([Found Windows SDK 6.1 ($PSDK_HOME)])
WINDOWS_VISTA_PSDK=TRUE
2008-07-31 12:53:05 +00:00
elif echo $PSDK_HOME | grep "v6.0" >/dev/null 2>/dev/null; then
2008-07-31 12:44:41 +00:00
AC_MSG_RESULT([Found Windows SDK 6.0 ($PSDK_HOME)])
WINDOWS_VISTA_PSDK=TRUE
else
AC_MSG_RESULT([Found Legacy Windows Platform SDK ($PSDK_HOME)])
fi
2002-10-02 08:18:56 +00:00
fi
2003-08-18 13:53:58 +00:00
AC_SUBST(PSDK_HOME)
2008-07-31 12:44:41 +00:00
AC_SUBST(WINDOWS_VISTA_PSDK)
2003-08-18 13:53:58 +00:00
2004-10-11 12:48:26 +00:00
dnl =========================================
dnl Check for the Microsoft DirectX SDK.
dnl =========================================
if test \( "$_os" = "WINNT" \) ; then
2005-03-15 08:46:30 +00:00
AC_MSG_CHECKING([for DirectX SDK files])
2004-10-11 12:48:26 +00:00
if test -z "$with_directx_home"; then
2006-01-06 10:17:18 +00:00
dnl A standard installation of the DirectX SDK sets $DXSDK_DIR
if test -n "$DXSDK_DIR"; then
DIRECTXSDK_HOME=`cygpath -d "$DXSDK_DIR"`
DIRECTXSDK_HOME=`cygpath -u "$DIRECTXSDK_HOME"`
fi
# At this point $DIRECTXSDK_HOME might still be undefined. This will lead to
# the "DirectX SDK files not found" error later
2008-07-31 12:44:41 +00:00
else
DIRECTXSDK_HOME=`cygpath -u "$with_directx_home"`
fi
2006-01-06 10:17:18 +00:00
# Remove a possible trailing backslash
DIRECTXSDK_HOME=`echo $DIRECTXSDK_HOME | $SED 's/\/$//'`
if test -f "$DIRECTXSDK_HOME/Include/ddraw.h" ; then
2005-02-11 17:25:35 +00:00
HAVE_DIRECTXSDK_H="yes"
else
HAVE_DIRECTXSDK_H="no"
fi
# MS changed the location of the libraries with dec 2004 directx sdk
if test -d "$DIRECTXSDK_HOME/lib/x86" ; then
DIRECTXSDK_LIB="$DIRECTXSDK_HOME/lib/x86"
else
DIRECTXSDK_LIB="$DIRECTXSDK_HOME/lib"
fi
2006-01-06 10:17:18 +00:00
if test -f "$DIRECTXSDK_LIB/ddraw.lib" ; then
2005-02-11 17:25:35 +00:00
HAVE_DIRECTXSDK_LIB="yes"
else
HAVE_DIRECTXSDK_LIB="no"
fi
2004-10-11 12:48:26 +00:00
if test -n "$ENABLE_DIRECTX"; then
2005-02-11 17:25:35 +00:00
if test "$HAVE_DIRECTXSDK_H" = "yes" -a "$HAVE_DIRECTXSDK_LIB" = "yes"; then
2004-10-11 12:48:26 +00:00
AC_MSG_RESULT([found])
else
AC_MSG_ERROR([DirectX SDK files not found, please use --with-directx-home or -disable-directx.])
fi
else
DIRECTXSDK_HOME=""
AC_MSG_RESULT([disabled])
fi
fi
AC_SUBST(DIRECTXSDK_HOME)
2005-02-11 17:25:35 +00:00
AC_SUBST(DIRECTXSDK_LIB)
2004-10-11 12:48:26 +00:00
2005-05-13 11:13:27 +00:00
dnl ============================================
dnl Check for Nullsoft Scriptable Install System
dnl ============================================
NSIS_PATH=""
if test "$_os" = "WINNT" ; then
AC_MSG_CHECKING([for NSIS])
AC_PATH_PROG(NSIS_PATH, nsis.exe)
if test -n "$NSIS_PATH"; then
NSIS_PATH=`dirname "$NSIS_PATH"`
fi
2008-07-31 12:44:41 +00:00
if test -n "$with_nsis_path"; then
with_nsis_path=`cygpath -u "$with_nsis_path"`
fi
2005-05-13 11:13:27 +00:00
if test -e "$with_nsis_path/nsis.exe"; then
NSIS_PATH="$with_nsis_path"
fi
2009-01-24 12:09:06 +00:00
nsistest=`./oowintool --nsis-dir`;
2006-05-05 07:11:05 +00:00
if test -x "$nsistest/nsis.exe"; then
NSIS_PATH="$nsistest"
fi
2005-05-13 11:13:27 +00:00
if test -z "$NSIS_PATH"; then
AC_MSG_WARN([NSIS not found, no self contained installer will be build.])
echo "NSIS not found, no self contained installer will be build." >> warn
else
NSIS_PATH=`cygpath -d "$NSIS_PATH"`
NSIS_PATH=`cygpath -u "$NSIS_PATH"`
AC_MSG_RESULT([found ($NSIS_PATH)])
fi
fi
AC_SUBST(NSIS_PATH)
2000-09-18 15:18:56 +00:00
dnl ***************************************
dnl testing bison and flex exist
dnl ***************************************
AC_PATH_PROG(BISON, bison)
if test -z "$BISON"; then
2003-04-28 16:02:04 +00:00
AC_MSG_ERROR([no bison found in \$PATH, install bison])
2004-06-16 09:48:18 +00:00
else
AC_MSG_CHECKING([the bison version])
_bison_version=`$BISON --version | grep GNU | $SED -e 's@^[[^0-9]]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
_bison_longver=`echo $_bison_version | $AWK -F. '{ print \$1*1000+\$2}'`
2004-09-08 14:23:49 +00:00
# Accept newer than 1.875 or older(equal) than 1.75
if test "$_bison_longver" -ge 1875 -o "$_bison_longver" -le 1075; then
2004-06-16 09:48:18 +00:00
if test "$_bison_version" = "1.875" ; then
AC_MSG_WARN([suspect ($BISON $_bison_version)])
echo "Suspect ($BISON $_bison_version) suggest upgrade" >> warn
else
AC_MSG_RESULT([checked ($BISON $_bison_version)])
fi
else
2004-09-08 14:23:49 +00:00
AC_MSG_ERROR([failed ($BISON $_bison_version need 1.875+ (or 1.75 and older))])
2004-06-16 09:48:18 +00:00
fi
2000-09-18 15:18:56 +00:00
fi
AC_PATH_PROG(FLEX, flex)
if test -z "$FLEX"; then
2003-04-28 16:02:04 +00:00
AC_MSG_ERROR([no flex found in \$PATH, install flex])
2000-09-18 15:18:56 +00:00
fi
dnl ***************************************
2001-02-14 10:40:44 +00:00
dnl testing that patch exists
dnl ***************************************
AC_PATH_PROG(PATCH, patch)
if test -z "$PATCH"; then
2003-04-28 16:02:04 +00:00
AC_MSG_ERROR([\"patch\" not found in \$PATH, install the development tool named\"patch"\])
2001-02-14 10:40:44 +00:00
fi
2003-07-16 16:24:42 +00:00
2005-05-31 16:03:12 +00:00
dnl On Solaris, FreeBSD or MacOS X, check if --with-gnu-patch was used
if test "$_os" = "SunOS" -o "$_os" = "FreeBSD" -o "$_os" = "Darwin"; then
2003-07-16 16:24:42 +00:00
if test -z "$with_gnu_patch"; then
GNUPATCH=$PATCH
else
if test -x "$with_gnu_patch"; then
GNUPATCH=$with_gnu_patch
else
AC_MSG_ERROR([--with-gnu-patch did not point to an executable])
fi
fi
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([whether $GNUPATCH is GNU patch])
2005-02-03 07:58:21 +00:00
if $GNUPATCH --version | grep "Free Software Foundation" >/dev/null 2>/dev/null; then
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([yes])
else
2005-02-03 07:58:21 +00:00
AC_MSG_ERROR([no, GNU patch needed. install or specify with --with-gnu-patch=/path/to/it])
2005-01-25 11:42:58 +00:00
fi
2003-07-16 16:24:42 +00:00
dnl We also need to check for --with-gnu-cp
if test -z "$with_gnu_cp"; then
2006-12-01 13:52:44 +00:00
AC_PATH_PROGS(GNUCP, gnucp cp)
if test -z $GNUCP; then
AC_MSG_ERROR([Neither gnucp nor cp found. Install GNU cp and/or specify --with-gnu-cp=/path/to/it])
fi
2003-07-16 16:24:42 +00:00
else
if test -x "$with_gnu_cp"; then
GNUCP=$with_gnu_cp
else
AC_MSG_ERROR([--with-gnu-cp did not point to an executable])
fi
fi
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([whether $GNUCP is GNU cp])
2007-01-03 09:13:17 +00:00
if $GNUCP --version 2>/dev/null | grep "Free Software Foundation" >/dev/null 2>/dev/null; then
2005-01-25 11:42:58 +00:00
AC_MSG_RESULT([yes])
else
2007-01-03 09:13:17 +00:00
if $GNUCP --version 2>/dev/null | grep "GNU fileutils" >/dev/null 2>/dev/null; then
2006-03-29 11:47:51 +00:00
AC_MSG_RESULT([yes])
else
2007-01-03 09:13:17 +00:00
if test "$_os" = "Darwin"; then
GNUCP=''
AC_MSG_RESULT([no gnucp found - using the system's cp command])
else
AC_MSG_ERROR([no, GNU cp needed. install or specify with --with-gnu-cp=/path/to/it])
fi
2006-03-29 11:47:51 +00:00
fi
2005-01-25 11:42:58 +00:00
fi
2003-07-16 16:24:42 +00:00
fi
2003-08-18 13:53:58 +00:00
AC_SUBST(GNUPATCH)
AC_SUBST(GNUCP)
2003-07-16 16:24:42 +00:00
2001-02-14 10:40:44 +00:00
dnl ***************************************
2001-02-07 11:51:40 +00:00
dnl testing bash tools path on Windows
2000-09-18 15:18:56 +00:00
dnl ***************************************
2001-02-07 11:51:40 +00:00
if test "$_os" = "WINNT"; then
2004-06-16 09:48:18 +00:00
CYGWIN_PATH=""
AC_PATH_PROG(CYGWIN_PATH, bash)
CYGWIN_PATH=`dirname "$CYGWIN_PATH"`
2001-02-07 11:51:40 +00:00
fi
2004-06-16 09:48:18 +00:00
if test -z "$CYGWIN_PATH"; then
CYGWIN_PATH="NO_CYGWIN"
2003-08-18 13:53:58 +00:00
fi
2004-06-16 09:48:18 +00:00
AC_SUBST(CYGWIN_PATH)
2003-08-18 13:53:58 +00:00
2000-12-07 17:33:25 +00:00
dnl ***************************************
dnl testing ml.exe assembler path
dnl ***************************************
2009-01-20 16:36:21 +00:00
if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
2005-03-15 08:46:30 +00:00
AC_MSG_CHECKING([ml.exe assembler path])
2008-07-31 12:44:41 +00:00
if test -n "$with_asm_home"; then
with_asm_home=`cygpath -u "$with_asm_home"`
fi
2002-08-27 09:31:11 +00:00
if test ! -x "$with_asm_home/ml.exe"; then
AC_PATH_PROG(ML_EXE, ml.exe)
if test -z "$ML_EXE"; then
2004-06-16 09:48:18 +00:00
if test -x "$with_cl_home/bin/ml.exe"; then
with_asm_home=$with_cl_home/bin
2006-05-05 07:11:05 +00:00
AC_MSG_RESULT([found ($with_asm_home)])
2004-06-16 09:48:18 +00:00
else
AC_MSG_ERROR([Configure did not find ml.exe assembler.])
fi
2002-08-27 09:31:11 +00:00
else
with_asm_home="ASM_IN_PATH"
fi
fi
2001-02-07 11:51:40 +00:00
else
with_asm_home="NO_ASM_HOME"
fi
2003-08-18 13:53:58 +00:00
ASM_HOME="$with_asm_home"
2007-03-26 13:51:20 +00:00
if test -n "$ASM_HOME"; then
2005-03-15 08:46:30 +00:00
AC_MSG_RESULT([$ASM_HOME])
fi
2003-08-18 13:53:58 +00:00
AC_SUBST(ASM_HOME)
2003-12-17 14:01:13 +00:00
2003-08-18 13:53:58 +00:00
dnl ===================================================================
dnl testing handle deprecated unzip switch
dnl ===================================================================
if test -z "$with_zip_home"; then
with_zip_home="$with_unzip_home"
fi
dnl ===================================================================
dnl Zip will be found where you tell me to find it
dnl ===================================================================
if test -n "$with_zip_home" ; then
2008-07-31 12:44:41 +00:00
if test "$_os" = "WINNT"; then
with_zip_home=`cygpath -u "$with_zip_home"`
fi
ZIP="$with_zip_home/zip"
UNZIP="$with_zip_home/unzip"
2003-08-18 13:53:58 +00:00
ZIP_HOME="$with_zip_home"
else
2005-02-11 13:36:45 +00:00
AC_PATH_PROG(ZIP, zip)
2006-01-10 13:33:05 +00:00
AC_PATH_PROG(UNZIP, unzip)
2005-02-11 13:36:45 +00:00
ZIP_HOME=`dirname "$ZIP"`
2003-08-18 13:53:58 +00:00
fi
dnl ===================================================================
dnl Zip must be available or else it is an error, all platforms
dnl ===================================================================
2006-01-10 13:33:05 +00:00
if test -z "$ZIP" -o -z "$UNZIP"; then
AC_MSG_ERROR([Zip/Unzip are required to build, please install or use --with-zip-home],,)
2003-08-18 13:53:58 +00:00
fi
dnl ===================================================================
dnl Zip must be a specific type for different build types.
dnl ===================================================================
2001-11-12 17:44:07 +00:00
if test "$_os" = "WINNT"; then
2009-10-26 16:04:03 +01:00
if test -n "`$ZIP -h | grep -i WinNT`" ; then
2003-08-18 13:53:58 +00:00
AC_MSG_ERROR([$ZIP found in the path is not the required cygwin version of Info-ZIPs zip.exe.])
fi
fi
AC_SUBST(ZIP_HOME)
dnl ===================================================================
dnl Windows builds need unicows.dll in external/unicows/
dnl ===================================================================
if test "$_os" = "WINNT"; then
2005-03-15 08:46:30 +00:00
AC_MSG_CHECKING([for unicows.dll])
2009-01-21 17:47:03 +00:00
if test -x ./external/unicows/unicows.dll; then
2003-08-18 13:53:58 +00:00
AC_MSG_RESULT([found])
else
AC_MSG_ERROR([The Microsoft Layer for Unicode (unicows.dll) is missing in external/unicows/.
Get it from the Microsoft site and put it into external/unicows.
(Note: Microsoft seems to enjoy changing the exact location of this file. You
may have to search Microsoft's website.) Last time it was seen at:
<http://download.microsoft.com/download/b/7/5/b75eace3-00e2-4aa0-9a6f-0b6882c71642/unicows.exe>.])
2001-11-12 17:44:07 +00:00
fi
fi
2003-08-18 13:53:58 +00:00
dnl ===================================================================
dnl Windows builds need dbghelp.dll in external/dbghelp/
dnl ===================================================================
if test "$_os" = "WINNT"; then
2005-03-15 08:46:30 +00:00
AC_MSG_CHECKING([for dbghelp.dll])
2009-01-21 17:47:03 +00:00
if test -x ./external/dbghelp/dbghelp.dll; then
2003-08-18 13:53:58 +00:00
AC_MSG_RESULT([found])
else
2005-03-15 08:46:30 +00:00
AC_MSG_ERROR([dbghelp.dll is missing in external/dbghelp/.
2003-08-18 13:53:58 +00:00
Get it from the Microsoft site and put it into external/dbghelp.
(Note: Microsoft seems to enjoy changing the exact location of this file. You
may have to search Microsoft's website.) Last time it was seen at:
<http://www.microsoft.com/downloads/release.asp?releaseid=30682>.])
fi
fi
2006-05-05 07:11:05 +00:00
dnl ===================================================================
2009-01-24 12:09:06 +00:00
dnl Windows builds - use oowintool to copy CRT dlls and manifest
2006-05-05 07:11:05 +00:00
dnl ===================================================================
2009-03-12 22:38:26 +00:00
if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
2009-01-24 12:09:06 +00:00
if ./oowintool --msvc-copy-dlls ./external/msvcp ; then
2008-09-05 13:13:58 +00:00
:
else
2009-01-24 12:09:06 +00:00
AC_MSG_ERROR([oowintool failed to copy CRT])
2008-09-05 13:13:58 +00:00
fi
2006-05-05 07:11:05 +00:00
fi
2006-05-08 14:56:36 +00:00
dnl ===================================================================
dnl Windows builds need gdiplus.dll in external/gdiplus/
dnl ===================================================================
if test "$_os" = "WINNT"; then
AC_MSG_CHECKING([for gdiplus.dll])
2009-01-21 17:47:03 +00:00
if test -x ./external/gdiplus/gdiplus.dll; then
2006-05-08 14:56:36 +00:00
AC_MSG_RESULT([found])
else
AC_MSG_ERROR([gdiplus.dll is missing in external/gdiplus/.
Get it from the Microsoft site and put it into external/gdiplus.
You may have to search Microsoft's website. Last time it was seen at:
<http://www.microsoft.com/downloads/details.aspx?familyid=6A63AB9C-DF12-4D41-933C-BE590FEAA05A&displaylang=en>.])
fi
fi
2006-05-05 07:11:05 +00:00
dnl ===================================================================
dnl Windows builds - attempt to auto-copy required instmsiX.exe into external/
dnl ===================================================================
if test "$_os" = "WINNT"; then
2009-01-24 12:09:06 +00:00
./oowintool --msvc-copy-instmsi ./external/msi
2006-05-05 07:11:05 +00:00
fi
2004-11-15 11:32:36 +00:00
dnl ===================================================================
2008-07-31 12:44:41 +00:00
dnl Windows builds with VS 2003/2005/2008 need instmsia.exe and instmsiw.exe in external/msi
2004-11-15 11:32:36 +00:00
dnl ===================================================================
2008-07-31 12:44:41 +00:00
if test "$_os" = "WINNT"; then
2009-03-12 22:38:26 +00:00
if test "$WITH_MINGWIN" = "yes" || test "$COMEX" -ge "10"; then
2005-03-15 08:46:30 +00:00
AC_MSG_CHECKING([for instmsia.exe/instmsiw.exe])
2009-01-21 17:47:03 +00:00
if test -x ./external/msi/instmsia.exe -a -x ./external/msi/instmsiw.exe; then
2004-11-15 11:32:36 +00:00
AC_MSG_RESULT([found])
else
2009-11-27 15:39:46 +01:00
MSIAPATH=`/bin/find "$COMPATH/.." -iname instmsia.exe | head -n 1`
MSIWPATH=`/bin/find "$COMPATH/.." -iname instmsiw.exe | head -n 1`
2004-11-15 11:32:36 +00:00
if test -n "$MSIAPATH" -a -n "$MSIWPATH"; then
2009-01-21 17:47:03 +00:00
cp "$MSIAPATH" ./external/msi/ && chmod +x ./external/msi/instmsia.exe && MSIACOPY="OK"
cp "$MSIWPATH" ./external/msi/ && chmod +x ./external/msi/instmsiw.exe && MSIWCOPY="OK"
2004-11-15 11:32:36 +00:00
fi
if test -z "$MSIACOPY" -o -z "$MSIWCOPY"; then
AC_MSG_ERROR([instmsia.exe and/or instmsiw.exe are/is missing in the default location.
2006-09-25 12:33:13 +00:00
These programs are part of the Visual Studio installation and should be found in a
2004-11-15 11:32:36 +00:00
directory similar to:
"c:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\Tools\\Deployment\\MsiRedist\\"
As the automatic detection fails please copy the files to external/msi/.])
else
AC_MSG_RESULT([found and copied])
fi
fi
fi
2008-07-31 12:44:41 +00:00
fi
2004-11-15 11:32:36 +00:00
2004-10-27 15:14:53 +00:00
dnl ===================================================================
dnl Test which vclplugs have to be built.
dnl ===================================================================
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([which VCLplugs shall be built])
2004-10-27 15:14:53 +00:00
ENABLE_GTK=""
2005-02-11 16:58:49 +00:00
if test "x$enable_gtk" = "xyes"; then
2004-10-27 15:14:53 +00:00
ENABLE_GTK="TRUE"
2005-01-25 11:42:58 +00:00
R="gtk"
2004-10-27 15:14:53 +00:00
fi
AC_SUBST(ENABLE_GTK)
ENABLE_KDE=""
2005-02-11 16:58:49 +00:00
if test "x$enable_kde" = "xyes"; then
2004-10-27 15:14:53 +00:00
ENABLE_KDE="TRUE"
2005-01-25 11:42:58 +00:00
R="$R kde"
2004-10-27 15:14:53 +00:00
fi
AC_SUBST(ENABLE_KDE)
2009-08-07 10:16:34 +00:00
ENABLE_KDE4=""
if test "x$enable_kde4" = "xyes"; then
ENABLE_KDE4="TRUE"
R="$R kde4"
fi
AC_SUBST(ENABLE_KDE4)
2005-01-25 11:42:58 +00:00
if test -z "$R"; then
AC_MSG_RESULT([none])
else
AC_MSG_RESULT([$R])
fi
2008-08-27 12:55:44 +00:00
dnl ===================================================================
dnl GCONF check
dnl ===================================================================
ENABLE_GCONF=""
AC_MSG_CHECKING([whether to enable GConf support])
2008-12-09 08:43:20 +00:00
if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$_os" != "OS2" -a "$enable_gconf" = "yes"; then
2008-08-27 12:55:44 +00:00
ENABLE_GCONF="TRUE"
AC_MSG_RESULT([yes])
PKG_CHECK_MODULES( GCONF, gconf-2.0 )
else
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_GCONF)
2005-02-11 16:58:49 +00:00
dnl ===================================================================
dnl Gnome VFS check
dnl ===================================================================
ENABLE_GNOMEVFS=""
AC_MSG_CHECKING([whether to enable GNOME VFS support])
2005-04-11 07:52:24 +00:00
if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_gnome_vfs" = "yes"; then
2005-02-11 16:58:49 +00:00
ENABLE_GNOMEVFS="TRUE"
AC_MSG_RESULT([yes])
2005-05-13 11:13:27 +00:00
PKG_CHECK_MODULES( GNOMEVFS, gnome-vfs-2.0 >= 2.6.0 )
2008-08-27 12:55:44 +00:00
if test "$ENABLE_GCONF" != "TRUE"; then
PKG_CHECK_MODULES( GCONF, gconf-2.0 )
fi
2005-02-11 16:58:49 +00:00
else
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_GNOMEVFS)
2004-10-27 15:14:53 +00:00
dnl ===================================================================
dnl Check whether the gtk 2.0 libraries are available.
dnl ===================================================================
GTK_CFLAGS=""
GTK_LIBS=""
2006-11-07 14:29:05 +00:00
ENABLE_SYSTRAY_GTK=""
2007-08-02 13:58:57 +00:00
ENABLE_DBUS=""
2004-10-27 15:14:53 +00:00
if test "$test_gtk" = "yes"; then
2006-12-01 13:52:44 +00:00
if test "$ENABLE_GTK" = "TRUE" ; then
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 ,,AC_MSG_ERROR([requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages]))
BUILD_TYPE="$BUILD_TYPE GTK"
2006-11-07 14:29:05 +00:00
2006-12-01 13:52:44 +00:00
if test "x$enable_systray" = "xyes"; then
ENABLE_SYSTRAY_GTK="TRUE"
BUILD_TYPE="$BUILD_TYPE SYSTRAY_GTK"
fi
2004-10-27 15:14:53 +00:00
2007-08-02 13:58:57 +00:00
AC_MSG_CHECKING([whether to enable DBUS support])
if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_dbus" = "yes"; then
ENABLE_DBUS="TRUE"
AC_MSG_RESULT([yes])
PKG_CHECK_MODULES( DBUS, dbus-glib-1 >= 0.70 )
else
AC_MSG_RESULT([no])
fi
2008-07-31 12:44:41 +00:00
AC_MSG_CHECKING([whether to enable GIO support])
if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_gio" = "yes"; then
2008-11-10 15:06:12 +00:00
if test "$ENABLE_GNOMEVFS" = "TRUE" ; then
AC_MSG_ERROR([please use --enable-gio only together with --disable-gnome-vfs.])
fi
2008-07-31 12:44:41 +00:00
ENABLE_GIO="TRUE"
AC_MSG_RESULT([yes])
PKG_CHECK_MODULES( GIO, gio-2.0 )
else
AC_MSG_RESULT([no])
fi
2007-05-25 13:35:07 +00:00
fi
2004-10-27 15:14:53 +00:00
fi
2008-07-31 12:44:41 +00:00
AC_SUBST(ENABLE_GIO)
2007-08-02 13:58:57 +00:00
AC_SUBST(ENABLE_DBUS)
2006-11-07 14:29:05 +00:00
AC_SUBST(ENABLE_SYSTRAY_GTK)
2004-10-27 15:14:53 +00:00
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
2006-02-28 09:41:27 +00:00
dnl ===================================================================
2008-11-30 07:56:43 +00:00
dnl Check whether the Cairo libraries are available.
2006-02-28 09:41:27 +00:00
dnl ===================================================================
ENABLE_CAIRO=""
2008-11-30 07:56:43 +00:00
BUILD_PIXMAN=""
SYSTEM_CAIRO=""
2006-02-28 09:41:27 +00:00
2008-11-30 07:56:43 +00:00
if test "$test_cairo" = "yes"; then
2006-02-28 09:41:27 +00:00
2008-11-30 07:56:43 +00:00
AC_MSG_CHECKING([whether to use cairo])
2006-02-28 09:41:27 +00:00
if test "x$enable_cairo" != "xno" ; then
2008-11-30 07:56:43 +00:00
ENABLE_CAIRO="TRUE"
AC_MSG_RESULT([yes])
AC_MSG_CHECKING([which cairo to use])
if test -n "$with_system_cairo" -o -n "$with_system_libs" && \
test "$with_system_cairo" != "no"; then
AC_MSG_RESULT([external])
SYSTEM_CAIRO=YES
PKG_CHECK_MODULES( CAIRO, cairo >= 1.0.2 )
if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$ENABLE_FONTCONFIG" != "TRUE" ; then
AC_MSG_ERROR([Cairo library requires fontconfig.])
fi
if test "$with_system_xrender_headers" = "yes"; then
AC_MSG_CHECKING([whether Xrender.h defines PictStandardA8])
AC_TRY_RUN([
2006-04-20 12:34:04 +00:00
#include <X11/extensions/Xrender.h>
int main(int argc, char **argv) {
#ifdef PictStandardA8
return 0;
#else
return 1;
#endif
}
2008-07-31 12:44:41 +00:00
], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR([no, X headers too old.])])
2008-11-30 07:56:43 +00:00
fi
else
BUILD_TYPE="$BUILD_TYPE CAIRO"
dnl === compiler fails on pixman with 64bit architectures...===
if test "$build_cpu" != "x86_64"; then
BUILD_PIXMAN=YES
fi
AC_MSG_RESULT([internal])
fi
2006-02-28 09:41:27 +00:00
else
2008-11-30 07:56:43 +00:00
AC_MSG_RESULT([no])
2006-02-28 09:41:27 +00:00
fi
fi
AC_SUBST(ENABLE_CAIRO)
2008-11-30 07:56:43 +00:00
AC_SUBST(BUILD_PIXMAN)
2006-02-28 09:41:27 +00:00
AC_SUBST(SYSTEM_CAIRO)
AC_SUBST(CAIRO_CFLAGS)
AC_SUBST(CAIRO_LIBS)
2007-12-12 12:24:44 +00:00
dnl ===================================================================
dnl Check whether the OpenGL libraries are available
dnl ===================================================================
2009-02-19 13:21:10 +00:00
AC_MSG_CHECKING([whether to build the OpenGL Transitions component])
2007-12-12 12:24:44 +00:00
ENABLE_OPENGL=
if test "x$enable_opengl" != "xno" ; then
AC_MSG_RESULT([yes])
AC_CHECK_HEADER(GL/gl.h, [],
[AC_MSG_ERROR([OpenGL headers not found])], [])
AC_CHECK_LIB(GL, main, [],
[AC_MSG_ERROR(libGL not installed or functional)], [])
AC_CHECK_LIB(GLU, main, [],
[AC_MSG_ERROR(libGLU not installed or functional)], [])
ENABLE_OPENGL=TRUE
else
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_OPENGL)
2009-06-29 15:15:41 +02:00
AC_MSG_CHECKING([whether to build extra presenter ui])
if test -n "$enable_presenter_extra_ui" -a "$enable_presenter_extra_ui" != "no"; then
AC_MSG_RESULT([yes])
ENABLE_PRESENTER_EXTRA_UI=YES
else
AC_MSG_RESULT([no])
ENABLE_PRESENTER_EXTRA_UI=NO
fi
AC_SUBST(ENABLE_PRESENTER_EXTRA_UI)
2007-12-12 12:24:44 +00:00
AC_MSG_CHECKING([whether to build the Presentation Minimizer extension])
2008-07-31 12:44:41 +00:00
if test -n "$enable_minimizer" -a "$enable_minimizer" != "no"; then
2007-12-12 12:24:44 +00:00
AC_MSG_RESULT([yes])
2008-07-31 12:44:41 +00:00
ENABLE_MINIMIZER=YES
2008-04-08 14:18:15 +00:00
else
2008-07-30 13:38:17 +00:00
AC_MSG_RESULT([no])
2008-07-31 12:44:41 +00:00
ENABLE_MINIMIZER=NO
2008-04-03 17:02:26 +00:00
fi
2008-07-31 12:44:41 +00:00
AC_SUBST(ENABLE_MINIMIZER)
AC_MSG_CHECKING([whether to build the Presenter Screen extension])
2009-01-21 17:47:03 +00:00
if test -n "$enable_presenter_console" -a "$enable_presenter_screen" != "no"; then
2008-07-31 12:44:41 +00:00
AC_MSG_RESULT([yes])
ENABLE_PRESENTER_SCREEN=YES
else
AC_MSG_RESULT([no])
ENABLE_PRESENTER_SCREEN=NO
fi
AC_SUBST(ENABLE_PRESENTER_SCREEN)
AC_MSG_CHECKING([whether to build the PDF Import extension])
2008-09-01 08:53:29 +00:00
if test -n "$enable_pdfimport" -a "$enable_pdfimport" != "no"; then
2008-07-31 12:44:41 +00:00
AC_MSG_RESULT([yes])
ENABLE_PDFIMPORT=YES
2008-10-10 13:02:43 +00:00
dnl ===================================================================
dnl Check for system poppler
dnl ===================================================================
AC_MSG_CHECKING([which pdf backend to use])
if test -n "$with_system_poppler" -o -n "$with_system_libs" && \
2009-01-21 17:47:03 +00:00
test "$with_system_poppler" != "no"; then
2008-10-10 13:02:43 +00:00
AC_MSG_RESULT([external])
SYSTEM_POPPLER=YES
PKG_CHECK_MODULES( POPPLER, poppler >= 0.8.0 )
else
AC_MSG_RESULT([internal])
SYSTEM_POPPLER=NO
BUILD_TYPE="$BUILD_TYPE XPDF"
2009-01-21 17:47:03 +00:00
AC_MSG_CHECKING([for xpdf module])
if test -d ./xpdf; then
AC_MSG_RESULT([OK])
else
AC_MSG_ERROR([not existing. get it (did you get the -extensions tarball?)])
fi
2008-10-10 13:02:43 +00:00
fi
2008-07-31 12:44:41 +00:00
else
2009-01-21 17:47:03 +00:00
AC_MSG_RESULT([no])
ENABLE_PDFIMPORT=NO
2008-07-31 12:44:41 +00:00
fi
AC_SUBST(ENABLE_PDFIMPORT)
2008-10-10 13:02:43 +00:00
AC_SUBST(SYSTEM_POPPLER)
AC_SUBST(POPPLER_CFLAGS)
AC_SUBST(POPPLER_LIBS)
2008-07-31 12:44:41 +00:00
2009-01-21 17:47:03 +00:00
if test "$ENABLE_PRESENTER_SCREEN" = "YES" -o "$ENABLE_MINIMIZER" = "YES" -o "$ENABLE_PDFIMPORT" = "YES"; then
AC_MSG_CHECKING([for sdext module])
if test -d ./sdext; then
AC_MSG_RESULT([OK])
else
AC_MSG_ERROR([not existing. get it (did you get the -extensions tarball?)])
fi
BUILD_TYPE="$BUILD_TYPE SDEXT"
fi
AC_MSG_CHECKING([whether to build the Wiki Publisher extension])
if test -n "$enable_wiki_publisher" -a "$enable_wiki_publisher" != "no" && test "$WITH_JAVA" != "no"; then
2008-07-31 12:44:41 +00:00
AC_MSG_RESULT([yes])
2009-01-21 17:47:03 +00:00
AC_MSG_CHECKING([for swext module])
if test -d ./swext; then
AC_MSG_RESULT([OK])
else
AC_MSG_ERROR([not existing. get it (did you get the -extensions tarball?)])
fi
2008-07-31 12:44:41 +00:00
ENABLE_MEDIAWIKI=YES
BUILD_TYPE="$BUILD_TYPE SWEXT"
else
AC_MSG_RESULT([no])
ENABLE_MEDIAWIKI=NO
fi
AC_SUBST(ENABLE_MEDIAWIKI)
2010-06-22 17:07:12 +02:00
if test "$ENABLE_MEDIAWIKI" = "YES"; then
2008-07-31 12:44:41 +00:00
AC_MSG_CHECKING([which Servlet API Jar to use])
if test -n "$with_system_servlet_api"; then
AC_MSG_RESULT([external])
SYSTEM_SERVLETAPI=YES
if test -z "$SERVLETAPI_JAR"; then
SERVLETAPI_JAR=/usr/share/java/servlet-api.jar
fi
AC_CHECK_FILE($SERVLETAPI_JAR, [],
[AC_MSG_ERROR(servlet-api.jar not found.)], [])
else
AC_MSG_RESULT([internal])
SYSTEM_SERVLETAPI=NO
BUILD_TYPE="$BUILD_TYPE TOMCAT"
fi
fi
AC_SUBST(SYSTEM_SERVLETAPI)
AC_SUBST(SERVLETAPI_JAR)
2008-04-03 17:02:26 +00:00
2007-12-12 12:24:44 +00:00
AC_MSG_CHECKING([whether to build the Report Builder extension])
2009-01-21 17:47:03 +00:00
if test -n "$enable_report_builder" -a "$enable_report_builder" != "no" && test "$WITH_JAVA" != "no"; then
2007-12-12 12:24:44 +00:00
AC_MSG_RESULT([yes])
2009-01-21 17:47:03 +00:00
ENABLE_REPORTBUILDER=YES
2009-03-04 15:27:10 +00:00
AC_MSG_CHECKING([for reportbuilder module])
if test -d ./reportbuilder; then
AC_MSG_RESULT([OK])
else
AC_MSG_ERROR([not existing. get it (did you get the -extensions tarball?)])
fi
2007-12-12 12:24:44 +00:00
AC_MSG_CHECKING([which jfreereport libs to use])
2010-06-22 17:07:12 +02:00
if test "$with_system_jfreereport" = "yes"; then
2007-12-12 12:24:44 +00:00
SYSTEM_JFREEREPORT=YES
2008-11-10 15:06:12 +00:00
AC_MSG_RESULT([external])
if test -z $SAC_JAR; then
SAC_JAR=/usr/share/java/sac.jar
fi
AC_CHECK_FILE($SAC_JAR, [],
[AC_MSG_ERROR(sac.jar not found.)], [])
if test -z $LIBXML_JAR; then
2009-03-04 15:27:10 +00:00
AC_CHECK_FILE(/usr/share/java/libxml-1.0.0.jar,
[ LIBXML_JAR=/usr/share/java/libxml-1.0.0.jar ],
2008-11-10 15:06:12 +00:00
[
AC_CHECK_FILE(/usr/share/java/libxml.jar,
[ LIBXML_JAR=/usr/share/java/libxml.jar ],
[AC_MSG_ERROR(libxml.jar replacement not found.)]
)
]
)
else
2007-12-12 12:24:44 +00:00
AC_CHECK_FILE($LIBXML_JAR, [],
2008-11-10 15:06:12 +00:00
[AC_MSG_ERROR(libxml.jar not found.)], [])
fi
if test -z $FLUTE_JAR; then
2009-03-04 15:27:10 +00:00
AC_CHECK_FILE(/usr/share/java/flute-1.3.0.jar,
[ FLUTE_JAR=/usr/share/java/flute-1.3.0.jar ],
2008-11-10 15:06:12 +00:00
[
AC_CHECK_FILE(/usr/share/java/flute.jar,
[ FLUTE_JAR=/usr/share/java/flute.jar ],
2009-03-04 15:27:10 +00:00
[ AC_MSG_ERROR(flute-1.3.0.jar replacement not found.)]
2008-11-10 15:06:12 +00:00
)
]
)
else
2007-12-12 12:24:44 +00:00
AC_CHECK_FILE($FLUTE_JAR, [],
2009-03-04 15:27:10 +00:00
[AC_MSG_ERROR(flute-1.3.0.jar not found.)], [])
2008-11-10 15:06:12 +00:00
fi
if test -z $JFREEREPORT_JAR; then
2009-03-04 15:27:10 +00:00
AC_CHECK_FILE(/usr/share/java/flow-engine-0.9.2.jar,
[ JFREEREPORT_JAR=/usr/share/java/flow-engine-0.9.2.jar ],
2008-11-10 15:06:12 +00:00
[
2009-03-04 15:27:10 +00:00
AC_CHECK_FILE(/usr/share/java/flow-engine.jar,
[ JFREEREPORT_JAR=/usr/share/java/flow-engine.jar ],
2008-11-10 15:06:12 +00:00
[AC_MSG_ERROR(jfreereport.jar replacement not found.)]
)
]
)
else
2007-12-12 12:24:44 +00:00
AC_CHECK_FILE($JFREEREPORT_JAR, [],
2008-11-10 15:06:12 +00:00
[AC_MSG_ERROR(jfreereport.jar not found.)], [])
fi
if test -z $LIBLAYOUT_JAR; then
2009-03-04 15:27:10 +00:00
AC_CHECK_FILE(/usr/share/java/liblayout-0.2.9.jar,
[ LIBLAYOUT_JAR=/usr/share/java/liblayout-0.2.9.jar ],
2008-11-10 15:06:12 +00:00
[
AC_CHECK_FILE(/usr/share/java/liblayout.jar,
[ LIBLAYOUT_JAR=/usr/share/java/liblayout.jar ],
[AC_MSG_ERROR(liblayout.jar replacement not found.)]
)
]
)
else
2007-12-12 12:24:44 +00:00
AC_CHECK_FILE($LIBLAYOUT_JAR, [],
2008-11-10 15:06:12 +00:00
[AC_MSG_ERROR(liblayout.jar not found.)], [])
fi
if test -z $LIBLOADER_JAR; then
2009-03-04 15:27:10 +00:00
AC_CHECK_FILE(/usr/share/java/libloader-1.0.0.jar,
[ LIBLOADER_JAR=/usr/share/java/libloader-1.0.0.jar ],
2008-11-10 15:06:12 +00:00
[
AC_CHECK_FILE(/usr/share/java/libloader.jar,
[ LIBLOADER_JAR=/usr/share/java/libloader.jar ],
[AC_MSG_ERROR(libloader.jar replacement not found.)]
)
]
)
else
2007-12-12 12:24:44 +00:00
AC_CHECK_FILE($LIBLOADER_JAR, [],
2008-11-10 15:06:12 +00:00
[AC_MSG_ERROR(libloader.jar not found.)], [])
fi
if test -z $LIBFORMULA_JAR; then
2009-03-04 15:27:10 +00:00
AC_CHECK_FILE(/usr/share/java/libformula-0.2.0.jar,
[ LIBFORMULA_JAR=/usr/share/java/libformula-0.2.0.jar ],
2008-11-10 15:06:12 +00:00
[
AC_CHECK_FILE(/usr/share/java/libformula.jar,
[ LIBFORMULA_JAR=/usr/share/java/libformula.jar ],
[AC_MSG_ERROR(libformula.jar replacement not found.)]
)
]
)
else
2007-12-12 12:24:44 +00:00
AC_CHECK_FILE($LIBFORMULA_JAR, [],
2008-11-10 15:06:12 +00:00
[AC_MSG_ERROR(libformula.jar not found.)], [])
fi
if test -z $LIBREPOSITORY_JAR; then
2009-03-04 15:27:10 +00:00
AC_CHECK_FILE(/usr/share/java/librepository-1.0.0.jar,
[ LIBREPOSITORY_JAR=/usr/share/java/librepository-1.0.0.jar ],
2008-11-10 15:06:12 +00:00
[
AC_CHECK_FILE(/usr/share/java/librepository.jar,
[ LIBREPOSITORY_JAR=/usr/share/java/librepository.jar ],
[AC_MSG_ERROR(librepository.jar replacement not found.)]
)
]
)
else
2007-12-12 12:24:44 +00:00
AC_CHECK_FILE($LIBREPOSITORY_JAR, [],
2008-11-10 15:06:12 +00:00
[AC_MSG_ERROR(librepository.jar not found.)], [])
fi
if test -z $LIBFONTS_JAR; then
2009-03-04 15:27:10 +00:00
AC_CHECK_FILE(/usr/share/java/libfonts-1.0.0.jar,
[ LIBFONTS_JAR=/usr/share/java/libfonts-1.0.0.jar ],
2008-11-10 15:06:12 +00:00
[
AC_CHECK_FILE(/usr/share/java/libfonts.jar,
[ LIBFONTS_JAR=/usr/share/java/libfonts.jar ],
[AC_MSG_ERROR(libfonts.jar replacement not found.)]
)
]
)
else
2007-12-12 12:24:44 +00:00
AC_CHECK_FILE($LIBFONTS_JAR, [],
2008-11-10 15:06:12 +00:00
[AC_MSG_ERROR(libfonts.jar not found.)], [])
fi
2009-03-04 15:27:10 +00:00
if test -z $LIBSERIALIZER_JAR; then
AC_CHECK_FILE(/usr/share/java/libserializer-1.0.0.jar,
[ LIBSERIALIZER_JAR=/usr/share/java/libserializer-1.0.0.jar ],
2008-11-10 15:06:12 +00:00
[
2009-03-04 15:27:10 +00:00
AC_CHECK_FILE(/usr/share/java/libserializer.jar,
[ LIBSERIALIZER_JAR=/usr/share/java/libserializer.jar ],
[AC_MSG_ERROR(libserializer.jar replacement not found.)]
2008-11-10 15:06:12 +00:00
)
]
)
else
2009-03-04 15:27:10 +00:00
AC_CHECK_FILE($LIBSERIALIZER_JAR, [],
[AC_MSG_ERROR(libserializer.jar not found.)], [])
fi
if test -z $LIBBASE_JAR; then
AC_CHECK_FILE(/usr/share/java/libbase-1.0.0.jar,
[ LIBBASE_JAR=/usr/share/java/libbase-1.0.0.jar ],
[
AC_CHECK_FILE(/usr/share/java/libbase.jar,
[ LIBBASE_JAR=/usr/share/java/libbase.jar ],
[AC_MSG_ERROR(libbase.jar replacement not found.)]
)
]
)
else
AC_CHECK_FILE($LIBBASE_JAR, [],
[AC_MSG_ERROR(libbase.jar not found.)], [])
2008-11-10 15:06:12 +00:00
fi
2007-12-12 12:24:44 +00:00
else
AC_MSG_RESULT([internal])
2009-01-21 17:47:03 +00:00
AC_MSG_CHECKING([for jfreereport module])
if test -d ./jfreereport; then
AC_MSG_RESULT([OK])
else
AC_MSG_ERROR([not existing. get it (did you get the -extensions tarball?)])
fi
2007-12-12 12:24:44 +00:00
SYSTEM_JFREEREPORT=NO
BUILD_TYPE="$BUILD_TYPE JFREEREPORT"
fi
2009-03-04 15:27:10 +00:00
BUILD_TYPE="$BUILD_TYPE REPORTBUILDER"
2007-12-12 12:24:44 +00:00
else
AC_MSG_RESULT([no])
2009-01-21 17:47:03 +00:00
ENABLE_REPORTBUILDER=NO
2007-12-12 12:24:44 +00:00
SYSTEM_JFREEREPORT=NO
fi
2009-01-21 17:47:03 +00:00
AC_SUBST(ENABLE_REPORTBUILDER)
2007-12-12 12:24:44 +00:00
AC_SUBST(SYSTEM_JFREEREPORT)
AC_SUBST(SAC_JAR)
AC_SUBST(LIBXML_JAR)
AC_SUBST(FLUTE_JAR)
AC_SUBST(JFREEREPORT_JAR)
2009-03-04 15:27:10 +00:00
AC_SUBST(LIBBASE_JAR)
2007-12-12 12:24:44 +00:00
AC_SUBST(LIBLAYOUT_JAR)
AC_SUBST(LIBLOADER_JAR)
AC_SUBST(LIBFORMULA_JAR)
AC_SUBST(LIBREPOSITORY_JAR)
AC_SUBST(LIBFONTS_JAR)
2009-03-04 15:27:10 +00:00
AC_SUBST(LIBSERIALIZER_JAR)
# this has to be here because both the wiki publisher and the SRB use
# commons-logging
if test "$ENABLE_MEDIAWIKI" = "YES" -o "$ENABLE_REPORTBUILDER" = "YES"; then
AC_MSG_CHECKING([which Apache commons-* libs to use])
if test "$with_system_apache_commons" = "yes"; then
2009-11-19 20:45:36 +00:00
SYSTEM_APACHE_COMMONS=YES
AC_MSG_RESULT([external])
2009-03-04 15:27:10 +00:00
if test "$ENABLE_MEDIAWIKI" = "YES"; then
2009-11-19 20:45:36 +00:00
if test -z $COMMONS_CODEC_JAR; then
AC_CHECK_FILE(/usr/share/java/commons-codec-1.3.jar,
[ COMMONS_CODEC_JAR=/usr/share/java/commons-codec-1.3.jar ],
[
AC_CHECK_FILE(/usr/share/java/commons-codec.jar,
2010-04-16 15:28:46 +01:00
[ COMMONS_CODEC_JAR=/usr/share/java/commons-codec.jar ],
2009-11-19 20:45:36 +00:00
[AC_MSG_ERROR(commons-codec.jar replacement not found.)]
)
]
)
else
AC_CHECK_FILE($COMMONS_CODEC_JAR, [],
[AC_MSG_ERROR(commons-codec.jar not found.)], [])
fi
if test -z $COMMONS_LANG_JAR; then
AC_CHECK_FILE(/usr/share/java/commons-lang-2.3.jar,
[ COMMONS_LANG_JAR=/usr/share/java/commons-lang-2.3.jar ],
[
AC_CHECK_FILE(/usr/share/java/commons-lang.jar,
[ COMMONS_LANG_JAR=/usr/share/java/commons-lang.jar ],
[AC_MSG_ERROR(commons-lang.jar replacement not found.)]
)
]
)
else
AC_CHECK_FILE($COMMONS_LANG_JAR, [],
[AC_MSG_ERROR(commons-lang.jar not found.)], [])
fi
if test -z $COMMONS_HTTPCLIENT_JAR; then
AC_CHECK_FILE(/usr/share/java/commons-httpclient-3.1.jar,
[ COMMONS_HTTPCLIENT_JAR=/usr/share/java/commons-httpclient-3.1.jar ],
[
AC_CHECK_FILE(/usr/share/java/commons-httpclient.jar,
[ COMMONS_HTTPCLIENT_JAR=/usr/share/java/commons-httpclient.jar ],
[AC_MSG_ERROR(commons-httpclient.jar replacement not found.)]
)
]
)
else
AC_CHECK_FILE($COMMONS_HTTPCLIENT_JAR, [],
[AC_MSG_ERROR(commons-httpclient.jar not found.)], [])
fi
2009-03-04 15:27:10 +00:00
fi
if test "$ENABLE_MEDIAWIKI" = "YES" -o "$ENABLE_REPORTBUILDER" = "YES"; then
2009-11-19 20:45:36 +00:00
if test -z $COMMONS_LOGGING_JAR; then
AC_CHECK_FILE(/usr/share/java/commons-logging-1.1.1.jar,
[ COMMONS_LOGGING_JAR=/usr/share/java/commons-logging-1.1.1.jar ],
[
AC_CHECK_FILE(/usr/share/java/commons-logging.jar,
[ COMMONS_LOGGING_JAR=/usr/share/java/commons-logging.jar ],
[AC_MSG_ERROR(commons-logging.jar replacement not found.)]
)
]
)
else
AC_CHECK_FILE($COMMONS_LOGGING_JAR, [],
[AC_MSG_ERROR(commons-logging.jar not found.)], [])
fi
2009-03-04 15:27:10 +00:00
fi
else
2009-11-19 20:45:36 +00:00
AC_MSG_RESULT([internal])
SYSTEM_APACHE_COMMONS=NO
BUILD_TYPE="$BUILD_TYPE APACHE_COMMONS TOMCAT"
2009-03-04 15:27:10 +00:00
fi
fi
AC_SUBST(SYSTEM_APACHE_COMMONS)
AC_SUBST(COMMONS_CODEC_JAR)
AC_SUBST(COMMONS_LANG_JAR)
AC_SUBST(COMMONS_HTTPCLIENT_JAR)
AC_SUBST(COMMONS_LOGGING_JAR)
2007-12-12 12:24:44 +00:00
2004-10-27 15:14:53 +00:00
dnl ===================================================================
dnl Check whether the Qt and KDE libraries are available.
dnl ===================================================================
KDE_CFLAGS=""
KDE_LIBS=""
2005-04-11 07:52:24 +00:00
MOC="moc"
2004-10-27 15:14:53 +00:00
if test "$test_kde" = "yes" -a "$ENABLE_KDE" = "TRUE" ; then
dnl Search paths for Qt and KDE
2006-04-20 12:34:04 +00:00
if test "$build_cpu" != "x86_64" ; then
qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib/qt3/include /usr/lib/qt/include /usr/share/qt3/include $x_includes"
qt_libdirs="$QTLIB /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib $x_libraries"
else
qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib64/qt3/include /usr/lib64/qt/include /usr/share/qt3/include /usr/lib/qt3/include /usr/lib/qt/include $x_includes"
qt_libdirs="$QTLIB /usr/local/qt/lib64 /usr/lib64/qt /usr/lib64 /usr/X11R6/lib64/X11/qt /usr/X11R6/lib64/qt /usr/lib64/qt3/lib64 /usr/lib64/qt/lib64 /usr/share/qt3/lib64 /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib $x_libraries"
fi
2004-10-27 15:14:53 +00:00
if test -n "$QTDIR" ; then
qt_incdirs="$QTDIR/include $qt_incdirs"
2006-04-20 12:34:04 +00:00
if test "$build_cpu" != "x86_64" ; then
qt_libdirs="$QTDIR/lib $qt_libdirs"
else
qt_libdirs="$QTDIR/lib64 $QTDIR/lib $qt_libdirs"
fi
fi
if test "$build_cpu" != "x86_64" ; then
2009-08-07 10:16:34 +00:00
kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /opt/kde3/include /opt/kde/include $x_includes"
kde_libdirs="/usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib/kde3 /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/kde/lib /usr/X11R6/kde/lib /usr/lib $x_libraries"
2006-04-20 12:34:04 +00:00
else
2009-08-07 10:16:34 +00:00
kde_incdirs="/usr/lib64/kde/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /opt/kde3/include /opt/kde/include $x_includes"
kde_libdirs="/usr/lib64/kde/lib64 /usr/local/kde/lib64 /usr/kde/lib64 /usr/lib64/kde /usr/lib64/kde3 /usr/X11R6/lib64 /usr/local/lib64 /opt/kde3/lib64 /opt/kde/lib64 /usr/X11R6/kde/lib64 /usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib/kde3 /usr/lib /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/kde/lib /usr/X11R6/kde/lib /usr/lib64 $x_libraries"
2004-10-27 15:14:53 +00:00
fi
if test -n "$KDEDIR" ; then
kde_incdirs="$KDEDIR/include $kde_incdirs"
2006-04-20 12:34:04 +00:00
if test "$build_cpu" != "x86_64" ; then
kde_libdirs="$KDEDIR/lib $kde_libdirs"
else
kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib $kde_libdirs"
fi
2004-10-27 15:14:53 +00:00
fi
dnl What to test
qt_test_include="qstyle.h"
2005-01-25 11:42:58 +00:00
qt_test_library="libqt-mt.so"
2004-10-27 15:14:53 +00:00
kde_test_include="ksharedptr.h"
2007-07-31 12:09:29 +00:00
kde_test_library="libkdeui.so"
2004-10-27 15:14:53 +00:00
dnl Check for Qt headers
AC_MSG_CHECKING([for Qt headers])
qt_incdir="no"
for kde_check in $qt_incdirs ; do
if test -r "$kde_check/$qt_test_include" ; then
qt_incdir="$kde_check"
break
fi
done
AC_MSG_RESULT([$qt_incdir])
2005-02-11 16:58:49 +00:00
if test "x$qt_incdir" = "xno" ; then
2004-10-27 15:14:53 +00:00
AC_MSG_ERROR([Qt headers not found. Please specify the root of
your Qt installation by exporting QTDIR before running "configure".])
fi
2005-01-25 11:42:58 +00:00
dnl Check for Qt libraries
AC_MSG_CHECKING([for Qt libraries])
qt_libdir="no"
for qt_check in $qt_libdirs ; do
if test -r "$qt_check/$qt_test_library" ; then
qt_libdir="$qt_check"
break
fi
done
AC_MSG_RESULT([$qt_libdir])
2005-02-11 16:58:49 +00:00
if test "x$qt_libdir" = "xno" ; then
2005-01-25 11:42:58 +00:00
AC_MSG_ERROR([Qt libraries not found. Please specify the root of
your Qt installation by exporting QTDIR before running "configure".])
fi
2009-08-07 10:16:34 +00:00
dnl Check for Meta Object Compiler
2005-04-11 07:52:24 +00:00
AC_PATH_PROG( MOC, moc, no, [$QTDIR/bin:$PATH] )
if test "$MOC" = "no" ; then
AC_MSG_ERROR([Qt Meta Object Compiler not found. Please specify
the root of your Qt installation by exporting QTDIR before running "configure".])
2009-08-07 10:16:34 +00:00
fi
2004-10-27 15:14:53 +00:00
dnl Check for KDE headers
AC_MSG_CHECKING([for KDE headers])
kde_incdir="no"
for kde_check in $kde_incdirs ; do
if test -r "$kde_check/$kde_test_include" ; then
kde_incdir="$kde_check"
break
fi
done
AC_MSG_RESULT([$kde_incdir])
2005-02-11 16:58:49 +00:00
if test "x$kde_incdir" = "xno" ; then
2004-10-27 15:14:53 +00:00
AC_MSG_ERROR([KDE headers not found. Please specify the root of
your KDE installation by exporting KDEDIR before running "configure".])
fi
dnl Check for KDE libraries
AC_MSG_CHECKING([for KDE libraries])
kde_libdir="no"
for kde_check in $kde_libdirs ; do
if test -r "$kde_check/$kde_test_library" ; then
kde_libdir="$kde_check"
break
fi
done
AC_MSG_RESULT([$kde_libdir])
2005-02-11 16:58:49 +00:00
if test "x$kde_libdir" = "xno" ; then
2004-10-27 15:14:53 +00:00
AC_MSG_ERROR([KDE libraries not found. Please specify the root of
your KDE installation by exporting KDEDIR before running "configure".])
fi
dnl Set the variables
2005-12-19 16:09:30 +00:00
KDE_CFLAGS="-I$qt_incdir -I$kde_incdir -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT"
2005-01-25 11:42:58 +00:00
KDE_LIBS="-L$kde_libdir -L$qt_libdir -lkdeui -lkdecore -lqt-mt"
2004-10-27 15:14:53 +00:00
fi
AC_SUBST(KDE_CFLAGS)
AC_SUBST(KDE_LIBS)
2005-04-11 07:52:24 +00:00
AC_SUBST(MOC)
2004-10-27 15:14:53 +00:00
2006-03-22 08:25:04 +00:00
dnl ===================================================================
2009-08-07 10:16:34 +00:00
dnl KDE4 Integration
dnl ===================================================================
KDE4_CFLAGS=""
KDE4_LIBS=""
MOC4="moc"
if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
2009-09-18 14:30:31 +00:00
qt_incdirs="$QT4INC $QT4DIR /usr/include/qt4 /usr/include $x_includes"
qt_libdirs="$QT4LIB /usr/lib $x_libraries"
2009-08-07 10:16:34 +00:00
kde_incdirs="/usr/include $x_includes"
kde_libdirs="/usr/lib $x_libraries"
2010-06-22 17:07:12 +02:00
if test "$build_cpu" = "x86_64" ; then
2009-08-07 10:16:34 +00:00
qt_libdirs="$qt_libdirs /usr/lib64/qt4 /usr/lib64/qt /usr/lib64"
kde_libdirs="$kde_libdirs /usr/lib64 /usr/lib64/kde4"
fi
2009-09-18 14:30:31 +00:00
if test -n "$KDE4DIR" ; then
kde_incdirs="$KDE4DIR/include $kde_incdirs"
if test "$build_cpu" != "x86_64" ; then
kde_libdirs="$KDE4DIR/lib $kde_libdirs"
else
kde_libdirs="$KDE4DIR/lib64 $KDE4DIR/lib $kde_libdirs"
fi
fi
2009-08-07 10:16:34 +00:00
qt_test_include="Qt/qobject.h"
qt_test_library="libQtCore.so"
kde_test_include="ksharedptr.h"
kde_test_library="libkdeui.so"
AC_MSG_CHECKING([for Qt4 headers])
qt_header_dir="no"
for inc_dir in $qt_incdirs ; do
if test -r "$inc_dir/$qt_test_include" ; then
qt_header_dir="$inc_dir"
break
fi
done
AC_MSG_RESULT([$qt_header_dir])
if test "x$qt_header_dir" = "xno" ; then
2009-09-18 14:30:31 +00:00
AC_MSG_ERROR([Qt4 headers not found. Please specify the root of your Qt4 installation by exporting QT4DIR before running "configure".])
2009-08-07 10:16:34 +00:00
fi
AC_MSG_CHECKING([for Qt4 libraries])
qt_lib_dir="no"
for lib_dir in $qt_libdirs ; do
if test -r "$lib_dir/$qt_test_library" ; then
qt_lib_dir="$lib_dir"
break
fi
done
AC_MSG_RESULT([$qt_lib_dir])
if test "x$qt_lib_dir" = "xno" ; then
2009-09-18 14:30:31 +00:00
AC_MSG_ERROR([Qt4 libraries not found. Please specify the root of your Qt4 installation by exporting QT4DIR before running "configure".])
2009-08-07 10:16:34 +00:00
fi
dnl Check for Meta Object Compiler
2009-09-18 14:30:31 +00:00
AC_PATH_PROG( MOC4, moc, no, [$PATH:$QT4DIR/bin] )
2009-08-07 10:16:34 +00:00
if test "$MOC4" = "no" ; then
AC_MSG_ERROR([Qt Meta Object Compiler not found. Please specify
2009-09-18 14:30:31 +00:00
the root of your Qt installation by exporting QT4DIR before running "configure".])
2009-08-07 10:16:34 +00:00
fi
dnl Check for KDE4 headers
AC_MSG_CHECKING([for KDE4 headers])
kde_incdir="no"
for kde_check in $kde_incdirs ; do
if test -r "$kde_check/$kde_test_include" ; then
kde_incdir="$kde_check"
break
fi
done
AC_MSG_RESULT([$kde_incdir])
if test "x$kde_incdir" = "xno" ; then
2009-09-18 14:30:31 +00:00
AC_MSG_ERROR([KDE4 headers not found. Please specify the root of your KDE4 installation by exporting KDE4DIR before running "configure".])
2009-08-07 10:16:34 +00:00
fi
dnl Check for KDE4 libraries
AC_MSG_CHECKING([for KDE4 libraries])
kde_libdir="no"
for kde_check in $kde_libdirs ; do
if test -r "$kde_check/$kde_test_library" ; then
kde_libdir="$kde_check"
break
fi
done
AC_MSG_RESULT([$kde_libdir])
if test "x$kde_libdir" = "xno" ; then
2009-09-18 14:30:31 +00:00
AC_MSG_ERROR([KDE4 libraries not found. Please specify the root of your KDE4 installation by exporting KDE4DIR before running "configure".])
2009-08-07 10:16:34 +00:00
fi
KDE4_CFLAGS="`pkg-config --cflags QtCore` `pkg-config --cflags QtGui` -I$kde_incdir -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT"
KDE4_LIBS="-L$kde_libdir -L$qt_lib_dir -lkdeui -lkdecore -lQtCore -lQtGui"
fi
AC_SUBST(KDE4_CFLAGS)
AC_SUBST(KDE4_LIBS)
AC_SUBST(MOC4)
dnl ===================================================================
2006-03-22 08:25:04 +00:00
dnl Test for the enabling the lockdown pieces
dnl ===================================================================
AC_MSG_CHECKING([whether to enable the lockdown pieces])
ENABLE_LOCKDOWN=""
if test -n "$enable_lockdown" && test "$enable_lockdown" != "no"; then
ENABLE_LOCKDOWN=YES
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_LOCKDOWN)
2005-06-09 13:14:33 +00:00
dnl ===================================================================
dnl Test whether to include Evolution 2 support
dnl ===================================================================
AC_MSG_CHECKING([whether to enable evolution 2 support])
if test "$enable_evolution2" = "yes" -o "$enable_evolution2" = "TRUE"; then
AC_MSG_RESULT([yes])
PKG_CHECK_MODULES(GOBJECT, gobject-2.0)
ENABLE_EVOAB2="TRUE"
else
ENABLE_EVOAB2=""
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_EVOAB2)
AC_SUBST(GOBJECT_CFLAGS)
AC_SUBST(GOBJECT_LIBS)
2005-01-05 11:09:48 +00:00
dnl ===================================================================
2006-01-10 13:33:05 +00:00
dnl Test whether to include KDE AB support
dnl ===================================================================
2006-02-03 16:35:08 +00:00
AC_MSG_CHECKING([whether to enable KDE address book support])
2006-01-10 13:33:05 +00:00
if test "$enable_kdeab" = "yes" && test "$enable_kde" = "yes"; then
AC_MSG_RESULT([yes])
2007-12-12 12:24:44 +00:00
AC_LANG_PUSH([C++])
2006-01-10 13:33:05 +00:00
save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS $KDE_CFLAGS"
2006-02-03 16:35:08 +00:00
AC_MSG_CHECKING([whether KDE is between 3.2 and 3.6])
2006-01-10 13:33:05 +00:00
AC_TRY_RUN([
#include <kdeversion.h>
int main(int argc, char **argv) {
2006-02-03 16:35:08 +00:00
if (KDE_VERSION_MAJOR == 3 && 2 <= KDE_VERSION_MINOR && KDE_VERSION_MINOR <= 6) return 0;
2006-01-10 13:33:05 +00:00
else return 1;
}
2006-02-03 16:35:08 +00:00
], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR([KDE version too old or too recent, please use another version of KDE or disable KDE address book support])])
2006-01-10 13:33:05 +00:00
CXXFLAGS=$save_CXXFLAGS
2007-12-12 12:24:44 +00:00
AC_LANG_POP([C++])
2006-01-10 13:33:05 +00:00
ENABLE_KAB=TRUE
else
AC_MSG_RESULT([no])
ENABLE_KAB=
fi
AC_SUBST(ENABLE_KAB)
2005-08-30 08:34:09 +00:00
dnl ===================================================================
dnl Test whether to include MathMLDTD
dnl ===================================================================
AC_MSG_CHECKING([whether to include MathMLDTD])
if test -n "$enable_mathmldtd"; then
if test "$enable_mathmldtd" = "no"; then
AC_MSG_RESULT([no])
SCPDEFS="$SCPDEFS -DWITHOUT_MATHMLDTD"
else
AC_MSG_RESULT([yes])
BUILD_TYPE="$BUILD_TYPE MATHMLDTD"
fi
else
AC_MSG_RESULT([no])
SCPDEFS="$SCPDEFS -DWITHOUT_MATHMLDTD"
fi
2003-12-17 14:01:13 +00:00
dnl ===================================================================
dnl Test whether to include fonts
dnl ===================================================================
2010-04-23 09:09:53 +02:00
AC_MSG_CHECKING([whether to include third-party fonts])
2003-12-17 14:01:13 +00:00
if test "$with_fonts" != "no" ; then
AC_MSG_RESULT([yes])
WITH_FONTS=YES
2010-04-23 09:09:53 +02:00
BUILD_TYPE="$BUILD_TYPE MORE_FONTS"
2003-12-17 14:01:13 +00:00
else
AC_MSG_RESULT([no])
WITH_FONTS=NO
SCPDEFS="$SCPDEFS -DWITHOUT_FONTS"
fi
AC_SUBST(WITH_FONTS)
2005-08-30 08:34:09 +00:00
2006-12-01 13:17:02 +00:00
dnl ===================================================================
dnl Test whether to include ppds
dnl ===================================================================
2006-02-10 10:17:38 +00:00
AC_MSG_CHECKING([whether to include PPDs])
2006-12-01 13:17:02 +00:00
if test "$with_ppds" != "no"; then
AC_MSG_RESULT([yes])
else
2006-02-17 08:24:42 +00:00
AC_MSG_RESULT([no])
2006-02-10 10:17:38 +00:00
WITHOUT_PPDS=YES
SCPDEFS="$SCPDEFS -DWITHOUT_PPDS"
fi
AC_SUBST(WITHOUT_PPDS)
2006-12-01 13:17:02 +00:00
dnl ===================================================================
dnl Test whether to include afms
dnl ===================================================================
2006-02-10 10:17:38 +00:00
AC_MSG_CHECKING([whether to include AFMs])
2006-12-01 13:17:02 +00:00
if test "$with_afms" != "no"; then
AC_MSG_RESULT([yes])
else
2006-02-17 08:24:42 +00:00
AC_MSG_RESULT([no])
2006-02-10 10:17:38 +00:00
WITHOUT_AFMS=YES
SCPDEFS="$SCPDEFS -DWITHOUT_AFMS"
fi
AC_SUBST(WITHOUT_AFMS)
2006-12-01 13:17:02 +00:00
AC_SUBST(SCPDEFS)
2006-02-10 10:17:38 +00:00
2004-09-09 10:22:06 +00:00
AC_MSG_CHECKING([whether and how to use Xinerama])
if test "$_os" = "Darwin"; then
USE_XINERAMA=YES
2005-01-25 11:42:58 +00:00
XINERAMA_LINK=dynamic
2004-09-09 10:22:06 +00:00
AC_MSG_RESULT([yes])
2005-02-11 16:58:49 +00:00
elif test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then
2005-01-25 11:42:58 +00:00
if test -e "$XLIB/libXinerama.so" -a -e "$XLIB/libXinerama.a"; then
2007-12-12 12:24:44 +00:00
# we have both versions, let the user decide but use the dynamic one
2004-09-09 10:22:06 +00:00
# per default
USE_XINERAMA=YES
2007-12-12 12:24:44 +00:00
if test -z "$with_static_xinerama" -o -n "$with_system_libs"; then
2004-09-09 10:22:06 +00:00
XINERAMA_LINK=dynamic
else
XINERAMA_LINK=static
fi
2006-07-19 08:52:02 +00:00
elif test -e "$XLIB/libXinerama.so" -a ! -e "$XLIB/libXinerama.a"; then
2004-09-09 10:22:06 +00:00
# we have only the dynamic version
USE_XINERAMA=YES
XINERAMA_LINK=dynamic
2005-01-25 11:42:58 +00:00
elif test -e "$XLIB/libXinerama.a"; then
2004-09-09 10:22:06 +00:00
# static version
2005-03-07 16:28:33 +00:00
if echo $build_cpu | grep -E 'i[[3456]]86' 2>/dev/null >/dev/null; then
2004-09-09 10:22:06 +00:00
USE_XINERAMA=YES
XINERAMA_LINK=static
else
2005-03-08 15:31:52 +00:00
USE_XINERAMA=NO
2004-09-09 10:22:06 +00:00
XINERAMA_LINK=none
fi
else
# no Xinerama
USE_XINERAMA=NO
XINERAMA_LINK=none
fi
if test "$USE_XINERAMA" = "YES"; then
AC_MSG_RESULT([yes, with $XINERAMA_LINK linking])
AC_CHECK_HEADER(X11/extensions/Xinerama.h, [],
[AC_MSG_ERROR(Xinerama header not found.)], [])
2005-08-05 14:05:56 +00:00
XINERAMA_EXTRA_LIBS="-L$XLIB -lXext"
if test "$_os" = "FreeBSD"; then
2006-07-19 08:52:02 +00:00
XINERAMA_EXTRA_LIBS="$XINERAMA_EXTRA_LIBS -lXt"
fi
if test "$_os" = "Linux"; then
XINERAMA_EXTRA_LIBS="$XINERAMA_EXTRA_LIBS -ldl"
2005-08-05 14:05:56 +00:00
fi
2004-09-09 10:22:06 +00:00
AC_CHECK_LIB(Xinerama, XineramaIsActive, [],
2005-08-05 14:05:56 +00:00
[AC_MSG_ERROR(Xinerama not functional?)], [$XINERAMA_EXTRA_LIBS])
2004-09-09 10:22:06 +00:00
else
AC_MSG_RESULT([no, libXinerama not found or wrong architecture.])
fi
else
AC_MSG_RESULT([no])
fi
AC_SUBST(USE_XINERAMA)
AC_SUBST(XINERAMA_LINK)
2002-08-27 09:31:11 +00:00
dnl ===================================================================
dnl Test for the presence of Ant and that it works
dnl ===================================================================
2005-01-25 15:54:53 +00:00
if test "$SOLAR_JAVA" != ""; then
2002-08-27 09:31:11 +00:00
ANT_HOME=; export ANT_HOME
2004-12-10 16:49:41 +00:00
WITH_ANT_HOME=; export WITH_ANT_HOME
2002-08-27 09:31:11 +00:00
if test -z "$with_ant_home"; then
2007-11-02 12:05:03 +00:00
AC_PATH_PROGS(ANT, [jakarta-ant ant ant.sh ant.bat ant.cmd])
2002-08-27 09:31:11 +00:00
else
2008-07-31 12:44:41 +00:00
if test "$_os" = "WINNT"; then
with_ant_home=`cygpath -u "$with_ant_home"`
fi
2007-11-02 12:05:03 +00:00
AC_PATH_PROGS(ANT, [jakarta-ant ant ant.sh ant.bat ant.cmd],,$with_ant_home/bin:$PATH)
2004-12-10 16:49:41 +00:00
WITH_ANT_HOME=$with_ant_home
2008-07-31 12:44:41 +00:00
ANT_HOME=$with_ant_home
2002-08-27 09:31:11 +00:00
fi
if test -z "$ANT"; then
2004-03-17 08:33:26 +00:00
AC_MSG_ERROR([Ant not found - Make sure it's in the path or use --with-ant-home])
2002-08-27 09:31:11 +00:00
else
2004-03-17 08:33:26 +00:00
# resolve relative or absolute symlink
while test -h "$ANT"; do
a_cwd=`pwd`
a_basename=`basename "$ANT"`
a_script=`ls -l "$ANT" | sed "s/.*${a_basename} -> //g"`
cd "`dirname "$ANT"`"
cd "`dirname "$a_script"`"
ANT="`pwd`"/"`basename "$a_script"`"
cd "$a_cwd"
done
2007-11-02 12:05:03 +00:00
if test "$_os" = "OS2"; then
ANT_HOME=`echo $ANT | $SED -n "s/\/bin\/ant.*\$//p"`
export ANT_HOME
fi
2002-08-27 09:31:11 +00:00
AC_MSG_CHECKING([if $ANT works])
cat > conftest.java << EOF
public class conftest {
int testmethod(int a, int b) {
return a + b;
}
}
EOF
cat > conftest.xml << EOF
<project name="conftest" default="conftest">
<target name="conftest">
<javac srcdir="." includes="conftest.java">
</javac>
</target>
</project>
EOF
2005-03-15 08:11:24 +00:00
oldJAVA_HOME=$JAVA_HOME
2006-07-05 20:12:33 +00:00
if test "$JAVACISGCJ" = "yes"; then
2005-03-15 08:11:24 +00:00
JAVA_HOME=; export JAVA_HOME
2005-01-25 15:54:53 +00:00
ant_cmd="$ANT -Dbuild.compiler=gcj -buildfile conftest.xml 1>&2"
else
ant_cmd="$ANT -buildfile conftest.xml 1>&2"
fi
2002-08-27 09:31:11 +00:00
AC_TRY_EVAL(ant_cmd)
if test $? = 0 && test -f ./conftest.class ; then
AC_MSG_RESULT([Ant works])
2004-12-10 16:49:41 +00:00
if test -z "$WITH_ANT_HOME"; then
2007-12-12 13:54:33 +00:00
ANT_HOME=`$ANT -diagnostics | $EGREP "ant.home :" | $SED -e "s#ant.home : ##g"`
if test -z "$ANT_HOME"; then
ANT_HOME=`echo $ANT | $SED -n "s/\/bin\/ant.*\$//p"`
fi
2004-12-10 16:49:41 +00:00
else
ANT_HOME="$WITH_ANT_HOME"
fi
2002-08-27 09:31:11 +00:00
else
echo "configure: Ant test failed" >&5
cat conftest.java >&5
cat conftest.xml >&5
AC_MSG_WARN([Ant does not work - Some Java projects will not build!])
2004-02-04 11:32:51 +00:00
ANT_HOME=""
2003-04-28 16:02:04 +00:00
echo "Ant does not work - Some Java projects will not build!" >>warn
2002-08-27 09:31:11 +00:00
fi
2005-03-15 08:11:24 +00:00
JAVA_HOME=$oldJAVA_HOME
2002-08-27 09:31:11 +00:00
rm -f conftest* core core.* *.core
fi
2003-08-18 13:53:58 +00:00
if test -z "$ANT_HOME"; then
ANT_HOME="NO_ANT_HOME"
fi
AC_SUBST(ANT_HOME)
2002-08-27 09:31:11 +00:00
2004-02-04 11:32:51 +00:00
dnl Checking for ant.jar
if test "$ANT_HOME" != "NO_ANT_HOME"; then
AC_MSG_CHECKING([Ant lib directory])
if test -f $ANT_HOME/lib/ant.jar; then
ANT_LIB="$ANT_HOME/lib"
else
if test -f $ANT_HOME/ant.jar; then
ANT_LIB="$ANT_HOME"
else
if test -f /usr/share/java/ant.jar; then
ANT_LIB=/usr/share/java
else
2005-01-25 15:54:53 +00:00
if test -f /usr/share/ant-core/lib/ant.jar; then
ANT_LIB=/usr/share/ant-core/lib
else
2007-01-30 07:25:14 +00:00
if test -f $ANT_HOME/lib/ant/ant.jar; then
ANT_LIB="$ANT_HOME/lib/ant"
else
AC_MSG_ERROR([Ant libraries not found!])
fi
2005-01-25 15:54:53 +00:00
fi
2004-02-04 11:32:51 +00:00
fi
fi
fi
AC_MSG_RESULT([Ant lib directory found.])
fi
AC_SUBST(ANT_LIB)
2004-03-17 08:33:26 +00:00
fi
2002-08-27 09:31:11 +00:00
2010-06-22 16:25:28 +02:00
ant_minver=1.6.0
# update for more extensions...
if test "$ENABLE_MEDIAWIKI" = "YES"; then
ant_minver=1.7.0
fi
ant_minminor1=`echo $ant_minver | cut -d"." -f2`
AC_MSG_CHECKING([whether ant is >= $ant_minver])
ant_version=`$ANT -version | $AWK '{ print $4; }'`
ant_version_major=`echo $ant_version | cut -d. -f1`
ant_version_minor=`echo $ant_version | cut -d. -f2`
echo "configure: ant_version $ant_version " >&5
echo "configure: ant_version_major $ant_version_major " >&5
echo "configure: ant_version_minor $ant_version_minor " >&5
if test "$ant_version_major" -ge "2"; then
AC_MSG_RESULT([yes, $ant_version])
elif test "$ant_version_major" = "1" && test "$ant_version_minor" -ge "$ant_minminor1"; then
AC_MSG_RESULT([yes, $ant_version])
else
AC_MSG_ERROR([no, you need at least ant >= $ant_minver])
fi
2008-07-31 12:44:41 +00:00
if test "$ENABLE_MEDIAWIKI" = "YES"; then
AC_MSG_CHECKING([whether ant supports mapper type="regexp"])
rm -rf confdir
mkdir confdir
cat > conftest.java << EOF
public class conftest {
int testmethod(int a, int b) {
return a + b;
}
}
EOF
cat > conftest.xml << EOF
<project name="conftest" default="conftest">
<target name="conftest" depends="copytest">
<javac srcdir="." includes="conftest.java">
</javac>
</target>
<target name="copytest">
<copy todir="confdir">
<fileset dir="confdir" includes="**/*.abc" casesensitive="yes"/>
<filterset/>
<mapper type="regexp" from="^(.*[/\\])foo([/\\].*)" to="\1baa\2"/>
</copy>
</target>
</project>
EOF
if test "$JAVACISGCJ" = "yes"; then
JAVA_HOME=; export JAVA_HOME
ant_cmd="$ANT -Dbuild.compiler=gcj -buildfile conftest.xml 1>&2"
else
ant_cmd="$ANT -buildfile conftest.xml 1>&2"
fi
AC_TRY_EVAL(ant_cmd)
if test $? = 0 && test -f ./conftest.class ; then
AC_MSG_RESULT([yes])
rm -rf confdir
else
echo "configure: Ant test failed" >&5
cat conftest.java >&5
cat conftest.xml >&5
rm -rf confdir
AC_MSG_ERROR([no. Did you install ant-apache-regexp?])
fi
fi
rm -f conftest* core core.* *.core
2010-02-15 18:28:00 +01:00
OOO_JUNIT_JAR=
if test "$SOLAR_JAVA" != "" && test "$with_junit" != "no"; then
AC_MSG_CHECKING([for JUnit 4])
if test "$with_junit" == "yes"; then
2010-02-16 11:13:43 +01:00
if test -e /usr/share/java/junit4.jar; then
OOO_JUNIT_JAR=/usr/share/java/junit4.jar
else
OOO_JUNIT_JAR=/usr/share/java/junit.jar
fi
2010-02-15 18:28:00 +01:00
else
OOO_JUNIT_JAR=$with_junit
fi
2010-02-23 15:18:48 +01:00
if test "$_os" = "WINNT"; then
OOO_JUNIT_JAR=`cygpath -m "$OOO_JUNIT_JAR"`
fi
2010-02-23 14:29:23 +01:00
"$JAVA_HOME/bin/jar" tf "$OOO_JUNIT_JAR" 2>&5 | \
grep org/junit/Before.class > /dev/null 2>&5
2010-02-16 11:13:43 +01:00
if test $? -eq 0; then
2010-02-15 18:28:00 +01:00
AC_MSG_RESULT([$OOO_JUNIT_JAR])
else
2010-02-16 11:13:43 +01:00
AC_MSG_RESULT([no])
2010-04-23 16:29:26 +02:00
AC_MSG_ERROR([cannot find JUnit 4 jar; please install one in the default
location (/usr/share/java), specify its pathname via
--with-junit=..., or disable it via --without-junit])
2010-02-15 18:28:00 +01:00
fi
fi
AC_SUBST(OOO_JUNIT_JAR)
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([which languages to be built])
WITH_LANG="$with_lang"
if test -z "$WITH_LANG"; then
AC_MSG_RESULT([en-US])
else
AC_MSG_RESULT([$WITH_LANG])
fi
AC_SUBST(WITH_LANG)
2006-11-01 12:49:31 +00:00
AC_MSG_CHECKING([which languages have poor help localizations])
WITH_POOR_HELP_LOCALIZATIONS="$with_poor_help_localizations"
if test -z "$WITH_POOR_HELP_LOCALIZATIONS"; then
AC_MSG_RESULT([none])
else
AC_MSG_RESULT([$WITH_POOR_HELP_LOCALIZATIONS])
fi
AC_SUBST(WITH_POOR_HELP_LOCALIZATIONS)
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([which dictionaries to include])
if test -z "$with_dict"; then
WITH_DICT=,ALL,
AC_MSG_RESULT([ALL])
else
WITH_DICT=","$with_dict","
AC_MSG_RESULT([$with_dict])
fi
AC_SUBST(WITH_DICT)
2007-06-11 13:00:24 +00:00
AC_MSG_CHECKING([for additional 'intro' bitmaps])
INTRO_BITMAPS=
if test -z "$with_intro_bitmaps" -o "$with_intro_bitmaps" = "no" ; then
INTRO_BITMAPS=
AC_MSG_RESULT([none])
else
for bitmap in `echo $with_intro_bitmaps | tr ',' ' '` ; do
case "$bitmap" in
*.bmp) ;;
*) bitmap= ; AC_MSG_WARN([Intro bitmaps should be .bmp files!]) ;;
esac
if test -n "$bitmap" ; then
INTRO_BITMAPS="$INTRO_BITMAPS $bitmap"
fi
done
AC_MSG_RESULT([$INTRO_BITMAPS])
fi
AC_SUBST(INTRO_BITMAPS)
AC_MSG_CHECKING([for additional 'about' bitmaps])
ABOUT_BITMAPS=
if test -z "$with_about_bitmaps" -o "$with_about_bitmaps" = "no" ; then
ABOUT_BITMAPS=
AC_MSG_RESULT([none])
else
for bitmap in `echo $with_about_bitmaps | tr ',' ' '` ; do
case "$bitmap" in
*.bmp) ;;
*) bitmap= ; AC_MSG_WARN([About bitmaps should be .bmp files!]) ;;
esac
if test -n "$bitmap" ; then
ABOUT_BITMAPS="$ABOUT_BITMAPS $bitmap"
fi
done
AC_MSG_RESULT([$ABOUT_BITMAPS])
fi
AC_SUBST(ABOUT_BITMAPS)
OOO_VENDOR=
AC_MSG_CHECKING([for vendor])
if test -z "$with_vendor" -o "$with_vendor" = "no" ; then
AC_MSG_RESULT([not set])
else
OOO_VENDOR="$with_vendor"
AC_MSG_RESULT([$OOO_VENDOR])
fi
AC_SUBST(OOO_VENDOR)
2007-06-27 12:59:09 +00:00
UNIXWRAPPERNAME=
AC_MSG_CHECKING([for UNIX wrapper name])
if test -z "$with_unix_wrapper" -o "$with_unix_wrapper" = "no" -o "$with_unix_wrapper" = "yes" ; then
AC_MSG_RESULT([not set])
else
UNIXWRAPPERNAME="$with_unix_wrapper"
AC_MSG_RESULT([$UNIXWRAPPERNAME])
fi
AC_SUBST(UNIXWRAPPERNAME)
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([whether to statically link to Gtk])
2005-04-11 07:52:24 +00:00
if test -n "$enable_static_gtk" && test "$enable_static_gtk" != "no"; then
2005-01-25 11:42:58 +00:00
ENABLE_STATIC_GTK="TRUE"
AC_MSG_RESULT([yes])
else
ENABLE_STATIC_GTK="FALSE"
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_STATIC_GTK)
2008-03-06 11:20:20 +00:00
AC_MSG_CHECKING([whether to use layout dialogs])
if test -n "$enable_layout" && test "$enable_layout" != "no"; then
ENABLE_LAYOUT="TRUE"
AC_MSG_RESULT([yes])
else
ENABLE_LAYOUT="FALSE"
AC_MSG_RESULT([no])
fi
AC_SUBST(ENABLE_LAYOUT)
2008-07-31 12:44:41 +00:00
# ===================================================================
# De- or increase default verbosity of build process
# ===================================================================
AC_MSG_CHECKING([build verbosity])
if test -n "$enable_verbose"; then
2010-06-22 17:07:12 +02:00
if test "$enable_verbose" = "yes"; then
2008-07-31 12:44:41 +00:00
VERBOSE="TRUE"
AC_MSG_RESULT([high])
fi
2010-06-22 17:07:12 +02:00
if test "$enable_verbose" = "no"; then
2008-07-31 12:44:41 +00:00
VERBOSE="FALSE"
AC_MSG_RESULT([low])
fi
else
AC_MSG_RESULT([not set])
fi
AC_SUBST(VERBOSE)
2000-09-18 15:18:56 +00:00
dnl ===================================================================
dnl Setting up the environment.
dnl ===================================================================
echo "********************************************************************"
echo "* *"
echo "* Setting up the build environment variables. *"
echo "* *"
echo "********************************************************************"
if test -z "$COMPATH"; then
2003-04-28 16:02:04 +00:00
AC_MSG_ERROR([No compiler found.])
2000-09-18 15:18:56 +00:00
fi
2003-08-18 13:53:58 +00:00
AC_SUBST(COMPATH)
2005-01-25 11:42:58 +00:00
AC_MSG_CHECKING([solver path])
if test -z "$with_local_solver"; then
LOCAL_SOLVER="DEFAULT"
AC_MSG_RESULT([default])
2003-06-12 09:54:51 +00:00
else
2005-01-25 11:42:58 +00:00
LOCAL_SOLVER=$with_local_solver
AC_MSG_RESULT([$with_local_solver])
2003-06-12 09:54:51 +00:00
fi
2005-01-25 11:42:58 +00:00
AC_SUBST(LOCAL_SOLVER)
2000-09-18 15:18:56 +00:00
2005-02-11 14:50:22 +00:00
AC_SUBST(BUILD_TYPE)
2005-03-07 16:28:33 +00:00
# make sure config.guess is +x; we execute config.guess, so it has to be so;
2009-01-21 17:47:03 +00:00
chmod +x ./config.guess
2005-03-01 16:23:02 +00:00
2009-01-21 17:47:03 +00:00
AC_OUTPUT([set_soenv Makefile])
2002-08-27 09:31:11 +00:00
dnl Executing the set_soenv script to setup the environment variables.
chmod a+x set_soenv
2000-09-18 15:18:56 +00:00
if test -z "$enable_check_only"; then
2002-08-27 09:31:11 +00:00
'./set_soenv'
2000-09-18 15:18:56 +00:00
else
echo
echo Test Complete
echo No environment file will be generated
echo
num_warnings=`wc -l warn`
_num=`echo $num_warnings | $AWK '{ print $1 }'`
if test $_num -gt 0; then
echo The following warning\(s\) were generated by configure
echo ----------------------------------------------------
echo
cat warn
echo
else
echo There were no warnings
fi
echo
fi