Browse code

autojunk'd

Conflicts:
configure

Mickey Sola authored on 2017/03/31 06:22:49
Showing 21 changed files
... ...
@@ -194,6 +194,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
194 194
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
195 195
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
196 196
 	$(top_srcdir)/m4/reorganization/yara.m4 \
197
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
197 198
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
198 199
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
199 200
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -390,6 +390,9 @@
390 390
 /* systemd is supported */
391 391
 #undef HAVE_SYSTEMD
392 392
 
393
+/* Use private fts() implementation which is LFS safe */
394
+#undef HAVE_SYSTEM_LFS_FTS
395
+
393 396
 /* Define to 1 if you have the <sys/cdefs.h> header file. */
394 397
 #undef HAVE_SYS_CDEFS_H
395 398
 
... ...
@@ -606,9 +609,20 @@
606 606
    `char[]'. */
607 607
 #undef YYTEXT_POINTER
608 608
 
609
+/* Enable large inode numbers on Mac OS X 10.5.  */
610
+#ifndef _DARWIN_USE_64_BIT_INODE
611
+# define _DARWIN_USE_64_BIT_INODE 1
612
+#endif
613
+
614
+/* Number of bits in a file offset, on hosts where this is settable. */
615
+#undef _FILE_OFFSET_BITS
616
+
609 617
 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
610 618
 #undef _LARGEFILE_SOURCE
611 619
 
620
+/* Define for large files, on AIX-style hosts. */
621
+#undef _LARGE_FILES
622
+
612 623
 /* Define to 1 if on MINIX. */
613 624
 #undef _MINIX
614 625
 
... ...
@@ -169,6 +169,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
169 169
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
170 170
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
171 171
 	$(top_srcdir)/m4/reorganization/yara.m4 \
172
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
172 173
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
173 174
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
174 175
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -150,6 +150,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
150 150
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
151 151
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
152 152
 	$(top_srcdir)/m4/reorganization/yara.m4 \
153
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
153 154
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
154 155
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
155 156
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -168,6 +168,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
168 168
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
169 169
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
170 170
 	$(top_srcdir)/m4/reorganization/yara.m4 \
171
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
171 172
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
172 173
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
173 174
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -99,6 +99,7 @@ build_triplet = @build@
99 99
 host_triplet = @host@
100 100
 target_triplet = @target@
101 101
 @BUILD_CLAMD_TRUE@sbin_PROGRAMS = clamd$(EXEEXT)
102
+@BUILD_CLAMD_TRUE@@SYSTEM_LFS_FTS_FALSE@am__append_1 = fts.c
102 103
 subdir = clamd
103 104
 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
104 105
 	$(srcdir)/clamav-daemon.service.in \
... ...
@@ -170,6 +171,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
170 170
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
171 171
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
172 172
 	$(top_srcdir)/m4/reorganization/yara.m4 \
173
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
173 174
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
174 175
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
175 176
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -199,7 +201,8 @@ am__clamd_SOURCES_DIST = $(top_srcdir)/shared/output.c \
199 199
 	thrmgr.h server-th.c server.h scanner.c scanner.h others.c \
200 200
 	others.h shared.h onaccess_fan.c onaccess_fan.h onaccess_ddd.c \
201 201
 	onaccess_ddd.h onaccess_hash.c onaccess_hash.h onaccess_scth.c \
202
-	onaccess_scth.h
202
+	onaccess_scth.h priv_fts.h fts.c
203
+@BUILD_CLAMD_TRUE@@SYSTEM_LFS_FTS_FALSE@am__objects_1 = fts.$(OBJEXT)
203 204
 @BUILD_CLAMD_TRUE@am_clamd_OBJECTS = output.$(OBJEXT) \
204 205
 @BUILD_CLAMD_TRUE@	idmef_logging.$(OBJEXT) optparser.$(OBJEXT) \
205 206
 @BUILD_CLAMD_TRUE@	getopt.$(OBJEXT) misc.$(OBJEXT) \
... ...
@@ -210,7 +213,7 @@ am__clamd_SOURCES_DIST = $(top_srcdir)/shared/output.c \
210 210
 @BUILD_CLAMD_TRUE@	onaccess_fan.$(OBJEXT) \
211 211
 @BUILD_CLAMD_TRUE@	onaccess_ddd.$(OBJEXT) \
212 212
 @BUILD_CLAMD_TRUE@	onaccess_hash.$(OBJEXT) \
213
-@BUILD_CLAMD_TRUE@	onaccess_scth.$(OBJEXT)
213
+@BUILD_CLAMD_TRUE@	onaccess_scth.$(OBJEXT) $(am__objects_1)
214 214
 clamd_OBJECTS = $(am_clamd_OBJECTS)
215 215
 clamd_LDADD = $(LDADD)
216 216
 AM_V_lt = $(am__v_lt_@AM_V@)
... ...
@@ -527,42 +530,24 @@ target_vendor = @target_vendor@
527 527
 top_build_prefix = @top_build_prefix@
528 528
 top_builddir = @top_builddir@
529 529
 top_srcdir = @top_srcdir@
530
-@BUILD_CLAMD_TRUE@clamd_SOURCES = \
531
-@BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/output.c \
532
-@BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/output.h \
533
-@BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/idmef_logging.c \
534
-@BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/idmef_logging.h \
535
-@BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/optparser.c \
536
-@BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/optparser.h \
537
-@BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/getopt.c \
538
-@BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/getopt.h \
539
-@BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/misc.c \
540
-@BUILD_CLAMD_TRUE@    $(top_srcdir)/shared/misc.h \
541
-@BUILD_CLAMD_TRUE@    clamd.c \
542
-@BUILD_CLAMD_TRUE@    tcpserver.c \
543
-@BUILD_CLAMD_TRUE@    tcpserver.h \
544
-@BUILD_CLAMD_TRUE@    localserver.c \
545
-@BUILD_CLAMD_TRUE@    localserver.h \
546
-@BUILD_CLAMD_TRUE@    session.c \
547
-@BUILD_CLAMD_TRUE@    session.h \
548
-@BUILD_CLAMD_TRUE@    thrmgr.c \
549
-@BUILD_CLAMD_TRUE@    thrmgr.h \
550
-@BUILD_CLAMD_TRUE@    server-th.c \
551
-@BUILD_CLAMD_TRUE@    server.h \
552
-@BUILD_CLAMD_TRUE@    scanner.c \
553
-@BUILD_CLAMD_TRUE@    scanner.h \
554
-@BUILD_CLAMD_TRUE@    others.c \
555
-@BUILD_CLAMD_TRUE@    others.h \
556
-@BUILD_CLAMD_TRUE@    shared.h \
557
-@BUILD_CLAMD_TRUE@    onaccess_fan.c \
558
-@BUILD_CLAMD_TRUE@    onaccess_fan.h \
559
-@BUILD_CLAMD_TRUE@    onaccess_ddd.c \
560
-@BUILD_CLAMD_TRUE@    onaccess_ddd.h \
561
-@BUILD_CLAMD_TRUE@    onaccess_hash.c \
562
-@BUILD_CLAMD_TRUE@    onaccess_hash.h \
563
-@BUILD_CLAMD_TRUE@    onaccess_scth.c \
564
-@BUILD_CLAMD_TRUE@    onaccess_scth.h
565
-
530
+@BUILD_CLAMD_TRUE@clamd_SOURCES = $(top_srcdir)/shared/output.c \
531
+@BUILD_CLAMD_TRUE@	$(top_srcdir)/shared/output.h \
532
+@BUILD_CLAMD_TRUE@	$(top_srcdir)/shared/idmef_logging.c \
533
+@BUILD_CLAMD_TRUE@	$(top_srcdir)/shared/idmef_logging.h \
534
+@BUILD_CLAMD_TRUE@	$(top_srcdir)/shared/optparser.c \
535
+@BUILD_CLAMD_TRUE@	$(top_srcdir)/shared/optparser.h \
536
+@BUILD_CLAMD_TRUE@	$(top_srcdir)/shared/getopt.c \
537
+@BUILD_CLAMD_TRUE@	$(top_srcdir)/shared/getopt.h \
538
+@BUILD_CLAMD_TRUE@	$(top_srcdir)/shared/misc.c \
539
+@BUILD_CLAMD_TRUE@	$(top_srcdir)/shared/misc.h clamd.c \
540
+@BUILD_CLAMD_TRUE@	tcpserver.c tcpserver.h localserver.c \
541
+@BUILD_CLAMD_TRUE@	localserver.h session.c session.h thrmgr.c \
542
+@BUILD_CLAMD_TRUE@	thrmgr.h server-th.c server.h scanner.c \
543
+@BUILD_CLAMD_TRUE@	scanner.h others.c others.h shared.h \
544
+@BUILD_CLAMD_TRUE@	onaccess_fan.c onaccess_fan.h onaccess_ddd.c \
545
+@BUILD_CLAMD_TRUE@	onaccess_ddd.h onaccess_hash.c \
546
+@BUILD_CLAMD_TRUE@	onaccess_hash.h onaccess_scth.c \
547
+@BUILD_CLAMD_TRUE@	onaccess_scth.h priv_fts.h $(am__append_1)
566 548
 @BUILD_CLAMD_TRUE@AM_CFLAGS = @WERR_CFLAGS@
567 549
 @BUILD_CLAMD_TRUE@@INSTALL_SYSTEMD_UNITS_TRUE@systemdsystemunit_DATA = clamav-daemon.socket clamav-daemon.service
568 550
 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav @SSL_CPPFLAGS@ @JSON_CPPFLAGS@ @PCRE_CPPFLAGS@
... ...
@@ -686,6 +671,7 @@ distclean-compile:
686 686
 	-rm -f *.tab.c
687 687
 
688 688
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clamd.Po@am__quote@
689
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fts.Po@am__quote@
689 690
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@
690 691
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idmef_logging.Po@am__quote@
691 692
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/localserver.Po@am__quote@
... ...
@@ -168,6 +168,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
168 168
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
169 169
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
170 170
 	$(top_srcdir)/m4/reorganization/yara.m4 \
171
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
171 172
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
172 173
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
173 174
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -150,6 +150,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
150 150
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
151 151
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
152 152
 	$(top_srcdir)/m4/reorganization/yara.m4 \
153
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
153 154
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
154 155
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
155 156
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -169,6 +169,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
169 169
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
170 170
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
171 171
 	$(top_srcdir)/m4/reorganization/yara.m4 \
172
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
172 173
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
173 174
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
174 175
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -168,6 +168,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
168 168
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
169 169
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
170 170
 	$(top_srcdir)/m4/reorganization/yara.m4 \
171
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
171 172
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
172 173
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
173 174
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -694,6 +694,10 @@ LIBPRELUDE_CFLAGS
694 694
 LIBPRELUDE_CONFIG
695 695
 ENABLE_LIBFRESHCLAM_FALSE
696 696
 ENABLE_LIBFRESHCLAM_TRUE
697
+ENABLE_CLAMSUBMIT_FALSE
698
+ENABLE_CLAMSUBMIT_TRUE
699
+SYSTEM_LFS_FTS_FALSE
700
+SYSTEM_LFS_FTS_TRUE
697 701
 HAVE_YARA
698 702
 subdirs
699 703
 llvmconfig
... ...
@@ -963,6 +967,7 @@ enable_prelude
963 963
 with_libprelude_prefix
964 964
 with_libcurl
965 965
 with_system_libmspack
966
+enable_largefile
966 967
 '
967 968
       ac_precious_vars='build_alias
968 969
 host_alias
... ...
@@ -1655,6 +1660,7 @@ Optional Features:
1655 1655
   --disable-yara          do not include yara support
1656 1656
   --enable-libfreshclam   enable building of libfreshclam
1657 1657
   --enable-prelude        Enable Prelude support for alerts.
1658
+  --disable-largefile     omit support for large files
1658 1659
 
1659 1660
 Optional Packages:
1660 1661
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
... ...
@@ -21897,7 +21903,7 @@ if test "$enable_stat64" != "no"; then
21897 21897
 
21898 21898
 $as_echo "#define HAVE_STAT64 1" >>confdefs.h
21899 21899
 
21900
-CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
21900
+CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
21901 21901
 fi
21902 21902
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stat64" >&5
21903 21903
 $as_echo "$enable_stat64" >&6; }
... ...
@@ -24208,6 +24214,64 @@ fi
24208 24208
 
24209 24209
 
24210 24210
 
24211
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LFS safe fts implementation" >&5
24212
+$as_echo_n "checking LFS safe fts implementation... " >&6; }
24213
+if test "$cross_compiling" = yes; then :
24214
+  have_LFS_fts=no
24215
+
24216
+else
24217
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24218
+/* end confdefs.h.  */
24219
+
24220
+#include <fts.h>
24221
+
24222
+int main(void) {
24223
+    fts_open((void *)0, FTS_PHYSICAL, (void *)0);
24224
+
24225
+    return 0;
24226
+}
24227
+
24228
+_ACEOF
24229
+if ac_fn_c_try_run "$LINENO"; then :
24230
+  have_LFS_fts=yes
24231
+else
24232
+  have_LFS_fts=no
24233
+fi
24234
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24235
+  conftest.$ac_objext conftest.beam conftest.$ac_ext
24236
+fi
24237
+
24238
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_LFS_fts" >&5
24239
+$as_echo "$have_LFS_fts" >&6; }
24240
+ if test "x$have_LFS_fts" = "xyes"; then
24241
+  SYSTEM_LFS_FTS_TRUE=
24242
+  SYSTEM_LFS_FTS_FALSE='#'
24243
+else
24244
+  SYSTEM_LFS_FTS_TRUE='#'
24245
+  SYSTEM_LFS_FTS_FALSE=
24246
+fi
24247
+
24248
+if test "x$have_LFS_fts" = "xyes"; then
24249
+
24250
+$as_echo "#define HAVE_SYSTEM_LFS_FTS 1" >>confdefs.h
24251
+
24252
+	lfs_fts_msg="libc"
24253
+else
24254
+
24255
+$as_echo "#define HAVE_SYSTEM_LFS_FTS 0" >>confdefs.h
24256
+
24257
+	lfs_fts_msg="internal, libc's is not LFS compatible"
24258
+fi
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
+
24211 24269
 # Check whether --enable-libfreshclam was given.
24212 24270
 if test "${enable_libfreshclam+set}" = set; then :
24213 24271
   enableval=$enable_libfreshclam; enable_libfreshclam=$enableval
... ...
@@ -24694,6 +24758,7 @@ else
24694 24694
   USE_INTERNAL_MSPACK_FALSE=
24695 24695
 fi
24696 24696
 
24697
+    CLFAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
24697 24698
 else
24698 24699
 
24699 24700
 pkg_failed=no
... ...
@@ -24781,6 +24846,206 @@ if test "x$use_internal_mspack" = "xyes"; then
24781 24781
     mspack_msg="Internal"
24782 24782
     subdirs="$subdirs libclamav/libmspack-0.5alpha"
24783 24783
 
24784
+    # Check whether --enable-largefile was given.
24785
+if test "${enable_largefile+set}" = set; then :
24786
+  enableval=$enable_largefile;
24787
+fi
24788
+
24789
+if test "$enable_largefile" != no; then
24790
+
24791
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
24792
+$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
24793
+if ${ac_cv_sys_largefile_CC+:} false; then :
24794
+  $as_echo_n "(cached) " >&6
24795
+else
24796
+  ac_cv_sys_largefile_CC=no
24797
+     if test "$GCC" != yes; then
24798
+       ac_save_CC=$CC
24799
+       while :; do
24800
+	 # IRIX 6.2 and later do not support large files by default,
24801
+	 # so use the C compiler's -n32 option if that helps.
24802
+	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24803
+/* end confdefs.h.  */
24804
+#include <sys/types.h>
24805
+ /* Check that off_t can represent 2**63 - 1 correctly.
24806
+    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24807
+    since some C++ compilers masquerading as C compilers
24808
+    incorrectly reject 9223372036854775807.  */
24809
+#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24810
+  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24811
+		       && LARGE_OFF_T % 2147483647 == 1)
24812
+		      ? 1 : -1];
24813
+int
24814
+main ()
24815
+{
24816
+
24817
+  ;
24818
+  return 0;
24819
+}
24820
+_ACEOF
24821
+	 if ac_fn_c_try_compile "$LINENO"; then :
24822
+  break
24823
+fi
24824
+rm -f core conftest.err conftest.$ac_objext
24825
+	 CC="$CC -n32"
24826
+	 if ac_fn_c_try_compile "$LINENO"; then :
24827
+  ac_cv_sys_largefile_CC=' -n32'; break
24828
+fi
24829
+rm -f core conftest.err conftest.$ac_objext
24830
+	 break
24831
+       done
24832
+       CC=$ac_save_CC
24833
+       rm -f conftest.$ac_ext
24834
+    fi
24835
+fi
24836
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
24837
+$as_echo "$ac_cv_sys_largefile_CC" >&6; }
24838
+  if test "$ac_cv_sys_largefile_CC" != no; then
24839
+    CC=$CC$ac_cv_sys_largefile_CC
24840
+  fi
24841
+
24842
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24843
+$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
24844
+if ${ac_cv_sys_file_offset_bits+:} false; then :
24845
+  $as_echo_n "(cached) " >&6
24846
+else
24847
+  while :; do
24848
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24849
+/* end confdefs.h.  */
24850
+#include <sys/types.h>
24851
+ /* Check that off_t can represent 2**63 - 1 correctly.
24852
+    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24853
+    since some C++ compilers masquerading as C compilers
24854
+    incorrectly reject 9223372036854775807.  */
24855
+#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24856
+  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24857
+		       && LARGE_OFF_T % 2147483647 == 1)
24858
+		      ? 1 : -1];
24859
+int
24860
+main ()
24861
+{
24862
+
24863
+  ;
24864
+  return 0;
24865
+}
24866
+_ACEOF
24867
+if ac_fn_c_try_compile "$LINENO"; then :
24868
+  ac_cv_sys_file_offset_bits=no; break
24869
+fi
24870
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24871
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24872
+/* end confdefs.h.  */
24873
+#define _FILE_OFFSET_BITS 64
24874
+#include <sys/types.h>
24875
+ /* Check that off_t can represent 2**63 - 1 correctly.
24876
+    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24877
+    since some C++ compilers masquerading as C compilers
24878
+    incorrectly reject 9223372036854775807.  */
24879
+#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24880
+  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24881
+		       && LARGE_OFF_T % 2147483647 == 1)
24882
+		      ? 1 : -1];
24883
+int
24884
+main ()
24885
+{
24886
+
24887
+  ;
24888
+  return 0;
24889
+}
24890
+_ACEOF
24891
+if ac_fn_c_try_compile "$LINENO"; then :
24892
+  ac_cv_sys_file_offset_bits=64; break
24893
+fi
24894
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24895
+  ac_cv_sys_file_offset_bits=unknown
24896
+  break
24897
+done
24898
+fi
24899
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24900
+$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24901
+case $ac_cv_sys_file_offset_bits in #(
24902
+  no | unknown) ;;
24903
+  *)
24904
+cat >>confdefs.h <<_ACEOF
24905
+#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24906
+_ACEOF
24907
+;;
24908
+esac
24909
+rm -rf conftest*
24910
+  if test $ac_cv_sys_file_offset_bits = unknown; then
24911
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
24912
+$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
24913
+if ${ac_cv_sys_large_files+:} false; then :
24914
+  $as_echo_n "(cached) " >&6
24915
+else
24916
+  while :; do
24917
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24918
+/* end confdefs.h.  */
24919
+#include <sys/types.h>
24920
+ /* Check that off_t can represent 2**63 - 1 correctly.
24921
+    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24922
+    since some C++ compilers masquerading as C compilers
24923
+    incorrectly reject 9223372036854775807.  */
24924
+#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24925
+  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24926
+		       && LARGE_OFF_T % 2147483647 == 1)
24927
+		      ? 1 : -1];
24928
+int
24929
+main ()
24930
+{
24931
+
24932
+  ;
24933
+  return 0;
24934
+}
24935
+_ACEOF
24936
+if ac_fn_c_try_compile "$LINENO"; then :
24937
+  ac_cv_sys_large_files=no; break
24938
+fi
24939
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24940
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24941
+/* end confdefs.h.  */
24942
+#define _LARGE_FILES 1
24943
+#include <sys/types.h>
24944
+ /* Check that off_t can represent 2**63 - 1 correctly.
24945
+    We can't simply define LARGE_OFF_T to be 9223372036854775807,
24946
+    since some C++ compilers masquerading as C compilers
24947
+    incorrectly reject 9223372036854775807.  */
24948
+#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24949
+  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24950
+		       && LARGE_OFF_T % 2147483647 == 1)
24951
+		      ? 1 : -1];
24952
+int
24953
+main ()
24954
+{
24955
+
24956
+  ;
24957
+  return 0;
24958
+}
24959
+_ACEOF
24960
+if ac_fn_c_try_compile "$LINENO"; then :
24961
+  ac_cv_sys_large_files=1; break
24962
+fi
24963
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24964
+  ac_cv_sys_large_files=unknown
24965
+  break
24966
+done
24967
+fi
24968
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24969
+$as_echo "$ac_cv_sys_large_files" >&6; }
24970
+case $ac_cv_sys_large_files in #(
24971
+  no | unknown) ;;
24972
+  *)
24973
+cat >>confdefs.h <<_ACEOF
24974
+#define _LARGE_FILES $ac_cv_sys_large_files
24975
+_ACEOF
24976
+;;
24977
+esac
24978
+rm -rf conftest*
24979
+  fi
24980
+
24981
+
24982
+fi
24983
+
24784 24984
 else
24785 24985
     mspack_msg="External, $LIBMSPACK_CFLAGS $LIBMSPACK_LIBS"
24786 24986
 fi
... ...
@@ -24996,6 +25261,14 @@ if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
24996 24996
   as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
24997 24997
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24998 24998
 fi
24999
+if test -z "${SYSTEM_LFS_FTS_TRUE}" && test -z "${SYSTEM_LFS_FTS_FALSE}"; then
25000
+  as_fn_error $? "conditional \"SYSTEM_LFS_FTS\" was never defined.
25001
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
25002
+fi
25003
+if test -z "${ENABLE_CLAMSUBMIT_TRUE}" && test -z "${ENABLE_CLAMSUBMIT_FALSE}"; then
25004
+  as_fn_error $? "conditional \"ENABLE_CLAMSUBMIT\" was never defined.
25005
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
25006
+fi
24999 25007
 if test -z "${ENABLE_LIBFRESHCLAM_TRUE}" && test -z "${ENABLE_LIBFRESHCLAM_FALSE}"; then
25000 25008
   as_fn_error $? "conditional \"ENABLE_LIBFRESHCLAM\" was never defined.
25001 25009
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
... ...
@@ -27585,6 +27858,14 @@ if test -z "${HAVE_CURSES_TRUE}" && test -z "${HAVE_CURSES_FALSE}"; then
27585 27585
   as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
27586 27586
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27587 27587
 fi
27588
+if test -z "${SYSTEM_LFS_FTS_TRUE}" && test -z "${SYSTEM_LFS_FTS_FALSE}"; then
27589
+  as_fn_error $? "conditional \"SYSTEM_LFS_FTS\" was never defined.
27590
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
27591
+fi
27592
+if test -z "${ENABLE_CLAMSUBMIT_TRUE}" && test -z "${ENABLE_CLAMSUBMIT_FALSE}"; then
27593
+  as_fn_error $? "conditional \"ENABLE_CLAMSUBMIT\" was never defined.
27594
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
27595
+fi
27588 27596
 if test -z "${ENABLE_LIBFRESHCLAM_TRUE}" && test -z "${ENABLE_LIBFRESHCLAM_FALSE}"; then
27589 27597
   as_fn_error $? "conditional \"ENABLE_LIBFRESHCLAM\" was never defined.
27590 27598
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
... ...
@@ -30338,6 +30619,20 @@ else
30338 30338
 fi
30339 30339
 
30340 30340
 
30341
+
30342
+   $as_echo_n "              fts         : "
30343
+   if test "x$lfs_fts_msg" = "xno"; then :
30344
+  $as_echo "yes (disabled)"
30345
+elif test "x$lfs_fts_msg" = "xyes"; then :
30346
+  $as_echo "yes"
30347
+elif test "x$lfs_fts_msg" = "x"; then :
30348
+  $as_echo "yes"
30349
+else
30350
+  $as_echo "yes ($lfs_fts_msg)"
30351
+fi
30352
+
30353
+
30354
+
30341 30355
 # Yep, downgrading the compiler avoids the bug too:
30342 30356
 # 4.0.x, and 4.1.0 are the known buggy versions
30343 30357
 # 3.4 doesn't have the bug
... ...
@@ -166,6 +166,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
166 166
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
167 167
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
168 168
 	$(top_srcdir)/m4/reorganization/yara.m4 \
169
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
169 170
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
170 171
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
171 172
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -166,6 +166,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
166 166
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
167 167
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
168 168
 	$(top_srcdir)/m4/reorganization/yara.m4 \
169
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
169 170
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
170 171
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
171 172
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -167,6 +167,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
167 167
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
168 168
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
169 169
 	$(top_srcdir)/m4/reorganization/yara.m4 \
170
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
170 171
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
171 172
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
172 173
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -171,6 +171,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
171 171
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
172 172
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
173 173
 	$(top_srcdir)/m4/reorganization/yara.m4 \
174
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
174 175
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
175 176
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
176 177
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -228,6 +228,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
228 228
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
229 229
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
230 230
 	$(top_srcdir)/m4/reorganization/yara.m4 \
231
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
231 232
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
232 233
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
233 234
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -167,6 +167,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
167 167
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
168 168
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
169 169
 	$(top_srcdir)/m4/reorganization/yara.m4 \
170
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
170 171
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
171 172
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
172 173
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -156,6 +156,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
156 156
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
157 157
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
158 158
 	$(top_srcdir)/m4/reorganization/yara.m4 \
159
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
159 160
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
160 161
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
161 162
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -168,6 +168,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
168 168
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
169 169
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
170 170
 	$(top_srcdir)/m4/reorganization/yara.m4 \
171
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
171 172
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
172 173
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
173 174
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -149,6 +149,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
149 149
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
150 150
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
151 151
 	$(top_srcdir)/m4/reorganization/yara.m4 \
152
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
152 153
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
153 154
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
154 155
 	$(top_srcdir)/m4/reorganization/bsd.m4 \
... ...
@@ -151,6 +151,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
151 151
 	$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
152 152
 	$(top_srcdir)/m4/reorganization/sha_collect.m4 \
153 153
 	$(top_srcdir)/m4/reorganization/yara.m4 \
154
+	$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
154 155
 	$(top_srcdir)/m4/reorganization/libfreshclam.m4 \
155 156
 	$(top_srcdir)/m4/reorganization/prelude.m4 \
156 157
 	$(top_srcdir)/m4/reorganization/bsd.m4 \