Browse code

generic text normalizer (bb #241) update automake files: automake complained that they were too old

git-svn: trunk@3583

Török Edvin authored on 2008/02/05 06:25:31
Showing 24 changed files
... ...
@@ -1,3 +1,8 @@
1
+Mon Feb  4 23:06:34 EET 2008 (edwin)
2
+---------------------------------
3
+  * libclamav/textnorm.[ch]: generic text normalizer (bb #241)
4
+  * configure, aclocal.m4, */Makefile.in: automake complained that they were too old
5
+
1 6
 Mon Feb  4 18:24:14 CET 2008 (tk)
2 7
 ---------------------------------
3 8
   * libclamav: fix some compiler warnings
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -447,8 +447,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
447 447
 	unique=`for i in $$list; do \
448 448
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
449 449
 	  done | \
450
-	  $(AWK) '    { files[$$0] = 1; } \
451
-	       END { for (i in files) print i; }'`; \
450
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
451
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
452 452
 	mkid -fID $$unique
453 453
 tags: TAGS
454 454
 
... ...
@@ -473,8 +473,8 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) clamav-config.h.in $(TAGS_DEPENDENCIE
473 473
 	unique=`for i in $$list; do \
474 474
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
475 475
 	  done | \
476
-	  $(AWK) '    { files[$$0] = 1; } \
477
-	       END { for (i in files) print i; }'`; \
476
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
477
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
478 478
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
479 479
 	  test -n "$$unique" || unique=$$empty_fix; \
480 480
 	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
... ...
@@ -484,13 +484,12 @@ ctags: CTAGS
484 484
 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) clamav-config.h.in $(TAGS_DEPENDENCIES) \
485 485
 		$(TAGS_FILES) $(LISP)
486 486
 	tags=; \
487
-	here=`pwd`; \
488 487
 	list='$(SOURCES) $(HEADERS) clamav-config.h.in $(LISP) $(TAGS_FILES)'; \
489 488
 	unique=`for i in $$list; do \
490 489
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
491 490
 	  done | \
492
-	  $(AWK) '    { files[$$0] = 1; } \
493
-	       END { for (i in files) print i; }'`; \
491
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
492
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
494 493
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
495 494
 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
496 495
 	     $$tags $$unique
... ...
@@ -560,6 +559,10 @@ dist-bzip2: distdir
560 560
 	tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
561 561
 	$(am__remove_distdir)
562 562
 
563
+dist-lzma: distdir
564
+	tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
565
+	$(am__remove_distdir)
566
+
563 567
 dist-tarZ: distdir
564 568
 	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
565 569
 	$(am__remove_distdir)
... ...
@@ -587,6 +590,8 @@ distcheck: dist
587 587
 	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
588 588
 	*.tar.bz2*) \
589 589
 	  bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
590
+	*.tar.lzma*) \
591
+	  unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
590 592
 	*.tar.Z*) \
591 593
 	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
592 594
 	*.shar.gz*) \
... ...
@@ -741,8 +746,8 @@ uninstall-am: uninstall-binSCRIPTS uninstall-pkgconfigDATA
741 741
 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
742 742
 	all all-am am--refresh check check-am clean clean-generic \
743 743
 	clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
744
-	dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
745
-	distclean-generic distclean-hdr distclean-libtool \
744
+	dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
745
+	distclean distclean-generic distclean-hdr distclean-libtool \
746 746
 	distclean-tags distcleancheck distdir distuninstallcheck dvi \
747 747
 	dvi-am html html-am info info-am install install-am \
748 748
 	install-binSCRIPTS install-data install-data-am install-dvi \
... ...
@@ -1,7 +1,7 @@
1
-# generated automatically by aclocal 1.10 -*- Autoconf -*-
1
+# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2 2
 
3 3
 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
-# 2005, 2006  Free Software Foundation, Inc.
4
+# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
5 5
 # This file is free software; the Free Software Foundation
6 6
 # gives unlimited permission to copy and/or distribute it,
7 7
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -11,10 +11,13 @@
11 11
 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 12
 # PARTICULAR PURPOSE.
13 13
 
