1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,22 @@ |
0 |
+COPYRIGHT AND PERMISSION NOTICE |
|
1 |
+ |
|
2 |
+Copyright (c) 1996 - 2019, Daniel Stenberg, <daniel@haxx.se>, and many |
|
3 |
+contributors, see the THANKS file. |
|
4 |
+ |
|
5 |
+All rights reserved. |
|
6 |
+ |
|
7 |
+Permission to use, copy, modify, and distribute this software for any purpose |
|
8 |
+with or without fee is hereby granted, provided that the above copyright |
|
9 |
+notice and this permission notice appear in all copies. |
|
10 |
+ |
|
11 |
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
12 |
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
13 |
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN |
|
14 |
+NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
|
15 |
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR |
|
16 |
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE |
|
17 |
+OR OTHER DEALINGS IN THE SOFTWARE. |
|
18 |
+ |
|
19 |
+Except as contained in this notice, the name of a copyright holder shall not |
|
20 |
+be used in advertising or otherwise to promote the sale, use or other dealings |
|
21 |
+in this Software without prior written authorization of the copyright holder. |
0 | 22 |
deleted file mode 100644 |
... | ... |
@@ -1,22 +0,0 @@ |
1 |
-COPYRIGHT AND PERMISSION NOTICE |
|
2 |
- |
|
3 |
-Copyright (c) 1996 - 2019, Daniel Stenberg, <daniel@haxx.se>, and many |
|
4 |
-contributors, see the THANKS file. |
|
5 |
- |
|
6 |
-All rights reserved. |
|
7 |
- |
|
8 |
-Permission to use, copy, modify, and distribute this software for any purpose |
|
9 |
-with or without fee is hereby granted, provided that the above copyright |
|
10 |
-notice and this permission notice appear in all copies. |
|
11 |
- |
|
12 |
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
13 |
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
14 |
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN |
|
15 |
-NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
|
16 |
-DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR |
|
17 |
-OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE |
|
18 |
-OR OTHER DEALINGS IN THE SOFTWARE. |
|
19 |
- |
|
20 |
-Except as contained in this notice, the name of a copyright holder shall not |
|
21 |
-be used in advertising or otherwise to promote the sale, use or other dealings |
|
22 |
-in this Software without prior written authorization of the copyright holder. |
... | ... |
@@ -49,13 +49,26 @@ if test "X$have_curl" = "Xyes"; then |
49 | 49 |
save_LDFLAGS="$LDFLAGS" |
50 | 50 |
LDFLAGS="$CURL_LDFLAGS $CURL_LIBS" |
51 | 51 |
|
52 |
- AM_COND_IF([BUILD_CLAMONACC], |
|
53 |
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <curl/curl.h>]],[[ |
|
54 |
- int x; |
|
55 |
- curl_easy_setopt(NULL,CURLOPT_URL,NULL); |
|
56 |
- x=CURLOPT_UNIX_SOCKET_PATH; |
|
57 |
- x=CURLINFO_ACTIVESOCKET; |
|
58 |
- if (x) {;}]])],$enable_clamonacc="yes", AC_MSG_ERROR([Your libcurl (e.g. libcurl-devel) is too old. ClamAV requires libcurl 7.45 or higher.]))) |
|
52 |
+ dnl Following section modified from libcurl, Copyright (C) 2006, David Shaw, license under COPYING.curl |
|
53 |
+ AC_PROG_AWK |
|
54 |
+ |
|
55 |
+ curl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[[1]]+256*A[[2]]+A[[3]]; print X;}'" |
|
56 |
+ AC_PATH_PROG([curl_config],[curl-config],["notfound"], |
|
57 |
+ ["$LIBCURL_HOME/bin"]) |
|
58 |
+ |
|
59 |
+ |
|
60 |
+ awk_curl_version=`$curl_config --version | $AWK '{print $2}'` |
|
61 |
+ curl_version=`echo $awk_curl_version | $curl_version_parse` |
|
62 |
+ dnl end of section |
|
63 |
+ |
|
64 |
+ AM_COND_IF([BUILD_CLAMONACC], |
|
65 |
+ dnl if version greater than (7.45) |
|
66 |
+ [if test $curl_version -ge 470272 ; then |
|
67 |
+ $enable_clamonacc="yes" |
|
68 |
+ else |
|
69 |
+ AC_MSG_ERROR([Your libcurl (e.g. libcurl-devel) is too old. ClamAV (with clamonacc) requires libcurl 7.45 or higher.]) |
|
70 |
+ fi] |
|
71 |
+ ) |
|
59 | 72 |
|
60 | 73 |
AC_CHECK_LIB( |
61 | 74 |
[curl], |