summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
* AX_EXT: update to detect Altivec and VSX instructions on new machinesRafael de Lucena Valle2017-01-261-5/+30
|
* Find Java directories on recent macOS versionsGordon Byrnes2017-01-241-9/+12
| | | | | Find the Java directories within the Xcode bundle on macOS 10.8 and later.
* Add new macro AX_ADD_FORTIFY_SOURCEDavid Seifert2017-01-211-0/+53
|
* Merge pull request #103 from proski/socklen-werrorPeter Simons2017-01-171-2/+2
|\ | | | | AX_TYPE_SOCKLEN_T: fix "-Wall -Werror" compatibility
| * AX_TYPE_SOCKLEN_T: fix "-Wall -Werror" compatibilityPavel Roskin2016-12-241-2/+2
| | | | | | | | | | | | | | | | The len variable is unused, which causes a compile error resulting in a failure to detect socklen_t. Also fix a potential warning about implicit type conversion while initializing len.
* | ax_tls.m4: _Thread_local storage-class specifierHeinrich Schuchardt2017-01-171-2/+2
| | | | | | | | | | | | | | ISO/IEC 9899:2011 defines the _Thread_local storage-class specifier. We should test for it before testing for any pre C11 specifiers. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* | Add code to detect ThunderX to AX_GCC_ARCHFLAG.Alexey Kopytov2017-01-061-1/+17
| | | | | | | | | | | | Update AX_GCC_ARCHFLAG to detect ThunderX (an AArch64 CPU by Cavium) and set -march/-mcpu accordingly depending on the CPU generation and compiler support.
* | Added macro to detect .NET core <https://github.com/dotnet/core> version.Jens Geyer2016-12-271-0/+61
|/
* ax_prog_xsltproc: drop tabs from m4 source codePeter Simons2016-12-061-6/+6
|
* ax_prog_xsltproc: bump serial numberPeter Simons2016-12-061-1/+1
|
* ax_prog_xsltproc: improve portabilityJeremy C. Reed2016-12-061-1/+1
|
* ax_boost_thread.m4: bump serial numberPeter Simons2016-12-061-1/+1
|
* AX_BOOST_THREAD: support for more platformsMichael Truog2016-12-061-66/+80
| | | | | | | | | | | | | The current ax_boost_thread.m4 macro can fail on some platforms and this change improves its support. I don't remember the exact platforms that fail with the current version (without this patch), but I think Ubuntu 16.04.1 LTS on aarch64 had problems. I know it was a newer release of Ubuntu and possibly past FreeBSD usage, though I made these changes locally more than 1 year ago. This patch also changes whitespace because it was hard to discern the intended indentation in places (it appeared like previous authors didn't care). Submitted via <https://savannah.gnu.org/patch/index.php?9153>.
* cleanup Java macros (remove binary blobs)Michael Truog2016-12-063-114/+6
| | | | | | | | | | This patch removes opaque binary usage within the java macros. It is very disturbing that binary data was included in these macros. I confirmed that the binary data matched the comments, however, future changes could easily make them deviate, making it very easy to insert arbitrary source code into any project. I also removed usage of the -r flag from rm usage which didn't make sense.
* AX_GENERATE_CHANGELOG: pass --no-decorate to git-log by defaultMichael Catanzaro2016-12-061-2/+2
| | | | | Otherwise, if log.decorate is specified in git config, local ref names will wind up printed in the changelog.
* AX_BOOST_BASE: fix issue whereby --with-boost-libdir options were lostWilliam Price2016-12-061-2/+4
| | | | | | | If the macro AX_BOOST_BASE does not detect a simple "system" layout for boost, it tries to find it in versioned directories. Unfortunately, that path of logic set BOOST_LDFLAGS to null. Other parts of the code already check ac_boost_lib_path before altering BOOST_LDFLAGS, except for one place.
* AX_PKG_SWIG: add support for swig 3.0Peter Simons2016-12-061-3/+3
| | | | Suggested-by: keith.bostic@mongodb.com
* ax_code_coverage: remove lcov version checkKevin Locke2016-12-061-25/+3
| | | | | | | | | | | | | | | | | | The version check does not support the latest version of lcov (1.12). The history of this module[1][2][3][4] does not reveal a rationale for the check and its utility seems dubious. Rather than applying yet another temporary fix, remove the check. Note: The issue of version check removal was raised on autoconf-archive-maintainers[5] without response. 1. https://git.gnome.org/browse/gnome-common/log/macros2/gnome-code-coverage.m4 2. https://bugzilla.gnome.org/show_bug.cgi?id=606720 3. https://git.gnome.org/browse/glib/log/configure.ac 4. https://bugzilla.gnome.org/show_bug.cgi?id=501057 5. https://lists.gnu.org/archive/html/autoconf-archive-maintainers/2016-07/msg00000.html Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
* ax_code_coverage: avoid GNU Make extensionsKevin Locke2016-12-061-26/+30
| | | | | | | | | | | | | | ifeq/ifneq is a GNU Make extension which doesn't work with BSD Make and others, resulting in errors such as: Missing dependency operator Need an operator warning: duplicate script for target "ifeq" ignored Although it would be preferable to use the Automake conditionals (AM_CONDITIONAL) in the make rules, this does not appear to be possible within AC_SUBST content. Instead, build the rules using shell variable concatenation and only AC_SUBST the ones which should be used.
* CXX_COMPILE_STDCXX: Check alternative flags tooKrzesimir Nowak2016-12-061-20/+26
|
* CXX_COMPILE_STDCXX: Add checks for C++17 compilerKrzesimir Nowak2016-12-062-3/+452
|
* Add returns_nonnull to ax_gcc_func_attributes.m4Nick Gasson2016-11-281-1/+4
| | | | This was a recent addition to GCC
* ax_extend_srcdir: also accept absolute pathsMichael Stapelberg2016-11-161-2/+2
|
* ax_compiler_flags_ldflags: Fix options for macOS linkerPhilip Chimento2016-11-091-3/+20
| | | | | The linker on macOS does not understand --as-needed, and speaks --fatal-warnings with a slightly different accent.
* ax_extend_srcdir: avoid non-ASCII characters if possiblePeter Simons2016-10-061-2/+2
|
* ax_extend_srcdir: fix up formatting so the HTML and info renderers are happyPeter Simons2016-10-061-38/+41
|
* Add AX_EXTEND_SRCDIR macro.Michael Stapelberg2016-10-061-0/+83
| | | | Please refer to the file itself for documentation.
* ax_enable_builddir: require AC_CANONICAL_TARGETMichael Stapelberg2016-10-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Without AC_CANONICAL_TARGET, I get the following error when running ./configure: checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu mkdir: cannot create directory '': No such file or directory mkdir: cannot create directory '': No such file or directory ./configure: line 2470: /conftest.tmp: Permission denied configure: error: could not change to default builddir "./" With AC_CANONICAL_TARGET (either called explicitly in configure.ac, or required in AX_ENABLE_BUILDDIR), ./configure works as expected: checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu continue configure in default builddir "./x86_64-unknown-linux-gnu" ....exec /nix/store/nyj6xd7s1n1w8c0xdwk5ddhi7bjcyi9x-bash-4.3-p46/bin/bash .././configure "--srcdir=.." "--enable-builddir=x86_64-unknown-linux-gnu" "linux gnu" checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for gsed... sed […]
* Remove obsolete macros.Peter Simons2016-10-054-273/+0
|
* ax_define_sub_path: mark as obsoletePeter Simons2016-10-051-1/+6
| | | | See https://github.com/peti/autoconf-archive/pull/97 for rationale.
* Remove extraneous whitespace to make ifelse() workMichael Stapelberg2016-10-051-2/+2
|
* ax_compiler_flags_*: fix underquoting causing infinite recursionSimon McVittie2016-10-014-8/+8
| | | | | | | | | | | | | | | | | | | | | These macros would fail with infinite recursion if used twice for the same variable, for example AX_COMPILER_FLAGS_CFLAGS([WARN_CFLAGS], ... some options ...) AX_COMPILER_FLAGS_CFLAGS([WARN_CFLAGS], ... more options ...) In particular, invoking AX_COMPILER_FLAGS, followed by AX_COMPILER_FLAGS_CFLAGS with more "yes" options has this failure mode. This is because the first time through the macro, we define ax_warn_cflags_variable = "WARN_CFLAGS" as expected. The second time, because the first parameter is underquoted, its value is substituted before calling m4_define, so we inadvertently define WARN_CFLAGS = "WARN_CFLAGS". The next time WARN_CFLAGS is mentioned, attempts to expand it will recurse forever, because m4 does not special-case a macro that appears in its own expansion like cpp does. Signed-off-by: Simon McVittie <smcv@debian.org>
* Merge pull request #95 from smcv/ax-is-release-dash-versionPeter Simons2016-09-291-2/+13
|\ | | | | AX_IS_RELEASE: add dash-version policy
| * AX_IS_RELEASE: add dash-version policySimon McVittie2016-09-281-2/+13
| | | | | | | | | | | | | | This is particularly useful in conjunction with git-version-gen, as provided by gnulib. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* | AX_CODE_COVERAGE: Define CODE_COVERAGE_LIBSP. F. Chimento2016-09-261-2/+2
|/ | | | | The previous change seems to have defined LDFLAGS twice rather than LIBS and LDFLAGS.
* Updated OpenMP flag detection for latest Intel compilersNick Papior2016-09-231-4/+8
| | | | | | | - icc/ifort will deprecate -openmp in the future, -qopenmp will replace it. Signed-off-by: Nick Papior <nickpapior@gmail.com>
* ax_gcc_x86_cpu_supports: drop trailing blanksv2016.09.16Peter Simons2016-09-161-3/+3
|
* ax_gcc_builtin: add __builtin_bswap16Dag-Erling Smørgrav2016-09-161-1/+3
|
* Fix reference to LIBMYSQLCPPCONN_CXXFLAGSAndrew Stoltz2016-08-311-2/+9
|
* AX_CODE_COVERAGE: Rename CODE_COVERAGE_LDFLAGS to CODE_COVERAGE_LIBSPhilip Withnall2016-08-191-5/+13
| | | | | | | Since it’s supposed to be added to the Makefile’s target_LIBS variable, this is a lot clearer. Continue to support CODE_COVERAGE_LDFLAGS, but it’s deprecated.
* Merge pull request #89 from ptomato/ax-prog-gjs-2Peter Simons2016-08-191-6/+14
|\ | | | | ax_prog_gjs: Look in pkg-config as well as path
| * ax_prog_gjs: Look in pkg-config as well as pathPhilip Chimento2016-08-161-6/+14
| | | | | | | | | | | | This looks in pkg-config for the GJS executable, since the gjs-1.0 package provides it as a pkg-config variable. However, not all versions of GJS do, so we fall back to checking in the path.
* | AX_IS_RELEASE: Support out-of-tree buildsThomas Zimmermann2016-08-191-2/+2
| | | | | | | | Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
* | remove useless ppc64le trailing word in libsubdirsMichel Normand2016-08-011-2/+2
| | | | | | | | | | this is a typo correction of previous commit 1f9acf39e6b3 as per original patch from https://savannah.gnu.org/patch/index.php?8473
* | Add AX_LUAROCKS_ROCKReuben Thomas2016-07-271-0/+53
| |
* | AX_OPEN62541_PATH: set AM_DISTCHECK_CONFIGURE_FLAGSOlaf Mandel2016-06-241-3/+14
| | | | | | | | | | | | | | | | When configuring --with-open62541=<path>, the make distcheck target often failed because the open62541 library was not found on the system. So set the AM_DISTCHECK_CONFIGURE_FLAGS variable with the required values (absolute paths in case the user defined relative paths).
* | AX_OPEN62541_PATH: fix use of non-inst shared libOlaf Mandel2016-06-241-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the open62541 library is not installed and the shared library is to be used, the --with-open62541=<path> option to contigure setting CPPFLAGS and LDFLAGS is not enough: other checks by configure may compile test binaries with the library linked in and then try to execute then. The execution fails because of the not found shared library object and gives a wrong test result. Likewise, some make targets (like check) need to execute compiled binaries. So modify AX_OPEN62541_PATH() so it exports LD_LIBRARY_PATH with the absolute path of the build dir for the rest of the configure script to use and define a Makefile variable OPEN62541_LDPATH, which contains LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<abs_path_to_build>.
* | Merge pull request #81 from olaf-mandel/ax_check_open62541Peter Simons2016-06-153-0/+293
|\ \ | | | | | | Add AX_CHECK_OPEN62541_{H,LIB} macros
| * | Refactor open62541 macros into separate filesOlaf Mandel2016-06-154-218/+293
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split the macros from the ax_check_open62541.m4 file into multiple files and rename them: AX_CHECK_OPEN62541_H() -> AX_OPEN62541_CHECK_H() AX_CHECK_OPEN62541_LIB() -> AX_OPEN62541_CHECK_LIB() And add the new AX_OPEN62541_PATH(), which containes the shared functionality previously handled by both old AX_CHECK_* macros. Also add a forgotten feature promissed in the documentation: the --with-open62541-shared and --with-open62541-static options can be used to change the order in which the libraries are searched for.
| * | Add AX_CHECK_OPEN62541_{H,LIB} macrosOlaf Mandel2016-06-141-0/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These macros search for the header and library files for the open62541 library [1]. Support both the amalgamation header and the individual header file layout. Support both the shared and static library, searched for in a configurable order. Support for adding the library source directory and the build directory to the search path if the library is not installed on the system. [1]: <http://open62541.org/>