14
-m4_if(m4_PACKAGE_VERSION, [2.61],,
15
-[m4_fatal([this file was generated for autoconf 2.61.
16
-You have another version of autoconf.  If you want to use that,
17
-you should regenerate the build system entirely.], [63])])
14
+m4_ifndef([AC_AUTOCONF_VERSION],
15
+  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
+m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
+[m4_warning([this file was generated for autoconf 2.61.
18
+You have another version of autoconf.  It may work, but is not guaranteed to.
19
+If you have problems, you may need to regenerate the build system entirely.
20
+To do so, use the procedure documented by the package, typically `autoreconf'.])])
18 21
 
19 22
 # lib-ld.m4 serial 3 (gettext-0.13)
20 23
 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
... ...
@@ -6708,7 +6711,7 @@ AC_SUBST([SED])
6708 6708
 AC_MSG_RESULT([$SED])
6709 6709
 ])
6710 6710
 
6711
-# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
6711
+# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
6712 6712
 #
6713 6713
 # This file is free software; the Free Software Foundation
6714 6714
 # gives unlimited permission to copy and/or distribute it,
... ...
@@ -6723,7 +6726,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION],
6723 6723
 [am__api_version='1.10'
6724 6724
 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6725 6725
 dnl require some minimum version.  Point them to the right macro.
6726
-m4_if([$1], [1.10], [],
6726
+m4_if([$1], [1.10.1], [],
6727 6727
       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6728 6728
 ])
6729 6729
 
... ...
@@ -6739,8 +6742,10 @@ m4_define([_AM_AUTOCONF_VERSION], [])
6739 6739
 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6740 6740
 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6741 6741
 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6742
-[AM_AUTOMAKE_VERSION([1.10])dnl
6743
-_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6742
+[AM_AUTOMAKE_VERSION([1.10.1])dnl
6743
+m4_ifndef([AC_AUTOCONF_VERSION],
6744
+  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
6745
+_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
6744 6746
 
6745 6747
 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6746 6748
 
... ...
@@ -7012,7 +7017,7 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7012 7012
   # each Makefile.in and add a new line on top of each file to say so.
7013 7013
   # Grep'ing the whole file is not good either: AIX grep has a line
7014 7014
   # limit of 2048, but all sed's we know have understand at least 4000.
7015
-  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
7015
+  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7016 7016
     dirpart=`AS_DIRNAME("$mf")`
7017 7017
   else
7018 7018
     continue
... ...
@@ -7060,13 +7065,13 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7060 7060
 # Do all the work for Automake.                             -*- Autoconf -*-
7061 7061
 
7062 7062
 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7063
-# 2005, 2006 Free Software Foundation, Inc.
7063
+# 2005, 2006, 2008 Free Software Foundation, Inc.
7064 7064
 #
7065 7065
 # This file is free software; the Free Software Foundation
7066 7066
 # gives unlimited permission to copy and/or distribute it,
7067 7067
 # with or without modifications, as long as this notice is preserved.
7068 7068
 
7069
-# serial 12
7069
+# serial 13
7070 7070
 
7071 7071
 # This macro actually does too much.  Some checks are only needed if
7072 7072
 # your package does certain things.  But this isn't really a big deal.
... ...
@@ -7171,16 +7176,17 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7171 7171
 # our stamp files there.
7172 7172
 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7173 7173
 [# Compute $1's index in $config_headers.
7174
+_am_arg=$1
7174 7175
 _am_stamp_count=1
7175 7176
 for _am_header in $config_headers :; do
7176 7177
   case $_am_header in
7177
-    $1 | $1:* )
7178
+    $_am_arg | $_am_arg:* )
7178 7179
       break ;;
7179 7180
     * )
7180 7181
       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7181 7182
   esac
7182 7183
 done
7183
-echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7184
+echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7184 7185
 
7185 7186
 # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7186 7187
 #
... ...
@@ -7452,7 +7458,7 @@ AC_SUBST([INSTALL_STRIP_PROGRAM])])
7452 7452
 
7453 7453
 # _AM_SUBST_NOTMAKE(VARIABLE)
7454 7454
 # ---------------------------
7455
-# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
7455
+# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
7456 7456
 # This macro is traced by Automake.
7457 7457
 AC_DEFUN([_AM_SUBST_NOTMAKE])
7458 7458
 
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -82,7 +82,7 @@ am__clamav_milter_SOURCES_DIST = $(top_srcdir)/shared/cfgparser.c \
82 82
 @BUILD_CLAMD_TRUE@@HAVE_MILTER_TRUE@	clamav-milter.$(OBJEXT)
83 83
 clamav_milter_OBJECTS = $(am_clamav_milter_OBJECTS)
84 84
 clamav_milter_LDADD = $(LDADD)
85
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
85
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
86 86
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
87 87
 am__depfiles_maybe = depfiles
88 88
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
... ...
@@ -284,8 +284,8 @@ install-sbinPROGRAMS: $(sbin_PROGRAMS)
284 284
 	     || test -f $$p1 \
285 285
 	  ; then \
286 286
 	    f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
287
-	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
288
-	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
287
+	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
288
+	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
289 289
 	  else :; fi; \
290 290
 	done
291 291
 
... ...
@@ -467,8 +467,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
467 467
 	unique=`for i in $$list; do \
468 468
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
469 469
 	  done | \
470
-	  $(AWK) '    { files[$$0] = 1; } \
471
-	       END { for (i in files) print i; }'`; \
470
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
471
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
472 472
 	mkid -fID $$unique
473 473
 tags: TAGS
474 474
 
... ...
@@ -480,8 +480,8 @@ TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
480 480
 	unique=`for i in $$list; do \
481 481
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
482 482
 	  done | \
483
-	  $(AWK) '    { files[$$0] = 1; } \
484
-	       END { for (i in files) print i; }'`; \
483
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
484
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
485 485
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
486 486
 	  test -n "$$unique" || unique=$$empty_fix; \
487 487
 	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
... ...
@@ -491,13 +491,12 @@ ctags: CTAGS
491 491
 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
492 492
 		$(TAGS_FILES) $(LISP)
493 493
 	tags=; \
494
-	here=`pwd`; \
495 494
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
496 495
 	unique=`for i in $$list; do \
497 496
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
498 497
 	  done | \
499
-	  $(AWK) '    { files[$$0] = 1; } \
500
-	       END { for (i in files) print i; }'`; \
498
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
499
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
501 500
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
502 501
 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
503 502
 	     $$tags $$unique
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -70,7 +70,7 @@ am_clamconf_OBJECTS = cfgparser.$(OBJEXT) misc.$(OBJEXT) \
70 70
 	getopt.$(OBJEXT) clamconf.$(OBJEXT)
71 71
 clamconf_OBJECTS = $(am_clamconf_OBJECTS)
72 72
 clamconf_LDADD = $(LDADD)
73
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
73
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
74 74
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
75 75
 am__depfiles_maybe = depfiles
76 76
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
... ...
@@ -263,8 +263,8 @@ install-binPROGRAMS: $(bin_PROGRAMS)
263 263
 	     || test -f $$p1 \
264 264
 	  ; then \
265 265
 	    f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
266
-	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
267
-	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
266
+	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
267
+	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
268 268
 	  else :; fi; \
269 269
 	done
270 270
 
... ...
@@ -371,8 +371,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
371 371
 	unique=`for i in $$list; do \
372 372
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
373 373
 	  done | \
374
-	  $(AWK) '    { files[$$0] = 1; } \
375
-	       END { for (i in files) print i; }'`; \
374
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
375
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
376 376
 	mkid -fID $$unique
377 377
 tags: TAGS
378 378
 
... ...
@@ -384,8 +384,8 @@ TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
384 384
 	unique=`for i in $$list; do \
385 385
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
386 386
 	  done | \
387
-	  $(AWK) '    { files[$$0] = 1; } \
388
-	       END { for (i in files) print i; }'`; \
387
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
388
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
389 389
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
390 390
 	  test -n "$$unique" || unique=$$empty_fix; \
391 391
 	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
... ...
@@ -395,13 +395,12 @@ ctags: CTAGS
395 395
 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
396 396
 		$(TAGS_FILES) $(LISP)
397 397
 	tags=; \
398
-	here=`pwd`; \
399 398
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
400 399
 	unique=`for i in $$list; do \
401 400
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
402 401
 	  done | \
403
-	  $(AWK) '    { files[$$0] = 1; } \
404
-	       END { for (i in files) print i; }'`; \
402
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
403
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
405 404
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
406 405
 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
407 406
 	     $$tags $$unique
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -90,7 +90,7 @@ am__clamd_SOURCES_DIST = $(top_srcdir)/shared/output.c \
90 90
 @BUILD_CLAMD_TRUE@	dazukoio.$(OBJEXT)
91 91
 clamd_OBJECTS = $(am_clamd_OBJECTS)
92 92
 clamd_LDADD = $(LDADD)
93
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
93
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
94 94
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
95 95
 am__depfiles_maybe = depfiles
96 96
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
... ...
@@ -312,8 +312,8 @@ install-sbinPROGRAMS: $(sbin_PROGRAMS)
312 312
 	     || test -f $$p1 \
313 313
 	  ; then \
314 314
 	    f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
315
-	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
316
-	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
315
+	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
316
+	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
317 317
 	  else :; fi; \
318 318
 	done
319 319
 
... ...
@@ -475,8 +475,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
475 475
 	unique=`for i in $$list; do \
476 476
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
477 477
 	  done | \
478
-	  $(AWK) '    { files[$$0] = 1; } \
479
-	       END { for (i in files) print i; }'`; \
478
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
479
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
480 480
 	mkid -fID $$unique
481 481
 tags: TAGS
482 482
 
... ...
@@ -488,8 +488,8 @@ TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
488 488
 	unique=`for i in $$list; do \
489 489
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
490 490
 	  done | \
491
-	  $(AWK) '    { files[$$0] = 1; } \
492
-	       END { for (i in files) print i; }'`; \
491
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
492
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
493 493
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
494 494
 	  test -n "$$unique" || unique=$$empty_fix; \
495 495
 	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
... ...
@@ -499,13 +499,12 @@ ctags: CTAGS
499 499
 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
500 500
 		$(TAGS_FILES) $(LISP)
501 501
 	tags=; \
502
-	here=`pwd`; \
503 502
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
504 503
 	unique=`for i in $$list; do \
505 504
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
506 505
 	  done | \
507
-	  $(AWK) '    { files[$$0] = 1; } \
508
-	       END { for (i in files) print i; }'`; \
506
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
507
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
509 508
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
510 509
 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
511 510
 	     $$tags $$unique
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -79,7 +79,7 @@ am__clamdscan_SOURCES_DIST = $(top_srcdir)/shared/output.c \
79 79
 @BUILD_CLAMD_TRUE@	clamdscan.$(OBJEXT) client.$(OBJEXT)
80 80
 clamdscan_OBJECTS = $(am_clamdscan_OBJECTS)
81 81
 clamdscan_LDADD = $(LDADD)
82
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
82
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
83 83
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
84 84
 am__depfiles_maybe = depfiles
85 85
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
... ...
@@ -279,8 +279,8 @@ install-binPROGRAMS: $(bin_PROGRAMS)
279 279
 	     || test -f $$p1 \
280 280
 	  ; then \
281 281
 	    f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
282
-	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
283
-	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
282
+	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
283
+	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
284 284
 	  else :; fi; \
285 285
 	done
286 286
 
... ...
@@ -418,8 +418,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
418 418
 	unique=`for i in $$list; do \
419 419
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
420 420
 	  done | \
421
-	  $(AWK) '    { files[$$0] = 1; } \
422
-	       END { for (i in files) print i; }'`; \
421
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
422
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
423 423
 	mkid -fID $$unique
424 424
 tags: TAGS
425 425
 
... ...
@@ -431,8 +431,8 @@ TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
431 431
 	unique=`for i in $$list; do \
432 432
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
433 433
 	  done | \
434
-	  $(AWK) '    { files[$$0] = 1; } \
435
-	       END { for (i in files) print i; }'`; \
434
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
435
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
436 436
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
437 437
 	  test -n "$$unique" || unique=$$empty_fix; \
438 438
 	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
... ...
@@ -442,13 +442,12 @@ ctags: CTAGS
442 442
 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
443 443
 		$(TAGS_FILES) $(LISP)
444 444
 	tags=; \
445
-	here=`pwd`; \
446 445
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
447 446
 	unique=`for i in $$list; do \
448 447
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
449 448
 	  done | \
450
-	  $(AWK) '    { files[$$0] = 1; } \
451
-	       END { for (i in files) print i; }'`; \
449
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
450
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
452 451
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
453 452
 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
454 453
 	     $$tags $$unique
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -73,7 +73,7 @@ am_clamscan_OBJECTS = output.$(OBJEXT) getopt.$(OBJEXT) \
73 73
 	treewalk.$(OBJEXT)
74 74
 clamscan_OBJECTS = $(am_clamscan_OBJECTS)
75 75
 clamscan_LDADD = $(LDADD)
76
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
76
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
77 77
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
78 78
 am__depfiles_maybe = depfiles
79 79
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
... ...
@@ -278,8 +278,8 @@ install-binPROGRAMS: $(bin_PROGRAMS)
278 278
 	     || test -f $$p1 \
279 279
 	  ; then \
280 280
 	    f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
281
-	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
282
-	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
281
+	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
282
+	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
283 283
 	  else :; fi; \
284 284
 	done
285 285
 
... ...
@@ -419,8 +419,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
419 419
 	unique=`for i in $$list; do \
420 420
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
421 421
 	  done | \
422
-	  $(AWK) '    { files[$$0] = 1; } \
423
-	       END { for (i in files) print i; }'`; \
422
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
423
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
424 424
 	mkid -fID $$unique
425 425
 tags: TAGS
426 426
 
... ...
@@ -432,8 +432,8 @@ TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
432 432
 	unique=`for i in $$list; do \
433 433
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
434 434
 	  done | \
435
-	  $(AWK) '    { files[$$0] = 1; } \
436
-	       END { for (i in files) print i; }'`; \
435
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
436
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
437 437
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
438 438
 	  test -n "$$unique" || unique=$$empty_fix; \
439 439
 	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
... ...
@@ -443,13 +443,12 @@ ctags: CTAGS
443 443
 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
444 444
 		$(TAGS_FILES) $(LISP)
445 445
 	tags=; \
446
-	here=`pwd`; \
447 446
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
448 447
 	unique=`for i in $$list; do \
449 448
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
450 449
 	  done | \
451
-	  $(AWK) '    { files[$$0] = 1; } \
452
-	       END { for (i in files) print i; }'`; \
450
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
451
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
453 452
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
454 453
 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
455 454
 	     $$tags $$unique
... ...
@@ -1,9 +1,9 @@
1 1
 #! /bin/sh
2 2
 # depcomp - compile a program generating dependencies as side-effects
3 3
 
4
-scriptversion=2006-10-15.18
4
+scriptversion=2007-03-29.01
5 5
 
6
-# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
6
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
7 7
 # Foundation, Inc.
8 8
 
9 9
 # This program is free software; you can redistribute it and/or modify
... ...
@@ -215,34 +215,39 @@ aix)
215 215
   # current directory.  Also, the AIX compiler puts `$object:' at the
216 216
   # start of each line; $object doesn't have directory information.
217 217
   # Version 6 uses the directory in both cases.
218
-  stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
219
-  tmpdepfile="$stripped.u"
218
+  dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
219
+  test "x$dir" = "x$object" && dir=
220
+  base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
220 221
   if test "$libtool" = yes; then
222
+    tmpdepfile1=$dir$base.u
223
+    tmpdepfile2=$base.u
224
+    tmpdepfile3=$dir.libs/$base.u
221 225
     "$@" -Wc,-M
222 226
   else
227
+    tmpdepfile1=$dir$base.u
228
+    tmpdepfile2=$dir$base.u
229
+    tmpdepfile3=$dir$base.u
223 230
     "$@" -M
224 231
   fi
225 232
   stat=$?
226 233
 
227
-  if test -f "$tmpdepfile"; then :
228
-  else
229
-    stripped=`echo "$stripped" | sed 's,^.*/,,'`
230
-    tmpdepfile="$stripped.u"
231
-  fi
232
-
233 234
   if test $stat -eq 0; then :
234 235
   else
235
-    rm -f "$tmpdepfile"
236
+    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
236 237
     exit $stat
237 238
   fi
238 239
 
240
+  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
241
+  do
242
+    test -f "$tmpdepfile" && break
243
+  done
239 244
   if test -f "$tmpdepfile"; then
240
-    outname="$stripped.o"
241 245
     # Each line is of the form `foo.o: dependent.h'.
242 246
     # Do two passes, one to just change these to
243 247
     # `$object: dependent.h' and one to simply `dependent.h:'.
244
-    sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
245
-    sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
248
+    sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
249
+    # That's a tab and a space in the [].
250
+    sed -e 's,^.*\.[a-z]*:[	 ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
246 251
   else
247 252
     # The sourcefile does not contain any dependencies, so just
248 253
     # store a dummy comment line, to avoid errors with the Makefile
... ...
@@ -1,7 +1,7 @@
1 1
 #!/bin/sh
2 2
 # install - install a program, script, or datafile
3 3
 
4
-scriptversion=2006-10-14.15
4
+scriptversion=2006-12-25.00
5 5
 
6 6
 # This originates from X11R5 (mit/util/scripts/install.sh), which was
7 7
 # later released in X11R6 (xc/config/util/install.sh) with the
... ...
@@ -48,7 +48,7 @@ IFS=" ""	$nl"
48 48
 # set DOITPROG to echo to test this script
49 49
 
50 50
 # Don't use :- since 4.3BSD and earlier shells don't like it.
51
-doit="${DOITPROG-}"
51
+doit=${DOITPROG-}
52 52
 if test -z "$doit"; then
53 53
   doit_exec=exec
54 54
 else
... ...
@@ -58,34 +58,49 @@ fi
58 58
 # Put in absolute file names if you don't have them in your path;
59 59
 # or use environment vars.
60 60
 
61
-mvprog="${MVPROG-mv}"
62
-cpprog="${CPPROG-cp}"
63
-chmodprog="${CHMODPROG-chmod}"
64
-chownprog="${CHOWNPROG-chown}"
65
-chgrpprog="${CHGRPPROG-chgrp}"
66
-stripprog="${STRIPPROG-strip}"
67
-rmprog="${RMPROG-rm}"
68
-mkdirprog="${MKDIRPROG-mkdir}"
61
+chgrpprog=${CHGRPPROG-chgrp}
62
+chmodprog=${CHMODPROG-chmod}
63
+chownprog=${CHOWNPROG-chown}
64
+cmpprog=${CMPPROG-cmp}
65
+cpprog=${CPPROG-cp}
66
+mkdirprog=${MKDIRPROG-mkdir}
67
+mvprog=${MVPROG-mv}
68
+rmprog=${RMPROG-rm}
69
+stripprog=${STRIPPROG-strip}
70
+
71
+posix_glob='?'
72
+initialize_posix_glob='
73
+  test "$posix_glob" != "?" || {
74
+    if (set -f) 2>/dev/null; then
75
+      posix_glob=
76
+    else
77
+      posix_glob=:
78
+    fi
79
+  }
80
+'
69 81
 
70
-posix_glob=
71 82
 posix_mkdir=
72 83
 
73 84
 # Desired mode of installed file.
74 85
 mode=0755
75 86
 
87
+chgrpcmd=
76 88
 chmodcmd=$chmodprog
77 89
 chowncmd=
78
-chgrpcmd=
79
-stripcmd=
90
+mvcmd=$mvprog
80 91
 rmcmd="$rmprog -f"
81
-mvcmd="$mvprog"
92
+stripcmd=
93
+
82 94
 src=
83 95
 dst=
84 96
 dir_arg=
85
-dstarg=
97
+dst_arg=
98
+
99
+copy_on_change=false
86 100
 no_target_directory=
87 101
 
88
-usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
102
+usage="\
103
+Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
89 104
    or: $0 [OPTION]... SRCFILES... DIRECTORY
90 105
    or: $0 [OPTION]... -t DIRECTORY SRCFILES...
91 106
    or: $0 [OPTION]... -d DIRECTORIES...
... ...
@@ -95,65 +110,55 @@ In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
95 95
 In the 4th, create DIRECTORIES.
96 96
 
97 97
 Options:
98
--c         (ignored)
99
--d         create directories instead of installing files.
100
--g GROUP   $chgrpprog installed files to GROUP.
101
--m MODE    $chmodprog installed files to MODE.
102
--o USER    $chownprog installed files to USER.
103
--s         $stripprog installed files.
104
--t DIRECTORY  install into DIRECTORY.
105
--T         report an error if DSTFILE is a directory.
98
+     --help     display this help and exit.
99
+     --version  display version info and exit.
100
+
101
+  -c            (ignored)
102
+  -C            install only if different (preserve the last data modification time)
103
+  -d            create directories instead of installing files.
104
+  -g GROUP      $chgrpprog installed files to GROUP.
105
+  -m MODE       $chmodprog installed files to MODE.
106
+  -o USER       $chownprog installed files to USER.
107
+  -s            $stripprog installed files.
108
+  -t DIRECTORY  install into DIRECTORY.
109
+  -T            report an error if DSTFILE is a directory.
106 110
 
107 111
 Environment variables override the default commands:
108
-  CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
112
+  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
113
+  RMPROG STRIPPROG
109 114
 "
110 115
 
111 116
 while test $# -ne 0; do
112 117
   case $1 in
113
-    -c) shift
114
-        continue;;
118
+    -c) ;;
119
+
120
+    -C) copy_on_change=true;;
115 121
 
