diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-03-10 00:38:21 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-03-10 00:39:07 +0100 |
commit | ec81a3b18b1046ff4b6c4f15387f5112a6d8b692 (patch) | |
tree | cc327988066a168239a1d1fcf0d8957ddd5ea191 | |
parent | 8979632c0f67370aa4445f7315f0f20cca36ebf7 (diff) | |
download | curl-bagder/sizeof-curl_off_t.tar.gz |
configure: provide Largefile featurebagder/sizeof-curl_off_t
and make test1014 check for it
-rwxr-xr-x | configure.ac | 7 | ||||
-rwxr-xr-x | tests/libtest/test1013.pl | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 1af9d0f41..f3b11f005 100755 --- a/configure.ac +++ b/configure.ac @@ -5262,6 +5262,13 @@ if test "x$ECH_ENABLED" = "x1"; then SUPPORT_FEATURES="$SUPPORT_FEATURES ECH" fi +if test ${ac_cv_sizeof_curl_off_t} -gt 4; then + if test ${ac_cv_sizeof_off_t} -gt 4 -o \ + "$curl_win32_file_api" = "win32_large_files"; then + SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile" + fi +fi + dnl replace spaces with newlines dnl sort the lines dnl replace the newlines back to spaces diff --git a/tests/libtest/test1013.pl b/tests/libtest/test1013.pl index 055ef957a..4160ff923 100755 --- a/tests/libtest/test1013.pl +++ b/tests/libtest/test1013.pl @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -44,7 +44,7 @@ $curl_protocols =~ /\w+: (.*)$/; @curl = split / /,$1; # These features are not supported by curl-config -@curl = grep(!/^(Debug|TrackMemory|Metalink|Largefile|CharConv)$/i, @curl); +@curl = grep(!/^(Debug|TrackMemory|Metalink|CharConv)$/i, @curl); @curl = sort @curl; # Read the output of curl-config |