summaryrefslogtreecommitdiff
path: root/m4
AgeCommit message (Collapse)AuthorFilesLines
2022-09-26Simplify FONTCONFIG and FREETYPE testsJan-Marek Glogowski1-4/+8
Add an additional option to libo_CHECK_SYSTEM_MODULE to select the default external lookup. Don't "if" the libo_CHECK_SYSTEM_MODULE, so the AC_SUBST are always run, but set the test_* flags instead. Change-Id: Ie0a1204b34d596fdd57a7ee770418f91bf8c5d00 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126464 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140050 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-09-26m4: Add test flag to libo_CHECK_SYSTEM_MODULEJan-Marek Glogowski1-12/+18
Automatically adds an ENABLE_* AC_SUBST and test for a disabled test via test_*, like ENABLE_EPUBGEN and test_libepubgen. Change-Id: Ifaf27d4d1193f41de6291ab70d973fe151f36b2e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126169 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140049 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-09-26Temporarily revert "tdf#147250 configure: default to --with-system-nss on..."Tor Lillqvist1-1/+1
I am going to back-port some other commits that interfere with this, and will then re-apply this as part of that. This reverts commit 16ad0a66321530b185138af3a5b01b38c572e396. Change-Id: I4c1f84aef7eecbb4c69e91a4221ae7daac76f5de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140048 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-05-25tdf#147250 configure: default to --with-system-nss on LinuxMichael Stahl1-1/+1
NSS is very ABI compatible and part of current LSB 5.0 and so it should just work to use the one from the system, i'm not aware of a Linux that doesn't ship it. There used to be some feature patch in external/nss but this was removed years ago, now it just contains build fixes. Problems can occur if a mixture of system and bundled NSS libraries is loaded, if first an old version .so is loaded and then newer version .so depends on it but can't find some required symbol. See for example: https://www.mail-archive.com/libreoffice@lists.freedesktop.org/msg287043.html Another issue is that e.g. Fedora ships libnsspem.so in the nss-pem package, which may cause trouble in ASAN builds, where the internal NSS is built to call __asan_poison_memory_region but the system libnss-pem.so doesn't call __asan_unpoison_memory_region so we get: ==2568944==ERROR: AddressSanitizer: use-after-poison on address 0x61d0019afab0 WRITE of size 192 at 0x61d0019afab0 thread T28 (utl::Moderator) 0 in __interceptor_memset.part.0 (instdir/program/soffice.bin+0x466460) 1 (/lib64/libnsspem.so+0x15f3d) 2 (/lib64/libnsspem.so+0x16185) 3 (/lib64/libnsspem.so+0x8a9b) 4 (/lib64/libnsspem.so+0xe13b) 5 in secmod_ModuleInit workdir/UnpackedTarball/nss/nss/lib/pk11wrap/pk11load.c:244:11 .. 21 in curl_easy_perform workdir/UnpackedTarball/curl/lib/easy.c:715:10 Also, with system NSS, things like p11-kit integration become responsibility of the OS. Change-Id: I50caedd46914dd5d6905c5d32d44a599cd78119e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120388 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> (cherry picked from commit 0028266e34a683b1650410cee65dac502e304c9f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134293 Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-10-29Fix macro "AC_HELP_STRING" is obsolete (m4)Julien Nabet1-1/+1
Change-Id: I0b19293d72f3428004ffc8fc7874420b0ff95bf3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124347 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-04-07Updated README.md files to represent current code / use Markdown formatHossein1-1/+3
Previously, all of the README files have been renamed to README.md and now, the contents of these files were changed to use Markdown format. Other than format inconsistency, some README.md files lacked information about modules, or were out of date. By using LibreOffice / OpenOffice wiki and other documentation websites, these files were updated. Now every README.md file has a title, and some description. The top-level README.md file is changed to add links to the modules. The result of processing the Markdown format README.md files can be seen at: https://docs.libreoffice.org/ Change-Id: Ic3b0c3c064a2498d6a435253b041df010cd7797a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113424 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-03-24Using .md extension/Markdown syntax for modules READMEHossein1-0/+0
Renaming all README files for all top level modules to README.md, applying no content change at this stage to be able to track history of the files. These files should be edited to use correct Markdown syntax later. Change-Id: I542fa3f3d32072156f16eaad2211a397cc212665 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112977 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2020-12-02Remove odd comment about MINGWSTRIP from m4/READMEStephan Bergmann1-2/+0
...which had been added with 4aed4f436cf8e4b0f3f034dfb1d1025b05a61f0a "add a README files", at a time when there was a m4/mingw.m4 file (even though that did not mention any "MINGWSTRIP") that has meanwhile been removed with 8646ab97dc37c0606b19057686bf3d610f9c15ee "Remove MinGW support" Change-Id: Icd94a9a971f425125a23b692a43f8a958ca3a2c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107078 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-09-02add -latomic configure check...Rene Engelhard1-0/+41
...in preparation for <https://gerrit.libreoffice.org/#/c/78380/> "Add -latomic to the end of Linux C++ linker command lines" (copied from https://github.com/zelcash/zelcash/blob/master/build-aux/m4/l_atomic.m4) Change-Id: I8879a72d730cc08a72c2d8b132ff9f5d2efe7b9f Reviewed-on: https://gerrit.libreoffice.org/78336 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-12-14Fix typosAndrea Gelmini1-1/+1
Change-Id: I09e511f35d32b25683811f3a39c833779f3b61fe Reviewed-on: https://gerrit.libreoffice.org/46370 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-08-18Fix typosAndrea Gelmini1-2/+2
Change-Id: I795059109e23800987cda6f04c58ab18c488ad07 Reviewed-on: https://gerrit.libreoffice.org/41242 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-04-28build boost::locale libraryCaolán McNamara1-0/+119
Change-Id: I40b89a0df483645fc743fb092d3d39ea682c510c Reviewed-on: https://gerrit.libreoffice.org/37060 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-02-10Remove MinGW supportStephan Bergmann1-90/+0
In OOo times, there'd originally been efforts to allow building on Windows with MinGW. Later, in LO times, this has been shifted to an attempt of cross- compiling for Windows on Linux. That attempt can be considered abandoned, and the relevant code rotting. Due to this heritage, there are now three kinds of MinGW-specific code in LO: * Code from the original OOo native Windows effort that is no longer relevant for the LO cross-compilation effort, but has never been removed properly. * Code from the original OOo native Windows effort that is re-purposed for the LO cross-compilation effort. * Code that has been added specifially for the LO cross-compilation effort. All three kinds of code are removed. (An unrelated, remaining use of MinGW is for --enable-build-unowinreg, utilizing --with-mingw-cross-compiler, MINGWCXX, and MINGWSTRIP.) Change-Id: I49daad8669b4cbe49fa923050c4a4a6ff7dda568 Reviewed-on: https://gerrit.libreoffice.org/34127 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-12-08Display a summary of fuzzing in command-line form at the end of configureTor Lillqvist1-2/+11
Makes it easier to reproduce a fuzzed configuration manually. Change-Id: Ief4df847f1f17c64607e6e5eaf402737bd50704b
2016-12-08Introduce configure option fuzzingTor Lillqvist1-0/+42
When --enable-fuzz-options is given, those --enable or --with options that are separately so marked, and have not been specified explicitly at the configure command line (i.e. typically from autogen.input), are randomly set to either yes or no. This functionality is useful to make sure configure options don't bit-rot by randomly exercising uncommon settings and combinations. To enable fuzzing for an option, use libo_FUZZ_ARG_WITH instead of AC_ARG_WITH, or libo_FUZZ_ARG_ENABLE instead of AC_ARG_ENABLE. Also handle two cases of incompatibilty of options discovered by using --enable-fuzz-options. In general using incompatible options should cause an AC_MSG_ERROR(), but when one of the options in question has been set by fuzzing, it's simplest to just reset it to the compatible value. Obviously this is highly experimental. Change-Id: I76d250c148892951a7fda25ba4164de8bc693a26
2016-08-24m4: make explicit what boost library we are not findingRiccardo Magliocchetti4-4/+4
Change-Id: Icd4e926a6e73ea1147419a9190d7888b6ac3e4c7 Reviewed-on: https://gerrit.libreoffice.org/28312 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
2016-03-08detect Boost.FilesystemDavid Tardon1-0/+118
Change-Id: I86c268f49f44bd1e208a9de781a16bf19450c64c
2016-02-04Pull newer m4/ax_boost_system.m4 from upstream.coypu1-4/+5
Does not require tac, which is not available on *BSD/OS X. Change-Id: I54c90e249fb99ce03cc2ff134f200de283159052 Reviewed-on: https://gerrit.libreoffice.org/22083 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-12-17add support for version detection of libsDavid Tardon1-0/+48
Change-Id: Id5f84306926b6c28bef0d213aba151d8834b7b2d
2015-11-04configure: filter -L/usr/lib etc. out of *_LIBSMichael Stahl1-0/+2
The goal is to avoid build breakage by pkg-config or whatever helpfully putting default paths like -L/usr/lib64 into *_LIBS, which is entirely useless since ld searches there anyway but may override other -L that occur later on the command line for LO bundled externals. On a Fedora 22 system, at least these variales were affected: CLUCENE_LIBS FIREBIRD_LIBS KDE4_LIBS POSTGRESQL_LIB BOOST_LDFLAGS Change-Id: Ie55f65c3ae29a125f16871d95ad8b716abf5c982 Reviewed-on: https://gerrit.libreoffice.org/19784 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-10-01Fix typosAndrea Gelmini1-1/+1
Change-Id: I04d1bc3a9f38ff7871d3192563cd1f649fdc6cea Reviewed-on: https://gerrit.libreoffice.org/18960 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-14create_tree.sh: Generate g-i filesPranav Kant1-0/+94
Change-Id: I1749b5b02018cfe6f85a13aed8de4b31a09788e3 Reviewed-on: https://gerrit.libreoffice.org/18494 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-08-21need to accept ppc64le as a lib64 using platform in ax_boost_base.m4Caolán McNamara1-1/+1
Change-Id: I86ef068661082addbd165629d3d6905695090a6b
2014-03-04add autoconf macro for Boost.IostreamsDavid Tardon1-0/+116
... fixing build with system boost Change-Id: I50eee3e349e99f751439893c577d66ebb46107c2
2014-02-27normalize values of WITH_EXTRA_EXTENSIONSMichael Stahl1-1/+1
Change-Id: I9f084a363bdeab800f0039f9be19d03225a1a8ce
2014-02-12fdo#74825: fix missing lcms2/libxslt/curl in installation setsMichael Stahl1-2/+2
The assumption that all configure variables had been normalized to TRUE/<empty> turned out not to hold; convert a bit more in that direction. (regression from 4af38b099c741c3676aefeb20c515913aaeed666) Change-Id: I2127c515e8a833a07c9b26ed9d693ce5a1853fe4
2013-10-04'ist' -> 'is' here and there.Jan Holesovsky1-1/+1
Change-Id: I0a463c38214b95582db2c7b3979367255426c14e
2013-06-10More systematic *_CFLAGS s/-I/-isystem/Stephan Bergmann1-0/+1
...to avoid compiler warnings in external headers. Change-Id: Ibd7fcb0400bfd8ffa49cc8db77956e443551ebb3
2013-05-24Revert "Rename Boost libraries when built internally to match conventions"Fridrich Štrba2-152/+1
This reverts commit 3aeecc525c76797801e9e2b24c2ebff6ac81adac.
2013-05-24Rename Boost libraries when built internally to match conventionsTor Lillqvist2-1/+152
The standard Boost convention is for them to be called libboost_date_time and libboost_system (with apropriate suffix then depending on type). Did not touch the libboostthread library we build for Windows. Add the ax_boost_thread.m4 file for completeness and possible use. Document where the ax_boost*.m4 files come from. Change-Id: Ib49bee71398d62c9760a1f8fd5c46be9f3400430
2013-05-23aarch64 will be a 64bit multilib platform tooCaolán McNamara1-1/+1
Change-Id: I6b0932ecd304e661e3331b22e6993b856b686982
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks1-22/+4
2013-04-13neon: honor --disable-openssl and use GNUTLSAndres Gomez1-0/+123
On --disable-openssl, the bundled neon library will link against GNUTLS + gcrypt instead of OpenSSL. Change-Id: I5b3f09cd1003aefde0478aaab026536c962212c4 Reviewed-on: https://gerrit.libreoffice.org/3330 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-10one variable to rule them allDavid Tardon1-24/+25
one variable to find them, one variable to deliver them all and into filelist put them, in $INSTDIR where the installer searches. Change-Id: I989f578f0ed6f9ef9167522249b36d95c15bfd1b
2013-02-27also move --enable swiches to m4/ for extensionsBjoern Michaelsen1-2/+6
Change-Id: I72df67fae5fd78cd9d3f69d4be218c866b4b881d
2013-02-25m4: improve help message of libo_CHECK_SYSTEM_MODULEMichael Stahl1-1/+1
Change-Id: I784823b27108671e6bb549f60725f21abd47451e
2013-02-24some more external check work on configure.acBjoern Michaelsen1-9/+7
- all in libo_PUBLISH_MODULE is affecting global state, so no need to separate - add in AC_ARG_WITH Change-Id: I609cd03c9208448e6883f5347da3019e0d3aea51 Reviewed-on: https://gerrit.libreoffice.org/2366 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-02-20m4: replace silly makefile modelinesMichael Stahl2-4/+6
Change-Id: I148941dfbf3c9c75cd07148b08646e85887846e1
2013-02-20configure: fix WPD/WPS/WPG when no explicit option given:Michael Stahl1-0/+2
Consistently set WPD_CFLAGS/WPD_LIBS etc. in that case, with luck not breaking anything else in the process due to newly set FOO_CFLAGS/LIBS. Change-Id: I56bc6b86821b77c0c376d06b629646ada1ea0339
2013-02-19Re-Revert "simplify external module check with macro" modulo expat/cluceneBjoern Michaelsen1-0/+30
This reverts commit 324d2f94749dfd94c7f09d1923310e145bb64deb. Change-Id: I0c1c3412554de2093c9c94de89ff74a89869fa6d
2013-02-19Revert "simplify external module check with macro"Fridrich Štrba1-30/+0
Reverting this because it breaks a lot of stuff This reverts commit a2dbcf1e723e082a76ad1a7ef275f693dab34c98.
2013-02-19simplify external module check with macroBjoern Michaelsen1-0/+30
- a >12.000 LOC configure.ac is more than enough for everybody - removing some 100 lines cant hurt - the SYSTEM_LIBCDR=$SYSTEM_CDR stuff should be removed in a later step, by renaming them in the build Change-Id: I5c065c5c341561258800a124b0fc1f40b3d59211
2013-02-18simplify extension logic in configureBjoern Michaelsen1-0/+23
Change-Id: I1b255f9da925501449d7a41ce5914595da582e40
2013-01-02use MINGW_SYSROOT consistentlyLuboš Luňák1-1/+1
Restore all cases to expect /mingw/ included in the path.
2012-12-31configure only looks in $MINGW_SYSROOTDavid Tardon1-2/+1
Change-Id: I8882525ae6ae24957d9e34fc1ab8d5525251889c
2012-11-23fdo#55435 orcus needs Boost.System with recent BoostDavid Tardon1-0/+120
Change-Id: I2df230e0ca6293131ceaf9211fb301165981ab86
2012-11-05cleanup README files.Michael Meeks1-1/+2
Convert DOS -> unix newlines. Cleanup and clarify several files.
2012-11-05add a README filesAlia Almusaireae1-0/+2
Change-Id: I4bd9a7d00df220e2a3deae3cc1b7b0f4a1098e24 Reviewed-on: https://gerrit.libreoffice.org/989 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2012-06-13better test for system boost date_time libDavid Tardon2-0/+379
This reverts commit 4c2e9fc655b6480ffc7f0feb5d07b8106b6b8e22. Change-Id: Iea84991ee689240fe6e6ddbc47f44b444f582dde
2012-06-06Revert "add configure check for date_time lib"Jan Holesovsky2-371/+0
This commit breaks MinGW builds; the m4 macros probably need some improvements there. This reverts commit 5ed17233908c7f87b08b0964b55e4504d964ed71.