summaryrefslogtreecommitdiff
path: root/acinclude.m4
Commit message (Collapse)AuthorAgeFilesLines
* configure: replace AC_TRY_RUN with CURL_RUN_IFELSEDaniel Stenberg2018-05-211-2/+2
| | | | | | | | ... and export LD_LIBRARY_PATH properly. This is a follow-up from 2d4c215. Fixes #2586 Reported-by: Bernhard Walle
* build: add picky compiler warning flags for gcc 6 and 7Eric Gallager2018-04-071-0/+0
|
* CURL_SIZEOF_LONG: removed, use only SIZEOF_LONGDaniel Stenberg2017-08-171-14/+0
|
* system.h: remove all CURL_SIZEOF_* definesDaniel Stenberg2017-08-171-285/+0
| | | | | | | ... 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/+26
| | | | | | | 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: fix recv/send/select detection on AndroidDaniel Stenberg2017-08-081-6/+20
| | | | | | | | | | | ... since they now provide several functions as __attribute__((overloadable)), the argument detection logic need updates. Patched-by: destman at github Fixes #1738 Closes #1739
* build: remove WIN32_LEAN_AND_MEAN from individual build systemsMarcel Raad2017-07-111-2/+0
| | | | | | | | It's defined for all build systems in curl_setup.h since commit beb08481d01a07a8b10938b1078a5e298b1c2912. This caused macro redefinition warnings in the configure builds. Closes https://github.com/curl/curl/pull/1677
* configure: try ldap/lber in reversed order firstDaniel Stenberg2017-07-041-1/+1
| | | | | | | | | | When scanning for which LDAP libraries to use, try the -lldap -llber combination before the reversed order since it has a greater chance of working when linking with libcurl statically. Fixes #1619 Closes #1634 Reported-by: David E. Narváez
* includes: remove curl/curlbuild.h and curl/curlrules.hDaniel Stenberg2017-06-141-15/+3
| | | | | | | | Rely entirely on curl/system.h now. Introduced in Aug 2008 with commit 14240e9e109f. Now gone. Fixes #1456
* Revert "configure: prefer 'long long' to int64_t for curl_off_t"Daniel Stenberg2017-04-051-2/+2
| | | | | | This reverts commit 81284374bf3c670d2050f8562edeb69f060b07cc. Due to mingw32 brekage.
* configure: prefer 'long long' to int64_t for curl_off_tDaniel Stenberg2017-04-051-2/+2
| | | | | | | | | | Since it is a native type and it makes it less complicated to find a matching one in system.h Bug: https://curl.haxx.se/mail/lib-2017-04/0010.html Reported-by: Dan Fandrich Closes #1388
* configure: verify that compiler groks -Werror=partial-availabilityDaniel Stenberg2016-11-031-0/+7
| | | | | | Reported-by: bemoody Fixes #1104
* configure: raise the default minimum version for macos to 10.8Daniel Stenberg2016-10-311-1/+1
| | | | | follow-up to 4f8d0b6f02aa7043. Since the darwinssl code breaks otherwise. If you build without darwinssl 10.5 works fine.
* configure.in: Fix test syntaxMichael Osipov2016-10-271-1/+1
| | | | | | | | Some versions of test allow == for equality, but others (such as the HP-UX version) do not. Use a single = for correctness. Error output: checking for monotonic clock_gettime... ./configure[20445]: ==: A test command parameter is not valid.
* configure: Check for other variants of the -m*os*-version-min flagsMartin Storsjo2016-10-201-4/+4
| | | | | | In addition to -miphoneos-version-min, the same version can be set using -mios-version-min. And for WatchOS and TvOS, there's -mwatchos-version-min and -mtvos-version-min.
* configure: set min version flags for builds on macDaniel Stenberg2016-10-201-1/+38
| | | | | | | | This helps building binaries that can work on multiple macOS versions. Help-by: Martin Storsjö Fixes #1069
* configure: make the cpp -P detection not clobber CPPFLAGSCraig Davison2016-09-051-4/+7
| | | | | | CPPPFLAGS is now CPPPFLAG. Fixes CURL_CHECK_DEF. Fixes #958
* acinclude.m4: improve autodetection of CA bundle on FreeBSDMichael Osipov2016-06-271-3/+3
| | | | | | | | | | | | The FreeBSD Port security/ca_root_nss installs the Mozilla NSS CA bundle to /usr/local/share/certs/ca-root-nss.crt. Use this bundle in the discovery process. This change also removes the former FreeBSD path that has been obsolete for 8 years since this FreeBSD ports commit: https://svnweb.freebsd.org/ports/head/security/?view=revision&revision=215953 Closes #894
* configure: ac_cv_ -> curl_cv_ for write-only varsIrfan Adilovic2016-04-211-4/+4
| | | | | | | | | | | | | | | | | | | These configure vars are modified in a curl-specific way but never evaluated or loaded from cache, even though they are designated as _cv_. We could either implement proper AC_CACHE_CHECKs for them, or remove them completely. Fixes #603 as ac_cv_func_gethostbyname is no longer clobbered, and AC_CHECK_FUNC(gethostbyname...) will no longer spuriously succeed after the first configure run with caching. `ac_cv_func_strcasecmp` is curious, see #770. `eval "ac_cv_func_$func=yes"` can still cause problems as it works in tandem with AC_CHECK_FUNCS and then potentially modifies its result. It would be best to rewrite this test to use a new CURL_CHECK_FUNCS macro, which works the same as AC_CHECK_FUNCS but relies on caching the values of curl_cv_func_* variables, without modifiying ac_cv_func_*.
* configure: ac_cv_ -> curl_cv_ for r/w varsIrfan Adilovic2016-04-211-3/+3
| | | | | | | 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.
* configure: ac_cv_func_clock_gettime -> curl_...Irfan Adilovic2016-04-211-9/+9
| | | | | | | This variable must not be cached in its current form, as any cached information will prevent the next configure run from determining the correct LIBS needed for the function. Thus, rename prefix `ac_cv_` to just `curl_`.
* configure: ac_cv_ -> curl_cv_ for all cached varsIrfan Adilovic2016-04-211-70/+70
| | | | | | | | | | | | | This was automated by: sed -b -i -f <(ack -A1 AC_CACHE_CHECK | \ ack -o 'ac_cv_.*?\b' | \ sort -u | xargs -n1 bash -c \ 'echo "s/$0/curl_cv_${0#ac_cv_}/g"') \ $(git ls-files) This only changed the prefix for 16 variables actually checked with AC_CACHE_CHECK.
* configure: use cpp -P when neededDaniel Stenberg2016-03-181-1/+50
| | | | | | | | | | Since gcc 5, the processor output can get split up on multiple lines that made the configure script fail to figure out values from definitions. The fix is to use cpp -P, and this fix now first checks if cpp -P is necessary and then if cpp -P works before it uses that to extract defined values. Fixes #719
* configure: warn on invalid ca bundle or pathJay Satiro2016-02-251-8/+36
| | | | | | | | | | | | | | | | - Warn if --with-ca-bundle file does not exist. - Warn if --with-ca-path directory does not contain certificates. - Improve help messages for both. Example configure output: ca cert bundle: /some/file (warning: certs not found) ca cert path: /some/dir (warning: certs not found) Bug: https://github.com/curl/curl/issues/404 Reported-by: Jeffrey Walton
* configure: --with-ca-fallback: use built-in TLS CA fallbackLudwig Nussel2016-02-081-0/+18
| | | | | | | | When trying to verify a peer without having any root CA certificates set, this makes libcurl use the TLS library's built in default as fallback. Closes #569
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* acinclude: Remove check for 16-bit curl_off_tJay Satiro2015-11-091-15/+0
| | | | | | Because it's illogical to check for a 16-bit curl_off_t. Ref: https://github.com/bagder/curl/issues/425#issuecomment-154964205
* build: Fix support for PKG_CONFIGJay Satiro2015-10-241-5/+2
| | | | | | | | | | | | | | | - Allow the user to use PKG_CONFIG but not PKGCONFIG. Background: Last week in 14d5a86 a change was made to allow the user to set the PKGCONFIG variable. Today in 72d99f2 I supplemented that to allow the more common PKG_CONFIG as an alternative if PKGCONFIG is not set. Neither of those changes worked as expected because PKGCONFIG is occasionally reset in configure and by the CURL_CHECK_PKGCONFIG macro. Instead in this commit I take the approach that the user may set PKG_CONFIG only.
* build: Fix mingw ssl gdi32 orderJay Satiro2015-10-231-2/+10
| | | | | | | | | - If mingw ssl make sure -lgdi32 comes after ssl libs - Allow PKG_CONFIG to set pkg-config location and options Bug: https://github.com/bagder/curl/pull/501 Reported-by: Kang Lin
* acinclude: remove PKGCONFIG overrideDaniel Stenberg2015-10-131-4/+1
| | | | | | | ... and allow it to get set by a caller easier. Reported-by: Rainer Jung Bug: http://curl.haxx.se/mail/lib-2015-10/0035.html
* configure: add --disable-rt optionMichał Fita2015-07-241-13/+16
| | | | | | | | | | This option disables any attempts in configure to create dependency on stuff requiring linking to librt.so and libpthread.so, in this case this means clock_gettime(CLOCK_MONOTONIC, &mt). We were in need to build curl which doesn't link libpthread.so to avoid the following bug: https://sourceware.org/bugzilla/show_bug.cgi?id=16628.
* configure: remove missing and make it autogenerateMichael Osipov2015-04-301-17/+0
| | | | | | The missing file has not been autogenerated because a temporary fix was employed in acinclude.m4 which blocked update. Removed that fix and a recent version of missing is copied to build root.
* acinclude.m4: fix test for default CA cert bundle/pathMichael Osipov2015-04-301-1/+1
| | | | | test(1) on HP-UX requires a single equals sign and fails with two. Let's use one and make every OS happy.
* gtls: add support for CURLOPT_CAPATHAlessandro Ghedini2015-03-101-2/+2
|
* configure: allow both --with-ca-bundle and --with-ca-pathJulian Ospald2015-02-201-3/+6
| | | | | | | | | | | | SSL_CTX_load_verify_locations by default (and if given non-Null parameters) searches the CAfile first and falls back to CApath. This allows for CAfile to be a basis (e.g. installed by the package manager) and CApath to be a user configured directory. This wasn't reflected by the previous configure constraint which this patch fixes. Bug: https://github.com/bagder/curl/pull/139
* configure: allow --with-ca-path with PolarSSL tooCatalin Patulea2014-09-131-2/+2
| | | | | | Missed this in af45542c. Signed-off-by: Catalin Patulea <cat@vv.carleton.ca>
* acinclude: fix --without-ca-path when cross-compilingDaniel Stenberg2013-09-041-36/+37
| | | | | | | | | | | | The commit 7b074a460b64811 to CURL_CHECK_CA_BUNDLE in 7.31 (don't check for paths when cross-compiling) causes --without-ca-path to no longer works when cross-compiling, since ca and capath only ever get set to "no" when not cross-compiling, I attach a patch that works for me. Also in the cross-compilation case, no ca-path seems to be a better default (IMVHO) than empty ca-path. Bug: http://curl.haxx.se/bug/view.cgi?id=1273 Patch-by: Stefan Neis
* CURL_CHECK_CA_BUNDLE: don't check for paths when cross-compilingDaniel Stenberg2013-04-181-4/+7
| | | | | | When cross-compiling we can't scan and detect existing files or paths. Bug: http://curl.haxx.se/mail/lib-2013-04/0294.html
* configure: remove CURL_CHECK_FUNC_RECVFROMDaniel Stenberg2013-04-081-208/+1
| | | | | | | 1 - We don't use the results from the test and we never did. recvfrom() is only used by the TFTP code and it has not caused any problems. 2 - the CURL_CHECK_FUNC_RECVFROM function is extremely slow
* configure: fix cross pkg-config detectionColin Watson2012-12-081-11/+3
| | | | | | | | | | | | | | | | | | | | | When cross-compiling, CURL_CHECK_PKGCONFIG was checking for the cross pkg-config using ${host}-pkg-config. The gold standard for doing this correctly is pkg-config's own macro, PKG_PROG_PKG_CONFIG. However, on the assumption that you have a good reason not to use that directly (reduced dependencies for maintainer builds?), the behaviour of cURL's version should at least match. PKG_PROG_PKG_CONFIG uses AC_PATH_TOOL, which ultimately ends up trying ${host_alias}-pkg-config; this is not quite the same as what cURL does, and may differ because ${host} has been run through config.sub. For instance, when cross-building to the armhf architecture on Ubuntu, ${host_alias} is arm-linux-gnueabihf while ${host} is arm-unknown-linux-gnueabihf. This may also have been the cause of the problem reported at http://curl.haxx.se/mail/lib-2012-04/0224.html. AC_PATH_TOOL is significantly simpler than cURL's current code, and dates back to well before the current minimum of Autoconf 2.57, so let's use it instead.
* build: prevent global LIBS from influencing src and lib build targetsYang Tse2012-12-031-4/+1
| | | | Currently, LIBS is already used through other macros.
* build: avoid linkage of directly unused librariesYang Tse2012-11-281-0/+2
|
* build: fix AIX compilation and usageYang Tse2012-11-231-0/+42
| | | | | | | | AIX sys/poll.h header file defines 'events' and 'revents' as C preprocessor macros. Usage of these literals in libcurl's external API was introduced in commit de24d7bd4c causing AIX build failures. Appropriate inclusion of sys/poll.h by libcurl's external interface fixes AIX build and usage issues while avoiding a SONAME bump.
* configure: NATIVE_WINDOWS no longer defined in config filesYang Tse2012-04-121-7/+2
|
* configure - m4: make CURL_CHECK_DEF ignore leading whitespace on symbol defAlbert Chin2011-09-271-1/+1
| | | | | | | When using Sun C compiler the preprocessor somehow inserts an extra space in front of replaced symbol, breaking CURL_CHECK_DEF macro. To workaround this, macro CURL_CHECK_DEF now ignores all leading whitespace in front of symbol substitution result.
* configure: avoid direct usage of AS_TR_* macrosYang Tse2011-06-171-3/+3
|
* configure: fix recvfrom 5th arg type qualifier detection (followup)Yang Tse2011-06-081-4/+4
|
* configure: fix recvfrom 5th arg type qualifier detectionYang Tse2011-06-081-2/+15
|
* CURL_CHECK_FUNC_RECVFROM: android/bionic fixManuel Massing2011-03-121-2/+2
| | | | | | recvfrom in bionic (the android libc) deviates from POSIX and uses a const in the 5th argument ("const struct sockaddr *") so the check now tests for that as well.
* Fixed configure define for Win32.Guenter Knauf2011-01-181-1/+1
| | | | Submitted by Vincent Torri.