116
-    -d) dir_arg=true
117
-        shift
118
-        continue;;
122
+    -d) dir_arg=true;;
119 123
 
120 124
     -g) chgrpcmd="$chgrpprog $2"
121
-        shift
122
-        shift
123
-        continue;;
125
+	shift;;
124 126
 
125 127
     --help) echo "$usage"; exit $?;;
126 128
 
127 129
     -m) mode=$2
128
-        shift
129
-        shift
130 130
 	case $mode in
131 131
 	  *' '* | *'	'* | *'
132 132
 '*	  | *'*'* | *'?'* | *'['*)
133 133
 	    echo "$0: invalid mode: $mode" >&2
134 134
 	    exit 1;;
135 135
 	esac
136
-        continue;;
136
+	shift;;
137 137
 
138 138
     -o) chowncmd="$chownprog $2"
139
-        shift
140
-        shift
141
-        continue;;
139
+	shift;;
142 140
 
143
-    -s) stripcmd=$stripprog
144
-        shift
145
-        continue;;
141
+    -s) stripcmd=$stripprog;;
146 142
 
147
-    -t) dstarg=$2
148
-	shift
149
-	shift
150
-	continue;;
143
+    -t) dst_arg=$2
144
+	shift;;
151 145
 
152
-    -T) no_target_directory=true
153
-	shift
154
-	continue;;
146
+    -T) no_target_directory=true;;
155 147
 
