... | ... |
@@ -381,6 +381,12 @@ |
381 | 381 |
/* Define to 1 if you have the `strlcpy' function. */ |
382 | 382 |
#undef HAVE_STRLCPY |
383 | 383 |
|
384 |
+/* Define to 1 if you have the `strndup' function. */ |
|
385 |
+#undef HAVE_STRNDUP |
|
386 |
+ |
|
387 |
+/* Define to 1 if you have the `strnlen' function. */ |
|
388 |
+#undef HAVE_STRNLEN |
|
389 |
+ |
|
384 | 390 |
/* Define to 1 if sysconf(_SC_PAGESIZE) is available */ |
385 | 391 |
#undef HAVE_SYSCONF_SC_PAGESIZE |
386 | 392 |
|
... | ... |
@@ -634,6 +634,7 @@ ac_includes_default="\ |
634 | 634 |
# include <unistd.h> |
635 | 635 |
#endif" |
636 | 636 |
|
637 |
+ac_func_list= |
|
637 | 638 |
enable_option_checking=no |
638 | 639 |
ac_subst_vars='ENABLE_CLAMSUBMIT_FALSE |
639 | 640 |
ENABLE_CLAMSUBMIT_TRUE |
... | ... |
@@ -694,6 +695,8 @@ LIBPRELUDE_CFLAGS |
694 | 694 |
LIBPRELUDE_CONFIG |
695 | 695 |
ENABLE_LIBFRESHCLAM_FALSE |
696 | 696 |
ENABLE_LIBFRESHCLAM_TRUE |
697 |
+ENABLE_CLAMSUBMIT_FALSE |
|
698 |
+ENABLE_CLAMSUBMIT_TRUE |
|
697 | 699 |
SYSTEM_LFS_FTS_FALSE |
698 | 700 |
SYSTEM_LFS_FTS_TRUE |
699 | 701 |
HAVE_YARA |
... | ... |
@@ -2569,6 +2572,23 @@ $as_echo "$as_me: creating cache $cache_file" >&6;} |
2569 | 2569 |
>$cache_file |
2570 | 2570 |
fi |
2571 | 2571 |
|
2572 |
+as_fn_append ac_func_list " poll" |
|
2573 |
+as_fn_append ac_func_list " setsid" |
|
2574 |
+as_fn_append ac_func_list " memcpy" |
|
2575 |
+as_fn_append ac_func_list " snprintf" |
|
2576 |
+as_fn_append ac_func_list " vsnprintf" |
|
2577 |
+as_fn_append ac_func_list " strerror_r" |
|
2578 |
+as_fn_append ac_func_list " strlcpy" |
|
2579 |
+as_fn_append ac_func_list " strlcat" |
|
2580 |
+as_fn_append ac_func_list " strcasestr" |
|
2581 |
+as_fn_append ac_func_list " inet_ntop" |
|
2582 |
+as_fn_append ac_func_list " setgroups" |
|
2583 |
+as_fn_append ac_func_list " initgroups" |
|
2584 |
+as_fn_append ac_func_list " ctime_r" |
|
2585 |
+as_fn_append ac_func_list " mkstemp" |
|
2586 |
+as_fn_append ac_func_list " mallinfo" |
|
2587 |
+as_fn_append ac_func_list " madvise" |
|
2588 |
+as_fn_append ac_func_list " getnameinfo" |
|
2572 | 2589 |
# Check that the precious variables saved in the cache have kept the same |
2573 | 2590 |
# value. |
2574 | 2591 |
ac_cache_corrupted=false |
... | ... |
@@ -16287,7 +16307,10 @@ if test "$ac_res" != no; then : |
16287 | 16287 |
fi |
16288 | 16288 |
|
16289 | 16289 |
|
16290 |
-for ac_func in poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat strcasestr inet_ntop setgroups initgroups ctime_r mkstemp mallinfo madvise getnameinfo |
|
16290 |
+ |
|
16291 |
+ |
|
16292 |
+ |
|
16293 |
+ for ac_func in $ac_func_list |
|
16291 | 16294 |
do : |
16292 | 16295 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16293 | 16296 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
... | ... |
@@ -16299,6 +16322,63 @@ _ACEOF |
16299 | 16299 |
fi |
16300 | 16300 |
done |
16301 | 16301 |
|
16302 |
+ |
|
16303 |
+ |
|
16304 |
+ |
|
16305 |
+ |
|
16306 |
+ |
|
16307 |
+ |
|
16308 |
+ |
|
16309 |
+ |
|
16310 |
+ |
|
16311 |
+ |
|
16312 |
+ |
|
16313 |
+ |
|
16314 |
+ |
|
16315 |
+ |
|
16316 |
+ |
|
16317 |
+ |
|
16318 |
+ |
|
16319 |
+ |
|
16320 |
+ |
|
16321 |
+ |
|
16322 |
+ |
|
16323 |
+ |
|
16324 |
+ |
|
16325 |
+ |
|
16326 |
+ |
|
16327 |
+ |
|
16328 |
+ |
|
16329 |
+ |
|
16330 |
+ |
|
16331 |
+ |
|
16332 |
+ |
|
16333 |
+ |
|
16334 |
+ |
|
16335 |
+ |
|
16336 |
+ |
|
16337 |
+for ac_func in strndup |
|
16338 |
+do : |
|
16339 |
+ ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" |
|
16340 |
+if test "x$ac_cv_func_strndup" = xyes; then : |
|
16341 |
+ cat >>confdefs.h <<_ACEOF |
|
16342 |
+#define HAVE_STRNDUP 1 |
|
16343 |
+_ACEOF |
|
16344 |
+ |
|
16345 |
+fi |
|
16346 |
+done |
|
16347 |
+ |
|
16348 |
+for ac_func in strnlen |
|
16349 |
+do : |
|
16350 |
+ ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" |
|
16351 |
+if test "x$ac_cv_func_strnlen" = xyes; then : |
|
16352 |
+ cat >>confdefs.h <<_ACEOF |
|
16353 |
+#define HAVE_STRNLEN 1 |
|
16354 |
+_ACEOF |
|
16355 |
+ |
|
16356 |
+fi |
|
16357 |
+done |
|
16358 |
+ |
|
16302 | 16359 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
16303 | 16360 |
$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
16304 | 16361 |
if ${ac_cv_sys_largefile_source+:} false; then : |
... | ... |
@@ -24257,6 +24337,15 @@ $as_echo "#define HAVE_SYSTEM_LFS_FTS 0" >>confdefs.h |
24257 | 24257 |
lfs_fts_msg="internal, libc's is not LFS compatible" |
24258 | 24258 |
fi |
24259 | 24259 |
|
24260 |
+ if test "$have_curl" = "yes"; then |
|
24261 |
+ ENABLE_CLAMSUBMIT_TRUE= |
|
24262 |
+ ENABLE_CLAMSUBMIT_FALSE='#' |
|
24263 |
+else |
|
24264 |
+ ENABLE_CLAMSUBMIT_TRUE='#' |
|
24265 |
+ ENABLE_CLAMSUBMIT_FALSE= |
|
24266 |
+fi |
|
24267 |
+ |
|
24268 |
+ |
|
24260 | 24269 |
# Check whether --enable-libfreshclam was given. |
24261 | 24270 |
if test "${enable_libfreshclam+set}" = set; then : |
24262 | 24271 |
enableval=$enable_libfreshclam; enable_libfreshclam=$enableval |
... | ... |
@@ -25261,6 +25350,10 @@ if test -z "${SYSTEM_LFS_FTS_TRUE}" && test -z "${SYSTEM_LFS_FTS_FALSE}"; then |
25261 | 25261 |
as_fn_error $? "conditional \"SYSTEM_LFS_FTS\" was never defined. |
25262 | 25262 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
25263 | 25263 |
fi |
25264 |
+if test -z "${ENABLE_CLAMSUBMIT_TRUE}" && test -z "${ENABLE_CLAMSUBMIT_FALSE}"; then |
|
25265 |
+ as_fn_error $? "conditional \"ENABLE_CLAMSUBMIT\" was never defined. |
|
25266 |
+Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
|
25267 |
+fi |
|
25264 | 25268 |
if test -z "${ENABLE_LIBFRESHCLAM_TRUE}" && test -z "${ENABLE_LIBFRESHCLAM_FALSE}"; then |
25265 | 25269 |
as_fn_error $? "conditional \"ENABLE_LIBFRESHCLAM\" was never defined. |
25266 | 25270 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
... | ... |
@@ -27854,6 +27947,10 @@ if test -z "${SYSTEM_LFS_FTS_TRUE}" && test -z "${SYSTEM_LFS_FTS_FALSE}"; then |
27854 | 27854 |
as_fn_error $? "conditional \"SYSTEM_LFS_FTS\" was never defined. |
27855 | 27855 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27856 | 27856 |
fi |
27857 |
+if test -z "${ENABLE_CLAMSUBMIT_TRUE}" && test -z "${ENABLE_CLAMSUBMIT_FALSE}"; then |
|
27858 |
+ as_fn_error $? "conditional \"ENABLE_CLAMSUBMIT\" was never defined. |
|
27859 |
+Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
|
27860 |
+fi |
|
27857 | 27861 |
if test -z "${ENABLE_LIBFRESHCLAM_TRUE}" && test -z "${ENABLE_LIBFRESHCLAM_FALSE}"; then |
27858 | 27862 |
as_fn_error $? "conditional \"ENABLE_LIBFRESHCLAM\" was never defined. |
27859 | 27863 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |