Commit Graph

270 Commits

Author SHA1 Message Date
1a886595e6 Add libproxy support
Add support for libproxy, which is capable to extract desktop
environment proxy configurations from dozens of systems and platforms.
This also enables wget to handle pac/wpad proxy server.

* configure.ac: Add check for libbproxy.
* libwget/http.c (wget_http_open): Retrieve proxy via libproxy.

Copyright-paperwork-exempt: Yes
2023-11-04 16:02:45 +00:00
657e3d22c4 Release v2.1.0 2023-08-31 14:46:39 +02:00
15ba1db248 Update copyrights 2023-08-31 12:57:30 +02:00
54d0ee8e26 * configure.ac: Enable VLA warnings 2023-07-31 18:19:18 +02:00
719d560348 Silence clang-16+ warnings when using manywarnings
* configure.ac: Add -Wno-unsafe-buffer-usage and
  -Wno-cast-function-type-strict to $WARN_CFLAGS
2023-06-03 14:12:52 +02:00
d3ac532de0 * configure.ac: Remove -Wstrict-flex-arrays for gcc-13 2023-05-22 19:45:15 +02:00
84d0220e22 New option --dane
* configure.ac: Enable DANE if libgnutls-dane is installed,
  add option --without-libdane.
* docs/wget2.md: Add docs for option --dane.
* include/wget/wget.h: Add WGET_SSL_DANE.
* libwget/ssl_gnutls.c: Include include <gnutls/dane.h> if requested,
  (struct config): New member 'dane',
  (wget_ssl_set_config_int): Set value for dane via WGET_SSL_DANE,
  (wget_ssl_open): Call dane_verify_session_crt().
* src/options.c (options): Add entry for --dane,
  (init): Set config.dane via wget_ssl_set_config_int().
* src/wget_options.h (struct config): Add member 'dane'.
2023-04-23 19:49:12 +02:00
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