156 148
     --version) echo "$0 $scriptversion"; exit $?;;
157 149
 
... ...
@@ -165,21 +170,22 @@ while test $# -ne 0; do
165 165
 
166 166
     *)  break;;
167 167
   esac
168
+  shift
168 169
 done
169 170
 
170
-if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
171
+if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
171 172
   # When -d is used, all remaining arguments are directories to create.
172 173
   # When -t is used, the destination is already specified.
173 174
   # Otherwise, the last argument is the destination.  Remove it from $@.
174 175
   for arg
175 176
   do
176
-    if test -n "$dstarg"; then
177
+    if test -n "$dst_arg"; then
177 178
       # $@ is not empty: it contains at least $arg.
178
-      set fnord "$@" "$dstarg"
179
+      set fnord "$@" "$dst_arg"
179 180
       shift # fnord
180 181
     fi
181 182
     shift # arg
182
-    dstarg=$arg
183
+    dst_arg=$arg
183 184
   done
184 185
 fi
185 186
 
... ...
@@ -224,7 +230,7 @@ for src
224 224
 do
225 225
   # Protect names starting with `-'.
226 226
   case $src in
227
-    -*) src=./$src ;;
227
+    -*) src=./$src;;
228 228
   esac
229 229
 
230 230
   if test -n "$dir_arg"; then
