Commit graph

277 commits

Author SHA1 Message Date
Olly Betts
3e42fec457 Use CFLAGS for testcases on AIX
On AIX, one can compile applications either in 32bit or 64bit.
With GCC, this is done by using: -maix64 or -maix32 (default).
Thus, when building & testing Swig in 64bit, the -maix64 option must be
passed to all calls to gcc.

Fixes #1923
2022-01-26 15:27:08 +13:00
Olly Betts
e21ea9b167 Fix LDSHARED on AIX
Stop trying to use an ld_so_aix script which hasn't been present in
the tree since at least the start of git history in 1999.

Fixes #1919
2022-01-26 15:16:39 +13:00
William S Fulton
f8e4a5cc25 Few more PCRE to PCRE2 changes 2022-01-21 18:35:20 +00:00
Julien Schueller
15515f390c PCRE2
Closes #2120
2022-01-21 07:46:08 +01:00
Olly Betts
748a9a5452 [perl] Require at least Perl 5.8.0
As discussed and agreed in #1629, it's become hard to test with Perl
5.6 or earlier, such old versions are no longer in active use, and
4.1.0 is an appropriate time to make such a change.

I've dropped the compatibility code that was obvious to me, but there's
probably more that can be cleaned up now.
2022-01-19 10:07:30 +13:00
Olly Betts
fa36d6fd28 [python] Add 3.10 to Python versions in configure 2021-12-24 16:43:25 +13:00
Olly Betts
c60507ef70 [php] configure: Check for php8.1 binary 2021-12-08 13:10:38 +13:00
William S Fulton
dbab08ec21 Scilab testing: don't hang on error 2021-11-16 19:48:22 +00:00
William S Fulton
75cacc1325 CC and CXX override improvements in examples
Use the overridden CC and CXX compiles when linking
when overriding at make time.
Previously the following would use CC and CXX specified at
configure time when linking:
  make CC=gcc-11 CXX=g++-11
2021-11-15 19:55:26 +00:00
William S Fulton
5f8768daed Support testing on AIX for tcl
Contributed by Tony Reix

Closes #1922
2021-04-28 00:04:50 +01:00
William S Fulton
f14c712001 Correct disabling of c++11 testing
C++11 testing was not being turned off when the
C++ compiler check for C++11 features failed and
'configure --enable-cpp11-testing' was used
2021-04-26 22:32:52 +01:00
William S Fulton
abcae7c68b Remove AC_HEADER_STDC replacement code
Remove replacement code added in by autoupdate.
Go with recommendation to unconditionally include C headers
(which we have been doing all along).

Minimum autoconf version can be restored back to what it was.

We do need AC_PROG_EGREP - used by AC_EGREP_CPP
2021-04-26 22:32:52 +01:00
William S Fulton
0c3da29dc3 configure.ac update
Updated using autoupdate from autoconf 2.71
2021-04-26 22:32:52 +01:00
William S Fulton
fb0c4aeb53 Clean configure output detecting Javascriptcore 2021-04-26 22:32:52 +01:00
William S Fulton
0a99192339 Testing of C++14 and C++17 detection improved
Previously if the compiler was detected to support c++11,
-std=c++11 was set preventing c++17 code from being properly tested.
Now c++14 and c++17 support is looked for and the -std flag is
appropriately set to the compiler's maximum supported version.
2021-04-26 22:32:52 +01:00
William S Fulton
71709af99a Show CFLAGS and CXXFLAGS for SWIG executable build 2021-03-23 19:46:00 +00:00
Olly Betts
56d7435573 Merge branch 'php8-support'
Fixes #1929, Fixes #1978
2021-03-21 10:57:35 +13:00
William S Fulton
82fb0540ca Modernise C++11 compiler support detection in autotools
Replace AX_CXX_COMPILE_STDCXX_11 with AX_CXX_COMPILE_STDCXX
from autoconf archive.
2021-03-20 00:53:13 +00:00
Olly Betts
3584c7d49c Add initial support for PHP8
Testcase director_overload2 is failing, but the rest of the testsuite
passes.
2021-03-19 19:30:27 +13:00
Olly Betts
6b5b682eed Add php7.4 to list configure checks for 2021-03-17 12:40:14 +13:00
Andy Polyakov
f97020fb0c configure.ac: re-prioritize node.js detection.
Having 'node' taking priority over 'nodejs' make is easier to "sand-box"
different node.js version by merely adjusting PATH.
2021-03-02 15:21:02 +01:00
Andy Polyakov
1abb726d69 configure.ac: pick up javascriptcoregtk-4.0,3.0 if available.
Ubuntu 20 doesn't have libwebkitgtk-dev/libjavascriptcoregtk-1.0-dev,
but it has 4.0. Ubuntu 18 provides 3.0 as option.
2021-03-01 15:51:12 +01:00
William S Fulton
ac8de714af Travis testing tcl for MacOSX10.14 and later
Used suggestion from
https://www.postgresql-archive.org/PG-vs-macOS-Mojave-td6047357.html#a6056680
to add in sysroot.

