summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* configure: check for C++ compiler after C, to make it non-fatalDaniel Stenberg2017-09-071-1/+1
| | | | | | | | | The tests for object file/executable file extensions are presumably only done for the first of these macros in the configure file. Bug: https://github.com/curl/curl/pull/1851#issuecomment-327597515 Reported-by: Marcel Raad Closes #1873
* configure: fix curl_off_t check's include orderJay Satiro2017-09-071-1/+1
| | | | | | | | | | | - Prepend srcdir include path instead of append. Prior to this change it was possible that during the check for the size of curl_off_t the include path of a user's already installed curl could come before the include path of the to-be-built curl, resulting in the system.h of the former being incorrectly included for that check. Closes https://github.com/curl/curl/pull/1870
* configure: remove --enable-soname-bump and SONAME_BUMPDaniel Stenberg2017-09-061-33/+0
| | | | | | | | | | | | | | | | | | Back in 2008, (and commit 3f3d6ebe665f3) we changed the logic in how we determine the native type for `curl_off_t`. To really make sure we didn't break ABI without bumping SONAME, we introduced logic that attempted to detect that it would use a different size and thus not be compatible. We also provided a manual switch that allowed users to tell configure to bump SONAME by force. Today, we know of no one who ever got a SONAME bump auto-detected and we don't know of anyone who's using the manual bump feature. The auto- detection is also no longer working since we introduced defining curl_off_t in system.h (7.55.0). Finally, this bumping logic is not present in the cmake build. Closes #1861
* configure: add MultiSSL to FEATURES when enabledDaniel Stenberg2017-09-051-0/+6
| | | | ...for curl-config and its corresponding test 1014
* ossfuzz: Move to C++ for curl_fuzzer.Max Dymond2017-09-021-0/+1
| | | | | | | | Automake gets confused if you want to use C++ static libraries with C code - basically we need to involve the clang++ linker. The easiest way of achieving this is to rename the C code as C++ code. This gets us a bit further along the path and ought to be compatible with Google's version of clang.
* ossfuzz: moving towards the ideal integrationMax Dymond2017-09-011-1/+1
| | | | | | | | | - Start with the basic code from the ossfuzz project. - Rewrite fuzz corpora to be binary files full of Type-Length-Value data, and write a glue layer in the fuzzing function to convert corpora into CURL options. - Have supporting functions to generate corpora from existing tests - Integrate with Makefile.am
* configure: remove the leading comma from the backends listDaniel Stenberg2017-08-311-1/+1
| | | | | | | | | ... when darwinssl is used. Reported-by: Viktor Szakats Bug: https://github.com/curl/curl/commit/b0989cd3abaff4f9a0717b4875022fa79e33b481#commitcomment-23943493 Closes #1845
* configure: Handle "MultiSSL" specially When versioning symbolsJohannes Schindelin2017-08-281-1/+3
| | | | | | | | | | | There is a mode in which libcurl is compiled with versioned symbols, depending on the active SSL backend. When multiple SSL backends are active, it does not make sense to favor one over the others, so let's not: introduce a new prefix for the case where multiple SSL backends are compiled into cURL. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* configure: allow setting the default SSL backendJohannes Schindelin2017-08-281-0/+54
| | | | | | | | | | | | | Previously, we used as default SSL backend whatever was first in the `available_backends` array. However, some users may want to override that default without patching the source code. Now they can: with the --with-default-ssl-backend=<backend> option of the ./configure script. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* version: add the CURL_VERSION_MULTI_SSL feature flagJohannes Schindelin2017-08-281-4/+15
| | | | | | | This new feature flag reports When cURL was built with multiple SSL backends. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* vtls: allow selecting which SSL backend to use at runtimeJohannes Schindelin2017-08-281-27/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building software for the masses, it is sometimes not possible to decide for all users which SSL backend is appropriate. Git for Windows, for example, uses cURL to perform clones, fetches and pushes via HTTPS, and some users strongly prefer OpenSSL, while other users really need to use Secure Channel because it offers enterprise-ready tools to manage credentials via Windows' Credential Store. The current Git for Windows versions use the ugly work-around of building libcurl once with OpenSSL support and once with Secure Channel support, and switching out the binaries in the installer depending on the user's choice. Needless to say, this is a super ugly workaround that actually only works in some cases: Git for Windows also comes in a portable form, and in a form intended for third-party applications requiring Git functionality, in which cases this "swap out libcurl-4.dll" simply is not an option. Therefore, the Git for Windows project has a vested interest in teaching cURL to make the SSL backend a *runtime* option. This patch makes that possible. By running ./configure with multiple --with-<backend> options, cURL will be built with multiple backends. For the moment, the backend can be configured using the environment variable CURL_SSL_BACKEND (valid values are e.g. "openssl" and "schannel"). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* CURL_SIZEOF_LONG: removed, use only SIZEOF_LONGDaniel Stenberg2017-08-171-1/+0
|
* system.h: remove all CURL_SIZEOF_* definesDaniel Stenberg2017-08-171-10/+7
| | | | | | | ... as they're not used externally and internally we check for the sizes already in configure etc. Closes #1767
* configure: check for __builtin_available() availability (#1788)Nick Zitzmann2017-08-161-0/+1
| | | | | | | This change does two things: 1. It un-breaks the build in Xcode 9.0. (Xcode 9.0 is currently failing trying to compile connectx() in lib/connect.c.) 2. It finally weak-links the connectx() function, and falls back on connect() when run on older operating systems.
* configure: use the threaded resolver backend by default if possibleDaniel Stenberg2017-08-101-5/+2
| | | | Closes #1647
* configure: fix the check for IdnToUnicodeJeremy Tan2017-08-011-1/+6
| | | | | Fixes #1669 Closes #1713
* configure: remove checks for 5 functions never usedDaniel Stenberg2017-07-041-6/+1
| | | | | | fork, getprotobyname, inet_addr, perror, uname closes #1638
* configure: disable nghttp2 too if HTTP has been disabledDaniel Stenberg2017-06-161-0/+7
|
* fuzz: corpora file structure, initial commitFrederik B2017-06-151-0/+1
|
* includes: remove curl/curlbuild.h and curl/curlrules.hDaniel Stenberg2017-06-141-6/+1
| | | | | | | | Rely entirely on curl/system.h now. Introduced in Aug 2008 with commit 14240e9e109f. Now gone. Fixes #1456
* configure: update the copyright year in the outputDaniel Stenberg2017-06-121-1/+1
|
* configure: fix link with librtmp when specifying pathChris Carlmar2017-06-071-0/+1
| | | | Bug: https://curl.haxx.se/mail/lib-2017-06/0017.html
* build: provide easy code coverage measuringDaniel Stenberg2017-06-021-0/+1
| | | | Closes #1528
* tool_operate: use utimes instead of obsolescent utime when availableDan Fandrich2017-04-271-1/+2
|
* configure: stop prepending to LDFLAGS, CPPFLAGSJay Satiro2017-04-251-9/+9
| | | | | | | | - Change prepends to appends because user's LDFLAGS and CPPFLAGS should always come first so they're searched before ours. Bug: https://github.com/curl/curl/issues/1420 Reported-by: Helmut K. C. Tessarek
* configure: fix the -ldl check for openssl, add -lpthread checkDaniel Stenberg2017-04-241-44/+42
| | | | | | | | | | | The check for if -ldl is needed to build with (a statically built) openssl was broken. This repairs the check, and adds a check for -lpthread as well since OpenSSL 1.1.0+ does in fact require -lpthread so only adding -ldl for a static openssl build is no longer enough. Reported-by: Jay Satiro Ref: #1426 Closes #1427
* configure.ac: ignore CR after version numbersMarcel Raad2017-04-171-2/+2
| | | | | | | | | Ignore everything after the version numbers in LIBCURL_VERSION and LIBCURL_VERSION_NUM to ged rid of the extra CR character. This makes tests 1022 and 1023 pass on Linux with a CRLF checkout. Ref: https://github.com/curl/curl/pull/1344#issuecomment-289243166 Closes https://github.com/curl/curl/pull/1422
* configure: fix --with-zlib when a path is specifiedGreg Rowe2017-03-031-10/+9
| | | | | | | | | | Prior to this change if you attempted to configure curl using --wtih-zlib and specified a path the path would be ignored if you also had pkg-config installed on your system. This situation can easily arise when you are cross compiling. This change moves the test for detecting zlib settings via pkg-config only if OPT_ZLIB is not set. Closes https://github.com/curl/curl/pull/1292
* configure: fix for --enable-pthreadsJay Satiro2017-03-021-13/+32
| | | | | | | Better handle options conflicts that can occur if --enable-pthreads. Bug: https://github.com/curl/curl/pull/1295 Reported-by: Marc-Antoine Perennou
* configure: Allow disabling pthreads, fall back on Win32 threadsJay Satiro2017-02-141-4/+40
| | | | | | | | | When the threaded resolver option is specified for configure the default thread library is pthreads. This change makes it possible to --disable-pthreads and then configure can fall back on Win32 threads for native Windows builds. Closes https://github.com/curl/curl/pull/1260
* gnutls: check for alpn and ocsp in configureMarcus Hoffmann2017-01-131-1/+1
| | | | | | | | | | | Check for presence of gnutls_alpn_* and gnutls_ocsp_* functions during configure instead of relying on the version number. GnuTLS has options to turn these features off and we ca just work with with such builds like we work with older versions. Signed-off-by: Marcus Hoffmann <m.hoffmann@cartelsol.com> Closes #1204
* configure: accept --with-libidn2 insteadDaniel Stenberg2016-12-251-1/+1
| | | | | | | | ... which the help text already implied since we switched to libidn2 from libidn in commit 9c91ec778104ae3b back in October 2016. Reported-by: Christian Weisgerber Bug: https://curl.haxx.se/mail/lib-2016-12/0110.html
* cmdline-opts: include the man page split up files in the distDaniel Stenberg2016-12-171-0/+1
|
* curl_version_info: add CURL_VERSION_HTTPS_PROXYOkhin Vasilij2016-11-261-0/+5
| | | | Closes #1142
* openssl: RAND_status always exists in OpenSSL >= 0.9.7Daniel Stenberg2016-11-111-3/+1
| | | | | and remove RAND_screen from configure since nothing is using that function
* idn: switch to libidn2 use and IDNA2008 supportDaniel Stenberg2016-10-311-47/+29
| | | | | | | CVE-2016-8625 Bug: https://curl.haxx.se/docs/adv_20161102K.html Reported-by: Christian Heimes
* configure: set min version flags for builds on macDaniel Stenberg2016-10-201-0/+2
| | | | | | | | This helps building binaries that can work on multiple macOS versions. Help-by: Martin Storsjö Fixes #1069
* s/cURL/curlDaniel Stenberg2016-10-181-1/+1
| | | | | The tool was never called cURL, only the project. But even so, we have more and more over time switched to just use lower case.
* configure: Fixed builds with libssh2 in a custom locationDan Fandrich2016-09-241-1/+1
| | | | | A libssh2 library in the standard system location was being used in preference to the desired one while linking.
* openssl: don’t call CRYTPO_cleanup_all_ex_dataDaniel Stenberg2016-09-191-1/+0
| | | | | | | | | | | | | The OpenSSL function CRYTPO_cleanup_all_ex_data() cannot be called multiple times without crashing - and other libs might call it! We basically cannot call it without risking a crash. The function is a no-op since OpenSSL 1.1.0. Not calling this function only risks a small memory leak with OpenSSL < 1.1.0. Bug: https://curl.haxx.se/mail/lib-2016-09/0045.html Reported-by: Todd Short
* configure: change "iOS/Mac OS X native" to "Apple OS native"Nick Zitzmann2016-09-181-5/+5
| | | | Since I first wrote that text, Apple introduced tvOS and watchOS, and renamed "Mac OS X" to "macOS." Let's make the text a little more inclusive, since curl can be built for all four operating systems.
* configure: detect zlib with our pkg-config macrosDaniel Stenberg2016-08-251-10/+10
| | | | | | ... instead of relying on the pkg-config autoconf macros to be present. Fixes #972 (again...)
* configure: make it work without PKG_CHECK_MODULESDaniel Stenberg2016-08-211-1/+4
| | | | | | | | | | | With commit c2f9b78 we added a new dependency on pkg-config for developers which may be unwanted. This change make the configure script still work as before if pkg-config isn't installed, it'll just use the old zlib detection logic without pkg-config. Reported-by: Marc Hörsken Fixes #972
* configure.ac: add missing quotes to PKG_CHECK_MODULESMarc Hoersken2016-08-201-1/+1
|
* configure.ac: add zlib search with pkg-configDambaev Alexander2016-08-121-4/+14
| | | | Closes #956
* mbedtls: Added support for NTLMBill Nagel2016-08-031-4/+4
|
* configure: don't specify .lib for libs on windowsDaniel Stenberg2016-06-221-1/+1
| | | | Another follow up for crypt32.lib linking with winssl
* configure: fix winssl LIBS change typoDaniel Stenberg2016-06-221-1/+1
| | | | follow-up from 120bf29e
* configure: add crypt32.lib for winssl buildsDaniel Stenberg2016-06-221-0/+1
| | | | Necessary since 6cabd78531f
* configure: ac_cv_ -> curl_cv_ for r/w varsIrfan Adilovic2016-04-211-1/+1
| | | | | | | These configure vars are modified in a curl-specific way and modified by the configure process, but are never loaded from cache, even though they are designated as _cv_. We should implement proper AC_CACHE_CHECKs for them eventually.