... ...
@@ -242,22 +248,22 @@ do
242 242
       exit 1
243 243
     fi
244 244
 
245
-    if test -z "$dstarg"; then
245
+    if test -z "$dst_arg"; then
246 246
       echo "$0: no destination specified." >&2
247 247
       exit 1
248 248
     fi
249 249
 
250
-    dst=$dstarg
250
+    dst=$dst_arg
251 251
     # Protect names starting with `-'.
252 252
     case $dst in
253
-      -*) dst=./$dst ;;
253
+      -*) dst=./$dst;;
254 254
     esac
255 255
 
256 256
     # If destination is a directory, append the input filename; won't work
257 257
     # if double slashes aren't ignored.
258 258
     if test -d "$dst"; then
259 259
       if test -n "$no_target_directory"; then
260
-	echo "$0: $dstarg: Is a directory" >&2
260
+	echo "$0: $dst_arg: Is a directory" >&2
261 261
 	exit 1
262 262
       fi
263 263
       dstdir=$dst
... ...
@@ -378,26 +384,19 @@ do
378 378
       # directory the slow way, step by step, checking for races as we go.
379 379
 
380 380
       case $dstdir in
381
-	/*) prefix=/ ;;
382
-	-*) prefix=./ ;;
383
-	*)  prefix= ;;
381
+	/*) prefix='/';;
382
+	-*) prefix='./';;
383
+	*)  prefix='';;
384 384
       esac
385 385
 
386
-      case $posix_glob in
387
-        '')
388
-	  if (set -f) 2>/dev/null; then
389
-	    posix_glob=true
390
-	  else
391
-	    posix_glob=false
392
-	  fi ;;
393
-      esac
386
+      eval "$initialize_posix_glob"
394 387
 
395 388
       oIFS=$IFS
396 389
       IFS=/
397
-      $posix_glob && set -f
390
+      $posix_glob set -f
398 391
       set fnord $dstdir
399 392
       shift
400
-      $posix_glob && set +f
393
+      $posix_glob set +f
401 394
       IFS=$oIFS
402 395
 
403 396
       prefixes=
... ...
@@ -459,41 +458,54 @@ do
459 459
     # ignore errors from any of these, just make sure not to ignore
460 460
     # errors from the above "$doit $cpprog $src $dsttmp" command.
461 461
     #
462
-    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
463
-      && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
464
-      && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
465
-      && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
466
-
467
-    # Now rename the file to the real destination.
468
-    { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
469
-      || {
470
-	   # The rename failed, perhaps because mv can't rename something else
471
-	   # to itself, or perhaps because mv is so ancient that it does not
472
-	   # support -f.
473
-
474
-	   # Now remove or move aside any old file at destination location.
475
-	   # We try this two ways since rm can't unlink itself on some
476
-	   # systems and the destination file might be busy for other
477
-	   # reasons.  In this case, the final cleanup might fail but the new
478
-	   # file should still install successfully.
479
-	   {
480
-	     if test -f "$dst"; then
481
-	       $doit $rmcmd -f "$dst" 2>/dev/null \
482
-	       || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
483
-		     && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
484
-	       || {
485
-		 echo "$0: cannot unlink or rename $dst" >&2
486
-		 (exit 1); exit 1
487
-	       }
488
-	     else
489
-	       :
490
-	     fi
491
-	   } &&
492
-
493
-	   # Now rename the file to the real destination.
494
-	   $doit $mvcmd "$dsttmp" "$dst"
495
-	 }
496
-    } || exit 1
462
+    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
463
+    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
464
+    { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
465
+    { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
466
+
467
+    # If -C, don't bother to copy if it wouldn't change the file.
468
+    if $copy_on_change &&
469
+       old=`LC_ALL=C ls -dlL "$dst"	2>/dev/null` &&
470
+       new=`LC_ALL=C ls -dlL "$dsttmp"	2>/dev/null` &&
471
+
472
+       eval "$initialize_posix_glob" &&
473
+       $posix_glob set -f &&
474
+       set X $old && old=:$2:$4:$5:$6 &&
475
+       set X $new && new=:$2:$4:$5:$6 &&
476
+       $posix_glob set +f &&
477
+
478
+       test "$old" = "$new" &&
479
+       $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
480
+    then
481
+      rm -f "$dsttmp"
482
+    else
483
+      # Rename the file to the real destination.
484
+      $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
485
+
486
+      # The rename failed, perhaps because mv can't rename something else
487
+      # to itself, or perhaps because mv is so ancient that it does not
488
+      # support -f.
489
+      {
490
+	# Now remove or move aside any old file at destination location.
491
+	# We try this two ways since rm can't unlink itself on some
492
+	# systems and the destination file might be busy for other
493
+	# reasons.  In this case, the final cleanup might fail but the new
494
+	# file should still install successfully.
495
+	{
496
+	  test ! -f "$dst" ||
497
+	  $doit $rmcmd -f "$dst" 2>/dev/null ||
498
+	  { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
499
+	    { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
500
+	  } ||
501
+	  { echo "$0: cannot unlink or rename $dst" >&2
502
+	    (exit 1); exit 1
503
+	  }
504
+	} &&
505
+
506
+	# Now rename the file to the real destination.
507
+	$doit $mvcmd "$dsttmp" "$dst"
508
+      }
509
+    fi || exit 1
497 510
 
498 511
     trap '' 0
499 512
   fi
... ...
@@ -19273,21 +19273,22 @@ echo "$as_me: $ac_file is unchanged" >&6;}
19273 19273
   fi
19274 19274
   rm -f "$tmp/out12"
19275 19275
 # Compute $ac_file's index in $config_headers.
19276
+_am_arg=$ac_file
19276 19277
 _am_stamp_count=1
19277 19278
 for _am_header in $config_headers :; do
19278 19279
   case $_am_header in
19279
-    $ac_file | $ac_file:* )
19280
+    $_am_arg | $_am_arg:* )
19280 19281
       break ;;
19281 19282
     * )
19282 19283
       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19283 19284
   esac
19284 19285
 done
19285
-echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
19286
-$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19287
-	 X$ac_file : 'X\(//\)[^/]' \| \
19288
-	 X$ac_file : 'X\(//\)$' \| \
19289
-	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
19290
-echo X$ac_file |
19286
+echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19287
+$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19288
+	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19289
+	 X"$_am_arg" : 'X\(//\)$' \| \
19290
+	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19291
+echo X"$_am_arg" |
19291 19292
     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19292 19293
 	    s//\1/
19293 19294
 	    q
... ...
@@ -19324,7 +19325,7 @@ echo "$as_me: executing $ac_file commands" >&6;}
19324 19324
   # each Makefile.in and add a new line on top of each file to say so.
19325 19325
   # Grep'ing the whole file is not good either: AIX grep has a line
19326 19326
   # limit of 2048, but all sed's we know have understand at least 4000.
19327
-  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
19327
+  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19328 19328
     dirpart=`$as_dirname -- "$mf" ||
19329 19329
 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19330 19330
 	 X"$mf" : 'X\(//\)[^/]' \| \
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -75,7 +75,7 @@ am_freshclam_OBJECTS = output.$(OBJEXT) cfgparser.$(OBJEXT) \
75 75
 	mirman.$(OBJEXT)
76 76
 freshclam_OBJECTS = $(am_freshclam_OBJECTS)
77 77
 freshclam_LDADD = $(LDADD)
78
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
78
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
79 79
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
80 80
 am__depfiles_maybe = depfiles
81 81
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
... ...
@@ -289,8 +289,8 @@ install-binPROGRAMS: $(bin_PROGRAMS)
289 289
 	     || test -f $$p1 \
290 290
 	  ; then \
291 291
 	    f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
292
-	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
293
-	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
292
+	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
293
+	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
294 294
 	  else :; fi; \
295 295
 	done
296 296
 
... ...
@@ -478,8 +478,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
478 478
 	unique=`for i in $$list; do \
479 479
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
480 480
 	  done | \
481
-	  $(AWK) '    { files[$$0] = 1; } \
482
-	       END { for (i in files) print i; }'`; \
481
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
482
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
483 483
 	mkid -fID $$unique
484 484
 tags: TAGS
485 485
 
... ...
@@ -491,8 +491,8 @@ TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
491 491
 	unique=`for i in $$list; do \
492 492
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
493 493
 	  done | \
494
-	  $(AWK) '    { files[$$0] = 1; } \
495
-	       END { for (i in files) print i; }'`; \
494
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
495
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
496 496
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
497 497
 	  test -n "$$unique" || unique=$$empty_fix; \
498 498
 	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
... ...
@@ -502,13 +502,12 @@ ctags: CTAGS
502 502
 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
503 503
 		$(TAGS_FILES) $(LISP)
504 504
 	tags=; \
505
-	here=`pwd`; \
506 505
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
507 506
 	unique=`for i in $$list; do \
508 507
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
509 508
 	  done | \
510
-	  $(AWK) '    { files[$$0] = 1; } \
511
-	       END { for (i in files) print i; }'`; \
509
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
510
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
512 511
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
513 512
 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
514 513
 	     $$tags $$unique
... ...
@@ -180,7 +180,9 @@ libclamav_la_SOURCES = \
180 180
 	lzma_iface.c \
181 181
 	lzma_iface.h \
182 182
 	explode.c \
183
-	explode.h
183
+	explode.h \
184
+	textnorm.c \
185
+	textnorm.h
184 186
 
185 187
 libclamav_internal_utils_la_SOURCES=str.c \
186 188
 				    str.h \
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -89,7 +89,7 @@ am_libclamav_la_OBJECTS = matcher-ac.lo matcher-bm.lo matcher.lo \
89 89
 	pdf.lo spin.lo yc.lo elf.lo sis.lo uuencode.lo phishcheck.lo \
90 90
 	phish_domaincheck_db.lo phish_whitelist.lo regex_list.lo \
91 91
 	mspack.lo cab.lo entconv.lo hashtab.lo dconf.lo lzma_iface.lo \
92
-	explode.lo
92
+	explode.lo textnorm.lo
93 93
 libclamav_la_OBJECTS = $(am_libclamav_la_OBJECTS)
94 94
 libclamav_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
95 95
 	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
... ...
@@ -104,7 +104,7 @@ libclamav_internal_utils_la_LINK = $(LIBTOOL) --tag=CC \
104 104
 	$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
105 105
 	$(libclamav_internal_utils_la_CFLAGS) $(CFLAGS) \
106 106
 	$(libclamav_internal_utils_la_LDFLAGS) $(LDFLAGS) -o $@
107
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
107
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
108 108
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
109 109
 am__depfiles_maybe = depfiles
110 110
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
... ...
@@ -412,7 +412,9 @@ libclamav_la_SOURCES = \
412 412
 	lzma_iface.c \
413 413
 	lzma_iface.h \
414 414
 	explode.c \
415
-	explode.h
415
+	explode.h \
416
+	textnorm.c \
417
+	textnorm.h
416 418
 
417 419
 libclamav_internal_utils_la_SOURCES = str.c \
418 420
 				    str.h \
... ...
@@ -463,8 +465,8 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
463 463
 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
464 464
 	  if test -f $$p; then \
465 465
 	    f=$(am__strip_dir) \
466
-	    echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
467
-	    $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
466
+	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
467
+	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
468 468
 	  else :; fi; \
469 469
 	done
470 470
 
... ...
@@ -472,8 +474,8 @@ uninstall-libLTLIBRARIES:
472 472
 	@$(NORMAL_UNINSTALL)
473 473
 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
474 474
 	  p=$(am__strip_dir) \
475
-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
476
-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
475
+	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
476
+	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
477 477
 	done
478 478
 
479 479
 clean-libLTLIBRARIES:
... ...
@@ -563,6 +565,7 @@ distclean-compile:
563 563
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/table.Plo@am__quote@
564 564
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text.Plo@am__quote@
565 565
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/textdet.Plo@am__quote@
566
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/textnorm.Plo@am__quote@
566 567
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tnef.Plo@am__quote@
567 568
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unarj.Plo@am__quote@
568 569
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unsp.Plo@am__quote@
... ...
@@ -757,8 +760,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
757 757
 	unique=`for i in $$list; do \
758 758
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
759 759
 	  done | \
760
-	  $(AWK) '    { files[$$0] = 1; } \
761
-	       END { for (i in files) print i; }'`; \
760
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
761
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
762 762
 	mkid -fID $$unique
763 763
 tags: TAGS
764 764
 
... ...
@@ -783,8 +786,8 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
783 783
 	unique=`for i in $$list; do \
784 784
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
785 785
 	  done | \
786
-	  $(AWK) '    { files[$$0] = 1; } \
787
-	       END { for (i in files) print i; }'`; \
786
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
787
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
788 788
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
789 789
 	  test -n "$$unique" || unique=$$empty_fix; \
790 790
 	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
... ...
@@ -794,13 +797,12 @@ ctags: CTAGS
794 794
 CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
795 795
 		$(TAGS_FILES) $(LISP)
796 796
 	tags=; \
797
-	here=`pwd`; \
798 797
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
799 798
 	unique=`for i in $$list; do \
800 799
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
801 800
 	  done | \
802
-	  $(AWK) '    { files[$$0] = 1; } \
803
-	       END { for (i in files) print i; }'`; \
801
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
802
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
804 803
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
805 804
 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
806 805
 	     $$tags $$unique
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -67,7 +67,7 @@ LTLIBRARIES = $(noinst_LTLIBRARIES)
67 67
 liblzma_la_LIBADD =
68 68
 am_liblzma_la_OBJECTS = LzmaStateDecode.lo
69 69
 liblzma_la_OBJECTS = $(am_liblzma_la_OBJECTS)
70
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
70
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
71 71
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
72 72
 am__depfiles_maybe = depfiles
73 73
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
... ...
@@ -299,8 +299,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
299 299
 	unique=`for i in $$list; do \
300 300
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
301 301
 	  done | \
302
-	  $(AWK) '    { files[$$0] = 1; } \
303
-	       END { for (i in files) print i; }'`; \
302
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
303
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
304 304
 	mkid -fID $$unique
305 305
 tags: TAGS
306 306
 
... ...
@@ -312,8 +312,8 @@ TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
312 312
 	unique=`for i in $$list; do \
313 313
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
314 314
 	  done | \
315
-	  $(AWK) '    { files[$$0] = 1; } \
316
-	       END { for (i in files) print i; }'`; \
315
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
316
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
317 317
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
318 318
 	  test -n "$$unique" || unique=$$empty_fix; \
319 319
 	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
... ...
@@ -323,13 +323,12 @@ ctags: CTAGS
323 323
 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
324 324
 		$(TAGS_FILES) $(LISP)
325 325
 	tags=; \
326
-	here=`pwd`; \
327 326
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
328 327
 	unique=`for i in $$list; do \
329 328
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
330 329
 	  done | \
331
-	  $(AWK) '    { files[$$0] = 1; } \
332
-	       END { for (i in files) print i; }'`; \
330
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
331
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
333 332
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
334 333
 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
335 334
 	     $$tags $$unique
336 335
new file mode 100644
... ...
@@ -0,0 +1,117 @@
0
+/*
1
+ *  Generic text normalizer.
2
+ *
3
+ *  Copyright (C) 2008 Török Edvin <edwin@clamav.net>
4
+ *
5
+ *  This program is free software; you can redistribute it and/or modify
6
+ *  it under the terms of the GNU General Public License version 2 as 
7
+ *  published by the Free Software Foundation.
8
+ *
9
+ *  This program is distributed in the hope that it will be useful,
10
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ *  GNU General Public License for more details.
13
+ *
14
+ *  You should have received a copy of the GNU General Public License
15
+ *  along with this program; if not, write to the Free Software
16
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17
+ *  MA 02110-1301, USA.
18
+ *
19
+ */
20
+
21
+#include <stdlib.h>
22
+#include <stdio.h>
23
+#include <ctype.h>
24
+#include "clamav.h"
25
+#include "textnorm.h"
26
+
27
+int text_normalize_init(struct text_norm_state *state, unsigned char *out, size_t out_len)
28
+{
29
+	if(!state) {
30
+		return CL_ENULLARG;
31
+	}
32
+	state->out = out;
33
+	state->out_len = out_len;
34
+	state->space_written = 0;
35
+	return CL_SUCCESS;
36
+}
37
+
38
+void text_normalize_reset(struct text_norm_state* state)
39
+{
40
+	state->out_pos = 0;
41
+	state->space_written = 0;
42
+}
43
+
44
+enum normalize_action {
45
+	NORMALIZE_COPY,
46
+	NORMALIZE_SKIP,
47
+	NORMALIZE_AS_WHITESPACE,
48
+	NORMALIZE_ADD_32
49
+};
50
+
51
+/* use shorter names in the table */
52
+#define IGN NORMALIZE_SKIP
53
+#define WSP NORMALIZE_AS_WHITESPACE
54
+#define A32 NORMALIZE_ADD_32
55
+#define NOP NORMALIZE_COPY
56
+
57
+/*
58
+ * whitespace: \t, \n, \f, \v, \r, [ ]
59
+ * nop: all characters 0x20 < c < 0x80, that are not A32 and WSP
60
+ * tolowercase: all uppercase characters
61
+ * ignore: control character < 0x20 that are not whitespace, and all > 0x7f
62
+ */
63
+
64
+static const enum normalize_action char_action[256] = {
65
+	IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, WSP, WSP, WSP, WSP, WSP, IGN, IGN,
66
+	IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN,
67
+	WSP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP,/* 0x20 - 0x2f */
68
+	NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP,
69
+	NOP, A32, A32, A32, A32, A32, A32, A32, A32, A32, A32, A32, A32, A32, A32, A32,
70
+        A32, A32, A32, A32, A32, A32, A32, A32, A32, A32, A32, NOP, NOP, NOP, NOP, NOP,
71
+	NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP,
72
+	NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP,/* 0x70 - 0x7f */
73
+	IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN,
74
+	IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN,
75
+	IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN,
76
+	IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN,
77
+	IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN,
78
+	IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN,
79
+	IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN,
80
+	IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN, IGN
81
+};
82
+
83
+/* Normalizes the text at @buf of length @buf_len, @buf can include \0 characters.
84
+ * Stores the normalized text in @state's buffer. 
85
+ * Returns how many bytes it consumed of the input. */
86
+size_t text_normalize_buffer(struct text_norm_state *state, const unsigned char *buf, const size_t buf_len)
87
+{
88
+	size_t i;
89
+	const unsigned char *out_end = state->out + state->out_len;
90
+	unsigned char *p = state->out + state->out_pos;
91
+
92
+	for(i=0; i < buf_len && p < out_end; i++) {
93
+		unsigned char c = buf[i];
94
+		switch(char_action[c]) {
95
+			case NORMALIZE_SKIP:
96
+				continue;
97
+			case NORMALIZE_AS_WHITESPACE:
98
+				/* convert consecutive whitespaces to a single space */
99
+				if(!state->space_written) {
100
+					*p++ = ' ';
101
+				}
102
+				state->space_written = 1;
103
+				continue;
104
+			case NORMALIZE_ADD_32:
105
+				/* aka uppercase to lowercase */
106
+				c += 32;
107
+				/* fall through */
108
+			case NORMALIZE_COPY:
109
+				state->space_written = 0;
110
+				*p++ = c;
111
+		}
112
+	}
113
+	state->out_pos = p - state->out;
114
+	return i;
115
+}
116
+
0 117
new file mode 100644
... ...
@@ -0,0 +1,30 @@
0
+/*
1
+ *  Generic text normalizer.
2
+ *
3
+ *  Copyright (C) 2008 Török Edvin <edwin@clamav.net>
4
+ *
5
+ *  This program is free software; you can redistribute it and/or modify
6
+ *  it under the terms of the GNU General Public License version 2 as 
7
+ *  published by the Free Software Foundation.
8
+ *
9
+ *  This program is distributed in the hope that it will be useful,
10
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ *  GNU General Public License for more details.
13
+ *
14
+ *  You should have received a copy of the GNU General Public License
15
+ *  along with this program; if not, write to the Free Software
16
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17
+ *  MA 02110-1301, USA.
18
+ */
19
+
20
+struct text_norm_state {
21
+	unsigned char *out;
22
+	size_t out_len;
23
+	size_t out_pos;
24
+	int space_written;
25
+};
26
+
27
+int text_normalize_init(struct text_norm_state *state, unsigned char *out, size_t out_len);
28
+void text_normalize_reset(struct text_norm_state* state);
29
+size_t text_normalize_buffer(struct text_norm_state *state, const unsigned char *buf, const size_t buf_len);
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -71,7 +71,7 @@ libclamunrar_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
71 71
 	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
