Commit Graph

263 Commits

Author SHA1 Message Date
a398b78e15 * Add -Wno-declaration-after-statement to clang-14+ manywarnings 2022-06-25 13:30:01 +02:00
660b313118 * configure.ac: Add -Wno-declaration-after-statement to clang-15 manywarnings 2022-06-18 16:59:00 +02:00
586ecf7cde * configure.ac: Drop -Wc90-c99-compat -Wlong-long from manywarnings (gcc-12) 2022-06-18 16:51:07 +02:00
3d25515253 Release v2.0.1 2022-05-27 11:48:57 +02:00
810e6465f6 Disable building manylibs by default
* .gitlab-ci.yml: Add --enable-manylibs to Full tests.
* configure.ac: --disable-manylibs is default.
2022-03-05 16:54:53 +01:00
3dc7f71098 Update copyright year 2022-02-25 17:46:43 +01:00
1069939ac4 * configure.ac: Amend warnings for clang 12+ and 13+ 2021-12-05 13:16:02 +01:00
26a2787dcd * configure.ac: Fix OpenSSL library name
If pkg-config check fails (which is the case on FreeBSD where system openssl does not have pkgconfig files), check for libssl library instead of incorrect libopenssl.

Copyright-paperwork-exempt: Yes
2021-11-18 15:46:57 +03:00
8d25143798 * configure.ac: Error if xattr have been requested but are not available 2021-11-12 18:31:12 +01:00
c797e49622 * configure.ac: Don't build with lzma on default 2021-11-12 18:11:05 +01:00
b7ee13658e * configure.ac: Don't build with bzip2 on default 2021-11-12 18:09:38 +01:00
1aae12e0f0 * configure.ac: Fix fallback to AC_SEARCH_LIBS 2021-11-12 17:55:10 +01:00
040f6cc378 contrib: Remove unused libtool patch
After the previous commit it now uses -Wl,--no-whole-archive
instead of patching libtool in the build system. This is more
portable for other libtool implementations other than the one
by GNU.
2021-10-24 17:33:26 +02:00
574c8ae08d * configure.ac: Don't escape double quotes in AC_MSG_ERROR 2021-09-29 22:59:18 +02:00
da9788f5d6 * configure.ac: Fix bashism == in if expression 2021-09-29 22:46:07 +02:00
ba80a03d84 * configure.ac: Fix --without-lzip 2021-09-25 12:02:11 +02:00
20594c97a1 * configure.ac: Update versions 2021-09-12 13:14:42 +02:00
1358405061 Fix building without TLS library
This changes configure semantics to fail if no TLS library
is found and no --with-ssl=none was explicitly requested.
It protects users from accidentally building without TLS.

* .gitlab-ci.yml: Tarball build using --with-ssl=none.
* configure.ac: Stop with error if no TLS was found and --with-ssl
  was not used.
* tests/libtest.c: Fix issues with conditionally declared variables.
2021-02-07 12:34:39 +01:00
258506ce85 Separate GnuTLS in wget2 and in test suite
* configure.ac: Separate GnuTLS in wget2 and in test suite.
* tests/libtest.c: Use WITH_GNUTLS_OCSP insteadof WITH_OCSP.
2021-02-06 19:47:02 +01:00
37ba5a503c * configure.ac: Improve searching for SSL/TLS libraries 2021-02-06 19:47:02 +01:00
d281ffab48 * configure.ac: Detect unresolved AX_ macros 2021-01-24 12:26:35 +01:00
f7050b9206 * configure.ac: Use noyywrap for AC_PROG_LEX 2021-01-24 12:24:40 +01:00
bdd0feffb2 * configure.ac: Fix for autoconf 2.70 2021-01-23 19:59:13 +01:00
22162f82b2 Update copyright year 2021-01-22 21:58:38 +01:00
687ac99602 * configure.ac: Small cleanups 2021-01-01 22:54:23 +01:00
b1331e2c62 * configure.ac: Remove superfluous 'x' ahead of variables 2021-01-01 22:40:51 +01:00
580af86909 * configure.ac: Use AC_CONFIG_MACRO_DIR only once
This fixes #547 (autotools 2.70 is more restrictive).
Reported by: Gabriele Balducci
2020-12-25 18:55:38 +01:00
11ddbb773f * configure.ac: Add -Wno-implicit-int-float-conversion for clang >= 11 2020-12-13 19:08:33 +01:00
c9499dcf2f * configure.ac: Fix configure.ac bashisms
Reported-by: Brian Inglis
2020-10-31 10:48:27 +01:00
a8b7bf99b9 Adapt configure.ac to support multiple SSL/TLS backends
This patch modifies `configure.ac` to support GnuTLS, OpenSSL and wolfSSL as the SSL/TLS backends.

Either of these can be enabled at compile time the `configure` switch `--with-ssl`. Example:

    ./configure --with-ssl=openssl

If `--with-ssl` is omitted, the default behavior will be to build with GnuTLS if available, and without
TLS if not. TLS can be explicitly disabled with `--without-ssl`.

Regardless of which specific backend has been selected, the TLS and OCSP tests will always be built with GnuTLS,
as that is the only backend currently supported in the test suite.

It renames the constant `HAVE_GNUTLS_OCSP_H` to a more generic `WITH_OCSP`, that captures
the notion that OCSP has been enabled at compile-time, hiding the specific backend.

Changed files

 * configure.ac: honor --with-ssl option, but keep on testing for GnuTLS
   for the test suite.
 * libwget/ssl_gnutls.c: replace HAVE_GNUTLS_OCSP_H with WITH_OCSP
 * libwget/ssl_openssl.c: likewise
 * tests/libtest.c: replace HAVE_GNUTLS_OCSP_H with WITH_OCSP.
   Check for WITH_GNUTLS_IN_TESTSUITE.
2020-03-30 21:29:35 +02:00
40c1ea52ec New configure switch --disable-manylibs
* NEWS: Add --disable-manylibs
* configure.ac: Implement --disable-manylibs
* libwget/Makefile.am: Likewise

This switches off building small libraries from libwget functionality groups.
2020-02-17 11:00:56 +01:00
1375815325 Patch libtool to add -no-whole-archive
* cfg.mk: Exclude contrib/libtool.patch from 'make syntax-check'
* configure.ac: Patch libtool
* contrib/libtool.patch: New file
* lib/Makefile.am: Unset $LIBS
* libwget/Makefile.am: Use -no-whole-archive

This patch keeps the libwget libraries short by not adding
*everything* from lib/libgnu.a.
2020-02-15 20:23:04 +01:00
59d9ecd9c0 * Update copyright year to 2020 2020-01-10 00:33:02 +01:00
3f180a7171 * configure.ac: Enable more sanitizer options for UBSAN and ASAN 2020-01-06 13:13:38 +01:00
ca6e8de6c6 * configure.ac: Fix for 'Error on unknown value for --with-ssl' 2019-11-15 11:34:13 +01:00
3d87f122bf * configure.ac: Error on unknown value for --with-ssl 2019-11-15 10:13:56 +01:00
328ae2cc03 * configure.ac: Fix 2019-11-06 12:13:51 +01:00
e9d6cb3d08 Add license text to files 2019-11-02 16:10:19 +01:00
64c087dc06 * configure.ac: Add pkg-config support for GPGME 2019-10-23 11:39:31 +02:00
e400221d5d * configure.ac: Update minimum required version 2019-10-03 15:50:38 +02:00
3bd8e6aa97 Implement Accept-Encoding: lzip including decompressor
* README.md: Mention lzip
* configure.ac: Detect lzip
* docs/wget2.md: Document 'lzip'
* include/wget/wget.h: Add wget_content_encoding_lzip
* libwget/decompressor.c: Implement lzip decompression
* libwget/http_parse.c (wget_http_parse_content_encoding): Add "lzip"
* src/options.c: Add code to support lzip
* src/wget.c (http_create_request): Add lzip to Accept-Encoding: if available
* tests/test-compression.c: Add test vector for lzip decompression
2019-09-19 12:58:09 +02:00
32c393a456 Fix for reproducible builds
* .gitignore: Remove src/version-text.h
* cfg.mk: Add rule to update copyright in src/options.c
* configure.ac: Remove YEAR
* src/Makefile.am: Remove version-text.h.in
* src/options.c: Add version text
* src/version-text.h.in: Deleted

Reported-by: Bernhard M. Wiedemann
2019-09-16 15:46:47 +02:00
af9703a93c Release 1.99.2 (beta) 2019-08-30 14:56:14 +02:00
ad037396ce Only use clang's Nullability feature with enabled manywarnings 2019-08-30 12:18:58 +02:00
1aa2c740f6 Remove portability warnings from configure
* configure.ac: Don't warn when we use GNU Make extensions.
We have already dug into this by disabling the relevant syntax-check
rule as well. The recent commit adding support for gcov based code
coverage adds more GNU make specific rules.
2019-08-30 11:07:39 +02:00
f08fc4c515 Fix hashing with Gcrypt backend 2019-08-29 22:36:36 +02:00
f4bcd99e20 * configure.ac: Fix TLS/hashing detection 2019-08-29 22:36:35 +02:00
e4bcb5eab6 Add more hash backends 2019-08-29 22:36:35 +02:00
ae6317e7d6 Rebase wolfssl branch
* configure.ac: Pretty print 'SSL/TLS support'
* libwget/Makefile.am: Cleanup logic
2019-08-29 22:36:35 +02:00
ce272e3c6f * configure.ac: Add SSL/TLS option wolfssl 2019-08-29 22:36:35 +02:00