Note that the examples failed at runtime unless tcl was installed from homebrew:
  brew install --cask tcl
2021-02-20 14:50:01 +00:00
William S Fulton
ec2b47ef2a Remove need for Python 2to3
All Python examples and tests have been written to be both Python 2 and Python 3
compatible, removing the need for 2to3 to run the examples or test-suite.

The 2to3 executable is not always available and even when available does not
always work, e.g. with pyenv. An alternative would be to use the lib2to3 Python
module instead, but this isn't available in some older versions of Python 3.

I had this problem on Ubuntu Bionic on Travis:

  checking Examples/python/callback
  pyenv: 2to3-3.8: command not found
  The `2to3-3.8' command exists in these Python versions:
    3.8
    3.8.1

Reference issues:
  https://github.com/pypa/virtualenv/issues/1399
  https://travis-ci.community/t/2to3-command-not-found-in-venv-in-bionic/4495
2020-08-15 18:04:58 +01:00
Mike Frysinger
e9a21197ec configure: use AC_PATH_TOOL for pkg-config
AC_CHECK_PROGS will find the tool using exactly the name given: it
only searches for "pkg-config".  When doing native builds, this is
generally fine.  However, when cross-compiling, this is not ideal
as `pkg-config` is often configured for the build system, not the
system we want to cross-compile for.

Switch to using the AC_PATH_TOOL tool instead.  This will look for
"pkg-config" with a $host- prefix first before falling back to the
plain "pkg-config".  When doing native builds, things should still
behave the same, but now things work better out of the box when we
cross-compile.

For example, `./configure --host=aarch64-linux-gnu` will first look
for "aarch64-linux-gnu-pkg-config" before falling back to the plain
"pkg-config".
2020-06-12 19:08:29 -04:00
Mike Frysinger
24945669fd configure: change $PKGCONFIG to $PKG_CONFIG
The PKG_CONFIG variable name aligns with the standard upstream
value that the pkg-config project itself uses.
2020-06-11 18:04:15 -04:00
William S Fulton
470d1926f8 Bump version to 4.1.0 2020-06-08 20:47:47 +01:00
Anatol Pomozov
9da2e4f5d4 Replace -isystem compile flag with -I
Using `-isystem` flag causes compilation errors with GCC10.
Replace it with `-I` flag.

Fixes #1805

Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
2020-06-02 23:33:12 -07:00
William S Fulton
ac3f668c83 Minor configure.ac output display correction testing for octave 2020-06-02 18:11:12 +01:00
Karl Wette
d11e29615d Octave: use pre-compiled headers to speed up test suite, if supported 2020-05-31 22:11:51 +10:00
Karl Wette
e0d85fc939 configure.ac: fix calls to mkoctfile for Octave configuration
- As of Octave 5.1.0, mkoctfile no longer works with 'env -'
  (no environment), so need to pass at least PATH and
  LD_LIBRARY_PATH for it to work.
- Still need to clear environment so that it doesn't override
  mkoctfile defined variables, e.g. CXXFLAGS.
2020-05-31 06:43:15 +10:00
Vadim Zeitlin
8b572399d7 Revert "Use '\\' instead of "\\""
This reverts commit ab8ecbc208 as it broke
AppVeyor CI builds.
2020-05-25 16:06:14 +02:00
Vadim Zeitlin
034a6d54ee Merge branch 'master' of https://github.com/vapier/swig
Use $PKGCONFIG instead of hard-coded pkg-config for JS test.

See https://github.com/swig/swig/pull/1796
2020-05-24 22:08:23 +02:00
Vadim Zeitlin
ab8ecbc208 Use '\\' instead of "\\"
No real changes, just use simpler quoting construct which is sufficient
(as we don't need to expand any variables) and also happens not to break
Vim 8 syntax highlighting in the entire file, unlike double quotes.
2020-05-22 15:58:21 +02:00
Mike Frysinger
48842cb07b configure: fix pkg-config invocation
The code was already probing $PKGCONFIG but then still falls back
to using the hardcoded `pkg-config` tool.
2020-05-21 19:39:39 -04:00
Vadim Zeitlin
e7d0533a6f Quote JAVAC expansion in configure to deal with spaces
This avoids errors about unknown Java version format when JAVAC is in a
path with spaces in it (as is often the case under Windows).
2019-12-19 16:17:24 +01:00
Vadim Zeitlin
b52af40398 Disable Doxygen tests when using Java 8 or older
Check Java version in configure and define SKIP_DOXYGEN_TEST_CASES if
it's less than 9, which is required by the new implementation of
CommentParser used in the Doxygen tests.
2019-12-18 16:24:28 +01:00
Vadim Zeitlin
66a7826192 Rewrite Doxygen unit tests for Java using Java 9 API
In particular, do not use com.sun.javadoc deprecated since Java 9 and
finally removed in Java 13, to allow the tests to run under modern JRE.

They don't run under Java 8 and earlier any more, but this shouldn't be
a huge problem nowadays and as SWIG output is independent from the Java
version used, it's enough to test it with modern Java versions.

Note that the tests themselves were changed only in the most minimal
way, to adapt them to the new way of running javadoc (which is now also
integrated into CommentParser itself instead of being duplicated in
every test).
2019-12-18 02:45:06 +01:00
William S Fulton
c48d11ac17 Bump version to 4.0.2 2019-08-22 06:55:39 +01:00
Ian Lance Taylor
62136ff782 Fix Go version check and Go in-tree example tests
Fixes #1607
2019-08-09 14:06:45 -07:00
Ian Lance Taylor
6b108c19e1 Restore setting of GOVERSIONOPTION
Accidentally removed in last commit.
2019-08-08 22:59:57 -07:00
Ian Lance Taylor
7aafe3d8b2 Fix all Go tests to build with "go build"
Tested against Go 1.6 through Go 1.13beta1, and gccgo.

Fixes #1607
2019-08-08 14:30:50 -07:00
William S Fulton
6489730892 Fix Octave detection for non-GNU sed on MacOS 2019-05-24 19:30:47 +01:00
Orion Poplawski
ae7c04e204 Adapt OCTAVE_LDFLAGS for Octave 5.1 2019-05-24 19:30:47 +01:00
William S Fulton
78a1515f46 OCaml testing requires camlp4 2019-05-02 07:41:35 +01:00
William S Fulton
6a91723fcf Bump version to 4.0.1 2019-04-28 21:01:21 +01:00
William S Fulton
892f0fdc6b Update ax_boost_base.m4 to latest from autoconf archive
Updated to serial #45.
This is in preparation to a possible fix for issue #1435.
The use of AS_CASE requires autoconf-2.60 or later.
2019-04-11 19:48:06 +01:00
Olly Betts
c199b173f8 configure: Look for php7.2 and php7.3 2019-02-08 14:37:14 +13:00
William S Fulton
264b39fd00 Disable CFFI Common Lisp target language
Clean up to disable target languages that have been neglected/not functional.
Target language be fully deleted in SWIG 4.1 unless a new maintainer brings
it up to an acceptable status (experimental or supported).

Issue #1447
2019-02-05 18:42:23 +00:00
William S Fulton
6d7e3df54e Disable Allegrcol target language
Clean up to disable target languages that have been neglected/not functional.
Target language be fully deleted in SWIG 4.1 unless a new maintainer brings
it up to an acceptable status (experimental or supported).

Issue #1447
2019-02-05 18:42:16 +00:00