72 72
 	$(libclamunrar_la_LDFLAGS) $(LDFLAGS) -o $@
73 73
 @ENABLE_UNRAR_TRUE@am_libclamunrar_la_rpath = -rpath $(libdir)
74
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
74
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
75 75
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
76 76
 am__depfiles_maybe = depfiles
77 77
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
... ...
@@ -276,8 +276,8 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
276 276
 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
277 277
 	  if test -f $$p; then \
278 278
 	    f=$(am__strip_dir) \
279
-	    echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
280
-	    $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
279
+	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
280
+	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
281 281
 	  else :; fi; \
282 282
 	done
283 283
 
... ...
@@ -285,8 +285,8 @@ uninstall-libLTLIBRARIES:
285 285
 	@$(NORMAL_UNINSTALL)
286 286
 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
287 287
 	  p=$(am__strip_dir) \
288
-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
289
-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
288
+	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
289
+	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
290 290
 	done
291 291
 
292 292
 clean-libLTLIBRARIES:
... ...
@@ -347,8 +347,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
347 347
 	unique=`for i in $$list; do \
348 348
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 349
 	  done | \
350
-	  $(AWK) '    { files[$$0] = 1; } \
351
-	       END { for (i in files) print i; }'`; \
350
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
351
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
352 352
 	mkid -fID $$unique
