lawremi / rtracklayer

R interface to genome annotation files and the UCSC genome browser
Other
29 stars 17 forks source link

Add checks for remaining MACROS to handle older libcurl #130

Closed sanchit-saini closed 2 months ago

sanchit-saini commented 3 months ago

Leftover fix for #123. As mentioned in #123, It should have failed at the build time. However, I could not reproduce it even with Docker, which is really weird!!

So, I added a checks based on the version of the macros used. This should fix the issue.

Macros, Data types, Functions Introduced in Version
CURLINFO_FILETIME_T 7.59.0
(failback)CURLINFO_FILETIME 7.5
CURLINFO_CONTENT_LENGTH_DOWNLOAD_T 7.55.0
(failback)CURLINFO_CONTENT_LENGTH_DOWNLOAD 7.6.1
CURLOPT_URL 7.1
CURLOPT_NOBODY 7.1
CURLOPT_HEADER 7.1
CURLOPT_WRITEFUNCTION 7.1
CURLOPT_HEADERFUNCTION 7.7.2
CURLOPT_HEADERDATA 7.10
CURLOPT_OPENSOCKETDATA 7.17.1
CURLINFO_ACTIVESOCKET 7.45.0
(failback)CURLINFO_LASTSOCKET 7.15.2
CURLOPT_RANGE 7.1
CURLOPT_FOLLOWLOCATION 7.1
CURLINFO_EFFECTIVE_URL 7.4
CURL_GLOBAL_DEFAULT 7.8
CURL 7.1 (approx)
curl_off_t 7.1 (approx)
CURLcode 7.1 (approx)
curl_socket_t 7.17.1 (approx)
curl_global_init() 7.8
curl_global_cleanup() 7.8
curl_easy_init() 7.1
curl_easy_setopt() 7.1
curl_easy_getinfo() 7.4.1
curl_easy_perform() 7.1
curl_easy_strerror() 7.12.0