353 353
 tags: TAGS
354 354
 
... ...
@@ -360,8 +360,8 @@ TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
360 360
 	unique=`for i in $$list; do \
361 361
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
362 362
 	  done | \
363
-	  $(AWK) '    { files[$$0] = 1; } \
364
-	       END { for (i in files) print i; }'`; \
363
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
364
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
365 365
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
366 366
 	  test -n "$$unique" || unique=$$empty_fix; \
367 367
 	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
... ...
@@ -371,13 +371,12 @@ ctags: CTAGS
371 371
 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
372 372
 		$(TAGS_FILES) $(LISP)
373 373
 	tags=; \
374
-	here=`pwd`; \
375 374
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
376 375
 	unique=`for i in $$list; do \
377 376
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
378 377
 	  done | \
379
-	  $(AWK) '    { files[$$0] = 1; } \
380
-	       END { for (i in files) print i; }'`; \
378
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
379
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
381 380
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
382 381
 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
383 382
 	     $$tags $$unique
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -66,7 +66,7 @@ libclamunrar_iface_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
66 66
 	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
67 67
 	$(libclamunrar_iface_la_LDFLAGS) $(LDFLAGS) -o $@
68 68
 @ENABLE_UNRAR_TRUE@am_libclamunrar_iface_la_rpath = -rpath $(libdir)
69
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
69
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
70 70
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
71 71
 am__depfiles_maybe = depfiles
72 72
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
... ...
@@ -257,8 +257,8 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES)
257 257
 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
258 258
 	  if test -f $$p; then \
259 259
 	    f=$(am__strip_dir) \
260
-	    echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
261
-	    $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
260
+	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
261
+	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
262 262
 	  else :; fi; \
263 263
 	done
264 264
 
... ...
@@ -266,8 +266,8 @@ uninstall-libLTLIBRARIES:
266 266
 	@$(NORMAL_UNINSTALL)
267 267
 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
268 268
 	  p=$(am__strip_dir) \
269
-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
270
-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
269
+	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
270
+	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
271 271
 	done
272 272
 
273 273
 clean-libLTLIBRARIES:
... ...
@@ -321,8 +321,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
321 321
 	unique=`for i in $$list; do \
322 322
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
323 323
 	  done | \
324
-	  $(AWK) '    { files[$$0] = 1; } \
325
-	       END { for (i in files) print i; }'`; \
324
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
325
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
326 326
 	mkid -fID $$unique
327 327
 tags: TAGS
328 328
 
... ...
@@ -334,8 +334,8 @@ TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
334 334
 	unique=`for i in $$list; do \
335 335
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 336
 	  done | \
337
-	  $(AWK) '    { files[$$0] = 1; } \
338
-	       END { for (i in files) print i; }'`; \
337
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
338
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
339 339
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
340 340
 	  test -n "$$unique" || unique=$$empty_fix; \
341 341
 	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
... ...
@@ -345,13 +345,12 @@ ctags: CTAGS
345 345
 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
346 346
 		$(TAGS_FILES) $(LISP)
347 347
 	tags=; \
348
-	here=`pwd`; \
349 348
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
350 349
 	unique=`for i in $$list; do \
351 350
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
352 351
 	  done | \
353
-	  $(AWK) '    { files[$$0] = 1; } \
354
-	       END { for (i in files) print i; }'`; \
352
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
353
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
355 354
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
356 355
 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
357 356
 	     $$tags $$unique
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.
... ...
@@ -72,7 +72,7 @@ am_sigtool_OBJECTS = output.$(OBJEXT) getopt.$(OBJEXT) \
72 72
 	sigtool.$(OBJEXT)
73 73
 sigtool_OBJECTS = $(am_sigtool_OBJECTS)
74 74
 sigtool_LDADD = $(LDADD)
75
-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
75
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
76 76
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
77 77
 am__depfiles_maybe = depfiles
78 78
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
... ...
@@ -276,8 +276,8 @@ install-binPROGRAMS: $(bin_PROGRAMS)
276 276
 	     || test -f $$p1 \
277 277
 	  ; then \
278 278
 	    f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
279
-	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
280
-	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
279
+	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
280
+	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
281 281
 	  else :; fi; \
282 282
 	done
283 283
 
... ...
@@ -445,8 +445,8 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
445 445
 	unique=`for i in $$list; do \
446 446
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
447 447
 	  done | \
448
-	  $(AWK) '    { files[$$0] = 1; } \
449
-	       END { for (i in files) print i; }'`; \
448
+	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
449
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
450 450
 	mkid -fID $$unique
451 451
 tags: TAGS
452 452
 
... ...
@@ -458,8 +458,8 @@ TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
458 458
 	unique=`for i in $$list; do \
459 459
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
460 460
 	  done | \
461
-	  $(AWK) '    { files[$$0] = 1; } \
462
-	       END { for (i in files) print i; }'`; \
461
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
462
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
463 463
 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
464 464
 	  test -n "$$unique" || unique=$$empty_fix; \
465 465
 	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
... ...
@@ -469,13 +469,12 @@ ctags: CTAGS
469 469
 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
470 470
 		$(TAGS_FILES) $(LISP)
471 471
 	tags=; \
472
-	here=`pwd`; \
473 472
 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
474 473
 	unique=`for i in $$list; do \
475 474
 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
476 475
 	  done | \
477
-	  $(AWK) '    { files[$$0] = 1; } \
478
-	       END { for (i in files) print i; }'`; \
476
+	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
477
+	      END { if (nonempty) { for (i in files) print i; }; }'`; \
479 478
 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
480 479
 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
481 480
 	     $$tags $$unique
... ...
@@ -1,8 +1,8 @@
1
-# Makefile.in generated by automake 1.10 from Makefile.am.
1
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
2 2
 # @configure_input@
3 3
 
4 4
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
5
+# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6 6
 # This Makefile.in is free software; the Free Software Foundation
7 7
 # gives unlimited permission to copy and/or distribute it,
8 8
 # with or without modifications, as long as this notice is preserved.